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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

a = 0
if A >= 13:
  a = B
elif 6 <= A <= 12:
  a = B / 2

print(int(a))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
tmp = input()
nu = tmp.rfind(' ')

Age = tmp[:nu:]
Bill = tmp[nu+1::]

Age = int(Age)

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

print(int(price))

Submission status: Accepted

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

Submission status: Accepted

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


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

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:
# -*- coding: utf-8 -*-
def main():
    A,B = map(int,input().split())

    if 6<=A<=12:
        B = B/2
    elif A<6:
        B = 0
    print(int(B))
if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
read=input();
A,B=read.split(' ')
A=int(A)
B=int(B)
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())

ans = 0

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

print(ans)

Submission status: Accepted

Solution code:
def ferris_wheel(A: int, B: int)->int:
    if A >= 13:
        return B
    elif A >= 6:
        return B//2
    else:
        return 0


if __name__ == "__main__":
    A, B = map(int, input().split())

    ans = ferris_wheel(A, B)
    print(ans)

Submission status: Accepted

Solution code:
num = input().split()
x = int(num[0])
y = int(num[1])

if 6 <= x <= 12:
    y = y//2
elif x <= 5:
    y = 0

print(y)

Submission status: Accepted

Solution code:
#!/usr/bin/python3
 
cmdvar=input()
in_plited=cmdvar.split()

A_age=int(in_plited[0])
B_fee=int(in_plited[1])

if A_age>=13:
    print(B_fee)
elif A_age>=6 and A_age<=12:
    print(int(B_fee/2))
elif A_age <= 5:
    print(0)
else:
    print("error")

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(int(cost))

Submission status: Accepted

Solution code:
a,b=list((map(int,input().split())));print(b) if a>12 else print(int(b/2*bool(int(a/6))))

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:
#!/usr/bin/env python3
import sys


def solve(A: int, B: int):
    if A <= 12:
        B = B // 2
    if A <= 5:
        B = 0
    print(B)
    return


# Generated by 1.1.4 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  # type: int
    B = int(next(tokens))  # type: int
    solve(A, B)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

import sys

debug = False

def log(text):
    if debug:
        print(text)

def parse_input(lines_as_string = None):

    global debug
    lines = []
    if lines_as_string is None:
        debug = False
        lines.append(input())
    else:
        debug = True
        lines = [e for e in lines_as_string.split("\n")][1:-1]


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

    return (a, b)


def solve(a, b):

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




def main():
    # 出力

    print("%s" % solve(*parse_input()))

if __name__ == '__main__':

    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b=input().split()
A = int(a)
B = int(b)
fee = B
half_fee = int(B/2)

ans = int()

if 0 <= A <= 5:
    ans = 0
elif 6 <= A <= 12:
    ans = half_fee
else:
    ans = fee

print(ans)

Submission status: Accepted

Solution code:
from sys import stdin
data = stdin.readline().rstrip().split()
A,B = int(data[0]), int(data[1])

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

age = inputs[0]
price = inputs[1]

if 6 <= age and age < 13:
    price /= 2
elif age <= 5:
    price = 0

print(int(price))

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# abc127/abc127_a
import sys

