w, z, b = io.read("*n", "*n", "*n")
a = (w + z) * (1 + b)
a = math.floor(a + 0.5)
print(a)