﻿from math import *

p=int(input("p ="))
a=0
while sqrt(1+exp(a))<7:
    a=a+10**(-p)
a=round(a,p)
print(a)


