Problem:


Score : 100 points

Problem Statement

Takahashi, who is A years old, is riding a Ferris wheel.

It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)

Find the cost of the Ferris wheel for Takahashi.

Constraints

0 ≤ A ≤ 100

2 ≤ B ≤ 1000

B is an even number.

Input

Input is given from Standard Input in the following format:

A B

Output

Print the cost of the Ferris wheel for Takahashi.

Sample Input 1

30 100

Sample Output 1

100

Takahashi is 30 years old now, and the cost of the Ferris wheel is 100 yen.

Sample Input 2

12 100

Sample Output 2

50

Takahashi is 12 years old, and the cost of the Ferris wheel is the half of 100 yen, that is, 50 yen.

Sample Input 3

0 100

Sample Output 3

0

Takahashi is 0 years old, and he can ride the Ferris wheel for free.



Sample input:
30 100


Sample output:
100

Submission status: Wrong Answer

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

if A >= 13:
    print(B)
elif 6 <= A and A <= 12:
    print(B/2)
elif A <= 5:
    print(0)

Submission status: Wrong Answer

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

if A >= 13:
    print(B)
elif 6 <= A and A <= 12:
    print(B/2)
else:
    print(0)

Submission status: Wrong Answer

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

if A >= 13:
    print(str(B))
elif 6 <= A and A <= 12:
    print(str(B/2))
else:
    print(str(0))

Submission status: Wrong Answer

Solution code:
A,B = list(map(int,input().split(' ')))
print(int(0 if A<6 else B/2 if A<3 else B))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def calculate(age, price):
  if age >= 13:
    return price
  elif age >= 6:
    return price / 2
  else:
    return 0
  
  
import sys
 
a=0
b=0
is_arg_ok = False
try:
  num_list = input().split(' ')
  age = int(num_list[0])
  price = int(num_list[1])
  is_arg_ok = True
  
except:
  print('age,price must be numbers')
  sys.exit(1)

calculated_price = calculate(age, price)
print(calculated_price)
sys.exit(0)

Submission status: Wrong Answer

Solution code:
A,B=map(int,input().split())
if A>12:
  print(B)
elif 6<=A<=12:
  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>=5 and a<=12:
  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>=5 and a<=12:
  print(b/2)
else:
  print(0)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
inputstr1 = input().split()
print(inputstr1[0],inputstr1[1])
age = int(inputstr1[0])
b = int(inputstr1[1])

if 0 <= age <= 5:
    cost = 0
elif 6 <= age <= 12:
    cost = b / 2
else:
    cost = b

print(int(cost))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
y,m = map(int,input().split())
if y>=13:
  print(m)
if 13>y>5:
  print(int(m/2))
else:
  print(0)

Submission status: Wrong Answer

Solution code:
y,m = map(int,input().split())
if y>=13:
  print(m)
if 13>y>5:
  print(m/2)
else:
  print(0)

Submission status: Wrong Answer

Solution code:
A,B=map(int,input().split())
if A<=5:
  print(0)
elif 6<=A<=12:
  print(B/2)
elif A>=13:
  print(B)

Submission status: Wrong Answer

Solution code:
A,B=map(int,input().split())
if A<6:
  print(0)
elif 6<=A<=12:
  print(B/2)
else:
  print(B)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if a >= 13:
    print(b)
