import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] num1 = {sc.nextInt(),sc.nextInt(),sc.nextInt()};
		int count = 0;
		for(int i = 0; i < 3; i++) {
			if(num1[i] == 5) {
				count++;
			} else if(num1[i] == 7) {
				count += 2;
			} else {
				System.out.println("NO");
				return ;
			}
		}
		System.out.println(count == 4 ? "YES" : "NO");

	}

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

	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] num1 = {sc.nextInt(),sc.nextInt(),sc.nextInt()};
		int count = 0;
		for(int i = 0; i < 3; i++) {
			if(num1[i] == 5) {
				count++;
			} else if(num1[i] == 7) {
				count += 2;
			} else {
				System.out.println("NO");
				return ;
			}
		}
		System.out.println(count == 4 ? "YES" : "NO");

	} main {
		Scanner sc = new Scanner(System.in);
		int[] num1 = {sc.nextInt(),sc.nextInt(),sc.nextInt()};
		int count = 0;
		for(int i = 0; i < 3; i++) {
			if(num1[i] == 5) {
				count++;
			} else if(num1[i] == 7) {
				count += 2;
			} else {
				System.out.println("NO");
				return ;
			}
		}
		System.out.println(count == 4 ? "YES" : "NO");

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int[] num1 = {sc.nextInt(),sc.nextInt(),sc.nextInt()}; num1 {sc.nextInt(),sc.nextInt(),sc.nextInt()} sc.nextInt() sc.nextInt sc sc.nextInt() sc.nextInt sc sc.nextInt() sc.nextInt sc int count = 0; count 0 for(int i = 0; i < 3; i++) {
			if(num1[i] == 5) {
				count++;
			} else if(num1[i] == 7) {
				count += 2;
			} else {
				System.out.println("NO");
				return ;
			}
		} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
			if(num1[i] == 5) {
				count++;
			} else if(num1[i] == 7) {
				count += 2;
			} else {
				System.out.println("NO");
				return ;
			}
		} {
			if(num1[i] == 5) {
				count++;
			} else if(num1[i] == 7) {
				count += 2;
			} else {
				System.out.println("NO");
				return ;
			}
		} if(num1[i] == 5) {
				count++;
			} else if(num1[i] == 7) {
				count += 2;
			} else {
				System.out.println("NO");
				return ;
			} num1[i] == 5 num1[i] num1 i 5 {
				count++;
			} count++ count if(num1[i] == 7) {
				count += 2;
			} else {
				System.out.println("NO");
				return ;
			} num1[i] == 7 num1[i] num1 i 7 {
				count += 2;
			} count += 2 count 2 {
				System.out.println("NO");
				return ;
			} System.out.println("NO") System.out.println System.out System System.out "NO" return ; System.out.println(count == 4 ? "YES" : "NO") System.out.println System.out System System.out count == 4 ? "YES" : "NO" count == 4 count 4 "YES" "NO" String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] num1 = {sc.nextInt(),sc.nextInt(),sc.nextInt()};
		int count = 0;
		for(int i = 0; i < 3; i++) {
			if(num1[i] == 5) {
				count++;
			} else if(num1[i] == 7) {
				count += 2;
			} else {
				System.out.println("NO");
				return ;
			}
		}
		System.out.println(count == 4 ? "YES" : "NO");

	}

} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] num1 = {sc.nextInt(),sc.nextInt(),sc.nextInt()};
		int count = 0;
		for(int i = 0; i < 3; i++) {
			if(num1[i] == 5) {
				count++;
			} else if(num1[i] == 7) {
				count += 2;
			} else {
				System.out.println("NO");
				return ;
			}
		}
		System.out.println(count == 4 ? "YES" : "NO");

	}

} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] num1 = {sc.nextInt(),sc.nextInt(),sc.nextInt()};
		int count = 0;
		for(int i = 0; i < 3; i++) {
			if(num1[i] == 5) {
				count++;
			} else if(num1[i] == 7) {
				count += 2;
			} else {
				System.out.println("NO");
				return ;
			}
		}
		System.out.println(count == 4 ? "YES" : "NO");

	}

}
