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())
num = (a*3 + p) // 2
print(num)

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

Solution (Python):
if __name__ == '__main__':
  A, P = map(int, input().split())
  pieces = 3 * A + P
  apple_pi = pieces // 2
  
  print(apple_pi)

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

Solution (Python):
a, p = (int(i) for i in 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] = [int(i) for i in input().split()]

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

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

Solution (Python):
p=input().rstrip().split(' ')
a=int(p[0])*3
b=int(p[1])+a
print(b//2)

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

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

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

Solution (Python):
a,b = map(int,input().split())
b += a*3
print(int(b/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 = [int(i) for i in input().split()]
print((P + A*3)//2)

Solution (Python):
import math

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

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

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

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

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


if __name__ == '__main__':
    main()

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

print(pie)

Solution (Python):
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, b = map(int, input().split())
a = a * 3 + b
print(a // 2)

Solution (Python):


a,p = (int(x) for x in 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())
a = (A * 3 + P) // 2
print(a)

Solution (Python):
import sys
import bisect
from collections import defaultdict

ans=0

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

ans=(3*n+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((3*A +  P)//2)

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

Num = (int(A)*3) + int(P)

Pie = Num / 2

print(int(Pie))

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

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

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

P += 3 * A

print(P // 2)

Solution (Python):
apples , pieces = input().split()
apples = int(apples)
pieces = int(pieces)

pieces = pieces + (apples * 3)

pies = int(pieces/2)
print(pies)

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

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

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

Solution (Python):
import math

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

if 0<=A and P<=100 :
    Pi = math.floor((3*A +P)/2)
    print(Pi)
else :
    print("ERROR")

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

print(int((stdin[0]*3+stdin[1]) / 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())

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

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

print(P//2)

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

Solution (Python):
import sys

A, P = map(lambda x: int(x), sys.stdin.readline().split(" "))

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

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

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

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

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

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

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

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

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

total_num = 3*A + P

print(total_num//2)

Solution (Python):
''' بِسْمِ اللَّهِ الرَّحْمَٰنِ الرَّحِيمِ '''

from collections import Counter
gi = lambda : list(map(int,input().strip().split()))
a, b = gi()
a = a*3 + b
print(a//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):
import math
a,p = map(int,input().split())
s = a*3 + p
print (math.floor(s/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())
c=(a*3)+p
pi=c//2
print(str(pi)+'\n')

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())
b=a*3
print((p+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):
n, m = list(map(int, input().split(" ")))
print((m + n * 3) // 2)

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

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

Solution (Python):

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

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

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

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

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

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

Solution (Python):
apple1, apple2 = map(int, input().split())
apple_pie = (apple1 * 3 + apple2) // 2
print(apple_pie)

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 = (int(x) for x in input().split())

pie=0

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

print(pie)

Solution (Python):
goukei = input().split()
apple = int(goukei[0])
piece = int(goukei[1])

maxpiece = apple * 3 + piece
pie = maxpiece / 2

print(int(pie))

Solution (Python):
import numpy as np
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=input().split()
print((int(A)*3+int(P))//2)

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

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())
b = 3*a
print((b+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())
A = A*3
print((A+P)//2)

Solution (Python):
from sys import stdin

A, P = [int(x) for x in stdin.readline().rstrip().split()]

tips = A * 3 + P
pie = tips // 2

print(pie)

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

c = a * 3 + p

print(c // 2)

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

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

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

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

P += A*3

pie = int(P/2)

print(pie)

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

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

Solution (Python):
def apple_pie(A: int, P: int)->int:
    return (A*3 + P)//2


if __name__ == "__main__":
    A, P = map(int, input().split())

    ans = apple_pie(A, P)
    print(ans)

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((3*A + 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,raw_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())

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

print(ans)

Solution (Python):

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

Solution (Python):
def main():
	'''
	メイン関数
	'''
	
	A, P = map(int, input().split())

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

	print(pie)

if __name__ == '__main__':
	main()

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):
from functools import reduce

print(reduce(lambda x,y: 3*x+y, list(map(int, input().split())))//2)

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

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

Solution (Python):



from sys import stdin
A, P = [int(x) for x in stdin.readline().rstrip().split()]
P = P + A * 3
print(int(P/2))

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

P = P + 3*A
count = 0
while P>=2:
    P = P-2
    count = count + 1
print(count)

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(((A*3)+P)//2)

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

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

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

Solution (Python):

import sys
input = sys.stdin.readline

a, p = map(int, input().split())
ans = (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())
s = 3*a + p
print(int(s/2))

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

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

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

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

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

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

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())
P += 3*A
print(P//2)

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

Solution (Python):
import math
from functools import reduce
from collections import deque

def s(generator, splitter, mapper):
    return [ mapper(s) for s in generator().split(splitter) ]


def get_nums_l():
    return [ int(s) for s in input().split(" ")]


def get_nums_n(n):
    return [ int(input()) for _ in range(n)]

a,p = get_nums_l()

p += a*3

print(p//2)

Solution (Python):
s = input().split()
t=int(s[0])*3+int(s[1])
print(t//2)

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

Solution (Python):

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

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())
total = 3 * A + P
print(int(total/2))

Solution (Python):
A, P = [int(_) for _ in input().split()]

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

print(result)

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

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

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

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

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

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 = [int(i) for i in input().split()]
print((3*a+p)//2)

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

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

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

Solution (Python):
import sys

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 = input().split()
print(int((int(A[0])*3+int(A[1]))/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((a*3+p)//2)

Solution (Python):
a,p=map(int,input().split())
print(int((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):










import sys


def get_array(): return list(map(int, sys.stdin.readline().split()))


def get_ints(): return map(int, sys.stdin.readline().split())


def input(): return sys.stdin.readline().strip()


def main():
    a, p = get_ints()
    p += a * 3
    print(p // 2)


if __name__ == "__main__":
    main()

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

Solution (Python):
import math, string, itertools, fractions, heapq, collections, re, array, bisect, copy, functools, random
import sys
from collections import deque, defaultdict, Counter; from heapq import heappush, heappop
from itertools import permutations, combinations, product, accumulate, groupby
from bisect import bisect_left, bisect_right, insort_left, insort_right
from operator import itemgetter as ig
sys.setrecursionlimit(10 ** 7)
inf = 10 ** 20; INF = float("INF"); ans = 0; tmp = 0; ansli = []; tmpli = []; candili = []
eps = 1.0 / 10 ** 10; mod = 10 ** 9 + 7
dd = [(-1, 0), (0, 1), (1, 0), (0, -1)]; ddn = dd + [(-1, 1), (1, 1), (1, -1), (-1, -1)]; ddn9 = ddn + [(0, 0)]
"""for dx, dy in dd:
        nx = j + dx; ny = i + dy
            if 0 <= nx < w and 0 <= ny < h:"""
def wi(): return list(map(int, sys.stdin.readline().split()))
def wip(): return [int(x) - 1 for x in sys.stdin.readline().split()]
def ws(): return sys.stdin.readline().split()
def i(): return int(sys.stdin.readline())
def s(): return input()
def hi(n): return [i() for _ in range(n)]
def hs(n): return [s() for _ in range(n)]
def mi(n): return [wi() for _ in range(n)]
def mip(n): return [wip() for _ in range(n)]
def ms(n): return [ws() for _ in range(n)]

a, p = wi()
print((3 * a + p) // 2)

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

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

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

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

Solution (Python):
A,P=map(int,input().split())
num=3*A+P
print(num//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 = (3 * A + P) // 2
print(ans)

Solution (Python):
import sys
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) = (int(i) for i in input().split(" "))
print(int((A*3+P)/2))

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

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

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

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

Solution (Python):

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

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

Solution (Python):

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

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

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())

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

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

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

Solution (Python):
apple, flagment = map(int, input().split(' '))
print(int(((apple * 3) + flagment)/2))

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

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

Solution (Python):
import math
a,p = map(int, input().split())
ans = math.floor((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())
ans=(3*a+p)//2
print(ans)

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

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

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

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

print('{}'.format(ans))

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(int(n/2))

Solution (Python):
x = input()
y = x.split(" ")

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

b = b + a * 3

print(int(b/2))

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

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

Solution (Python):
A, P = map(int, input().split())
apple_fragments = A * 3 + P
print(apple_fragments // 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())
cnt = 3*a+p
ans = cnt//2
print(ans)

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

pieces = 3*A + P

print(pieces//2)

Solution (Python):



INPUT = list(map(int,input().split()))

A,P = INPUT[0],INPUT[1]


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

Solution (Python):


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

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

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

Solution (Python):

import sys
read = sys.stdin.readline


def read_ints():
    return list(map(int, read().split()))


def read_a_int():
    return int(read())


def read_matrix(H):
    '''
    H is number of rows
    '''
    return [list(map(int, read().split())) for _ in range(H)]


def read_map(H):
    '''
    H is number of rows
    文字列で与えられた盤面を読み取る用
    '''
    return [read()[:-1] for _ in range(H)]


def read_col(H, n_cols):
    '''
    H is number of rows
    n_cols is number of cols

    A列、B列が与えられるようなとき
    '''
    ret = [[] for _ in range(n_cols)]
    for _ in range(H):
        tmp = list(map(int, read().split()))
        for col in range(n_cols):
            ret[col].append(tmp[col])

    return ret


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

Solution (Python):
a, b = map(int, input().split())
c = b // 2
if b >= 2:
  d = b % 2
else:
  d = 0
e = a * 3
f = e + d
g = f // 2
print(c + g)

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

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

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

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

s = a * 3 + p

print(s//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 = list(map(int, input().split()))
P += 3*A
print (P//2)

Solution (Python):

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

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

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

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

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

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 = p+a
n = p//2
print(n)

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

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

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

p=p+a*3

print(p//2)

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

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

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

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

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

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

print(ans)

Solution (Python):
N, K = map(int, input().split())
N = N * 3
app_count = (N + K) // 2
print(app_count)

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

Solution (Python):


a, p = map(int, input().split())
total = a*3 +p

print(int(total/2))

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

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

Solution (Python):
A,P=map(int,input().split())
ans,maru,kakera = 0,0,0
def is_even(num):
    return num % 2 == 0
maru=(3*A)//2
if P==0:
    kakera=0
else:
    if is_even(A) == False and is_even(P) == False:
        kakera = P//2+1
    else:
        kakera = P//2
ans=maru+kakera
print(ans)

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((3 * A + P) // 2 )

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

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

Solution (Python):
import math
A, P = map(int, input().split())
print(math.floor((A*3+P)/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((3*A + P)// 2)

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

Solution (Python):

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


if __name__ == '__main__':
    main()

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((3*a+p)//2)

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

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

Solution (Python):
def num_of_applepie(apple, apple_frag):
    return (apple*3 + apple_frag) // 2


def main():
    a, p = map(int, input().split())
    print(num_of_applepie(a, p))

main()

Solution (Python):

def IL(): return list(map(int,input().split()))
def SL(): return input().split()
def I(): return int(input())
def S(): return list(input())
a,p=IL()
print((3*a+p)//2)

Solution (Python):
A, B = map(int, input().split())
kakera = A*3 + B
print(int(kakera/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,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())
P+=A*3
print(int(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())
print((3*a+p)//2)

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

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


print(ans)

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

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

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


if __name__ == '__main__':
    main()

Solution (Python):
import numpy as np
appleNum, partsNum = list(map(int,input().split()))
print(int((appleNum*3+partsNum)/2))

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

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

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

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

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

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

Solution (Python):






import sys
import math
import array


class mymath:
    
    pi = 3.14159265358979323846264338

    
    def pnum_eratosthenes(self, n):
        ptable = [0 for i in range(n+1)]
        plist = []

        for i in range(2, n+1):
            if ptable[i]==0:
                plist.append(i)
                for j in range(i+i, n+1, i):
                    ptable[j] = 1
        return plist

    
    def gcd(self, a, b):
        if b == 0:
            return a
        return self.gcd(b, a%b)

    
    def lcm(self, a, b):
        return (a*b)//self.gcd(a,b)

mymath = mymath()


class output:
    
    def list(self, l):
        l = list(l)
        print(" ", end="")
        for i, num in enumerate(l):
            print(num, end="")
            if i != len(l)-1:
                print(" ", end="")
        print()

output = output()
















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

if __name__ == '__main__':
    main()

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

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

Solution (Python):
inputa = list(map(int, input().split()))
num = inputa[0] * 3 + inputa[1]
print(num // 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())

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

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())

n=a*3

p=p+n

print(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((p+3*a)//2)

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

result = int((A*3+P)/2)
print(str(result))

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

amount = A * 3 + P

print(amount // 2)

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

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

Solution (Python):
A,P=[int(x) for x in input().split()]

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

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

ap = A*3 + P

print(ap//2)

Solution (Python):

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

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

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())

apple_cut = A * 3

apple_pie = (apple_cut + P) /2
                 
print(int(apple_pie))

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

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

Solution (Python):
a=[int(i) for i in input().split()]
a[1]+=a[0]*3
print(int(a[1]/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(int((A*3+P)/2))

Solution (Python):
[A,B] = [int(e) for e in input().split()]

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

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

def calculate(a, p):
    n = 0
    n += (a*3 + p)/2
    print(int(n))

def main(a, p):
    if __name__ == "__main__":
        calculate(a, p)

main(a, p)

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

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

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

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

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

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

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

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

P += A * 3

print(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())
A = round((A * 3 + P) // 2)
print(A)

Solution (Python):
w = input()
s = w.split()

apple = int(s[0])
piece = int(s[1])


answer = int(( 3 * apple + piece - (( 3 * apple + piece ) % 2 )) /2)

print(answer)

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

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

apple_slices = A * 3 + P

print(apple_slices // 2)

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

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

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)