from decimal import *
try:
while True:
r = input().replace('\n', '')
n = input().replace('\n', '')
p = input().replace('\n', '')
r = Decimal(r)
n = int(n)
p = Decimal(p)
totle = p
for x in range(n):
totle = totle*(1+r)
if x != n-1:
totle += p
print(int(totle))
except EOFError:
pass