A Compatible Pair

Problem Name:
A Compatible Pair
Site:CodeForces
Links:
Tags:
Problem setters: