W, Z, B = list(input().split()) W, Z = int(W), int(Z) B = int(B.replace(".", "")) W += W*B//10 Z += Z*B//10 print(W+Z)