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

Submission status: Runtime Error

Solution code:
age = int(input())
price = int(input())
if age >= 13:
    print(age, price)
elif 6 <= age <= 12 :
    print(price // 2)
else:
    print(0)

Submission status: Runtime Error

Solution code:
age = int(input())
price = int(input())
if age >= 13:
    print(age, price)
elif age >= 6 and age <= 12:
    print(price // 2)
else:
    print(0)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
if a >= 0 and  a <= 5:
    print(0)
if a >= 6  and a <= 12:
    print(b//2)
if a >= 13 and a <= 100:
    print(b)

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
if 0 <= a and  a <= 5:
    print(0)
if 6 <= a  and a <= 12:
    print(b//2)
if 13 <= a and a <= 100:
    print(b)

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
if 0 <= a and  a <= 5:
    print(0)
if 6 <= a  and a <= 12:
    print(b//2)
if 16 <= a and a <= 100:
    print(b)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

if 0 <= a <= 5:
    print(0)
if 6 <= a <= 12:
    print(b//2)
if 16 <= a <= 100:
    print(b)

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
if 0 <= a <= 5:
    print(0)
if 6 <= a <= 12:
    print(b//2)
if 16 <= a <= 100:
    print(b)

Submission status: Runtime Error

Solution code:
age = int(input())
yen = int(input())
if 0 <= age <= 5:
    print(0)
if 6 <= age <= 12:
    print(yen//2)
if 16 <= age <= 100:
    print(yen)

Submission status: Runtime Error

Solution code:
age = int(input("enter age"))
yen = int(input("enter cost"))
if 0 <= age <= 5:
    print(0)
    print("Takahashi is",age, "years old, and he can ride the Ferris wheel for free.")
if 6 <= age <= 12:
    print(yen//2)
    print("Takahashi is", age, "years old, and the cost of the Ferris wheel is the half of", yen, "yen, that is,", yen//2, "yen.")
if 16 <= age <= 100:
    print(yen)
    print("Takahashi is", age, "years old now, and the cost of the Ferris wheel is", yen, "yen.")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
n,m = map(int,input().split())
cards = []
for i in range(m):
    cards.append(list(map(int,input().split())))

min = cards[0][0]
max = cards[0][1]

for i in range(m):
    if cards[i][0] > min:
        min = cards[i][0]
    if cards[i][1] < max:
        max = cards[i][1]

if max >= min:
    print(max - min + 1)
else:
    print(0)

Submission status: Runtime Error

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

if 6<=a<=12 :
    ans = b/2

elif 6 > a :
    ans = 0

else :
    ans = b

print(ans)

Submission status: Runtime Error

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

if 6<=a<=12 :
    ans = b/2

elif 6 > a :
    ans = 0

else :
    ans = b

print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import java.util.Arrays;
import java.util.*;
public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
      int a = sc.nextInt();
      int b = sc.nextInt();
      if(a<=5){
        System.out.println(0);
      }else if(a>=13){
        System.out.println(b);
      }else{
        System.out.println(b/2);
      }
    }
}

Submission status: Runtime Error

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

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

    print(price)

Submission status: Runtime Error

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

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

    return price 


if __name__ == '__main__'
    print(main())

Submission status: Runtime Error

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

    price = B if B >= 13 else B/2 if B >= 6 else 0

    return price 


if __name__ == '__main__'
    print(main())

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
age=int(input())
pay=int(input())
if age>=13:
  print(pay)
elif age<=5:
  print(0)
else:
  print(pay/2)

Submission status: Runtime Error

Solution code:
import sys
mod = pow(10, 9) + 7
def C(n, r):
    if ( r<0 or r>n ):
        return 0
    r = min(r, n-r)
    return g1[n] * g2[r] * g2[n-r] % mod
NNN = (10**6)
g1 = [1, 1]
g2 = [1, 1]
inverse = [0, 1]
for i in range(2, NNN+1):
    g1.append( ( g1[-1] * i ) % mod )
    inverse.append( ( -inverse[mod % i] * (mod//i) ) % mod )
    g2.append( (g2[-1] * inverse[-1]) % mod )
n,m,k=map(int,input().split())
#n=m=k=2
print(C(n*m,k)*C(k,2)%mod*(n+m)*inverse[3]%mod)

Submission status: Runtime Error

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

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

Solution code:
import sys

argvs = sys.argv

def main(_old, _fee):
  if int(_old) >= 13:
    return int(_fee)
  elif 6 <= int(_old) <= 12:
    return int(_fee) / 2
  else:
    return 0
  
if __name__ == '__main__':
  print(main(argvs[1], argvs[2]))

Submission status: Runtime Error

Solution code:
import bisect
import sys
input=sys.stdin.readline
from operator import itemgetter
n,m=map(int,input().split())
a=list(map(int,input().split()))
bc=[list(map(int,input().split())) for i in range(m)]
a.sort()
bc.sort(key=itemgetter(1),reverse=True)
s=0
ans=0
for i in range(m):
  if a[s]<bc[i][1]:
    t=bisect.bisect_left(a,bc[i][1],s,n)
    cvt=min(t-s,bc[i][0])
    ans+=bc[i][1]*cvt
    s+=cvt
    if s>=n:
      break
  else:
    break
print(ans+sum(a[s:]))

Submission status: Runtime Error

Solution code:
import bisect
n,m=map(int,input().split())
a=list(map(int,input().split()))
bc=[list(map(int,input().split())) for i in range(m)]
a.sort()
bc.sort(key=lambda x:x[1],reverse=True)
s=0
for i in range(m):
  if a[s]<bc[i][1]:
    t=bisect.bisect_left(a,bc[i][1],s,n)
    for j in range(s,min(t,s+bc[i][0])):
      a[j]=bc[i][1]
    s=min(t,s+bc[i][0])
    if s>=n:
      break
  else:
    break
print(sum(ans))

Submission status: Runtime Error

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

if a > 12:
    print(b)

eilf 5 < a < 13:
    print(b // 2)

else:
    print(0)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
import sys
import itertools#これは色々使える組み込み関数みたいなやつ
import math#数学的計算はこれでいける。普通に0.5乗しても計算可能
#w=input()
N, M=input().split()
N=int(N)
M=int(M)
i=0
ID_list=[]
ID_sublist=[]
gate_possible_list=[]
#センテンスを暗記するのではなく、まずinput()を書いて、膨らます感じで記述する。すると#思考の流れ通りに書ける。素晴らしい！
for i in range(N):
 ID_list.append(i+1)
#print(ID_list)
#for i in range(N)
gate_list =  [list(map(int, input().split(" ")))for i in range(M)]
#センテンスを暗記するのではなく、まずinput()を書いて、膨らます感じで記述する。すると#思考の流れ通りに書ける。素晴らしい！

#x=[]
#y=[]
#t, x, y = [0]*(N+1), [0]*(N+1), [0]*(N+1)#N+1個の空のリストを作成(原点を入れて##るから一つ増える)
#delta_t=0
#delta_x=0
#delta_y=0
#l=0
#t[0],x[0],y[0]=[0, 0, 0]
#とりあえず入力までは完成した．
#for i in range(N):
# t[i+1], x[i+1], y[i+1] = map(int, input().split())
#child_i =  list(map(int, input().split()))
#w_len=len(w)
#w_list=list(w)
#print(len(w_list))
#print(w_list)
#child_il=sorted(child_i)
#print(child_il)#リストの右端のほうが大きい
i=0
j=0
k=0
l=0
m=0
mini=gate_list[0][0]
maxi=gate_list[0][1]
for i in range(M):
  if mini >gate_list[i][0]:
      mini=gate_list[i][0]
i=0
for i in range(M):
  if maxi <gate_list[i][1]:
      maxi=gate_list[i][1]

if maxi-mini<=0:
    print(0)

print(maxi-mini+1)


      
#for i in range(M):#ゲートの個数分回す
# for j in range(gate_list[i][1]-gate_list[i][0]+1):
#     gate_possible_list.append(gate_list[i][0]+j)
 #print(gate_possible_list)
# for k in range(len(ID_list)):
#     for j in range(len(gate_possible_list)):
#      if ID_list[k]==gate_possible_list[j]:
#         ID_sublist.append(gate_possible_list[j])
#      else:
#          pass
#
# gate_possible_list=[]
# ID_list=[]
# for m in range(len(ID_sublist)):
#  ID_list.append(ID_sublist[m])
# #print(ID_list)
# ID_sublist=[]
#print(len(ID_list))
#これ時間かかりまくり

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
from sys import stdin


def fetch_one_line():
    return stdin.readline().rstrip()


def fetch_int_input():
    return [int(s) for s in fetch_one_line().split()]


def fetch_inputs(times):
    return [fetch_one_line() for _ in range(times)]


def fetch_int_inputs(times):
    return [fetch_int_input() for _ in range(times)]


N, M = fetch_int_input()
gate_len = fetch_int_inputs(M)
# range_card = [[False] * N for _ in range(M)]
l, r = 0, N
for gl in gate_len:
    if l < gl[0]:
        l = gl[0]
    if r > gl[1]:
        r = gl[1]

# range_card = list(zip(*range_card))
# print(sum([all(r) for r in range_card]))
print(r - l + 1)

Submission status: Runtime Error

Solution code:
from sys import stdin


def fetch_one_line():
    return stdin.readline().rstrip()


def fetch_int_input():
    return [int(s) for s in fetch_one_line().split()]


def fetch_inputs(times):
    return [fetch_one_line() for _ in range(times)]


def fetch_int_inputs(times):
    return [fetch_int_input() for _ in range(times)]


N, M = fetch_int_input()
gate_len = fetch_int_inputs(M)
# range_card = [[False] * N for _ in range(M)]
l, r = 0, N
for gl, rc in gate_len:
    if l > gl[0]:
        l = gl[0]
    if r < gl[1]:
        r = gl[1]

# range_card = list(zip(*range_card))
# print(sum([all(r) for r in range_card]))
print(r - l + 1)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A = input()

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
A = int(input())

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
def cal(A, B):
    if A >= 13 and A <= 100:
        return B
    elif 6 <= A and A <= 12:
        return B/2
    elif 0 <= A and A <= 5:
        return 0

if __name__ == "__main__":
    print(cal(int(input()), int(input())))

Submission status: Runtime Error

Solution code:
def cal(A, B):
    if A >= 13:
        return B
    elif 6 <= A and A <= 12:
        return B/2
    elif 0 <= A and A <= 5:
        return 0

if __name__ == "__main__":
    print(cal(int(input()), int(input())))

Submission status: Runtime Error

Solution code:
def cal(A, B):
    if A >= 13:
        return B
    elif 6 <= A and A <= 12:
        return B/2
    elif 5 >= A:
        return 0

if __name__ == "__main__":
    print(cal(int(input()), int(input())))

Submission status: Runtime Error

Solution code:
def cal(A, B):
    if A >= 13:
        return B
    elif 6 <= A and A <= 12:
        return B/2
    elif 5 <= A:
        return 0

if __name__ == "__main__":
    A = int(input())
    B = int(input())
    print(cal(A, B))

Submission status: Runtime Error

Solution code:
def cal(A, B):
    if A >= 13:
        return B
    elif 6 <= A and A <= 12:
        return B/2
    elif 5 <= A:
        return 0

if __name__ == "__main__":
    A = input()
    B = input()
    print(cal(A, B))

Submission status: Runtime Error

Solution code:
a, b = input()

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

sup = []
inf = []
  
for i in range(len(L)):
  sup.append(L[i][1])
  inf.append(L[i][0])
  
sup = min(sup)
inf = max(inf)

if sup - inf <= 0:
  print(0)
else:
  print(sup - inf + 1)

Submission status: Runtime Error

Solution code:
N,M = map(int,input().split())
A= list(map(int,input().split()))
BC=[list(map(int,input().split())) for _ in M]
A.sort()
BC.sort(key=lambda x:-x[1])
i = 0
for B,C in BC:
    for j in range(i,min(N,i+B)):
        if A[j]<C:A[j]=C
    i = i+B
print(sum(A))

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
[n,m]=map(int,raw_input().split())
l,r=1,n
for i in range(m):
	[li,ri]=map(int,raw_input().split())
	l = max(li, l)
	r = min(ri, r)
ans=l-r+l
print(ans if ans > 0 else 0)

Submission status: Runtime Error

Solution code:
[r,d,x0]=map(int,raw_input().split())

a = [x0]
for i in range(10):
	a += [r * a[-1] - d]
	print a[-1]

Submission status: Runtime Error

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

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 = [int(x) for x in input().split()]

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N, M = map(int, input().split())
L = 0
R = 0
for _ in range(M):
    inp = input().split()
    l = int(inp[0])
    r = int(inp[1])
    L = max(L,l)
    R = min(R,r)
print(max(0,min(R,N) + 1 - L))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

if a[0] > 12:
  print(a[1])
else if a[0] > 6:
  print(a[1]/2)
else:
  print(0)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:

r,d,x2000 = map(int,input().split())


for i in range(10):
    if i == 0:
        ans = r*x2000-d
    else:
        ans = r*ans-d
    print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

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

Solution code:
n, m = map(int, input().split())
a = list(map(int, input().split()))
bc = [list(map(int, input().split())) for _ in range(m)]

bc.sort(key=lambda x: x[1], reverse=True)
d = []
i = 0

while len(d) <= n and i < len(bc):
    d += ([bc[i][1]] * bc[i][0])
    i += 1

if len(d) > n:
    d = d[:n]

a += d
a.sort(reverse=True)

print(sum(a[:n]))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
r,d,x = map(int, input().split())
result=[]
result.append(x)
for i in range(10):
	x=r*x-d
	result.append(x)
for i in result[1:11]:
	print(str(i))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
r,d,x = map(int, input().split())
result=[]
result.append(x)
for i in range(10):
	x=r*x-d
	result.append(x)
for i in result[1:10]:
	print(i)

Submission status: Runtime Error

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

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

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: 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())
    A.extend([c]*b)
A.sort(reverse=True)
ans = A[:N]
print(sum(ans))

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

if A >= 13:
    print(B)

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

elif A <= 5
    print(0)

Submission status: Runtime Error

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

print (B if a>=13 else B//2 if a>= 6 else 0)

Submission status: Runtime Error

Solution code:
A, B =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())

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

Submission status: Runtime Error

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

def main():
    N, M = map(int, input().split())
    INF = float('inf')

    LR = [-INF, INF]
    for _ in range(M):
        L, R = map(int, input().split())
        if LR[0] < L:
            LR[0] = L
        if LR[1] > R:
            LR[1] = R
    if LR[1] > LR[0]:
        return int(LR[1] - LR[0] + 1)
    else:
        return 0

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,p= 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:
r,D,x2000 = map(int,raw_input().split())
xi = x2000
for i in range(1,11):
    xi = r * xi - D
    print(xi)

Submission status: Runtime Error

Solution code:
r,D,x2000 = map(int,input().split())
xi = x2000
for i in range(1,11):
    xi = r * xi - D
    print(xi)

Submission status: Runtime Error

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


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

Submission status: Runtime Error

Solution code:
a = []
a = input().split()

A = a[0]
B = a[1]

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

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:
def main():
    mod = 10**9+7
    n, m, k = list(map(int, input().split()))
    # 　ある配置を固定した時、その2つの配置でmanhattan距離が計算される回数は、他の組み合わせ数。
    combination = mod_combination(n*m-2, k-2)
    x=y=0
    for i in range(1, n):
        x += i * (n-i)
    for j in range(1, m):
        y += j * (m-j)
    return (((m ** 2) % mod * x % mod) + ((n ** 2) % mod * y % mod)) * combination % mod


def mod_combination(n, r, mod=10**9+7):
    fact = 1
    for i in range(n-r+1, n+1):
        fact = fact * i % mod
    divisor = 1
    for j in range(1, r+1):
        divisor = divisor * j % mod
    return int(fact/divisor)


print(main())

Submission status: Runtime Error

Solution code:
def main():
    mod = 10**9+7
    n, m, k = list(map(int, input().split()))
    # 　ある配置を固定した時、その2つの配置でmanhattan距離が計算される回数は、他の組み合わせ数。
    combination = mod_combination(n*m-2, k-2)
    x=y=0
    for i in range(1, n):
        x += i * (n-i)
    for j in range(1, m):
        y += j * (m-j)
       
    return (((m ** 2) % mod * x % mod) + ((n ** 2) % mod * y % mod)) * combination % mod


def mod_combination(n, r, mod=10**9+7):
    fact = 1
    for i in range(n-r+1, n+1):
        fact = fact * i % mod
    divisor = 1
    for j in range(1, r+1):
        divisor = divisor * j % mod
    return int(fact/divisor)


main()

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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:
N, M = map(int, input().split())
l = 1
r = N
for i in range(M):
  L, R = map(int, input().split())
  if L > l:
    l = L
  if r > R:
    r = R
if l > r:
  print(0)
else:
  print(r-l+1)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#include <stdio.h>
#include <stdlib.h>
#include <iostream>

using namespace std;

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

Submission status: Runtime Error

Solution code:
from bisect import bisect_right

n, m = list(map(int, input().split()))
a = list(map(int, input().split()))
a.sort()
bc = [list(map(int, input().split())) for _ in range(m)]
bc.sort(key=lambda x: x[1], reverse=True)

res = 0
fin = 0
for b, c in bc:
    count = bisect_right(a, c, lo=fin, hi=min(b, len(a))) - fin
    fin += count
    res += count * c
for i in range(fin, len(a)):
    res += a[i]

print(res)

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,b = [int(s) for s in input().split()]
if a>=13:
  print(b)
elif a<=6:
  print(b/2)
else:
  print 0

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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