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: Accepted

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

pie = ( A*3 + P ) / 2 

import math

print(math.floor(pie))

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a, p = map(int, input().split())
ap = 0

p += a * 3
ap = p // 2

print(ap)

Submission status: Accepted

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

b = a*3 + p

c = int(b/2)

print(c)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x, y = [int(i) for i in input().split()]
print(int((x*3+y)/2))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
inp = input('')
a, p = [int(i) for i in inp.split(' ')]
# print(inputlist)
# print(a,p)
numberofpies = p//2
p=p%2
p+=(a*3)
numberofpies+=(p//2)
print(numberofpies)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys
sys.setrecursionlimit(10000)
INF = 1<<32


def solve(A: int, P: int):
    print((3*A+P)//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))  # type: int
    P = int(next(tokens))  # type: int
    solve(A, P)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import math

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

print(num)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys


def solve(A: int, P: int):
    piece = A * 3 + P
    print(piece // 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))  # type: int
    P = int(next(tokens))  # type: int
    solve(A, P)


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import math
def main():
    A,P = map(int, input().split())
    pieces = A*3 + P
    if pieces < 3:
        print(0)
        return
    apple_pie = math.floor(pieces/2)
    print(apple_pie)

if __name__ == "__main__":
    main()

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    a,p = [int(x) for x in input().split()]

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input().split()
apple = int(N[0])
pie = int(N[1])
peace = 3 * apple + pie
all = peace // 2
print(all)

Submission status: Accepted

Solution code:
def apple():
    inStr = input().split()
    a = int(inStr[0])
    p = int(inStr[1])
    ans = (a * 3 + p) / 2
    print(int(ans))


def dance_beta():
    s = input()

    odd_keep = []
    even_keep = []

    for i in range(len(s)):
        if ((i + 1) % 2 == 1):  # WHEN THE LETTER IS A ODD NUMBER
            odd_keep.append(s[i])
        else:                   # WHEN THE LETTER IS A EVEN NUMBER
            even_keep.append(s[i])

    if ("R" in odd_keep and "L" in even_keep):
        print("Yes")
    else:
        print("No")


apple()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

pie = a*3+p

print(pie//2)

Submission status: Accepted

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

Submission status: Accepted

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


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

Submission status: Accepted

Solution code:
INPUT = list(map(int,input().split()))
A = INPUT[0]
P = INPUT[1]

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

Submission status: Accepted

Solution code:
#2019/10/04
A, P = map(int, open(0).read().split())
print( (A*3+P)//2 )

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

input = sys.stdin.readline


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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-


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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
from sys import stdin

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
A,P=map(int,input().split())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

p_from_a = 3 * a

print( (p_from_a + p ) // 2 )

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

x = (a*3+p)/2

print(math.floor(x))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#14:16
a,b = map(int,input().split())
print( (3 * a + b) // 2 )

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
a, p = map(int, input().split())
print((a*3+p)//2)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,p=map(int,input().split())
#林檎1個は、砕くことで林檎の欠片3個になります。
#また、林檎の欠片2個を鍋で煮込むことで、アップルパイが1個作れます。
print((a*3+p)//2)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

P = P + 3 * A

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

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

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

Submission status: Accepted

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

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

total=A*3+P

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

print(pie)

Submission status: Accepted

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

if __name__ == "__main__":
    f_a()

Submission status: Accepted

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

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


main()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(pie)

Submission status: Accepted

Solution code:
from math import floor


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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
from math import floor

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

k = A * 3 + P

print(k // 2)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
input=sys.stdin.readline

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

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# ABC 128_a.py
a, p = [int(el) for el in input().split(' ')]
pieces = a*3 + p
print(pieces // 2)

Submission status: Accepted

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

kakera = a*3+p

pai = kakera // 2

print(pai)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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))  # type: int
    P = int(next(tokens))  # type: int
    ans = solve(A, P)
    if ans is not None:
        print(ans)

if __name__ == "__main__":
    main()

Submission status: Accepted

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

P += A*3

print(P//2)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

B=A*3


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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:

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

piece = 3*a + p

print(piece // 2)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys


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


# Generated by 1.1.4 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  # type: int
    P = int(next(tokens))  # type: int
    solve(A, P)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

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

print(int(s/2))