w=1 for i in range(input()): print-~i, if i*2+3>w*-~w:print;w+=1