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

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

Submission status: Accepted

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

if age <= 5:
    yen = 0
elif 6 <= age <= 12:
    yen /= 2

print(int(yen))

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys


scan = sys.stdin.readline


def main():
  A, B = map(int, scan().rstrip().split())
  if A > 12:
    print(B)
  elif A > 5:
    print(B // 2)
  else:
    print(0)

main()

Submission status: Accepted

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

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

Submission status: Accepted

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

output = 0
if a >= 13:
    output = b
elif a >= 6:
    output = int(b/2)

print (output)

Submission status: Accepted

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

if 6 <= A and A <= 12:
    print(int(B*1/2))
elif A <= 5:
    print(0)
else:
    print(B)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

if age <= 5:
  print(0)
elif age <= 12:
  print(int(cost / 2))
else:
  print(cost)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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


def solve(A: int, B: int):
    if A <= 5:
        print(0)
    elif A <=12:
        print(B//2)
    else:
        print(B)
    return


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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

else:
  print(B)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if A >= 13:
  print(int(B))
  

elif A >= 6:
  print(int(B/2))

else:
  print('0')

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
a,b = map(int, sys.stdin.readline().split())
print 0 if a <= 5 else b//2 if a<=12 else b

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

N, K  = map(int, input().split())

if N <= 5:
    print(0)
elif N <= 12:
    print(K // 2)
else:
    print(K)

Submission status: Accepted

Solution code:
def main():
	A, B = map(int, input().split())
	ans = B
	if 6 <= A < 13:
		ans //= 2
	elif A < 6:
		ans = 0
	print(ans)


if __name__ == '__main__':
	main()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin
a, b = [int(x) for x in stdin.readline().rstrip().split()]
ans = b
if a < 6:
    ans = 0
elif a < 13:
    ans = b // 2
print('{}'.format(ans))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

# In[6]:


import sys
#input = sys.stdin.readline
A, B = map(int, input().split())


# In[7]:


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


# In[ ]:

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env pypy3

import sys
sys.dont_write_bytecode = True
stdin = sys.stdin
input = stdin.readline
#sys.setrecursionlimit(100000)

#import numpy as np
#import scipy as sp

# Python 3 modules: https://docs.python.org/3/library/

import math, itertools, operator
from math import *
from math import factorial as fact
from operator import itemgetter, attrgetter
from itertools import permutations, combinations
from functools import reduce
# Use scipy for stats: https://docs.scipy.org/doc/scipy/reference/stats.html
# Before Python 3.5.  Import from math after it.
from fractions import gcd
from fractions import Fraction as Frac

inf = float('inf')

def lcm(a, b):
    return a * b // gcd(a,b)

def perm(a, b):
    import scipy.special
    return scipy.special.perm(a, b, exact = True)

def comb(a, b):
    import scipy.special
    return scipy.special.comb(a, b, exact = True)

def dfact(n):
    import scipy.special
    return scipy.special.factorial2(n, exact = True)

def prod(l):
    return reduce(operator.mul, l)

def input_ints(inp = input, sep = ' ', conv = int):
    return list(map(conv, inp().split(sep = sep)))

################################################################################

A, B = input_ints()
print(B if A >= 13 else B//2 if A >= 6 else 0)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

def price(A,B):
    if A >= 13:
        print(B)
    elif 6 <= A <=12:
        print(int(B/2))
    elif 5 >= A:
        print('0')
        
price(A,B)

Submission status: Accepted

Solution code:
value = input().split()
age = int(value[0])
cost = int(value[1])

if(age >= 6 and age<= 12):
    result = cost // 2
elif(age <= 5):
    result = 0
else:
    result = cost

print(result)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
value = input().split()
age = int(value[0])
cost = int(value[1])

if(age >= 6 and age<= 12):
    cost = cost // 2
elif(age <= 5):
    cost = 0

print(cost)

Submission status: Accepted

Solution code:
def calculate(age, price):
  if age >= 13:
    return price
  elif age >= 6:
    return int(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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if 0 <=A<=100 and 2<=B<=1000:
    if B%2 == 1:
        print("ERROR")
        exit()
    else :
        if A <=5 :
            fare=0
        elif 6<=A<=12 :
            fare=B//2
        else:
            fare=B
else:
    print("ERROR")
    exit()

print(fare)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
import fractions
import copy
#以下てんぷら
def j(q):
    if q==1: print("YES")
    elif q == 0:print("NO")
    exit(0)
rem = pow(10,9)+7
"""
def ct(x,y):
    if (x>y):print("+")
    elif (x<y): print("-")
    else: print("?")
"""

def ip():
    return int(input())
def printrow(a):
    for i in range(len(a)):
        print(a[i])
def combinations(n,r):
    if n<r:return 0
    return math.factorial(n) // (math.factorial(n - r) * math.factorial(r))
def permutations(n,r):
    if n<r:return 0
    return math.factorial(n) // math.factorial(n - r)
def lcm(x, y):
    return (x * y) // fractions.gcd(x, y)


#n = ip()                                     #入力整数1つ
x,y= (int(i) for i in input().split())       #入力整数横2つ以上
#a = [int(i) for i in input().split()]        #入力整数配列
#a = input()                                  #入力文字列
#a = input().split()                          #入力文字配列
#n = ip()                      #入力セット(整数改行あり)(1/2)
#a=[ip() for i in range(n)]    #入力セット(整数改行あり)(2/2)
#a=[input() for i in range(n)]    #入力セット(整数改行あり)(2/2)
#jの変数はしようできないので注意
#全足しにsum変数使用はsum関数使用できないので注意

if 5<x<13:
    print(y//2)
elif x<6:
    print(0)
else:print(y)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

cost = (0 if 0 <= age <= 5 else
        b / 2 if 6 <= age <= 12 else
        b)
print(int(cost))

Submission status: Accepted

Solution code:
inputstr1 = input().split()
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: Accepted

Solution code:
inputstr1 = input().split()
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("{:.0f}".format(cost))

Submission status: Accepted

Solution code:
a = input().split()
nenrei = int(a[0])
nedan = int(a[1])

if nenrei >= 13:
    print(nedan)
elif 6 <= nenrei <= 12:
    print(int(nedan/2))
else:
    print(0)

Submission status: Accepted

Solution code:

A,B = input().split()

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

if A >= 13:
    print (B)

elif A > 5 :
    print (int(B/2))

else:
    print (0)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# 初期値を入力

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


# メインプログラム

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

Submission status: Accepted

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

if A >= 13:
    print(B)

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

if A <= 5:
    print("0")

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if 13<=a:
    print(b)
elif 6<=a<=12:

    print(b//2)
else:
    print(0)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
INPUT = input().split()
A = int(INPUT[0])
B = int(INPUT[1])

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

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

print(int(ans))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if a >= 13:
    print(b)

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

else:
    print(0)

Submission status: Accepted

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

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a,b = list(map(int,input().split()))
print(b*(a >= 13) + int(b/2)*(6 <= a and a <= 12))

Submission status: Accepted

Solution code:
N, M = input().strip().split()
A, B = [int(N), int(M)]

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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 int(b / 2)
    return 0


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


if __name__ == "__main__":
    import sys
    if sys.gettrace():
        check_cases()
    else:
        main()

Submission status: Accepted

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

def f(A, B):
    return B if A>=13 else B//2 if A>=6 else 0


def main():
    A, B = map(int, input().split())
    print(f(A,B))


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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