a, b = list(map(int, input().split()))
n = a * 3 + b
c = n % 2
my_result = (n - c) / 2
print(int(my_result)) a, b = list(map(int, input().split())) a list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split b n = a * 3 + b n a * 3 + b a * 3 a 3 b c = n % 2 c n % 2 n 2 my_result = (n - c) / 2 my_result (n - c) / 2 n - c n c 2 print(int(my_result)) print int(my_result) int my_result b = list(map(int, input().split())) list(map(int, input().split())) b a, b = list(map(int, input().split())) list(map(int, input().split())) a n = a * 3 + b a * 3 + b n c = n % 2 n % 2 c my_result = (n - c) / 2 (n - c) / 2 my_result
a, b = list(map(int, input().split()))
n = a * 3 + b
c = n % 2
my_result = (n - c) / 2
print(int(my_result))
