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

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int[] len = new int[3];

		for(int i = 0; i < 3; i++) {

			len[i] = sc.nextInt();
		}

		Arrays.sort(len);

		System.out.println((len[0] == 5 && len[1] == 5 && len[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 sc = new Scanner(System.in);

		int[] len = new int[3];

		for(int i = 0; i < 3; i++) {

			len[i] = sc.nextInt();
		}

		Arrays.sort(len);

		System.out.println((len[0] == 5 && len[1] == 5 && len[2] == 7) ? "YES" : "NO");
	}
} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int[] len = new int[3];

		for(int i = 0; i < 3; i++) {

			len[i] = sc.nextInt();
		}

		Arrays.sort(len);

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

		Scanner sc = new Scanner(System.in);

		int[] len = new int[3];

		for(int i = 0; i < 3; i++) {

			len[i] = sc.nextInt();
		}

		Arrays.sort(len);

		System.out.println((len[0] == 5 && len[1] == 5 && len[2] == 7) ? "YES" : "NO");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int[] len = new int[3]; len new int[3] 3 for(int i = 0; i < 3; i++) {

			len[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {

			len[i] = sc.nextInt();
		} {

			len[i] = sc.nextInt();
		} len[i] = sc.nextInt() len[i] len i sc.nextInt() sc.nextInt sc Arrays.sort(len) Arrays.sort Arrays len System.out.println((len[0] == 5 && len[1] == 5 && len[2] == 7) ? "YES" : "NO") System.out.println System.out System System.out (len[0] == 5 && len[1] == 5 && len[2] == 7) ? "YES" : "NO" (len[0] == 5 && len[1] == 5 && len[2] == 7) len[0] == 5 && len[1] == 5 && len[2] == 7 len[0] == 5 len[0] len 0 5 len[1] == 5 len[1] len 1 5 len[2] == 7 len[2] len 2 7 "YES" "NO" String[] args args public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int[] len = new int[3];

		for(int i = 0; i < 3; i++) {

			len[i] = sc.nextInt();
		}

		Arrays.sort(len);

		System.out.println((len[0] == 5 && len[1] == 5 && len[2] == 7) ? "YES" : "NO");
	}
} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int[] len = new int[3];

		for(int i = 0; i < 3; i++) {

			len[i] = sc.nextInt();
		}

		Arrays.sort(len);

		System.out.println((len[0] == 5 && len[1] == 5 && len[2] == 7) ? "YES" : "NO");
	}
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int[] len = new int[3];

		for(int i = 0; i < 3; i++) {

			len[i] = sc.nextInt();
		}

		Arrays.sort(len);

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