Problem:
Score : 100 points

Problem Statement

You are given three integers A, B and C.
Determine whether C is not less than A and not greater than B.

Constraints

-100≤A,B,C≤100

A, B and C are all integers.

Input

Input is given from Standard Input in the following format:

A B C

Output

If the condition is satisfied, print Yes; otherwise, print No.

Sample Input 1

1 3 2

Sample Output 1

Yes

C=2 is not less than A=1 and not greater than B=3, and thus the output should be Yes.

Sample Input 2

6 5 4

Sample Output 2

No

C=4 is less than A=6, and thus the output should be No.

Sample Input 3

2 2 2

Sample Output 3

Yes

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

   /* package whatever; // don't place package name! */
     
    import java.util.*;
    import java.lang.*;
    import java.io.*;
     
    /* Name of the class has to be "Main" only if the class is public. */
    class Main
    {
    	public static void main (String[] args)
    	{
    		Scanner sc = new Scanner(System.in);
    		while(sc.hasNext()) {
    			int n = sc.nextInt();
	    		long k = sc.nextLong();
	    		
	    		ArrayList<Long> keys = new ArrayList<Long>();
	    		HashMap<Long, Long> map = new HashMap<Long, Long>();
	    		
	    		for(int i = 0; i < n; i++) {
	    			long a = sc.nextLong();
	    			long b = sc.nextLong();
	    			if(map.containsKey(i)) {
	    				map.put(a, map.get(a) + b);
	    			} else {
	    				map.put(a, b);
	    				keys.add(a);
	    			}
	    		}
	    		Collections.sort(keys);
	    		long sum = 0;
	    		for(long key : keys) {
	    		    sum += map.get(key);
	    			if(sum > k) {
	    				System.out.println(key);
	    				break;
	    			}
	    		}		
    		}
    		
    	}
    }