Problem 79: input from file works