a = input().rstrip().split(" ")
b = int(a[0])
c = int(a[1])
c = b*3 + c
print(int(c/2)) a = input().rstrip().split(" ") a input().rstrip().split(" ") ().rstrip().split ().rstrip() ().rstrip () input rstrip split " " b = int(a[0]) b int(a[0]) int a[0] a 0 c = int(a[1]) c int(a[1]) int a[1] a 1 c = b*3 + c c b*3 + c b*3 b 3 c print(int(c/2)) print int(c/2) int c/2 c 2 a = input().rstrip().split(" ") input().rstrip().split(" ") a c = int(a[1]) int(a[1]) c b = int(a[0]) int(a[0]) b c = b*3 + c b*3 + c c
a = input().rstrip().split(" ")
b = int(a[0])
c = int(a[1])
c = b*3 + c
print(int(c/2))