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

import sys
from collections.abc import Iterable
from math import *
from itertools import *
from collections import *
from functools import *
from operator import *
try:
    from math import gcd
except Exception:
    from fractions import gcd


def solve(A: int, B: int):
    if 13 <= A:
        return B
    elif 6 <= A:
        return B // 2
    return 0


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  
    B = int(next(tokens))  
    result = solve(A, B)
    if isinstance(result, Iterable) and not isinstance(result, str):
        result = '\n'.join([str(v) for v in result])
    print(result)

if __name__ == '__main__':
    main()

Solution (Python):

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

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

Solution (Python):



s = list(map(int,input().split()))
A=s[0]
B=s[1]

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

Solution (Python):
money = input().split()
money_one = int(money[0])
money_two = int(money[1])

if money_one <= 5:
    print("0")
elif money_one >= 13:
    print(money_two)
else:
    print(round(money_two/2))

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

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

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

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

Solution (Python):

import sys


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



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  
    B = int(next(tokens))  
    solve(A, B)

if __name__ == '__main__':
    main()

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 = (int(i) for i in input().split())
  if a <= 5:
    ans = 0
  elif 6<= a and a <= 12:
    ans = b//2
  else:
    ans = b
  print(ans)
solve()

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

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

print(res)

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

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

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

ans = 0

if A > 12:
    ans = B
elif A > 5:
    ans = int(B/2)

print(ans)

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

Solution (Python):
def main():
    A, B = [int(ele) for ele in input().split()]
    ans = -1
    if 13 <= A:
        ans = B
    elif 6 <= A <= 12:
        ans = int(B/2)
    else:
        ans = 0

    print(ans)


if __name__ == "__main__":
    main()

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

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

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

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


def main():
    if int(a) > 12:
        return int(b)
    elif int(a) > 5 and int(a) < 13:
        return int(int(b)/2)
    else:
        return 0
                

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

Solution (Python):


AB = [int(i) for i in input().split()]

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

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

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

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

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

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

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

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

Solution (Python):
a, b = [int(item) for item in 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):
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()

Solution (Python):
a, b = [int(i) for i in input().split(" ")]
if 13 <= a:
    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 a>=6 and a<=12:
    print(int(b/2))
elif a<=5:
    print(0)

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

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

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

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

Solution (Python):


from collections import deque
import itertools as ite
import sys
import math

sys.setrecursionlimit(1000000)

INF = 10 ** 18
MOD = 10 ** 9 + 7

