import java.util.Scanner;
 
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int[] nums = new int[11];
		for (int i = 0; i < 3; i++) {
			int num = sc.nextInt();
			nums[num]++;
		}
		
		if (nums[5] == 2 && nums[7] == 1) System.out.println("YES");
		else System.out.println("NO");
		
		sc.close();
	}
}
 import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int[] nums = new int[11];
		for (int i = 0; i < 3; i++) {
			int num = sc.nextInt();
			nums[num]++;
		}
		
		if (nums[5] == 2 && nums[7] == 1) System.out.println("YES");
		else System.out.println("NO");
		
		sc.close();
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int[] nums = new int[11];
		for (int i = 0; i < 3; i++) {
			int num = sc.nextInt();
			nums[num]++;
		}
		
		if (nums[5] == 2 && nums[7] == 1) System.out.println("YES");
		else System.out.println("NO");
		
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		
		int[] nums = new int[11];
		for (int i = 0; i < 3; i++) {
			int num = sc.nextInt();
			nums[num]++;
		}
		
		if (nums[5] == 2 && nums[7] == 1) System.out.println("YES");
		else System.out.println("NO");
		
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int[] nums = new int[11]; nums new int[11] 11 for (int i = 0; i < 3; i++) {
			int num = sc.nextInt();
			nums[num]++;
		} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
			int num = sc.nextInt();
			nums[num]++;
		} {
			int num = sc.nextInt();
			nums[num]++;
		} int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc nums[num]++ nums[num] nums num if (nums[5] == 2 && nums[7] == 1) System.out.println("YES");
		else System.out.println("NO"); nums[5] == 2 && nums[7] == 1 nums[5] == 2 nums[5] nums 5 2 nums[7] == 1 nums[7] nums 7 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" sc.close() sc.close sc String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int[] nums = new int[11];
		for (int i = 0; i < 3; i++) {
			int num = sc.nextInt();
			nums[num]++;
		}
		
		if (nums[5] == 2 && nums[7] == 1) System.out.println("YES");
		else System.out.println("NO");
		
		sc.close();
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int[] nums = new int[11];
		for (int i = 0; i < 3; i++) {
			int num = sc.nextInt();
			nums[num]++;
		}
		
		if (nums[5] == 2 && nums[7] == 1) System.out.println("YES");
		else System.out.println("NO");
		
		sc.close();
	}
} Main
import java.util.Scanner;
 
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int[] nums = new int[11];
		for (int i = 0; i < 3; i++) {
			int num = sc.nextInt();
			nums[num]++;
		}
		
		if (nums[5] == 2 && nums[7] == 1) System.out.println("YES");
		else System.out.println("NO");
		
		sc.close();
	}
}

