Wormhole

Solved USACO problem "Wormholes"