details=[int(height_temp) for height_temp in input().strip().split(' ')] noVirus=0 for i in range(0,int(details[2])): noVirus+=int((0.5*details[0])+(0.5*details[1])) noVirus=noVirus%(10**9+7) print(noVirus)