Problem:


Score : 100 points

Problem Statement

Takahashi, who is A years old, is riding a Ferris wheel.

It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)

Find the cost of the Ferris wheel for Takahashi.

Constraints

0 ≤ A ≤ 100

2 ≤ B ≤ 1000

B is an even number.

Input

Input is given from Standard Input in the following format:

A B

Output

Print the cost of the Ferris wheel for Takahashi.

Sample Input 1

30 100

Sample Output 1

100

Takahashi is 30 years old now, and the cost of the Ferris wheel is 100 yen.

Sample Input 2

12 100

Sample Output 2

50

Takahashi is 12 years old, and the cost of the Ferris wheel is the half of 100 yen, that is, 50 yen.

Sample Input 3

0 100

Sample Output 3

0

Takahashi is 0 years old, and he can ride the Ferris wheel for free.



Sample input:
30 100


Sample output:
100

Submission status: Accepted

Solution code:

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


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

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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 main20():
    data = input().split()
    num = []
    for i in range(2):
        num.append(int(data[i]))
    if num[0] >= 13:
        print(num[1])
    elif num[0] >= 6:
        print(int(num[1]/2))
    else:
        print(0)

if __name__ == "__main__":
    main20()

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

Submission status: Accepted

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

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

Submission status: Accepted

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

if age < 6:
    print(0)
