Master of Both

Problem Name:
Master of Both
Site:CodeForces
Links:
Tags: