import java.io.IOException;
import java.util.Scanner;

public class Main {
    public static void Solver(int A,int B,int C)
    {
        int sevenCount = 0;
        int fiveCount = 0;
        if(A == 5)
            fiveCount++;
        if(B == 5)
            fiveCount++;
        if(C == 5)
            fiveCount++;
        if(A == 7)
            sevenCount++;
        if(B == 7)
            sevenCount++;
        if(C == 7)
            sevenCount++;

        if(fiveCount == 2 && sevenCount == 1)
            System.out.println("YES");
        else
            System.out.println("NO");

    }
    public static void main(String[] args) throws IOException {
        Scanner input = new Scanner(System.in);

        Solver(input.nextInt(),input.nextInt(),input.nextInt());
    }
} import java.io.IOException; IOException java.io import java.util.Scanner; Scanner java.util public class Main {
    public static void Solver(int A,int B,int C)
    {
        int sevenCount = 0;
        int fiveCount = 0;
        if(A == 5)
            fiveCount++;
        if(B == 5)
            fiveCount++;
        if(C == 5)
            fiveCount++;
        if(A == 7)
            sevenCount++;
        if(B == 7)
            sevenCount++;
        if(C == 7)
            sevenCount++;

        if(fiveCount == 2 && sevenCount == 1)
            System.out.println("YES");
        else
            System.out.println("NO");

    }
    public static void main(String[] args) throws IOException {
        Scanner input = new Scanner(System.in);

        Solver(input.nextInt(),input.nextInt(),input.nextInt());
    }
} Main public static void Solver(int A,int B,int C)
    {
        int sevenCount = 0;
        int fiveCount = 0;
        if(A == 5)
            fiveCount++;
        if(B == 5)
            fiveCount++;
        if(C == 5)
            fiveCount++;
        if(A == 7)
            sevenCount++;
        if(B == 7)
            sevenCount++;
        if(C == 7)
            sevenCount++;

        if(fiveCount == 2 && sevenCount == 1)
            System.out.println("YES");
        else
            System.out.println("NO");

    } Solver {
        int sevenCount = 0;
        int fiveCount = 0;
        if(A == 5)
            fiveCount++;
        if(B == 5)
            fiveCount++;
        if(C == 5)
            fiveCount++;
        if(A == 7)
            sevenCount++;
        if(B == 7)
            sevenCount++;
        if(C == 7)
            sevenCount++;

        if(fiveCount == 2 && sevenCount == 1)
            System.out.println("YES");
        else
            System.out.println("NO");

    } int sevenCount = 0; sevenCount 0 int fiveCount = 0; fiveCount 0 if(A == 5)
            fiveCount++; A == 5 A 5 fiveCount++ fiveCount if(B == 5)
            fiveCount++; B == 5 B 5 fiveCount++ fiveCount if(C == 5)
            fiveCount++; C == 5 C 5 fiveCount++ fiveCount if(A == 7)
            sevenCount++; A == 7 A 7 sevenCount++ sevenCount if(B == 7)
            sevenCount++; B == 7 B 7 sevenCount++ sevenCount if(C == 7)
            sevenCount++; C == 7 C 7 sevenCount++ sevenCount if(fiveCount == 2 && sevenCount == 1)
            System.out.println("YES");
        else
            System.out.println("NO"); fiveCount == 2 && sevenCount == 1 fiveCount == 2 fiveCount 2 sevenCount == 1 sevenCount 1 System.out.println("YES") System.out.println System.out System System.out "YES" System.out.println("NO") System.out.println System.out System System.out "NO" int A A int B B int C C public static void main(String[] args) throws IOException {
        Scanner input = new Scanner(System.in);

        Solver(input.nextInt(),input.nextInt(),input.nextInt());
    } main {
        Scanner input = new Scanner(System.in);

        Solver(input.nextInt(),input.nextInt(),input.nextInt());
    } Scanner input = new Scanner(System.in); input new Scanner(System.in) Solver(input.nextInt(),input.nextInt(),input.nextInt()) Solver input.nextInt() input.nextInt input input.nextInt() input.nextInt input input.nextInt() input.nextInt input String[] args args public class Main {
    public static void Solver(int A,int B,int C)
    {
        int sevenCount = 0;
        int fiveCount = 0;
        if(A == 5)
            fiveCount++;
        if(B == 5)
            fiveCount++;
        if(C == 5)
            fiveCount++;
        if(A == 7)
            sevenCount++;
        if(B == 7)
            sevenCount++;
        if(C == 7)
            sevenCount++;

        if(fiveCount == 2 && sevenCount == 1)
            System.out.println("YES");
        else
            System.out.println("NO");

    }
    public static void main(String[] args) throws IOException {
        Scanner input = new Scanner(System.in);

        Solver(input.nextInt(),input.nextInt(),input.nextInt());
    }
} public class Main {
    public static void Solver(int A,int B,int C)
    {
        int sevenCount = 0;
        int fiveCount = 0;
        if(A == 5)
            fiveCount++;
        if(B == 5)
            fiveCount++;
        if(C == 5)
            fiveCount++;
        if(A == 7)
            sevenCount++;
        if(B == 7)
            sevenCount++;
        if(C == 7)
            sevenCount++;

        if(fiveCount == 2 && sevenCount == 1)
            System.out.println("YES");
        else
            System.out.println("NO");

    }
    public static void main(String[] args) throws IOException {
        Scanner input = new Scanner(System.in);

        Solver(input.nextInt(),input.nextInt(),input.nextInt());
    }
} Main
import java.io.IOException;
import java.util.Scanner;

public class Main {
    public static void Solver(int A,int B,int C)
    {
        int sevenCount = 0;
        int fiveCount = 0;
        if(A == 5)
            fiveCount++;
        if(B == 5)
            fiveCount++;
        if(C == 5)
            fiveCount++;
        if(A == 7)
            sevenCount++;
        if(B == 7)
            sevenCount++;
        if(C == 7)
            sevenCount++;

        if(fiveCount == 2 && sevenCount == 1)
            System.out.println("YES");
        else
            System.out.println("NO");

    }
    public static void main(String[] args) throws IOException {
        Scanner input = new Scanner(System.in);

        Solver(input.nextInt(),input.nextInt(),input.nextInt());
    }
}
