import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
        int nums[] = new int[3];
      	boolean irj = true;
      
      	for(int i = 0;i < 3;i++) nums[i] = sc.nextInt();
        Arrays.sort(nums); 
      
      	if(nums[0] != 5) irj = false;
      	if(nums[1] != 5) irj = false;
      	if(nums[2] != 7) irj = false; 
          
        if(irj) System.out.print("YES");
        else System.out.println("NO");
      
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
        int nums[] = new int[3];
      	boolean irj = true;
      
      	for(int i = 0;i < 3;i++) nums[i] = sc.nextInt();
        Arrays.sort(nums); 
      
      	if(nums[0] != 5) irj = false;
      	if(nums[1] != 5) irj = false;
      	if(nums[2] != 7) irj = false; 
          
        if(irj) System.out.print("YES");
        else System.out.println("NO");
      
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
        int nums[] = new int[3];
      	boolean irj = true;
      
      	for(int i = 0;i < 3;i++) nums[i] = sc.nextInt();
        Arrays.sort(nums); 
      
      	if(nums[0] != 5) irj = false;
      	if(nums[1] != 5) irj = false;
      	if(nums[2] != 7) irj = false; 
          
        if(irj) System.out.print("YES");
        else System.out.println("NO");
      
	} main {
		Scanner sc = new Scanner(System.in);
		
        int nums[] = new int[3];
      	boolean irj = true;
      
      	for(int i = 0;i < 3;i++) nums[i] = sc.nextInt();
        Arrays.sort(nums); 
      
      	if(nums[0] != 5) irj = false;
      	if(nums[1] != 5) irj = false;
      	if(nums[2] != 7) irj = false; 
          
        if(irj) System.out.print("YES");
        else System.out.println("NO");
      
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int nums[] = new int[3]; nums new int[3] 3 boolean irj = true; irj true 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] nums i sc.nextInt() sc.nextInt sc Arrays.sort(nums) Arrays.sort Arrays nums if(nums[0] != 5) irj = false; nums[0] != 5 nums[0] nums 0 5 irj = false irj false if(nums[1] != 5) irj = false; nums[1] != 5 nums[1] nums 1 5 irj = false irj false if(nums[2] != 7) irj = false; nums[2] != 7 nums[2] nums 2 7 irj = false irj false if(irj) System.out.print("YES");
        else System.out.println("NO"); irj System.out.print("YES") System.out.print System.out System System.out "YES" System.out.println("NO") System.out.println System.out System System.out "NO" String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
        int nums[] = new int[3];
      	boolean irj = true;
      
      	for(int i = 0;i < 3;i++) nums[i] = sc.nextInt();
        Arrays.sort(nums); 
      
      	if(nums[0] != 5) irj = false;
      	if(nums[1] != 5) irj = false;
      	if(nums[2] != 7) irj = false; 
          
        if(irj) System.out.print("YES");
        else System.out.println("NO");
      
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
        int nums[] = new int[3];
      	boolean irj = true;
      
      	for(int i = 0;i < 3;i++) nums[i] = sc.nextInt();
        Arrays.sort(nums); 
      
      	if(nums[0] != 5) irj = false;
      	if(nums[1] != 5) irj = false;
      	if(nums[2] != 7) irj = false; 
          
        if(irj) System.out.print("YES");
        else System.out.println("NO");
      
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
        int nums[] = new int[3];
      	boolean irj = true;
      
      	for(int i = 0;i < 3;i++) nums[i] = sc.nextInt();
        Arrays.sort(nums); 
      
      	if(nums[0] != 5) irj = false;
      	if(nums[1] != 5) irj = false;
      	if(nums[2] != 7) irj = false; 
          
        if(irj) System.out.print("YES");
        else System.out.println("NO");
      
	}
}