import math Ndata = int(input()); powerd = math.floor(1/7*(10**Ndata))/(10**Ndata); print(powerd);