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