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):
hoge = input().split()
a = int(hoge[0])
b = int(hoge[1])
if a >= 13:
  print(b)
elif a >= 6 and a <= 12:
  print(int(b/2))
else:
  print(0)

Solution (Python):
import sys

a, b = sys.stdin.readline().rstrip().split(' ')
a = int(a)
if a <= 5:
  print('0')
elif a < 13:
  print(int(int(b)/2))
else:
  print(b)

Solution (Python):
def run(A, B):
    if A >= 13:
        fee = B
    elif A >= 6:
        fee = B / 2
    else:
        fee = 0
    return int(fee)


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


if __name__ == '__main__':
    main()

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

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

print(res)

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

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

print(int(ans))

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

result = 0

if A >= 13:
    result = B
elif  6 <= A <= 12:
    result = B/2

print(int(result))

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

if a >= 13:
    print(b)

if a >= 6 and a <= 12:
    c = b / 2
    print(round(c))

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

Solution (Python):

import sys;
sys.setrecursionlimit(20000) 





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














print(a, file=sys.stderr)



def doit(l):
  
  if l == 0:
    return True;
  for x in surfixes:
    if s[:l].endswith(x):

      if doit(l-len(x)):
        return True
  return False

try:
  if a[0] > 12:
    print("%d" % a[1])
  elif a[0] > 5:
    print("%d" % (a[1]/2))
  else:
    print("0")
except Exception as e:
  print(e, file=sys.stderr)

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

Solution (Python):
y, p = input().split()
y, p = int(y), int(p)

if y>12:
    print(p)
elif y>5:
    print(int(p/2))
else:
    print('0')

Solution (Python):

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

if a >= 13:
    money = b
elif 6 <= a and a <= 12:
    money = b // 2
elif a <= 5:
    money = 0

print(money)

Solution (Python):
i = input().split(' ')

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

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 A >= 6 and A <= 12:
    ans = B//2

print(ans)

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

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

print(str(result))

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

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

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

Solution (Python):
inputs = input().split()

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

if not 0 <= A <= 100:
    exit(0)

if not 2 <= B <= 1000:
    exit(0)

if not B % 2 == 0:
    exit(0)

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

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

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

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

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

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

Solution (Python):
from sys import stdin
import numpy as np

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

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

print(fare)

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

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

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

res = ""
if age >= 13:
    res = base_fee
elif age >= 6:
    res = int(base_fee / 2)
else:
    res  = 0
print(res)

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

Solution (Python):

import re
import bisect
from datetime import datetime as dt
A, B = map(int, input().split())
if 6 <= A <= 12:
    print(int(B / 2))
elif A <= 5:
    print(0)
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):
import math
a, b = map(int, input().split())
if a < 6:
  print(0)
