# 读取输入的三个成绩
A, B, C = map(int, input().split())

# 计算加权总分(使用整数运算避免精度问题)
S = (A * 20 + B * 30 + C * 50) // 100

# 输出结果
print(S)