# -*- coding: utf-8 -*- n = int(input()) cnt = (10**n)//7 if cnt==0: print(0) else: print(cnt/(10**n))