Assignment Due
Source: codechef
Difficulty: 135

Assignment Due
You are eagerly awaiting for the upcoming Technex event organized by IIT BHU Varanasi! However, you also have an assignment due. The deadline for the assignment is in$Y$days, and it takes you$X$days to complete it.
Determine whether you can finish the assignment on or before the deadline.
Input Format
The input consists of two space-separated integers$X$and$Y$, where:$X$denotes the number of days required to complete the assignment.$Y$denotes the number of days remaining until the deadline.
Output Format
Print
YES
if you can complete the assignment on or before the due date, otherwise print
NO
You may print each character of the string in uppercase or lowercase (for example, the strings
YES
,
yEs
,
yes
, and
yeS
will all be treated as identical).
Constraints$1 \leq X \leq 100$$1 \leq Y \leq 100$Sample 1:
Explanation:
You have$2$days to complete the assignment, and it will take you only$1$day to finish it.
Sample 2:
Input
Output
2 2
YES
Explanation:
You have$2$days to complete the assignment, and it will take you only$2$day to finish it.
Sample 3:
Input
Output
3 2
NO
Explanation:
You have$2$days to complete the assignment, but it will take you$3$days to finish, making it impossible for you to meet the deadline.

Sample Input:
1 2

Sample Output:
YES

C++ solution:
#include <iostream>
using namespace std;

int main() {
    // your code goes here
int x , y;
cin >> x>>y;
if(x<=y) cout<< "yes";
else cout << "No";
}

Go solution:
package main
import "fmt"

func main(){
   
    var x int;
    var y int;
    
    fmt.Scanf("%d", &x);
    fmt.Scanf("%d", &y);
    
    if (x <= y){
        fmt.Println("yes")
    }else{
        fmt.Println("no")
    }


    
}

Java solution:
import java.util.*;
import java.lang.*;
import java.io.*;

class Codechef
{
    public static void main (String[] args) throws java.lang.Exception
    {
        // your code goes here
     Scanner sc = new Scanner(System.in);
     int X=sc.nextInt();
     int Y=sc.nextInt();
     if(X<=Y)
     {
         System.out.println("YES");
         
     }
         else{
             System.out.println("NO");
         
         
     }
    }
}

JavaScript solution:
// your code goes here
let stdInput = "";
process.stdin.on("data", input => stdInput += input);

process.stdin.on("end", () => {
    const [x, y] = stdInput.trim().split(" ").map(Number); //array destructuring
    console.log(y >= x ? "Yes" : "No");
});

Python solution:
# cook your dish here
x, y = map(int, input().split())
if x<=y:
    print("YES")
else:
    print("NO")

Ruby solution:
# Read the input line safely
input = gets
exit unless input  # Handle case where no input is provided

# Split and convert to integers
x, y = input.strip.split.map(&:to_i)

# Compare and output the result
if x <= y
  puts "YES"
else
  puts "NO"
end