import math
app, p = (int(x) for x in input().split())
pie = math.floor((app*3+p)/2)
print(pie) import math math int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x app, p = (int(x) for x in input().split()) app (int(x) for x in input().split()) p pie = math.floor((app*3+p)/2) pie math.floor((app*3+p)/2) math.floor math floor (app*3+p)/2 app*3+p app*3 app 3 p 2 print(pie) print pie pie = math.floor((app*3+p)/2) math.floor((app*3+p)/2) pie app, p = (int(x) for x in input().split()) (int(x) for x in input().split()) app p = (int(x) for x in input().split()) (int(x) for x in input().split()) p
import math
app, p = (int(x) for x in input().split())
pie = math.floor((app*3+p)/2)
print(pie)