import math

x, y, r = map(int, raw_input().split())

z = math.sqrt(x^2 + y^2)

percentage = (z + r) / z

m = (x + y) * percentage

print(int(m))