import java.util.Scanner;
public class Main{
    public static void main(String[] args) {
         Scanner in=new Scanner(System.in);
         int a=in.nextInt();
         int b=in.nextInt();
         int c=in.nextInt();
         if((a==5 && b==5)||(b==5 && c==5)||(a==5 && c==5)){
             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 in=new Scanner(System.in);
         int a=in.nextInt();
         int b=in.nextInt();
         int c=in.nextInt();
         if((a==5 && b==5)||(b==5 && c==5)||(a==5 && c==5)){
             System.out.println("YES");
         }else{
             System.out.println("NO");
         }
    }
} Main public static void main(String[] args) {
         Scanner in=new Scanner(System.in);
         int a=in.nextInt();
         int b=in.nextInt();
         int c=in.nextInt();
         if((a==5 && b==5)||(b==5 && c==5)||(a==5 && c==5)){
             System.out.println("YES");
         }else{
             System.out.println("NO");
         }
    } main {
         Scanner in=new Scanner(System.in);
         int a=in.nextInt();
         int b=in.nextInt();
         int c=in.nextInt();
         if((a==5 && b==5)||(b==5 && c==5)||(a==5 && c==5)){
             System.out.println("YES");
         }else{
             System.out.println("NO");
         }
    } Scanner in=new Scanner(System.in); in new Scanner(System.in) int a=in.nextInt(); a in.nextInt() in.nextInt in int b=in.nextInt(); b in.nextInt() in.nextInt in int c=in.nextInt(); c in.nextInt() in.nextInt in if((a==5 && b==5)||(b==5 && c==5)||(a==5 && c==5)){
             System.out.println("YES");
         }else{
             System.out.println("NO");
         } (a==5 && b==5)||(b==5 && c==5)||(a==5 && c==5) (a==5 && b==5)||(b==5 && c==5)||(a==5 && c==5) (a==5 && b==5) a==5 a 5 b==5 b 5 (b==5 && c==5) b==5 b 5 c==5 c 5 (a==5 && c==5) a==5 a 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" String[] args args public class Main{
    public static void main(String[] args) {
         Scanner in=new Scanner(System.in);
         int a=in.nextInt();
         int b=in.nextInt();
         int c=in.nextInt();
         if((a==5 && b==5)||(b==5 && c==5)||(a==5 && c==5)){
             System.out.println("YES");
         }else{
             System.out.println("NO");
         }
    }
} public class Main{
    public static void main(String[] args) {
         Scanner in=new Scanner(System.in);
         int a=in.nextInt();
         int b=in.nextInt();
         int c=in.nextInt();
         if((a==5 && b==5)||(b==5 && c==5)||(a==5 && c==5)){
             System.out.println("YES");
         }else{
             System.out.println("NO");
         }
    }
} Main
import java.util.Scanner;
public class Main{
    public static void main(String[] args) {
         Scanner in=new Scanner(System.in);
         int a=in.nextInt();
         int b=in.nextInt();
         int c=in.nextInt();
         if((a==5 && b==5)||(b==5 && c==5)||(a==5 && c==5)){
             System.out.println("YES");
         }else{
             System.out.println("NO");
         }
    }
}