A, P = [int(s) for s in input().split(' ')]
print((A * 3 + P) // 2) int(s) for s in input().split(' ') for s in input().split(' ') s input().split(' ') ().split () input split ' ' for s in input().split(' ') int(s) int s A, P = [int(s) for s in input().split(' ')] A [int(s) for s in input().split(' ')] P print((A * 3 + P) // 2) print (A * 3 + P) // 2 A * 3 + P A * 3 A 3 P 2 P = [int(s) for s in input().split(' ')] [int(s) for s in input().split(' ')] P A, P = [int(s) for s in input().split(' ')] [int(s) for s in input().split(' ')] A
A, P = [int(s) for s in input().split(' ')]
print((A * 3 + P) // 2)
