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