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:
from collections import deque
from collections import Counter
from itertools import product, permutations,combinations
from operator import itemgetter
from heapq import heappop, heappush
from bisect import bisect_left, bisect_right, bisect
#pypyではscipy, numpyは使えない
#from scipy.sparse.csgraph import shortest_path, floyd_warshall, dijkstra, bellman_ford, johnson, minimum_spanning_tree
#from scipy.sparse import csr_matrix, coo_matrix, lil_matrix
#import numpy as np
from fractions import gcd
from math import ceil,floor, sqrt, cos, sin, pi, factorial
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10**8)
INF = float('inf')

def main():
  a, b = map(int, readline().split())
  if a>=13:
    print(b)
  elif a>=6 and a<=12:
    print(int(b/2))
  else:
    print(0)
  
  
  
  
if __name__ == '__main__':
  main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = [int(x) for x in input().split()]
if a >= 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>12:
  print(b)
elif a<=5:
  print(0)
else:
  print(b//2)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

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

if __name__ ==  '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# coding: utf-8

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

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

Submission status: Accepted

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

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

print(int(answer))

Submission status: Accepted

Solution code:
def solve():
    N, M = map(int, input().split())
    if N <= 5:
        return 0
    elif N <= 12:
        return M //2
    else:
        return M

print(solve())

Submission status: Accepted

Solution code:
# from math import factorial,sqrt
# from itertools import permutations as permus
# from fractions import gcd
# from collections import deque,Counter
# from decimal import Decimal, getcontext
# # getcontext().prec = 1000
# # eps = Decimal(10) ** (-100)

# import numpy as np
# import scipy as scp

# 入力の受け取り
a,b = map(int,input().split())

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

print(ans)
# print("{:.10f}".format(ans))
# print(*ans)   # unpackして出力。間にスペースが入る
# for row in board:
#     print(*row,sep="")    #unpackして間にスペース入れずに出力する

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
print([0,b//2,b][(a>5)+(a>12)])

Submission status: Accepted

Solution code:
import sys
from bisect import *
from heapq import *
from collections import *
from itertools import *
from functools import *
from math import *

sys.setrecursionlimit(100000000)
input = lambda: sys.stdin.readline().rstrip()

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = [int(_) for _ in 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 >= 13:
  print(B)
elif A >= 6:
  print(B//2)
else:
  print("0")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

price = b
if ( 6 <= a ) & ( a <= 12 ):
  price //=2
elif ( a < 6 ):
  price = 0

print(price)

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:
# ABC127 A

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

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

if (6 <= age and age <= 12):
    ans = price // 2
elif (age >= 13):
    ans = price

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

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

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
  歳の高橋君が観覧車に乗ろうとしています。

この観覧車は、
13
 歳以上が乗るには
B
 円 (
B
 は偶数) かかりますが、
6
 歳以上
12
 歳以下の人はその半額で乗ることができ、 さらに
5
 歳以下の人は無料で
'''

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
if __name__ == "__main__":
    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:
N,price = map(int, input().split())

if N >= 13:
  print(price)

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

print(ans)

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from fractions import gcd
def input(): return sys.stdin.readline().strip()
def STR(): return input()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def S_MAP(): return map(str, input().split())
def LIST(): return list(map(int, input().split()))
def S_LIST(): return list(map(str, input().split()))
sys.setrecursionlimit(10 ** 9)
inf = sys.maxsize
mod = 10 ** 9 + 7

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys

def solve():
    input = sys.stdin.readline
    A, B = map(int, input().split())
    if A <= 5: B = 0
    elif A <= 12: B //= 2
    print(B)

    return 0

if __name__ == "__main__":
    solve()

Submission status: Accepted

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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())
price = 0

if A<=5:
  price+=0
elif 6<=A<=12:
  price+=B/2
else:
  price+=B

print(int(price))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x=list(map(int, 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 <= 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 >= 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 <= 12 and a >= 6:
    b /= 2

print(int(b) if a >= 6 else 0)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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 bisect
# from collections import Counter, defaultdict, deque
# import copy
# from heapq import heappush, heappop, heapify
# from fractions import gcd
# import itertools
# from operator import attrgetter, itemgetter
# import math

import sys

# import numpy as np

ipti = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)

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

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

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

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:
def task():
	a=input().split()
	b=int(a[0])
	c=int(a[1])
	if(b>=13):
		print(c)
	elif(b>5):
		print(int(c/2));
	else:
		print(0);		
t=1
while(t>0):
		task()
		t-=1

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 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 A<=12 else B)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin

a, b = (int(x) for x in stdin.readline().rstrip().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 >= 13:
    print(B)
elif 6 <= A:
    print(B//2) # ???
else:
    print('0')

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
age, price = (int(x) for x in input().split(' '))

if age <= 5:
    print('0')
elif 6 <= age <= 12:
    print('{}'.format(price // 2))
else:
    print('{}'.format(price))

Submission status: Accepted

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


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


# Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  # type: int
    B = int(next(tokens))  # type: int
    solve(A, B)

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
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(int(b / 2))
else:
    print(0)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/python3
# -*- coding:utf-8 -*-

def main():
  a, b = map(int, input().strip().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:
    ans = b
if 6 <= a and a < 13:
    ans = b//2
if a < 6:
    ans = 0
print(ans)

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

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:
#!/usr/bin/env python3
import sys


def solve(A: int, B: int):
    if A <= 5:
        return 0
    if A <= 12:
        return B // 2
    return B

# Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  # type: int
    B = int(next(tokens))  # type: int
    print(solve(A, B))

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
if a<6: print(0)
elif a>=13: print(b)
else: print(b//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(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:
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7
 
A, B = MAP()
 
if A >= 13:
  print(B)
  exit()
if A <= 5:
  print(0)
  exit()
print(B//2)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
n,k = map(int, input().split())

if n>12: print(k)
elif n>5: print(k//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:
number = input().split(" ")
A = int(number[0])
B = int(number[1])
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 <= 5:
        print(0)

if A >= 6 and A <= 12:
        print(round(B/2))

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

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

Solution code:
'''
n = int(input())
l = list(map(int, input().split()))
c = 1
for i in range(1, n):
    if l[i] >= l[i - 1]:
        c += 1
print(c)
'''
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>12:
  print(b)
elif a>5:
  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())
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 and a<=12:
    print(b//2)
elif a<=5:
    print(0)
else:
    print(b)

Submission status: Accepted

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