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