Problem:
Score : 100 points

Problem Statement

X and A are integers between 0 and 9 (inclusive).

If X is less than A, print 0; if X is not less than A, print 10.

Constraints

0 \leq X, A \leq 9

All values in input are integers.

Input

Input is given from Standard Input in the following format:

X A

Output

If X is less than A, print 0; if X is not less than A, print 10.

Sample Input 1

3 5

Sample Output 1

0

3 is less than 5, so we should print 0.

Sample Input 2

7 5

Sample Output 2

10

7 is not less than 5, so we should print 10.

Sample Input 3

6 6

Sample Output 3

10

6 is not less than 6, so we should print 10.

Solution in Java8 (OpenJDK 1.8.0) (judge verdict: Runtime Error)

import java.io.*;
import java.util.*;
import java.math.*;
public class Main{

     public static void main(String []args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
       
        String line1 = br.readLine();
        String[] strs = line1.trim().split("\\s+");
        int n = Integer.parseInt(strs[0]);
        int x = Integer.parseInt(strs[1]);
        String li = br.readLine();
        String[] st = li.trim().split("\\s+");
       int[] sum = new int[n+1];
       sum[0] = 0;
       for(int i=1;i<n+1;i++) { sum[i] = sum[i-1] + Integer.parseInt(st[i-1]); }
       int ans = n+1;
       for(int i=0;i<=n;i++){ if(sum[i]>x) { ans=i; break;} }
       
       System.out.println(ans);
       
}  

}