import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		String[] sArray = s.split(" ");

		int five  = 0;
		int seven = 0;

		for(int i=0; i<3; i++) {
			if(sArray[i].equals("5")) {
				five++;
			}else if(sArray[i].equals("7")){
				seven++;
			}
		}

		//結果表示
		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) {
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		String[] sArray = s.split(" ");

		int five  = 0;
		int seven = 0;

		for(int i=0; i<3; i++) {
			if(sArray[i].equals("5")) {
				five++;
			}else if(sArray[i].equals("7")){
				seven++;
			}
		}

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

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		String[] sArray = s.split(" ");

		int five  = 0;
		int seven = 0;

		for(int i=0; i<3; i++) {
			if(sArray[i].equals("5")) {
				five++;
			}else if(sArray[i].equals("7")){
				seven++;
			}
		}

		//結果表示
		if(five == 2 && seven == 1) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	} main {
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		String[] sArray = s.split(" ");

		int five  = 0;
		int seven = 0;

		for(int i=0; i<3; i++) {
			if(sArray[i].equals("5")) {
				five++;
			}else if(sArray[i].equals("7")){
				seven++;
			}
		}

		//結果表示
		if(five == 2 && seven == 1) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.nextLine(); s sc.nextLine() sc.nextLine sc String[] sArray = s.split(" "); sArray s.split(" ") s.split s " " int five  = 0; five 0 int seven = 0; seven 0 for(int i=0; i<3; i++) {
			if(sArray[i].equals("5")) {
				five++;
			}else if(sArray[i].equals("7")){
				seven++;
			}
		} int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
			if(sArray[i].equals("5")) {
				five++;
			}else if(sArray[i].equals("7")){
				seven++;
			}
		} {
			if(sArray[i].equals("5")) {
				five++;
			}else if(sArray[i].equals("7")){
				seven++;
			}
		} if(sArray[i].equals("5")) {
				five++;
			}else if(sArray[i].equals("7")){
				seven++;
			} sArray[i].equals("5") sArray[i].equals sArray[i] sArray i "5" {
				five++;
			} five++ five if(sArray[i].equals("7")){
				seven++;
			} sArray[i].equals("7") sArray[i].equals sArray[i] sArray i "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" String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		String[] sArray = s.split(" ");

		int five  = 0;
		int seven = 0;

		for(int i=0; i<3; i++) {
			if(sArray[i].equals("5")) {
				five++;
			}else if(sArray[i].equals("7")){
				seven++;
			}
		}

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

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		String[] sArray = s.split(" ");

		int five  = 0;
		int seven = 0;

		for(int i=0; i<3; i++) {
			if(sArray[i].equals("5")) {
				five++;
			}else if(sArray[i].equals("7")){
				seven++;
			}
		}

		//結果表示
		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) {
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		String[] sArray = s.split(" ");

		int five  = 0;
		int seven = 0;

		for(int i=0; i<3; i++) {
			if(sArray[i].equals("5")) {
				five++;
			}else if(sArray[i].equals("7")){
				seven++;
			}
		}

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

}
