import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int five = 0;
		int seven = 0;
		for (int i = 0; i < 3; i++) {
			int num = sc.nextInt();
			if(num == 5) {
				five++;
			}else if(num == 7) {
				seven++;
			}
		}
		if(five == 2 && seven == 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) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int five = 0;
		int seven = 0;
		for (int i = 0; i < 3; i++) {
			int num = sc.nextInt();
			if(num == 5) {
				five++;
			}else if(num == 7) {
				seven++;
			}
		}
		if(five == 2 && seven == 1) {
			System.out.println("YES");
		}else {
			System.out.println("NO");
		}
		sc.close();
	}

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int five = 0;
		int seven = 0;
		for (int i = 0; i < 3; i++) {
			int num = sc.nextInt();
			if(num == 5) {
				five++;
			}else if(num == 7) {
				seven++;
			}
		}
		if(five == 2 && seven == 1) {
			System.out.println("YES");
		}else {
			System.out.println("NO");
		}
		sc.close();
	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int five = 0;
		int seven = 0;
		for (int i = 0; i < 3; i++) {
			int num = sc.nextInt();
			if(num == 5) {
				five++;
			}else if(num == 7) {
				seven++;
			}
		}
		if(five == 2 && seven == 1) {
			System.out.println("YES");
		}else {
			System.out.println("NO");
		}
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int five = 0; five 0 int seven = 0; seven 0 for (int i = 0; i < 3; i++) {
			int num = sc.nextInt();
			if(num == 5) {
				five++;
			}else if(num == 7) {
				seven++;
			}
		} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
			int num = sc.nextInt();
			if(num == 5) {
				five++;
			}else if(num == 7) {
				seven++;
			}
		} {
			int num = sc.nextInt();
			if(num == 5) {
				five++;
			}else if(num == 7) {
				seven++;
			}
		} int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc if(num == 5) {
				five++;
			}else if(num == 7) {
				seven++;
			} num == 5 num 5 {
				five++;
			} five++ five if(num == 7) {
				seven++;
			} num == 7 num 7 {
				seven++;
			} seven++ seven if(five == 2 && seven == 1) {
			System.out.println("YES");
		}else {
			System.out.println("NO");
		} five == 2 && seven == 1 five == 2 five 2 seven == 1 seven 1 {
			System.out.println("YES");
		} System.out.println("YES") System.out.println System.out System System.out "YES" {
			System.out.println("NO");
		} 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) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int five = 0;
		int seven = 0;
		for (int i = 0; i < 3; i++) {
			int num = sc.nextInt();
			if(num == 5) {
				five++;
			}else if(num == 7) {
				seven++;
			}
		}
		if(five == 2 && seven == 1) {
			System.out.println("YES");
		}else {
			System.out.println("NO");
		}
		sc.close();
	}

} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int five = 0;
		int seven = 0;
		for (int i = 0; i < 3; i++) {
			int num = sc.nextInt();
			if(num == 5) {
				five++;
			}else if(num == 7) {
				seven++;
			}
		}
		if(five == 2 && seven == 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) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int five = 0;
		int seven = 0;
		for (int i = 0; i < 3; i++) {
			int num = sc.nextInt();
			if(num == 5) {
				five++;
			}else if(num == 7) {
				seven++;
			}
		}
		if(five == 2 && seven == 1) {
			System.out.println("YES");
		}else {
			System.out.println("NO");
		}
		sc.close();
	}

}