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:
# coding: utf-8
import re
import bisect
from datetime import datetime as dt
A, B = map(int, input().split())
if 6 <= A <= 12:
    print(int(B / 2))
elif A <= 5:
    print(0)
else:
    print(B)

Submission status: Accepted

Solution code:
# -*- 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: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

print(f)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
n,ans=map(int,input().split(" "))
if(n<=12):
    ans/=2
if(n<6):
    ans=0
print(round(ans))

Submission status: Accepted

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

if n[0] >= 13:
    print(n[1])
elif n[0]>=6 and n[0]<=12:
    print(n[1]//2)
elif n[0]<=5:
    print(0)

Submission status: Accepted

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

if A >= 13:
    print(int(B))
if 12 >= A >= 6:
    C = int(B/2)
    print(C)
if 5 >= A:
    print(0)

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    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:
    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)
elif a<=5:
    b=0
    print(b)
else:
    print(int(b/2))

Submission status: Accepted

Solution code:

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


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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
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=input().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(lambda x: int(x),input().split())

cost = B
if A<=5:
    cost  = 0
if A<=12:
    cost /= 2

print(int(cost))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(ans)

Submission status: Accepted

Solution code:
X = input().split()
if int(X[0])>=13:
  print(X[1])
elif 12>=int(X[0])>=6:
  n = int(X[1])/2
  s = int(n)
  print(s)
else:
  print("0")

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    s = input().rstrip().split(' ')
    year = int(s[0])
    cost = int(s[1])
    if year >= 13:
        print(cost)
    elif year >= 6:
        print(int(cost/2))
    else:
        print(0)

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:
#!/usr/bin/env pypy
from __future__ import division, print_function

import os
import sys
from __builtin__ import xrange as range
from cStringIO import StringIO
from future_builtins import ascii, filter, hex, map, oct, zip
from io import IOBase

import __pypy__


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


# region fastio

BUFSIZE = 8192


class FastI(IOBase):
    def __init__(self, file):
        self._fd = file.fileno()
        self._buffer = StringIO()
        self.newlines = 0

    def read(self):
        if self._buffer.tell():
            return self._buffer.read()
        return os.read(self._fd, os.fstat(self._fd).st_size)

    def readline(self):
        while self.newlines == 0:
            b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
            self.newlines = b.count("\n") + (not b)
            ptr = self._buffer.tell()
            self._buffer.seek(0, 2), self._buffer.write(b), self._buffer.seek(ptr)
        self.newlines -= 1
        return self._buffer.readline()


class FastO(IOBase):
    def __init__(self, file):
        self._fd = file.fileno()
        self._buffer = __pypy__.builders.StringBuilder()
        self.write = lambda s: self._buffer.append(s)

    def flush(self):
        os.write(self._fd, self._buffer.build())
        self._buffer = __pypy__.builders.StringBuilder()


def print(*args, **kwargs):
    sep, file = kwargs.pop("sep", " "), kwargs.pop("file", sys.stdout)
    at_start = True
    for x in args:
        if not at_start:
            file.write(sep)
        file.write(str(x))
        at_start = False
    file.write(kwargs.pop("end", "\n"))
    if kwargs.pop("flush", False):
        file.flush()


sys.stdin, sys.stdout = FastI(sys.stdin), FastO(sys.stdout)
input = lambda: sys.stdin.readline().rstrip("\r\n")

# endregion

if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
def main():
    A, B = [int(n) for n in input().split()]
    if A >= 13:
        print(B)
    elif 6<=A<=12:
        print(B//2)
    else:
        print(0)
main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(ans)

Submission status: Accepted

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

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

print(int(ans))

Submission status: Accepted

Solution code:
data = [int(s) for s in  input().split()]

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

Submission status: Accepted

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

result=0

if(a>=13):
    result = b
elif(a>=6):
    result = int(b / 2)

print(result)

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:
x = input()
li = x.split()
age = int(li[0])
m = int(li[1])
if(age <= 5):
  print(0)
elif(age <= 12):
  print(int(m / 2))
else:
  print(m)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a,b=[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:
#!/usr/bin/env python
# -*- coding: utf-8 -*-

def placingMarbles(input_str):
    vals = input_str.split(" ")
    A = int(vals[0])
    B = int(vals[1])
    if A >= 13:
        return int(B)
    elif 6 <= A and A<=12:
        return int(B / 2)
    else:
        return 0

if __name__ == "__main__":
    print(placingMarbles(input()))

Submission status: Accepted

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

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

print(int(ans))

Submission status: Accepted

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

print(int(ans))

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
import sys
from fractions import gcd

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().rstrip()
s = lambda h: [list(map(int, stdin.readline().split())) for i in range(h)]



a, b = na()

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


print(ans)

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:


v = [int(d) for d in input().split()]

if v[0] <= 12:
    if v[0] >= 6:
        print(int(v[1]/2))
        exit()
if v[0] <= 5:
    print('0')
    exit()
if v[0] >= 13:
    print(v[1])
    exit()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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:
li = list(map(int,input().split()))
if li[0] >= 13:
	print(li[1])
elif li[0] <= 5:
	print("0")
else:
	print(int(li[1] / 2))

Submission status: Accepted

Solution code:
# coding: utf-8
x,y = map(int, input().split())
if x <= 5:
    print(0)
elif x <=12:
    print(round(y/2))
else:
    print(y)

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
from sys import stdin
def main():
    A, B = map(int, stdin.readline().rstrip().split())
    
    if A >= 13:
      print(B)
    elif A >= 6:
      print(int(B/2))
    else:
      print(0)

input = lambda: stdin.readline()
main()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(10**7)

# n = int(input())
# a, b = map(int, input().split())
# int_list = list(map(int, input().split()))
# l = list(input().split())

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

solve()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

print(cost)

Submission status: Accepted

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

if a >= 13:
    print(int(b))
elif a<=12 and a>=6:
    print(int(b/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:
# coding: utf-8
# Your code here!
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 <= 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 0 <= A <= 5:
    print(0)
elif A <= 12:
    print(B // 2)
else:
    print(B)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = input().split()
a = int(x[0])
b = int(x[1])
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 a >= 6 and a <= 12:
    print(b // 2)

else:
    print(b)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

print(p)

Submission status: Accepted

Solution code:
a, b = map(int, raw_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 > 12:
  print(b)
else: print(int(b/2))

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys
import bisect
from collections import defaultdict

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#ABC127A/Ferris_Wheel
def main():
    a,b = map(int,input().split())

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

Submission status: Accepted

Solution code:

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

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

Submission status: Accepted

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

Submission status: Accepted

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

if A >= 13:
  print(B)

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

Submission status: Accepted

Solution code:
a=[]#入力画面の二文字を別々の文字に格納
a=input().split(" ")
A=int(a[0])
B=int(a[1])

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

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

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

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

print(int(ans))

Submission status: Accepted

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

if a <= 5:
    print('0')
elif a <= 12:
    print("{}".format(int(b/2)))
else:
    print("{}".format(b))

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

# スペース区切りの整数の入力
A, B = map(int, input().split())

fare = 0

if A >= 13:
  fare = B

elif A >= 6 and A<=12:
  fare = int(B/2)

else:
  fare = 0

# 出力
print(fare)

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

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

print(ans)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8

import sys
input = sys.stdin.readline

# N = int(input())
# L = [int(x) for x in input().split()]
A, B = map(int, input().split())
# S = input()

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

Submission status: Accepted

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

if argA >= 13:
  ans = argB
elif argA >= 6:
  ans = argB / 2
else:
  ans = 0

print(int(ans))

Submission status: Accepted

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

Submission status: Accepted

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

inputs = input().split(' ')
age = int(inputs[0])
fee = int(inputs[1])

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = input()

A = x.split()[0]
B = x.split()[1]

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

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

Submission status: Accepted

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

Submission status: Accepted

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

if A <= 5:
    print(0)
    exit()

if A <= 12:
    print(int(B/2))
    exit()

print(B)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
age, price = map(int, input().split())
ans = 0

if age <= 5:
    ans = 0
elif age >= 6 and age <= 12:
    ans = price // 2
else:
    ans = price 

print(ans)

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

Submission status: Accepted

Solution code:
# n=int(input())  #数値入力 「N」だけの入力のとき
# a,b=map(int, input().split())  #複数数値入力　「A B」みたいなスペース空いた入力のとき
# c=list(map(int, input().split()))  #リスト入力 「a1 a2 a3 ...」みたいな配列のような入力のとき
# s=[list(map(int,list(input()))) for i in range(h)]  # 二次元配列入力　二次元マップみたいな入力のとき

# a=100
# b=0.987654321
# print('{0:06d}-{1:6f}'.format(a,b))  # 0埋めのときの出力
# 000100-0.987654

import math
import copy

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

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

elif A >= 13:
    print(B)

Submission status: Accepted

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