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

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		
		int[] array = new int[] {stdIn.nextInt(),stdIn.nextInt(),stdIn.nextInt()};
		
		Arrays.parallelSort(array);    // 5 5 7 になっていれば正解
		
		System.out.println(Arrays.equals(array,new int[] {5,5,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 stdIn = new Scanner(System.in);
		
		int[] array = new int[] {stdIn.nextInt(),stdIn.nextInt(),stdIn.nextInt()};
		
		Arrays.parallelSort(array);    // 5 5 7 になっていれば正解
		
		System.out.println(Arrays.equals(array,new int[] {5,5,7}) ? "YES":"NO");
		
		
	}

} Main public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		
		int[] array = new int[] {stdIn.nextInt(),stdIn.nextInt(),stdIn.nextInt()};
		
		Arrays.parallelSort(array);    // 5 5 7 になっていれば正解
		
		System.out.println(Arrays.equals(array,new int[] {5,5,7}) ? "YES":"NO");
		
		
	} main {
		Scanner stdIn = new Scanner(System.in);
		
		int[] array = new int[] {stdIn.nextInt(),stdIn.nextInt(),stdIn.nextInt()};
		
		Arrays.parallelSort(array);    // 5 5 7 になっていれば正解
		
		System.out.println(Arrays.equals(array,new int[] {5,5,7}) ? "YES":"NO");
		
		
	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int[] array = new int[] {stdIn.nextInt(),stdIn.nextInt(),stdIn.nextInt()}; array new int[] {stdIn.nextInt(),stdIn.nextInt(),stdIn.nextInt()} Arrays.parallelSort(array) Arrays.parallelSort Arrays array System.out.println(Arrays.equals(array,new int[] {5,5,7}) ? "YES":"NO") System.out.println System.out System System.out Arrays.equals(array,new int[] {5,5,7}) ? "YES":"NO" Arrays.equals(array,new int[] {5,5,7}) Arrays.equals Arrays array new int[] {5,5,7} "YES" "NO" String[] args args public class Main {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		
		int[] array = new int[] {stdIn.nextInt(),stdIn.nextInt(),stdIn.nextInt()};
		
		Arrays.parallelSort(array);    // 5 5 7 になっていれば正解
		
		System.out.println(Arrays.equals(array,new int[] {5,5,7}) ? "YES":"NO");
		
		
	}

} public class Main {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		
		int[] array = new int[] {stdIn.nextInt(),stdIn.nextInt(),stdIn.nextInt()};
		
		Arrays.parallelSort(array);    // 5 5 7 になっていれば正解
		
		System.out.println(Arrays.equals(array,new int[] {5,5,7}) ? "YES":"NO");
		
		
	}

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

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		
		int[] array = new int[] {stdIn.nextInt(),stdIn.nextInt(),stdIn.nextInt()};
		
		Arrays.parallelSort(array);    // 5 5 7 になっていれば正解
		
		System.out.println(Arrays.equals(array,new int[] {5,5,7}) ? "YES":"NO");
		
		
	}

}
