1997 Mid-Atlantic Regional Programming Contest - Problem D - FUN Programming