N=int(input());S=3**.5;print(2+S,N+1) for i in range(N//2):print(1,2*i+1);print(1+S,2*i+2) N%2and print(1,N)