Hessah's actually sounds hard because there are more people involved. xD
But I'm guessing you think about it starting from the man in the back. Obviously, he can't know what his hat is meaning... wait. NVM.
Why doesn't the man in the back of the line know what hat his is if he can see everybody's hat in front of him??
