s = "" for i in [0]*int(input())-1: s = "3 " print(s + "1")