Problem:
 Score : 100 points    Problem Statement We have A apples and P pieces of apple.  We can cut an apple into three pieces of apple, and make one apple pie by simmering two pieces of apple in a pan.  Find the maximum number of apple pies we can make with what we have now.      Constraints  All values in input are integers.  0 \leq A, P \leq 100         Input Input is given from Standard Input in the following format:  A  P       Output Print the maximum number of apple pies we can make with what we have.        Sample Input 1 1 3      Sample Output 1 3  We can first make one apple pie by simmering two of the three pieces of apple. Then, we can make two more by simmering the remaining piece and three more pieces obtained by cutting the whole apple.       Sample Input 2 0 1      Sample Output 2 0  We cannot make an apple pie in this case, unfortunately.       Sample Input 3 32 21      Sample Output 3 58

Solution (Python):
A, P = map(int, input().split())
print((A * 3 + P)//2)

Solution (Python):
a, p = map(int, input().split())
print( int( (3*a+p)/2 ) )

Solution (Python):
a,p=map(int,input().split())
print((a*3+p)//2)

Solution (Python):
a,p = map(int,input().split())
c = a*3 + p
if c%2==0:
    print(int(c/2))
else:
    print(int((c-1)/2))

Solution (Python):
a,p=map(int,input().split()) 

print((a*3+p)//2)

Solution (Python):
a, p = map(int, input().split())
n_piece = a * 3 + p
n_pie = n_piece // 2
print(n_pie)

Solution (Python):
A,P = map(int,input().split())
print(int((P+A*3)/2))

Solution (Python):
A, P = map(int, input().split())
print((3 * A + P) // 2)

Solution (Python):
A,P=map(int,input().split())
print(int((A*3+P)/2))

Solution (Python):
def slove():
    import sys
    input = sys.stdin.readline
    a, p = list(map(int, input().rstrip('\n').split()))
    print((a * 3 + p) // 2)


if __name__ == '__main__':
    slove()

Solution (Python):
a,p =(int(x) for x in input().split())
print((3 * a + p)//2)

Solution (Python):
A,P=map(int,input().split())
print((A*3+P)//2)

Solution (Python):
import sys

input = sys.stdin.readline


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


if __name__ == "__main__":
    main()

Solution (Python):
a, p = map(int, input().split())
print(int((a*3+p)/2))

Solution (Python):
A,P = map(int, input().split())
print((A*3+P)//2)

Solution (Python):
a,p = map(int,input().split())
print(((3*a)+p)//2)

Solution (Python):
import sys
from io import StringIO
import unittest

class TestClass(unittest.TestCase):
    def assertIO(self, input, output):
        stdout, stdin = sys.stdout, sys.stdin
        sys.stdout, sys.stdin = StringIO(), StringIO(input)
        resolve()
        sys.stdout.seek(0)
        out = sys.stdout.read()[:-1]
        sys.stdout, sys.stdin = stdout, stdin
        self.assertEqual(out, output)
    def test_入力例_1(self):
        input = """1 3"""
        output = """3"""
        self.assertIO(input, output)
    def test_入力例_2(self):
        input = """0 1"""
        output = """0"""
        self.assertIO(input, output)
    def test_入力例_3(self):
        input = """32 21"""
        output = """58"""
        self.assertIO(input, output)
def resolve():
    (A,P)=(int(i) for i in input().split())
    print(int((A*3+P)/2))
if __name__ == "__main__":
    resolve()

Solution (Python):
a, p = map(int, input().split())
print((a * 3 + p)//2)

Solution (Python):
A,P=map(int,input().split())
B=A*3+P
ans=B//2
print(ans)

Solution (Python):
A,P = map(int,input().split())
print((3*A +P)//2)

Solution (Python):



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


if __name__ == '__main__':
    main()

Solution (Python):
from sys import stdin

a,p = [int(x) for x in stdin.readline().rstrip().split()]

print((a*3+p)//2)

Solution (Python):
a,p=map(int,input().split())
print((3*a+p)//2)

Solution (Python):
A,P = list(map(int,input().split()))

print((3*A+P)//2)

Solution (Python):
a,p=map(int,input().split())
print(((a*3)+p)//2)

Solution (Python):
A,P = map(int,input().split())
P += A*3
print(P//2)

Solution (Python):
A,P = map(int,input().split())
print((A*3+P)//2)

Solution (Python):
a, p = map(int, input().split())

print((3*a+p)//2)

Solution (Python):
A,P=[int(s) for s in input().split()]
x=3*A+P
print(x//2)

Solution (Python):
first=input()
(A, P)=first.split()
A=int(A)
P=int(P)
x=3*A
y=(x+P)//2
print(y)

Solution (Python):


a, p = map(int, raw_input().split())
p += a*3
ans = p/2
print (ans)

Solution (Python):
A,P=map(int,input().split())
print((A*3+P)//2)

Solution (Python):
a,p = map(int,input().split())
print((a*3+p)//2)

Solution (Python):
a, p = map(int, input().split())
p += a * 3
print(p//2)

Solution (Python):
a,b = map(int,input().split())
print((3*a+b)//2)

Solution (Python):
a, p = map(int, input().split())
print((3 * a + p) // 2)

Solution (Python):
a, p = map(int, input().split())
print( (a*3+p)//2)

Solution (Python):
A, P = map(int,input().split())
ans = 0
ans = P
ans += A * 3
count = ans // 2
print(int(count))

Solution (Python):
A,P = map(int,input().split(" "))

print((3*A+P)//2)

Solution (Python):
A,P=map(int,input().split());print((A*3+P)//2)

Solution (Python):
A,P=map(int,input().split())
print((3*A+P)//2)

Solution (Python):
a, p = map(int, input().split())

print((3 * a + p) // 2)

Solution (Python):
a, p = map(int, input().split())
print(int((a*3 + p)/2))

Solution (Python):
a,p = map(int, input().split())
print(int((3*a+p)/2))

Solution (Python):
a,p = map(int, input().split())
b = a*3+p
print(b//2)

Solution (Python):
A, P = map(int,input().split(' '))

print( (3*A+P)//2 )

Solution (Python):
A, P = map(int, input().split())
print((3*A + P) // 2)

Solution (Python):
a, p = map(int, input().split())
print((3*a+p)//2)

Solution (Python):


A,P=map(int,input().split())

print((A*3+P)//2)

Solution (Python):
a,p=map(int,input().split())
ap=(a*3+p)
if ap%2==0:
    print(int(ap/2))
else:
    print(int((ap-1)/2))

Solution (Python):
a,p=map(int,input().split())
print(((3*a)+p)//2)

Solution (Python):

A, P = map(int, input().split())


print((3*A + P)//2)

Solution (Python):
a, p = map(int, input().split())
p += a * 3
print(p//2)

Solution (Python):
A, P = map(int, input().split(" "))
print(int((A*3+P) / 2))

Solution (Python):
A, P = map(int, input().split())
print((A*3 + P) // 2)

Solution (Python):
a,b = map(int,input().split())
print(((a*3)+b)//2)

Solution (Python):
a, p = map(int, input().split())

p_from_a = 3 * a

print( (p_from_a + p ) // 2 )

Solution (Python):
A,P=list(map(int,input().split()));print((P+3*A)//2)

Solution (Python):
print(eval('(3*' + input().replace(' ', '+') + ')//2'))

Solution (Python):
a,p=map(int,input().split());print((3*a+p)//2)

Solution (Python):
import math

a, p = map(int, input().split())

x = (a*3+p)/2

print(math.floor(x))

Solution (Python):
a,p = [int(_) for _ in input().split()]
print((a*3+p)//2)

Solution (Python):
a,p = map(int,input().split())

print((a*3+p)//2)

Solution (Python):
A, P = map(int, input().split())
P += A * 3
print( int(P / 2))

Solution (Python):
a, p = map(int, input().split())
print((3*a + p)//2)

Solution (Python):
a, p = map(int, input().split())
print((3 * a + p) // 2)

Solution (Python):
a, p = map(int, input().split())
ans = (a * 3 + p) // 2
print(ans)

Solution (Python):

a,b = map(int,input().split())
print( (3 * a + b) // 2 )

Solution (Python):
a, p = map(int, input().split())
print((p+a*3)//2)

Solution (Python):
a, b = map(int, input().split(" "))
print((a * 3 + b) // 2)

Solution (Python):
A, P =map(int, input().split())
pie = (A * 3 + P)//2
print(pie)

Solution (Python):
A, P = map(int, input().split())
pie = (3*A + P)//2
print(pie)

Solution (Python):
A,P=map(int,input().split())
print((3*A+P)//2)

Solution (Python):
import math
A,P=list(map(int,input().split()))
sum=A*3+P
print(sum//2)

Solution (Python):
a,p = map(int, input().split())
print((p+3*a)//2)

Solution (Python):
a, p = map(int, input().split())
print(int((a*3+p)//2))

Solution (Python):
a,p = map(int, input().split())
num =(3*a + p)//2
print(num)

Solution (Python):
A,P=map(int, input().split())

print((3*A+P)//2)

Solution (Python):
a, p = [int(i) for i in input().split()]

print((3*a+p)//2)

Solution (Python):
A,P = (int(i) for i in input().split())  

print((A*3+P)//2)

Solution (Python):
A,P = map(int,input().split())
print((A*3+P)//2)

Solution (Python):
a, p =map(int, input().split())
print(int((a*3 + p) // 2))

Solution (Python):
A,P=map(int,input().split())
pieces=3*A+P
pies=int(pieces/2)
print(pies)

Solution (Python):
A, P = map(int, input().split())
print((A*3+P)//2)

Solution (Python):
a, p = map(int, input().split())
print(int((a*3 + p) / 2))

Solution (Python):
a, b = map(int, input().split())
print((3*a + b)//2)

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

Solution (Python):
A,P = map(int,input().split())
print((A*3+P)//2)

Solution (Python):
print(eval(input().replace(" ","*3+"))//2)

Solution (Python):
a,p=map(int,input().split())
print((a*3+p)//2)

Solution (Python):
a, p = map(int,input().split())
print (( a * 3 + p ) // 2 )

Solution (Python):
a, p = map(int, input().split())

print((a*3+p)//2)

Solution (Python):
a,p=map(int,input().split())
print((3*a+p)//2)

Solution (Python):
A,P = map(int,input().split())
pie = (A*3+P)//2
print(pie)

Solution (Python):
a,p = map(int, input().split())

print((p+3*a)//2)

Solution (Python):
a, p = map(int, input().split())
print((a*3+p)//2)

Solution (Python):
a, b = map(int, input().split())
print(int(((a * 3) + b) / 2))

Solution (Python):
a, p = map(int, input().split())
print((a*3+p)//2)

Solution (Python):
def main(): 
    
    A,P = map(int, input().split())

    print((3*A + P) // 2)

if __name__ == "__main__":
    main()

Solution (Python):
a,p = map(int,input().split())
print((3*a+p)//2)

Solution (Python):
a,p=map(int,input().split())
print((a*3+p)//2)

Solution (Python):

a, p = map(int, input().split())
print((a*3+p)//2)

Solution (Python):
print(eval('('+input().replace(' ','*3+')+')//2'))

Solution (Python):
a,b = map(int ,input().split())
print((a*3+b)//2)

Solution (Python):
a,p = map(int,input().split())
print((3*a+p)//2)

Solution (Python):
A, P = map(int, input().split())
print((A * 3 + P) // 2)

Solution (Python):
import sys

if sys.platform =='ios':
    sys.stdin=open('input_file.txt')
    
a,b=map(int,input().split())

print((a*3+b)//2)

Solution (Python):
a, p = map(int, input().split())
print( (a*3+p)//2 )

Solution (Python):

a,p=map(int,input().split())
print((3*a+p)//2)

Solution (Python):
A,P = map(int,input().split())
pice = (A*3)+P
pie = pice//2
print(pie)

Solution (Python):
a,p = map(int, input().split())

print((a*3+p)//2)

Solution (Python):
A,P =map(int,input().split())
a =((A*3+P)//2)
print(a)

Solution (Python):

import math




def main():
    line = input()
    lista = [int(x) for x in line.split()]
    a = lista[0]
    b = lista[1]
    print( (a * 3 + b) // 2)


if __name__ == "__main__":
    main()

Solution (Python):
a,p = map(int,input().split())
print((a*3+p)//2)

Solution (Python):
A, P = map(int, input().split())
print((A*3+P)//2)

Solution (Python):
a, p = map(int, input().split())
total = 3 * a + p
print(total//2)

Solution (Python):
A,P = map(int,input().split())
print((P+A*3)//2)

Solution (Python):
A, P = map(int, input().split())
print((A*3 + P)//2)

Solution (Python):
a,p = map(int,input().split())

print(((a*3)+p) // 2)

Solution (Python):
a,p=map(int,input().split())
m=(3*a+p)//2
print(m)

Solution (Python):
a,p = map(int,input().split())
print((3*a+p)//2)

Solution (Python):
a,p=map(int,input().split())


print((a*3+p)//2)

Solution (Python):
import math
A,P = list(map(int,input().split()))
print(math.ceil((A*3+P)//2))

Solution (Python):
a, p = map(int, input().split())
q = 3*a + p
print(q//2)

Solution (Python):
a, p = list(map(int, input().split()))
p += a*3
print((p//2))

Solution (Python):
a, p = list(map(int, input().split()))
p += a*3
print(int(p/2))

Solution (Python):
A, P = map(int, input().split())

P = P + 3 * A

if P % 2 == 0:
  print(int(P/2))
  
else:
  print(int((P-1)/2))

Solution (Python):
a, p = map(int, input().split())
print((3*a + p)//2)

Solution (Python):
a, p = map(int, input().split())
print((a*3 + p) // 2)

Solution (Python):
a, p = map(int, input().split())
print((a * 3 + p) // 2)

Solution (Python):
A,P = map(int,input().split())
print((3 * A + P) // 2)

Solution (Python):
a, p = map(int, input().split())
pieces = a * 3 + p
pie = pieces // 2
print(pie)

Solution (Python):
A,P=map(int,input().split())
print((A*3+P)//2)

Solution (Python):
from sys import stdin

a, p = [int(x) for x in stdin.readline().rstrip().split()]
print((a*3+p)//2)

Solution (Python):
a, p = map(int, input().split())
print( (3 * a + p)//2)

Solution (Python):
a,p = map(int, input().split())
print((a * 3 + p) // 2)

Solution (Python):
A, P = map(int, input().split())

tot = 3 * A + P
ans = tot // 2

print(ans)

Solution (Python):
a,p = map(int,input().split())
p += a*3
print(p//2)

Solution (Python):
a, p = (int(x) for x in input().split(' '))

print(int(((a * 3) + p)/2))

Solution (Python):
S=list(input().split())

A=int(S[0])
P=int(S[1])

total=A*3+P

pie=int(total/2)
print(pie)

Solution (Python):
a, p = map(int,input().split())
print((3*a + p)//2)

Solution (Python):
a, p = map(int, input().split())
print((p+3*a)//2)

Solution (Python):
a, p = map(int, input().split())
t = p + 3 * a
print(t//2)

Solution (Python):
a,b = [int(i) for i in input().split()]

print((a*3+b)//2)

Solution (Python):
A,P = map(int, input().split())
print(int((A*3+P)/2))

Solution (Python):
a, p = map(int, input().split())
print(((a*3) + p) // 2)

Solution (Python):
while True:
    try:
        A, P = map(int, input().split())
        P += A * 3
        print(P//2)
    except:
        break

Solution (Python):
A,P = map(int, input().split())
sum_apple = A*3+P
print(int(sum_apple/2))

Solution (Python):
A,P = map(int, input().split())
sum_apple = A*3+P
print(sum_apple//2)

Solution (Python):
A,P=map(int,input().split())
X=A*3+P
print(int(X//2))

Solution (Python):
a,p=map(int,input().split())
print((a*3+p)//2)

Solution (Python):
a,p=map(int,input().split())
sm=a*3+p
print(sm//2)

Solution (Python):
a,p =map(int,input().split())
print((3*a+p)//2)

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

if __name__ == '__main__':
    main()

Solution (Python):
a, p = map(int, input().split())

piece = a * 3 + p
pie = piece // 2

print(pie)

Solution (Python):
def f_a():
    a, p = map(int, input().split())
    print(((a*3)+p)//2)

if __name__ == "__main__":
    f_a()

Solution (Python):
a,p=map(int,input().split());print((3*a+p)//2)

Solution (Python):
def main():
    A, P = map(int, input().split())

    print((A * 3 + P) // 2)


main()

Solution (Python):
a, p = map(int, input().split())

print(int((a * 3 + p) / 2))

Solution (Python):
A, P = map(int, input().split())
print((A*3 + P)//2)

Solution (Python):
a,p=[int(i) for i in input().split()]
print((a*3+p)//2)

Solution (Python):
a, p = map(int,input().split())

print(int((3*a+p)/2))

Solution (Python):
a, p = map(int, input().split())
print((3*a + p) // 2)

Solution (Python):
a,p=list(map(int,input().split()))

print((a*3+p)//2)

Solution (Python):
import math
a,p=list(map(int,input().split()))

ans=((a*3+p)/2)
print(math.floor(ans))

Solution (Python):
a,p=map(int,input().split())
s=3*a+p
if s%2==0:
  print(int((s/2)))
else:
  print(int(((s-1)/2)))

Solution (Python):
a, p = map(int, input().split())
total_p = 3 * a + p
pie = total_p // 2
print(pie)

Solution (Python):
a, p = list(map(int, input().split()))

print((a*3+p)//2)

Solution (Python):
A,P = map(int,input().split(" "))

piece_of_apple = 3 * A + P
ans = piece_of_apple // 2

print(ans)

Solution (Python):
import math
A,P = map(int,input().split())
print(math.floor((3*A+P)/2))

Solution (Python):
a, p = map(int,input().split())

print((3*a + p) // 2)

Solution (Python):
a,p=map(int,input().split())
print((3*a+p)//2)

Solution (Python):
a, p = map(int, input().split())
print( (a*3+p) // 2)

Solution (Python):
A, P = map(int, input().split())
print(int((A*3+P)/2))

Solution (Python):
A,P = map(int,input().split())

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

Solution (Python):
a,p = map(int,input().split())
p += 3 * a
print(p // 2)

Solution (Python):
a, p = map(int, input().split())
print((a * 3 + p) // 2)

Solution (Python):
a, p = map(int, input().split())
print((3*a+p)//2)

Solution (Python):
a,p = map(int,input().split())
print((3*a+p)//2)

Solution (Python):
A, P = map(int, input().split())
print((A * 3 + P)// 2)

Solution (Python):
A, P = (int(a) for a in input().split())
print((A * 3 + P) // 2)

Solution (Python):
A, P = list(map(int, input().split()))
print((3*A+P)//2)

Solution (Python):
a, p = map(int, input().split())

print((a*3 + p)//2)

Solution (Python):
A,P = map(int,input().split(" "))
print((A*3+P)//2)

Solution (Python):
A,P = map(int,input().split(" "))
print((A*3+P)//2)

Solution (Python):
a, p = map(int, input().split())

print((a * 3 + p) // 2)

Solution (Python):
A,P = map(int,input().split())

piece = int(P+A*3)
pie = int(piece//2)

print(pie)

Solution (Python):
from math import floor


A, P = map(int, input().split())

piece_num = A * 3 + P
print(floor(piece_num/2))

Solution (Python):
A, P = map(int,input().split())
print(((A*3)+P)//2)

Solution (Python):
a,p=map(int,input().split())
print((3*a+p)//2)

Solution (Python):
a,p = map(int,input().split())
pie = int((a*3 + p)/2)
print(pie)

Solution (Python):
A,B =map(int,input().split())
goukei=3*A+B
print(int(goukei/2))

Solution (Python):
a, p = map(int, input().split(" "))
print((3 * a + p) // 2)

Solution (Python):
a,p=map(int,input().split())
print((3*a+p)//2)

Solution (Python):
a, p = map(int, input().split())
print((a * 3 + p) // 2)

Solution (Python):
a , p = map(int , input().split())
print((3*a+p)//2)

Solution (Python):
a,p = map(int,input().split())
print((3*a+p)//2)

Solution (Python):
a,p = map(int,input().split())
print((3*a+p)//2)

Solution (Python):
a, p = map(int, input().split())
print((3 * a + p) // 2)

Solution (Python):
A,P = [int(x) for x in input().split()]
X = (P + 3 * A)/2
print(int(X))

Solution (Python):
A, P = map(int,input().split())
print((A*3+P)//2)

Solution (Python):
a,p=map(int,input().split())
print((3*a+p)//2)

Solution (Python):
a, p = map(int, input().split())
print((3*a+p)//2)

Solution (Python):
a, p = (int(i) for i in input().split())
sum = (a * 3) + p
print(sum // 2)

Solution (Python):
a,p = map(int,input().split())
c = a*3+p
print(c//2)

Solution (Python):
a, p = map(int, input().split())
print((a * 3 + p) // 2)

Solution (Python):
A, P = map(int, input().split())

print ((A * 3 + P) // 2)

Solution (Python):
a,p=map(int,input().split())
print((a*3+p)//2)

Solution (Python):
from math import floor

A, P = map(int, input().split())
print(floor(((A * 3) + P) / 2))

Solution (Python):
a,p = map(int, input().split())
print((a*3+p)//2)

Solution (Python):
A,P = map(int,input().split())

print((A*3 + P)//2)

Solution (Python):
a,p = map(int, input().split())
print((3*a + p)//2)

Solution (Python):
a,p=map(int,input().split())
print((a*3+p)//2)

Solution (Python):
a,p=map(int,input().split())
print((a*3+p)//2)

Solution (Python):
A,P = list(map(int,input().split()))
print((3*A+P)//2)

Solution (Python):
a,p = map(int, input().split())
print((3*a + p) // 2)

Solution (Python):
a, p = map(int, input().split())
total_fraction = p + a * 3
print(total_fraction // 2)

Solution (Python):
A, P = map(int, input().split())

print((A*3+P)//2)

Solution (Python):
A,P=map(int, input().split())
print((3*A+P)//2)

Solution (Python):
a,p=map(int,input().split())
print((a*3+p)//2)

Solution (Python):
a,p = map(int,input().split())
print((a*3+p)//2)

Solution (Python):
a,p =map(int,input().split())
print(int(((a*3)+p)/2))

Solution (Python):
A,P = list(map(int, input().split()))
print( (3*A+P)//2 )

Solution (Python):
a, p = map(int, input().split())

print(int((3*a+p)/2))

Solution (Python):
a,p=map(int,input().split())
print((a*3+p)//2)

Solution (Python):
a,p = map(int, input().split())

n = 3*a
ans = (n+p) // 2
print(ans)

Solution (Python):
A, P = map(int, input().split())

k = A * 3 + P

print(k // 2)

Solution (Python):
A,P = map(int,input().split())
print((A * 3 + P) // 2)

Solution (Python):
a = input().split()
an = int(a[0])
p = int(a[1])

s = an * 3 + p
print(s // 2)

Solution (Python):
a,p=map(int,input().split())
print((p+3*a)//2)

Solution (Python):
a,b = map(int,input().split())
print( (3 * a + b) // 2  )

Solution (Python):
A,P = list(map(int,input().split()))
print((3*A+P)//2)

Solution (Python):
A = list(map(int,input().split()))
print(int((A[0]*3+A[1])//2))

Solution (Python):
a, p = map(int, input().split())
p += a*3
print(p//2)

Solution (Python):
import math
A, P = map(int, input().split())

print(math.floor((P+3*A)/2))

Solution (Python):
A,P = map(int,input().split())
A*=3
total = A+P
apple_pie = total//2
print(apple_pie)

Solution (Python):
A, P=map(int, input().split())
print(int((3*A+P)/2))

Solution (Python):
A,P = map(int,input().split())
print((A*3+P)//2)

Solution (Python):
A,P = map(int,input().split())
print(int((A*3+P)/2))

Solution (Python):
a, p = map(int, input().split())
print((a * 3 + p) // 2)

Solution (Python):
a, p = map(int, input().split())

p += 3*a
ans = p//2
print(ans)

Solution (Python):
a,p = map(int,input().split())
print((a*3+p)//2)

Solution (Python):
A, P = map(int, input().split())

print((A * 3 + P) // 2)

Solution (Python):
A, P = map(int, input().split())

print((A * 3 + P) // 2)

Solution (Python):
A,P = map(int, input().split())

print((A*3+P)//2)

Solution (Python):
A, P = list(map(int, input().split()))
print((A * 3 + P) // 2)

Solution (Python):
a, p = map(int, input().split())
print((a*3+p)//2)

Solution (Python):
a,p=map(int,input().split())
print((a*3+p)//2)

Solution (Python):
a,p = map(int,input().split())
print((3*a+p)//2)

Solution (Python):
a, p = map(int, input().split())
print((a*3+p)//2)

Solution (Python):
import sys
input=sys.stdin.readline

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

if __name__ == '__main__':
    main()

Solution (Python):
import sys
input = sys.stdin.readline

from collections import deque

def main(): 
    A,P = map(int,input().split())
    P+=A*3
    print(P//2)
if __name__ == "__main__":
    main()

Solution (Python):
a,p = map(int,input().split())
print((a*3+p)//2)

Solution (Python):
a, p = map(int, input().split())
print((a * 3 + p) // 2)

Solution (Python):
a,b=map(int,input().split())
c=a*3
d=c+b
e=d//2
print(e)

Solution (Python):
a,p=map(int,input().split())
print(int((a*3+p)/2))

Solution (Python):
a,b=map(int,input().split())
print((3*a+b)//2)

Solution (Python):
a, p = map(int, input().split())
print((3*a+p)//2)

Solution (Python):
a,b=map(int,input().split())
print((3*a+b)//2)

Solution (Python):
def main():
    import sys
    input = sys.stdin.readline
    A,P = map(int, input().split())
    print((3*A+P)//2)
    
main()

Solution (Python):
A, P = map(int, input().split())

print((3*A+P)//2)

Solution (Python):
a, p = map(int, input().split())
if 0 <= a <= 100 and 0 <= p <= 100:
    pie = ((a * 3) + p) // 2
    print(pie)
else:
    print('Invalid value')

Solution (Python):
A, P = map(int,input().split())
print((A*3+P) // 2)

Solution (Python):
def main():
    A, P = map(int, input().split())
    tot = A*3 + P
    return tot // 2

if __name__ == '__main__':
    print(main())

Solution (Python):
A, P = map(int, input().split())
print((A*3+P)//2)

Solution (Python):
A, P = map(int, input().split())
print (((A*3+P)//2))

Solution (Python):
a, p = map(int, input().split())
a *= 3
print((a+p)//2)

Solution (Python):
A,P = map(int,input().split());print((A*3+P)//2)

Solution (Python):

a, p = [int(el) for el in input().split(' ')]
pieces = a*3 + p
print(pieces // 2)

Solution (Python):
a,p=map(int, input().split())

kakera = a*3+p

pai = kakera // 2

print(pai)

Solution (Python):
n,m=map(int,input().split())
a=n*3+m
print(a//2)

Solution (Python):
A, P = map(int, input().split())
print((A*3 + P)//2)

Solution (Python):
A, P = map(int, input().split())
print((A * 3 + P) // 2)

Solution (Python):
a,p=map(int,input().split())
ans=int((3*a+p)/2)
print(ans)

Solution (Python):
A,P = map(int, input().split())
print((3*A+P)//2)

Solution (Python):
a,p = map(int,input().split())
print( ((a*3)+p)//2 )

Solution (Python):
import sys


def solve(A: int, P: int):
    return (3 * A + P) // 2


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  
    P = int(next(tokens))  
    ans = solve(A, P)
    if ans is not None:
        print(ans)

if __name__ == "__main__":
    main()

Solution (Python):
a, p = map(int, input().split())

print((a * 3 + p) // 2)

Solution (Python):
A, P = map(int, input().split())

P += A*3

print(P//2)

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

Solution (Python):
a,p = map(int, input().split())
pieces = a*3 + p
print(pieces//2)

Solution (Python):
A, P = map(int, input().split())
print((A*3+P)//2)

Solution (Python):
a, p = map(int, input().split())
print((3*a+p)//2)

Solution (Python):
a, p = map(int, input().split())
print((a * 3 + p) // 2)

Solution (Python):
import math
data = input().split()
A = int(data[0])
P = int(data[1])

P += A * 3
ans = math.floor(P / 2)

print(ans)

Solution (Python):
A, P = map(int, input().split())
P = P + A*3
print(P // 2)

Solution (Python):
A,P= map(int, input().split())

B=A*3


D=B+P
print(D//2)

Solution (Python):
l = list(map(int,input().split()))
a = l[0]
p = l[1]
print((3*a+p)//2)

Solution (Python):
a, b = map(int, input().split())

print((3*a + b)//2)

Solution (Python):

a, p = map(int, input().split())

piece = 3*a + p

print(piece // 2)

Solution (Python):

import sys


def solve(A: int, P: int):
    fragment = A * 3 + P
    print(int(fragment / 2))
    return



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  
    P = int(next(tokens))  
    solve(A, P)

if __name__ == '__main__':
    main()

Solution (Python):
import math
a,p = map(int,input().split())
food=a*3 + p
pi=food/2
print(math.floor(pi))

Solution (Python):
list1 = [i for i in input().split()]

num1 = int(list1[0])
num2 = int(list1[1])

print ((3*num1+num2)//2)

Solution (Python):
A,P = map(int,input().split())
print((A*3+P)//2)

Solution (Python):
n = list(map(int,input().split()))

s = n[0]*3+n[1]

print(int(s/2))

Solution (Python):


a, p = map(int, input().split())
print((a*3 + p)//2)

Solution (Python):
apple,appiece=[int(i) for i in input().split()]
appiece+=3*apple
print(appiece//2)

Solution (Python):
A, P = map(int, input().split())
print((3*A+P)//2)

Solution (Python):
a, p = map(int, input().split())
print((a * 3 + p) // 2)

Solution (Python):
a,b=map(int,input().split())
print((3*a+b)//2)

Solution (Python):
a, p = map(int, input().split())
print((3*a+p)//2)

Solution (Python):
A,P=input().split()
A,P=int(A),int(P)

print((A*3+P)//2)

Solution (Python):
a, p = map(int, input().split())
print((p + a * 3) // 2)

Solution (Python):
a,p= map(int,input().split())
pie=(3*a+p)//2
print(pie)

Solution (Python):



A, P = map(int, input().split())




print((A * 3 + P) // 2)

Solution (Python):
a,p=map(int,input().split())
ans=int((3*a+p)/2)
print(ans)

Solution (Python):
A, P = map(int, input().split())

print(int((A*3+P)/2))

Solution (Python):
A,P=map(int,input().split())
print(int((3*A+P)/2))

Solution (Python):
a, p = list(map(int, input().split()))

res = (a * 3 + p) // 2

print(res)

Solution (Python):
x,y=map(int,input().split())
res=(x*3+y)//2

print(res)

Solution (Python):
a, p = map(int, input().split())
print((a * 3 + p) // 2)

Solution (Python):

A,P = (int(x) for x in input().split())


print(int((3*A+P)/2))

Solution (Python):
A,P = map(int,input().split())
print((3*A+P)//2)

Solution (Python):
a,p=map(int,input().split())
p+=a*3
print(p//2)

Solution (Python):
def test():
    a,p = map(int,input().split())

    print(int(((a*3) + p )/ 2))


if __name__ == "__main__":
    test()

Solution (Python):
a,p = map(int, input().split())
parts = ((a*3)+p)
print(parts//2)

Solution (Python):
A, P = list(map(int, input().split()))
print("%d" %(((A * 3) + P)/ 2))

Solution (Python):
A,P=map(int,input().split())

print(int((A*3+P)/2))

Solution (Python):

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

Solution (Python):
A, P = map(int,input().split())
print((3 * A + P) // 2)

Solution (Python):
A,P = map(int,input().split())
print( (A*3+P)//2)

Solution (Python):
a, p = map(int, input().split())

n = a*3 + p
print(n//2)

Solution (Python):
a,p=map(int,input().split())
print((3*a+p)//2)

Solution (Python):
a, p = map(int, input().split())

k = 3 * a + p
print(k // 2)

Solution (Python):
a,p=map(int,input().split())
print((a*3+p)//2)

Solution (Python):
a, p = map(int, input().split())
print((3 * a + p)//2)

Solution (Python):
a, p = list(map(int, input().split()))
ap = a*3 + p
print(ap//2)

Solution (Python):
A,P=map(int,input().split())
Total=3*A+P
print(int(Total/2))

Solution (Python):
a,p=map(int,input().split())

ans=(a*3+p)//2
print(ans)

Solution (Python):
A,P = map(int,input().split())
print((A*3+P)//2)

Solution (Python):
a, p = map(int, input().split())
print((a * 3 + p) // 2)

Solution (Python):

input = input().split()


a = int(input[0])
b = int(input[1])


ans =int(( 3*a + b )/2)
print(ans)

Solution (Python):
a, b = list(map(int, input().split()))

print(int(((a * 3) + b) / 2))

Solution (Python):
a,p = map(int, input().split())
ans = 0

ans = int((a*3+p)/2)

print(ans)

Solution (Python):
A, P = map(int, input().split(" "))
print((A * 3 + P) // 2)

Solution (Python):
a,p=map(int,input().split())
print((a*3+p)//2)

Solution (Python):
A, P = map(int, input().split())
D = 3*A + P
print(D//2)

Solution (Python):
a, p = map(int,input().split())
print(int((a*3 + p)/2))

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


if __name__ == "__main__":
    print(solve())

Solution (Python):


def main():
    A, P = list(map(int, input().split()))
    return (3 * A + P) // 2

if __name__ == '__main__':
    print(main())

Solution (Python):
A,P=(int(x) for x in input().split())
print(int((3*A+P)/2))

Solution (Python):
a,p=map(int,input().split())
m=(3*a+p)%2
print(int((3*a+p-m)/2))

Solution (Python):
a, p = map(int, input().split())
print((a*3+p)//2)

Solution (Python):
a,p = map(int, input().split())
print(int((a*3+p)/2))

Solution (Python):
A,P= map(int, input().split())
print((3*A+P) // 2)

Solution (Python):
A,P= map(int, input().split())
B=(3*A+P) // 2
print(B)

Solution (Python):
a,p = map(int,input().split())

print((a*3+p)//2)

Solution (Python):
a,p = map(int,input().split())
print((3*a + p)//2)

Solution (Python):
a,p=[int(x) for x in input().split()]
print((a*3+p)//2)

Solution (Python):
a,p= map(int,input().split())
print((a*3+p)//2)

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

Solution (Python):
a, p = map(int, input().split())
print((a*3+p)//2)

Solution (Python):
A, P = map(int, input().split())

print((A * 3 + P) // 2)

Solution (Python):
a,p=map(int, input().split())

print((3*a+p)//2)

Solution (Python):
a,p=map(int,input().split())
print((a*3+p)//2)

Solution (Python):
N = input().split()
A = int(N[0])
P = int(N[1])

print((A * 3 + P) // 2)

Solution (Python):
a, p = map(int, input().split())
print((a * 3 + p) // 2)

Solution (Python):
A, P = map(int,input().split())
print((A * 3 + P) // 2)