Island Puzzle

Problem Name:
Island Puzzle
Site:CodeForces
Links:
Tags:
Problem setters: