changed output format for problem 14