Two Pirates

Problem Name:
Two Pirates
Site:CodeForces
Links:
Tags:
Problem setters: