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



Sample input:
1 3


Sample output:
3

Submission status: Runtime Error

Solution code:
def pie(A, P):
    P_cra = A*3

    P_all = P_cra + P

    pie = P_all//2

    print(pie)

A, P = input(), input()
pie(A, P)

Submission status: Runtime Error

Solution code:
n = int(input().split())

num1 =  ( int(n[0]) * 3 + int(n[1]) ) // 2

print(num1)

Submission status: Runtime Error

Solution code:
n = int(input().split())

num1 =  ( n[0] * 3 + n[1] ) // 2

print(num1)

Submission status: Runtime Error

Solution code:
a, p = map(int, input().suplit())

kakera = 3 * a + p
pie = kakera // 2
print(pie)

Submission status: Runtime Error

Solution code:
X=[input() for i in range(2)]
A,P=X[0],X[1]

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

Submission status: Runtime Error

Solution code:
app, ap_chip = map(int,list(input().split()))


ap_chip += app*3


print(int(ap_chip%2)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys
from functools import reduce
def a():
    p = [[int(t) for t in r.split(' ')] for r in sys.stdin.read().split('\n') if r != '']
    A, P = p[0]
    print(int((A*3+P)/2)
a()

Submission status: Runtime Error

Solution code:
a,p=int(input())
print((3*a+p)//2)

Submission status: Runtime Error

Solution code:
a, p = (int(v) for f in input().split(' '))
print((a*3 + p)//2)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
x=input()
xx=x.split()
A=xx[0]
P=xx[1]
a=(A*3+P)/2
print(a)

Submission status: Runtime Error

Solution code:
a,b=map(int,input(),split())
n=int((a*3+b)/2)

print(n)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def lcm(x, y):
    return (x * y) // math.gcd(x, y)

print(lcm(a, b))

Submission status: Runtime Error

Solution code:
a, b = [int(i) for input().split()]
c = (a * 3 + b) // 2
print(c)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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