Anybody can help me how i can solve this problem there is the link http://mirror.codeforces.com/problemset/problem/353/A
353A DOMINO
Anybody can help me how i can solve this problem there is the link http://mirror.codeforces.com/problemset/problem/353/A