import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int SC = 0, FC = 0;

		for(int i = 0; i < 3; i++) {
			int tmp = sc.nextInt();

			if(tmp == 5)
				FC++;
			else if(tmp == 7)
				SC++;

		}

		String ans = "NO";
		if(FC == 2 && SC == 1)
			ans = "YES";

		System.out.println(ans);
		return;

	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int SC = 0, FC = 0;

		for(int i = 0; i < 3; i++) {
			int tmp = sc.nextInt();

			if(tmp == 5)
				FC++;
			else if(tmp == 7)
				SC++;

		}

		String ans = "NO";
		if(FC == 2 && SC == 1)
			ans = "YES";

		System.out.println(ans);
		return;

	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int SC = 0, FC = 0;

		for(int i = 0; i < 3; i++) {
			int tmp = sc.nextInt();

			if(tmp == 5)
				FC++;
			else if(tmp == 7)
				SC++;

		}

		String ans = "NO";
		if(FC == 2 && SC == 1)
			ans = "YES";

		System.out.println(ans);
		return;

	} main {
		Scanner sc = new Scanner(System.in);
		int SC = 0, FC = 0;

		for(int i = 0; i < 3; i++) {
			int tmp = sc.nextInt();

			if(tmp == 5)
				FC++;
			else if(tmp == 7)
				SC++;

		}

		String ans = "NO";
		if(FC == 2 && SC == 1)
			ans = "YES";

		System.out.println(ans);
		return;

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int SC = 0 SC 0 FC = 0; FC 0 for(int i = 0; i < 3; i++) {
			int tmp = sc.nextInt();

			if(tmp == 5)
				FC++;
			else if(tmp == 7)
				SC++;

		} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
			int tmp = sc.nextInt();

			if(tmp == 5)
				FC++;
			else if(tmp == 7)
				SC++;

		} {
			int tmp = sc.nextInt();

			if(tmp == 5)
				FC++;
			else if(tmp == 7)
				SC++;

		} int tmp = sc.nextInt(); tmp sc.nextInt() sc.nextInt sc if(tmp == 5)
				FC++;
			else if(tmp == 7)
				SC++; tmp == 5 tmp 5 FC++ FC if(tmp == 7)
				SC++; tmp == 7 tmp 7 SC++ SC String ans = "NO"; ans "NO" if(FC == 2 && SC == 1)
			ans = "YES"; FC == 2 && SC == 1 FC == 2 FC 2 SC == 1 SC 1 ans = "YES" ans "YES" System.out.println(ans) System.out.println System.out System System.out ans return; String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int SC = 0, FC = 0;

		for(int i = 0; i < 3; i++) {
			int tmp = sc.nextInt();

			if(tmp == 5)
				FC++;
			else if(tmp == 7)
				SC++;

		}

		String ans = "NO";
		if(FC == 2 && SC == 1)
			ans = "YES";

		System.out.println(ans);
		return;

	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int SC = 0, FC = 0;

		for(int i = 0; i < 3; i++) {
			int tmp = sc.nextInt();

			if(tmp == 5)
				FC++;
			else if(tmp == 7)
				SC++;

		}

		String ans = "NO";
		if(FC == 2 && SC == 1)
			ans = "YES";

		System.out.println(ans);
		return;

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int SC = 0, FC = 0;

		for(int i = 0; i < 3; i++) {
			int tmp = sc.nextInt();

			if(tmp == 5)
				FC++;
			else if(tmp == 7)
				SC++;

		}

		String ans = "NO";
		if(FC == 2 && SC == 1)
			ans = "YES";

		System.out.println(ans);
		return;

	}

}