if a >= 6:
    print(b // 2)
else:
    print(0)

Submission status: Wrong Answer

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

if player[0] >= 13:
    print(player[1])
elif 13 > player[0] > 6:
    print(player[1]//2)
else:
    print("0")

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
if a <= 5:
  print('0')
else:
  if a <= 12:
    print(b/2)
  else:
    print(b)

Submission status: Wrong Answer

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

if A >= 13:
    print(B)

if 6 <= A <= 12:
    print(int(B/2))

else:
    print("0")

Submission status: Wrong Answer

Solution code:
# coding: utf-8
# user: herp_sy

import math
import statistics

a,b = map(int, input().split())
if a <= 5:
  print('0')
elif a >= 13:
  print(b)
else:
  print(b / 2)

Submission status: Wrong Answer

Solution code:
[a,b] = [int(i) for i in input().split()]
if a >= 13:
  print(b)
elif a >= 6:
  print(b/2)
else:
  print(0)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
if A <= 5:
  cost = 0
elif 6 <=A<= 13:
  cost = B//2
else:
  cost = B
print(cost)

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
if A<5:
  cost = 0
elif 6 <=A<= 13:
  cost = B//2
else:
  cost = B
print(cost)

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
if A<5:
  cost = 0
elif 5<A<13:
  cost = B//2
else:
  cost = B
print(cost)

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
if A<5:
  cost = int(0)
elif 5<A<13:
  cost = int(B/2)
else:
  cost = int(B)
print(cost)

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
if A<5:
  cost = int(0)
elif 5<A<13:
  print("case2")
  cost = int(B/2)
else:
  cost = int(B)
print(cost)

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
if A<5:
  cost = 0
elif 5<A<13:
  cost = B/2
else:
  cost = B
print(cost)

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
if A<5:
  cost = 0
elif 5<A<13:
  cost = B/2
else:
  cost = B
print(B)

Submission status: Wrong Answer

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

if 13<=a:
    print(b)
elif (6 <= a)and(a <= 12):
    print(b/2)
else:
    print(0)

Submission status: Wrong Answer

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

if a >= 13:
    print(b)
elif (6 <= a)and(a <= 12):
    print(b/2)
else:
    print(0)

Submission status: Wrong Answer

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

if A >= 13:
    print(int(B))
elif 5 < A < 13:
    print(int(B) / 2)
else:
    print("0")

Submission status: Wrong Answer

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

if A >= 13:
    print(int(B))
elif 5 < A < 13:
    print(int(B) / 2)
else:
    print(0)

Submission status: Wrong Answer

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

if A >= 13:
    print(int(B))
elif A > 5:
    print(int(B) / 2)
else:
    print(0)

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
if A>=13:
  print(B)
elif 12>=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 <=5:
    print(0)
else:
    print(B/2)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split(" "))
if a <= 5:
  print(0)
elif a >= 6 and a <= 12:
  print(b / 2)
else:
  print(b)

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split(" "))
if a <= 5:
  print(0)
elif a >= 6 and a <= 12:
  print(b / 2)
else:
  print(b)

Submission status: Wrong Answer

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

ans = 0
if a >= 13:
    ans = b
elif 6 <= a <= 12:
    ans = b/2

print(ans)

Submission status: Wrong Answer

Solution code:
A, B = [int(i) for i in input().split(" ")]
if A <= 5:
  print(str(0))
elif A <= 13:
  print(str(round(B/2)))
else:
  print(str(B))

Submission status: Wrong Answer

Solution code:
A, B = [int(i) for i in input().split(" ")]
if A <= 5:
  print(str(0))
elif A <= 13:
  print(str(int(B/2)))
else:
  print(str(B))

Submission status: Wrong Answer

Solution code:
A, B = [int(i) for i in input().split(" ")]
if B <= 5:
	print(str(0))
elif B <= 13:
	print(str(int(B/2)))
else:
	print(str(B))

Submission status: Wrong Answer

Solution code:
A,B = map(int, input().split())
if A <= 5:
  print(0)
elif A <= 12:
  print(B/2)
else:
  print(B)

Submission status: Wrong Answer

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

if a >= 13:
    print(b)

elif a < 13 and a >= 5:
    print(int(b / 2))

else:
    print(0)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if a >= 13:
    print(b)

elif a < 13 and a >= 5:
    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:
n=input().split()
A=int(n[0])
B=int(n[1])
if A<=5:
    C=0
elif A<=12:
    C=B/2
else:
    C=B
print(C)

Submission status: Wrong Answer

Solution code:
l = input().split()
a = int(l[0])
b = int(l[1])
if a >= 13:
    c = b
elif a <=12 and a >= 6:
    c = b /2
else:
    c = 0
print(c)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
age, price = map(int, input().split())
a_price = int(0)
if 13 < age:
    a_price = price
elif 6 <= age and age <= 12:
    a_price = int(price / 2)
else:
    pass
print(a_price)

Submission status: Wrong Answer

Solution code:
age, price = map(int, input().split())
a_price = 0
if 13 < age:
    a_price = price
elif 6 <= age and age <= 12:
    a_price = int(price / 2)
else:
    pass
print(a_price)

Submission status: Wrong Answer

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

if A>=13:
    print(B)
elif 6 <= A < 13:
    print(B/2)
else:
    print(0)

