import math
import sys

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

s = a * 0.2 + b * 0.3 + c * 0.5
print(math.floor(s))