A, B, AB and BA

Problem Name:
A, B, AB and BA
Site:CodeForces
Links:
Tags: