Codeforces : Boy or Girl

Problem Link : http://codeforces.com/problemset/problem/236/A

Solution :