Problem:
Score : 100 points

Problem Statement

You will turn on the air conditioner if, and only if, the temperature of the room is 30 degrees Celsius or above.

The current temperature of the room is X degrees Celsius. Will you turn on the air conditioner?

Constraints

-40 \leq X \leq 40

X is an integer.

Input

Input is given from Standard Input in the following format:

X

Output

Print Yes if you will turn on the air conditioner; print No otherwise.

Sample Input 1

25

Sample Output 1

No

Sample Input 2

30

Sample Output 2

Yes

Solution in C++ (GCC 9.2.1) (judge verdict: Wrong Answer)

  
#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;

// int countWays(int n) 
// { 
// 	// table[i] will be storing the number of 
// 	// solutions for value i. We need n+1 rows 
// 	// as the table is consturcted in bottom up 
// 	// manner using the base case (n = 0) 
	

// 	return table[n]; 
// } 

void solve(){
	int p; cin>>p;
	
	if(p>=30){
		cout<<"YES"<<"\n";
	}else{
		cout<<"NO"<<"\n";
	}
}

int main(){
	
	 int t=1; //cin>>t;
	
	while(t--){
		solve();
	}
	
	return 0;
		
}