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 (Clang 10.0.0) (judge verdict: Time Limit Exceeded)

#include<stdio.h>

int main(void){

    int N;
    int i,j;
    int once,second;
    char temp;
    int count;
    int sum = 0;
    int a = 0;

    scanf("%d",&N);
    char c[N];

    for(i = 0;i < N;i++){
        scanf(" %c",&c[i]);
    }

    while(!(a == -1)){

        for(i = 0;i < N;i++){

            if(a == -1){
                break;
            }
            a = 0;

            if(c[i] == 'W'){

                once = i;

                for(j = i + 1;j < N;j++){

                    if(c[j] == 'R'){

                        second = j;
                        a++;
                    }
                    if(j == N - 1){

                        if(a == 1){
                            c[second] = 'W';
                            sum++;
                            a = -1;
                            break;

                        }else if(a > 1){
                            temp = c[second];
                            c[second] = c[once];
                            c[once] = temp;

                            sum++;
                            break;
                        }
                    }
                }
            }
        }
    }

    printf("%d\n",sum);

    return 0;
}