a,p=[int(x) for x in input().rstrip().split()]
aa=a*3+p
print(aa//2) int(x) for x in input().rstrip().split() for x in input().rstrip().split() x input().rstrip().split() ().rstrip().split ().rstrip() ().rstrip () input rstrip split for x in input().rstrip().split() int(x) int x a,p=[int(x) for x in input().rstrip().split()] a [int(x) for x in input().rstrip().split()] p aa=a*3+p aa a*3+p a*3 a 3 p print(aa//2) print aa//2 aa 2 aa=a*3+p a*3+p aa p=[int(x) for x in input().rstrip().split()] [int(x) for x in input().rstrip().split()] p a,p=[int(x) for x in input().rstrip().split()] [int(x) for x in input().rstrip().split()] a
a,p=[int(x) for x in input().rstrip().split()]
aa=a*3+p
print(aa//2)