Problem:


Score : 100 points

Problem Statement

Takahashi, who is A years old, is riding a Ferris wheel.

It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)

Find the cost of the Ferris wheel for Takahashi.

Constraints

0 ≤ A ≤ 100

2 ≤ B ≤ 1000

B is an even number.

Input

Input is given from Standard Input in the following format:

A B

Output

Print the cost of the Ferris wheel for Takahashi.

Sample Input 1

30 100

Sample Output 1

100

Takahashi is 30 years old now, and the cost of the Ferris wheel is 100 yen.

Sample Input 2

12 100

Sample Output 2

50

Takahashi is 12 years old, and the cost of the Ferris wheel is the half of 100 yen, that is, 50 yen.

Sample Input 3

0 100

Sample Output 3

0

Takahashi is 0 years old, and he can ride the Ferris wheel for free.



Sample input:
30 100


Sample output:
100

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


if A >= 13:
    print(B)

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

else:
    print(0)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

def main():

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

import heapq
import copy
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()

Submission status: Accepted

Solution code:
year, money = map(int, input().split())

if year >= 13:
    print(money)
elif year >= 6:
    print(int(money/2))
else:
    print(0)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
if 0 <= a <= 100 and 2 <= b <= 1000 and 0 == b % 2:
    if 13 <= a:
        print(b)
    elif 6 <= a < 13:
        print(int(b/2))
    else:
        print(0)
else:
    print('Invalid value')

Submission status: Accepted

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

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
A,B = map(int,input().split())
print(B//-~(A<13)*(A>5))

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
list1 = [i for i in input().split()]

num1 = int(list1[0])
num2 = int(list1[1])

if num1<= 5:
    print (0)
elif 6<=num1<=12:
    print (int(num2/2))
else:
    print (num2)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
y,c=map(int,input().split())

res=c

if y<=5:
	res=0
else:
	if y<=12:
		res=c//2

print(res)

Submission status: Accepted

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

Submission status: Accepted

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

if A>12:
    print(B)
elif A>5:
    print(B//2)#intにするには//
else:
    print(0)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# input 2 integers A,B
A,B = (int(x) for x in input().split())

# output the cost to ride the Wheel
if A <= 5:
    print(0)
elif A>=6 and A<=12:
    print(int(B/2))
else:
    print(B)

Submission status: Accepted

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

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


if __name__ == "__main__":
    test()

Submission status: Accepted

Solution code:
a,b = map(int, input().split())
if a > 12:
    print(b)

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

else:
    print(0)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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


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

Submission status: Accepted

Solution code:
a = []
a = input().split()

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

input = input().split()
# inputList = list(input[0])

a = int(input[0])
b = int(input[1])
# c = int(input[2])

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

print(ans)

# inputList.sort()
#
# list = [a+b, b+c ,c+a]
#
# ans = min(list)
# print(ans)



# flg = 1
# for i in range(0, len(inputList)-1):
#     if inputList[i] == inputList[i + 1]:
#         flg = 0
#         break
#
# if flg == 0:
#     print("Bad")
# else:
#     print("Good")

Submission status: Accepted

Solution code:
inp = input().split()
a, b = int(inp[0]), int(inp[1])

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

Submission status: Accepted

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

if temp[0]>12:
  print(temp[1])
elif temp[0]<6:
  print(0)
else:
  print(int(temp[1]/2))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(cost)

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

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

# print(A)
# print(B)

# 6歳以上12歳以下の人はその半額で乗ることができ
# さらに5歳以下の人は無料で乗ることができます。

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#ABC127 A
A, B = (int(_) for _ in input().split())
if A <= 5:
    print(0)
elif A < 13:
    print(int(B / 2))
else:
    print(B)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

print(fee)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding : utf-8　

import os
import sys


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


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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

if age >= 13:
  print( '{0}'.format( price ) )
elif age >= 6:
  #print( '{0}'.format( price / 2 ) )
  print( '%d' % (price / 2)  )
else:
  print( 0 )

Submission status: Accepted

Solution code:


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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = input().split(" ")
year = int(i[0])
fee = int(i[1])

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

Submission status: Accepted

Solution code:
A, B = map(int, input().split())
# h, w = map(int, input().split())
# b=list(map(int,input().split()))

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

Submission status: Accepted

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