problem1 output