def resolve():
    A, P = map(int, input().split())

    ans = (A * 3 + P) // 2

    print(ans)


resolve() def resolve():
    A, P = map(int, input().split())

    ans = (A * 3 + P) // 2

    print(ans) resolve A, P = map(int, input().split()) A map(int, input().split()) map int input().split() ().split () input split P ans = (A * 3 + P) // 2 ans (A * 3 + P) // 2 A * 3 + P A * 3 A 3 P 2 print(ans) print ans resolve() resolve def resolve():
    A, P = map(int, input().split())

    ans = (A * 3 + P) // 2

    print(ans) def resolve():
    A, P = map(int, input().split())

    ans = (A * 3 + P) // 2

    print(ans) resolve
def resolve():
    A, P = map(int, input().split())

    ans = (A * 3 + P) // 2

    print(ans)


resolve()