Problem:


Score : 100 points

Problem Statement

Takahashi has K 500-yen coins. (Yen is the currency of Japan.)
If these coins add up to X yen or more, print Yes; otherwise, print No.

Constraints

1 \leq K \leq 100

1 \leq X \leq 10^5

Input

Input is given from Standard Input in the following format:

K X

Output

If the coins add up to X yen or more, print Yes; otherwise, print No.

Sample Input 1

2 900

Sample Output 1

Yes

Two 500-yen coins add up to 1000 yen, which is not less than X = 900 yen.

Sample Input 2

1 501

Sample Output 2

No

One 500-yen coin is worth 500 yen, which is less than X = 501 yen.

Sample Input 3

4 2000

Sample Output 3

Yes

Four 500-yen coins add up to 2000 yen, which is not less than X = 2000 yen.



Sample input:
2 900


Sample output:
Yes

Submission status: Runtime Error

Solution code:
K,X=input().split()
if 500 * K >= X:
  return 'Yes'
else:
  return 'No'

Submission status: Runtime Error

Solution code:
k,x = map(int, raw_input.strip().split())
print 'Yes' if k*500>=x else 'No'

Submission status: Runtime Error

Solution code:
K,X = map(int,input().split())
a = 500 * K
if (a => X):
    print ('Yes')
else:
    print ('No')

Submission status: Runtime Error

Solution code:
k, x = map(int, input())

if(k * 500 >= x): print("Yes")
else: print("No")

Submission status: Runtime Error

Solution code:
import math 
n, m = map(int, input().split())
a = list(map(int, input().split()))
z = a[0]
for i in a:
    z = math.gcd(z, i)
for i in range(n):
    a[i]//=z
lcm = 1
a = set(a)
for i in a:
    lcm*=i
