Problem:
Score : 100 points

Problem Statement

Iroha loves Haiku. Haiku is a short form of Japanese poetry. A Haiku consists of three phrases with 5, 7 and 5 syllables, in this order.

To create a Haiku, Iroha has come up with three different phrases. These phrases have A, B and C syllables, respectively. Determine whether she can construct a Haiku by using each of the phrases once, in some order.

Constraints

1≦A,B,C≦10

Input

The input is given from Standard Input in the following format:

A B C

Output

If it is possible to construct a Haiku by using each of the phrases once, print YES (case-sensitive). Otherwise, print NO.

Sample Input 1

5 5 7

Sample Output 1

YES

Using three phrases of length 5, 5 and 7, it is possible to construct a Haiku.

Sample Input 2

7 7 5

Sample Output 2

NO

Solution in C (Clang 3.8.0) (judge verdict: Accepted)

// Twitter@KonoLv1 2020年よりエンジニアデビュー予定

#include <stdio.h>
int main(void){
    
    int text_size;  //  文節の長さ
    int text5 = 0;  //   文節が5文字のカウント
    int text7 = 0;  //  文節が7文字のカウント
    int input_date = 3; //  入力される文節数
    
    for (int i = 0; i < input_date; i++){
        scanf("%d",&text_size);
        if (text_size == 5){
            text5++;
        }else if (text_size == 7){
            text7++;
        }
    }
    if (text5 == 2 && text7 == 1){
        printf("YES");
    }else{
        printf("NO");
    }
}