Once upon a time, a tsar was holding a reception and the Megamind was among the guests. The tsar decided to test how smart the Megamind was, took him into a dark room, and gave the following task: On the table in this room, there are 50 coins, exactly 10 of them are tails up. In the darkness, it is impossible to determine the sides of these coins. Touching the coins also does not help. The Megamind has to separate these coins into two groups so that the number of tails in both are equal. Can he do it?