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: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

a_p=a*3
p_total=a_p+p
print(p_total//3)

Submission status: Wrong Answer

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

a_p=a//3
p_total=a_p+p
print(p_total//3)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
T,O = map(int,input().split())
T *= 3

if (T+O) /2 > 0:
  print((T+O)/2)
else:
  print("0")

Submission status: Wrong Answer

Solution code:
T,O = map(int,input().split())
T *= 3

print((T+O)/2)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

piece = A * 3
pie = piece // 2
print(pie)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if(a != 0):
    a -= 1
    p += 3

print(int(p / 2))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A = 42
B = 26

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

Submission status: Wrong Answer

Solution code:
import numpy as np
N, M = map(int,input().split())

k = [0]*M
N_ = np.zeros((N,M))

print(N_.shape)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from collections import defaultdict, deque
import sys


def LI(): return list(map(int, sys.stdin.buffer.readline().split()))
def I(): return int(sys.stdin.buffer.readline())
def LS(): return sys.stdin.buffer.readline().rstrip().decode('utf-8').split()
def S(): return sys.stdin.buffer.readline().rstrip().decode('utf-8')
def IR(n): return [I() for i in range(n)]
def LIR(n): return [LI() for i in range(n)]
def SR(n): return [S() for i in range(n)]
def LSR(n): return [LS() for i in range(n)]
def SRL(n): return [list(S()) for i in range(n)]
def MSRL(n): return [[int(j) for j in list(S())] for i in range(n)]


a, p = LI()
sums = 3 * a + p
print(sums // 3)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
from bisect import bisect_left

n,q = map(int, input().split())
lines = sys.stdin.readlines()
c = []
for line in lines[:n]:
    s,t,x = map(int, line.split())
    c.append((x,s,t))
c.sort()
d = list(map(int,lines[n:]))

ans = [-1] * q
skip = [-1] * q
for x,s,t in c:
    ss = bisect_left(d,s-x)
    tt = bisect_left(d,t-x)
    while ss < tt:
        if skip[ss] == -1:
            ans[ss] = x
            skip[ss] = tt
            ss += 1
        else:
            ss = skip[ss]
print(*ans,sep='\n')

Submission status: Wrong Answer

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

if ( A * 3 + P ) % 2 == 0:
  print(( A * 3 + P ) / 2 )
else:
  print( int(( A * 3 + P - 1) / 2 ))

Submission status: Wrong Answer

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


if __name__ == '__main__':

    ABC_128_A()

Submission status: Wrong Answer

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


if __name__ == '__main__':

    ABC_128_A()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

B=A*3
Ans=B//2

print(Ans)

Submission status: Wrong Answer

Solution code:
import math

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

x = 3*A + P

print(math.floor(x/2))

Submission status: Wrong Answer

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

cnt = a * 3

print(int(cnt/2))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(A_N/2)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = input().split(" ")
a = int(x[0])
b = int(x[1])

r = a * 3 + b

print(r // 3)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

si = lambda: input()
ni = lambda: int(input())
nm = lambda: map(int, input().split())
nl = lambda: list(map(int, input().split()))
a,p=nm()
print((3*a//2))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Ringonokakera = (P+(A*3))

print(Ringonokakera//3)

Submission status: Wrong Answer

Solution code:
arguments = input()
arguments_as_list = arguments.split(" ")
list_to_integer = list(map(int, arguments_as_list))
apples = list_to_integer[0]
pieces = list_to_integer[1]
 
print((apples//3 + pieces)//2)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b=input().split()
 
apple_peace = int(a) * 3
total_peace = int(b) + int(apple_peace)
 
if total_peace > 1:
  pie = total_peace / 2
  print(int(pie))

Submission status: Wrong Answer

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

apple_peace = int(a) * 3
total_peace = int(b) + int(apple_peace)

if total_peace > 1:
  pie = total_peace / 2
  print(pie)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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


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

Submission status: Wrong Answer

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


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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys

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

print((a*3)//2)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

B=P//2

print(A+B)

Submission status: Wrong Answer

Solution code:
from collections import deque

Submission status: Wrong Answer

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

c = 3*a + p

if c%2 == 0:
    print(c/2)
else:
    print(c//2)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
A, P = map(int, input().split())
D = 3*A + P
if D % 2 == 0:
    print(D/2)
else:
    print(round(D/2))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

def main():
	n, k = map(int, input().strip().split())
	v = list(map(int, input().strip().split()))
	ans = 0
	for a in range(k+1):
		for b in range(k-a+1):
			if a + b > n:
				continue
			t = sorted(v[:a] + v[n-b:])
			for i in range(k-a-b):
				if i < len(t) and t[i] < 0:
					t[i] = 0
			ans = max(ans, sum(t))
	print(ans)
if __name__ == '__main__':
	main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

pie = int( P + A/3 )
print(pie)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#https://atcoder.jp/contests/abc128/tasks/abc128_a
a,p = [int(i) for i in input().split()]
print(int(a * 3 + p))

Submission status: Wrong Answer

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

main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
if a >= 13:
    print(b)
elif a >= 6:
    print(b // 2)
else:
    print (0)

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
if a>=13:
  print(b)
elif a>=6:
    print(b//2)
else:
    print(0)

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
if a>=13:
  print(b)
elif a>=6:
    print(b/2)
else:
    print(0)

Submission status: Wrong Answer

Solution code:
i = list(map(int,input().split()))
A = i[0]
B = i[1]
if A>=13:
  print(B)
elif A>=6:
    print(B/2)
else:
    print(0)

Submission status: Wrong Answer

Solution code:
i = list(map(int,input().split()))
A = i[0]
B = i[1]
C = B/2
if A>=13:
  print(B)
elif A>=6 and A<=12:
    print(C)
else:
    print(0)

Submission status: Wrong Answer

Solution code:
i = list(map(int,input().split()))
A = i[0]
B = i[1]
C = B/2
if A>=13:
  print(B)
elif A<=5:
    print(0)
else:
    print(C)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

P = P + A * 3

count = 0
for i in range(P):
    if P < 2:
        print(count)
        break
    else:
        P -= 2
        count += 1
        continue

Submission status: Wrong Answer

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

P = P + A * 3

count = 0
for i in range(100):
    if P < 2:
        print(count)
        break
    else:
        P -= 2
        count += 1
        continue

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(a*3//2)

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

a=((P + A * 3) / 2)
print(round(a,0))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
apple, frag = map(int, input().split())

pie = (apple*3) + frag / 2

print(pie)

Submission status: Wrong Answer

Solution code:
import math
apple_one, apple_kakera = (int(i) for i in input().split())  
apple_kakera += apple_one * 3
print(math.floor(apple_one / 2) )

Submission status: Wrong Answer

Solution code:
import math


def main(x,y):
    P = 3*x+y
    num = math.ceil(P/2)
    print(num)


    
x, y = map(int,input().split())
main(x,y)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
# A 
# Apple Pie

a_p = input()

a = a_p.split(" ")[0]
p = a_p.split(" ")[1]



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

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
C = (3*A+B) / 2
print("{}".format(C))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Wed Jun  5 09:53:48 2019

@author: Enya
"""

input_code = input()
A = int(input_code.split()[0])
P = int(input_code.split()[1])

X = A*3 + P
N = 0

if A>3:
    N = A//3

else:
    N = 0
    
print(N)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

pi = round((A*3 + P)/2)

print(pi)

Submission status: Wrong Answer

Solution code:
A=3
P=4
c=(A*3+P)/2
D=int(c)
print(c)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A,P=input().split()
a=int(A)
p=int(P)
m=a*3+p
n=m/2
import math
math.floor(n)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import numpy as np

Submission status: Wrong Answer

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

if (a*3+p) % 2 == 1:
    print((a*3+p-1)/2)
else:
    print((a*3+p)/2)

Submission status: Wrong Answer

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

result =( A * 3 + P ) / 2

print(result)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

apple_crumb = A * 3

nbr_of_applepie = round((apple_crumb + P) / 2)

print(nbr_of_applepie)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
print("test")

Submission status: Wrong Answer

Solution code:
a=input()

print("test")

Submission status: Wrong Answer

Solution code:
#import pandas as pd

#N=int(input())
print("Test")

Submission status: Wrong Answer

Solution code:

print("test")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
print(0)

Submission status: Wrong Answer

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

P += A*3

if(P%2==0):
    S = P/2
else:
    S = P/2-0.5

print(S)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

ans = round(ans)

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

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

Submission status: Wrong Answer

Solution code:
0

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
ap=input()
print(ap)
ap=ap.split(' ')
a=eval(ap[0])*3;
p=eval(ap[0]);
print((int)((a+p)/2))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

print(A)
print(P)

P += A*3

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

print(pie)

Submission status: Wrong Answer

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

print(A)
print(P)

P += A*3

print(P)
pie = int(P/3)

print(pie)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

num_of_apples = A +round(P//3)

num_of_applepies = num_of_apples // 2
print(num_of_applepies)

Submission status: Wrong Answer

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

num_of_apples = A +round(P//3)

print(num_of_apples)

Submission status: Wrong Answer

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

N = A + P//3

print(N)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def main(a,p):
  b=(a*3+p)/3
  return b

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
# スペース区切りの整数の入力
import sys
s = sys.stdin.readlines()
N, Q = map(int, s[0].split())
x_dict = {}
max_x = 0
for e in s[1:N]:
    S, T, X = map(int, e.split())
    if X in x_dict:
        for i in range(S - 1, T):
            x_dict[X].add(i + 0.5)
    else:
        x_dict[X] = {S - 0.5}
        for i in range(S, T):
            x_dict[X].add(i + 0.5)
    if max_x < X:
        max_x = X
for e in s[N + 1:]:
    D = int(e)
    place = 0
    inf_flg = 1
    for i in range(max_x + 1):
        time = D + i + 0.5
        if place in x_dict:
            if time in x_dict[place]:
                print(place)
                inf_flg = 0
                break
        place += 1
    if inf_flg == 1:
        print(-1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def api(a,p):
  c=a*3+p
  pi=c//2
    
  return pi

Submission status: Wrong Answer

Solution code:
def pi(a,p):
  c=a*3+p
  pi=c//2
    
  return pi

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def pi(a,p):
 
  return (a*3+p)//2

Submission status: Wrong Answer

Solution code:
def pi(a,p):
  c=(a*3)+p
  pi=c//2
  print(c,pi)  
  return pi

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import random

Apple = random.randint(0,101)
Piece = random.randint(0,101)
Pie = 0

def BreakApple():
    global Apple
    while Apple >=1 :
        Apple -= 1
        global Piece
        Piece += 3

def MakePie():
    global Piece
    while Piece >= 2:
        Piece -= 2
        global Pie
        Pie += 1

BreakApple()
MakePie()
print(Pie)

Submission status: Wrong Answer

Solution code:
import random

random.seed(1)
Apple = random.randint(0,101)
Piece = random.randint(0,101)
Pie = 0

def BreakApple():
    global Apple
    while Apple >=1 :
        Apple -= 1
        global Piece
        Piece += 3

def MakePie():
    global Piece
    while Piece >= 2:
        Piece -= 2
        global Pie
        Pie += 1

BreakApple()
MakePie()
print(Pie)