n=int(input()) if n==1: print(0) else: s='142857' ans='0.' for i in range(n): ans+=s[i%6] print(ans)