Chef has recently introduced a feature which allows you to open any user’s submitted code (not just your own), and ask an AI to explain that code in English. For example, you can go to https://www.codechef.com/viewsolution/70530506 and click on "Analyse This Code".

 

Problem

Chef has recently introduced a feature which allows you to open any user’s submitted code (not just your own), and ask an AI to explain that code in English. For example, you can go to https://www.codechef.com/viewsolution/70530506 and click on "Analyse This Code".

But there is a restriction that the feature works only on codes which are at most 1000 characters long. Given the number of characters, C, in a particular code, output whether the feature is available on this code or not.

Input Format

The only line of input will contain a single integer C, denoting the number of characters in the code.

Output Format

Output a single line which contains either "Yes", if the feature is available on this code, or "No", if not.

You may print each character of the string in either uppercase or lowercase (for example, the strings NOnONo, and no will all be treated as identical).

Constraints

  • 1 \leq C \leq 10000

Sample 1:

Input
Output
50
Yes

Explanation:

The code's length is only 50, and 50 \le 1000. So, the feature is available, and the answer is "Yes".

Sample 2:

Input
Output
1000
Yes

Explanation:

The code's length is 1000, and 1000 \le 1000. So, the feature is available, and the answer is "Yes".

Sample 3:

Input
Output
1001
No

Explanation:

The code's length is 1001, and 1001 \nleq 1000. So, the feature is not available, and the answer is "No".


                          #include <iostream>

                    using namespace std;


                int main() {

   // your code goes here

      int c;

    cin>>c;

    if(c<=1000){

        cout<<"YES"<<endl;

    }else{

        cout<<"No"<<endl;

    }

return 0;

}








     

Comments

Popular posts from this blog

Basic Data types | HackerRank Solution...

There are three people sitting in a room - Alice, Bob, and Charlie. They need to decide on the temperature to set on the air conditioner. Everyone has a demand each:

Using HTML CSS and JavaScript Create a Responsive Personal Portfolio Website Design