l=[int(i) for i in input().split()]
print((l[0]*3+l[1])//2) int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i l=[int(i) for i in input().split()] l [int(i) for i in input().split()] print((l[0]*3+l[1])//2) print (l[0]*3+l[1])//2 l[0]*3+l[1] l[0]*3 l[0] l 0 3 l[1] l 1 2 l=[int(i) for i in input().split()] [int(i) for i in input().split()] l
l=[int(i) for i in input().split()]
print((l[0]*3+l[1])//2)