Submarine in the Rybinsk Sea (easy edition)

Problem Name:
Submarine in the Rybinsk Sea (easy edition)
Site:CodeForces
Links:
Tags:
Problem setters: