t=True;x=t+t+t for i in range(t,int(input())+t):f,b=i%x