import java.util.Scanner;
class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		int nums[] = new int[3];
		for (int i = 0; i < 3; ++i) {
			nums[i] = sc.nextInt();
		}
		int a = 0, b = 0;
		for (int i= 0; i < 3; ++i) {
			if (nums[i] == 5) a++;
			if (nums[i] == 7) b++;
		}
		if (a == 2 && b == 1)
			System.out.println("YES");
		else
			System.out.println("NO");
	}
} import java.util.Scanner; Scanner java.util class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		int nums[] = new int[3];
		for (int i = 0; i < 3; ++i) {
			nums[i] = sc.nextInt();
		}
		int a = 0, b = 0;
		for (int i= 0; i < 3; ++i) {
			if (nums[i] == 5) a++;
			if (nums[i] == 7) b++;
		}
		if (a == 2 && b == 1)
			System.out.println("YES");
		else
			System.out.println("NO");
	}
} Main static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) public static void main(String[] args) {
		int nums[] = new int[3];
		for (int i = 0; i < 3; ++i) {
			nums[i] = sc.nextInt();
		}
		int a = 0, b = 0;
		for (int i= 0; i < 3; ++i) {
			if (nums[i] == 5) a++;
			if (nums[i] == 7) b++;
		}
		if (a == 2 && b == 1)
			System.out.println("YES");
		else
			System.out.println("NO");
	} main {
		int nums[] = new int[3];
		for (int i = 0; i < 3; ++i) {
			nums[i] = sc.nextInt();
		}
		int a = 0, b = 0;
		for (int i= 0; i < 3; ++i) {
			if (nums[i] == 5) a++;
			if (nums[i] == 7) b++;
		}
		if (a == 2 && b == 1)
			System.out.println("YES");
		else
			System.out.println("NO");
	} int nums[] = new int[3]; nums new int[3] 3 for (int i = 0; i < 3; ++i) {
			nums[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i < 3 i 3 ++i ++i i {
			nums[i] = sc.nextInt();
		} {
			nums[i] = sc.nextInt();
		} nums[i] = sc.nextInt() nums[i] nums i sc.nextInt() sc.nextInt sc int a = 0 a 0 b = 0; b 0 for (int i= 0; i < 3; ++i) {
			if (nums[i] == 5) a++;
			if (nums[i] == 7) b++;
		} int i= 0; int i= 0; i 0 i < 3 i 3 ++i ++i i {
			if (nums[i] == 5) a++;
			if (nums[i] == 7) b++;
		} {
			if (nums[i] == 5) a++;
			if (nums[i] == 7) b++;
		} if (nums[i] == 5) a++; nums[i] == 5 nums[i] nums i 5 a++ a if (nums[i] == 7) b++; nums[i] == 7 nums[i] nums i 7 b++ b if (a == 2 && b == 1)
			System.out.println("YES");
		else
			System.out.println("NO"); a == 2 && b == 1 a == 2 a 2 b == 1 b 1 System.out.println("YES") System.out.println System.out System System.out "YES" System.out.println("NO") System.out.println System.out System System.out "NO" String[] args args
import java.util.Scanner;
class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		int nums[] = new int[3];
		for (int i = 0; i < 3; ++i) {
			nums[i] = sc.nextInt();
		}
		int a = 0, b = 0;
		for (int i= 0; i < 3; ++i) {
			if (nums[i] == 5) a++;
			if (nums[i] == 7) b++;
		}
		if (a == 2 && b == 1)
			System.out.println("YES");
		else
			System.out.println("NO");
	}
}