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