arr = input().split()
a = int(arr[0])
p = int(arr[1])

print((a*3 + p)//2) arr = input().split() arr input().split() ().split () input split a = int(arr[0]) a int(arr[0]) int arr[0] arr 0 p = int(arr[1]) p int(arr[1]) int arr[1] arr 1 print((a*3 + p)//2) print (a*3 + p)//2 a*3 + p a*3 a 3 p 2 arr = input().split() input().split() arr a = int(arr[0]) int(arr[0]) a p = int(arr[1]) int(arr[1]) p
arr = input().split()
a = int(arr[0])
p = int(arr[1])

print((a*3 + p)//2)