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:
n, m = map(int, input().split())

if  n > 12:
    print(m)
elif n < 6 :
    print(0)
else:
    print(m//2)

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

a, b = map(int, 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 6<=a<13:
    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:
n,m=map(int,input().split())
if n>=13:
  print(m)
elif n>=6:
  print(m//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(b // 2)
else:
  print(0)

Submission status: Accepted

Solution code:
import sys 
 
A, B = map(int, input().split())
cond_older = (12 < A)
cond_young = (6 <= A) & (12 >= A)
 
ans = (
  B if cond_older else
  B//2 if cond_young else
  0
)
 
print(ans)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

import sys
# import math
# import re                                    # re.compile(pattern) => ptn obj; p.search(s), p.match(s), p.finditer(s) => match obj; p.sub(after, s)
# from collections import deque                # deque class. deque(L): dq.append(x), dq.appendleft(x), dq.pop(), dq.popleft(), dq.rotate()
# from collections import defaultdict          # subclass of dict. defaultdict(facroty)
# from collections import Counter              # subclass of dict. Counter(iter): c.elements(), c.most_common(n), c.subtract(iter)
# from heapq import heapify, heappush, heappop # built-in list. heapify(L) changes list in-place to min-heap in O(n), heappush(heapL, x) and heappop(heapL) in O(lgn).
# from heapq import nlargest, nsmallest        # nlargest(n, iter[, key]) returns k-largest-list in O(n+klgn).
# from itertools import count, cycle, repeat   # count(start[,step]), cycle(iter), repeat(elm[,n])
# from itertools import groupby                # [(k, list(g)) for k, g in groupby('000112')] returns [('0',['0','0','0']), ('1',['1','1']), ('2',['2'])]
# from itertools import starmap                # starmap(pow, [[2,5], [3,2]]) returns [32, 9]
# from itertools import product                # product(iter, repeat=n)
# from itertools import accumulate             # accumulate(iter[, f])
# from functools import reduce                 # reduce(f, iter[, init])
# from functools import lru_cache              # @lrucache ...arguments of functions should be able to be keys of dict
# from bisect import bisect_left, bisect_right # bisect_left(a, x, lo=0, hi=len(a)) returns i such that all(val<x for val in a[lo:i]) and all(val>-=x for val in a[i:hi]).
# from copy import deepcopy                    # to copy multi-dimentional matrix without reference
# from fractions import gcd                    # for Python 3.4


def main():
    mod = 1000000007                  # 10^9+7
    inf = float('inf')
    sys.setrecursionlimit(10**6)    # 1000 -> 1000000
    def input(): return sys.stdin.readline().rstrip()
    def ii():  return int(input())
    def mi():  return map(int, input().split())
    def mi_0(): return map(lambda x: int(x)-1, input().split())
    def lmi(): return list(map(int, input().split()))
    def lmi_0(): return list(map(lambda x: int(x)-1, input().split()))
    def li():  return list(input())
    
    
    a, b = mi()
    if a >= 13:
        print(b)
    elif a >= 6:
        print(b//2)
    else:
        print(0)

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
import math
x = input().split()
a = int(x[0]) # 年齢
b = int(x[1])
if a <= 5:
  print(0)
elif a >= 6 and a <= 12:
  print(math.floor(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 and a<=12:
  ans=b//2
print(ans)

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

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:
import math
a,b=map(int,input().split())
if(a>=13):
  print(b)
elif(a>=6 and a<=12):
  print(math.ceil(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(B//2)
else:
    print(0)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
A, B = map(int, sys.stdin.readline().split())

if A >= 13:
  print(B)
if 6 <= A <= 12:
  print(int(B / 2))
if A < 6:
  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:
age, fee = map(int, input().split())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if A >= 13:
    print(B)

elif A <= 5:
    print(0)

else:
    print(round(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 - Ferris Wheel

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

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

Submission status: Accepted

Solution code:
def main():
    import sys
    input = sys.stdin.readline
    sys.setrecursionlimit(10**7)
    from collections import Counter, deque
    #from collections import defaultdict
    from itertools import combinations, permutations, accumulate, groupby, product
    from bisect import bisect_left,bisect_right
    from heapq import heapify, heappop, heappush
    from math import floor, ceil
    #from operator import itemgetter

    #inf = 10**17
    #mod = 10**9 + 7

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

if __name__ == '__main__':
    main()

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 <= 5:
    print("0")

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

elif a >= 13:
    print(b)

Submission status: Accepted

Solution code:
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product, groupby
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def ZIP(n): return zip(*(MAP() for _ in range(n)))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

A, B = MAP()

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

Submission status: Accepted

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

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

print(int(price))

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

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<=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:
    print(int(B))

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

else:
    print(int(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:
i = list(map(int, input().split())) #i_1 i_2を取得し、iに値を入れる
A = i[0] #出力：i_1
B = i[1] #出力：i_2

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

Submission status: Accepted

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

if A <= 5:
    B = 0
elif A <= 12:
    B //= 2

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, raw_input().split())
if 13<=A:
    print B
elif 6<=A<=12:
    print B/2
elif A<=5:
    print 0

Submission status: Accepted

Solution code:
age,price = map(int,input().split())

if age >= 13:
    ans = price
elif age >= 6:
    ans = price//2
else:
    ans = 0

print(ans)

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:
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>=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())
if a >= 13:
  print(int(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 > 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 >= 13:
    print(b)
elif a >= 6 and a <= 12:
    print(int(b /2))
else:
    print(0)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

a,b = list(map(int, i))

if a >= 13:
    print(int(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(int(B/2))

else:
	print(B)

Submission status: Accepted

Solution code:
numerosStr = input().split(" ")
numero=[]
for j in numerosStr:
    numero.append(int(j))

if numero[0] >= 13:
    print(numero[1])
elif numero[0] >= 6 and numero[0] <=12:
    print(int(numero[1]/2))
elif numero[0]<=5:
    print(0)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
line = input()
numbers = [int(n) for n in line.split()]
if numbers[0] <= 5:
    predicted_value = 0
elif numbers[0] <= 12:
    predicted_value = numbers[1]//2
else:
    predicted_value = numbers[1]
print(predicted_value)

Submission status: Accepted

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

Submission status: Accepted

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

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

print(int(cost))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
#A
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:
# AtCoder
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: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if a[0] >= 13:
  print(a[1])
elif a[0] >= 6:
  print(a[1] //2)
else:
  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(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(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(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(B//2)
else:
  print(0)

Submission status: Accepted

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

if 6 <= A <= 12:
  B = B / 2
elif 5 >= A:
  B = 0
else:
  pass

print(int(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()) #1行に複数の入力
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:
  print('{:.0f}'.format(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 13 > a >= 6:
  print(b//2)
else:
  print(0)

Submission status: Accepted

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

Submission status: Accepted

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: 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:
import sys

# 入力を整数に変換して受け取る
def II(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def MI1(): return map(int1, sys.stdin.readline().split())
# 入力全てを整数に変換したものの配列を受け取る
def LI(): return list(map(int, sys.stdin.readline().split()))
# 入力全てを整数に変換して1引いたものの配列を受け取る
def LLI(rows_number): return [LI() for _ in range(rows_number)]
# リストを改行区切りで出力する
p2D = lambda x: print(*x, sep="\n")


a,b = MI()

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:

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

if a >= 13:
    print(b)
elif 6 <= a <= 12:
    b = int(b/2)
    print(b)
elif a <= 5:
    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(B//2)
else:
  print(B)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b =list(map(int,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 6<=A<=12:
    print(B//2)
else:
    print(0)

Submission status: Accepted

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

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

Submission status: Accepted

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

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

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:
A, B = map(int, 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 6 <= a <= 12:
    print(b//2)
else:
    print(0)

Submission status: Accepted

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

age = A
full_price = B

is_full_price = age >= 13
is_half_price = 6 <= age <= 12

price = 0
if is_full_price:
    price = full_price
elif is_half_price:
    price = int(full_price / 2)

print(price)

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:
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
import sys

sr = lambda: sys.stdin.readline().rstrip()
ir = lambda: int(sr())
lr = lambda: list(map(int, sr().split()))

A, B = lr()
answer = B if A >= 13 else B // 2 if A >= 6 else 0
print(answer)
# 40

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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[1])

Submission status: Accepted

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

def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

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

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:
age, price = map(int, input().split())

if 13 <= age <= 100:
  price = price
  
elif 6 <= age <= 12:
  price = price // 2
  
elif 0 <= age <= 5:
  price = 0
  
print(price)

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,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 = 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 6 <= a <= 12:
     print(b//2)
else:
     print("0")

Submission status: Accepted

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


if __name__ == '__main__':
    q1()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

input = sys.stdin.readline


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

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


if __name__ == "__main__":
    main()

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:
# python 3.4.3
import sys
input = sys.stdin.readline

# -------------------------------------------------------------
# library
# -------------------------------------------------------------



# -------------------------------------------------------------
# main
# -------------------------------------------------------------

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

ans = 0
if 13 <= A:
    ans = B
elif 6 <= A <= 12:
    ans = B//2

print(ans)

Submission status: Accepted

Solution code:
def main():
    a,b = tuple([int(t)for t in input().split()])

    if a<6:
        print(0)
    elif a<13:
        print(b//2)
    else:
        print(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(b//2)
else:
    print(b)

Submission status: Accepted

Solution code:
import sys
input = lambda: sys.stdin.readline().rstrip()
input_nums = lambda: list(map(int, input().split()))

def main():
    A, B = input_nums()
    if A >= 13:
        fee = B
    elif A >= 6:
        fee = B//2
    else:
        fee = 0
    print(fee)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#A
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:
a,b = map(int,input().split())
if a <=5:
    print("0")
elif 12 >= a >= 6:
    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:
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:
# n = int(input())
a,b = map(int,input().split())
# A = list(map(int,input().split()))
# An = [list(map(int,input().split())) for i in range(n)]

if 13 <= a:
    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(int(B))
elif A>=6:
  print(int(B/2))
else:
  print('0')

Submission status: Accepted

Solution code:
# ABC 127: A – Ferris Wheel
a, b = map(int, input().split())
if a >= 13:
    print(b)
elif 13 > 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 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 6 <= a <= 12:
  print(b // 2)
else:
  print(0)

Submission status: Accepted

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

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