import java.util.Scanner;

public class Main {
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());
		int c = Integer.parseInt(sc.next());
		
		int five=0;
		int seven=0;
		
		if(a==5) {
			five++;
		}else {
			seven++;
		}
		
		if(b==5) {
			five++;
		}else {
			seven++;
		}
		
		if(c==5) {
			five++;
		}else {
			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);
		
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());
		int c = Integer.parseInt(sc.next());
		
		int five=0;
		int seven=0;
		
		if(a==5) {
			five++;
		}else {
			seven++;
		}
		
		if(b==5) {
			five++;
		}else {
			seven++;
		}
		
		if(c==5) {
			five++;
		}else {
			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);
		
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());
		int c = Integer.parseInt(sc.next());
		
		int five=0;
		int seven=0;
		
		if(a==5) {
			five++;
		}else {
			seven++;
		}
		
		if(b==5) {
			five++;
		}else {
			seven++;
		}
		
		if(c==5) {
			five++;
		}else {
			seven++;
		}

		if(five==2 && seven==1) {
			System.out.println("YES");
		}else {
			System.out.println("NO");
		}		
	} main {
		Scanner sc = new Scanner(System.in);
		
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());
		int c = Integer.parseInt(sc.next());
		
		int five=0;
		int seven=0;
		
		if(a==5) {
			five++;
		}else {
			seven++;
		}
		
		if(b==5) {
			five++;
		}else {
			seven++;
		}
		
		if(c==5) {
			five++;
		}else {
			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) int a = Integer.parseInt(sc.next()); a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int b = Integer.parseInt(sc.next()); b Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int c = Integer.parseInt(sc.next()); c Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int five=0; five 0 int seven=0; seven 0 if(a==5) {
			five++;
		}else {
			seven++;
		} a==5 a 5 {
			five++;
		} five++ five {
			seven++;
		} seven++ seven if(b==5) {
			five++;
		}else {
			seven++;
		} b==5 b 5 {
			five++;
		} five++ five {
			seven++;
		} seven++ seven if(c==5) {
			five++;
		}else {
			seven++;
		} c==5 c 5 {
			five++;
		} five++ five {
			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);
		
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());
		int c = Integer.parseInt(sc.next());
		
		int five=0;
		int seven=0;
		
		if(a==5) {
			five++;
		}else {
			seven++;
		}
		
		if(b==5) {
			five++;
		}else {
			seven++;
		}
		
		if(c==5) {
			five++;
		}else {
			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);
		
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());
		int c = Integer.parseInt(sc.next());
		
		int five=0;
		int seven=0;
		
		if(a==5) {
			five++;
		}else {
			seven++;
		}
		
		if(b==5) {
			five++;
		}else {
			seven++;
		}
		
		if(c==5) {
			five++;
		}else {
			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);
		
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());
		int c = Integer.parseInt(sc.next());
		
		int five=0;
		int seven=0;
		
		if(a==5) {
			five++;
		}else {
			seven++;
		}
		
		if(b==5) {
			five++;
		}else {
			seven++;
		}
		
		if(c==5) {
			five++;
		}else {
			seven++;
		}

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