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 <= 12:
        b = b / 2

if a <= 5:
        b = 0

print(int(b))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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


def solve(a, b):
    if a >= 13:
        return b
    elif a >= 6:
        return int(b / 2)
    return 0


def main():
    a, b = input_from_console()
    print(solve(a, b))


if __name__ == "__main__":
    DEBUG = False
    if not DEBUG:
        main()

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 = 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:
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:
#abc127a

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 = [int(t) for t in 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(str(B))
elif(6 <= A <= 12):
	print(str(int(B/2)))
elif(A <= 5):
	print(str(0))

Submission status: Accepted

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

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

print(int(ans))

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A, B = list(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 <= 12:
  b = int(b/2)
  if a <= 5:
    b = 0
print(b)

Submission status: Accepted

Solution code:
# ABC127A - Ferris Wheel
a, b = list(map(int, input().rstrip().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(0 if a<6 else b//2 if a<13 else b)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
A, B = [int(i) for i in input().split()]
if 0 <= 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 < 13:
    print(b//2)
else:
    print(b)

Submission status: Accepted

Solution code:
def abc127a():
    A, B = (int(s) for s in input().split(" "))
    answer = int(0 if A <= 5 else B / 2 if A <= 12 else B)
    print(answer)

def main():
    abc127a()

main()

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


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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

A, B = map(lambda x: int(x), sys.stdin.readline().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:
  c=b
elif a>=6:
  c=b/2
else:
  c=0
print(int(c))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
str = input().split()

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys
A,B= (int(i) for i in input().split(" "))  

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

Submission status: Accepted

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

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

Submission status: Accepted

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

if a > 12:
    print(b)
elif a > 5:
    print(b//2)
else:
    print('0')

Submission status: Accepted

Solution code:

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


print(f())

Submission status: Accepted

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

Submission status: Accepted

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

if A < 6:
    print(0)

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

Submission status: Accepted

Solution code:
def spaceinput():
    return list(map(int,input().split(" ")))


A,B=spaceinput()

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

Submission status: Accepted

Solution code:
import sys

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

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

print(int(b))

Submission status: Accepted

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

import math
if a>=13:
  print(b)
elif a<=5:
  print(0)
else:
  c=math.floor(b/2)
  print(c)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#coding utf-8
A,B=map(int,input().split())
ans=0
if A>=13:
  ans=B
elif A<13 and A>=6:
  ans=int(B/2)
else:
  ans =0

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

import sys

A, B = map(int, sys.stdin.readline().split(" ", 2))
if A >= 13:
    print("%d"%B)
elif A >= 6:
    print("%d"%(B/2))
else:
    print("%d"%0)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
(N,M) = (int(i) for i in input().split(" "))
print(int(0 if N < 6 else M if N > 12 else M/2))

Submission status: Accepted

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


def solve(A: int, B: int):
    if A > 12:
       sum = B
    elif A > 5:
        sum = B / 2
    else:
        sum = 0
    print(int(sum))


# Generated by 1.1.4 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:
import sys

old, yen = input().split()

if int(old) >= 13 :
    print(yen)
elif int(old) >= 6 :
    print(int(int(yen)/2))
else :
    print(0)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

if 6<=a<=12:
    print(math.ceil(b/2))

elif a>=13:
    print(math.ceil(b))

else:
    print("0")

Submission status: Accepted

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

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import numpy as np
from sys import stdin
#sys.setrecursionlimit(10**6) 

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

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

Submission status: Accepted

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

if age >= 13:
    print(teenPrice);
elif age >= 6 and age <= 12:
    print(int(teenPrice / 2));
else:
    print(0);

Submission status: Accepted

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# coding:utf-8

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

ferris(a, b)

Submission status: Accepted

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

A = int(A)
B = int(B)

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

print(round(B))

Submission status: Accepted

Solution code:
A, B = (int(i) for i in 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:
# -*- coding: utf-8 -*-
import sys
# スペース区切りの整数の入力
a, b = map(int, raw_input().split())
# 文字列の入力

if a < 6:
  result = b/2
  print 0
  sys.exit()

if 6 <= a and a <= 12 :
  result = b/2
  print result
  sys.exit()
result = b
print result

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin

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

ans = 0

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

print(ans)

Submission status: Accepted

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

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

Submission status: Accepted

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

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

if n>12:
    print(m)
elif n<=5:
    print(0)
else:
    print(m//2)

Submission status: Accepted

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

s = (input().split(' '))

a,b = [int(i) for i in s]

price = 0

if 0 <= a <= 5:
    price = 0
elif 5 < a <= 12:
    price = b // 2
else:
    price = b

print(price)

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:
# -*- coding: utf-8 -*-
     
a, b = map(int, input().split())
      
if a > 12:
  c = b
elif 5 < a <= 12:
  c = 0.5 * b
elif 0 <= a <= 5:
  c = 0

print(round(c))

Submission status: Accepted

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

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


if __name__ == '__main__':
    calc()

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
if a >= 13:
  print(b)
elif 6 <= a <= 12:
  print(int(b/2))
else:
  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:
# coding: utf-8
# Your code here!

INT = list(map(int,input().split()))
A,B = INT[0],INT[1]

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

Submission status: Accepted

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

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

Submission status: Accepted

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

if(A>12):
    C = 1 
elif A > 5 :
    C = 0.5 
else:
    C = 0

print(int(B*C))

Submission status: Accepted

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

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

Submission status: Accepted

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

if A <= 5:
  print(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:
import sys

input = sys.stdin.readline
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)
if 6<=A<13:
  print(int(B/2))
if 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))
else:
    print(0)

Submission status: Accepted

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

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

Submission status: Accepted

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

import sys
input = sys.stdin.readline

def io_generator():
	return input()

def iil(a_io):
	return map(int, a_io().split())


#+++++++++++++++++++


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

#++++++++++++++++++++

if __name__ == "__main__":
	io= lambda : io_generator()
	ret = main(io)
	if ret is not None:
		print(ret)

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

if A >= 13:
    cost = B

if 6 <= A <= 12:
    cost = int(B/2)

if A <= 5 :
    cost = 0

print(cost)

Submission status: Accepted

Solution code:
def years():
  A=list(map(int,input().split()))
  c=0
  a=A[0]
  b=A[1]
  
  if b<=1 or (b%2!=0) or a<0:
    return
  
  
  if a>=13:
    print(b)
    
  if a>=6 and a<=12:
    b=b/2
    print(int(b))
    
  if a<=5:
    print(c)
    
    
if __name__=="__main__":
  years()

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
inp = input()

a = int(inp.split()[0])
b = int(inp.split()[1])

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a, b = (int(x) for x in input().split())
if a <= 5:
  b = 0;

elif(a >= 6 and a <= 12):
  b /= 2;

print(int(b))

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = map(lambda x: int(x), 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())
if a >= 13:
    print(str(b))
elif a >= 6:
    print(str(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(int(B/2))
else:
    print(B)

Submission status: Accepted

Solution code:
l = list(map(int, input().split()))
age = l[0]
price = l[1] 
if age >= 13:
    print(price)
if 13 > age >= 6 :
    print(int(price/2))
if 6 > age:
    print(0)

Submission status: Accepted

Solution code:
#https://atcoder.jp/contests/abc127
# -*- coding: utf-8 -*-

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

ans = b
if 6 <= a <= 12:
        ans = b//2
elif a <= 5:
        ans = 0

print(ans)

Submission status: Accepted

Solution code:
A, B = map(int, input().split())			# "5 7" -> ["5", "7"] -> 5, 7 => N=5,K=7

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys
# ----------------------------------------------------------------
# Use Solve Function

def solve(lines):
    A,B = map(int, lines.pop(0).split(' '))
    if A >= 13:
        print(B)
    elif A >= 6:
        print(B // 2)
    else:
        print(0)

#
# main
#

# 1. use list instead of stdin

lines = [x.strip() for x in sys.stdin.readlines()]

#
# solve !!
#
solve(lines)