print(math.ceil((m//lcm)/2))

Submission status: Runtime Error

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

if 500 * sp_list[0] >= sp_list[1]:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
a=int(input())
b=list(input())
c=0
for i in range(a):
  if b[i]=="A":
    if b[i+1]=="B":
    else:
      pass
      if b[i+2]=="C":
        c+=1
      else:
        pass
  else:
    pass
print(c)

Submission status: Runtime Error

Solution code:
10
ZABCDBABCQ

Submission status: Runtime Error

Solution code:
k = int(input())
x = int(input())
k_t = 500 * k
if (k_t >= x):
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
A = int(500*K)

if A<X :
   print('No')
  
  else:
    print('Yes')

Submission status: Runtime Error

Solution code:
#小さいCから変更
n = int(input())
c = list(map(int, input().split( )))

c.sort()

#i　bit目が違うようなs,tは 2**(2*n-2)*2通り
sm = 0
for i in range(n):
    sm += (n-i)*c[i]

sm *= pow(2,2*n-2,10**9+7)

print(sm)

k,x = map(int, input().split( ))

if 500*k>=x:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:


if 500*K<X :
   print('No')
  
  else:
    print('Yes')

Submission status: Runtime Error

Solution code:
K,X = map(int,input().split())
a = 500 * K
if a => X:
    print ('Yes')
else:
    print ('No')

Submission status: Runtime Error

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

print(b.count('ABC'))

Submission status: Runtime Error

Solution code:
k,x= int(input()), int(input())

k = k * 500 

if k >= x:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
num = int(input ("Enter K's number :"))*500
x = int(input ("Enter X's number:"))
if num > x:
    print("Yes")
elif num < x:
    print("no")

Submission status: Runtime Error

Solution code:
K=int(input())
X=int(input())
if K*500>=X:
  print("Yes")
else : 
  print("No")

Submission status: Runtime Error

Solution code:
K,X = map(int,input().split())
a = 500 * K
print ('Yes' if a => X else 'No')

Submission status: Runtime Error

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

VALUE = 500

num = int(sys.argv[1])
if num < 1 or num > 100:
    assert False, 'Invalid value'

threshold = int(sys.argv[2])
if threshold < 1 or threshold > 10**5:
    assert False, 'Invalid value'

result = 'Yes' if num * VALUE >= threshold else 'No'
print(result)

Submission status: Runtime Error

Solution code:
# coding: utf-8

num_of_coins, border = (int(n) for n in input().split)
if 500 * num_of_coins >= border:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
k, x = int(input()), int(input())
print ("yes") if k*500 >= x else ("no")

Submission status: Runtime Error

Solution code:
import itertools
n = int(input())
p = tuple(map(int, input().split()))
q = tuple(map(int, input().split()))
y = [num for num in range(1, n+1)]
permutation_n = list(itertools.permutations(y, 3))

a=b=0
count=1
for permu in permutation_n:
  if permu == p:
    a = count
  if permu == q:
    b = count
  if a != 0 and b != 0:
    break
  count+=1
print(abs(a-b))

Submission status: Runtime Error

Solution code:
k,x= int(raw_input()), int(raw_input())

k = k * 500 

if k >= x:
  print("Yes")
else:
	print("No")

Submission status: Runtime Error

Solution code:
public class Main {
    public static void main(String[] args) {
        if (500*K>=X){
            System.out.println("yes");
        }
        else
        {
            System.out.println("no");
        }
    }
}

Submission status: Runtime Error

Solution code:
k=int(input())
x=int(input())
k=k*500
if k<x:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        int K, X;
        Scanner scan = new Scanner(System.in);
        K = scan.nextInt();
        X = scan.nextInt();
        if(K*500>=X){
            System.out.print("Yes");
        }else{
            System.out.print("No");
        }
    }
}

Submission status: Runtime Error

Solution code:
X,K=int(input())
if K*500>=X:
  print("Yes")
else : 
  print("No")

Submission status: Runtime Error

Solution code:
k, x = input(), input()
print ("yes") if k*500 >= x else ("no")

Submission status: Runtime Error

Solution code:
k = int(input())
x=int(input())
k=k*500
if k<x:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
k = input()
x = input()
if (k * 500) > x:
  print ("yes")
else:
  print("no")

Submission status: Runtime Error

Solution code:
def B():
    n = int(raw_input())
    s = list(raw_input())
    c = 0
    for i in range(0,len(s)-2):
        if str(s[i]) == "A":
            if str(s[i+1]) == "B":
                if str(s[i+2]) == "C":
                    c = c + 1
    print c


if __name__ == '__main__':
    B()

Submission status: Runtime Error

Solution code:
import itertools

N = int(input())

permu = [i+1 for i in range(N)]
s = 0
flag = False

P = tuple([int(i) for i in input().split(" ")])
Q = tuple([int(i) for i in input().split(" ")])

for i, value in enumerate(itertools.permutations(permu)):
    

    if value == P or value == Q:
        # print(i)
        if flag:
            s -= i
        else:
            s += i
            flag = True

print(abs(s))

Submission status: Runtime Error

Solution code:
import sys

VALUE = 500

num = int(sys.argv[1])
if num < 1 or num > 100:
    assert False, 'Invalid value'

threshold = int(sys.argv[2])
if threshold < 1 or threshold > 10**5:
    assert False, 'Invalid value'

result = 'Yes' if num * VALUE >= threshold else 'No'
print(result)

Submission status: Runtime Error

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

if K * 500 >= X:
  print("Yes")
else print("No")

Submission status: Runtime Error

Solution code:
K,X = map(int, input().split())
print("Yes")
 if
500*K>X 
 else
print("No")

Submission status: Runtime Error

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

if (500 * K - X） >= 0  :
  print('Yes') 
else:
  print('No')

Submission status: Runtime Error

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

total = 500 * K

if total >= X:
    print("Yes")
else:
    prnt("No")

Submission status: Runtime Error

Solution code:
K,X = [int(x) for x in stdin.readline().rstrip().split()]
Ks = K * 500
if Ks < X:
  print('No')
else:
  print('Yes')

Submission status: Runtime Error

Solution code:
K, X = map(int,input().split())
if 500K >= X:
  	print('Yes')
else:
    print('No')

Submission status: Runtime Error

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

if (500 * K） < X  :
  print('No') 
else:
  print('Yes')

Submission status: Runtime Error

Solution code:
import sys

VALUE = 500

num = int(sys.argv[1])
if 1 < num > 100:
    assert False, 'Invalid value'

threshold = int(sys.argv[2])
if 1 < threshold > 10**5:
    assert False, 'Invalid value'

result = 'Yes' if num * VALUE >= threshold else 'No'
print(result)

Submission status: Runtime Error

Solution code:
K = int(input())
X = int(input())
if 1<=K and K<=100 and 1<=X and X<=100000:
  if K*500>=X:
    print("Yes")
  else:
    print("No")

Submission status: Runtime Error

Solution code:
k,x=input().split()
if 500 * k >= x:
  print("Yes")
  return
else:
  print("No")

Submission status: Runtime Error

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

def main():
    coin = 500
    if x <= coin*K:
        print("Yes")

    else:
        print("No")

if __name__ == "__main__":
    main()

Submission status: Runtime Error

Solution code:
k, x = map(int, raw_input().split())
if k*500 >= x:
  print("yes")
else: 
  print("no")

Submission status: Runtime Error

Solution code:
k = input()
x = input()
cal = k*500

if cal<=x:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
K = int(input("Enter k: "))
X = int(input("Enter x: "))

if K * 500 >= X:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
N = input()
s = list(str(input()))

count = 0

for i in range(len(s)-2):
    if(s[i]+s[i+1]+s[i+2]=="ABC"):
        count += 1

print(count)

Submission status: Runtime Error

Solution code:
#include <iostream>

using namespace std;

int main()
{
    int a,b;
   cin >> a >> b;
   if(a * 500 >= b)cout <<"Yes" << endl;
   else cout << "No" << endl;
   return 0;
}

Submission status: Runtime Error

Solution code:
k, yen = [int(x) for x in input("Enter two value: ").split()]
print('Yes') if k*500>=yen else print('No)

Submission status: Runtime Error

Solution code:
k,x = int(input().split())

if 500 * k > x :
    print("Yes")
else :
    print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
S = input()
cnt = 0
ans = 0
for i in range(N):
    if S[i] == "A":
        if cnt == 0:
            cnt += 1
        else:
            cnt = 1
    if S[i] == "B":
        if cnt == 1:
            cnt += 1
        else:
            cnt = 0
    if S[i] == "C":
        if cnt == 2:
            ans += 1
            cnt = 0
        else:
            cnt = 0

print(ans)

Submission status: Runtime Error

Solution code:
import sys

k = input()
x = input()

if k*500<=x:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
a=input()
b=input()
sum=a*500
if b>sum:
  print("Yes")
else:
  print("NO")

Submission status: Runtime Error

Solution code:
K,X = map(int,input().split())
if 500*k >= X:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
K = int(input())
X = int(input())

if K*500>=X:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
k, yen = input().split()
print('Yes') if k*500>=yen else print('No)

Submission status: Runtime Error

Solution code:
k,x=map(int,input())
if k*500>=x:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
k = int(input())
x = int(input())

k = k * 500 

if k > x:
   	print("Yes")
else:
	print("No")

Submission status: Runtime Error

Solution code:
if (500 * K) > X:
  print("Yes")]
else:
  print("No")

Submission status: Runtime Error

Solution code:
k,x=input().split()
if 500 * k >= x:
  return "Yes"
else:
  return "No"

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()
s = s[:n]
count = s.count("ABC")
print(count)

Submission status: Runtime Error

Solution code:
k = input()
x = input()

if k*500<=x:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
import sys
a=int(sys.argv[1])
b=int(sys.argv[2])
sum=a*500
if b>sum:
	print("Yes")
else:
 	print("NO")

Submission status: Runtime Error

Solution code:
K = int(input("Enter K: "))
X = int(input("Enter X: "))
if K*500 >= X:
  print("yes")
else:
  print("no")

Submission status: Runtime Error

Solution code:
K, X = input().split()
K = int(K)
X = int(X)
print(("Yes" if K * 500 >= X else "No")

Submission status: Runtime Error

Solution code:
coin = int(input())
Max = int(input())
total = coin*500
if total >= Max:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

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

if (1<=a and a<=100) and (1<= b and b<=100000) :
	if a*500 >= b:
      print("Yes")
    else:
      print("No")
else:
	print("input value is too large")

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
s = a * 500
if s>= b:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
k = input()
x = input()

if k*500<=x:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
K,X = input().split()
res=int(K)*500
if(res=>int(X)):
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
num = int(input()).split()
if num[0] * 500 > num[1]: print("Yes")
else: print("No")

Submission status: Runtime Error

Solution code:
number, max = input().split()

if (int(number) * 500 >= int(max)) {
	print('yes'); 
}
print('no');

Submission status: Runtime Error

Solution code:
k=int(input())
x=int(input())

if 500*k >= x:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
n = 500
x, y = map(int, raw_input().split()) 
if x*n >= y: 
  print("Yes")
else: 
  print("No")

Submission status: Runtime Error

Solution code:
k = int(input("Enter k: "))
x = int(input("Enter x: "))
if (k * 500 > x):
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
K X = map(int,input().split())
if K*500 > X:
    print(Yes)
else:
    print(No)

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()

count = 0
for i in range(0, len(s)-2):
   if(s[i] == 'A' and s[i+1] == 'B' and s[i+2] == 'C'):
      count += 1
print(count)

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()

ans = 0

for i in range(n-2):
  if s[i:i+3] == "ABC":
    ans +=1

print(ans)

Submission status: Runtime Error

Solution code:
K,X = map(int, input().split())
v = 500 * K
if s >= X:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
import sys
a=int(sys.argv[1])
b=int(sys.argv[2])
sum=a*500
if b>sum:
  print("Yes")
else:
  print("NO")

Submission status: Runtime Error

Solution code:
K,X=map(int,input().split())
print ('Yes' if 500 * K =< X else 'No')

Submission status: Runtime Error

Solution code:
a, b = list(map(int, input().split())
if a * 500  < b :
  print('No')
else:
  print('Yes')

Submission status: Runtime Error

Solution code:
K, X = map(int,input().split())
a = 500 * K
if a > X:
  print("Yes")
 else:
  print("No")

Submission status: Runtime Error

Solution code:
if K*500>=X:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
K, X = [int(i) for i in input().split()]
print("Yes" if 500*K>=X else "No"

Submission status: Runtime Error

Solution code:
k=int(input())
x=int(input())

if 500*k <= x:
    print("yes")
else:
    print("no")

Submission status: Runtime Error

Solution code:
K = int(input())
X = int(input())

if K*500 > X:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
k = input()
yen = input()
if k*500>yen:
  print('Yes')
else:
  print('No)

Submission status: Runtime Error

Solution code:
import sys
import math
def i():return int(sys.stdin.readline().replace("\n",""))
def i2():return map(int,sys.stdin.readline().replace("\n","").split())
def s():return str(sys.stdin.readline().replace("\n",""))
def l():return list(sys.stdin.readline().replace("\n",""))
def intl():return [int(k) for k in sys.stdin.readline().replace("\n","").split()]
def lx():return list(map(lambda x:int(x)*-1,sys.stdin.readline().replace("\n","").split()))
def t():return tuple(map(int,sys.stdin.readline().replace("\n","").split()))

if __name__ == "__main__":pass

n = i()
s = s()
cnt = 0
l = s.split("ABC")
if len(l) == 1:
    print(0)
else:
    print(len(l)-1)

Submission status: Runtime Error

Solution code:
numOfK = input()
numOfN = input()

if numOfK * 500 > numOfN:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
k, x = mao(int, inout().split())
if 500*k < x: print("No")
else: print("Yes")

Submission status: Runtime Error

Solution code:
N = int(input())
K = int(input())
if N * 500 >= K:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
k = input()
x = input()

if k*500<x:
	print("Yes")
else:
	print("No")

Submission status: Runtime Error

Solution code:
K, X = map(int,input().split())
if 500 * K => X:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
k, x = map(int, input())
if 500 * k >= x:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
import sys
a=sys.argv[1]
b=sys.argv[2]
sum=a*500
if b>sum:
  print("Yes")
else:
  print("NO")

Submission status: Runtime Error

Solution code:
coin = int(input())
max = int(input())
total = coin*500
if total >= max:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
#include<bits/stdc++.h>

using namespace std;

int  main(){
    int k,x;
    scanf("%d%d",&k,&x);
    printf(500 * k >= x ? "Yes" : "No");
}

Submission status: Runtime Error

Solution code:
K,X=map(int.input().split())
if 500*K>=X:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
hoge = input()
c,s = hoge.sprit()

if x * 500 >= s:
  res = "Yes"
else:
  res = "No"
  
print(res)

Submission status: Runtime Error

Solution code:
N = input()
K = input()
if N * 500 >= K:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
yen = map(int, input().slice(" "))
if yen[0] * 500 >= yen[1]:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

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

int main() {

  int K, X;
  cin >> K >> X;
  if(500*K >= X){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }

}

Submission status: Runtime Error

Solution code:
A, B = input().split()
a = int(A)
b = int(B)
if(a*500>=b):
  print(Yes)
else:
  print(No)

Submission status: Runtime Error

Solution code:
k,x = input().split()
if(500 * (int)k >= (int)x):
  print("Yes")
else :
  print("No")

Submission status: Runtime Error

Solution code:
a,b =int(input())
if a * 500 >= b:
  print('Yes')
else:print('No')

Submission status: Runtime Error

Solution code:
//#include<bits/stdc++.h>
#include<iostream>

#define YES() printf("YES\n")
#define NO() printf("NO\n")
#define isYES(x) printf("%s\n", (x) ? "YES" : "NO")
#define Yes() printf("Yes\n")
#define No() printf("No\n")
#define isYes(x) printf("%s\n", (x) ? "Yes" : "No")

using namespace std;

int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);

    int a, b; cin >> a >> b;
    if((a * 500) >= b)
        Yes();
    else No();
    return 0;
}

Submission status: Runtime Error

Solution code:
K, X = map(int, intpu().split())
print("Yes" if K * 400 >= X else "No")

Submission status: Runtime Error

Solution code:
K, X = map(int, input().split())
if 500*K >= X:
  print("Yes")
elif:
  print("No")

Submission status: Runtime Error

Solution code:
k=int(input())
x=int(input())

if 500*k =< x:
    print("yes")
else:
    print("no")

Submission status: Runtime Error

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

if X > N * 500:
  return Yes
return No

Submission status: Runtime Error

Solution code:
k, x = int(input())
if k*500 >= x:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
def ghke(k, x):
    return k * 500 >= x

if __name__ == "__main__":
    import sys
    in_str = []
    for line in sys.stdin:
        in_str.append(int(line))
    roundone([int(_) for _ in in_str[0].split()])

Submission status: Runtime Error

Solution code:
K,X = map(input().split())
if K*500 > X-1:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
K,X=map(int,input(),split())
if 500*K>X:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
k,x = (int)(input().split())
if(500 * k >= x):
  print("Yes")
else :
  print("No")

Submission status: Runtime Error

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

if 500* A >= B:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
K,X = map(int,input().split)())
if K*500>=X:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
def fetch_one_line():
    return stdin.readline().rstrip()
  
def fetch_int_input():
    return [int(s) for s in fetch_one_line().split()]
  
K, X = fetch_one_line()

answer = ["Yes", "No"]
print(answer[int(500 * K >= X)])

Submission status: Runtime Error

Solution code:
n,m = maps(int,input().split())
if n*500>=m:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

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

if k*500 >= x:
    print('Yes')
else:
    print('No'

Submission status: Runtime Error

Solution code:
#include <iostream>
#include <vector>
#include <array>
#include <list>
#include <queue>
#include <set>
#include <map>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <string>
#include <sstream>
#include <algorithm>
#include <random>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <cmath>
#include <cassert>
#include <climits>
#include <bitset>
#include <functional>
#include <iomanip>

#define FOR_LT(i, beg, end) for (int i = beg; i < end; i++)
#define FOR_LE(i, beg, end) for (int i = beg; i <= end; i++)
#define FOR_DW(i, beg, end) for (int i = beg; end <= i; i--)

using namespace std;

int main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	cout << fixed << setprecision(20);

	int n, k; cin >> n >> k;
	if (n * 500 >= k) {
		cout << "Yes" << endl;
	}
	else {
		cout << "No" << endl;
	}

	return 0;
}