import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int a[] = new int[3];
        for (int i = 0; i < 3; i++) {
            a[i] = s.nextInt();
        }
        int c1 = 0;
        int c2 = 0;
        
        for (int i = 0; i < 3; i++) {
            if(a[i] == 5) {
                c1 += 1;
            }
            if(a[i] == 7) {
                c2 += 1;
            }
        }

        if(c1 == 2 && c2 == 1) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int a[] = new int[3];
        for (int i = 0; i < 3; i++) {
            a[i] = s.nextInt();
        }
        int c1 = 0;
        int c2 = 0;
        
        for (int i = 0; i < 3; i++) {
            if(a[i] == 5) {
                c1 += 1;
            }
            if(a[i] == 7) {
                c2 += 1;
            }
        }

        if(c1 == 2 && c2 == 1) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    }
} Main public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int a[] = new int[3];
        for (int i = 0; i < 3; i++) {
            a[i] = s.nextInt();
        }
        int c1 = 0;
        int c2 = 0;
        
        for (int i = 0; i < 3; i++) {
            if(a[i] == 5) {
                c1 += 1;
            }
            if(a[i] == 7) {
                c2 += 1;
            }
        }

        if(c1 == 2 && c2 == 1) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    } main {
        Scanner s = new Scanner(System.in);
        int a[] = new int[3];
        for (int i = 0; i < 3; i++) {
            a[i] = s.nextInt();
        }
        int c1 = 0;
        int c2 = 0;
        
        for (int i = 0; i < 3; i++) {
            if(a[i] == 5) {
                c1 += 1;
            }
            if(a[i] == 7) {
                c2 += 1;
            }
        }

        if(c1 == 2 && c2 == 1) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    } Scanner s = new Scanner(System.in); s new Scanner(System.in) int a[] = new int[3]; a new int[3] 3 for (int i = 0; i < 3; i++) {
            a[i] = s.nextInt();
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            a[i] = s.nextInt();
        } {
            a[i] = s.nextInt();
        } a[i] = s.nextInt() a[i] a i s.nextInt() s.nextInt s int c1 = 0; c1 0 int c2 = 0; c2 0 for (int i = 0; i < 3; i++) {
            if(a[i] == 5) {
                c1 += 1;
            }
            if(a[i] == 7) {
                c2 += 1;
            }
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            if(a[i] == 5) {
                c1 += 1;
            }
            if(a[i] == 7) {
                c2 += 1;
            }
        } {
            if(a[i] == 5) {
                c1 += 1;
            }
            if(a[i] == 7) {
                c2 += 1;
            }
        } if(a[i] == 5) {
                c1 += 1;
            } a[i] == 5 a[i] a i 5 {
                c1 += 1;
            } c1 += 1 c1 1 if(a[i] == 7) {
                c2 += 1;
            } a[i] == 7 a[i] a i 7 {
                c2 += 1;
            } c2 += 1 c2 1 if(c1 == 2 && c2 == 1) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        } c1 == 2 && c2 == 1 c1 == 2 c1 2 c2 == 1 c2 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 s = new Scanner(System.in);
        int a[] = new int[3];
        for (int i = 0; i < 3; i++) {
            a[i] = s.nextInt();
        }
        int c1 = 0;
        int c2 = 0;
        
        for (int i = 0; i < 3; i++) {
            if(a[i] == 5) {
                c1 += 1;
            }
            if(a[i] == 7) {
                c2 += 1;
            }
        }

        if(c1 == 2 && c2 == 1) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int a[] = new int[3];
        for (int i = 0; i < 3; i++) {
            a[i] = s.nextInt();
        }
        int c1 = 0;
        int c2 = 0;
        
        for (int i = 0; i < 3; i++) {
            if(a[i] == 5) {
                c1 += 1;
            }
            if(a[i] == 7) {
                c2 += 1;
            }
        }

        if(c1 == 2 && c2 == 1) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    }
} Main
import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int a[] = new int[3];
        for (int i = 0; i < 3; i++) {
            a[i] = s.nextInt();
        }
        int c1 = 0;
        int c2 = 0;
        
        for (int i = 0; i < 3; i++) {
            if(a[i] == 5) {
                c1 += 1;
            }
            if(a[i] == 7) {
                c2 += 1;
            }
        }

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