a, b = [int(i) for i in input().split(" ")]

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

print((a * 3 + b) // 2)
