Difficulty:172
Expand

Learn the building blocks of programming languages
Take our free programming courses and learn to solve problems like these.
Start Learning

Bitcoin Market

Chef has recently started investing in Bitcoin.
He assigns a market risk level RR (from 11 to 1010), where:

  • 11 means the market is very safe,
  • 1010 means the market is very risky.

Chef will buy Bitcoin only if the risk level is 44 or less.

Given the current risk level RR, determine whether Chef should buy Bitcoin.

Print "YES" if Chef should buy, otherwise print "NO".

Input Format

  • The first and only line of input contains a single integer RR — the current market risk level.

Output Format

Print YES if Chef should buy Bitcoin, 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

  • 1R101 \leq R \leq 10

Sample 1:

Input
Output
2
YES

Explanation:

The current market risk is 22.
Since 22 is not larger than 44, the risk is small enough, and Chef will buy Bitcoin.

Sample 2:

Input
Output
4
YES

Explanation:

The current market risk is 44.
Since 44 is not larger than 44, the risk is small enough, and Chef will buy Bitcoin.

Sample 3:

Input
Output
5
NO

Explanation:

The current market risk is 55.
Since 55 is larger than 44, the risk is too much, and Chef will not buy Bitcoin.


More Info
Time limit1 secs
Memory limit1.5 GB
Source Limit50000 Bytes

Author(s)
Tester(s)
Editorialist(s)
#include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
}
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Visualize Code