w, z, b = input().split() w = int(w) z = int(z) b = float(b) print(w + z + int(w * b) + int(z * b))