Submission status: Wrong Answer

Solution code:
A, B = (int(x) for x in input().split())
if A >= 13:
    print(B)
elif A >= 6 and A <= 12:
    print(B/2)
else:
    a = 0
    print(a)

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 < 5:
    print(0)
else:
    print(b//2)

Submission status: Wrong Answer

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

if a <5:
    print(0)
elif a>=6 and a<=12:
    print(int(b/2))
else:
    print(b)

Submission status: Wrong Answer

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

if a >= 13:
  print(b)
elif a>=6 and a<=12:
  print(b/2)
else:
  print(0)

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())
if 0 <= a or a <= 5:
    print(0)
if a >= 6 or a <= 12:
    print(b/2)
if a >= 13:
    print(b)

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())
if 0 <= a and a <= 5:
    print(0)
if a >= 6 and a <= 12:
    print(b/2)
if a >= 13:
    print(b)

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) & (A<=12):
    print(B/2)
else:
    print(0)

Submission status: Wrong Answer

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

if a >= 6 & a <= 12:
        b = b / 2
elif a <= 5:
        b = 0

print(b)

Submission status: Wrong Answer

Solution code:
def wheel(a,b):
    if a>=13:
        return b
    if a>=6 and a<=12:
        return b/2
    if a<=5:
        return 0   
a,b = map(int, input().split())
print(wheel(a,b))

Submission status: Wrong Answer

Solution code:
def wheel(a,b):
    if a>=13:
        return b
    if a>=6 and a<=12:
        return b/2
    if a<6:
        return 0   
a,b = map(int, input().split())
print(wheel(a,b))

Submission status: Wrong Answer

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

if a>=6 and a<=12:
  print(b/2)
elif a<6:
  print(0)
else:
  print(b)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if a <= 5:
  print(b)
elif a >= 6 and a<=12:
  print(int(b/2))
else:
  print(0)

Submission status: Wrong Answer

Solution code:
A, B = tuple(int(i) for i in input().split(" "))
if A >= 13:
	print(B)
elif A >= 6:
	print(B / 2)
else:
    print(0)

Submission status: Wrong Answer

Solution code:
a, b = list(map(int, input().split()))
ans = 0
if 5 <= a < 13:
    ans = b // 2
elif a >= 13:
    ans = b

print(ans)

Submission status: Wrong Answer

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


def solve(a, b):
    if a >= 13:
        return b
    elif a >= 6:
        return b / 2
    return 0


def main():
    a, b = input_from_console()
    print(solve(a, b))


if __name__ == "__main__":
    DEBUG = False
    if not DEBUG:
        main()

Submission status: Wrong Answer

Solution code:
a = list(map(int,input().split()))
if a[0] <= 5:
  print(0)
elif a[0] <= 12:
  print(a[1]//2)
else:
  print(a[0])

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split(' '))
if(A >= 13):
	print(str(B))
elif(6 <= A <= 12):
	print(str(B/2))
elif(A <= 5):
	print(str(0))

Submission status: Wrong Answer

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


def solve(a, b):
    if a >= 13:
        return b
    elif a >= 6:
        return b / 2
    else:
        return 0


def main():
    a, b = input_from_console()
    print(solve(a,b))

if __name__ == "__main__":
    DEBUG = False
    if not DEBUG:
        main()

Submission status: Wrong Answer

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


def solve(a, b):
    if a >= 13:
        return b
    elif a >= 6:
        return b / 2
    else:
        return 0


def main():
    a, b = input_from_console()


if __name__ == "__main__":
    DEBUG = False
    if not DEBUG:
        main()

Submission status: Wrong Answer

Solution code:
A, B = list(map(int, input().split()))
if A <= 5:
  print(0)
