# print a pattern of increasing integers, # resembling the children's game "hopscotch" # (problem 6 on 08au midterm) def hopscotch(n): print " 1" for i in range(1, n+1): print "%d %d" % (3*i - 1, 3*i) print " %d" % (3*i + 1) # main while True: n = int(raw_input("n = ")) hopscotch(n)