@@ -0,0 +1,1561 @@
+package codeforces;%0A%0A%0Aimport java.io.*;%0Aimport java.util.*;%0A%0A%0Apublic class Code1 %7B%0A%09%0A    public static void main(String%5B%5D args) throws FileNotFoundException %7B%0A    %09InputStream inputStream = new FileInputStream(new File(%22src/input.txt%22));%0A//        InputStream inputStream = System.in;%0A    %09OutputStream outputStream = System.out;%0A    %09InputReader in = new InputReader(inputStream);%0A    %09PrintWriter out = new PrintWriter(outputStream);%0A        new Task(in, out).solve();%0A        out.close();%0A    %7D%0A%0A    static class Task %7B%0A    %09InputReader in;%0A    %09PrintWriter out;%0A    %09public Task(InputReader in, PrintWriter out) %7B%0A    %09%09this.in = in;%0A    %09%09this.out = out;%0A    %09%7D%0A%0A    %09public void solve() %7B%0A%0A      %7D%0A        %0A    %7D%0A%0A    static class InputReader %7B%0A        public BufferedReader reader;%0A        public StringTokenizer tokenizer;%0A%0A        public InputReader(InputStream stream) %7B%0A            reader = new BufferedReader(new InputStreamReader(stream), 32768);%0A            tokenizer = null;%0A        %7D%0A%0A        public String next() %7B%0A            while (tokenizer == null %7C%7C !tokenizer.hasMoreTokens()) %7B%0A                try %7B%0A                    tokenizer = new StringTokenizer(reader.readLine());%0A                %7D catch (IOException e) %7B%0A                    throw new RuntimeException(e);%0A                %7D%0A            %7D%0A            return tokenizer.nextToken();%0A        %7D%0A%0A        public int nextInt() %7B%0A            return Integer.parseInt(next());%0A        %7D%0A        %0A        public long nextLong() %7B%0A        %09return Long.parseLong(next());%0A        %7D%0A%0A    %7D%0A%7D%0A

Create JAVA_TEMPLATE.java