a, b, t = list(map(int, input().strip().split())) s1 = pow(a+b, t+1) s2 = 2**t res = int((int(s1/s2) - (a+b))/(a+b-2)) print(res)