Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class Main {

    private static Scanner sc;

    public static void main(String[] args) {
        Main instance = new Main();
        sc = instance.new Scanner();
        instance.solve();
    }

    private void solve() {
        try {
            int a = sc.nextInt();
            int b = sc.nextInt();
            int c = sc.nextInt();

            String answer = 'NO';

            if (a + b + c == 17) {
              if (a == 5) {
                if (b == 7 || c == 7) {
                  answer == 'YES';
                }
              } else if (a == 7) {
                if (b == 5 || c == 5) {
                  answer == 'YES';
                }
              } 
            }

            System.out.println(answer);
            
          }


          System.out.println(winner);

        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    private class Scanner {
        String[] s;
        int i;
        BufferedReader br;
        String regex = " ";

        public Scanner() {
            s = new String[0];
            i = 0;
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        @Override
        protected void finalize() throws Throwable {
            try {
                super.finalize();
            } finally {
                destruction();
            }
        }

        private void destruction() throws IOException {
            if (br != null) br.close();
        }

        public String next() throws IOException {
            if (i < s.length) return s[i++];
            String st = br.readLine();
            while (st == "") st = br.readLine();
            s = st.split(regex, 0);
            i = 0;
            return s[i++];
        }

        public int nextInt() throws NumberFormatException, IOException {
            return Integer.parseInt(next());
        }

        public Long nextLong() throws NumberFormatException, IOException {
            return Long.parseLong(next());
        }

        public Double nextDouble() throws NumberFormatException, IOException {
            return Double.parseDouble(next());
        }
    }
}


Compiler output:
Main.java:24: error: unclosed character literal
            String answer = 'NO';
                            ^
Main.java:24: error: unclosed character literal
            String answer = 'NO';
                               ^
Main.java:24: error: not a statement
            String answer = 'NO';
                              ^
Main.java:29: error: unclosed character literal
                  answer == 'YES';
                            ^
Main.java:29: error: not a statement
                  answer == 'YES';
                         ^
Main.java:29: error: unclosed character literal
                  answer == 'YES';
                                ^
Main.java:29: error: not a statement
                  answer == 'YES';
                              ^
Main.java:33: error: unclosed character literal
                  answer == 'YES';
                            ^
Main.java:33: error: not a statement
                  answer == 'YES';
                         ^
Main.java:33: error: unclosed character literal
                  answer == 'YES';
                                ^
Main.java:33: error: not a statement
                  answer == 'YES';
                              ^
Main.java:19: error: 'try' without 'catch', 'finally' or resource declarations
        try {
        ^
Main.java:45: error: illegal start of type
        } catch (Exception e) {
          ^
Main.java:45: error: ';' expected
        } catch (Exception e) {
                            ^
Main.java:96: error: class, interface, enum, or record expected
}
^
15 errors