import numpy as np
import math

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

if __name__ == "__main__":
    solve() import numpy as np numpy import math math def solve():
    a, p = map(int, input().split())
    print((a*3+p)//2)
    return 0 solve a, p = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split p print((a*3+p)//2) print (a*3+p)//2 a*3+p a*3 a 3 p 2 return 0 0 if __name__ == "__main__":
    solve() __name__ == "__main__" __name__ "__main__" solve() solve def solve():
    a, p = map(int, input().split())
    print((a*3+p)//2)
    return 0 def solve():
    a, p = map(int, input().split())
    print((a*3+p)//2)
    return 0 solve
import numpy as np
import math

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

if __name__ == "__main__":
    solve()
