UVA Problem ID: 336 (A Node Too Far)