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:
# using main() makes code faster from the point of view of "access to variables in global name-space"
# def main():

# for i, a in enumerate(iterable)
# q, mod = divmod(a, b)
# divmod(x, y) returns the tuple (x//y, x%y)
# manage median(s) using two heapq https://atcoder.jp/contests/abc127/tasks/abc127_f
import sys
sys.setrecursionlimit(10**7)
from itertools import accumulate, combinations, permutations # https://docs.python.org/ja/3/library/itertools.html
from math import factorial
def combinations_count(n, r):
    # faster than the following code
    # def combinations_count(n, r):
    #     return factorial(n) // (factorial(n - r) * factorial(r))
    if n - r < r: r = n - r
    if r == 0: return 1
    if r == 1: return n
    numerator = [n - r + k + 1 for k in range(r)]
    denominator = [k + 1 for k in range(r)]
    for p in range(2,r+1):
        pivot = denominator[p - 1]
        if pivot > 1:
            offset = (n - r) % p
            for k in range(p-1,r,p):
                numerator[k - offset] /= pivot
                denominator[k] /= pivot
    result = 1
    for k in range(r):
        if numerator[k] > 1:
            result *= int(numerator[k])
    return result
def combination_with_repetition_count(n, r):
    return combinations_count(n + r - 1, r)
from collections import deque, Counter # https://docs.python.org/ja/3/library/collections.html#collections.deque
from heapq import heapify, heappop, heappush, heappushpop, heapreplace,nlargest,nsmallest # https://docs.python.org/ja/3/library/heapq.html
from copy import deepcopy, copy # https://docs.python.org/ja/3/library/copy.html
from operator import itemgetter 
# ex1: List.sort(key=itemgetter(1))
# ex2: sorted(tuples, key=itemgetter(1,2))
from functools import reduce
from fractions import gcd # Deprecated since version 3.5: Use math.gcd() instead.
def gcds(numbers):
    return reduce(gcd, numbers)
def lcm(x, y):
    return (x * y) // gcd(x, y)
def lcms(numbers):
    return reduce(lcm, numbers, 1)

# first create factorial_list
# fac_list = mod_factorial_list(n)
INF = 10 ** 18
MOD = 10 ** 9 + 7
modpow = lambda a, n, p = MOD: pow(a, n, p) # Recursive function in python is slow!
def modinv(a, p = MOD):
    # evaluate reciprocal using Fermat's little theorem:
    # a**(p-1) is identical to 1 (mod p) when a and p is coprime
    return modpow(a, p-2, p)
def modinv_list(n, p = MOD):
    if n <= 1:
        return [0,1][:n+1]
    else:
        inv_t = [0,1]
        for i in range(2, n+1):
            inv_t += [inv_t[p % i] * (p - int(p / i)) % p]
        return inv_t
def modfactorial_list(n, p = MOD):
    if n == 0:
        return [1]
    else:
        l = [0] * (n+1)
        tmp = 1
        for i in range(1, n+1):
            tmp = tmp * i % p
            l[i] = tmp
        return l
def modcomb(n, k, fac_list = [], p = MOD):
    # fac_list = modfactorial_list(100)
    # print(modcomb(100, 5, modfactorial_list(100)))
    from math import factorial
    if n < 0 or k < 0 or n < k: return 0
    if n == 0 or k == 0: return 1
    if len(fac_list) <= n:
        a = factorial(n) % p
        b = factorial(k) % p
        c = factorial(n-k) % p
    else:
        a = fac_list[n]
        b = fac_list[k]
        c = fac_list[n-k]
    return (a * modpow(b, p-2, p) * modpow(c, p-2, p)) % p
def modadd(a, b, p = MOD):
    return (a + b) % MOD
def modsub(a, b, p = MOD):
    return (a - b) % p
def modmul(a, b, p = MOD):
    return ((a % p) * (b % p)) % p
def moddiv(a, b, p = MOD):
    return modmul(a, modpow(b, p-2, p))


# initialize variables and set inputs
#initialize variables
    # to initialize list, use [0] * n
    # to initialize two dimentional array, use [[0] * N for _ in range(N)]
# set inputs
    # open(0).read() is a convenient method:
    # ex) n, m, *x = map(int, open(0).read().split())
    #     min(x[::2]) - max(x[1::2])
    # ex2) *x, = map(int, open(0).read().split())
    #     don't forget to add comma after *x if only one variable is used
