Try to solve this interesting logical task.

I don't know may be it was shine of haven on my brain, but I solved it for nearly 1 minute.

If you know this task already, please give a chance to solve it for anyone else
and don't write the answer now.

So....

Three wise men were disputing - who is the wisest of them?
Then they saw an old man. One of them said: "Old man, can U settle
our dispute. Can U determine who is the wisest of us".
"Ok",- said the old man,- "I have 5 hats in my bag.
There are three black and two white of them. U all close
your eyes and I put a hat on everyone's head. Then U all
open your eyes. U can not see color of your hat, but U can
see the color of the hat on other wise men. Then the wisest man
is that who says the first and rightly which color of his hat is ".
Then it all was done. The old man put black hats on everyone's head.
The wise men looked at each other. 1 minute passed. Then one of the
wise men said: "I have a black hat".
"Yes, U are right. And U are the wisest", - said the old man.

Now a question - How this wise man could determine the color of his hat rightly .

Write here or write messages with answers privatly to me.
Then I will write here the name of the winner.


Good luck!!!