s2nn = lambda s: [int(c) for c in s.split(' ')]
ss2nn = lambda ss: [int(s) for s in list(ss)]
ss2nnn = lambda ss: [s2nn(s) for s in list(ss)]
i2s = lambda: sys.stdin.readline().rstrip()
i2n = lambda: int(i2s())
i2nn = lambda: s2nn(i2s())
ii2ss = lambda n: [i2s() 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(int(b / 2))
    else:
        print(0)

main()

Submission status: Accepted

Solution code:
A, B = map(lambda x: int(x), 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 6 <= a and a <= 12 :
  print(b//2)
else :
  print(0)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
inputData = input()
age, price = map(int, inputData.split())

if age >= 13:
    ans = price
elif age >= 6:
    ans = price / 2
else:
    ans = 0

print(int(ans))

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#python 3.5.2

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import math
# スペース区切りの整数の入力
a, b = map(int, input().split())

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

# 出力
#print("{}".format(c))
print(math.floor(c))

Submission status: Accepted

Solution code:
import numpy as np

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

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

else:
    print(0)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
from sys import stdin
import math
import itertools


def makeIntMatrix(lines):
    intMatrix = []
    for a in makeStringMatrix(lines):
        intMatrix.append([int(b) for b in a])
    return intMatrix
 
 
def makeStringMatrix(lines):
    stringMatrix = [line.split() for line in lines]
    return stringMatrix
 
 
def makeInt(line):
    return int(line.rstrip())
 
 
def makeMultiInteger(line):
    return [int(x) for x in line.rstrip().split()]


def solve(input_string):
    a, B = makeMultiInteger(input_string[0])
    #print(a, b, c)
    #print(a)
    if a >= 13:
        return B
    elif (a >= 6 and a < 13):
        return B//2
    else:
        return 0


def main():
    input_lines = stdin.readlines()
    answer = solve(input_lines)
    print(answer)


if __name__ == '__main__':
    main()

Submission status: Accepted

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

if 6 <= a:
    if 13 <= a:
        print(b)
        exit()
    print(int(b / 2))
    exit()
print(0)

Submission status: Accepted

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

Submission status: Accepted

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

listInt = [int(i) for i in input]

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

Submission status: Accepted

Solution code:
a,b = map(int, input().split())
amount = 0
if a <= 5:
    amount = 0
elif a >= 6 and a <= 12:
    amount += int(b*0.5)
else:
    amount += b
print(amount)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
year_old, fair = map(int, input().split())

if year_old >= 13:
  print(fair)
elif 6 <= year_old < 13:
  print(int(fair / 2))
else:
  print(0)

Submission status: Accepted

Solution code:
A,B = (int(i) for i in input().split()) 
C=B/2
if A >= 13 :
  print( '%d' % B )
elif A<=12 and A>=6 :
  print( '%d' % C )
else:
  print( '0')

Submission status: Accepted

Solution code:
def main():
    a, b = 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 = 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:
#!/usr/bin/env python3.4

# abc127_a

import itertools
import functools

def main():
    # Input
    a, b = [int(s) for s in input().split()]
    # Get ans
    if a >= 13:
        ans = b
    elif 6 <= a <= 12:
        ans = b//2
    elif a <= 5:
        ans = 0
    # Output
    print(ans)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

print(X)

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

Submission status: Accepted

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

Submission status: Accepted

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

if A >= 13:
	ans = B
elif A >= 6:
	ans = B / 2
else:
	ans = 0

print(int(ans))

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
string_list=list(map(int,input().split()))
A=string_list[0]
B=string_list[1]

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

print(c)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if A>=13:
    ans = B
elif A<=5:
    ans = 0
else :
    ans = B/2

print(int(ans))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#input
age, price = list(map(int, input().split()))

#calc
if age <= 5:
    price = 0
elif 6 <= age <= 12:
    price = int(price / 2)

#output
print(price)

Submission status: Accepted

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

Submission status: Accepted

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

print(b)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
d = input().split(" ")
A = int(d[0])
B = int(d[1])
 
if(A >= 13):
  money = B
elif(A >= 6):
  money = B/2
else:
  money = 0
    
print(int(money))

Submission status: Accepted

Solution code:
A, B = map(int, input().split())
if A > 12.5:
  print(B)
elif A > 5.5:
  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:
#!/usr/bin/env python3

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


if __name__ == '__main__':

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

    ans = solv(a, b)

    print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

a, b = sys.stdin.readline().rstrip().split(' ')
a = int(a)
if a <= 5:
  print('0')
elif a < 13:
  print(int(int(b)/2))
else:
  print(b)

Submission status: Accepted

Solution code:
def run(A, B):
    if A >= 13:
        fee = B
    elif A >= 6:
        fee = B / 2
    else:
        fee = 0
    return int(fee)


def main():
    A, B = map(int, input().split())
    print(run(A, B))


if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

print(res)

Submission status: Accepted

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

if A>=13:
    ans = B
elif A>=6:
    ans = B/2
else:
    ans = 0

print(int(ans))

Submission status: Accepted

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

result = 0

if A >= 13:
    result = B
elif  6 <= A <= 12:
    result = B/2

print(int(result))

Submission status: Accepted

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

if a >= 13:
    print(b)

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

if a <= 5:
    print("0")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys;
sys.setrecursionlimit(20000) # 再起呼び出しの最大数をセット

# 整数の入力
#n = int(input())

# スペース区切りの整数の入力
a = [x for x in map(int, input().split())]
#n, y = map(int, input().split())

# 改行区切りの整数の入力
#a = []
#for x in range(n):
#  a.append(int(input()))

# 文字列の入力
#s = input()

# 出力
#print("{} {}".format(a+b+c, s))
#a.sort()
#print(set(a), file=sys.stderr)
print(a, file=sys.stderr)

#surfixes = ("dream", "dreamer", "erase", "eraser")

def doit(l):
  #print(s, file=sys.stderr)
  if l == 0:
    return True;
  for x in surfixes:
    if s[:l].endswith(x):
#      return doit(l-len(x))
      if doit(l-len(x)):
        return True
  return False

try:
  if a[0] > 12:
    print("%d" % a[1])
  elif a[0] > 5:
    print("%d" % (a[1]/2))
  else:
    print("0")
except Exception as e:
  print(e, file=sys.stderr)

Submission status: Accepted

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

Submission status: Accepted

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

if y>12:
    print(p)
elif y>5:
    print(int(p/2))
else:
    print('0')

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
a, b = map(int, input().split())
money = 0

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

print(money)

Submission status: Accepted

Solution code:
i = input().split(' ')

a = int(i[0])
b = int(i[1])

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

ans = 0

if A >= 13:
    ans = B
elif A >= 6 and A <= 12:
    ans = B//2

print(ans)

Submission status: Accepted

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

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

print(str(result))

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
inputs = input().split()

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

if not 0 <= A <= 100:
    exit(0)

if not 2 <= B <= 1000:
    exit(0)

if not B % 2 == 0:
    exit(0)

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

print(int(B))

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
from sys import stdin
import numpy as np

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

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

print(fare)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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