import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
      int sum = 0;
      
      if(a == 5 || a == 7) {
      	sum += a;
      }
      if(b == 5 || b == 7) {
      	sum += b;
      }
      if(c == 5 || c == 7) {
      	sum += c;
      }
      
      if(sum == 17) {
      	System.out.print("YES");
      } else {
      	System.out.print("NO");
      }
      scan.close();
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
      int sum = 0;
      
      if(a == 5 || a == 7) {
      	sum += a;
      }
      if(b == 5 || b == 7) {
      	sum += b;
      }
      if(c == 5 || c == 7) {
      	sum += c;
      }
      
      if(sum == 17) {
      	System.out.print("YES");
      } else {
      	System.out.print("NO");
      }
      scan.close();
	}

} Main public static void main(String[] args) {
		
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
      int sum = 0;
      
      if(a == 5 || a == 7) {
      	sum += a;
      }
      if(b == 5 || b == 7) {
      	sum += b;
      }
      if(c == 5 || c == 7) {
      	sum += c;
      }
      
      if(sum == 17) {
      	System.out.print("YES");
      } else {
      	System.out.print("NO");
      }
      scan.close();
	} main {
		
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
      int sum = 0;
      
      if(a == 5 || a == 7) {
      	sum += a;
      }
      if(b == 5 || b == 7) {
      	sum += b;
      }
      if(c == 5 || c == 7) {
      	sum += c;
      }
      
      if(sum == 17) {
      	System.out.print("YES");
      } else {
      	System.out.print("NO");
      }
      scan.close();
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int c = scan.nextInt(); c scan.nextInt() scan.nextInt scan int sum = 0; sum 0 if(a == 5 || a == 7) {
      	sum += a;
      } a == 5 || a == 7 a == 5 a 5 a == 7 a 7 {
      	sum += a;
      } sum += a sum a if(b == 5 || b == 7) {
      	sum += b;
      } b == 5 || b == 7 b == 5 b 5 b == 7 b 7 {
      	sum += b;
      } sum += b sum b if(c == 5 || c == 7) {
      	sum += c;
      } c == 5 || c == 7 c == 5 c 5 c == 7 c 7 {
      	sum += c;
      } sum += c sum c if(sum == 17) {
      	System.out.print("YES");
      } else {
      	System.out.print("NO");
      } sum == 17 sum 17 {
      	System.out.print("YES");
      } System.out.print("YES") System.out.print System.out System System.out "YES" {
      	System.out.print("NO");
      } System.out.print("NO") System.out.print System.out System System.out "NO" scan.close() scan.close scan String[] args args public class Main {

	public static void main(String[] args) {
		
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
      int sum = 0;
      
      if(a == 5 || a == 7) {
      	sum += a;
      }
      if(b == 5 || b == 7) {
      	sum += b;
      }
      if(c == 5 || c == 7) {
      	sum += c;
      }
      
      if(sum == 17) {
      	System.out.print("YES");
      } else {
      	System.out.print("NO");
      }
      scan.close();
	}

} public class Main {

	public static void main(String[] args) {
		
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
      int sum = 0;
      
      if(a == 5 || a == 7) {
      	sum += a;
      }
      if(b == 5 || b == 7) {
      	sum += b;
      }
      if(c == 5 || c == 7) {
      	sum += c;
      }
      
      if(sum == 17) {
      	System.out.print("YES");
      } else {
      	System.out.print("NO");
      }
      scan.close();
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
      int sum = 0;
      
      if(a == 5 || a == 7) {
      	sum += a;
      }
      if(b == 5 || b == 7) {
      	sum += b;
      }
      if(c == 5 || c == 7) {
      	sum += c;
      }
      
      if(sum == 17) {
      	System.out.print("YES");
      } else {
      	System.out.print("NO");
      }
      scan.close();
	}

}
