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:
#coding:utf-8
d=[int(i) for i in input().split()]
print(int((d[0]*3+d[1])/2))

Submission status: Accepted

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

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

print(res)

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

Solution code:
import math
def resolve():
    (a, p) = list(map(int, input().split(" ")))
    print(math.floor((3*a + p)/2))
    
if '__main__' == __name__:
    resolve()

Submission status: Accepted

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

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

print(re)

Submission status: Accepted

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

Submission status: Accepted

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

ans = 0

ans = (nums[0]*3 + nums[1])/2

print(int(ans))

Submission status: Accepted

Solution code:
import math
inp = input().split(" ")
a = int(inp[0])
p = int(inp[1])

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

Submission status: Accepted

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

print((a[0]*3+a[1])//2)

Submission status: Accepted

Solution code:
A,P=input().split()
A=int(A)
P=int(P)
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 = (int(x) for x in input().split())
pie = ((A * 3) + P) // 2
print(pie)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
inp = input()
lis = inp.split()
ap = int(lis[0])
a = int(lis[1])
if (ap*3+a < 2):
    print(0)
else:
    print((ap*3+a)//2)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

A = int(A)
P = int(P)

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

print(ans)

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

p += a * 3

print(p // 2)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

print(pie)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#A

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

Submission status: Accepted

Solution code:
import sys
import bisect
from collections import defaultdict

ans=0
#n=int(input())
n,p=map(int,input().split())
#a=[(1,int(i)) for i in input().split()]
ans=(3*n+p)//2

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

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

Pie = Num / 2

print(int(Pie))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

P += 3 * A

print(P // 2)

Submission status: Accepted

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

pieces = pieces + (apples * 3)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
A, P = map(int, sys.stdin.readline().strip().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:
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")

Submission status: Accepted

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

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

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

Submission status: Accepted

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

print(P//2)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

total_num = 3*A + P

print(total_num//2)

Submission status: Accepted

Solution code:
''' بِسْمِ اللَّهِ الرَّحْمَٰنِ الرَّحِيمِ '''
#codeforces546B
from collections import Counter
gi = lambda : list(map(int,input().strip().split()))
a, b = gi()
a = a*3 + b
print(a//2)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
A, P = map(int, input().rstrip().split())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(int(pie))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin

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

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

print(pie)

Submission status: Accepted

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

c = a * 3 + p

print(c // 2)

Submission status: Accepted

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

P += A*3

pie = int(P/2)

print(pie)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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((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:
#abc128a

a,p=map(int,raw_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())

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

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

	print(pie)

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

Submission status: Accepted

Solution code:
from functools import reduce

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# sys.stdin.readline()
import sys
input = sys.stdin.readline

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
a, p = map(int, input().split())
print((3 * a + p) // 2)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

# 改行区切りの入力をn行読み込んで数値リストにして返します。
def get_nums_n(n):
    return [ int(input()) for _ in range(n)]

a,p = get_nums_l()

p += a*3

print(p//2)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(result)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#https://atcoder.jp/contests/abc128
# -*- coding: utf-8 -*-

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

Submission status: Accepted

Solution code:
#	!/usr/bin/env python3
#	encoding: UTF-8
#	Modified: <26/May/2019 06:05:50 PM>


#	✪ H4WK3yE乡
#	Mohd. Farhan Tahir
#	Indian Institute Of Information Technology (IIIT), Gwalior


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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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()]#WideIntPoint
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)]#HeightString
def mi(n): return [wi() for _ in range(n)]#MatrixInt
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)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#coding:utf-8
A,P = map(int,input().split())
AP = A * 3 + P
pie = AP / 2
print(int(pie))

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

n = a * 3 + p

print(int(n/2))

Submission status: Accepted

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

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

b = b + a * 3

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

pieces = 3*A + P

print(pieces//2)

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

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

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

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# スペース区切りの整数の入力
A, P = map(int, input().split())
# 出力
print((3 * A + P) // 2)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# 入力が10**5とかになったときに100ms程度早い
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)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

s = a * 3 + p

print(s//2)

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

p=p+a*3

print(p//2)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#bin/usr/env python3

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

print(int(total/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())
t = a * 3 + p
s = t // 2
print(s)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#ABC128-A
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)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, p = map(int, input().split())
pieces = a * 3 + p
print(pieces // 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 = input().strip().split()

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


print(ans)

Submission status: Accepted

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

Submission status: Accepted

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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