1997 Mid-Atlantic Regional Programming Contest - Problem G - Spacely Sprockets Teleport System