W, Z, B = input().split() W, Z = int(W), int(Z) B = int(B[0] + B[-1]) print((W + Z) * (B + 10)//10)