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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

Solution code:
#入力部分を取得
#A, B, C = map(int,input().split())

#sumを取得
#sum([A,B,C])

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

#13歳以上

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

Submission status: Wrong Answer

Solution code:
from sys import stdin
from collections import defaultdict

A, B = [int(x) for x in stdin.readline().rstrip().split()]

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x, a = map(int, input().split())
print(0) if x < a else print(10)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:


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

    if a < 6:
        return 0
    elif a < 13:
        return b / 2
    else:
        return b

if __name__ == "__main__":
    print(main())

Submission status: Wrong Answer

Solution code:


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

    if a <= 5:
        return 0
    elif 6 <= a and a <= 12:
        return b / 2
    elif 13 <= a:
        return b

if __name__ == "__main__":
    print(main())

Submission status: Wrong Answer

Solution code:


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

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

if __name__ == "__main__":
    print(main())

Submission status: Wrong Answer

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: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
i = list(map(int,input().split()))
A = i[0]
B = i[1]
if A>12:
  print(B)
elif A>5 and A <13:
    print(B/2)
else:
    print(0)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
[print(b*min(a//6, 2))for a,b in[list(map(int,input().split()))]]

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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


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

print(answer)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:

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

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

print(ans)

Submission status: Wrong Answer

Solution code:

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

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

print(ans)

Submission status: Wrong Answer

Solution code:

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

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

print(ans)

Submission status: Wrong Answer

Solution code:

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

if a<=5:
    ans = 0
elif 5<a & a<13:
    ans = b/2
else:
    ans = b

print(ans)

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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(n[1]/2)
else:
  print(0)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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: Wrong Answer

Solution code:
#Ferris Wheel
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: Wrong Answer

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


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

Submission status: Wrong Answer

Solution code:
age,cost = map(int,input().split())
if age <=12 or age >=6:
    cost /= 2
elif age <6:
    cost = 0

print(cost)

Submission status: Wrong Answer

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

if(value[0] >= 13):
  print(value[1])

elif(value[0] < 6):
  print(0)

else:
  print(value[1]/2)

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

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

Submission status: Wrong Answer

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

if A >= 13:
    print(str(B))
else:
    print(str(int(B/2)))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

if B % 2 == 1:
    exit()


def how_much(A, B):
    if A < 6:
        return 0
    elif A < 13:
        return B / 2
    else:
        return B

print(how_much(A, B))

Submission status: Wrong Answer

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

if B % 2 == 1:
    exit()


def how_much(A, B):
    if A >= 13:
        return B
    elif A >= 6 and A <= 12:
        return B / 2
    elif A <= 5:
        return 0

print(how_much(A, B))

Submission status: Wrong Answer

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

def how_much(A, B):
    if A >= 13:
        return B
    elif A >= 6 and A <= 12:
        return B / 2
    elif A <= 5:
        return 0

print(how_much(A, B))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if age <= 5:
    yen = 0
elif 6 <= age <= 12:
    yen = yen % 2

print(yen)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
inp = list(map(int,input().split()))
A, B = inp[0], inp[1]
if A <= 5:
  print(0)
elif A <= 12:
  print(B/2)
else:
  print(B)

Submission status: Wrong Answer

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: Wrong Answer

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

if a >= 13:
    answer = b
if 5 < a < 13:
    answer = b/2

print(answer)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

if a >= 13:
 print(b)

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

else:
 print(0)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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: Wrong Answer

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)