import java.util.*;

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

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