a=0 b=0 K=0 c=0 a,b,K,c = input().split() c = ((2**K)*K)/2 print("{c}")