import java.util.*;
public class Main {
	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
		// スペース区切りの整数の入力
      int Count5=0;
      int Count7=0;

             //配列の宣言
       int array[] = new int[5];
      for(int i=0;i<3;i++){
        array[i]=sc.nextInt();
        if (array[i]==5){
          Count5++;
        }else if (array[i]==7){
          Count7++;
        }
      }

		// 出力
      if (Count5==2&&Count7==1){
		System.out.println("YES");
      }else{
		System.out.println("NO");
      }
   }
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
		// スペース区切りの整数の入力
      int Count5=0;
      int Count7=0;

             //配列の宣言
       int array[] = new int[5];
      for(int i=0;i<3;i++){
        array[i]=sc.nextInt();
        if (array[i]==5){
          Count5++;
        }else if (array[i]==7){
          Count7++;
        }
      }

		// 出力
      if (Count5==2&&Count7==1){
		System.out.println("YES");
      }else{
		System.out.println("NO");
      }
   }
} Main public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
		// スペース区切りの整数の入力
      int Count5=0;
      int Count7=0;

             //配列の宣言
       int array[] = new int[5];
      for(int i=0;i<3;i++){
        array[i]=sc.nextInt();
        if (array[i]==5){
          Count5++;
        }else if (array[i]==7){
          Count7++;
        }
      }

		// 出力
      if (Count5==2&&Count7==1){
		System.out.println("YES");
      }else{
		System.out.println("NO");
      }
   } main {
      Scanner sc = new Scanner(System.in);
		// スペース区切りの整数の入力
      int Count5=0;
      int Count7=0;

             //配列の宣言
       int array[] = new int[5];
      for(int i=0;i<3;i++){
        array[i]=sc.nextInt();
        if (array[i]==5){
          Count5++;
        }else if (array[i]==7){
          Count7++;
        }
      }

		// 出力
      if (Count5==2&&Count7==1){
		System.out.println("YES");
      }else{
		System.out.println("NO");
      }
   } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int Count5=0; Count5 0 int Count7=0; Count7 0 int array[] = new int[5]; array new int[5] 5 for(int i=0;i<3;i++){
        array[i]=sc.nextInt();
        if (array[i]==5){
          Count5++;
        }else if (array[i]==7){
          Count7++;
        }
      } int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
        array[i]=sc.nextInt();
        if (array[i]==5){
          Count5++;
        }else if (array[i]==7){
          Count7++;
        }
      } {
        array[i]=sc.nextInt();
        if (array[i]==5){
          Count5++;
        }else if (array[i]==7){
          Count7++;
        }
      } array[i]=sc.nextInt() array[i] array i sc.nextInt() sc.nextInt sc if (array[i]==5){
          Count5++;
        }else if (array[i]==7){
          Count7++;
        } array[i]==5 array[i] array i 5 {
          Count5++;
        } Count5++ Count5 if (array[i]==7){
          Count7++;
        } array[i]==7 array[i] array i 7 {
          Count7++;
        } Count7++ Count7 if (Count5==2&&Count7==1){
		System.out.println("YES");
      }else{
		System.out.println("NO");
      } Count5==2&&Count7==1 Count5==2 Count5 2 Count7==1 Count7 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 sc = new Scanner(System.in);
		// スペース区切りの整数の入力
      int Count5=0;
      int Count7=0;

             //配列の宣言
       int array[] = new int[5];
      for(int i=0;i<3;i++){
        array[i]=sc.nextInt();
        if (array[i]==5){
          Count5++;
        }else if (array[i]==7){
          Count7++;
        }
      }

		// 出力
      if (Count5==2&&Count7==1){
		System.out.println("YES");
      }else{
		System.out.println("NO");
      }
   }
} public class Main {
	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
		// スペース区切りの整数の入力
      int Count5=0;
      int Count7=0;

             //配列の宣言
       int array[] = new int[5];
      for(int i=0;i<3;i++){
        array[i]=sc.nextInt();
        if (array[i]==5){
          Count5++;
        }else if (array[i]==7){
          Count7++;
        }
      }

		// 出力
      if (Count5==2&&Count7==1){
		System.out.println("YES");
      }else{
		System.out.println("NO");
      }
   }
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
		// スペース区切りの整数の入力
      int Count5=0;
      int Count7=0;

             //配列の宣言
       int array[] = new int[5];
      for(int i=0;i<3;i++){
        array[i]=sc.nextInt();
        if (array[i]==5){
          Count5++;
        }else if (array[i]==7){
          Count7++;
        }
      }

		// 出力
      if (Count5==2&&Count7==1){
		System.out.println("YES");
      }else{
		System.out.println("NO");
      }
   }
}