import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int A = scan.nextInt();
		int B = scan.nextInt();
		int C = scan.nextInt();
		
		if (A == 5) {
			if (B == 5 && C == 7) {
				System.out.println("YES");
			} else if (B == 7 && C == 5) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} else if (A == 7) {
			if (B == 5 && C == 5) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} else {
			System.out.println("NO");
		}
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int A = scan.nextInt();
		int B = scan.nextInt();
		int C = scan.nextInt();
		
		if (A == 5) {
			if (B == 5 && C == 7) {
				System.out.println("YES");
			} else if (B == 7 && C == 5) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} else if (A == 7) {
			if (B == 5 && C == 5) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} else {
			System.out.println("NO");
		}
	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int A = scan.nextInt();
		int B = scan.nextInt();
		int C = scan.nextInt();
		
		if (A == 5) {
			if (B == 5 && C == 7) {
				System.out.println("YES");
			} else if (B == 7 && C == 5) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} else if (A == 7) {
			if (B == 5 && C == 5) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} else {
			System.out.println("NO");
		}
	} main {
		Scanner scan = new Scanner(System.in);
		int A = scan.nextInt();
		int B = scan.nextInt();
		int C = scan.nextInt();
		
		if (A == 5) {
			if (B == 5 && C == 7) {
				System.out.println("YES");
			} else if (B == 7 && C == 5) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} else if (A == 7) {
			if (B == 5 && C == 5) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} else {
			System.out.println("NO");
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int A = scan.nextInt(); A scan.nextInt() scan.nextInt scan int B = scan.nextInt(); B scan.nextInt() scan.nextInt scan int C = scan.nextInt(); C scan.nextInt() scan.nextInt scan if (A == 5) {
			if (B == 5 && C == 7) {
				System.out.println("YES");
			} else if (B == 7 && C == 5) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} else if (A == 7) {
			if (B == 5 && C == 5) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} else {
			System.out.println("NO");
		} A == 5 A 5 {
			if (B == 5 && C == 7) {
				System.out.println("YES");
			} else if (B == 7 && C == 5) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} if (B == 5 && C == 7) {
				System.out.println("YES");
			} else if (B == 7 && C == 5) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			} B == 5 && C == 7 B == 5 B 5 C == 7 C 7 {
				System.out.println("YES");
			} System.out.println("YES") System.out.println System.out System System.out "YES" if (B == 7 && C == 5) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			} B == 7 && C == 5 B == 7 B 7 C == 5 C 5 {
				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" if (A == 7) {
			if (B == 5 && C == 5) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} else {
			System.out.println("NO");
		} A == 7 A 7 {
			if (B == 5 && C == 5) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} if (B == 5 && C == 5) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			} B == 5 && C == 5 B == 5 B 5 C == 5 C 5 {
				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" {
			System.out.println("NO");
		} 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 scan = new Scanner(System.in);
		int A = scan.nextInt();
		int B = scan.nextInt();
		int C = scan.nextInt();
		
		if (A == 5) {
			if (B == 5 && C == 7) {
				System.out.println("YES");
			} else if (B == 7 && C == 5) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} else if (A == 7) {
			if (B == 5 && C == 5) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} else {
			System.out.println("NO");
		}
	}

} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int A = scan.nextInt();
		int B = scan.nextInt();
		int C = scan.nextInt();
		
		if (A == 5) {
			if (B == 5 && C == 7) {
				System.out.println("YES");
			} else if (B == 7 && C == 5) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} else if (A == 7) {
			if (B == 5 && C == 5) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} else {
			System.out.println("NO");
		}
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int A = scan.nextInt();
		int B = scan.nextInt();
		int C = scan.nextInt();
		
		if (A == 5) {
			if (B == 5 && C == 7) {
				System.out.println("YES");
			} else if (B == 7 && C == 5) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} else if (A == 7) {
			if (B == 5 && C == 5) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} else {
			System.out.println("NO");
		}
	}

}
