# put your python code here
class_1 = int(input())
class_2 = int(input())
class_3 = int(input())

total_desks = class_1//2 + class_1%2 + class_2//2 + class_2%2 + class_3//2 + class_3%2
print(total_desks)