A, B = map(int, raw_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 >= 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(B // 2)
else:
    print(B)

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

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

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

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

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

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

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

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

Solution (Python):
li = input().split()
a = int(li[0])
b = int(li[1])
if a > 12:
    print(b)
elif a >= 6:
    print(int(b/2))
else:
    print(0)

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

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

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

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

def solve(): 
    A, B =  map(int, input().split())
    if A <= 5:
        res = 0
    elif A >= 13:
        res = B
    else:
        res = B//2
    return str(res)

if __name__ == '__main__':
    print(solve())

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

Solution (Python):
from io import StringIO
from collections import *
from functools import *
import sys


def main(inputs):
    
    
    
    a, b = map(int, next(inputs).split())
    if a >= 13:
        return b
    if a >= 6:
        return b // 2
    return 0


def gen_inputs(str_=None):
    inputs = StringIO(str_) if str_ else sys.stdin
    while True:
        a = inputs.readline().rstrip()
        yield a
        pass
    pass


if __name__ == "__main__":
    print(main(gen_inputs()))
    pass

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

Solution (Python):


import math
import re

def main(params):
    a,b = params[0].split()
    a = int(a)
    b = int(b)
    if a <= 5:
        print 0
    elif a >= 6 and a <= 12:
        print b / 2
    else:
        print b



if __name__ == "__main__":
    cnt = 1 
    params = []
    for i in range(cnt):
        param = raw_input()
        params.append(param)
    main(params)

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

if A >= 13:
    print(B)
elif A > 5:
    print(int(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 else 0)

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

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

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

print(ans)

Solution (Python):
A, B = [int(n) for n in 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 6<=a<=12:
  print(int(b/2))
elif 13<=a:
  print(b)
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))

else:
    print(int(B))

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

Solution (Python):
import sys


fin = sys.stdin.readline
A, B = [int(elem) for elem in fin().split()]

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

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

Solution (Python):
a, b = map(int, raw_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())
def price(A,B):
    if A>=13:
        price=B
    elif A>=6 and A<=12:
        price=int(B/2)
    else:
        price=0
    return price

print("{}".format(price(A,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(int(B / 2))
else:
    print(0)

Solution (Python):
a, b = map(int, raw_input().strip().split())
if a >= 13:
    print b
if a >= 6 and a <= 12:
    print b >> 1
if a <= 5:
    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:
    ans = b
elif 6 <= a <= 12:
    ans = b//2
else:
    ans = 0
print(ans)

Solution (Python):

"""
Created on Sat Apr 20 20:47:47 2019

@author: Owner
"""


"""
Created on Sat Apr 13 09:53:12 2019

@author: Owner
"""
import numpy as np
import sys
import collections
import scipy.misc
import math
from operator import itemgetter
import itertools
import copy
import bisect


def prime_decomposition(n):
  i = 2
  table = []
  while i * i <= n:
    while n % i == 0:
      n /= i
      table.append(int(i))
    i += 1
  if n > 1:
    table.append(int(n))
  return table   

def digit(i):
    if i > 0:
        return digit(i//10) + [i%10]
    else:
        return []
    
def getNearestValueIndex(list, num):
    """
    概要: リストからある値に最も近い値のインデックスを取得する関数
    @param list: データ配列
    @param num: 対象値
    @return 対象値に最も近い値
    """

    
    idx = np.abs(np.asarray(list) - num).argmin()
    return idx

def find_index(l, x, default=False):
    if x in l:
        return l.index(x)
    else:
        return default

class UnionFind(object):
    def __init__(self, n=1):
        self.par = [i for i in range(n)]
        self.rank = [0 for _ in range(n)]
        self.size = [1 for _ in range(n)]

    def find(self, x):
        """
        x が属するグループを探索
        """
        if self.par[x] == x:
            return x
        else:
            self.par[x] = self.find(self.par[x])
            return self.par[x]

    def union(self, x, y):
        """
        x と y のグループを結合
        """
        x = self.find(x)
        y = self.find(y)
        if x != y:
            if self.rank[x] < self.rank[y]:
                x, y = y, x
            if self.rank[x] == self.rank[y]:
                self.rank[x] += 1
            self.par[y] = x
            self.size[x] += self.size[y]

    def is_same(self, x, y):
        """
        x と y が同じグループか否か
        """
        return self.find(x) == self.find(y)

    def get_size(self, x):
        """
        x が属するグループの要素数
        """
        x = self.find(x)
        return self.size[x]
    

"""
N, X = map(int, input().split())

x = list(map(int, input().split()))

P = [0]*N
Y = [0]*N
for n in range(N):
    P[n], Y[n] = map(int, input().split())


dp = np.zeros((N+1, 4,4,4))
    
all(nstr.count(c) for c in '753')


ABT = zip(A, B, totAB)
result = 0

sorted(ABT,key=itemgetter(2))
A, B, totAB = zip(*ABT)
A.sort(reverse=True)


(x >> i) & 1


dp = [np.inf]*N
for n in range(N):
    if n == 0:
        dp[n] = 0
    else:
        for k in range(1,K+1):
            if n-k >= 0:
                dp[n] = min(dp[n], dp[n-k] + abs(h[n]-h[n-k]))
            else:
                break

add = 1 
res = 0
sums = [0]*(len(nums)+1)
for i in range(len(nums)):
    sums[i+1] = sums[i] + nums[i]
for i in range(0, len(nums), 2):
    left = i
    right = min(i+add, len(nums))
    tmp = sums[right] - sums[left]
    res = max(tmp, res)


li, ri = bisect.bisect_left(p_ac, l[i]-1), bisect.bisect_right(p_ac, r[i]-1)    


org_list = [3, 1, 4, 5, 2]
new_list = sorted(org_list)
print(org_list)
print(new_list)




    for h in range(0,H):
        for w in range(0,W):
            if h == 0 and w == 0:
                pass
            elif h == 0:
                D[H-h-1][W-w-1]= min(D[H-h-1][W-w-1], D[H-h-1][W-w]+1)
            elif w == 0:   
                D[H-h-1][W-w-1]= min(D[H-h-1][W-w-1], D[H-h][W-w-1]+1)
            else:
                D[H-h-1][W-w-1]= min(D[H-h-1][W-w-1], D[H-h][W-w-1]+1, D[H-h-1][W-w]+1, D[H-h][W-w]+2)
            d_max = max(D[H-h-1][W-w-1], d_max)

"""



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

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

N, B = list(map(int, input().split()))

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

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

if 13 <= A :
    ans = B
elif 6 <= A :
    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):
a,b = map(int,input().split(" "))

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

Solution (Python):
A,B=list(map(int,input().strip().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):
import sys
range = xrange
input = raw_input

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

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

Solution (Python):
age, fee = map(int, input().split())

if age < 6:
    print(0)
elif age < 13:
    print(int(fee/2))
else:
    print(fee)

Solution (Python):

































































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

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



ans = 0

Solution (Python):
n, k = map(int, input().split())
if n >= 13:
    print(k)
elif n < 13 and n >= 6:
    print(int(k/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):
from sys import stdin
import numpy as np









A, B = [int(x) for x in stdin.readline().rstrip().split()]

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 <= 5:
    print(0)
elif 6 <= 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):
A, B = map(int, input().split())


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


print(f())

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

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

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

if A>= 13:
    print(B)

if A>5 and A<13:
    print(B//2)

if A<= 5:
    print(0)

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

ans = 0

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

print(int(ans))

Solution (Python):
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)

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):
import sys,heapq
from collections import deque,defaultdict
printn = lambda x: sys.stdout.write(x)
inn = lambda : int(input())
inl   = lambda: list(map(int, input().split()))
inm   = lambda:      map(int, input().split())
DBG = True 
def ddprint(x):
  if DBG:
    print(x)

a,b = inm()
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 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):
Input = input().split()
A = int(Input[0])
B = int(Input[1])

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 > 12:
    print(b)
elif a > 5:
    print(int(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):



inp = input().split()
A = int(inp[0])
B = int(inp[1])

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

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 = (int(i) for i in 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>=13:
    print(B)
elif 5<A<13:
    print(int(B/2))
else:
    print(0)

Solution (Python):
import sys
 
 
A,B = sys.stdin.readline().strip().split()
A = int(A)
B = int(B)

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

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

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

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

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

print(price)

Solution (Python):
import sys
import os
A, B = map(int, input().split())
c=0
if A>=6:
    c=int(B/2)

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

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

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

Solution (Python):
a, b = [int(x) for x in input().strip().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 > 12:
    print(B)
elif A > 5:
    print(int(B/2))
else:
    print(0)

Solution (Python):


import math

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 = (int(i) for i in input().split())
if 12>=A>=6:
    print(B//2)
elif 5>=A:
    print(0)
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())
ans = 0
if A <=5:
    ans = 0
elif A <= 12:
    ans = int(B/2)
else:
    ans = B
print(ans)

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

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

Solution (Python):
age, value  = map(int, input().split())

if age >= 13:
    ans = value
elif age <= 5:
    ans = 0
else:
    ans = value / 2

print(int(ans))

Solution (Python):
inp = input()
st = inp.split()
a = int(st[0])
b = int(st[1])
if a >= 13:
    print(b)
elif a >=6:
    print(int(b / 2))
else:
    print(0)

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

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

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

Solution (Python):



import sys

input = sys.stdin.readline

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

main()

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):
A, B = list(map(int, input().split()))

if 13 <= A:
    print(B)
elif 6 <= A:
    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):
import math, string, itertools, fractions, heapq, collections, re, array, bisect, copy, functools, random
import sys
from collections import deque, defaultdict, Counter; from heapq import heappush, heappop
from itertools import permutations, combinations, product, accumulate, groupby
from bisect import bisect_left, bisect_right, insort_left, insort_right
from operator import itemgetter as ig
sys.setrecursionlimit(10 ** 7)
inf = 10 ** 20; INF = float("INF"); ans = 0; tmp = 0; ansli = []; tmpli = []; candili = []
eps = 1.0 / 10 ** 10; mod = 10 ** 9 + 7
dd = [(-1, 0), (0, 1), (1, 0), (0, -1)]; ddn = dd + [(-1, 1), (1, 1), (1, -1), (-1, -1)]; ddn9 = ddn + [(0, 0)]
"""for dx, dy in dd:
        nx = j + dx; ny = i + dy
            if 0 <= nx < w and 0 <= ny < h:"""
def wi(): return list(map(int, sys.stdin.readline().split()))
def wip(): return [int(x) - 1 for x in sys.stdin.readline().split()]
def ws(): return sys.stdin.readline().split()
def i(): return int(sys.stdin.readline())
def s(): return input()
def hi(n): return [i() for _ in range(n)]
def hs(n): return [s() for _ in range(n)]
def mi(n): return [wi() for _ in range(n)]
def mip(n): return [wip() for _ in range(n)]
def ms(n): return [ws() for _ in range(n)]

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

Solution (Python):
def main():
    age, cost = map(int, input().split())

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

if __name__ == "__main__":
    main()

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

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):
from sys import stdin

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

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

input = lambda: stdin.readline()
main()

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

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

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

Solution (Python):
A, B = list(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 > 12:
    print(b)
elif a > 5:
    print(b // 2)
else:
    print(0)

Solution (Python):
import numpy as np
words = lambda t : list(map(t, input().split()))
a,b = words(int)

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>12 else b//2 if 5<a<13 else 0)

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

Solution (Python):

 
import math
import numpy as np
import random
import copy
import statistics 
import bisect
import heapq
from collections import defaultdict 

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

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

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

if age <= 5:
	price = 0
elif age <= 12:
	price //= 2

print(price)

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

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

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

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

print(ans)

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