a, b, c = map(int, input().split())

s = 0.2 * a + 0.3 * b + 0.5 * c

print(int(s))