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: Wrong Answer)

#include<stdio.h>
#include<string.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]);
    }

    count = N;
    while(count--){
        for(i = 0;i < N;i++){

            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++;
                            break;

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

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

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

    return 0;
}