n, k = (int(x) for x in input().split())

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

print(int((3*n+k)/2))