elif age < 13:
    print(coin // 2)
else:
    print(coin)

Submission status: Accepted

Solution code:
import numpy as np

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

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

Submission status: Accepted

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

if a <= 12:
    b //= 2
if a <= 5:
    b = 0

print(b)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(B)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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:
#!usr/bin/env python3
from collections import defaultdict
from collections import deque
from heapq import heappush, heappop
import sys
import math
import bisect
import random
def LI(): return list(map(int, sys.stdin.readline().split()))
def I(): return int(sys.stdin.readline())
def LS():return list(map(list, sys.stdin.readline().split()))
def S(): return list(sys.stdin.readline())[:-1]
def IR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = I()
    return l
def LIR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = LI()
    return l
def SR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = S()
    return l
def LSR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = SR()
    return l
sys.setrecursionlimit(1000000)
mod = 1000000007


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

#B
def B():
    return

#C
def C():
    n,m = LI()
    t = [0 for i in range(n+1)]
    for i in range(m):
        l,r = LI()
        t[l-1] += 1
        t[r] -= 1
    for i in range(n):
        t[i+1] += t[i]
        if t[i] == m:
            t[i] = 1
        else:
            t[i] = 0
    print(sum(t[:n]))
    return

#D
def D():
    n,m = LI()
    a = LI()
    q = []
    for i in range(n):
        heappush(q,a[i])
    l = LIR(m)
    l.sort(key = lambda x:-x[1])
    for b,c in l:
        for i in range(b):
            x = heappop(q)
            if x < c:
                x = c
                heappush(q,x)
            else:
                heappush(q,x)
                break
    print(sum(q))
    return

#E
def E():
    n,m,k = LI()
    M = n*m
    fact = [1]*(M+1)
    for i in range(M):
        fact[i+1] = fact[i]*(i+1)%mod
    inv = [1]*(M+1)
    inv[M] = pow(fact[M],mod-2,mod)
    for i in range(M)[::-1]:
        inv[i] = inv[i+1]*(i+1)%mod
    ans = fact[M-2]*inv[k-2]*inv[M-k]%mod
    s = 0
    for i in range(M):
        s += i*(max(0,n-i)*m**2+max(0,m-i)*n**2)%mod
        s %= mod
    ans = ans*s%mod
    print(ans)
    return

#F
def F():
    q = I()
    m = 0
    l = [-float("inf"),float("inf")]
    x = 0
    num = 0
    for _ in range(q):
        Q = LI()
        if len(Q) == 1:
            print(x,m)
        else:
            z,a,b = Q
            m += b
            if num == 0:
                num += 1
                l = [a,float("inf")]
                x = a
            elif num == 1:
                if a != l[0]:
                    num += 1
                    l = [min(a,l[0]),max(a,l[0])]
                    x = l[0]
                    m += l[1]-l[0]
            else:
                num += 1
                if num % 2:
                    if l[0] <= a < l[1]:
                        m += min(a-l[0],l[1]-a)
                        x = a
                    elif a < l[0]:
                        m += l[0]-a
                        x = l[0]
                        l = [a,l[1]]
                    else:
                        m += a-l[1]
                        x = l[1]
                        l = [l[0],a]
                else:
                    if l[0] <= a < l[1]:
                        if a < x:
                            m += x-a
                            l = [a,x]
                            x = a
                        else:
                            m += a-x
                            l = [x,a]
                    elif a < l[0]:
                        m += x-a
                        x = l[0]
                        l = [l[0],x]
                    else:
                        m += a-x
                        l = [x,l[1]]
    return

#G
def G():
    return

#H
def H():
    return

#I
def I_():
    return

#J
def J():
    return

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(charge)

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
import sys
s2nn = lambda s: [int(c) for c in s.split(' ')]
ss2nn = lambda ss: [int(s) for s in ss]
ss2nnn = lambda ss: [s2nn(s) for s in ss]
i2s = lambda: sys.stdin.readline().rstrip()
i2n = lambda: int(i2s())
i2nn = lambda: s2nn(i2s())
ii2ss = lambda n: [sys.stdin.readline().rstrip() for _ in range(n)]
ii2sss = lambda n: [list(sys.stdin.readline().rstrip()) for _ in range(n)]
ii2nn = lambda n: ss2nn(ii2ss(n))
ii2nnn = lambda n: ss2nnn(ii2ss(n))

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

main()

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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


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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

sys.setrecursionlimit(4100000)


def inputs(num_of_input):
    ins = [input() for i in range(num_of_input)]
    return ins


def solve(inputs):
    [A, B] = string_to_int(inputs[0])

    if A >= 13:
        return B
    if A >= 6:
        return B//2
    return 0


def string_to_int(string):
    return list(map(lambda x: int(x), string.split()))


if __name__ == "__main__":
    ret = solve(inputs(1))
    print(ret)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(v)

Submission status: Accepted

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

if A >= 13:
    print(B)
elif 6 <= A and A <= 12:
    print(round(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, Fee = (input().split())

if int(Age) >= 13:
    print(Fee)
elif int(Age) <= 13 and int(Age) >= 6:
    half = int(Fee) // 2
    print(half)
else:
    print(0)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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


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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(ans)

Submission status: Accepted

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

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

print(int(price))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
A, B = [int(i) for i in input().split()]
if A>=13:
  print(B)
elif 6<=A<=12:
  print(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(int(0.5*a[1]))
else:
  print(a[1])

Submission status: Accepted

Solution code:
x,y = map(int,input().split())
 
def Decisionmoney(x,y):
  if x <= 5:
    num = 0
  elif x <= 12:
    num = y // 2
  else:
    num = y
  return num
 
print(Decisionmoney(x,y))

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 13<=A:
    print(B)

elif 6<=A<=12:
    print(int(B/2))

elif A<=5:
    print(0)

Submission status: Accepted

Solution code:
a,b = (int(x) for x in 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 >= 13:
    print(b)
elif 12 >= 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(int(b/2))
else:
    print(0)

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:
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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#A 歳の高橋君が観覧車に乗ろうとしています。この観覧車は、13 歳以上が乗るには B 円 (B は偶数) かかりますが、
#6 歳以上 12 歳以下の人はその半額で乗ることができ、 さらに 5 歳以下の人は無料で乗ることができます。
#高橋君が観覧車に乗るには何円かかるかを求めてください。

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = list(map(lambda y: int(y),input().split(" ")))

if x[0] >= 13:
	print(x[1])
elif x[0] >= 6:
	print(int(x[1]/2))
else:
	print(0)

Submission status: Accepted

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

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

# solve
if A >= 13:
    ans = B
elif 6 <= A <= 12:
    ans = int(B / 2)
else:
    ans = 0

# output
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    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)

main()

Submission status: Accepted

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


main()

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

#13歳以上

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

Submission status: Accepted

Solution code:
Age, Full_cost= map(int, input().split())

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

Submission status: Accepted

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

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(i) for i in input().split()]
if A >=13:
    print(B)
elif A > 5:
    print(B //  2)
else:
    print(0)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import numpy as np

N = input().split(" ")

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:


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

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

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

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)