list_num = input().split() list_num = [int(list_num[0]), int(list_num[1]), float(list_num[2])] ans = list_num[0]*(list_num[2]+1) + list_num[1]*(list_num[2]+1) ans = int(ans) print(ans)