
import java.util.Scanner;

public class Main {


    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int a, b, c;
        a = in.nextInt();
        b = in.nextInt();
        c = in.nextInt();
        int countFive = 0;
        int countSeven = 0;

        if (a == 5) {
            countFive++;
        }
        else if( a == 7){
            countSeven++;
        }
        if (b == 5) {
            countFive++;
        }
        else if (b == 7) {
            countSeven++;
        }
        if(c == 5 ) {
            countFive++;
        }
        else if(c == 7 ){
            countSeven++;
        }
        if( countFive == 2 && countSeven == 1){
            System.out.println("YES");
        }else{
            System.out.println("NO");
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {


    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int a, b, c;
        a = in.nextInt();
        b = in.nextInt();
        c = in.nextInt();
        int countFive = 0;
        int countSeven = 0;

        if (a == 5) {
            countFive++;
        }
        else if( a == 7){
            countSeven++;
        }
        if (b == 5) {
            countFive++;
        }
        else if (b == 7) {
            countSeven++;
        }
        if(c == 5 ) {
            countFive++;
        }
        else if(c == 7 ){
            countSeven++;
        }
        if( countFive == 2 && countSeven == 1){
            System.out.println("YES");
        }else{
            System.out.println("NO");
        }
    }
} Main public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int a, b, c;
        a = in.nextInt();
        b = in.nextInt();
        c = in.nextInt();
        int countFive = 0;
        int countSeven = 0;

        if (a == 5) {
            countFive++;
        }
        else if( a == 7){
            countSeven++;
        }
        if (b == 5) {
            countFive++;
        }
        else if (b == 7) {
            countSeven++;
        }
        if(c == 5 ) {
            countFive++;
        }
        else if(c == 7 ){
            countSeven++;
        }
        if( countFive == 2 && countSeven == 1){
            System.out.println("YES");
        }else{
            System.out.println("NO");
        }
    } main {
        Scanner in = new Scanner(System.in);
        int a, b, c;
        a = in.nextInt();
        b = in.nextInt();
        c = in.nextInt();
        int countFive = 0;
        int countSeven = 0;

        if (a == 5) {
            countFive++;
        }
        else if( a == 7){
            countSeven++;
        }
        if (b == 5) {
            countFive++;
        }
        else if (b == 7) {
            countSeven++;
        }
        if(c == 5 ) {
            countFive++;
        }
        else if(c == 7 ){
            countSeven++;
        }
        if( countFive == 2 && countSeven == 1){
            System.out.println("YES");
        }else{
            System.out.println("NO");
        }
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) int a a b b c; c a = in.nextInt() a in.nextInt() in.nextInt in b = in.nextInt() b in.nextInt() in.nextInt in c = in.nextInt() c in.nextInt() in.nextInt in int countFive = 0; countFive 0 int countSeven = 0; countSeven 0 if (a == 5) {
            countFive++;
        }
        else if( a == 7){
            countSeven++;
        } a == 5 a 5 {
            countFive++;
        } countFive++ countFive if( a == 7){
            countSeven++;
        } a == 7 a 7 {
            countSeven++;
        } countSeven++ countSeven if (b == 5) {
            countFive++;
        }
        else if (b == 7) {
            countSeven++;
        } b == 5 b 5 {
            countFive++;
        } countFive++ countFive if (b == 7) {
            countSeven++;
        } b == 7 b 7 {
            countSeven++;
        } countSeven++ countSeven if(c == 5 ) {
            countFive++;
        }
        else if(c == 7 ){
            countSeven++;
        } c == 5 c 5 {
            countFive++;
        } countFive++ countFive if(c == 7 ){
            countSeven++;
        } c == 7 c 7 {
            countSeven++;
        } countSeven++ countSeven if( countFive == 2 && countSeven == 1){
            System.out.println("YES");
        }else{
            System.out.println("NO");
        } countFive == 2 && countSeven == 1 countFive == 2 countFive 2 countSeven == 1 countSeven 1 {
            System.out.println("YES");
        } System.out.println("YES") System.out.println System.out System System.out "YES" {
            System.out.println("NO");
        } System.out.println("NO") System.out.println System.out System System.out "NO" String[] args args public class Main {


    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int a, b, c;
        a = in.nextInt();
        b = in.nextInt();
        c = in.nextInt();
        int countFive = 0;
        int countSeven = 0;

        if (a == 5) {
            countFive++;
        }
        else if( a == 7){
            countSeven++;
        }
        if (b == 5) {
            countFive++;
        }
        else if (b == 7) {
            countSeven++;
        }
        if(c == 5 ) {
            countFive++;
        }
        else if(c == 7 ){
            countSeven++;
        }
        if( countFive == 2 && countSeven == 1){
            System.out.println("YES");
        }else{
            System.out.println("NO");
        }
    }
} public class Main {


    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int a, b, c;
        a = in.nextInt();
        b = in.nextInt();
        c = in.nextInt();
        int countFive = 0;
        int countSeven = 0;

        if (a == 5) {
            countFive++;
        }
        else if( a == 7){
            countSeven++;
        }
        if (b == 5) {
            countFive++;
        }
        else if (b == 7) {
            countSeven++;
        }
        if(c == 5 ) {
            countFive++;
        }
        else if(c == 7 ){
            countSeven++;
        }
        if( countFive == 2 && countSeven == 1){
            System.out.println("YES");
        }else{
            System.out.println("NO");
        }
    }
} Main

import java.util.Scanner;

public class Main {


    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int a, b, c;
        a = in.nextInt();
        b = in.nextInt();
        c = in.nextInt();
        int countFive = 0;
        int countSeven = 0;

        if (a == 5) {
            countFive++;
        }
        else if( a == 7){
            countSeven++;
        }
        if (b == 5) {
            countFive++;
        }
        else if (b == 7) {
            countSeven++;
        }
        if(c == 5 ) {
            countFive++;
        }
        else if(c == 7 ){
            countSeven++;
        }
        if( countFive == 2 && countSeven == 1){
            System.out.println("YES");
        }else{
            System.out.println("NO");
        }
    }
}