#50 characters hobe may be..
n = list(map(int, input().split()))

c = n[0]*3 + n[1]
print(c//2) n = list(map(int, input().split())) n list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split c = n[0]*3 + n[1] c n[0]*3 + n[1] n[0]*3 n[0] n 0 3 n[1] n 1 print(c//2) print c//2 c 2 c = n[0]*3 + n[1] n[0]*3 + n[1] c n = list(map(int, input().split())) list(map(int, input().split())) n
#50 characters hobe may be..
n = list(map(int, input().split()))

c = n[0]*3 + n[1]
print(c//2)