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:
     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<=5:
    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 >= 13):
    print(b)
else :
    if(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:
# -*- coding: utf-8 -*-
a, b = map(int, input().split())
print(b // 2 if (a >= 6) and (a <= 12) else 0 if a <= 5 else b)

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

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

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

if age >= 13:
    print(price)
elif age <= 5:
    print(0)
else:
    print(int(price/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:
# coding: utf-8
# Author: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:
# coding: utf-8 
#Author: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:
import unittest


class TestA(unittest.TestCase):
    def test_1(self):
        self.assertEqual(think(30, 100), 100)

    def test_2(self):
        self.assertEqual(think(12, 100), 50)

    def test_3(self):
        self.assertEqual(think(0, 100), 0)


def solve():
    a, b = read()
    result = think(a, b)
    write(result)


def read():
    return read_int(2)


def read_int(n):
    return read_type(int, n)


def read_float(n):
    return read_type(float, n)


def read_type(t, n):
    return list(map(lambda x: t(x), read_line().split(' ')))[:n]


def read_line(n=0):
    if n == 0:
        return input().rstrip()
    else:
        return input().rstrip()[:n]


def think(a, b):
    if a <= 5:
        return 0
    elif a <= 12:
        return b // 2
    return b


def write(result):
    print(result)


if __name__ == '__main__':
    # unittest.main()
    solve()

Submission status: Accepted

Solution code:
l=list(map(int,input().split()))
a=l[0]
b=l[1]
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(int(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 a>5 else "0")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import math
import datetime

# 入力
#N = int(input())
#S = str(input())
#H, W = map(int, input().split())
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 <= 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:
#!/usr/bin/env python
# coding: utf-8

def ri():
    return int(input())

def rl():
    return list(input().split())

def rli():
    return list(map(int, input().split()))

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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
A,B=tuple(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:
#Ferris Wheel
A,B = map(int,input().split())
if A >= 13:
    print(B)
if 6 <= A <=12:
    print(B//2)
if 5 >= A:
    print(0)

Submission status: Accepted

Solution code:
def main():
    i = list(map(int, input().split()))
    a = i[0]
    b = i[1]

    #if isinstance(a, int) == False or isinstance(b, int) == False or a < 0 or 100 < a or b < 2 or 1000 < b or b % 2 != 0:
    #    return

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

if __name__ == "__main__":
    main()

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<6:
  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<6 else int(b/2) if a<13 else b)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A,B=map(int, input().split())  #複数数値入力　「A B」みたいなスペース空いた入力のとき

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys, math, itertools, heapq, collections, bisect
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8')
sys.setrecursionlimit(10**8)
inf = float('inf')
ans = count = 0



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
input = sys.stdin.readline
def print_ans(A, B):
    """Test Case
    >>> print_ans(30, 100)
    100
    >>> print_ans(12, 100)
    50
    >>> print_ans(0, 100)
    0
    """
    if A > 12:
        ans = B
    elif 6 <= A <= 12:
        ans = B // 2
    else:
        ans = 0
    print(ans)

if __name__ == '__main__':
    A, B = map(int, input().rstrip().split())
    print_ans(A, B)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
from collections import defaultdict,deque, Counter
import sys,heapq,bisect,math,itertools,string,queue,copy,time
import numpy as np
sys.setrecursionlimit(10**8)
INF = float('inf')
mod = 10**9+7
eps = 10**-7
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))
def inpl_str(): return list(sys.stdin.readline().split())
ans = 0

[A, B] = inpl()
if A <= 5:
    ans = 0
elif A>5 and A < 13:
    ans = B//2
else:
    ans = B

print(ans)

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

Submission status: Accepted

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

if A <= 5:
    print('0')
elif A <= 12:
    print( round(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 >=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:
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:
def inpl():
    return list(map(int, input().split()))


A, B = inpl()

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(10**9)
INF=10**18
def input():
    return sys.stdin.readline().rstrip()

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

if data[0] >= 13:
    print(int(data[1]))
elif data[0] >= 6:
    print(int(data[1]/2))
else:
    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:
# 2019-11-13 08:30:54(JST)
import sys
# import collections
# import math
# from string import ascii_lowercase, ascii_uppercase, digits
# from bisect import bisect_left as bi_l, bisect_right as bi_r
# import itertools
# from functools import reduce
# import operator as op
# from scipy.misc import comb # float
# import numpy as np 

def main():
    a, b = [int(x) for x in sys.stdin.readline().split()]
    if a >= 13:
        ans = b
    elif a >= 6:
        ans = b // 2
    else:
        ans = 0
    
    print(ans)


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
# A - Ferris Wheel
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:
    ans = b
elif a >= 6:
    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 a>=6:
  print(int(b/2))
else:
  print(0)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(ret)

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

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 b//2 if a >= 6 else 0)

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(2147483647)
INF=float("inf")
MOD=10**9+7
input=lambda :sys.stdin.readline().rstrip()
def resolve():
    a,b=map(int,input().split())
    if(a>=13):
        print(b)
    elif(a<=5):
        print(0)
    else:
        print(b//2)
resolve()

Submission status: Accepted

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

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

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:
#%%
import sys
def input():
    return sys.stdin.readline().rstrip()

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

#%%
if __name__ == '__main__':
    main()

Submission status: Accepted

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

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:
# ABC 127: A – Ferris Wheel
a, b = [int(s) for s in input().split()]
if a >= 13:
    print(b)
elif 6 <= a <= 12:
    print(b // 2)
else:
    print(0)

Submission status: Accepted

Solution code:
import math

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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 A <= 5:
    print(0)
else:
    print(int(B/2))

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys
sys.setrecursionlimit(10000)
INF = 1<<32


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



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  # 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: ans = B
elif A >= 6: ans = B // 2
else: ans = 0

print(ans)

Submission status: Accepted

Solution code:
a, b = list(map(int, input().split()))
 
if a < 6:
  print(0)

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

Submission status: Accepted

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


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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
if a>12:
  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())
total = 0

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

Submission status: Accepted

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

Submission status: Accepted

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


def main():
    A,B = map(int, input().split())
    if A <= 5:
        print(0)
        return
    if A <= 12:
        print(math.floor(B/2))
        return
    print(B)


if __name__ == "__main__":
    main()

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

Submission status: Accepted

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

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

if __name__ == '__main__':
    solve()

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

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:
AB = input().split()
age = int(AB[0])
fee = int(AB[1])
yen = 0
if age >= 13:
    yen = fee
elif age < 13 and age >= 6:
    yen = fee // 2
else:
    yen = 0
print(yen)

Submission status: Accepted

Solution code:
#ABC127A - Ferris Wheel
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:
#ABC127A - Ferris Wheel
A, B = list(map(int,input().split()))
if A >= 13:
    print(B)
if 6 <= A <= 12:
    print(B//2)
if A <= 5:
    print(0)

Submission status: Accepted

Solution code:
#ABC127A - Ferris Wheel
A, B = list(map(int,input().split()))
if A <= 5:
    print(0)
elif A <= 12:
    print(B//2)
elif A >= 13:
    print(B)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A,B = map(int,input().split())
if A <= 5:
    print(0)
elif 6 <= A <= 12:
    print(B//2)
elif 13 <= A:
    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:
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

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

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

Submission status: Accepted

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