from scipy.special import* print(polygamma(1,float(input())+1))