# calculate and output
    # output pattern
    # ex1) print(*l) => when l = [2, 5, 6], printed 2 5 6

# functions used
r = lambda: sys.stdin.readline().strip() #single: int(r()), line: map(int, r().split())
R = lambda: list(map(int, r().split())) # line: R(), lines: [R() for _ in range(n)]
Rmap = lambda: map(int, r().split())
# set inputs
a, b = R()
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 > 12:
    print(B)
elif (A < 13) & (A > 5):
    print(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(int(B/2))
else:
    print(0)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def solve(string):
    a, b = map(int, string.split())
    return str(b) if a >= 13 else "0" if a <= 5 else str(b // 2)


if __name__ == '__main__':
    print(solve(input()))

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

ans = B

if(A <= 5):
	ans = 0
if(A >= 6 and A <= 12):
	ans //= 2

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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


answer = B if int(A)>=13 else int(B)//2

if int(A)<=5:
    answer = 0
print(answer)

Submission status: Accepted

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

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

Submission status: Accepted

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

if age >= 13:
  print(fee)
elif age >= 6:
  print(int(fee/2))
else:
  print(0)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:

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

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n,m=map(int,raw_input().split())

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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


abc()

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

Submission status: Accepted

Solution code:
#coding:utf-8
n=[int(i) for i in input().split()]
if(n[0]>12):
  print(n[1])
elif(n[0]>5):
  print(int(n[1]/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 >= 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:
    ans=B
elif A<=5:
    ans=0
else:
    ans=B//2
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#
import sys
import math
import numpy as np
import itertools


# いくつか入力
a, b = (int(i) for i in input().split())  

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

Submission status: Accepted

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

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

Submission status: Accepted

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

	main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if 5 >= A:
    print(0)
elif 12 >= A:
    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)&(A<=12):
    print(int(0.5*B))
else:
    print(0)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

from sys import stdin

age, value = [int(x) for x in stdin.readline().rstrip().split()]


if 13 <= age:
    print(int(value))
elif 6 <= age:
    print(int(value/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 = list(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
# Ferris Wheel

a_b = input()

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

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

Submission status: Accepted

Solution code:
#Ferris Wheel
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:
age,cost = map(int,input().split())
if age <=12 and age >=6:
    cost /= 2
elif age <6:
    cost = 0

print(int(cost))

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(jugde(A,B))

Submission status: Accepted

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

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

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

print(fee)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
age, price = map(int, input().split())
print(price * (min(1, age//13) + min(1, age//6)) // 2)

Submission status: Accepted

Solution code:
s = input()
a = s.split()


b = []
for i in a:
  b.append(int(i))

age, price = b

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

Submission status: Accepted

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

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:
def main():
    a,b = [int(i) for i in input().split()]
    if 13 <= a:
        print(b)
    elif 6 <= a <= 12:
        print(b//2)
    else:
        print(0)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

if __name__ == '__main__':
    a, b = list(map(int, input().split()))

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
a, b = list(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 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 13 > A >= 6:
    print(B // 2)
else:
    print(0)

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

Submission status: Accepted

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

if a >= 13:
  print(b)
elif a >= 6:
  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(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 = [int(v) for v in input().split()]

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
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(' ')]
if A >= 13:
    print(B)
elif A>=6:
    print(B//2)
else:
    print(0)

Submission status: Accepted

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

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

Submission status: Accepted

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

def ferris_wheel(age, fee):
    if 6 <= age <= 12:
        fee //= 2
    elif age <= 5: 
        fee = 0
    print(fee)


def main():
    a,b = [int(i) for i in input().split()] # 年齢 乗車量
    ferris_wheel(a,b)
    
# main関数呼び出し
if __name__ == "__main__":
    main()

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:
def solve():
    takaYear, defaultFee = map(int, input().split())
    if takaYear <= 5:
        print(0)
    elif takaYear <= 12:
        print(defaultFee//2)
    else:
        print(defaultFee)
solve()

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:
nums = [int(e) for e in input().split()]

a = nums[0]
b = nums[1]
result = 0

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

print(result)

Submission status: Accepted

Solution code:
A, B = list(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>=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 and A <= 12:
    print(B//2)
else:
    print(0)

Submission status: Accepted

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

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

Submission status: Accepted

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