import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		int seven = 0;
		int five = 0;
		int[] num = new int[3];
		Scanner scanner = new Scanner(System.in);
		for (int i = 0; i < num.length; i++) {

			num[i] = scanner.nextInt();
		}
		for (int i = 0; i < 3; i++) {
			if (num[i] == 5) {
				five=five+1;
			}
			if (num[i] == 7) {
				seven=seven+1;
			}

		}

		if (five == 2 && seven == 1) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		int seven = 0;
		int five = 0;
		int[] num = new int[3];
		Scanner scanner = new Scanner(System.in);
		for (int i = 0; i < num.length; i++) {

			num[i] = scanner.nextInt();
		}
		for (int i = 0; i < 3; i++) {
			if (num[i] == 5) {
				five=five+1;
			}
			if (num[i] == 7) {
				seven=seven+1;
			}

		}

		if (five == 2 && seven == 1) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	}
} Main public static void main(String[] args) {
		int seven = 0;
		int five = 0;
		int[] num = new int[3];
		Scanner scanner = new Scanner(System.in);
		for (int i = 0; i < num.length; i++) {

			num[i] = scanner.nextInt();
		}
		for (int i = 0; i < 3; i++) {
			if (num[i] == 5) {
				five=five+1;
			}
			if (num[i] == 7) {
				seven=seven+1;
			}

		}

		if (five == 2 && seven == 1) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	} main {
		int seven = 0;
		int five = 0;
		int[] num = new int[3];
		Scanner scanner = new Scanner(System.in);
		for (int i = 0; i < num.length; i++) {

			num[i] = scanner.nextInt();
		}
		for (int i = 0; i < 3; i++) {
			if (num[i] == 5) {
				five=five+1;
			}
			if (num[i] == 7) {
				seven=seven+1;
			}

		}

		if (five == 2 && seven == 1) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	} int seven = 0; seven 0 int five = 0; five 0 int[] num = new int[3]; num new int[3] 3 Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) for (int i = 0; i < num.length; i++) {

			num[i] = scanner.nextInt();
		} int i = 0; int i = 0; i 0 i < num.length i num.length num num.length i++ i++ i {

			num[i] = scanner.nextInt();
		} {

			num[i] = scanner.nextInt();
		} num[i] = scanner.nextInt() num[i] num i scanner.nextInt() scanner.nextInt scanner for (int i = 0; i < 3; i++) {
			if (num[i] == 5) {
				five=five+1;
			}
			if (num[i] == 7) {
				seven=seven+1;
			}

		} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
			if (num[i] == 5) {
				five=five+1;
			}
			if (num[i] == 7) {
				seven=seven+1;
			}

		} {
			if (num[i] == 5) {
				five=five+1;
			}
			if (num[i] == 7) {
				seven=seven+1;
			}

		} if (num[i] == 5) {
				five=five+1;
			} num[i] == 5 num[i] num i 5 {
				five=five+1;
			} five=five+1 five five+1 five 1 if (num[i] == 7) {
				seven=seven+1;
			} num[i] == 7 num[i] num i 7 {
				seven=seven+1;
			} seven=seven+1 seven seven+1 seven 1 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" String[] args args public class Main {
	public static void main(String[] args) {
		int seven = 0;
		int five = 0;
		int[] num = new int[3];
		Scanner scanner = new Scanner(System.in);
		for (int i = 0; i < num.length; i++) {

			num[i] = scanner.nextInt();
		}
		for (int i = 0; i < 3; i++) {
			if (num[i] == 5) {
				five=five+1;
			}
			if (num[i] == 7) {
				seven=seven+1;
			}

		}

		if (five == 2 && seven == 1) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	}
} public class Main {
	public static void main(String[] args) {
		int seven = 0;
		int five = 0;
		int[] num = new int[3];
		Scanner scanner = new Scanner(System.in);
		for (int i = 0; i < num.length; i++) {

			num[i] = scanner.nextInt();
		}
		for (int i = 0; i < 3; i++) {
			if (num[i] == 5) {
				five=five+1;
			}
			if (num[i] == 7) {
				seven=seven+1;
			}

		}

		if (five == 2 && seven == 1) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		int seven = 0;
		int five = 0;
		int[] num = new int[3];
		Scanner scanner = new Scanner(System.in);
		for (int i = 0; i < num.length; i++) {

			num[i] = scanner.nextInt();
		}
		for (int i = 0; i < 3; i++) {
			if (num[i] == 5) {
				five=five+1;
			}
			if (num[i] == 7) {
				seven=seven+1;
			}

		}

		if (five == 2 && seven == 1) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	}
}