import java.util.*;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        Integer[] a = new Integer[3];
        a[0] = Integer.parseInt(sc.next());
        a[1] = Integer.parseInt(sc.next());
        a[2] = Integer.parseInt(sc.next());

        Arrays.sort(a);

        if(a[0] == 5) {
            if(a[1] == 5) {
                if(a[2] == 7) {
                    System.out.print("YES");
                } else {
                    System.out.print("NO");
                }
            }else {
                System.out.print("NO");
            }

        }else {
            System.out.print("NO");
        }


    }

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

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        Integer[] a = new Integer[3];
        a[0] = Integer.parseInt(sc.next());
        a[1] = Integer.parseInt(sc.next());
        a[2] = Integer.parseInt(sc.next());

        Arrays.sort(a);

        if(a[0] == 5) {
            if(a[1] == 5) {
                if(a[2] == 7) {
                    System.out.print("YES");
                } else {
                    System.out.print("NO");
                }
            }else {
                System.out.print("NO");
            }

        }else {
            System.out.print("NO");
        }


    }

} Main public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        Integer[] a = new Integer[3];
        a[0] = Integer.parseInt(sc.next());
        a[1] = Integer.parseInt(sc.next());
        a[2] = Integer.parseInt(sc.next());

        Arrays.sort(a);

        if(a[0] == 5) {
            if(a[1] == 5) {
                if(a[2] == 7) {
                    System.out.print("YES");
                } else {
                    System.out.print("NO");
                }
            }else {
                System.out.print("NO");
            }

        }else {
            System.out.print("NO");
        }


    } main {

        Scanner sc = new Scanner(System.in);
        Integer[] a = new Integer[3];
        a[0] = Integer.parseInt(sc.next());
        a[1] = Integer.parseInt(sc.next());
        a[2] = Integer.parseInt(sc.next());

        Arrays.sort(a);

        if(a[0] == 5) {
            if(a[1] == 5) {
                if(a[2] == 7) {
                    System.out.print("YES");
                } else {
                    System.out.print("NO");
                }
            }else {
                System.out.print("NO");
            }

        }else {
            System.out.print("NO");
        }


    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) Integer[] a = new Integer[3]; a new Integer[3] 3 a[0] = Integer.parseInt(sc.next()) a[0] a 0 Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc a[1] = Integer.parseInt(sc.next()) a[1] a 1 Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc a[2] = Integer.parseInt(sc.next()) a[2] a 2 Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc Arrays.sort(a) Arrays.sort Arrays a if(a[0] == 5) {
            if(a[1] == 5) {
                if(a[2] == 7) {
                    System.out.print("YES");
                } else {
                    System.out.print("NO");
                }
            }else {
                System.out.print("NO");
            }

        }else {
            System.out.print("NO");
        } a[0] == 5 a[0] a 0 5 {
            if(a[1] == 5) {
                if(a[2] == 7) {
                    System.out.print("YES");
                } else {
                    System.out.print("NO");
                }
            }else {
                System.out.print("NO");
            }

        } if(a[1] == 5) {
                if(a[2] == 7) {
                    System.out.print("YES");
                } else {
                    System.out.print("NO");
                }
            }else {
                System.out.print("NO");
            } a[1] == 5 a[1] a 1 5 {
                if(a[2] == 7) {
                    System.out.print("YES");
                } else {
                    System.out.print("NO");
                }
            } if(a[2] == 7) {
                    System.out.print("YES");
                } else {
                    System.out.print("NO");
                } a[2] == 7 a[2] a 2 7 {
                    System.out.print("YES");
                } System.out.print("YES") System.out.print System.out System System.out "YES" {
                    System.out.print("NO");
                } System.out.print("NO") System.out.print System.out System System.out "NO" {
                System.out.print("NO");
            } System.out.print("NO") System.out.print System.out System System.out "NO" {
            System.out.print("NO");
        } System.out.print("NO") System.out.print System.out System System.out "NO" String[] args args public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        Integer[] a = new Integer[3];
        a[0] = Integer.parseInt(sc.next());
        a[1] = Integer.parseInt(sc.next());
        a[2] = Integer.parseInt(sc.next());

        Arrays.sort(a);

        if(a[0] == 5) {
            if(a[1] == 5) {
                if(a[2] == 7) {
                    System.out.print("YES");
                } else {
                    System.out.print("NO");
                }
            }else {
                System.out.print("NO");
            }

        }else {
            System.out.print("NO");
        }


    }

} public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        Integer[] a = new Integer[3];
        a[0] = Integer.parseInt(sc.next());
        a[1] = Integer.parseInt(sc.next());
        a[2] = Integer.parseInt(sc.next());

        Arrays.sort(a);

        if(a[0] == 5) {
            if(a[1] == 5) {
                if(a[2] == 7) {
                    System.out.print("YES");
                } else {
                    System.out.print("NO");
                }
            }else {
                System.out.print("NO");
            }

        }else {
            System.out.print("NO");
        }


    }

} Main
import java.util.*;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        Integer[] a = new Integer[3];
        a[0] = Integer.parseInt(sc.next());
        a[1] = Integer.parseInt(sc.next());
        a[2] = Integer.parseInt(sc.next());

        Arrays.sort(a);

        if(a[0] == 5) {
            if(a[1] == 5) {
                if(a[2] == 7) {
                    System.out.print("YES");
                } else {
                    System.out.print("NO");
                }
            }else {
                System.out.print("NO");
            }

        }else {
            System.out.print("NO");
        }


    }

}
