a, p = [int(i) for i in input().split()]
print (int((a * 3 + p) / 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 a, p = [int(i) for i in input().split()] a [int(i) for i in input().split()] p print (int((a * 3 + p) / 2)) print int((a * 3 + p) / 2) int (a * 3 + p) / 2 a * 3 + p a * 3 a 3 p 2 a, p = [int(i) for i in input().split()] [int(i) for i in input().split()] a p = [int(i) for i in input().split()] [int(i) for i in input().split()] p
a, p = [int(i) for i in input().split()]
print (int((a * 3 + p) / 2))