w,z,b = map(float,input().split()) w_point = int(w * (b * 10) / 10) z_point = int(z * (b * 10) / 10) print(int(w) + int(z) + w_point + z_point)