elif 6 <= A or A <= 12:
  print(B//2)
else:
  print(B)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if a <= 12:
  b = b/2
  if a <= 5:
    b = 0
print(b)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
inputs=[int(line) for line in input().split(' ')]
age,b=inputs[0],inputs[1]
if age<6:
  print(0)
elif age<13:
  print(b/2)
else:
  print(b)

Submission status: Wrong Answer

Solution code:
inputs=[int(line) for line in input().split(' ')]
age,basicprice=inputs[0],inputs[1]
if age<13:
  if age<6:
    price=0
  else:
  	price=basicprice/2
else:
  price=basicprice
  
print(price)

Submission status: Wrong Answer

Solution code:
A, B = map(int,input().split())
C = 0
if A >= 13:
  C = B
else:
  if A >= 6:
    C = B / 2
print(C)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if a<=5:
  print(0)
elif a<=12:
  print(b/2)
else:
  print(b)

Submission status: Wrong Answer

Solution code:
age,fee=[int(i) for i in input().split(" ")]
if age <6:
  print(0)
elif age<13:
  print(fee/2)
else:
  print(fee)

Submission status: Wrong Answer

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

if A <= 5:
  print(0)
elif A <=12:
  print(B/2)
else:
  print(B)

Submission status: Wrong Answer

Solution code:
a, b = [int(i) for i in input().split()]
if a <= 5:
    print(0)
elif a <= 13:
    print(b//2)
else:
    print(b)

Submission status: Wrong Answer

Solution code:
str = input().split()

A = int(str[0])
B = int(str[1])

if A > 12:
  print(B)
elif A > 5 :
  print(B/2)
else :
  print(0)

Submission status: Wrong Answer

Solution code:
def f():
    A, B = map(int, input().split())
    if A >= 13:
        return B
    elif B >= 6:
        return B // 2
    else:
        return 0


print(f())

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:
ab = list(map(int, input().split()))
a = ab[0]
b = ab[1]

if (a >= 13):
  print(b)
if (a >= 6 and a <= 12):
  print(b/2)
if (a <= 5):
  print(0)

Submission status: Wrong Answer

Solution code:
ab = list(map(int, input().split()))
a = ab[0]
b = ab[1]

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 > 12:
  print(b)
elif a > 5:
  print(b / 2)
else:
  print(0)

Submission status: Wrong Answer

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

if a > 12:
  print(b)
elif a > 5:
  print(a / 2)
else:
  print(0)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys

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

if 6 > a:
	b = 0
elif 13 > a:
	b = b/2

print(b)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if a>=13:
  print(b)
elif a<=5:
  print(0)
else:
  print(b/2)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
 
if a > 13 and a <= 100:
  print(b)
elif a < 6 and a >= 0:
  print(0)
elif a <= 12 and a >= 6: 
  print(int(b*0.5))

Submission status: Wrong Answer

Solution code:
# coding: utf-8

import sys

A, B = map(int, sys.stdin.readline().split(" ", 2))
if A >= 13:
    print(B)
elif A >= 6:
    print(B/2)
else:
    print(0)

Submission status: Wrong Answer

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

if a>=13:
  print(b)
elif 6<=a<=12:
  print(b/2)
else:
  print(0)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A = list(map(int, input().split()))
 
a = A[0]
b = A[1]
 
if(a <= 5)or(a == 0):
    print(0)
elif(6 <= a <= 12):
    print(b/2)
else:
    print(b)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys

#a, b = map(int, input().split())
a=16
b=100

if 6 > a:
	b = 0
elif 13 > a:
	b = b/2

print(b)

Submission status: Wrong Answer

Solution code:
import math

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

if 6<=a<=12:
    print(math.ceil(b/2))

elif a>13:
    print(math.ceil(b))

else:
    print("0")

Submission status: Wrong Answer

Solution code:
import sys

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

if a == 0:
	b = 0
elif 13 > a:
	b = b/2

print(b)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
0<=A<=100
2<=B<=100
if B & 1:
    if 0 <= A <= 5 :
        B = 0
    elif 6 <= A <= 13 :
        B = B//2
    else :
        B = B
    print(B)
else :
    False

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
0<=A<=100
2<=B<=100

if 0 <= A <= 5 :
    B = 0
elif 6 <= A <= 13 :
    B = B//2
else :
    B = B
    if B & 1:
        print(B)
    else :
        False

Submission status: Wrong Answer

Solution code:
A, B = map(int,input().split())
if A < 6:
  print(A)
  print(0)
elif A > 12:
  print(B)
else:
  print(int(B/2))

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
0<=A<=100
2<=B<=100

if 0 <= A <= 5 :
    B = 0
elif 6 <= A <= 13 :
    B = B//2
else :
    B = B
    if B & 1:
        print(B)
    else :
        print()

Submission status: Wrong Answer

Solution code:
A = 12
B = 100

if A >= 13:
	print(B)
    
elif 6 <= A <= 12:
	print(B // 2)

else:
	print(0)

Submission status: Wrong Answer

Solution code:
# coding:utf-8

if __name__ == '__main__':
  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:
age, teenPrice = [int(i) for i in input().split()]

if age >= 13:
    print(teenPrice);
elif age >= 6 and age <= 12:
    print(teenPrice / 2);
else:
    print(0);

Submission status: Wrong Answer

Solution code:
age = 30
fee = 1000

if int(age) >= 13:
	print(int(fee))
    
elif 6 <= int(age) <= 12:
	print(int(fee) // 2)

else:
	print(0)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
import sys
# スペース区切りの整数の入力
a, b = map(int, raw_input().split())
# 文字列の入力

if a < 6:
  result = b/2
  print 0
  sys.exit()

if a%2 == 0:
  result = b/2
  print result
  sys.exit()
result = b
print result

Submission status: Wrong Answer

Solution code:
#coding:utf-8
A,B = map(int,input().split())
if  A >= 13:
    print(B)
elif 6 <= A and A <= 12:
    print(int(B / 2))
print(0)

Submission status: Wrong Answer

Solution code:
import sys
A,B= (int(i) for i in input().split(" "))  

if A<5:
    print(0)
elif A<12:
    print(int(B/2))
else:
    print(B)

Submission status: Wrong Answer

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

def ferris(a, b):
    price = 0
    if a <= 5:
        price = 0
    elif a <= 12:
        price = b // 2
    else:
        price = b
        
    return price

ferris(a, b)

Submission status: Wrong Answer

Solution code:
import sys
A,B= (int(i) for i in input().split())  

if A<5:
    print(0)
    sys.exit()
elif A<12:
    print(int(B/2))
    sys.exit()
else:
    print(B)
    sys.exit()

Submission status: Wrong Answer

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

A = int(A)
B = int(B)

if A < 13 and A > 5 :
    B /= 2
elif A < 5 :
    B = 0

print(round(B))

Submission status: Wrong Answer

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

def ferris(a, b):
    price = 0
    if a <= 5:
        price = 0
    elif a <= 12:
        price = b / 2
    else:
        price = b
        
    return price

ferris(a, b)

Submission status: Wrong Answer

Solution code:
A,B=map(int,input().split())
if A<=5:
  print(0)
elif A<12:
  print(B//2)
else:
  print(B)

Submission status: Wrong Answer

Solution code:
#coding:utf-8
A,B = map(int,input().split())
if  A >= 13:
    print(B)
elif 6 <= A <= 12:
    print(B / 2)
print(0)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
0<=A<=100
if 0 <= A <= 5 :
    B = 0
elif 6 <= A <= 13 :
    B = B//2
else :
    B = B
print(B)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if A >= 13:
    print(B)
elif A >= 6 and A <= 12:
    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:
# -*- coding: utf-8 -*-
import sys

s = (input().split(' '))

a,b = [int(i) for i in s]

price = 0

if 0 < a <= 5:
    price = 0
elif 5 < a <= 12:
    price = b // 2
else:
    price = b

print(price)

Submission status: Wrong Answer

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

s = (input().split(' '))

a,b = [int(i) for i in s]

price = 0

if 0 < a <= 5:
    price = 0
elif 5 < a <= 12:
    price = b / 2
else:
    price = b

print(price)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if a<=5:
    X=0
elif a>5 and a<=12:
    X=b/2
else :
    X=b
print(X)

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(B/4)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if a<=5:
    X=0
elif a>5 and a<=12:
    X=a/2
else :
    X=a
print(X)

Submission status: Wrong Answer

Solution code:
age = 30
fee = 100

if age >= 13:
	print(fee)
    
elif 6 <= age <= 12:
	print(fee // 2)

else:
	print(0)

Submission status: Wrong Answer

Solution code:
age = 5
fee = 1000

if age >= 13:
	print(fee)
    
elif 6 <= age <= 12:
	print(fee // 2)

else:
	print(0)

Submission status: Wrong Answer

Solution code:
a,b = [int(i) for i in input().split()]
if a>12:
  print(b)
elif a>5:
  print(b/2)
else:
  print('0')

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
     
a, b = map(int, input().split())
      
if a > 12:
  c = b
elif 5 < a <= 12:
  c = 0.5 * b
else:
  c = 0
      
print(str(c))

Submission status: Wrong Answer

Solution code:
A = list(map(int, input().split()))
 
a = A[0]
b = A[1]
 
if(a <= 5)or(a == 0):
    print(0)
elif(6 <= a <= 12):
    print(2/b)
else:
    print(b)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
     
a, b = map(int, input().split())
      
if a > 12:
  c = b
elif 5 < a <= 12:
  c = 0.5 * b
else:
  c = 0
      
print("{}".format(c))

Submission status: Wrong Answer

Solution code:
def years():
  A=list(map(int,input().split()))
  c=0
  a=A[0]
  b=A[1]
  
  if b<=1 or (b%2!=0) or a<0:
    return
  
  
  if a>=13:
    print(b)
    
  if a>=6 and a<=12:
    b=b/2
    print(b)
    
  if a<=5:
    print(c)
    
    
if __name__=="__main__":
  years()

Submission status: Wrong Answer

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

if A >= 13:
  print(B)
elif 6 <= B < 13:
  print(B//2)
else:
  print(0)

Submission status: Wrong Answer

Solution code:
age = 10
fee = 1000

if age >= 13:
	print(fee)
    
elif 6 <= age <= 12:
	print(fee / 2)

else:
	print(0)

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())
 
if a <= 5:
  print(0)
elif 6 <= a and a <= 12:
  print(b/2)
elif 13 <= a:
  print(b)

Submission status: Wrong Answer

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

if A<5:
    cost=int(0)
elif A<13:
    cost=B/2
else :
    cost=B

print(int(cost))

Submission status: Wrong Answer

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

c = 0
if a >= 13:
    print(b)
elif 6 <= a <=12:
    c = b /2
    print(c)
elif a <= 5:
    print("0")

Submission status: Wrong Answer

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

if a >= 13:
  	print(b)
elif 13 > a >= 6:
	print(b / 2)
else:
  	print(0)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
     
a, b = map(int, input().split())
      
if a >= 13:
  c = b
elif 6 >= a >= b:
  c = 0.5 * b
else:
  c = 0
      
print(c)

Submission status: Wrong Answer

Solution code:
inp = input()

a = int(inp.split()[0])
b = int(inp.split()[1])

if a > 12:
  print(b)
elif (a < 13 and a > 5):
  print(b/2)
elif a < 6:
  print(0)

Submission status: Wrong Answer

Solution code:
b, c = map(int, input().split())
if b > 12:
        print(c)
else:
         if b < 5 :
            print(0)
         else:
             print(int(c/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(int(b / 2))
else:
    print()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
if A > 12:
  print(B)
elif 5 < A <= 12:
  print(B/2)
else:
  print(0)

Submission status: Wrong Answer

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


if b%2==0 and 2<=b<=1000:
  
  if 0<=a<=5:
    
    print(0)
  
  elif 6<=a<=13:
    
    print(int(b/2))
    
  elif 13<=a<=100:
    
    print(b)

Submission status: Wrong Answer

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

if(a >= 13):
  print(b)
elif(a>=5):
  print(b//2)
else:
  print(0)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
     
if __name__ == '__main__':
  a, b = map(int, input().split())
      
  if a >= 13:
    c = b
  elif 6 >= a >= b:
    c = 0.5 * b
  else:
    c = 0
      
  print("{}".format(c))

Submission status: Wrong Answer

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

if a > 12:
     print(b)
elif a < 6:
     print(0)
else:
    print(b/2)

Submission status: Wrong Answer

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

if b >= 13:
  print(c)
elif 6 <= b and b<= 12:
  print(c/2)
else:
  print(c*0)

Submission status: Wrong Answer

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

if a <= 13:
    print(b)
elif 6 <= a <=12:
    print(b/2)
elif a <= 5:
    print("0")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if a >= 13:
    print(b)
elif 12 >= a >= 6:
    print(b/2)
else:
    
    print(0)

Submission status: Wrong Answer

Solution code:
a,b=input().split()
a=int(a)
b=int(b)
if a>=13:
  print(str(b))
elif a<13 and a>=6:
  print(str(b/2))
elif a<6:
  print("0")

Submission status: Wrong Answer

Solution code:
# coding:utf-8

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

if a>=13:
    print(b)
elif a>=6:
    print(b/2)
else:print(0)