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