r='0' for i in range(int(input())): if not i:r+='.' r+='142857'[i%6] print(r)