import math N = int(input()) a = 10 ** N print("0." + str(a // 7))