input for exercise 6