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

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

    print(price)


if __name__ == '__main__':
    solve()

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:
    b = 0
elif a >= 6 and a <= 12:
    b //= 2

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:
def main():
    a, b = list(map(int, input().split()))
    if a < 6:
        cost = 0
    elif 5 < a < 13:
        cost = b // 2
    else:
        cost = b
    print(cost)


main()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

rate = 0

if A < 6:
    rate = 0
elif A < 13:
    rate = int(B / 2)
else:
    rate = B
            
print("{}".format(rate))

Submission status: Accepted

Solution code:
age, fee = map(int, input().rstrip().split(' '))

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

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

Submission status: Accepted

Solution code:
a = input().split()
age = int(a[0])
price = int(a[1])

if age >= 13:
    print(price)
elif age < 6:
    print("0")
else:
    print(price//2)

Submission status: Accepted

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

Submission status: Accepted

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

else:
    print(b)

Submission status: Accepted

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

Submission status: Accepted

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

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

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

print(ans)

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

print(ans)

Submission status: Accepted

Solution code:
from __future__ import print_function
# import numpy as np
# import numpypy as np
import sys
import math
import string
import fractions
import re
import array
import copy
import functools
import operator

import collections
import itertools
import bisect
import heapq


from heapq import heappush
from heapq import heappop

# from itertools import accumulate
# from collections import deque
import random




def eprint(*args, **kwargs):
    print(*args, file=sys.stderr, **kwargs)


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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8

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

Submission status: Accepted

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

ans = 0

if A >= 13:
    ans = B
elif (12 >= A) and (A >= 6):
    ans = (B>>1)
elif 5 >= A:
    ans = 0

print ans

Submission status: Accepted

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

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


main()

Submission status: Accepted

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

print(ryoukin)

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

Submission status: Accepted

Solution code:
# coding: UTF-8
# sample code

v = list(map(int, input().split()))
a, b = v[0], v[1]

if a > 12:
	print(b)
elif ( a <= 12 ) and ( a >= 6 ):
	print(round(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:

if __name__ == '__main__':
    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(13 <= a):
    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)

Submission status: Accepted

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

Submission status: Accepted

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

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

print(output_value)

Submission status: Accepted

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

if N < 6:
    print(0)
    exit(0)
if N < 13:
    print(K//2)
    exit(0)
print(K)

Submission status: Accepted

Solution code:
#coding: utf-8
#a, b = map(int, input().split())
#a, b, c, x = map(int, [input() for i in range(4)])

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

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

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:
# -*- coding:utf-8 -*-

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

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

Submission status: Accepted

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

fare = 0
if 6 <= A <= 12:
    fare = int(B/2)
if A > 12:
    fare = B

print(fare)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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 -*-


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:

def main():
    A, B = map(int, input().split())
    # A = 0
    # B = 100
    if A >= 13:
        print(B)
        return
    if A >= 6:
        print(int(B / 2))
        return
    print(0)
    pass


if __name__ == '__main__':
    main()

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 = tuple([int(x) for x 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 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>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(int(b))
elif a >= 6:
  print(int(b/2))
else:
  print(0)

Submission status: Accepted

Solution code:
#ABC127A-FerrisWheel.py

from sys import stdin

A, B = list(map(int, stdin.readline().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 = [int(x) for x in input().rstrip().split(" ")]

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(nori)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

import sys

a,b = [ int(x) for x in sys.stdin.readline().split() ]

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

print( c )

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!usr/bin/env python3
from collections import defaultdict
from collections import deque
from heapq import heappush, heappop
import sys
import math
import bisect
import random
import itertools
sys.setrecursionlimit(10**5)
stdin = sys.stdin
bisect_left = bisect.bisect_left
bisect_right = bisect.bisect_right
def LI(): return list(map(int, stdin.readline().split()))
def LF(): return list(map(float, stdin.readline().split()))
def LI_(): return list(map(lambda x: int(x)-1, stdin.readline().split()))
def II(): return int(stdin.readline())
def IF(): return float(stdin.readline())
def LS(): return list(map(list, stdin.readline().split()))
def S(): return list(stdin.readline().rstrip())
def IR(n): return [II() for _ in range(n)]
def LIR(n): return [LI() for _ in range(n)]
def FR(n): return [IF() for _ in range(n)]
def LFR(n): return [LI() for _ in range(n)]
def LIR_(n): return [LI_() for _ in range(n)]
def SR(n): return [S() for _ in range(n)]
def LSR(n): return [LS() for _ in range(n)]
mod = 1000000007
inf = float('INF')

#A
def A():
    a, b = LI()
    if a <= 5:
        print(0)
    elif 6 <= a <= 12:
        print(b // 2)
    else:
        print(b)
    return

#B
def B():
    r, d, x = LI()
    for i in range(10):
        print(x * r - d)
        x = x * r - d
    return

#C
def C():
    return

#D
def D():
    return

#E
def E():
    return

#F
def F():
    return

#G
def G():
    return

#H
def H():
    return

#Solve
if __name__ == '__main__':
    A()

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

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

print (output)

Submission status: Accepted

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

age = parents[0]
price = parents[1]

if age >= 13:
    print(price)
elif age <= 5:
    print(0)
else:
    print(price//2)

Submission status: Accepted

Solution code:
A, B = 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("%d" % (b))
elif a >= 6 and a <= 12:
	print("%d" % (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 > 12:
  print(b)
elif a > 5:
  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 >= 6:
    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=b/2
else:
  ans=0
print(int(ans))

Submission status: Accepted

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

Submission status: Accepted

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

if A[0]<6:
    ans = 0
elif A[0]<13:
    ans = int(A[1]/2)
else:
    ans = int(A[1])

print(str(ans))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
A,B = [int(x) for x 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())
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 <= 5:
    print(0)
elif 6 <= a <= 12:
    print(int(b/2))
else:
    print(b)

Submission status: Accepted

Solution code:
from sys import stdin
    
def main():
    a,b = [int(x) for x in stdin.readline().rstrip().split()]

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

Submission status: Accepted

Solution code:
def i_input(): return int(input())
def s_input(): return map(int,input().split())
def l_input(): return list(map(int, input().split()))

A, B = s_input()

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

Submission status: Accepted

Solution code:
n = input().split(" ")
a = int(n[0])
b = int(n[1])
ans = 0

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#n = int(input())
a,b=map(int,input().split()) #横並び
#x=[int(input()) for i in range(3)] #縦に並んだのを配列に
#y=list(map(int,input().split())) #横に並んだのを配列に
ret = b
if a < 13:
    ret//=2
if a<=5:
    ret = 0
print(ret)
#print('YNEOS'[1::2])

Submission status: Accepted

Solution code:
import sys,collections as cl,bisect as bs
sys.setrecursionlimit(100000)
Max = sys.maxsize
def l():
	return list(map(int,input().split()))
def m():
	return map(int,input().split())
def s(x):
	a = []
	aa = x[0]
	su = 1
	for i in range(len(x)-1):
		if aa == x[i+1]:
			a.append([aa,su])
			aa = x[i+1]
			su = 1
		else:
			su += 1
	a.append([aa,su])
	return a
def jo(x):
	return " ".join(map(str,x))


a,b = m()

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

print(int(res))

Submission status: Accepted

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

Submission status: Accepted

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


if __name__ == '__main__':
    main()

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

Submission status: Accepted

Solution code:
A, B = map(int, input().strip().split())
if A >= 13:
    print(B)
elif 12 >= A >= 6:
    print(int(B / 2))
elif 5 >= A:
    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:
num1, num2 = [int(i) for i in input().split()]

if num1 >=13:
    print(str(num2))
elif num1 >= 6:
    print(str(num2//2))
else :
    print("0")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
def getN():
    return int(input())

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

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

a, b = getlist()

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

Submission status: Accepted

Solution code:
A, B = (int(x) for x in input().split())
if A in range(0, 6):
    print(0)
    exit()
elif A in range(6, 13):
    print(B//2)
    exit()
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:
n,m=list(map(int,input().split()))
if n<6:
    print(0)
elif n<13:
    print(int(m/2))
else:
    print(int(m))

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 math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time

sys.setrecursionlimit(10**7)
inf=10**20
mod=10**9+7

def LI(): return list(map(int,input().split()))
def II(): return int(input())
def LS(): return input().split()
def S(): return input()

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

main()
# print(main())

Submission status: Accepted

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

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

print(ans)

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:
# -*- coding: utf-8 -*-

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

Submission status: Accepted

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

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

if __name__=="__main__":
    solve()

Submission status: Accepted

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

if y <= 5:
    c = 0
elif y <= 12:
    c = c // 2

print(c)

Submission status: Accepted

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

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