def apple_pie(a, p):

    return (a*3+p)//2
def main():
    a, p = map(int, input().split())
    print(apple_pie(a, p))

if __name__ == '__main__':
    main() def apple_pie(a, p):

    return (a*3+p)//2 apple_pie return (a*3+p)//2 (a*3+p)//2 a*3+p a*3 a 3 p 2 a a p p def main():
    a, p = map(int, input().split())
    print(apple_pie(a, p)) main a, p = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split p print(apple_pie(a, p)) print apple_pie(a, p) apple_pie a p if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def apple_pie(a, p):

    return (a*3+p)//2 def apple_pie(a, p):

    return (a*3+p)//2 apple_pie def main():
    a, p = map(int, input().split())
    print(apple_pie(a, p)) def main():
    a, p = map(int, input().split())
    print(apple_pie(a, p)) main
def apple_pie(a, p):

    return (a*3+p)//2
def main():
    a, p = map(int, input().split())
    print(apple_pie(a, p))

if __name__ == '__main__':
    main()