a,b = input().split(" ")
total = int(a)*3 + int(b)
print(total//2) a,b = input().split(" ") a input().split(" ") ().split () input split " " b total = int(a)*3 + int(b) total int(a)*3 + int(b) int(a)*3 int(a) int a 3 int(b) int b print(total//2) print total//2 total 2 a,b = input().split(" ") input().split(" ") a total = int(a)*3 + int(b) int(a)*3 + int(b) total b = input().split(" ") input().split(" ") b
a,b = input().split(" ")
total = int(a)*3 + int(b)
print(total//2)