solved 336 - A Node Too Far from UVA online judge