import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int fiveCnt = 0;
        int sevenCnt = 0;
        for (int i = 0; i < 3; i++) {
            int a = Integer.parseInt(sc.next());
            if (a == 5) {
                fiveCnt++;
            } else if (a == 7) {
                sevenCnt++;
            }
        }
        if (fiveCnt == 2 && sevenCnt == 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 fiveCnt = 0;
        int sevenCnt = 0;
        for (int i = 0; i < 3; i++) {
            int a = Integer.parseInt(sc.next());
            if (a == 5) {
                fiveCnt++;
            } else if (a == 7) {
                sevenCnt++;
            }
        }
        if (fiveCnt == 2 && sevenCnt == 1) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int fiveCnt = 0;
        int sevenCnt = 0;
        for (int i = 0; i < 3; i++) {
            int a = Integer.parseInt(sc.next());
            if (a == 5) {
                fiveCnt++;
            } else if (a == 7) {
                sevenCnt++;
            }
        }
        if (fiveCnt == 2 && sevenCnt == 1) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int fiveCnt = 0;
        int sevenCnt = 0;
        for (int i = 0; i < 3; i++) {
            int a = Integer.parseInt(sc.next());
            if (a == 5) {
                fiveCnt++;
            } else if (a == 7) {
                sevenCnt++;
            }
        }
        if (fiveCnt == 2 && sevenCnt == 1) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int fiveCnt = 0; fiveCnt 0 int sevenCnt = 0; sevenCnt 0 for (int i = 0; i < 3; i++) {
            int a = Integer.parseInt(sc.next());
            if (a == 5) {
                fiveCnt++;
            } else if (a == 7) {
                sevenCnt++;
            }
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            int a = Integer.parseInt(sc.next());
            if (a == 5) {
                fiveCnt++;
            } else if (a == 7) {
                sevenCnt++;
            }
        } {
            int a = Integer.parseInt(sc.next());
            if (a == 5) {
                fiveCnt++;
            } else if (a == 7) {
                sevenCnt++;
            }
        } int a = Integer.parseInt(sc.next()); a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if (a == 5) {
                fiveCnt++;
            } else if (a == 7) {
                sevenCnt++;
            } a == 5 a 5 {
                fiveCnt++;
            } fiveCnt++ fiveCnt if (a == 7) {
                sevenCnt++;
            } a == 7 a 7 {
                sevenCnt++;
            } sevenCnt++ sevenCnt if (fiveCnt == 2 && sevenCnt == 1) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        } fiveCnt == 2 && sevenCnt == 1 fiveCnt == 2 fiveCnt 2 sevenCnt == 1 sevenCnt 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 fiveCnt = 0;
        int sevenCnt = 0;
        for (int i = 0; i < 3; i++) {
            int a = Integer.parseInt(sc.next());
            if (a == 5) {
                fiveCnt++;
            } else if (a == 7) {
                sevenCnt++;
            }
        }
        if (fiveCnt == 2 && sevenCnt == 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 fiveCnt = 0;
        int sevenCnt = 0;
        for (int i = 0; i < 3; i++) {
            int a = Integer.parseInt(sc.next());
            if (a == 5) {
                fiveCnt++;
            } else if (a == 7) {
                sevenCnt++;
            }
        }
        if (fiveCnt == 2 && sevenCnt == 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 fiveCnt = 0;
        int sevenCnt = 0;
        for (int i = 0; i < 3; i++) {
            int a = Integer.parseInt(sc.next());
            if (a == 5) {
                fiveCnt++;
            } else if (a == 7) {
                sevenCnt++;
            }
        }
        if (fiveCnt == 2 && sevenCnt == 1) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    }
}
