Io day 2: problem 3