A and B and Chess

Problem Name:
A and B and Chess
Site:CodeForces
Links:
Tags:
Problem setters: