import math import decimal decimal.getcontext().prec=1000 def zeta(n): if n==3: return decimal.Decimal(0.202056903159594) else: ret=decimal.Decimal(0) for i in range(2,200): ret+=decimal.Decimal(1)/decimal.Decimal(i**n) return ret n=int(input()) if n>=30: print(0) elif n==2: print(999999) else: ans=decimal.Decimal(0) for i in range(n,100): ans+=zeta(i) print(int(ans*decimal.Decimal(10**6)))