Strange Device

Problem Name:
Strange Device
Site:CodeForces
Links:
Tags:
Problem setters: