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

Submission status: Accepted

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

Submission status: Accepted

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

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

    print(ans)


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

ans = b

if 12 >= a >= 6:
    ans = b // 2
if a <= 5:
    ans = 0

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = [int(s) for s in 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:
import sys
sys.setrecursionlimit(10**9)

def mi(): return map(int,input().split())
def ii(): return int(input())
def isp(): return input().split()
def deb(text): print("-------\n{}\n-------".format(text))

INF=10**20
def main():
    A,B=mi()
    if A <= 5:
        print(0)
    elif 6<=A<=12:
        print(B//2)
    else:
        print(B)




if __name__ == "__main__":
    main()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:

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


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:
import math
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 = 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 >= 13:
    fee = b
elif 6 <= a <= 12:
    fee = b // 2
else:
    fee = 0

print(fee)

Submission status: Accepted

Solution code:
#! python3
#  solve127A.py

age,cost = map(int,input().split())

if age <= 5:
    cost = 0
elif 6 <= age <= 12:
    cost = cost//2
elif 7 <= age:
    cost = cost

print(cost)

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

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

Submission status: Accepted

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

print(int(ans))

Submission status: Accepted

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

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

if __name__=='__main__':
    a,b=readinput()
    ans=main(a,b)
    print(ans)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

stdin = sys.stdin
def ns(): return stdin.readline().rstrip()
def ni(): return int(stdin.readline().rstrip())
def nm(): return map(int, stdin.readline().split())
def nl(): return list(map(int, stdin.readline().split()))


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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

cost = 0

if age >= 13:
    cost = yen
elif age >= 6 and age <= 12:
    cost = yen/2

elif age <= 5:
    cost = 0

print(int(cost))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#k = int(input())
#s = input()
#a, b = map(int, input().split())
#s, t = map(str, input().split())
#l = list(map(int, input().split()))
#l = [list(map(int,input().split())) for i in range(n)]

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

ans = 0

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = 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:
import re
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
import functools
def v(): return input()
def k(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def X(): return list(input())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b//math.gcd(a,b)
sys.setrecursionlimit(10 ** 9)
mod = 10**9+7
cnt = 0
ans = 0
inf = float("inf")

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(res)

Submission status: Accepted

Solution code:
tmp = input().split(" ")
age = int(tmp[0])
fee = int(tmp[1])

if age >= 13:
  print(fee)
elif age >= 6:
  print(int(fee/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 <= 5):
    print(0)
    exit()

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

Submission status: Accepted

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

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:
import sys

def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def S(): return sys.stdin.readline().rstrip()
def LS(): return list(sys.stdin.readline().rstrip().split())

A,B = LI()

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

Submission status: Accepted

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

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

Submission status: Accepted

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

def main():

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

    if A >= 13:
        ans = B

    elif 6 <= A <= 12:
        ans = B / 2

    elif A <= 5:
        ans = 0

    print(int(ans))


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# abc127_a.py
# https://atcoder.jp/contests/abc127/tasks/abc127_a

# A - Ferris Wheel /
# 実行時間制限: 2 sec / メモリ制限: 1024 MB
# 配点 : 100点

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

# 制約
#     0≤A≤100
#     2≤B≤1000
#     Bは偶数

# 入力
# 入力は以下の形式で標準入力から与えられる。
# A B

# 出力
# 高橋君が観覧車に乗るには何円かかるかを出力せよ。

# 入力例 1
# 30 100

# 出力例 1
# 100

# 現在 30歳の高橋君は、観覧車に乗るのに 100円かかります。

# 入力例 2
# 12 100

# 出力例 2
# 50

# 12歳の高橋君は、観覧車に乗るのに 100 円の半額、すなわち 50円かかります。

# 入力例 3
# 0 100

# 出力例 3
# 0

# 0歳の高橋君は、観覧車に無料で乗ることができます。


global FLAG_LOG
FLAG_LOG = False


def log(value):
    # FLAG_LOG = True
    # FLAG_LOG = False
    if FLAG_LOG:
        print(str(value))


def calculation(lines):
    # S = lines[0]
    # N = int(lines[0])
    A, B = list(map(int, lines[0].split()))
    # values = list(map(int, lines[1].split()))
    # values = list(map(int, lines[2].split()))
    # values = list()
    # for i in range(6):
    #     values.append(int(lines[i]))
    # valueses = list()
    # for i in range(Q):
    #     valueses.append(list(map(int, lines[i+1].split())))

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

    return [result]


# 引数を取得
def get_input_lines(lines_count):
    lines = list()
    for _ in range(lines_count):
        lines.append(input())
    return lines


# テストデータ
def get_testdata(pattern):
    if pattern == 1:
        lines_input = ['30 100']
        lines_export = [100]
    if pattern == 2:
        lines_input = ['12 100']
        lines_export = [50]
    if pattern == 3:
        lines_input = ['0 100']
        lines_export = [0]
    return lines_input, lines_export


# 動作モード判別
def get_mode():
    import sys
    args = sys.argv
    global FLAG_LOG
    if len(args) == 1:
        mode = 0
        FLAG_LOG = False
    else:
        mode = int(args[1])
        FLAG_LOG = True
    return mode


# 主処理
def main():
    import time
    started = time.time()
    mode = get_mode()
    if mode == 0:
        lines_input = get_input_lines(1)
    else:
        lines_input, lines_export = get_testdata(mode)

    lines_result = calculation(lines_input)

    for line_result in lines_result:
        print(line_result)

    # if mode > 0:
    #     print(f'lines_input=[{lines_input}]')
    #     print(f'lines_export=[{lines_export}]')
    #     print(f'lines_result=[{lines_result}]')
    #     if lines_result == lines_export:
    #         print('OK')
    #     else:
    #         print('NG')
    # finished = time.time()
    # duration = finished - started
    # print(f'duration=[{duration}]')


# 起動処理
if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n, k = (int(x) for x in input().split())
if n<6:
    print("0")
if 5<n<13:
    print(int(k/2))
if 12<n:
    print(k)

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:
    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 b//2 if 6<=a<=12 else 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:
def main():

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




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

Submission status: Accepted

Solution code:
import sys, math
from collections import defaultdict, deque, Counter
from bisect import bisect_left, bisect_right
from itertools import combinations, permutations, product
from heapq import heappush, heappop
from functools import lru_cache
input = sys.stdin.readline
rs = lambda: input().strip()
ri = lambda: int(input())
rl = lambda: list(map(int, input().split()))
mod = 1000000007
sys.setrecursionlimit(1000000)

A, B = rl()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
def resolve():
    #n=int(input())
    #a,b=map(int,input().split())
    #x=list(map(int,input().split()))
    #a=[list(map(lambda x:int(x)%2,input().split())) for _ in range(h)]
    a,b=map(int,input().split())
    if a>=13:
        print(b)
    elif a>=6:
        print(b//2)
    else:
        print(0)
    

if __name__ == '__main__':
    resolve()

Submission status: Accepted

Solution code:
#入力:N,M(int:整数)
def input2():
	return map(int,input().split())
  
a,b=input2()

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
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 >= 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 and a<=12:
    print(int(b/2))
else:
    print(0)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys
A,B = map(int,input().split())
if not ( 0 <= A <= 100 ): sys.exit()
if not ( 2 <= B <= 1000 ): sys.exit()
if not ( B % 2 == 0 ): sys.exit()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
data=input().split()
A=int(data[0])
B=int(data[1])
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 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 <= 12:
    print(b//2)
else:
    print(0)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
ans = 0
if a>= 13:
  ans = b
elif 6 <= a <13:
  ans = b//2
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(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:
import sys
input = lambda: sys.stdin.readline().rstrip()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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())
ans = 0

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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