n, k = map(int, input().split())
print((n*3+k)//2) n, k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k print((n*3+k)//2) print (n*3+k)//2 n*3+k n*3 n 3 k 2 k = map(int, input().split()) map(int, input().split()) k n, k = map(int, input().split()) map(int, input().split()) n
n, k = map(int, input().split())
print((n*3+k)//2)