def f2(n,num,sum): if n == 5: return (num,sum) #num 弹起 并 下落的距离 有num+num return f2(n+1,num / 2,sum + num + num) n = int(input()) num,sum = f2(0,n,0) print(sum-n) print(num)