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: Runtime Error

Solution code:
import numpy as np
from sys import stdin
sys.setrecursionlimit(10**6) 

def main(args):
    a = args[0]
    b = args[1]
    if 6 <= a and a <= 12:
        v = b//2
    elif a <= 5:
        v = 0
    else:
        v = b
    print(v)

main([int(x) for x in stdin.readline().rstrip().split()])

Submission status: Runtime Error

Solution code:
import sys
a, b, c = map(int, raw_input().split())
i=0
while 1:
  c = a*c - b
  print c
  i = i + 1
  if i > 10 :
      sys.exit()

Submission status: Runtime Error

Solution code:
import numpy as np
from sys import stdin
sys.setrecursionlimit(10**6) 

def main(args):
    a = args[0]
    b = args[1]
    if 6 <= a and a <= 12:
        v = b//2
    elif a <= 5:
        v = 0
    else:
        v = b
    print(v)

main([int(x) for x in stdin.readline().rstrip().split())

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A, B = map(int, input().split())
0<=A<=100
2<=B<=100

if 0 <= A <= 5 :
    B = 0
elif 6 <= A <= 13 :
    B = B//2
else :
    B = B
    if B & 1:
        print(B)
    else :
        break

Submission status: Runtime Error

Solution code:
A = input()
B = input()

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

else:
	print(0)

Submission status: Runtime Error

Solution code:
age = input()
fee = input()

if age >= 13:
	print(fee)
    
elif 6 <= age <= 12:
	print(fee // 2)

else:
	print(0)

Submission status: Runtime Error

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: Runtime Error

Solution code:
import sys

args = sys.argv

if int(args[1]) == 0:
	result = 0
elif 13 > int(args[1]):
	result = int(args[2])/2
else:
	result = args[2]

print(result)

Submission status: Runtime Error

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

if age >= 13:
	print(fee)
    
elif 6 <= age <= 12:
	print(fee // 2)

else:
	print(0)

Submission status: Runtime Error

Solution code:
import numpy as np
from sys import stdin
sys.setrecursionlimit(10**6) 

def main(args):
    a = int(args[0])
    b = int(args[1])
    if 6 <= a and a <= 12:
        v = b//2
    elif a <= 5:
        v = 0
    else:
        v = b
    print(v)

main(stdin.readline().rstrip().split())

Submission status: Runtime Error

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

N = int(inputs[0])
M = int(inputs[1])

passIDs = [0] * (10**5 + 10)

for i in range(M):
    inputs = input().split()

    L = int(inputs[0])
    R = int(inputs[1])

    for j in range(L, R+1):
        passIDs[j] += 1

IDs = 0

for passId in passIDs:
    if passId == M:
        IDs += 1

print(IDs)

Submission status: Runtime Error

Solution code:
import numpy as np
from sys import stdin
sys.setrecursionlimit(10**6) 

def main(args):
    a = int(args[0])
    b = int(args[1])
    if 6 <= a and a <= 12:
        v = b//2
    elif a <= 5:
        v = 0
    else:
        v = b
    print(v)

main(stdin.readline().rstrip().split(" "))

Submission status: Runtime Error

Solution code:
age = int(input())
fee = int(input())

if age >= 13:
	print(fee)
    
elif 6 <= age <= 12:
	print(fee // 2)

else:
	print(0)

Submission status: Runtime Error

Solution code:
n ,m = map(int, input().split())
result = set()
first = True
for i in range(m):
    l, r = map(int, input().split())
    tmp = set()
    for i in range(l, r + 1):
        tmp.add(i)
    if first:
        result = tmp
        # print("tmp {}".format(tmp))
        first = False
    else:
        result = result.intersection(tmp)
        # print("result {} tmp {}".format(result, tmp))

print(len(result))

Submission status: Runtime Error

Solution code:
import numpy as np
from sys import stdin
sys.setrecursionlimit(10**6) 

def main(args):
    a = int(args[0])
    b = int(args[1])
    if 6 <= a and a <= 12:
        v = b//2
    elif a <= 5:
        v = 0
    else:
        v = b
    print(v)

main(stdin.readline().split(" "))

Submission status: Runtime Error

Solution code:
n, m = map(int, input().split(" "))
r = [""] * m
for c in range(m):
    r[c] = list(map(int, input().split(" ")))

#print(r)
ac = 0
for c in range(n):
    num = c + 1 # num がカード番号
    for co in range(m): # co がゲート番号
        if r[co][0] <= num <= r[co][1]:
            #print("card{} is ok for gate{}".format(num, co))
            pass
        else:
            break
    else:
        ac += 1

print(ac)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
N, M= map(int, input().split())
L1, R1= map(int, input().split())
Ans = set(range(L1, R1+1))

for x in range(M-1):
    L, R = map(int, input().split())
    List = set(range(L, R+1))
    Ans = (Ans) & (List)

print(len(Ans))

Submission status: Runtime Error

Solution code:
import numpy as np
import sys
sys.setrecursionlimit(10**6) 

def main(args):
    a = int(args[0])
    b = int(args[1])
    if 6 <= a and a <= 12:
        v = b//2
    elif a <= 5:
        v = 0
    else:
        v = b
    print(v)

main(sys.argv[1:3])

Submission status: Runtime Error

Solution code:
N, M = map(int, input().split())
A = [int(i) for i in input().split()]
A.sort()
BC = []

for i in range(M):
  bc = [int(i) for i in input().split()]
  BC.append(bc)

BC = sorted(BC, key=lambda x: x[1])
BC.reverse()

k = 0
for i in BC:
  if k == N:
    break
  if i[1] <= A[k]:
    break
  for j in range(i[0]):
    if k == N:
      break
    if i[1] > A[k]:
      A[k] = i[1]
      k += 1
    else:
      break

print(sum(A))

Submission status: Runtime Error

Solution code:
N, M = map(int, input().split())
a = list(map(int, input().split()))
for i in range(M):
    B, C = map(int, input().split())
    if C > a[-1]:
        a += [C for _ in range(B)]
        a.sort(reverse=True)
        a = a[:N]
print(sum(a))

Submission status: Runtime Error

Solution code:
N, M = map(int, input().split())
ID = []
for i in range(M):
    K = list(map(int, input().split())) 
    ID.append(list(range(K[0], K[1]+1)))
if len(ID) == 1:
    print(len(list(range(K[0], K[1]+1))))
else:
    match = set(ID[0]) & set(ID[1])
    for i in range(M):
        match = set(ID[i]) & match
    print(len(match))

Submission status: Runtime Error

Solution code:
A, B = map(int, input().split())
0<=A<=100
2<=B<=100

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

Submission status: Runtime Error

Solution code:
N, M = map(int, input().split())
LR_list = [list(map(int, input().split())) for _ in range(0, M)]

num_card = 0

for i in range(0, N):
    for j in range(0, M-1):
        if not (i >= LR_list[j][0] and i <= LR_list[j][1]):
            break
    else:
        num_card += 1

print(num_card)

Submission status: Runtime Error

Solution code:
r, d, x = (int(i) for i in input().split())

for i in range(10):
  x = r * x - d
  print(x)

Submission status: Runtime Error

Solution code:
n, m = map(int, input().split())
ans = 0
b = []
while m != 0:
    l, r = map(int, input().split())
    if not b:
        for a in range(1, n + 1):
            c = a
            print(b)
            while True:
                if a >= l:
                    if a <= r:
                        b.append(c)
                        break
                    else:
                        break
                else:
                    break
    elif m != 1:
        for a in b:
            print(b)
            c = a
            while True:
                if a >= l:
                    if a <= r:
                        ans += 1
                        break
                    else:
                        b.remove(c)
                        break
                else:
                    b.remove(c)
                    break
    else:
        for a in b:
            print(b)
            c = a
            while True:
                if a == n:
                    ans += 1
                    break
                if a >= l:
                    if a <= r:
                        a += 1
                    else:
                        break
                else:
                    break
    m -= 1

print(ans)

Submission status: Runtime Error

Solution code:
import numpy as np
import sys

def main(args):
    a = int(args[0])
    b = int(args[1])
    if 6 <= a and a <= 12:
        v = b//2
    elif a <= 5:
        v = 0
    else:
        v = b
    print(v)

main(sys.argv[1:3])

Submission status: Runtime Error

Solution code:
import numpy as np
import sys

def main(args):
    a = int(args[0])
    b = int(args[1])
    if 6 <= a and a <= 12:
        v = b//2
    elif a <= 5:
        v = 0
    else:
        v = b
    print(v)

if __name__ == "__main__":
    main(sys.argv[0:2])

Submission status: Runtime Error

Solution code:
import numpy as np
import sys

def main(args):
    a = int(args[0])
    b = int(args[1])
    if 6 <= a and a <= 12:
        v = b//2
    elif a <= 5:
        v = 0
    else:
        v = b
    print(v)

if __name__ == "__main__":
    main(sys.argv[1:3])

Submission status: Runtime Error

Solution code:
x = input().split()
n = int(x[0])
m = int(x[1])
a = list()
for i in range(m):
  y = input().split()
  l = int(y[0])
  r = int(y[1])
  for i in range(l,r+1):
    a.append(i)
b = 0
for i in range(n):
  if a.count(i) == m:
    b += 1
print(b)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#coding:utf-8
A,B = map(int,input(),split())
if  A >= 13:
    print(B)
elif 6 <= A <= 12:
    print(B / 2)
print(0)

Submission status: Runtime Error

Solution code:
n,m=(int(i) for i in input().split())
a=0
b=0
for i in range(m):
  l,r=(int(j) for j in input().split())
  if l>a and r<b:
    a=l
    b=r
  elif l>a and r>=b:
    a=l
  elif r<b and l<=a:
    b=r
if b>=a:
	if n>a and n<b:
  		t=n-a+1
        print(t)
	elif n>a and n>=b:
  		t=b-a+1
        print(t)
	else:
  		print(0)
else:
  print(0)

Submission status: Runtime Error

Solution code:
N, M = map(int, input().split())
L_max, R_min = 0, 100000
for i in range(M):
  L, R = map(int,input().split())
  if L_max < L:
    L_max = L
  if R_min > R:
    R_min = R
if R_min - L_max < 0:
  print(0)
else:
  print(R_min - L_max + 1)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n,m=(int(i) for i in input().split())
a=0
b=0
for i in range(m):
  l,r=(int(j) for j in input().split())
  if l>a and r<b:
    a=l
    b=r
  elif l>a and r>=b:
    a=l
  elif r<b and l<=a:
    b=r
if b>=a:
	if n>a and n<b:
  		print(n-a+1)
	elif n>a and n>=b:
  		print(b-a+1)
	else:
  		print(0)
else:
  print(0)

Submission status: Runtime Error

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

I = input().split()
A = [int(s) for s in(I)]
d = 1

for i in range(m):
    b, c = map(int, input().split())
    if d == 1:
        A.sort()
        d = 0
    else:
        pass
    for j in range(b):
        if A[j] >= c:
            break
        else:
            A[j] = c
            d = 1
ans = sum(A)
print(ans)

Submission status: Runtime Error

Solution code:
N,M = map(int,input().split(' '))
left = float('-inf')
right = float('inf')
for i in range(M):
  L,R = map(int,input().split(' '))
  if left <= L:
    left = L
  if R <= right:
    right = R
  if (right - left) < 0:
    print(0)
    exit()
print(right-left+1)

Submission status: Runtime Error

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: Runtime Error

Solution code:
nm = list(map(int,input().split()))
a = list(map(int,input().split()))
for i in range(nm[1]):
    bc = list(map(int,input().split()))
    plus = [bc[1] for akds in range(bc[0])]
    a += plus
a.sort(reverse=True)

sum = 0
for x in a[:nm[0]]:
    sum += x
print(sum)

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
if A>12:
    print(B)
elif 13>A>5:
    print(round(B/2))
else:
    print(0)

Submission status: Runtime Error

Solution code:
A=int(input())
B=int(input())
0 <= A <= 100

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

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
if A>12:
    print(B)
elif 13>A>6:
    print(round(B/2))
else:
    print(0)

Submission status: Runtime Error

Solution code:
#include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define all(V) V.begin,V.end
const int N = 100005;

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    int a,b;
    cin >> a >> b;
    if(a>=13)cout << b;
    else if(a>=6 && a<13)cout << b/2;
    else cout << 0;
}

Submission status: Runtime Error

Solution code:
r,D,x = map(int,input().split())
for i in range(0,10):
    result = r * x - D
    print(result)
    x = result

Submission status: Runtime Error

Solution code:
L, R = [[], []]
N, M = map(int, input().split())
for i in range(M):
  l, r = map(int, input().split())
  L.append(l)
  R.append(r)

minR = min(R)
maxL = max(L)
if minR <= maxL:
  count = 0
else:
  count = minR - maxL + 1
      
print('%d' % count)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
# coding: utf-8
# Your code here!
n,m=map(int,input().split(" "))
mae=0
usiro=1000000000
for i in range(m):
    s,t=map(int,input().split(" "))
    if(mae<=s):
        mae=s
    if(usiro>=t):
        usiro=t
#print(mae,usiro)
ans=usiro-mae+1
if(ans<0):
    ans=0
print(ans)

Submission status: Runtime Error

Solution code:
n,m =map(int,input().split())
count = 0
memory = 0
flag = True
for i in range(m):
  l,r = map(int,input().split())
  while flag = True:
    if l != r:
      l += 1
      count += 1
    else:
      flag = False
  if count == r-l:
    memory += 1
  flag =True

Submission status: Runtime Error

Solution code:
n,m =map(int,input().split())
count = 0
memory = 0
for i in range(1,m+1):
  l,r = map(int,input().split())
  while flag = True:
    if l != r:
      l += 1
      count += 1
    else:
      flag = False
  if count == r-l:
    memory += 1
  flag =True

Submission status: Runtime Error

Solution code:
#ABC127C-Prison.py

from sys import stdin

input = stdin.readline

N, M = list(map(int, input().split()))

L = []
R = []

for i in range(M):
    l, r = input().split()
    L.append(int(l))
    R.append(int(r))

maxL = max(L)
minR = min(R)


if maxL <= N and maxL <= minR:
    if N >= minR:
        print(minR-maxL+1)
    else:
        print(N-maxL+1)
else:
    print(0)

Submission status: Runtime Error

Solution code:
import numpy as np
N, M = map(int, input().split())

key = np.zeros(N)
for i in range(0, M):
    L, R = map(int, input().split())
    for j in range(L, R+1):
        key[j-1]+=1

print(np.sum(key==M))

Submission status: Runtime Error

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

for _ in range(M):
    B, C = map(int,input().split())
    A += [C]*B
    A.sort(reverse=True)
    A = A[:N]
print(sum(A))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b,c=(int(i) for i in input().split())
d=9
for i in range(0,d):
  c=a*c-b
  print(c)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b,c=(int(i) for i in input().split())
while i<9:
  i=i+1
  c=a*c-b
  print(c)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
r,d,x=map(int, input().split())
for i in range(1,11):
  x_i = r*x - d
  print(x_i)
  x = x_i

Submission status: Runtime Error

Solution code:
N = int(input())
I = int(input())

if I <= 13:
    print(N)
elif 6 <= I <=12:
    print(N/2)
elif I <= 5:
    print("0")

Submission status: Runtime Error

Solution code:
import numpy as np

N = int(input())
A = np.empty(N, dtype=np.int)
B = np.empty(N, dtype=np.int)
for i in range(N):
	A[i], B[i] = map(int, input().split())

for i in range(N):
	print(A[i] * B[i])

Submission status: Runtime Error

Solution code:
a,b,c=(int(i) for i in input().split())
for i in range(1,10):
  c=int(a*c-b)
  print(c)

Submission status: Runtime Error

Solution code:
N = int(input())
I = int(input())

if I <= 13:
    print(N)
elif: 6 <= I <=12:
    print(N/2)
elif: I <= 5
    print("0")

Submission status: Runtime Error

Solution code:
read=input();
A,B=read.spilt(' ')
A=int(A)
B=int(B)
if A>12:
  print(B);
elif A>5:
  print(B/2);
else:
  print(0);

Submission status: Runtime Error

Solution code:
read=input();
A,B=read.spilt(' ')
A=int(A)
B=int(B)
if A>12:
  print(B);
elif A>5:
  print(B/2);
else:
  print(B);

Submission status: Runtime Error

Solution code:
age = int(input())
fee = int(input())

if age > 13:
	print(fee)
    
elif 6 <= age <= 12:
	print(fee / 2)

else:
	print(0)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
read=input();
A,B=read.spilt(' ')
A=int(A)
B=int(B)
if A>=0 and A<=5:
  print(0);
elif A>5 and A<=12:
  print(B/2);
else:
  print(B);

Submission status: Runtime Error

Solution code:
a,b,c=(int(i) for i in input().split())
for i in range(0,9):
  c=a*c-b
  int(c)
  print(c)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
str = input()
ary = str.split()
a = int(ary[0])
b = int(ary[1])

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

Submission status: Runtime Error

Solution code:
from heapq import*
n,m=map(int,input().split())
p=sorted(map(int,input().split()))
heapify(p)
q=sorted([list(map(int,input().split()))for i in range(m)],key=lambda x:x[1],reverse=1)

for s,t in q:
    for i in range(s):
        tmp=heappop(p)
        if t>tmp:
            heappush(p,t)
        else:
            heappush(p,tmp)
            print(sum(p))
            exit()
print(sum(p))
#    print(p,q)

Submission status: Runtime Error

Solution code:
a,b,c=(int(i) for i in input().split())
for i in range(0,9):
  c=a*c-b
  int c
  print(c)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b,c=(int(i) for i in input().split())
for i in range(0,9):
  c=a*c-b
  print(int c)

Submission status: Runtime Error

Solution code:
r, d, x = map(int, input().split())

for i in range(10):
    ans = x * r - d
    print(ans)
    x = ans

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
r, d, x = map(int, input().split())

for i range (10):
    ans = x * r - d
    print(ans)
    x = ans

Submission status: Runtime Error

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: Runtime Error

Solution code:
#include <iostream>
#include <string>
using namespace std;

int main() {
  int a,b;
  int c = 0;
  cin >> a >> b;
  if (a >= 13) c = b;
  else if (a < 13 and a >= 6) c = b/2;
  
  cout << c << endl;
}

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
str = input()
ary = str.split()
a = int(ary[0])
b = int(ary[1])

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
age = 12
fee = 1000

if age > 13;
	print(fee)
else if 6 <= age <= 12;
	print(fee / 2)
else;
	print(0)

Submission status: Runtime Error

Solution code:

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:

if 6<=a<=13:

    print(int(b/2))

elif 0<=a<=5:
    print(0)

elif 13<=a<=100:
    print(b)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:

if A>=0 and A<=5:
  return 0;
elif A>5 and A<=12:
  return B/2;
else:
  return B;

Submission status: Runtime Error

Solution code:
age = 12
fee = 1000

if age > 13;
	print(fee)
else;
	print(fee / 2)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

r = int(i[0])
d = int(i[1])
a = int(i[2])

for i in range(10):
	a = a * r - d
	print(a)

Submission status: Runtime Error

Solution code:
str = input()
ary = str.split()
a = int(ary[0])
b = int(ary[1])

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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(len(set(a)))

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("" + [a1])
  elif a[0] > 5:
    print("" + ([a1]/2))
  else
    print("0")
except Exception as e:
  print(e, file=sys.stderr)

Submission status: Runtime Error

Solution code:
age = int(input())
cost = int(input())

if age <= 12 and age >= 6:
    print(cost/2)

elif age <= 5:
    print(0)

else:
    print(cost)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
age = int(input())
fee = int(input())

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

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())

if(a >= 13):
    print(b,'\n')
elif(a >= 6 and a <= 12):
    print(b // 2,'\n')
else:
    print('0\n')

Submission status: Runtime Error

Solution code:
A=int(input())
B=int(input())

if A >= 13 :
  X=B
     print( '%d' % X )
elif X<=12 && X>=6 :
  X=B/2
     print( '%d' % X )
else:
     print( '0')

Submission status: Runtime Error

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: Runtime Error

Solution code:
from sys import stdin

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
x = input()
li = x.split()
age = li[0]
m = li[1]
if(age <= 5):
  print(0)
elif(age <= 12):
  printf(m / 2)
else:
  print(m)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
if age > 13;
	print(fee)
else;
	print(fee / 2)

Submission status: Runtime Error

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: Runtime Error

Solution code:
print(A)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())

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

Submission status: Runtime Error

Solution code:
#include<stdio.h>

int main(){
    int A,B;
    scanf("%d %d",&A,&B);
    if(A>=13){
        printf("%d\n",B);
    }else if(A<=5){
        printf("0\n");
    }else{
        printf("%d\n",B/2);
    }
    return 0;
}

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
if(A>=13):
  print(B)
elif(13>A)and(A>5):
  print(B/2)
else:
  print(0)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
スコード 

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

Submission status: Runtime Error

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)
#!/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: Runtime Error

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

Submission status: Runtime Error

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

print(X)

Submission status: Runtime Error

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: Runtime Error

Solution code:
#include <bits/stdc++.h>
using namespace std;

int main() {
  int A, B;
  cin >> A >> B;
  if (A >= 13) cout << B << endl;
  else if (A >= 6) cout << B/2 << endl;
  else cout << 0 << endl;
}

Submission status: Runtime Error

Solution code:

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

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

Submission status: Runtime Error

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