write a program that reads in a list of integers and prints their maximum and minimum