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.

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

Solution (Python):
line = input().split()
A = int(line[0])
B = int(line[1])
if A >= 0 and  A <= 5:
    print(0)
if A >= 6  and A <= 12:
    print(B//2)
if A >= 13 and A <= 100:
    print(B)

Solution (Python):
line = input().split()
a = int(line[0])
b = int(line[1])


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

Solution (Python):
line = input().split()
a = int(line[0])
b = int(line[1])


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

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

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

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



if 6<=a<=12 :
    ans = b/2

elif 6 > a :
    ans = 0

else :
    ans = b

print(int(ans))

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

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

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

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

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

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

Solution (Python):
AB=input()
A, B = AB.split() 
A=int(A)
B=int(B)

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

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

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

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

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

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

Solution (Python):
n, p = map(int, input().split(' '))

if n < 6:
	print(0)
elif 6<=n<=12:
	print(p//2)
else:
	print(p)

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

Solution (Python):




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


if __name__ == "__main__":
    main()

Solution (Python):
a,b=map(int,input().split())
print(int(b/2*(5<a<=12)+b*(13<=a)))

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

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

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

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

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

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

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

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

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

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

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

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

print(price)

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

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

Solution (Python):
import sys

a, b = map(int, sys.stdin.readline().split())

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

if __name__ == '__main__':
    ans = main()
    print(ans)

Solution (Python):
def main():
    a, b = map(int, input().split())

    price = b

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

    print(price)

if __name__ == '__main__':
    main()

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
import os, sys, re, math

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

Solution (Python):
A, B = [int(s) for s in input().split(' ')]
x = B
if A < 13:
    x //= 2
if A < 6:
    x = 0
print(x)

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

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

Solution (Python):
import os, sys, re, math

(A, B) = [int(n) for n in input().split()]

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

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

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

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

Solution (Python):

a,b=map(int,input().split())
kane=[0,int(b/2),b]
ans=1
if a>=13:
    ans=2
elif a<=5:
    ans=0
print(kane[ans])

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
age, price= (int(i) for i in input().split())
if age >= 13: print(price)
elif age >= 6: print(price//2)
else: print(0)

Solution (Python):
import sys

stdin = sys.stdin

mod = 1000000007
inf = 1 << 60

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().rstrip()
nas = lambda: stdin.readline().split()

a, b = na()

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

Solution (Python):
import sys
import math

num = input().split()
A = int(num[0])
B = int(num[1])
if A<=12:
	B=B/2
	if A<=5:
		B=0
print(int(B))

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

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

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

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

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

Solution (Python):
nen, yen = (int(x) for x in input().split())

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

elif 6 <= nen <= 12:
    print(int(int(yen) / 2))

else:
    print(int(yen))

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

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

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

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

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

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

Solution (Python):
A, B = [int(i) for i in input().split()]
rate = 1
if 6 <= A and A <= 12:
    rate = 0.5
elif A <= 5:
    rate = 0
print(int(B * rate))

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

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

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

print(price)

Solution (Python):
N, K = map(int, input().split())
if N >=13:
    print(K)
elif N >= 6:
    print(K//2)
else:
    print(0)

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

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

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

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

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

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

Solution (Python):
a, b = map(lambda x: int(x), input().split())

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

Solution (Python):
import sys
def input(): return sys.stdin.readline().rstrip()

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

if __name__ == '__main__':
    main()

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

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

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

Solution (Python):
"""
author : halo2halo
date : 12, Jan, 2020
"""

import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)

a, b = map(int, readline().split())
print(b if a >= 13 else b // 2 if a >= 6 else 0)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):


import sys

A, B = (int(x) for x in input().split())

if A <= 5:
	print(str(0))
	sys.exit()

if A >= 13:
	print(str(B))
	sys.exit()

print(str(int(B / 2)))

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

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

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

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

cnt = b

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

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

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

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

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


if __name__ == '__main__':
    main()

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

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

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

Solution (Python):
N, W = map(int, input().split())
if N >=13:
  print(W)
elif N >=6:
  print(W//2)
else:
  print(0)

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

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

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

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

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

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

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

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

Solution (Python):
INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STRM = lambda: map(str,input().split())
STR = lambda: str(input())
LIST = lambda: list(map(int,input().split()))
LISTS = lambda: list(map(str,input().split()))
def do():
    a,b=INTM()
    if a<=5:
        print(0)
    elif a<= 12:
        print(b//2)
    else:
        print(b)
if __name__ == '__main__':
    do()

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

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

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

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

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

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

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

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

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

Solution (Python):
A, B = map(int, open(0).read().split())
if A <= 5:
    print(0)
elif 6 <= A <= 12:
    print(B // 2)
else:
    print(B)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

print(ans)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

def main(_old, _fee):
    if int(_old) >= 13:
        return int(_fee)
    elif 6 <= int(_old) <= 12:
        return int(_fee) // 2
    else:
        return 0

if __name__ == '__main__':
    print(main(a, b))

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

Solution (Python):
a, b = map(int, input().split())
pay = 0

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

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

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

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

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

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

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

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

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

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

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

if a >= 13:
    ans = b
elif a > 5:
    ans = b//2
else:
    ans = 0

print(ans)

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

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

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

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

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

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

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

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

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

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


if __name__ == '__main__':
    solve()

Solution (Python):
n,b = map(int, input().split())
ans = 0
if 6<=n<=12:
    ans = b // 2
elif n > 12:
    ans = b
print(ans)

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

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

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

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

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

if a > 12:
    print(b)

elif 5 < a < 13:
    print(b // 2)

else:
    print(0)

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

if a >= 13:
    print(b)

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

elif 5 >= a:
    print(0)

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

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

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

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

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

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

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

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

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

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

Solution (Python):
n,k=map(int,input().split())
if n>=13:
  print(k)
elif n>=6:
  print(k//2)
else:
  print(0)

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

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

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

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

if A >= 13:
    print(B)

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

else:
    print(0)

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

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

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

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

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

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

Solution (Python):
from collections import Counter,defaultdict,deque
from heapq import heappop,heappush,heapify
import sys,bisect,math,itertools,fractions,pprint
sys.setrecursionlimit(10**8)
mod = 10**9+7
mod2 = 998244353
INF = float('inf')
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))
def inpln(n): return list(int(sys.stdin.readline()) for i in range(n))

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

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

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

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

Solution (Python):
A, B = map(int, input().split())
ans = 0

if A>=13:
    ans = B
elif A>=6:
    ans = B//2

print(ans)

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

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

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

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

Solution (Python):

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

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

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

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

if 13 <= a:
    print(b)

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

else:
    print(0)

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
A, B = map(int, input().split())
ans = 0

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

print(ans)

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

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

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

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

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

Solution (Python):
p,q=map(int,input().split())
if p>=13:
    print(q)
elif 6<=p<=12:
    print(q//2)
else:
    print(0)

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

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

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

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

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