elif a < 13:
  print(int(math.floor(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 < 13 and a > 5:
  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 A >= 13:
    print(B)
elif A >= 6:
    print(B//2)
else:
    print(0)

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

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

print(f)

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

Solution (Python):
A, B = (int(i) for i in 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())
if a <= 5:
    print(0)
elif 6 <= a <= 12:
    print(b // 2)
else:
    print(b)

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

Solution (Python):


n,ans=map(int,input().split(" "))
if(n<=12):
    ans/=2
if(n<6):
    ans=0
print(round(ans))

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

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

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

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

Solution (Python):
if __name__ == '__main__':
    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(b // 2)
else:
    print(0)

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

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

Solution (Python):

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


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

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

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

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

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

print(int(cost))

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

print(ans)

Solution (Python):
X = input().split()
if int(X[0])>=13:
  print(X[1])
elif 12>=int(X[0])>=6:
  n = int(X[1])/2
  s = int(n)
  print(s)
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):
if __name__ == '__main__':
    s = input().rstrip().split(' ')
    year = int(s[0])
    cost = int(s[1])
    if year >= 13:
        print(cost)
    elif year >= 6:
        print(int(cost/2))
    else:
        print(0)

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

from __future__ import division, print_function

import os
import sys
from __builtin__ import xrange as range
from cStringIO import StringIO
from future_builtins import ascii, filter, hex, map, oct, zip
from io import IOBase

import __pypy__


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




BUFSIZE = 8192


class FastI(IOBase):
    def __init__(self, file):
        self._fd = file.fileno()
        self._buffer = StringIO()
        self.newlines = 0

    def read(self):
        if self._buffer.tell():
            return self._buffer.read()
        return os.read(self._fd, os.fstat(self._fd).st_size)

    def readline(self):
        while self.newlines == 0:
            b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
            self.newlines = b.count("\n") + (not b)
            ptr = self._buffer.tell()
            self._buffer.seek(0, 2), self._buffer.write(b), self._buffer.seek(ptr)
        self.newlines -= 1
        return self._buffer.readline()


class FastO(IOBase):
    def __init__(self, file):
        self._fd = file.fileno()
        self._buffer = __pypy__.builders.StringBuilder()
        self.write = lambda s: self._buffer.append(s)

    def flush(self):
        os.write(self._fd, self._buffer.build())
        self._buffer = __pypy__.builders.StringBuilder()


def print(*args, **kwargs):
    sep, file = kwargs.pop("sep", " "), kwargs.pop("file", sys.stdout)
    at_start = True
    for x in args:
        if not at_start:
            file.write(sep)
        file.write(str(x))
        at_start = False
    file.write(kwargs.pop("end", "\n"))
    if kwargs.pop("flush", False):
        file.flush()


sys.stdin, sys.stdout = FastI(sys.stdin), FastO(sys.stdout)
input = lambda: sys.stdin.readline().rstrip("\r\n")



if __name__ == "__main__":
    main()

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

Solution (Python):
import sys
input = sys.stdin.readline

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

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

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

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

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

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

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

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

print(ans)

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

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

print(int(ans))

Solution (Python):
data = [int(s) for s in  input().split()]

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

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

result=0

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

print(result)

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

Solution (Python):
x = input()
li = x.split()
age = int(li[0])
m = int(li[1])
if(age <= 5):
  print(0)
elif(age <= 12):
  print(int(m / 2))
else:
  print(m)

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

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

Solution (Python):



def placingMarbles(input_str):
    vals = input_str.split(" ")
    A = int(vals[0])
    B = int(vals[1])
    if A >= 13:
        return int(B)
    elif 6 <= A and A<=12:
        return int(B / 2)
    else:
        return 0

if __name__ == "__main__":
    print(placingMarbles(input()))

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

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

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

print(int(ans))

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

print(int(ans))

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

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

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):
A,B= map(int,input().split())
if A>=13:
	print(B)
if 12>=A & A>=6:
	print(int(B/2))
if A<=5:
	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):
import sys
from fractions import gcd

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().rstrip()
s = lambda h: [list(map(int, stdin.readline().split())) for i in range(h)]



a, b = na()

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


print(ans)

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

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

Solution (Python):


v = [int(d) for d in input().split()]

if v[0] <= 12:
    if v[0] >= 6:
        print(int(v[1]/2))
        exit()
if v[0] <= 5:
    print('0')
    exit()
if v[0] >= 13:
    print(v[1])
    exit()

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

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

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

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

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

if input_num[0] >= 13:
    print(input_num[1])
elif input_num[0] <= 12 and input_num[0] >= 6:
    print(input_num[1] // 2)
else:
    print(0)

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

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

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

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

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

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

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

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

Solution (Python):

x,y = map(int, input().split())
if x <= 5:
    print(0)
elif x <=12:
    print(round(y/2))
else:
    print(y)

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

Solution (Python):
from sys import stdin
def main():
    A, B = map(int, stdin.readline().rstrip().split())
    
    if A >= 13:
      print(B)
    elif A >= 6:
      print(int(B/2))
    else:
      print(0)

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

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

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

Solution (Python):
import sys
sys.setrecursionlimit(10**7)






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

solve()

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

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

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

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

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

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

print(cost)

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

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

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

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

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

Solution (Python):
x = input().split()
a = int(x[0])
b = int(x[1])
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):
import math
A, B = map(int, input().split())

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

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

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

print(p)

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

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

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

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

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

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

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

Solution (Python):
import sys
import bisect
from collections import defaultdict

ans=0

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

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

def main():
    a,b = map(int,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(str(B))
elif A>=6 and A<13:
    print(str(int(B/2)))
else:
    print(str(0))

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

Solution (Python):
a=[]
a=input().split(" ")
A=int(a[0])
B=int(a[1])

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

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):
A,B = map(int,input().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 >= 13:
    pass
elif A >= 6:
    B //= 2
else:
    B = 0
print(B)

Solution (Python):
a,b=list(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())

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 <= 5:
    print('0')
elif a <= 12:
    print("{}".format(int(b/2)))
else:
    print("{}".format(b))

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

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

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

fare = 0

if A >= 13:
  fare = B

elif A >= 6 and A<=12:
  fare = int(B/2)

else:
  fare = 0


print(fare)

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

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

if a >= 13:
    ans = b
elif 12 >= a >= 6:
    ans = int(b/2)

print(ans)

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

Solution (Python):
a,b=(int(x) for x in input().split())
if a>=13:
    print(b)
if a<13:
    if a>=6:
        print(round(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 > 12:
    print(B)
elif 6 <= A <= 12:
    print(int(B / 2))
elif A < 6:
    print(0)

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

print(ans)

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

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

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

Solution (Python):


import sys
input = sys.stdin.readline



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

if argA >= 13:
  ans = argB
elif argA >= 6:
  ans = argB / 2
else:
  ans = 0

print(int(ans))

Solution (Python):
A,B = (int(i) for i in 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 and A<=12:
    print(B//2)
else:
    print(0)

Solution (Python):


inputs = input().split(' ')
age = int(inputs[0])
fee = int(inputs[1])

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

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

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

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

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

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):
x = input()

A = x.split()[0]
B = x.split()[1]

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

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

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

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

print(B)

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

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

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

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

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

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

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