import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main (String[] args) {

		Scanner scan = new Scanner(System.in);
		int n=3;
		int[] array = new int[n];
		for(int i=0; i<n; i++) {
			array[i] = scan.nextInt();
		}
		Arrays.sort(array);

		System.out.println( ( (array[0]==5 && array[1]==5 )&& array[2]==7 )? "YES":"NO");

	}

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

	public static void main (String[] args) {

		Scanner scan = new Scanner(System.in);
		int n=3;
		int[] array = new int[n];
		for(int i=0; i<n; i++) {
			array[i] = scan.nextInt();
		}
		Arrays.sort(array);

		System.out.println( ( (array[0]==5 && array[1]==5 )&& array[2]==7 )? "YES":"NO");

	}

} Main public static void main (String[] args) {

		Scanner scan = new Scanner(System.in);
		int n=3;
		int[] array = new int[n];
		for(int i=0; i<n; i++) {
			array[i] = scan.nextInt();
		}
		Arrays.sort(array);

		System.out.println( ( (array[0]==5 && array[1]==5 )&& array[2]==7 )? "YES":"NO");

	} main {

		Scanner scan = new Scanner(System.in);
		int n=3;
		int[] array = new int[n];
		for(int i=0; i<n; i++) {
			array[i] = scan.nextInt();
		}
		Arrays.sort(array);

		System.out.println( ( (array[0]==5 && array[1]==5 )&& array[2]==7 )? "YES":"NO");

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n=3; n 3 int[] array = new int[n]; array new int[n] n for(int i=0; i<n; i++) {
			array[i] = scan.nextInt();
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			array[i] = scan.nextInt();
		} {
			array[i] = scan.nextInt();
		} array[i] = scan.nextInt() array[i] array i scan.nextInt() scan.nextInt scan Arrays.sort(array) Arrays.sort Arrays array System.out.println( ( (array[0]==5 && array[1]==5 )&& array[2]==7 )? "YES":"NO") System.out.println System.out System System.out ( (array[0]==5 && array[1]==5 )&& array[2]==7 )? "YES":"NO" ( (array[0]==5 && array[1]==5 )&& array[2]==7 ) (array[0]==5 && array[1]==5 ) array[0]==5 array[0] array 0 5 array[1]==5 array[1] array 1 5 array[2]==7 array[2] array 2 7 "YES" "NO" String[] args args public class Main {

	public static void main (String[] args) {

		Scanner scan = new Scanner(System.in);
		int n=3;
		int[] array = new int[n];
		for(int i=0; i<n; i++) {
			array[i] = scan.nextInt();
		}
		Arrays.sort(array);

		System.out.println( ( (array[0]==5 && array[1]==5 )&& array[2]==7 )? "YES":"NO");

	}

} public class Main {

	public static void main (String[] args) {

		Scanner scan = new Scanner(System.in);
		int n=3;
		int[] array = new int[n];
		for(int i=0; i<n; i++) {
			array[i] = scan.nextInt();
		}
		Arrays.sort(array);

		System.out.println( ( (array[0]==5 && array[1]==5 )&& array[2]==7 )? "YES":"NO");

	}

} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main (String[] args) {

		Scanner scan = new Scanner(System.in);
		int n=3;
		int[] array = new int[n];
		for(int i=0; i<n; i++) {
			array[i] = scan.nextInt();
		}
		Arrays.sort(array);

		System.out.println( ( (array[0]==5 && array[1]==5 )&& array[2]==7 )? "YES":"NO");

	}

}
