#!/usr/bin/env python3
# https://atcoder.jp/contests/abc128/tasks/abc128_a

a, p = [int(x) for x in input().split()]
print(int((a * 3 + p) / 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 a, p = [int(x) for x in input().split()] a [int(x) for x in input().split()] p print(int((a * 3 + p) / 2)) print int((a * 3 + p) / 2) int (a * 3 + p) / 2 a * 3 + p a * 3 a 3 p 2 a, p = [int(x) for x in input().split()] [int(x) for x in input().split()] a p = [int(x) for x in input().split()] [int(x) for x in input().split()] p
#!/usr/bin/env python3
# https://atcoder.jp/contests/abc128/tasks/abc128_a

a, p = [int(x) for x in input().split()]
print(int((a * 3 + p) / 2))
