node_ids
listlengths
4
1.4k
edge_index
listlengths
1
2.22k
text
listlengths
4
1.4k
source
stringlengths
14
427k
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 13, 30, 4, 18, 18, 13, 13, 17, 3, 14, 2, 2, 13, 17, 13, 30, 4, 18, 18, 13, 13, 4, 18, 13, 2, 2, 13, 17, 13, 3, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 68, 5 ], [ 68, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 17, 22 ], [ 22, 23 ], [ 22, 24 ], [ 17, 25 ], [ 25, 26 ], [ 26, 27 ], [ 17, 28 ], [ 29, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 31, 35 ], [ 30, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 36, 43 ], [ 29, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 44, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 51, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 50, 64 ], [ 6, 65 ], [ 65, 66 ], [ 0, 67 ], [ 67, 68 ], [ 67, 69 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner ob = new Scanner(System.in);\n\n int n = ob.nextInt();\n for(int i=1;i<1000;i++)\n {\n if(i*1000==n){System.out.println(0);break;}\n if((i*1000)>n)\n {\n System.out.println((int)Math.abs((i*1000)-n));\n break;\n }\n }\n // System.out.println((int)Math.abs(n-1000));\n }\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n Scanner ob = new Scanner(System.in);\n\n int n = ob.nextInt();\n for(int i=1;i<1000;i++)\n {\n if(i*1000==n){System.out.println(0);break;}\n if((i*1000)>n)\n {\n System.out.println((int)Math.abs((i*1000)-n));\n break;\n }\n }\n // System.out.println((int)Math.abs(n-1000));\n }\n\n}", "Main", "public static void main(String[] args) {\n Scanner ob = new Scanner(System.in);\n\n int n = ob.nextInt();\n for(int i=1;i<1000;i++)\n {\n if(i*1000==n){System.out.println(0);break;}\n if((i*1000)>n)\n {\n System.out.println((int)Math.abs((i*1000)-n));\n break;\n }\n }\n // System.out.println((int)Math.abs(n-1000));\n }", "main", "{\n Scanner ob = new Scanner(System.in);\n\n int n = ob.nextInt();\n for(int i=1;i<1000;i++)\n {\n if(i*1000==n){System.out.println(0);break;}\n if((i*1000)>n)\n {\n System.out.println((int)Math.abs((i*1000)-n));\n break;\n }\n }\n // System.out.println((int)Math.abs(n-1000));\n }", "Scanner ob = new Scanner(System.in);", "ob", "new Scanner(System.in)", "int n = ob.nextInt();", "n", "ob.nextInt()", "ob.nextInt", "ob", "for(int i=1;i<1000;i++)\n {\n if(i*1000==n){System.out.println(0);break;}\n if((i*1000)>n)\n {\n System.out.println((int)Math.abs((i*1000)-n));\n break;\n }\n }", "int i=1;", "int i=1;", "i", "1", "i<1000", "i", "1000", "i++", "i++", "i", "{\n if(i*1000==n){System.out.println(0);break;}\n if((i*1000)>n)\n {\n System.out.println((int)Math.abs((i*1000)-n));\n break;\n }\n }", "{\n if(i*1000==n){System.out.println(0);break;}\n if((i*1000)>n)\n {\n System.out.println((int)Math.abs((i*1000)-n));\n break;\n }\n }", "if(i*1000==n){System.out.println(0);break;}", "i*1000==n", "i*1000", "i", "1000", "n", "{System.out.println(0);break;}", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "break;", "if((i*1000)>n)\n {\n System.out.println((int)Math.abs((i*1000)-n));\n break;\n }", "(i*1000)>n", "(i*1000)", "i", "1000", "n", "{\n System.out.println((int)Math.abs((i*1000)-n));\n break;\n }", "System.out.println((int)Math.abs((i*1000)-n))", "System.out.println", "System.out", "System", "System.out", "(int)Math.abs((i*1000)-n)", "Math.abs", "Math", "(i*1000)-n", "(i*1000)", "i", "1000", "n", "break;", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n Scanner ob = new Scanner(System.in);\n\n int n = ob.nextInt();\n for(int i=1;i<1000;i++)\n {\n if(i*1000==n){System.out.println(0);break;}\n if((i*1000)>n)\n {\n System.out.println((int)Math.abs((i*1000)-n));\n break;\n }\n }\n // System.out.println((int)Math.abs(n-1000));\n }\n\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner ob = new Scanner(System.in);\n\n int n = ob.nextInt();\n for(int i=1;i<1000;i++)\n {\n if(i*1000==n){System.out.println(0);break;}\n if((i*1000)>n)\n {\n System.out.println((int)Math.abs((i*1000)-n));\n break;\n }\n }\n // System.out.println((int)Math.abs(n-1000));\n }\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner ob = new Scanner(System.in); int n = ob.nextInt(); for(int i=1;i<1000;i++) { if(i*1000==n){System.out.println(0);break;} if((i*1000)>n) { System.out.println((int)Math.abs((i*1000)-n)); break; } } // System.out.println((int)Math.abs(n-1000)); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 2, 13, 17, 41, 13, 17, 14, 2, 13, 17, 0, 13, 2, 17, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 43, 5 ], [ 43, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 25, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 31, 33 ], [ 8, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 6, 40 ], [ 40, 41 ], [ 0, 42 ], [ 42, 43 ], [ 42, 44 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int r = (n % 1000);\n int ans = 0;\n if(r > 0) ans = 1000 - r;\n System.out.println(ans);\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int r = (n % 1000);\n int ans = 0;\n if(r > 0) ans = 1000 - r;\n System.out.println(ans);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int r = (n % 1000);\n int ans = 0;\n if(r > 0) ans = 1000 - r;\n System.out.println(ans);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int r = (n % 1000);\n int ans = 0;\n if(r > 0) ans = 1000 - r;\n System.out.println(ans);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int r = (n % 1000);", "r", "(n % 1000)", "n", "1000", "int ans = 0;", "ans", "0", "if(r > 0) ans = 1000 - r;", "r > 0", "r", "0", "ans = 1000 - r", "ans", "1000 - r", "1000", "r", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int r = (n % 1000);\n int ans = 0;\n if(r > 0) ans = 1000 - r;\n System.out.println(ans);\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int r = (n % 1000);\n int ans = 0;\n if(r > 0) ans = 1000 - r;\n System.out.println(ans);\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int r = (n % 1000); int ans = 0; if(r > 0) ans = 1000 - r; System.out.println(ans); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 2, 2, 2, 13, 17, 17, 17, 4, 18, 18, 13, 13, 2, 2, 17, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 39, 5 ], [ 39, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 19, 25 ], [ 8, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 31, 35 ], [ 6, 36 ], [ 36, 37 ], [ 0, 38 ], [ 38, 39 ], [ 38, 40 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n \n Scanner scan = new Scanner(System.in);\n \n int x = scan.nextInt();\n \n int num = (x + 1000 - 1) / 1000;\n System.out.println(1000*num - x);\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n \n Scanner scan = new Scanner(System.in);\n \n int x = scan.nextInt();\n \n int num = (x + 1000 - 1) / 1000;\n System.out.println(1000*num - x);\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n // Your code here!\n \n Scanner scan = new Scanner(System.in);\n \n int x = scan.nextInt();\n \n int num = (x + 1000 - 1) / 1000;\n System.out.println(1000*num - x);\n }", "main", "{\n // Your code here!\n \n Scanner scan = new Scanner(System.in);\n \n int x = scan.nextInt();\n \n int num = (x + 1000 - 1) / 1000;\n System.out.println(1000*num - x);\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int x = scan.nextInt();", "x", "scan.nextInt()", "scan.nextInt", "scan", "int num = (x + 1000 - 1) / 1000;", "num", "(x + 1000 - 1) / 1000", "(x + 1000 - 1)", "x + 1000", "x", "1000", "1", "1000", "System.out.println(1000*num - x)", "System.out.println", "System.out", "System", "System.out", "1000*num - x", "1000*num", "1000", "num", "x", "String[] args", "args", "public class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n \n Scanner scan = new Scanner(System.in);\n \n int x = scan.nextInt();\n \n int num = (x + 1000 - 1) / 1000;\n System.out.println(1000*num - x);\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n \n Scanner scan = new Scanner(System.in);\n \n int x = scan.nextInt();\n \n int num = (x + 1000 - 1) / 1000;\n System.out.println(1000*num - x);\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) throws Exception { // Your code here! Scanner scan = new Scanner(System.in); int x = scan.nextInt(); int num = (x + 1000 - 1) / 1000; System.out.println(1000*num - x); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 17, 41, 13, 17, 41, 13, 40, 17, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 2, 4, 18, 13, 17, 41, 13, 2, 2, 17, 13, 17, 4, 18, 13, 13, 4, 18, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 29, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 140, 8 ], [ 140, 9 ], [ 9, 10 ], [ 9, 11 ], [ 140, 12 ], [ 12, 13 ], [ 12, 14 ], [ 140, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 140, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 21, 25 ], [ 25, 26 ], [ 25, 27 ], [ 21, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 30, 34 ], [ 21, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 21, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 21, 46 ], [ 46, 47 ], [ 47, 48 ], [ 19, 49 ], [ 49, 50 ], [ 140, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 51, 55 ], [ 55, 56 ], [ 51, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 51, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 66, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 76, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 65, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 51, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 98, 99 ], [ 51, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 107, 108 ], [ 51, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 113, 116 ], [ 116, 117 ], [ 51, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 120, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 124, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 134, 135 ], [ 135, 136 ], [ 120, 137 ], [ 137, 138 ], [ 0, 139 ], [ 139, 140 ], [ 139, 141 ] ]
[ "import java.io.*;\nimport java.util.*;\n \npublic class Main {\n static final long MOD = 1000000007L;\n static final int INF = 50000000;\n static final int NINF = -50000000;\n public static void main(String[] args) {\n FastScanner sc = new FastScanner();\n PrintWriter pw = new PrintWriter(System.out);\n \n int ans = sc.ni()%1000;\n int p = (1000-ans)%1000;\n pw.println(p);\n \n pw.close();\n }\n \n static class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n \n public FastScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int ni() {\n return Integer.parseInt(next());\n }\n \n long nl() {\n return Long.parseLong(next());\n }\n \n double nd() {\n return Double.parseDouble(next());\n }\n \n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "public class Main {\n static final long MOD = 1000000007L;\n static final int INF = 50000000;\n static final int NINF = -50000000;\n public static void main(String[] args) {\n FastScanner sc = new FastScanner();\n PrintWriter pw = new PrintWriter(System.out);\n \n int ans = sc.ni()%1000;\n int p = (1000-ans)%1000;\n pw.println(p);\n \n pw.close();\n }\n \n static class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n \n public FastScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int ni() {\n return Integer.parseInt(next());\n }\n \n long nl() {\n return Long.parseLong(next());\n }\n \n double nd() {\n return Double.parseDouble(next());\n }\n \n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}", "Main", "static final long MOD = 1000000007L;", "MOD", "1000000007L", "static final int INF = 50000000;", "INF", "50000000", "static final int NINF = -50000000;", "NINF", "-50000000", "50000000", "public static void main(String[] args) {\n FastScanner sc = new FastScanner();\n PrintWriter pw = new PrintWriter(System.out);\n \n int ans = sc.ni()%1000;\n int p = (1000-ans)%1000;\n pw.println(p);\n \n pw.close();\n }", "main", "{\n FastScanner sc = new FastScanner();\n PrintWriter pw = new PrintWriter(System.out);\n \n int ans = sc.ni()%1000;\n int p = (1000-ans)%1000;\n pw.println(p);\n \n pw.close();\n }", "FastScanner sc = new FastScanner();", "sc", "new FastScanner()", "PrintWriter pw = new PrintWriter(System.out);", "pw", "new PrintWriter(System.out)", "int ans = sc.ni()%1000;", "ans", "sc.ni()%1000", "sc.ni()", "sc.ni", "sc", "1000", "int p = (1000-ans)%1000;", "p", "(1000-ans)%1000", "(1000-ans)", "1000", "ans", "1000", "pw.println(p)", "pw.println", "pw", "p", "pw.close()", "pw.close", "pw", "String[] args", "args", "static class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n \n public FastScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int ni() {\n return Integer.parseInt(next());\n }\n \n long nl() {\n return Long.parseLong(next());\n }\n \n double nd() {\n return Double.parseDouble(next());\n }\n \n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }", "FastScanner", "BufferedReader br;", "br", "StringTokenizer st;", "st", "public FastScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }", "FastScanner", "{\n br = new BufferedReader(new InputStreamReader(System.in));\n }", "br = new BufferedReader(new InputStreamReader(System.in))", "br", "new BufferedReader(new InputStreamReader(System.in))", "String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }", "next", "{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }", "while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "st == null || !st.hasMoreElements()", "st == null", "st", "null", "!st.hasMoreElements()", "st.hasMoreElements()", "st.hasMoreElements", "st", "{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "int ni() {\n return Integer.parseInt(next());\n }", "ni", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "long nl() {\n return Long.parseLong(next());\n }", "nl", "{\n return Long.parseLong(next());\n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "double nd() {\n return Double.parseDouble(next());\n }", "nd", "{\n return Double.parseDouble(next());\n }", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }", "nextLine", "{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }", "String str = \"\";", "str", "\"\"", "try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n str = br.readLine();\n }", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "return str;", "str", "public class Main {\n static final long MOD = 1000000007L;\n static final int INF = 50000000;\n static final int NINF = -50000000;\n public static void main(String[] args) {\n FastScanner sc = new FastScanner();\n PrintWriter pw = new PrintWriter(System.out);\n \n int ans = sc.ni()%1000;\n int p = (1000-ans)%1000;\n pw.println(p);\n \n pw.close();\n }\n \n static class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n \n public FastScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int ni() {\n return Integer.parseInt(next());\n }\n \n long nl() {\n return Long.parseLong(next());\n }\n \n double nd() {\n return Double.parseDouble(next());\n }\n \n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}", "public class Main {\n static final long MOD = 1000000007L;\n static final int INF = 50000000;\n static final int NINF = -50000000;\n public static void main(String[] args) {\n FastScanner sc = new FastScanner();\n PrintWriter pw = new PrintWriter(System.out);\n \n int ans = sc.ni()%1000;\n int p = (1000-ans)%1000;\n pw.println(p);\n \n pw.close();\n }\n \n static class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n \n public FastScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int ni() {\n return Integer.parseInt(next());\n }\n \n long nl() {\n return Long.parseLong(next());\n }\n \n double nd() {\n return Double.parseDouble(next());\n }\n \n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}", "Main" ]
import java.io.*; import java.util.*; public class Main { static final long MOD = 1000000007L; static final int INF = 50000000; static final int NINF = -50000000; public static void main(String[] args) { FastScanner sc = new FastScanner(); PrintWriter pw = new PrintWriter(System.out); int ans = sc.ni()%1000; int p = (1000-ans)%1000; pw.println(p); pw.close(); } static class FastScanner { BufferedReader br; StringTokenizer st; public FastScanner() { br = new BufferedReader(new InputStreamReader(System.in)); } String next() { while (st == null || !st.hasMoreElements()) { try { st = new StringTokenizer(br.readLine()); } catch (IOException e) { e.printStackTrace(); } } return st.nextToken(); } int ni() { return Integer.parseInt(next()); } long nl() { return Long.parseLong(next()); } double nd() { return Double.parseDouble(next()); } String nextLine() { String str = ""; try { str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } return str; } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 2, 2, 17, 2, 13, 17, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 35, 5 ], [ 35, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 22, 24 ], [ 19, 25 ], [ 8, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 6, 32 ], [ 32, 33 ], [ 0, 34 ], [ 34, 35 ], [ 34, 36 ] ]
[ "import java.util.*;\npublic class Main{\n\tpublic static void main(String[] args){\n \tScanner s=new Scanner(System.in);\n int n=s.nextInt();\n int res=(1000-n%1000)%1000;\n System.out.println(res);\n }\n}", "import java.util.*;", "util.*", "java", "public class Main{\n\tpublic static void main(String[] args){\n \tScanner s=new Scanner(System.in);\n int n=s.nextInt();\n int res=(1000-n%1000)%1000;\n System.out.println(res);\n }\n}", "Main", "public static void main(String[] args){\n \tScanner s=new Scanner(System.in);\n int n=s.nextInt();\n int res=(1000-n%1000)%1000;\n System.out.println(res);\n }", "main", "{\n \tScanner s=new Scanner(System.in);\n int n=s.nextInt();\n int res=(1000-n%1000)%1000;\n System.out.println(res);\n }", "Scanner s=new Scanner(System.in);", "s", "new Scanner(System.in)", "int n=s.nextInt();", "n", "s.nextInt()", "s.nextInt", "s", "int res=(1000-n%1000)%1000;", "res", "(1000-n%1000)%1000", "(1000-n%1000)", "1000", "n%1000", "n", "1000", "1000", "System.out.println(res)", "System.out.println", "System.out", "System", "System.out", "res", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args){\n \tScanner s=new Scanner(System.in);\n int n=s.nextInt();\n int res=(1000-n%1000)%1000;\n System.out.println(res);\n }\n}", "public class Main{\n\tpublic static void main(String[] args){\n \tScanner s=new Scanner(System.in);\n int n=s.nextInt();\n int res=(1000-n%1000)%1000;\n System.out.println(res);\n }\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner s=new Scanner(System.in); int n=s.nextInt(); int res=(1000-n%1000)%1000; System.out.println(res); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 17, 4, 18, 18, 13, 13, 17, 30, 41, 13, 2, 13, 17, 4, 18, 18, 13, 13, 2, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 46, 5 ], [ 46, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 18, 22 ], [ 17, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 23, 28 ], [ 17, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 32, 34 ], [ 29, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 40, 41 ], [ 40, 42 ], [ 6, 43 ], [ 43, 44 ], [ 0, 45 ], [ 45, 46 ], [ 45, 47 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tif(n%1000==0) System.out.println(\"0\");\n\t\telse\n\t\t{\n\t\t\tint c=n%1000;\n\t\t\tSystem.out.println(1000-c);\n\t\t}\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tif(n%1000==0) System.out.println(\"0\");\n\t\telse\n\t\t{\n\t\t\tint c=n%1000;\n\t\t\tSystem.out.println(1000-c);\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tif(n%1000==0) System.out.println(\"0\");\n\t\telse\n\t\t{\n\t\t\tint c=n%1000;\n\t\t\tSystem.out.println(1000-c);\n\t\t}\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tif(n%1000==0) System.out.println(\"0\");\n\t\telse\n\t\t{\n\t\t\tint c=n%1000;\n\t\t\tSystem.out.println(1000-c);\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int n=scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "if(n%1000==0) System.out.println(\"0\");\n\t\telse\n\t\t{\n\t\t\tint c=n%1000;\n\t\t\tSystem.out.println(1000-c);\n\t\t}", "n%1000==0", "n%1000", "n", "1000", "0", "System.out.println(\"0\")", "System.out.println", "System.out", "System", "System.out", "\"0\"", "{\n\t\t\tint c=n%1000;\n\t\t\tSystem.out.println(1000-c);\n\t\t}", "int c=n%1000;", "c", "n%1000", "n", "1000", "System.out.println(1000-c)", "System.out.println", "System.out", "System", "System.out", "1000-c", "1000", "c", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tif(n%1000==0) System.out.println(\"0\");\n\t\telse\n\t\t{\n\t\t\tint c=n%1000;\n\t\t\tSystem.out.println(1000-c);\n\t\t}\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tif(n%1000==0) System.out.println(\"0\");\n\t\telse\n\t\t{\n\t\t\tint c=n%1000;\n\t\t\tSystem.out.println(1000-c);\n\t\t}\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n=scan.nextInt(); if(n%1000==0) System.out.println("0"); else { int c=n%1000; System.out.println(1000-c); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 2, 17, 2, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 45, 8 ], [ 45, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 21, 25 ], [ 20, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 20, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 39, 41 ], [ 9, 42 ], [ 42, 43 ], [ 0, 44 ], [ 44, 45 ], [ 44, 46 ] ]
[ "import java.util.*;\nimport java.io.*;\n\npublic class Main {\n public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n if(N % 1000 == 0)\n System.out.println(0);\n else\n System.out.println(1000 - N % 1000);\n }\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "public class Main {\n public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n if(N % 1000 == 0)\n System.out.println(0);\n else\n System.out.println(1000 - N % 1000);\n }\n}", "Main", "public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n if(N % 1000 == 0)\n System.out.println(0);\n else\n System.out.println(1000 - N % 1000);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n if(N % 1000 == 0)\n System.out.println(0);\n else\n System.out.println(1000 - N % 1000);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "if(N % 1000 == 0)\n System.out.println(0);\n else\n System.out.println(1000 - N % 1000);", "N % 1000 == 0", "N % 1000", "N", "1000", "0", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "System.out.println(1000 - N % 1000)", "System.out.println", "System.out", "System", "System.out", "1000 - N % 1000", "1000", "N % 1000", "N", "1000", "String args[]", "args", "public class Main {\n public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n if(N % 1000 == 0)\n System.out.println(0);\n else\n System.out.println(1000 - N % 1000);\n }\n}", "public class Main {\n public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n if(N % 1000 == 0)\n System.out.println(0);\n else\n System.out.println(1000 - N % 1000);\n }\n}", "Main" ]
import java.util.*; import java.io.*; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); if(N % 1000 == 0) System.out.println(0); else System.out.println(1000 - N % 1000); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 2, 2, 2, 17, 17, 17, 17, 41, 13, 39, 17, 40, 17, 17, 17, 41, 13, 39, 17, 17, 40, 17, 17, 12, 13, 30, 41, 13, 4, 13, 0, 13, 17, 4, 13, 8, 2, 13, 17, 17, 2, 17, 13, 12, 13, 30, 41, 13, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 2, 13, 2, 4, 18, 13, 2, 13, 13, 41, 13, 18, 13, 13, 0, 18, 13, 13, 18, 13, 13, 0, 18, 13, 13, 13, 23, 13, 12, 13, 30, 4, 18, 13, 13, 23, 13, 12, 13, 30, 4, 18, 13, 13, 23, 13, 12, 13, 30, 0, 13, 20, 0, 13, 20, 4, 13, 4, 18, 13, 12, 13, 30, 20, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 0, 13, 17, 29, 17, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 38, 5, 13, 30, 0, 13, 17, 29, 17, 30, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 284, 8 ], [ 284, 9 ], [ 9, 10 ], [ 284, 11 ], [ 11, 12 ], [ 284, 13 ], [ 13, 14 ], [ 284, 15 ], [ 15, 16 ], [ 284, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 21, 21 ], [ 21, 22 ], [ 21, 23 ], [ 21, 24 ], [ 19, 25 ], [ 284, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 28, 32 ], [ 28, 33 ], [ 284, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 36, 38 ], [ 36, 39 ], [ 39, 40 ], [ 36, 41 ], [ 284, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 44, 49 ], [ 49, 50 ], [ 49, 51 ], [ 44, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 54, 59 ], [ 59, 60 ], [ 59, 61 ], [ 284, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 67, 69 ], [ 64, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 75, 76 ], [ 75, 77 ], [ 70, 78 ], [ 78, 79 ], [ 79, 80 ], [ 70, 81 ], [ 82, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 87, 91 ], [ 91, 92 ], [ 91, 93 ], [ 82, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 96, 98 ], [ 82, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 103, 104 ], [ 103, 105 ], [ 82, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 62, 111 ], [ 111, 112 ], [ 284, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 116, 119 ], [ 113, 120 ], [ 120, 121 ], [ 284, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 125, 128 ], [ 122, 129 ], [ 129, 130 ], [ 284, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 133, 137 ], [ 137, 138 ], [ 137, 139 ], [ 133, 140 ], [ 140, 141 ], [ 133, 142 ], [ 142, 143 ], [ 143, 144 ], [ 284, 145 ], [ 145, 146 ], [ 145, 147 ], [ 147, 148 ], [ 145, 149 ], [ 149, 150 ], [ 284, 151 ], [ 151, 152 ], [ 151, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 153, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 160, 162 ], [ 158, 163 ], [ 163, 164 ], [ 163, 165 ], [ 158, 166 ], [ 166, 167 ], [ 167, 168 ], [ 158, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 171, 173 ], [ 170, 174 ], [ 174, 175 ], [ 153, 176 ], [ 176, 177 ], [ 151, 178 ], [ 178, 179 ], [ 284, 180 ], [ 180, 181 ], [ 180, 182 ], [ 182, 183 ], [ 183, 184 ], [ 183, 185 ], [ 182, 187 ], [ 187, 188 ], [ 188, 189 ], [ 189, 190 ], [ 189, 191 ], [ 187, 192 ], [ 192, 193 ], [ 192, 194 ], [ 187, 195 ], [ 195, 196 ], [ 196, 197 ], [ 187, 198 ], [ 198, 199 ], [ 199, 200 ], [ 200, 201 ], [ 200, 202 ], [ 199, 203 ], [ 203, 204 ], [ 182, 205 ], [ 205, 206 ], [ 180, 207 ], [ 207, 208 ], [ 284, 209 ], [ 209, 210 ], [ 209, 211 ], [ 211, 212 ], [ 212, 213 ], [ 213, 214 ], [ 214, 215 ], [ 214, 216 ], [ 213, 217 ], [ 217, 218 ], [ 218, 219 ], [ 219, 220 ], [ 212, 221 ], [ 221, 222 ], [ 222, 223 ], [ 223, 224 ], [ 223, 225 ], [ 225, 226 ], [ 226, 227 ], [ 226, 228 ], [ 225, 229 ], [ 229, 230 ], [ 222, 231 ], [ 231, 232 ], [ 232, 233 ], [ 232, 234 ], [ 211, 235 ], [ 235, 236 ], [ 236, 237 ], [ 237, 238 ], [ 284, 239 ], [ 239, 240 ], [ 239, 241 ], [ 241, 242 ], [ 242, 243 ], [ 243, 244 ], [ 243, 245 ], [ 245, 246 ], [ 246, 247 ], [ 246, 248 ], [ 245, 249 ], [ 249, 250 ], [ 242, 251 ], [ 251, 252 ], [ 252, 253 ], [ 253, 254 ], [ 254, 255 ], [ 284, 256 ], [ 256, 257 ], [ 256, 258 ], [ 258, 259 ], [ 259, 260 ], [ 260, 261 ], [ 261, 262 ], [ 260, 263 ], [ 263, 264 ], [ 284, 265 ], [ 265, 266 ], [ 265, 267 ], [ 267, 268 ], [ 268, 269 ], [ 269, 270 ], [ 270, 271 ], [ 269, 272 ], [ 272, 273 ], [ 284, 274 ], [ 274, 275 ], [ 274, 276 ], [ 276, 277 ], [ 277, 278 ], [ 278, 279 ], [ 279, 280 ], [ 278, 281 ], [ 281, 282 ], [ 0, 283 ], [ 283, 284 ], [ 283, 285 ] ]
[ "import java.util.*;\nimport java.io.*;\n\n// Template for atcoder\npublic class Main {\n\n BufferedReader br;\n PrintWriter out;\n StringTokenizer st;\n boolean eof;\n final long MOD = 1000L * 1000L * 1000L + 7;\n private static final int[] dx = {0, -1, 0, 1};\n private static final int[] dy = {1, 0, -1, 0};\n\n void solve() throws IOException {\n int n = nextInt();\n n %= 1000;\n outln(n == 0 ? 0 : 1000 - n);\n }\n\n void shuffle(int[] a) {\n int n = a.length;\n for(int i = 0; i < n; i++) {\n int r = i + (int) (Math.random() * (n - i));\n int tmp = a[i];\n a[i] = a[r];\n a[r] = tmp;\n }\n }\n private void outln(Object o) {\n out.println(o);\n }\n private void out(Object o) {\n out.print(o);\n }\n public Main() throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n out = new PrintWriter(System.out);\n solve();\n out.close();\n }\n public static void main(String[] args) throws IOException {\n new Main();\n }\n\n public long[] nextLongArr(int n) throws IOException{\n long[] res = new long[n];\n for(int i = 0; i < n; i++)\n res[i] = nextLong();\n return res;\n }\n public int[] nextIntArr(int n) throws IOException {\n int[] res = new int[n];\n for(int i = 0; i < n; i++)\n res[i] = nextInt();\n return res;\n }\n public String nextToken() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n eof = true;\n return null;\n }\n }\n return st.nextToken();\n }\n public String nextString() {\n try {\n return br.readLine();\n } catch (IOException e) {\n eof = true;\n return null;\n }\n }\n public int nextInt() throws IOException {\n return Integer.parseInt(nextToken());\n }\n public long nextLong() throws IOException {\n return Long.parseLong(nextToken());\n }\n public double nextDouble() throws IOException {\n return Double.parseDouble(nextToken());\n }\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "public class Main {\n\n BufferedReader br;\n PrintWriter out;\n StringTokenizer st;\n boolean eof;\n final long MOD = 1000L * 1000L * 1000L + 7;\n private static final int[] dx = {0, -1, 0, 1};\n private static final int[] dy = {1, 0, -1, 0};\n\n void solve() throws IOException {\n int n = nextInt();\n n %= 1000;\n outln(n == 0 ? 0 : 1000 - n);\n }\n\n void shuffle(int[] a) {\n int n = a.length;\n for(int i = 0; i < n; i++) {\n int r = i + (int) (Math.random() * (n - i));\n int tmp = a[i];\n a[i] = a[r];\n a[r] = tmp;\n }\n }\n private void outln(Object o) {\n out.println(o);\n }\n private void out(Object o) {\n out.print(o);\n }\n public Main() throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n out = new PrintWriter(System.out);\n solve();\n out.close();\n }\n public static void main(String[] args) throws IOException {\n new Main();\n }\n\n public long[] nextLongArr(int n) throws IOException{\n long[] res = new long[n];\n for(int i = 0; i < n; i++)\n res[i] = nextLong();\n return res;\n }\n public int[] nextIntArr(int n) throws IOException {\n int[] res = new int[n];\n for(int i = 0; i < n; i++)\n res[i] = nextInt();\n return res;\n }\n public String nextToken() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n eof = true;\n return null;\n }\n }\n return st.nextToken();\n }\n public String nextString() {\n try {\n return br.readLine();\n } catch (IOException e) {\n eof = true;\n return null;\n }\n }\n public int nextInt() throws IOException {\n return Integer.parseInt(nextToken());\n }\n public long nextLong() throws IOException {\n return Long.parseLong(nextToken());\n }\n public double nextDouble() throws IOException {\n return Double.parseDouble(nextToken());\n }\n}", "Main", "BufferedReader br;", "br", "PrintWriter out;", "out", "StringTokenizer st;", "st", "boolean eof;", "eof", "final long MOD = 1000L * 1000L * 1000L + 7;", "MOD", "1000L * 1000L * 1000L + 7", "1000L * 1000L * 1000L", "1000L * 1000L * 1000L", "1000L", "1000L", "1000L", "7", "private static final int[] dx = {0, -1, 0, 1};", "dx", "{0, -1, 0, 1}", "0", "-1", "1", "0", "1", "private static final int[] dy = {1, 0, -1, 0};", "dy", "{1, 0, -1, 0}", "1", "0", "-1", "1", "0", "void solve() throws IOException {\n int n = nextInt();\n n %= 1000;\n outln(n == 0 ? 0 : 1000 - n);\n }", "solve", "{\n int n = nextInt();\n n %= 1000;\n outln(n == 0 ? 0 : 1000 - n);\n }", "int n = nextInt();", "n", "nextInt()", "nextInt", "n %= 1000", "n", "1000", "outln(n == 0 ? 0 : 1000 - n)", "outln", "n == 0 ? 0 : 1000 - n", "n == 0", "n", "0", "0", "1000 - n", "1000", "n", "void shuffle(int[] a) {\n int n = a.length;\n for(int i = 0; i < n; i++) {\n int r = i + (int) (Math.random() * (n - i));\n int tmp = a[i];\n a[i] = a[r];\n a[r] = tmp;\n }\n }", "shuffle", "{\n int n = a.length;\n for(int i = 0; i < n; i++) {\n int r = i + (int) (Math.random() * (n - i));\n int tmp = a[i];\n a[i] = a[r];\n a[r] = tmp;\n }\n }", "int n = a.length;", "n", "a.length", "a", "a.length", "for(int i = 0; i < n; i++) {\n int r = i + (int) (Math.random() * (n - i));\n int tmp = a[i];\n a[i] = a[r];\n a[r] = tmp;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n int r = i + (int) (Math.random() * (n - i));\n int tmp = a[i];\n a[i] = a[r];\n a[r] = tmp;\n }", "{\n int r = i + (int) (Math.random() * (n - i));\n int tmp = a[i];\n a[i] = a[r];\n a[r] = tmp;\n }", "int r = i + (int) (Math.random() * (n - i));", "r", "i + (int) (Math.random() * (n - i))", "i", "(int) (Math.random() * (n - i))", "Math.random()", "Math.random", "Math", "(n - i)", "n", "i", "int tmp = a[i];", "tmp", "a[i]", "a", "i", "a[i] = a[r]", "a[i]", "a", "i", "a[r]", "a", "r", "a[r] = tmp", "a[r]", "a", "r", "tmp", "int[] a", "a", "private void outln(Object o) {\n out.println(o);\n }", "outln", "{\n out.println(o);\n }", "out.println(o)", "out.println", "out", "o", "Object o", "o", "private void out(Object o) {\n out.print(o);\n }", "out", "{\n out.print(o);\n }", "out.print(o)", "out.print", "out", "o", "Object o", "o", "public Main() throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n out = new PrintWriter(System.out);\n solve();\n out.close();\n }", "Main", "{\n br = new BufferedReader(new InputStreamReader(System.in));\n out = new PrintWriter(System.out);\n solve();\n out.close();\n }", "br = new BufferedReader(new InputStreamReader(System.in))", "br", "new BufferedReader(new InputStreamReader(System.in))", "out = new PrintWriter(System.out)", "out", "new PrintWriter(System.out)", "solve()", "solve", "out.close()", "out.close", "out", "public static void main(String[] args) throws IOException {\n new Main();\n }", "main", "{\n new Main();\n }", "new Main()", "String[] args", "args", "public long[] nextLongArr(int n) throws IOException{\n long[] res = new long[n];\n for(int i = 0; i < n; i++)\n res[i] = nextLong();\n return res;\n }", "nextLongArr", "{\n long[] res = new long[n];\n for(int i = 0; i < n; i++)\n res[i] = nextLong();\n return res;\n }", "long[] res = new long[n];", "res", "new long[n]", "n", "for(int i = 0; i < n; i++)\n res[i] = nextLong();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "res[i] = nextLong();", "res[i] = nextLong()", "res[i]", "res", "i", "nextLong()", "nextLong", "return res;", "res", "int n", "n", "public int[] nextIntArr(int n) throws IOException {\n int[] res = new int[n];\n for(int i = 0; i < n; i++)\n res[i] = nextInt();\n return res;\n }", "nextIntArr", "{\n int[] res = new int[n];\n for(int i = 0; i < n; i++)\n res[i] = nextInt();\n return res;\n }", "int[] res = new int[n];", "res", "new int[n]", "n", "for(int i = 0; i < n; i++)\n res[i] = nextInt();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "res[i] = nextInt();", "res[i] = nextInt()", "res[i]", "res", "i", "nextInt()", "nextInt", "return res;", "res", "int n", "n", "public String nextToken() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n eof = true;\n return null;\n }\n }\n return st.nextToken();\n }", "nextToken", "{\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n eof = true;\n return null;\n }\n }\n return st.nextToken();\n }", "while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n eof = true;\n return null;\n }\n }", "st == null || !st.hasMoreTokens()", "st == null", "st", "null", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n eof = true;\n return null;\n }\n }", "try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n eof = true;\n return null;\n }", "catch (Exception e) {\n eof = true;\n return null;\n }", "Exception e", "{\n eof = true;\n return null;\n }", "eof = true", "eof", "true", "return null;", "null", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "public String nextString() {\n try {\n return br.readLine();\n } catch (IOException e) {\n eof = true;\n return null;\n }\n }", "nextString", "{\n try {\n return br.readLine();\n } catch (IOException e) {\n eof = true;\n return null;\n }\n }", "try {\n return br.readLine();\n } catch (IOException e) {\n eof = true;\n return null;\n }", "catch (IOException e) {\n eof = true;\n return null;\n }", "IOException e", "{\n eof = true;\n return null;\n }", "eof = true", "eof", "true", "return null;", "null", "{\n return br.readLine();\n }", "return br.readLine();", "br.readLine()", "br.readLine", "br", "public int nextInt() throws IOException {\n return Integer.parseInt(nextToken());\n }", "nextInt", "{\n return Integer.parseInt(nextToken());\n }", "return Integer.parseInt(nextToken());", "Integer.parseInt(nextToken())", "Integer.parseInt", "Integer", "nextToken()", "nextToken", "public long nextLong() throws IOException {\n return Long.parseLong(nextToken());\n }", "nextLong", "{\n return Long.parseLong(nextToken());\n }", "return Long.parseLong(nextToken());", "Long.parseLong(nextToken())", "Long.parseLong", "Long", "nextToken()", "nextToken", "public double nextDouble() throws IOException {\n return Double.parseDouble(nextToken());\n }", "nextDouble", "{\n return Double.parseDouble(nextToken());\n }", "return Double.parseDouble(nextToken());", "Double.parseDouble(nextToken())", "Double.parseDouble", "Double", "nextToken()", "nextToken", "public class Main {\n\n BufferedReader br;\n PrintWriter out;\n StringTokenizer st;\n boolean eof;\n final long MOD = 1000L * 1000L * 1000L + 7;\n private static final int[] dx = {0, -1, 0, 1};\n private static final int[] dy = {1, 0, -1, 0};\n\n void solve() throws IOException {\n int n = nextInt();\n n %= 1000;\n outln(n == 0 ? 0 : 1000 - n);\n }\n\n void shuffle(int[] a) {\n int n = a.length;\n for(int i = 0; i < n; i++) {\n int r = i + (int) (Math.random() * (n - i));\n int tmp = a[i];\n a[i] = a[r];\n a[r] = tmp;\n }\n }\n private void outln(Object o) {\n out.println(o);\n }\n private void out(Object o) {\n out.print(o);\n }\n public Main() throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n out = new PrintWriter(System.out);\n solve();\n out.close();\n }\n public static void main(String[] args) throws IOException {\n new Main();\n }\n\n public long[] nextLongArr(int n) throws IOException{\n long[] res = new long[n];\n for(int i = 0; i < n; i++)\n res[i] = nextLong();\n return res;\n }\n public int[] nextIntArr(int n) throws IOException {\n int[] res = new int[n];\n for(int i = 0; i < n; i++)\n res[i] = nextInt();\n return res;\n }\n public String nextToken() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n eof = true;\n return null;\n }\n }\n return st.nextToken();\n }\n public String nextString() {\n try {\n return br.readLine();\n } catch (IOException e) {\n eof = true;\n return null;\n }\n }\n public int nextInt() throws IOException {\n return Integer.parseInt(nextToken());\n }\n public long nextLong() throws IOException {\n return Long.parseLong(nextToken());\n }\n public double nextDouble() throws IOException {\n return Double.parseDouble(nextToken());\n }\n}", "public class Main {\n\n BufferedReader br;\n PrintWriter out;\n StringTokenizer st;\n boolean eof;\n final long MOD = 1000L * 1000L * 1000L + 7;\n private static final int[] dx = {0, -1, 0, 1};\n private static final int[] dy = {1, 0, -1, 0};\n\n void solve() throws IOException {\n int n = nextInt();\n n %= 1000;\n outln(n == 0 ? 0 : 1000 - n);\n }\n\n void shuffle(int[] a) {\n int n = a.length;\n for(int i = 0; i < n; i++) {\n int r = i + (int) (Math.random() * (n - i));\n int tmp = a[i];\n a[i] = a[r];\n a[r] = tmp;\n }\n }\n private void outln(Object o) {\n out.println(o);\n }\n private void out(Object o) {\n out.print(o);\n }\n public Main() throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n out = new PrintWriter(System.out);\n solve();\n out.close();\n }\n public static void main(String[] args) throws IOException {\n new Main();\n }\n\n public long[] nextLongArr(int n) throws IOException{\n long[] res = new long[n];\n for(int i = 0; i < n; i++)\n res[i] = nextLong();\n return res;\n }\n public int[] nextIntArr(int n) throws IOException {\n int[] res = new int[n];\n for(int i = 0; i < n; i++)\n res[i] = nextInt();\n return res;\n }\n public String nextToken() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n eof = true;\n return null;\n }\n }\n return st.nextToken();\n }\n public String nextString() {\n try {\n return br.readLine();\n } catch (IOException e) {\n eof = true;\n return null;\n }\n }\n public int nextInt() throws IOException {\n return Integer.parseInt(nextToken());\n }\n public long nextLong() throws IOException {\n return Long.parseLong(nextToken());\n }\n public double nextDouble() throws IOException {\n return Double.parseDouble(nextToken());\n }\n}", "Main" ]
import java.util.*; import java.io.*; // Template for atcoder public class Main { BufferedReader br; PrintWriter out; StringTokenizer st; boolean eof; final long MOD = 1000L * 1000L * 1000L + 7; private static final int[] dx = {0, -1, 0, 1}; private static final int[] dy = {1, 0, -1, 0}; void solve() throws IOException { int n = nextInt(); n %= 1000; outln(n == 0 ? 0 : 1000 - n); } void shuffle(int[] a) { int n = a.length; for(int i = 0; i < n; i++) { int r = i + (int) (Math.random() * (n - i)); int tmp = a[i]; a[i] = a[r]; a[r] = tmp; } } private void outln(Object o) { out.println(o); } private void out(Object o) { out.print(o); } public Main() throws IOException { br = new BufferedReader(new InputStreamReader(System.in)); out = new PrintWriter(System.out); solve(); out.close(); } public static void main(String[] args) throws IOException { new Main(); } public long[] nextLongArr(int n) throws IOException{ long[] res = new long[n]; for(int i = 0; i < n; i++) res[i] = nextLong(); return res; } public int[] nextIntArr(int n) throws IOException { int[] res = new int[n]; for(int i = 0; i < n; i++) res[i] = nextInt(); return res; } public String nextToken() { while (st == null || !st.hasMoreTokens()) { try { st = new StringTokenizer(br.readLine()); } catch (Exception e) { eof = true; return null; } } return st.nextToken(); } public String nextString() { try { return br.readLine(); } catch (IOException e) { eof = true; return null; } } public int nextInt() throws IOException { return Integer.parseInt(nextToken()); } public long nextLong() throws IOException { return Long.parseLong(nextToken()); } public double nextDouble() throws IOException { return Double.parseDouble(nextToken()); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 41, 13, 41, 13, 41, 13, 17, 12, 13, 30, 41, 13, 4, 13, 41, 13, 8, 2, 2, 13, 17, 17, 17, 40, 2, 13, 2, 17, 2, 2, 13, 17, 17, 4, 18, 13, 13, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 20, 4, 18, 13, 41, 13, 4, 18, 13, 14, 13, 4, 18, 18, 13, 13, 2, 17, 2, 13, 13, 4, 18, 13, 23, 13, 12, 13, 30, 0, 13, 20, 0, 13, 20, 0, 13, 20, 12, 13, 30, 29, 4, 18, 13, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 18, 13, 12, 13, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 20, 18, 13, 13, 11, 1, 41, 13, 17, 41, 13, 18, 13, 13, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 29, 13, 12, 13, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 20, 18, 13, 13, 11, 1, 41, 13, 17, 41, 13, 18, 13, 13, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 29, 13, 12, 13, 30, 4, 18, 13, 4, 18, 13, 4, 18, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 4, 8 ], [ 8, 9 ], [ 4, 10 ], [ 10, 11 ], [ 4, 12 ], [ 12, 13 ], [ 12, 14 ], [ 4, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 17, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 25, 29 ], [ 24, 30 ], [ 24, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 17, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 4, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 47, 53 ], [ 53, 54 ], [ 53, 55 ], [ 47, 56 ], [ 56, 57 ], [ 57, 58 ], [ 47, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 47, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 73, 75 ], [ 47, 76 ], [ 76, 77 ], [ 77, 78 ], [ 45, 79 ], [ 79, 80 ], [ 4, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 87, 88 ], [ 87, 89 ], [ 83, 90 ], [ 90, 91 ], [ 90, 92 ], [ 4, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 100, 101 ], [ 101, 102 ], [ 4, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 107, 110 ], [ 110, 111 ], [ 111, 112 ], [ 4, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 118, 123 ], [ 115, 124 ], [ 124, 125 ], [ 124, 126 ], [ 127, 128 ], [ 127, 129 ], [ 115, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 131, 135 ], [ 135, 136 ], [ 135, 137 ], [ 137, 138 ], [ 137, 139 ], [ 130, 140 ], [ 140, 141 ], [ 140, 142 ], [ 130, 143 ], [ 143, 144 ], [ 144, 145 ], [ 130, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 147, 151 ], [ 151, 152 ], [ 152, 153 ], [ 151, 154 ], [ 154, 155 ], [ 154, 156 ], [ 115, 157 ], [ 157, 158 ], [ 4, 159 ], [ 159, 160 ], [ 159, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 167, 168 ], [ 164, 169 ], [ 161, 170 ], [ 170, 171 ], [ 170, 172 ], [ 173, 174 ], [ 173, 175 ], [ 161, 176 ], [ 176, 177 ], [ 177, 178 ], [ 178, 179 ], [ 178, 180 ], [ 177, 181 ], [ 181, 182 ], [ 181, 183 ], [ 183, 184 ], [ 183, 185 ], [ 176, 186 ], [ 186, 187 ], [ 186, 188 ], [ 176, 189 ], [ 189, 190 ], [ 190, 191 ], [ 176, 192 ], [ 192, 193 ], [ 193, 194 ], [ 194, 195 ], [ 194, 196 ], [ 193, 197 ], [ 197, 198 ], [ 198, 199 ], [ 197, 200 ], [ 200, 201 ], [ 200, 202 ], [ 161, 203 ], [ 203, 204 ], [ 4, 205 ], [ 205, 206 ], [ 205, 207 ], [ 207, 208 ], [ 208, 209 ], [ 209, 210 ], [ 207, 211 ], [ 211, 212 ], [ 212, 213 ], [ 207, 214 ], [ 214, 215 ], [ 215, 216 ] ]
[ "import java.io.*;\n\nclass Main {\n BufferedReader bf;\n PrintWriter writer;\n StringBuilder sb;\n static boolean local_system = false;\n\n void run() throws IOException {\n int n = getInt();\n int a = n % 1000 == 0 ? 0 : -(n - 1000*(n/1000+1));\n writer.println(a); \n }\n\n public static void main(String[] args) throws IOException {\n long start_time = System.currentTimeMillis();\n Main obj = new Main();\n obj.run();\n long end_time = System.currentTimeMillis();\n if (local_system) obj.writer.println(\"Time : \" + (end_time - start_time));\n obj.close();\n }\n\n public Main(){\n writer = new PrintWriter(System.out);\n bf = new BufferedReader(new InputStreamReader(System.in));\n sb = new StringBuilder();\n }\n\n public int getInt() throws IOException {\n return Integer.parseInt(bf.readLine());\n }\n\n public long getLong() throws IOException {\n return Long.parseLong(bf.readLine());\n }\n\n public int[] ints() throws IOException {\n String[] data = bf.readLine().split(\" \");\n int[] send = new int[data.length];\n for (int i = 0, h = data.length; i < h; i++) send[i] = Integer.parseInt(data[i]);\n return send;\n }\n\n public long[] longs() throws IOException {\n String[] data = bf.readLine().split(\" \");\n long[] send = new long[data.length];\n for (int i = 0, h = data.length; i < h; i++) send[i] = Long.parseLong(data[i]);\n return send;\n }\n\n public void close() throws IOException{\n writer.flush();\n writer.close();\n bf.close();\n }\n}\n\n", "import java.io.*;", "io.*", "java", "class Main {\n BufferedReader bf;\n PrintWriter writer;\n StringBuilder sb;\n static boolean local_system = false;\n\n void run() throws IOException {\n int n = getInt();\n int a = n % 1000 == 0 ? 0 : -(n - 1000*(n/1000+1));\n writer.println(a); \n }\n\n public static void main(String[] args) throws IOException {\n long start_time = System.currentTimeMillis();\n Main obj = new Main();\n obj.run();\n long end_time = System.currentTimeMillis();\n if (local_system) obj.writer.println(\"Time : \" + (end_time - start_time));\n obj.close();\n }\n\n public Main(){\n writer = new PrintWriter(System.out);\n bf = new BufferedReader(new InputStreamReader(System.in));\n sb = new StringBuilder();\n }\n\n public int getInt() throws IOException {\n return Integer.parseInt(bf.readLine());\n }\n\n public long getLong() throws IOException {\n return Long.parseLong(bf.readLine());\n }\n\n public int[] ints() throws IOException {\n String[] data = bf.readLine().split(\" \");\n int[] send = new int[data.length];\n for (int i = 0, h = data.length; i < h; i++) send[i] = Integer.parseInt(data[i]);\n return send;\n }\n\n public long[] longs() throws IOException {\n String[] data = bf.readLine().split(\" \");\n long[] send = new long[data.length];\n for (int i = 0, h = data.length; i < h; i++) send[i] = Long.parseLong(data[i]);\n return send;\n }\n\n public void close() throws IOException{\n writer.flush();\n writer.close();\n bf.close();\n }\n}", "Main", "BufferedReader bf;", "bf", "PrintWriter writer;", "writer", "StringBuilder sb;", "sb", "static boolean local_system = false;", "local_system", "false", "void run() throws IOException {\n int n = getInt();\n int a = n % 1000 == 0 ? 0 : -(n - 1000*(n/1000+1));\n writer.println(a); \n }", "run", "{\n int n = getInt();\n int a = n % 1000 == 0 ? 0 : -(n - 1000*(n/1000+1));\n writer.println(a); \n }", "int n = getInt();", "n", "getInt()", "getInt", "int a = n % 1000 == 0 ? 0 : -(n - 1000*(n/1000+1));", "a", "n % 1000 == 0 ? 0 : -(n - 1000*(n/1000+1))", "n % 1000 == 0", "n % 1000", "n", "1000", "0", "0", "-(n - 1000*(n/1000+1))", "(n - 1000*(n/1000+1))", "n", "1000*(n/1000+1)", "1000", "(n/1000+1)", "n/1000", "n", "1000", "1", "writer.println(a)", "writer.println", "writer", "a", "public static void main(String[] args) throws IOException {\n long start_time = System.currentTimeMillis();\n Main obj = new Main();\n obj.run();\n long end_time = System.currentTimeMillis();\n if (local_system) obj.writer.println(\"Time : \" + (end_time - start_time));\n obj.close();\n }", "main", "{\n long start_time = System.currentTimeMillis();\n Main obj = new Main();\n obj.run();\n long end_time = System.currentTimeMillis();\n if (local_system) obj.writer.println(\"Time : \" + (end_time - start_time));\n obj.close();\n }", "long start_time = System.currentTimeMillis();", "start_time", "System.currentTimeMillis()", "System.currentTimeMillis", "System", "Main obj = new Main();", "obj", "new Main()", "obj.run()", "obj.run", "obj", "long end_time = System.currentTimeMillis();", "end_time", "System.currentTimeMillis()", "System.currentTimeMillis", "System", "if (local_system) obj.writer.println(\"Time : \" + (end_time - start_time));", "local_system", "obj.writer.println(\"Time : \" + (end_time - start_time))", "obj.writer.println", "obj.writer", "obj", "obj.writer", "\"Time : \" + (end_time - start_time)", "\"Time : \"", "(end_time - start_time)", "end_time", "start_time", "obj.close()", "obj.close", "obj", "String[] args", "args", "public Main(){\n writer = new PrintWriter(System.out);\n bf = new BufferedReader(new InputStreamReader(System.in));\n sb = new StringBuilder();\n }", "Main", "{\n writer = new PrintWriter(System.out);\n bf = new BufferedReader(new InputStreamReader(System.in));\n sb = new StringBuilder();\n }", "writer = new PrintWriter(System.out)", "writer", "new PrintWriter(System.out)", "bf = new BufferedReader(new InputStreamReader(System.in))", "bf", "new BufferedReader(new InputStreamReader(System.in))", "sb = new StringBuilder()", "sb", "new StringBuilder()", "public int getInt() throws IOException {\n return Integer.parseInt(bf.readLine());\n }", "getInt", "{\n return Integer.parseInt(bf.readLine());\n }", "return Integer.parseInt(bf.readLine());", "Integer.parseInt(bf.readLine())", "Integer.parseInt", "Integer", "bf.readLine()", "bf.readLine", "bf", "public long getLong() throws IOException {\n return Long.parseLong(bf.readLine());\n }", "getLong", "{\n return Long.parseLong(bf.readLine());\n }", "return Long.parseLong(bf.readLine());", "Long.parseLong(bf.readLine())", "Long.parseLong", "Long", "bf.readLine()", "bf.readLine", "bf", "public int[] ints() throws IOException {\n String[] data = bf.readLine().split(\" \");\n int[] send = new int[data.length];\n for (int i = 0, h = data.length; i < h; i++) send[i] = Integer.parseInt(data[i]);\n return send;\n }", "ints", "{\n String[] data = bf.readLine().split(\" \");\n int[] send = new int[data.length];\n for (int i = 0, h = data.length; i < h; i++) send[i] = Integer.parseInt(data[i]);\n return send;\n }", "String[] data = bf.readLine().split(\" \");", "data", "bf.readLine().split(\" \")", "bf.readLine().split", "bf.readLine()", "bf.readLine", "bf", "\" \"", "int[] send = new int[data.length];", "send", "new int[data.length]", "data.length", "data", "data.length", "for (int i = 0, h = data.length; i < h; i++) send[i] = Integer.parseInt(data[i]);", "int i = 0, h = data.length;", "int i = 0", "i", "0", "h = data.length;", "h", "data.length", "data", "data.length", "i < h", "i", "h", "i++", "i++", "i", "send[i] = Integer.parseInt(data[i]);", "send[i] = Integer.parseInt(data[i])", "send[i]", "send", "i", "Integer.parseInt(data[i])", "Integer.parseInt", "Integer", "data[i]", "data", "i", "return send;", "send", "public long[] longs() throws IOException {\n String[] data = bf.readLine().split(\" \");\n long[] send = new long[data.length];\n for (int i = 0, h = data.length; i < h; i++) send[i] = Long.parseLong(data[i]);\n return send;\n }", "longs", "{\n String[] data = bf.readLine().split(\" \");\n long[] send = new long[data.length];\n for (int i = 0, h = data.length; i < h; i++) send[i] = Long.parseLong(data[i]);\n return send;\n }", "String[] data = bf.readLine().split(\" \");", "data", "bf.readLine().split(\" \")", "bf.readLine().split", "bf.readLine()", "bf.readLine", "bf", "\" \"", "long[] send = new long[data.length];", "send", "new long[data.length]", "data.length", "data", "data.length", "for (int i = 0, h = data.length; i < h; i++) send[i] = Long.parseLong(data[i]);", "int i = 0, h = data.length;", "int i = 0", "i", "0", "h = data.length;", "h", "data.length", "data", "data.length", "i < h", "i", "h", "i++", "i++", "i", "send[i] = Long.parseLong(data[i]);", "send[i] = Long.parseLong(data[i])", "send[i]", "send", "i", "Long.parseLong(data[i])", "Long.parseLong", "Long", "data[i]", "data", "i", "return send;", "send", "public void close() throws IOException{\n writer.flush();\n writer.close();\n bf.close();\n }", "close", "{\n writer.flush();\n writer.close();\n bf.close();\n }", "writer.flush()", "writer.flush", "writer", "writer.close()", "writer.close", "writer", "bf.close()", "bf.close", "bf" ]
import java.io.*; class Main { BufferedReader bf; PrintWriter writer; StringBuilder sb; static boolean local_system = false; void run() throws IOException { int n = getInt(); int a = n % 1000 == 0 ? 0 : -(n - 1000*(n/1000+1)); writer.println(a); } public static void main(String[] args) throws IOException { long start_time = System.currentTimeMillis(); Main obj = new Main(); obj.run(); long end_time = System.currentTimeMillis(); if (local_system) obj.writer.println("Time : " + (end_time - start_time)); obj.close(); } public Main(){ writer = new PrintWriter(System.out); bf = new BufferedReader(new InputStreamReader(System.in)); sb = new StringBuilder(); } public int getInt() throws IOException { return Integer.parseInt(bf.readLine()); } public long getLong() throws IOException { return Long.parseLong(bf.readLine()); } public int[] ints() throws IOException { String[] data = bf.readLine().split(" "); int[] send = new int[data.length]; for (int i = 0, h = data.length; i < h; i++) send[i] = Integer.parseInt(data[i]); return send; } public long[] longs() throws IOException { String[] data = bf.readLine().split(" "); long[] send = new long[data.length]; for (int i = 0, h = data.length; i < h; i++) send[i] = Long.parseLong(data[i]); return send; } public void close() throws IOException{ writer.flush(); writer.close(); bf.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 42, 2, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 2, 13, 40, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 37, 5 ], [ 37, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 25, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 6, 34 ], [ 34, 35 ], [ 0, 36 ], [ 36, 37 ], [ 36, 38 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n \n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n while(N>0){\n N-=1000;\n }\n System.out.println(N*-1);\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n \n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n while(N>0){\n N-=1000;\n }\n System.out.println(N*-1);\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n // Your code here!\n \n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n while(N>0){\n N-=1000;\n }\n System.out.println(N*-1);\n }", "main", "{\n // Your code here!\n \n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n while(N>0){\n N-=1000;\n }\n System.out.println(N*-1);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "while(N>0){\n N-=1000;\n }", "N>0", "N", "0", "{\n N-=1000;\n }", "N-=1000", "N", "1000", "System.out.println(N*-1)", "System.out.println", "System.out", "System", "System.out", "N*-1", "N", "-1", "1", "String[] args", "args", "public class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n \n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n while(N>0){\n N-=1000;\n }\n System.out.println(N*-1);\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n \n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n while(N>0){\n N-=1000;\n }\n System.out.println(N*-1);\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) throws Exception { // Your code here! Scanner sc = new Scanner(System.in); int N = sc.nextInt(); while(N>0){ N-=1000; } System.out.println(N*-1); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 42, 2, 13, 17, 30, 0, 13, 17, 0, 13, 2, 17, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 42, 5 ], [ 42, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 30, 32 ], [ 8, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 6, 39 ], [ 39, 40 ], [ 0, 41 ], [ 41, 42 ], [ 41, 43 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n int num = sc.nextInt();\n int change = 0;\n \n while (num > 1000) {\n num -= 1000;\n }\n \n change = 1000 - num;\n System.out.println(change);\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n int num = sc.nextInt();\n int change = 0;\n \n while (num > 1000) {\n num -= 1000;\n }\n \n change = 1000 - num;\n System.out.println(change);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n int num = sc.nextInt();\n int change = 0;\n \n while (num > 1000) {\n num -= 1000;\n }\n \n change = 1000 - num;\n System.out.println(change);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n \n int num = sc.nextInt();\n int change = 0;\n \n while (num > 1000) {\n num -= 1000;\n }\n \n change = 1000 - num;\n System.out.println(change);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int num = sc.nextInt();", "num", "sc.nextInt()", "sc.nextInt", "sc", "int change = 0;", "change", "0", "while (num > 1000) {\n num -= 1000;\n }", "num > 1000", "num", "1000", "{\n num -= 1000;\n }", "num -= 1000", "num", "1000", "change = 1000 - num", "change", "1000 - num", "1000", "num", "System.out.println(change)", "System.out.println", "System.out", "System", "System.out", "change", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n int num = sc.nextInt();\n int change = 0;\n \n while (num > 1000) {\n num -= 1000;\n }\n \n change = 1000 - num;\n System.out.println(change);\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n int num = sc.nextInt();\n int change = 0;\n \n while (num > 1000) {\n num -= 1000;\n }\n \n change = 1000 - num;\n System.out.println(change);\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); int change = 0; while (num > 1000) { num -= 1000; } change = 1000 - num; System.out.println(change); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 2, 2, 17, 2, 2, 13, 17, 17, 13, 23, 13, 6, 13, 41, 13, 17, 41, 13, 17, 12, 13, 30, 0, 13, 20, 0, 13, 17, 23, 13, 12, 13, 30, 14, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 37, 20, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 14, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 37, 20, 30, 29, 4, 18, 13, 29, 4, 18, 13, 17, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 218, 17 ], [ 218, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 20, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 30, 34 ], [ 29, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 29, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 46, 54 ], [ 18, 55 ], [ 55, 56 ], [ 218, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 62, 63 ], [ 62, 64 ], [ 57, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 71, 72 ], [ 71, 73 ], [ 65, 74 ], [ 74, 75 ], [ 57, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 79, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 89, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 78, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 57, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 106, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 120, 121 ], [ 116, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 105, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 128, 131 ], [ 57, 132 ], [ 132, 133 ], [ 132, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 136, 139 ], [ 139, 140 ], [ 57, 141 ], [ 141, 142 ], [ 141, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 145, 148 ], [ 148, 149 ], [ 57, 150 ], [ 150, 151 ], [ 150, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 154, 157 ], [ 157, 158 ], [ 57, 159 ], [ 159, 160 ], [ 159, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 161, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 168, 170 ], [ 166, 171 ], [ 171, 172 ], [ 171, 173 ], [ 166, 174 ], [ 174, 175 ], [ 175, 176 ], [ 166, 177 ], [ 177, 178 ], [ 178, 179 ], [ 179, 180 ], [ 179, 181 ], [ 178, 182 ], [ 182, 183 ], [ 161, 184 ], [ 184, 185 ], [ 159, 186 ], [ 186, 187 ], [ 57, 188 ], [ 188, 189 ], [ 188, 190 ], [ 190, 191 ], [ 191, 192 ], [ 191, 193 ], [ 190, 195 ], [ 195, 196 ], [ 196, 197 ], [ 197, 198 ], [ 197, 199 ], [ 195, 200 ], [ 200, 201 ], [ 200, 202 ], [ 195, 203 ], [ 203, 204 ], [ 204, 205 ], [ 195, 206 ], [ 206, 207 ], [ 207, 208 ], [ 208, 209 ], [ 208, 210 ], [ 207, 211 ], [ 211, 212 ], [ 190, 213 ], [ 213, 214 ], [ 188, 215 ], [ 215, 216 ], [ 0, 217 ], [ 217, 218 ], [ 217, 219 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main {\n private static class FastScanner {\n private BufferedReader reader = null;\n private StringTokenizer tokenizer = null;\n\n public FastScanner(InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n tokenizer = null;\n }\n\n public String next() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public String nextLine() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n return reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n return tokenizer.nextToken(\"\\n\");\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public int[] nextIntArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n\n public long[] nextLongArray(int n) {\n long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }\n }\n\n public static void main(String[] args) {\n FastScanner sc = new FastScanner(System.in);\n int n = sc.nextInt();\n if (n % 1000 == 0) System.out.println(0);\n else System.out.println(1000 * (n / 1000 + 1) - n);\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "public class Main {\n private static class FastScanner {\n private BufferedReader reader = null;\n private StringTokenizer tokenizer = null;\n\n public FastScanner(InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n tokenizer = null;\n }\n\n public String next() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public String nextLine() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n return reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n return tokenizer.nextToken(\"\\n\");\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public int[] nextIntArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n\n public long[] nextLongArray(int n) {\n long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }\n }\n\n public static void main(String[] args) {\n FastScanner sc = new FastScanner(System.in);\n int n = sc.nextInt();\n if (n % 1000 == 0) System.out.println(0);\n else System.out.println(1000 * (n / 1000 + 1) - n);\n }\n}", "Main", "public static void main(String[] args) {\n FastScanner sc = new FastScanner(System.in);\n int n = sc.nextInt();\n if (n % 1000 == 0) System.out.println(0);\n else System.out.println(1000 * (n / 1000 + 1) - n);\n }", "main", "{\n FastScanner sc = new FastScanner(System.in);\n int n = sc.nextInt();\n if (n % 1000 == 0) System.out.println(0);\n else System.out.println(1000 * (n / 1000 + 1) - n);\n }", "FastScanner sc = new FastScanner(System.in);", "sc", "new FastScanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "if (n % 1000 == 0) System.out.println(0);\n else System.out.println(1000 * (n / 1000 + 1) - n);", "n % 1000 == 0", "n % 1000", "n", "1000", "0", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "System.out.println(1000 * (n / 1000 + 1) - n)", "System.out.println", "System.out", "System", "System.out", "1000 * (n / 1000 + 1) - n", "1000 * (n / 1000 + 1)", "1000", "(n / 1000 + 1)", "n / 1000", "n", "1000", "1", "n", "String[] args", "args", "private static class FastScanner {\n private BufferedReader reader = null;\n private StringTokenizer tokenizer = null;\n\n public FastScanner(InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n tokenizer = null;\n }\n\n public String next() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public String nextLine() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n return reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n return tokenizer.nextToken(\"\\n\");\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public int[] nextIntArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n\n public long[] nextLongArray(int n) {\n long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }\n }", "FastScanner", "private BufferedReader reader = null;", "reader", "null", "private StringTokenizer tokenizer = null;", "tokenizer", "null", "public FastScanner(InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n tokenizer = null;\n }", "FastScanner", "{\n reader = new BufferedReader(new InputStreamReader(in));\n tokenizer = null;\n }", "reader = new BufferedReader(new InputStreamReader(in))", "reader", "new BufferedReader(new InputStreamReader(in))", "tokenizer = null", "tokenizer", "null", "InputStream in", "in", "public String next() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }", "next", "{\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }", "if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "tokenizer == null || !tokenizer.hasMoreTokens()", "tokenizer == null", "tokenizer", "null", "!tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens", "tokenizer", "{\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }", "catch (IOException e) {\n throw new RuntimeException(e);\n }", "IOException e", "{\n throw new RuntimeException(e);\n }", "throw new RuntimeException(e);", "new RuntimeException(e)", "{\n tokenizer = new StringTokenizer(reader.readLine());\n }", "tokenizer = new StringTokenizer(reader.readLine())", "tokenizer", "new StringTokenizer(reader.readLine())", "return tokenizer.nextToken();", "tokenizer.nextToken()", "tokenizer.nextToken", "tokenizer", "public String nextLine() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n return reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n return tokenizer.nextToken(\"\\n\");\n }", "nextLine", "{\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n return reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n return tokenizer.nextToken(\"\\n\");\n }", "if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n return reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "tokenizer == null || !tokenizer.hasMoreTokens()", "tokenizer == null", "tokenizer", "null", "!tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens", "tokenizer", "{\n try {\n return reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "try {\n return reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }", "catch (IOException e) {\n throw new RuntimeException(e);\n }", "IOException e", "{\n throw new RuntimeException(e);\n }", "throw new RuntimeException(e);", "new RuntimeException(e)", "{\n return reader.readLine();\n }", "return reader.readLine();", "reader.readLine()", "reader.readLine", "reader", "return tokenizer.nextToken(\"\\n\");", "tokenizer.nextToken(\"\\n\")", "tokenizer.nextToken", "tokenizer", "\"\\n\"", "public long nextLong() {\n return Long.parseLong(next());\n }", "nextLong", "{\n return Long.parseLong(next());\n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "public int nextInt() {\n return Integer.parseInt(next());\n }", "nextInt", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "public double nextDouble() {\n return Double.parseDouble(next());\n }", "nextDouble", "{\n return Double.parseDouble(next());\n }", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "public int[] nextIntArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }", "nextIntArray", "{\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }", "int[] a = new int[n];", "a", "new int[n]", "n", "for (int i = 0; i < n; i++)\n a[i] = nextInt();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "a[i] = nextInt();", "a[i] = nextInt()", "a[i]", "a", "i", "nextInt()", "nextInt", "return a;", "a", "int n", "n", "public long[] nextLongArray(int n) {\n long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }", "nextLongArray", "{\n long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }", "long[] a = new long[n];", "a", "new long[n]", "n", "for (int i = 0; i < n; i++)\n a[i] = nextLong();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "a[i] = nextLong();", "a[i] = nextLong()", "a[i]", "a", "i", "nextLong()", "nextLong", "return a;", "a", "int n", "n", "public class Main {\n private static class FastScanner {\n private BufferedReader reader = null;\n private StringTokenizer tokenizer = null;\n\n public FastScanner(InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n tokenizer = null;\n }\n\n public String next() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public String nextLine() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n return reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n return tokenizer.nextToken(\"\\n\");\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public int[] nextIntArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n\n public long[] nextLongArray(int n) {\n long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }\n }\n\n public static void main(String[] args) {\n FastScanner sc = new FastScanner(System.in);\n int n = sc.nextInt();\n if (n % 1000 == 0) System.out.println(0);\n else System.out.println(1000 * (n / 1000 + 1) - n);\n }\n}", "public class Main {\n private static class FastScanner {\n private BufferedReader reader = null;\n private StringTokenizer tokenizer = null;\n\n public FastScanner(InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n tokenizer = null;\n }\n\n public String next() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public String nextLine() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n return reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n return tokenizer.nextToken(\"\\n\");\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public int[] nextIntArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n\n public long[] nextLongArray(int n) {\n long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }\n }\n\n public static void main(String[] args) {\n FastScanner sc = new FastScanner(System.in);\n int n = sc.nextInt();\n if (n % 1000 == 0) System.out.println(0);\n else System.out.println(1000 * (n / 1000 + 1) - n);\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { private static class FastScanner { private BufferedReader reader = null; private StringTokenizer tokenizer = null; public FastScanner(InputStream in) { reader = new BufferedReader(new InputStreamReader(in)); tokenizer = null; } public String next() { if (tokenizer == null || !tokenizer.hasMoreTokens()) { try { tokenizer = new StringTokenizer(reader.readLine()); } catch (IOException e) { throw new RuntimeException(e); } } return tokenizer.nextToken(); } public String nextLine() { if (tokenizer == null || !tokenizer.hasMoreTokens()) { try { return reader.readLine(); } catch (IOException e) { throw new RuntimeException(e); } } return tokenizer.nextToken("\n"); } public long nextLong() { return Long.parseLong(next()); } public int nextInt() { return Integer.parseInt(next()); } public double nextDouble() { return Double.parseDouble(next()); } public int[] nextIntArray(int n) { int[] a = new int[n]; for (int i = 0; i < n; i++) a[i] = nextInt(); return a; } public long[] nextLongArray(int n) { long[] a = new long[n]; for (int i = 0; i < n; i++) a[i] = nextLong(); return a; } } public static void main(String[] args) { FastScanner sc = new FastScanner(System.in); int n = sc.nextInt(); if (n % 1000 == 0) System.out.println(0); else System.out.println(1000 * (n / 1000 + 1) - n); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 18, 13, 13, 41, 13, 18, 13, 13, 41, 13, 20, 41, 13, 20, 41, 13, 20, 4, 18, 13, 17, 13, 13, 4, 18, 13, 23, 13, 6, 13, 12, 13, 30, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 17, 4, 18, 13, 17, 4, 18, 13, 2, 17, 2, 13, 17, 23, 13, 23, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 0, 13, 17, 23, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 37, 20, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 19, 20 ], [ 19, 21 ], [ 0, 22 ], [ 145, 23 ], [ 145, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 29, 31 ], [ 26, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 34, 36 ], [ 26, 37 ], [ 37, 38 ], [ 37, 39 ], [ 26, 40 ], [ 40, 41 ], [ 40, 42 ], [ 26, 43 ], [ 43, 44 ], [ 43, 45 ], [ 26, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 46, 50 ], [ 46, 51 ], [ 26, 52 ], [ 52, 53 ], [ 53, 54 ], [ 24, 55 ], [ 55, 56 ], [ 145, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 61, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 67, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 67, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 82, 84 ], [ 59, 85 ], [ 85, 86 ], [ 59, 87 ], [ 87, 88 ], [ 59, 89 ], [ 89, 90 ], [ 145, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 91, 95 ], [ 95, 96 ], [ 91, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 103, 104 ], [ 103, 105 ], [ 97, 106 ], [ 106, 107 ], [ 91, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 112, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 111, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 125, 126 ], [ 121, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 110, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 91, 135 ], [ 135, 136 ], [ 135, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 139, 142 ], [ 142, 143 ], [ 0, 144 ], [ 144, 145 ], [ 144, 146 ] ]
[ "import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n\n Problem solver = new Problem();\n solver.solve(0, in, out);\n out.close();\n }\n\n static class Problem {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int N = in.nextInt();\n if (N % 1000 == 0)\n out.println(0);\n else\n out.println(1000 - (N % 1000));\n }\n\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n }\n}\n", "import java.io.OutputStream;", "OutputStream", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n\n Problem solver = new Problem();\n solver.solve(0, in, out);\n out.close();\n }\n\n static class Problem {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int N = in.nextInt();\n if (N % 1000 == 0)\n out.println(0);\n else\n out.println(1000 - (N % 1000));\n }\n\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n }\n}", "Main", "public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n\n Problem solver = new Problem();\n solver.solve(0, in, out);\n out.close();\n }", "main", "{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n\n Problem solver = new Problem();\n solver.solve(0, in, out);\n out.close();\n }", "InputStream inputStream = System.in;", "inputStream", "System.in", "System", "System.in", "OutputStream outputStream = System.out;", "outputStream", "System.out", "System", "System.out", "InputReader in = new InputReader(inputStream);", "in", "new InputReader(inputStream)", "PrintWriter out = new PrintWriter(outputStream);", "out", "new PrintWriter(outputStream)", "Problem solver = new Problem();", "solver", "new Problem()", "solver.solve(0, in, out)", "solver.solve", "solver", "0", "in", "out", "out.close()", "out.close", "out", "String[] args", "args", "static class Problem {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int N = in.nextInt();\n if (N % 1000 == 0)\n out.println(0);\n else\n out.println(1000 - (N % 1000));\n }\n\n }", "Problem", "public void solve(int testNumber, InputReader in, PrintWriter out) {\n int N = in.nextInt();\n if (N % 1000 == 0)\n out.println(0);\n else\n out.println(1000 - (N % 1000));\n }", "solve", "{\n int N = in.nextInt();\n if (N % 1000 == 0)\n out.println(0);\n else\n out.println(1000 - (N % 1000));\n }", "int N = in.nextInt();", "N", "in.nextInt()", "in.nextInt", "in", "if (N % 1000 == 0)\n out.println(0);\n else\n out.println(1000 - (N % 1000));", "N % 1000 == 0", "N % 1000", "N", "1000", "0", "out.println(0)", "out.println", "out", "0", "out.println(1000 - (N % 1000))", "out.println", "out", "1000 - (N % 1000)", "1000", "(N % 1000)", "N", "1000", "int testNumber", "testNumber", "InputReader in", "in", "PrintWriter out", "out", "static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n }", "InputReader", "public BufferedReader reader;", "reader", "public StringTokenizer tokenizer;", "tokenizer", "public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }", "InputReader", "{\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }", "reader = new BufferedReader(new InputStreamReader(stream), 32768)", "reader", "new BufferedReader(new InputStreamReader(stream), 32768)", "tokenizer = null", "tokenizer", "null", "InputStream stream", "stream", "public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }", "next", "{\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }", "while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "tokenizer == null || !tokenizer.hasMoreTokens()", "tokenizer == null", "tokenizer", "null", "!tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens", "tokenizer", "{\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }", "catch (IOException e) {\n throw new RuntimeException(e);\n }", "IOException e", "{\n throw new RuntimeException(e);\n }", "throw new RuntimeException(e);", "new RuntimeException(e)", "{\n tokenizer = new StringTokenizer(reader.readLine());\n }", "tokenizer = new StringTokenizer(reader.readLine())", "tokenizer", "new StringTokenizer(reader.readLine())", "return tokenizer.nextToken();", "tokenizer.nextToken()", "tokenizer.nextToken", "tokenizer", "public int nextInt() {\n return Integer.parseInt(next());\n }", "nextInt", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n\n Problem solver = new Problem();\n solver.solve(0, in, out);\n out.close();\n }\n\n static class Problem {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int N = in.nextInt();\n if (N % 1000 == 0)\n out.println(0);\n else\n out.println(1000 - (N % 1000));\n }\n\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n }\n}", "public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n\n Problem solver = new Problem();\n solver.solve(0, in, out);\n out.close();\n }\n\n static class Problem {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int N = in.nextInt();\n if (N % 1000 == 0)\n out.println(0);\n else\n out.println(1000 - (N % 1000));\n }\n\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n }\n}", "Main" ]
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { public static void main(String[] args) { InputStream inputStream = System.in; OutputStream outputStream = System.out; InputReader in = new InputReader(inputStream); PrintWriter out = new PrintWriter(outputStream); Problem solver = new Problem(); solver.solve(0, in, out); out.close(); } static class Problem { public void solve(int testNumber, InputReader in, PrintWriter out) { int N = in.nextInt(); if (N % 1000 == 0) out.println(0); else out.println(1000 - (N % 1000)); } } static class InputReader { public BufferedReader reader; public StringTokenizer tokenizer; public InputReader(InputStream stream) { reader = new BufferedReader(new InputStreamReader(stream), 32768); tokenizer = null; } public String next() { while (tokenizer == null || !tokenizer.hasMoreTokens()) { try { tokenizer = new StringTokenizer(reader.readLine()); } catch (IOException e) { throw new RuntimeException(e); } } return tokenizer.nextToken(); } public int nextInt() { return Integer.parseInt(next()); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 17, 42, 2, 13, 13, 30, 0, 13, 2, 13, 17, 4, 18, 18, 13, 13, 2, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 44, 5 ], [ 44, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 30, 32 ], [ 8, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 38, 39 ], [ 38, 40 ], [ 6, 41 ], [ 41, 42 ], [ 0, 43 ], [ 43, 44 ], [ 43, 45 ] ]
[ "import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n scan.close();\n\n int money = 0;\n while(money < N){\n money = money + 1000;\n }\n System.out.println(money-N);\n }\n}", "import java.util.*;", "util.*", "java", "public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n scan.close();\n\n int money = 0;\n while(money < N){\n money = money + 1000;\n }\n System.out.println(money-N);\n }\n}", "Main", "public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n scan.close();\n\n int money = 0;\n while(money < N){\n money = money + 1000;\n }\n System.out.println(money-N);\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n scan.close();\n\n int money = 0;\n while(money < N){\n money = money + 1000;\n }\n System.out.println(money-N);\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int N = scan.nextInt();", "N", "scan.nextInt()", "scan.nextInt", "scan", "scan.close()", "scan.close", "scan", "int money = 0;", "money", "0", "while(money < N){\n money = money + 1000;\n }", "money < N", "money", "N", "{\n money = money + 1000;\n }", "money = money + 1000", "money", "money + 1000", "money", "1000", "System.out.println(money-N)", "System.out.println", "System.out", "System", "System.out", "money-N", "money", "N", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n scan.close();\n\n int money = 0;\n while(money < N){\n money = money + 1000;\n }\n System.out.println(money-N);\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n scan.close();\n\n int money = 0;\n while(money < N){\n money = money + 1000;\n }\n System.out.println(money-N);\n }\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int N = scan.nextInt(); scan.close(); int money = 0; while(money < N){ money = money + 1000; } System.out.println(money-N); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 42, 2, 0, 13, 4, 18, 18, 13, 13, 17, 30, 4, 18, 13, 13, 41, 13, 2, 4, 18, 13, 4, 18, 13, 17, 14, 2, 13, 17, 4, 18, 18, 13, 13, 2, 17, 13, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 60, 5 ], [ 60, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 15, 23 ], [ 14, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 8, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 35, 36 ], [ 36, 37 ], [ 31, 38 ], [ 8, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 48, 49 ], [ 48, 50 ], [ 39, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 51, 56 ], [ 6, 57 ], [ 57, 58 ], [ 0, 59 ], [ 59, 60 ], [ 59, 61 ] ]
[ "import java.io.IOException;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n\n StringBuilder builder = new StringBuilder();\n int buf;\n while ((buf = System.in.read()) != '\\n') {\n builder.appendCodePoint(buf);\n }\n\n int num = Integer.parseInt(builder.toString()) % 1000;\n if (num > 0) System.out.print(1000 - num);\n else System.out.print(0);\n }\n}", "import java.io.IOException;", "IOException", "java.io", "public class Main {\n public static void main(String[] args) throws IOException {\n\n StringBuilder builder = new StringBuilder();\n int buf;\n while ((buf = System.in.read()) != '\\n') {\n builder.appendCodePoint(buf);\n }\n\n int num = Integer.parseInt(builder.toString()) % 1000;\n if (num > 0) System.out.print(1000 - num);\n else System.out.print(0);\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n\n StringBuilder builder = new StringBuilder();\n int buf;\n while ((buf = System.in.read()) != '\\n') {\n builder.appendCodePoint(buf);\n }\n\n int num = Integer.parseInt(builder.toString()) % 1000;\n if (num > 0) System.out.print(1000 - num);\n else System.out.print(0);\n }", "main", "{\n\n StringBuilder builder = new StringBuilder();\n int buf;\n while ((buf = System.in.read()) != '\\n') {\n builder.appendCodePoint(buf);\n }\n\n int num = Integer.parseInt(builder.toString()) % 1000;\n if (num > 0) System.out.print(1000 - num);\n else System.out.print(0);\n }", "StringBuilder builder = new StringBuilder();", "builder", "new StringBuilder()", "int buf;", "buf", "while ((buf = System.in.read()) != '\\n') {\n builder.appendCodePoint(buf);\n }", "(buf = System.in.read()) != '\\n'", "(buf = System.in.read())", "buf", "System.in.read()", "System.in.read", "System.in", "System", "System.in", "'\\n'", "{\n builder.appendCodePoint(buf);\n }", "builder.appendCodePoint(buf)", "builder.appendCodePoint", "builder", "buf", "int num = Integer.parseInt(builder.toString()) % 1000;", "num", "Integer.parseInt(builder.toString()) % 1000", "Integer.parseInt(builder.toString())", "Integer.parseInt", "Integer", "builder.toString()", "builder.toString", "builder", "1000", "if (num > 0) System.out.print(1000 - num);\n else System.out.print(0);", "num > 0", "num", "0", "System.out.print(1000 - num)", "System.out.print", "System.out", "System", "System.out", "1000 - num", "1000", "num", "System.out.print(0)", "System.out.print", "System.out", "System", "System.out", "0", "String[] args", "args", "public class Main {\n public static void main(String[] args) throws IOException {\n\n StringBuilder builder = new StringBuilder();\n int buf;\n while ((buf = System.in.read()) != '\\n') {\n builder.appendCodePoint(buf);\n }\n\n int num = Integer.parseInt(builder.toString()) % 1000;\n if (num > 0) System.out.print(1000 - num);\n else System.out.print(0);\n }\n}", "public class Main {\n public static void main(String[] args) throws IOException {\n\n StringBuilder builder = new StringBuilder();\n int buf;\n while ((buf = System.in.read()) != '\\n') {\n builder.appendCodePoint(buf);\n }\n\n int num = Integer.parseInt(builder.toString()) % 1000;\n if (num > 0) System.out.print(1000 - num);\n else System.out.print(0);\n }\n}", "Main" ]
import java.io.IOException; public class Main { public static void main(String[] args) throws IOException { StringBuilder builder = new StringBuilder(); int buf; while ((buf = System.in.read()) != '\n') { builder.appendCodePoint(buf); } int num = Integer.parseInt(builder.toString()) % 1000; if (num > 0) System.out.print(1000 - num); else System.out.print(0); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 42, 2, 13, 17, 30, 0, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 40, 5 ], [ 40, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 8, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 28, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 6, 37 ], [ 37, 38 ], [ 0, 39 ], [ 39, 40 ], [ 39, 41 ] ]
[ "import java.util.*;\npublic class Main {\n public static void main (String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int i = 1000;\n while (N > 0) {\n \tN -= i;\n }\n System.out.println(Math.abs(N));\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main (String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int i = 1000;\n while (N > 0) {\n \tN -= i;\n }\n System.out.println(Math.abs(N));\n }\n}", "Main", "public static void main (String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int i = 1000;\n while (N > 0) {\n \tN -= i;\n }\n System.out.println(Math.abs(N));\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int i = 1000;\n while (N > 0) {\n \tN -= i;\n }\n System.out.println(Math.abs(N));\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "int i = 1000;", "i", "1000", "while (N > 0) {\n \tN -= i;\n }", "N > 0", "N", "0", "{\n \tN -= i;\n }", "N -= i", "N", "i", "System.out.println(Math.abs(N))", "System.out.println", "System.out", "System", "System.out", "Math.abs(N)", "Math.abs", "Math", "N", "String[] args", "args", "public class Main {\n public static void main (String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int i = 1000;\n while (N > 0) {\n \tN -= i;\n }\n System.out.println(Math.abs(N));\n }\n}", "public class Main {\n public static void main (String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int i = 1000;\n while (N > 0) {\n \tN -= i;\n }\n System.out.println(Math.abs(N));\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int i = 1000; while (N > 0) { N -= i; } System.out.println(Math.abs(N)); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 2, 13, 17, 14, 2, 2, 13, 17, 17, 40, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 46, 8 ], [ 46, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 22, 24 ], [ 11, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 25, 31 ], [ 31, 32 ], [ 11, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 9, 43 ], [ 43, 44 ], [ 0, 45 ], [ 45, 46 ], [ 45, 47 ] ]
[ "import java.util.*;\nimport java.lang.*;\n\npublic class Main\n{\n public static void main (String[] args)\n {\n // your code goes here\n Scanner s = new Scanner(System.in);\n int t = s.nextInt();\n int c = t/1000;\n if(t%1000!=0)\n c++;\n System.out.println(c*1000-t);\n }\n}", "import java.util.*;", "util.*", "java", "import java.lang.*;", "lang.*", "java", "public class Main\n{\n public static void main (String[] args)\n {\n // your code goes here\n Scanner s = new Scanner(System.in);\n int t = s.nextInt();\n int c = t/1000;\n if(t%1000!=0)\n c++;\n System.out.println(c*1000-t);\n }\n}", "Main", "public static void main (String[] args)\n {\n // your code goes here\n Scanner s = new Scanner(System.in);\n int t = s.nextInt();\n int c = t/1000;\n if(t%1000!=0)\n c++;\n System.out.println(c*1000-t);\n }", "main", "{\n // your code goes here\n Scanner s = new Scanner(System.in);\n int t = s.nextInt();\n int c = t/1000;\n if(t%1000!=0)\n c++;\n System.out.println(c*1000-t);\n }", "Scanner s = new Scanner(System.in);", "s", "new Scanner(System.in)", "int t = s.nextInt();", "t", "s.nextInt()", "s.nextInt", "s", "int c = t/1000;", "c", "t/1000", "t", "1000", "if(t%1000!=0)\n c++;", "t%1000!=0", "t%1000", "t", "1000", "0", "c++", "c", "System.out.println(c*1000-t)", "System.out.println", "System.out", "System", "System.out", "c*1000-t", "c*1000", "c", "1000", "t", "String[] args", "args", "public class Main\n{\n public static void main (String[] args)\n {\n // your code goes here\n Scanner s = new Scanner(System.in);\n int t = s.nextInt();\n int c = t/1000;\n if(t%1000!=0)\n c++;\n System.out.println(c*1000-t);\n }\n}", "public class Main\n{\n public static void main (String[] args)\n {\n // your code goes here\n Scanner s = new Scanner(System.in);\n int t = s.nextInt();\n int c = t/1000;\n if(t%1000!=0)\n c++;\n System.out.println(c*1000-t);\n }\n}", "Main" ]
import java.util.*; import java.lang.*; public class Main { public static void main (String[] args) { // your code goes here Scanner s = new Scanner(System.in); int t = s.nextInt(); int c = t/1000; if(t%1000!=0) c++; System.out.println(c*1000-t); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 18, 13, 13, 41, 13, 18, 13, 13, 41, 13, 20, 41, 13, 20, 41, 13, 20, 4, 18, 13, 17, 13, 13, 4, 18, 13, 23, 13, 6, 13, 12, 13, 30, 41, 13, 4, 18, 13, 4, 18, 13, 2, 2, 2, 2, 13, 17, 17, 17, 13, 23, 13, 23, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 20, 23, 13, 12, 13, 30, 38, 5, 13, 30, 29, 17, 30, 42, 40, 4, 18, 13, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 30, 29, 17, 0, 13, 20, 29, 17, 12, 13, 30, 14, 40, 4, 13, 30, 37, 20, 29, 4, 18, 13, 17, 12, 13, 30, 29, 4, 18, 13, 4, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 19, 20 ], [ 19, 21 ], [ 0, 22 ], [ 22, 23 ], [ 22, 24 ], [ 0, 25 ], [ 25, 26 ], [ 25, 27 ], [ 0, 28 ], [ 28, 29 ], [ 28, 30 ], [ 0, 31 ], [ 177, 32 ], [ 177, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 38, 40 ], [ 35, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 43, 45 ], [ 35, 46 ], [ 46, 47 ], [ 46, 48 ], [ 35, 49 ], [ 49, 50 ], [ 49, 51 ], [ 35, 52 ], [ 52, 53 ], [ 52, 54 ], [ 35, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 55, 59 ], [ 55, 60 ], [ 35, 61 ], [ 61, 62 ], [ 62, 63 ], [ 33, 64 ], [ 64, 65 ], [ 177, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 70, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 80, 86 ], [ 79, 87 ], [ 68, 88 ], [ 88, 89 ], [ 68, 90 ], [ 90, 91 ], [ 68, 92 ], [ 92, 93 ], [ 177, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 94, 98 ], [ 98, 99 ], [ 94, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 106, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 100, 117 ], [ 117, 118 ], [ 94, 119 ], [ 119, 120 ], [ 119, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 125, 126 ], [ 126, 127 ], [ 122, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 129, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 137, 138 ], [ 138, 139 ], [ 134, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 140, 144 ], [ 144, 145 ], [ 145, 146 ], [ 134, 147 ], [ 147, 148 ], [ 147, 149 ], [ 128, 150 ], [ 150, 151 ], [ 94, 152 ], [ 152, 153 ], [ 152, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 155, 159 ], [ 159, 160 ], [ 160, 161 ], [ 154, 162 ], [ 162, 163 ], [ 163, 164 ], [ 164, 165 ], [ 163, 166 ], [ 94, 167 ], [ 167, 168 ], [ 167, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 171, 174 ], [ 174, 175 ], [ 0, 176 ], [ 176, 177 ], [ 176, 178 ] ]
[ "import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.StringTokenizer;\nimport java.io.IOException;\nimport java.util.InputMismatchException;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.InputStream;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n */\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tInputStream inputStream = System.in;\n\t\tOutputStream outputStream = System.out;\n\t\tInput in = new Input(inputStream);\n\t\tPrintWriter out = new PrintWriter(outputStream);\n\t\tAPayment solver = new APayment();\n\t\tsolver.solve(1, in, out);\n\t\tout.close();\n\t}\n\tstatic class APayment {\n\t\tpublic void solve(int testNumber, Input in, PrintWriter pw) {\n\t\t\tint n = in.nextInt();\n\t\t\tpw.println(((n+999)/1000)*1000-n);\n\t\t}\n\n\t}\n\n\tstatic class Input {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\n\t\tpublic Input(InputStream is) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(is));\n\t\t\ttry {\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t}catch(IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\tpublic boolean hasNext() {\n\t\t\ttry {\n\t\t\t\twhile(!st.hasMoreTokens()) {\n\t\t\t\t\tString s = br.readLine();\n\t\t\t\t\tif(s==null) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tst = new StringTokenizer(s);\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}catch(Exception e) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tpublic String next() {\n\t\t\tif(!hasNext()) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t\treturn st.nextToken(\"\\r\\n\\t\\f \");\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t}\n}\n", "import java.io.OutputStream;", "OutputStream", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "import java.io.IOException;", "IOException", "java.io", "import java.util.InputMismatchException;", "InputMismatchException", "java.util", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tInputStream inputStream = System.in;\n\t\tOutputStream outputStream = System.out;\n\t\tInput in = new Input(inputStream);\n\t\tPrintWriter out = new PrintWriter(outputStream);\n\t\tAPayment solver = new APayment();\n\t\tsolver.solve(1, in, out);\n\t\tout.close();\n\t}\n\tstatic class APayment {\n\t\tpublic void solve(int testNumber, Input in, PrintWriter pw) {\n\t\t\tint n = in.nextInt();\n\t\t\tpw.println(((n+999)/1000)*1000-n);\n\t\t}\n\n\t}\n\n\tstatic class Input {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\n\t\tpublic Input(InputStream is) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(is));\n\t\t\ttry {\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t}catch(IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\tpublic boolean hasNext() {\n\t\t\ttry {\n\t\t\t\twhile(!st.hasMoreTokens()) {\n\t\t\t\t\tString s = br.readLine();\n\t\t\t\t\tif(s==null) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tst = new StringTokenizer(s);\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}catch(Exception e) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tpublic String next() {\n\t\t\tif(!hasNext()) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t\treturn st.nextToken(\"\\r\\n\\t\\f \");\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tInputStream inputStream = System.in;\n\t\tOutputStream outputStream = System.out;\n\t\tInput in = new Input(inputStream);\n\t\tPrintWriter out = new PrintWriter(outputStream);\n\t\tAPayment solver = new APayment();\n\t\tsolver.solve(1, in, out);\n\t\tout.close();\n\t}", "main", "{\n\t\tInputStream inputStream = System.in;\n\t\tOutputStream outputStream = System.out;\n\t\tInput in = new Input(inputStream);\n\t\tPrintWriter out = new PrintWriter(outputStream);\n\t\tAPayment solver = new APayment();\n\t\tsolver.solve(1, in, out);\n\t\tout.close();\n\t}", "InputStream inputStream = System.in;", "inputStream", "System.in", "System", "System.in", "OutputStream outputStream = System.out;", "outputStream", "System.out", "System", "System.out", "Input in = new Input(inputStream);", "in", "new Input(inputStream)", "PrintWriter out = new PrintWriter(outputStream);", "out", "new PrintWriter(outputStream)", "APayment solver = new APayment();", "solver", "new APayment()", "solver.solve(1, in, out)", "solver.solve", "solver", "1", "in", "out", "out.close()", "out.close", "out", "String[] args", "args", "static class APayment {\n\t\tpublic void solve(int testNumber, Input in, PrintWriter pw) {\n\t\t\tint n = in.nextInt();\n\t\t\tpw.println(((n+999)/1000)*1000-n);\n\t\t}\n\n\t}", "APayment", "public void solve(int testNumber, Input in, PrintWriter pw) {\n\t\t\tint n = in.nextInt();\n\t\t\tpw.println(((n+999)/1000)*1000-n);\n\t\t}", "solve", "{\n\t\t\tint n = in.nextInt();\n\t\t\tpw.println(((n+999)/1000)*1000-n);\n\t\t}", "int n = in.nextInt();", "n", "in.nextInt()", "in.nextInt", "in", "pw.println(((n+999)/1000)*1000-n)", "pw.println", "pw", "((n+999)/1000)*1000-n", "((n+999)/1000)*1000", "((n+999)/1000)", "(n+999)", "n", "999", "1000", "1000", "n", "int testNumber", "testNumber", "Input in", "in", "PrintWriter pw", "pw", "static class Input {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\n\t\tpublic Input(InputStream is) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(is));\n\t\t\ttry {\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t}catch(IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\tpublic boolean hasNext() {\n\t\t\ttry {\n\t\t\t\twhile(!st.hasMoreTokens()) {\n\t\t\t\t\tString s = br.readLine();\n\t\t\t\t\tif(s==null) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tst = new StringTokenizer(s);\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}catch(Exception e) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tpublic String next() {\n\t\t\tif(!hasNext()) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t\treturn st.nextToken(\"\\r\\n\\t\\f \");\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t}", "Input", "BufferedReader br;", "br", "StringTokenizer st;", "st", "public Input(InputStream is) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(is));\n\t\t\ttry {\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t}catch(IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "Input", "{\n\t\t\tbr = new BufferedReader(new InputStreamReader(is));\n\t\t\ttry {\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t}catch(IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "br = new BufferedReader(new InputStreamReader(is))", "br", "new BufferedReader(new InputStreamReader(is))", "try {\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t}catch(IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}", "catch(IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}", "IOException e", "{\n\t\t\t\te.printStackTrace();\n\t\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t}", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "InputStream is", "is", "public boolean hasNext() {\n\t\t\ttry {\n\t\t\t\twhile(!st.hasMoreTokens()) {\n\t\t\t\t\tString s = br.readLine();\n\t\t\t\t\tif(s==null) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tst = new StringTokenizer(s);\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}catch(Exception e) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "hasNext", "{\n\t\t\ttry {\n\t\t\t\twhile(!st.hasMoreTokens()) {\n\t\t\t\t\tString s = br.readLine();\n\t\t\t\t\tif(s==null) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tst = new StringTokenizer(s);\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}catch(Exception e) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "try {\n\t\t\t\twhile(!st.hasMoreTokens()) {\n\t\t\t\t\tString s = br.readLine();\n\t\t\t\t\tif(s==null) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tst = new StringTokenizer(s);\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}catch(Exception e) {\n\t\t\t\treturn false;\n\t\t\t}", "catch(Exception e) {\n\t\t\t\treturn false;\n\t\t\t}", "Exception e", "{\n\t\t\t\treturn false;\n\t\t\t}", "return false;", "false", "{\n\t\t\t\twhile(!st.hasMoreTokens()) {\n\t\t\t\t\tString s = br.readLine();\n\t\t\t\t\tif(s==null) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tst = new StringTokenizer(s);\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}", "while(!st.hasMoreTokens()) {\n\t\t\t\t\tString s = br.readLine();\n\t\t\t\t\tif(s==null) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tst = new StringTokenizer(s);\n\t\t\t\t}", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "{\n\t\t\t\t\tString s = br.readLine();\n\t\t\t\t\tif(s==null) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tst = new StringTokenizer(s);\n\t\t\t\t}", "String s = br.readLine();", "s", "br.readLine()", "br.readLine", "br", "if(s==null) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}", "s==null", "s", "null", "{\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}", "return false;", "false", "st = new StringTokenizer(s)", "st", "new StringTokenizer(s)", "return true;", "true", "public String next() {\n\t\t\tif(!hasNext()) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t\treturn st.nextToken(\"\\r\\n\\t\\f \");\n\t\t}", "next", "{\n\t\t\tif(!hasNext()) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t\treturn st.nextToken(\"\\r\\n\\t\\f \");\n\t\t}", "if(!hasNext()) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}", "!hasNext()", "hasNext()", "hasNext", "{\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}", "throw new InputMismatchException();", "new InputMismatchException()", "return st.nextToken(\"\\r\\n\\t\\f \");", "st.nextToken(\"\\r\\n\\t\\f \")", "st.nextToken", "st", "\"\\r\\n\\t\\f \"", "public int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}", "nextInt", "{\n\t\t\treturn Integer.parseInt(next());\n\t\t}", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tInputStream inputStream = System.in;\n\t\tOutputStream outputStream = System.out;\n\t\tInput in = new Input(inputStream);\n\t\tPrintWriter out = new PrintWriter(outputStream);\n\t\tAPayment solver = new APayment();\n\t\tsolver.solve(1, in, out);\n\t\tout.close();\n\t}\n\tstatic class APayment {\n\t\tpublic void solve(int testNumber, Input in, PrintWriter pw) {\n\t\t\tint n = in.nextInt();\n\t\t\tpw.println(((n+999)/1000)*1000-n);\n\t\t}\n\n\t}\n\n\tstatic class Input {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\n\t\tpublic Input(InputStream is) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(is));\n\t\t\ttry {\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t}catch(IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\tpublic boolean hasNext() {\n\t\t\ttry {\n\t\t\t\twhile(!st.hasMoreTokens()) {\n\t\t\t\t\tString s = br.readLine();\n\t\t\t\t\tif(s==null) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tst = new StringTokenizer(s);\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}catch(Exception e) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tpublic String next() {\n\t\t\tif(!hasNext()) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t\treturn st.nextToken(\"\\r\\n\\t\\f \");\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tInputStream inputStream = System.in;\n\t\tOutputStream outputStream = System.out;\n\t\tInput in = new Input(inputStream);\n\t\tPrintWriter out = new PrintWriter(outputStream);\n\t\tAPayment solver = new APayment();\n\t\tsolver.solve(1, in, out);\n\t\tout.close();\n\t}\n\tstatic class APayment {\n\t\tpublic void solve(int testNumber, Input in, PrintWriter pw) {\n\t\t\tint n = in.nextInt();\n\t\t\tpw.println(((n+999)/1000)*1000-n);\n\t\t}\n\n\t}\n\n\tstatic class Input {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\n\t\tpublic Input(InputStream is) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(is));\n\t\t\ttry {\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t}catch(IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\tpublic boolean hasNext() {\n\t\t\ttry {\n\t\t\t\twhile(!st.hasMoreTokens()) {\n\t\t\t\t\tString s = br.readLine();\n\t\t\t\t\tif(s==null) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tst = new StringTokenizer(s);\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}catch(Exception e) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tpublic String next() {\n\t\t\tif(!hasNext()) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t\treturn st.nextToken(\"\\r\\n\\t\\f \");\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t}\n}", "Main" ]
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.StringTokenizer; import java.io.IOException; import java.util.InputMismatchException; import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.InputStream; /** * Built using CHelper plug-in * Actual solution is at the top */ public class Main { public static void main(String[] args) { InputStream inputStream = System.in; OutputStream outputStream = System.out; Input in = new Input(inputStream); PrintWriter out = new PrintWriter(outputStream); APayment solver = new APayment(); solver.solve(1, in, out); out.close(); } static class APayment { public void solve(int testNumber, Input in, PrintWriter pw) { int n = in.nextInt(); pw.println(((n+999)/1000)*1000-n); } } static class Input { BufferedReader br; StringTokenizer st; public Input(InputStream is) { br = new BufferedReader(new InputStreamReader(is)); try { st = new StringTokenizer(br.readLine()); }catch(IOException e) { e.printStackTrace(); } } public boolean hasNext() { try { while(!st.hasMoreTokens()) { String s = br.readLine(); if(s==null) { return false; } st = new StringTokenizer(s); } return true; }catch(Exception e) { return false; } } public String next() { if(!hasNext()) { throw new InputMismatchException(); } return st.nextToken("\r\n\t\f "); } public int nextInt() { return Integer.parseInt(next()); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 42, 17, 30, 14, 2, 2, 13, 13, 13, 30, 3, 40, 13, 4, 18, 18, 13, 13, 2, 2, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 49, 5 ], [ 49, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 27, 31 ], [ 26, 32 ], [ 32, 33 ], [ 25, 34 ], [ 34, 35 ], [ 8, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 6, 46 ], [ 46, 47 ], [ 0, 48 ], [ 48, 49 ], [ 48, 50 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint n = in.nextInt();\n\t\tint count = 1;\n\t\tint max = 1000;\n\n\n\n\t\twhile(true) {\n\t\t\tif(max*count>=n) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcount++;\n\t\t}\n\n\t\tSystem.out.println(max*count-n);\n\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint n = in.nextInt();\n\t\tint count = 1;\n\t\tint max = 1000;\n\n\n\n\t\twhile(true) {\n\t\t\tif(max*count>=n) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcount++;\n\t\t}\n\n\t\tSystem.out.println(max*count-n);\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint n = in.nextInt();\n\t\tint count = 1;\n\t\tint max = 1000;\n\n\n\n\t\twhile(true) {\n\t\t\tif(max*count>=n) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcount++;\n\t\t}\n\n\t\tSystem.out.println(max*count-n);\n\n\t}", "main", "{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint n = in.nextInt();\n\t\tint count = 1;\n\t\tint max = 1000;\n\n\n\n\t\twhile(true) {\n\t\t\tif(max*count>=n) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcount++;\n\t\t}\n\n\t\tSystem.out.println(max*count-n);\n\n\t}", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "int n = in.nextInt();", "n", "in.nextInt()", "in.nextInt", "in", "int count = 1;", "count", "1", "int max = 1000;", "max", "1000", "while(true) {\n\t\t\tif(max*count>=n) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcount++;\n\t\t}", "true", "{\n\t\t\tif(max*count>=n) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcount++;\n\t\t}", "if(max*count>=n) {\n\t\t\t\tbreak;\n\t\t\t}", "max*count>=n", "max*count", "max", "count", "n", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "count++", "count", "System.out.println(max*count-n)", "System.out.println", "System.out", "System", "System.out", "max*count-n", "max*count", "max", "count", "n", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint n = in.nextInt();\n\t\tint count = 1;\n\t\tint max = 1000;\n\n\n\n\t\twhile(true) {\n\t\t\tif(max*count>=n) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcount++;\n\t\t}\n\n\t\tSystem.out.println(max*count-n);\n\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint n = in.nextInt();\n\t\tint count = 1;\n\t\tint max = 1000;\n\n\n\n\t\twhile(true) {\n\t\t\tif(max*count>=n) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcount++;\n\t\t}\n\n\t\tSystem.out.println(max*count-n);\n\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner in = new Scanner(System.in); int n = in.nextInt(); int count = 1; int max = 1000; while(true) { if(max*count>=n) { break; } count++; } System.out.println(max*count-n); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 2, 17, 2, 13, 17, 14, 2, 2, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 47, 5 ], [ 47, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 25, 29 ], [ 24, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 31, 36 ], [ 24, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 6, 44 ], [ 44, 45 ], [ 0, 46 ], [ 46, 47 ], [ 46, 48 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner=new Scanner(System.in);\n\t\tint N=scanner.nextInt();\n\t\tint change= (1000-(N%1000));\n\t\tif (N%1000==0) {\n\t\t\tSystem.out.println(\"0\");\n\t\t}else {\n\t\t\tSystem.out.println(change);\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner=new Scanner(System.in);\n\t\tint N=scanner.nextInt();\n\t\tint change= (1000-(N%1000));\n\t\tif (N%1000==0) {\n\t\t\tSystem.out.println(\"0\");\n\t\t}else {\n\t\t\tSystem.out.println(change);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scanner=new Scanner(System.in);\n\t\tint N=scanner.nextInt();\n\t\tint change= (1000-(N%1000));\n\t\tif (N%1000==0) {\n\t\t\tSystem.out.println(\"0\");\n\t\t}else {\n\t\t\tSystem.out.println(change);\n\t\t}\n\t}", "main", "{\n\t\tScanner scanner=new Scanner(System.in);\n\t\tint N=scanner.nextInt();\n\t\tint change= (1000-(N%1000));\n\t\tif (N%1000==0) {\n\t\t\tSystem.out.println(\"0\");\n\t\t}else {\n\t\t\tSystem.out.println(change);\n\t\t}\n\t}", "Scanner scanner=new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int N=scanner.nextInt();", "N", "scanner.nextInt()", "scanner.nextInt", "scanner", "int change= (1000-(N%1000));", "change", "(1000-(N%1000))", "1000", "(N%1000)", "N", "1000", "if (N%1000==0) {\n\t\t\tSystem.out.println(\"0\");\n\t\t}else {\n\t\t\tSystem.out.println(change);\n\t\t}", "N%1000==0", "N%1000", "N", "1000", "0", "{\n\t\t\tSystem.out.println(\"0\");\n\t\t}", "System.out.println(\"0\")", "System.out.println", "System.out", "System", "System.out", "\"0\"", "{\n\t\t\tSystem.out.println(change);\n\t\t}", "System.out.println(change)", "System.out.println", "System.out", "System", "System.out", "change", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner=new Scanner(System.in);\n\t\tint N=scanner.nextInt();\n\t\tint change= (1000-(N%1000));\n\t\tif (N%1000==0) {\n\t\t\tSystem.out.println(\"0\");\n\t\t}else {\n\t\t\tSystem.out.println(change);\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner=new Scanner(System.in);\n\t\tint N=scanner.nextInt();\n\t\tint change= (1000-(N%1000));\n\t\tif (N%1000==0) {\n\t\t\tSystem.out.println(\"0\");\n\t\t}else {\n\t\t\tSystem.out.println(change);\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner=new Scanner(System.in); int N=scanner.nextInt(); int change= (1000-(N%1000)); if (N%1000==0) { System.out.println("0"); }else { System.out.println(change); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 20, 12, 13, 30, 41, 13, 0, 13, 4, 18, 13, 41, 13, 2, 2, 17, 2, 13, 17, 17, 4, 18, 13, 13, 4, 18, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 4, 13, 17, 23, 13, 12, 13, 30, 0, 13, 20, 23, 13, 12, 13, 30, 38, 5, 13, 30, 29, 17, 30, 29, 4, 18, 13, 12, 13, 30, 42, 40, 4, 18, 13, 30, 41, 13, 4, 13, 14, 2, 13, 17, 29, 17, 4, 13, 13, 29, 17, 12, 13, 30, 4, 13, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 19, 20 ], [ 19, 21 ], [ 0, 22 ], [ 22, 23 ], [ 22, 24 ], [ 0, 25 ], [ 25, 26 ], [ 25, 27 ], [ 0, 28 ], [ 28, 29 ], [ 28, 30 ], [ 0, 31 ], [ 31, 32 ], [ 31, 33 ], [ 0, 34 ], [ 34, 35 ], [ 34, 36 ], [ 0, 37 ], [ 37, 38 ], [ 37, 39 ], [ 0, 40 ], [ 40, 41 ], [ 40, 42 ], [ 0, 43 ], [ 43, 44 ], [ 43, 45 ], [ 0, 46 ], [ 46, 47 ], [ 46, 48 ], [ 0, 49 ], [ 167, 50 ], [ 167, 51 ], [ 51, 52 ], [ 51, 53 ], [ 167, 54 ], [ 54, 55 ], [ 54, 56 ], [ 167, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 59, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 72, 74 ], [ 69, 75 ], [ 59, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 59, 80 ], [ 80, 81 ], [ 81, 82 ], [ 57, 83 ], [ 83, 84 ], [ 167, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 85, 89 ], [ 89, 90 ], [ 85, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 97, 99 ], [ 91, 100 ], [ 100, 101 ], [ 85, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 102, 108 ], [ 108, 109 ], [ 85, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 117, 118 ], [ 113, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 85, 124 ], [ 124, 125 ], [ 124, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 127, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 135, 136 ], [ 132, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 137, 141 ], [ 141, 142 ], [ 132, 143 ], [ 143, 144 ], [ 143, 145 ], [ 126, 146 ], [ 146, 147 ], [ 85, 148 ], [ 148, 149 ], [ 148, 150 ], [ 150, 151 ], [ 151, 152 ], [ 150, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 85, 157 ], [ 157, 158 ], [ 157, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 161, 164 ], [ 164, 165 ], [ 0, 166 ], [ 166, 167 ], [ 166, 168 ] ]
[ "import java.io.BufferedReader;\nimport java.io.BufferedWriter;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.io.OutputStreamWriter;\nimport java.io.PrintWriter;\nimport java.math.BigInteger;\nimport java.util.Arrays;\nimport java.util.HashMap;\nimport java.util.Random;\nimport java.util.Scanner;\nimport java.util.Stack;\nimport java.util.StringTokenizer;\nimport java.util.TreeMap;\nimport java.util.Vector;\n\npublic class Main {\n\tstatic class FastScanner{//用于快速读入大量数据\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\t\tpublic FastScanner(InputStream in) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(in),16384);\n\t\t\teat(\"\");\n\t\t}\n\t\tpublic void eat(String s) {\n\t\t\tst = new StringTokenizer(s);\n\t\t}\n\t\tpublic String nextLine() {\n\t\t\ttry {\n\t\t\t\treturn br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\tpublic boolean hasNext() {\n\t\t\twhile(!st.hasMoreTokens()) {\n\t\t\t\tString s = nextLine();\n\t\t\t\tif(s==null) return false;\n\t\t\t\teat(s);\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\tpublic String next() {\n\t\t\thasNext();\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tpublic int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t}\n\n\tstatic FastScanner cin = new FastScanner(System.in);//快读\n\tstatic PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));//快速输出\n\t\n\t public static void main(String args[]) {\n\t\t int n;\n\t\t n=cin.nextInt();\n \n\t\t int ans=(1000-(n%1000))%1000;\n\t\t out.println(ans);\n\t\t out.flush();\n\t }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.BufferedWriter;", "BufferedWriter", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.OutputStreamWriter;", "OutputStreamWriter", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.math.BigInteger;", "BigInteger", "java.math", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.HashMap;", "HashMap", "java.util", "import java.util.Random;", "Random", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.Stack;", "Stack", "java.util", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "import java.util.TreeMap;", "TreeMap", "java.util", "import java.util.Vector;", "Vector", "java.util", "public class Main {\n\tstatic class FastScanner{//用于快速读入大量数据\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\t\tpublic FastScanner(InputStream in) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(in),16384);\n\t\t\teat(\"\");\n\t\t}\n\t\tpublic void eat(String s) {\n\t\t\tst = new StringTokenizer(s);\n\t\t}\n\t\tpublic String nextLine() {\n\t\t\ttry {\n\t\t\t\treturn br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\tpublic boolean hasNext() {\n\t\t\twhile(!st.hasMoreTokens()) {\n\t\t\t\tString s = nextLine();\n\t\t\t\tif(s==null) return false;\n\t\t\t\teat(s);\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\tpublic String next() {\n\t\t\thasNext();\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tpublic int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t}\n\n\tstatic FastScanner cin = new FastScanner(System.in);//快读\n\tstatic PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));//快速输出\n\t\n\t public static void main(String args[]) {\n\t\t int n;\n\t\t n=cin.nextInt();\n \n\t\t int ans=(1000-(n%1000))%1000;\n\t\t out.println(ans);\n\t\t out.flush();\n\t }\n}", "Main", "static FastScanner cin = new FastScanner(System.in);//快读", "cin", "new FastScanner(System.in)", "static PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));//快速输出", "out", "new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)))", "public static void main(String args[]) {\n\t\t int n;\n\t\t n=cin.nextInt();\n \n\t\t int ans=(1000-(n%1000))%1000;\n\t\t out.println(ans);\n\t\t out.flush();\n\t }", "main", "{\n\t\t int n;\n\t\t n=cin.nextInt();\n \n\t\t int ans=(1000-(n%1000))%1000;\n\t\t out.println(ans);\n\t\t out.flush();\n\t }", "int n;", "n", "n=cin.nextInt()", "n", "cin.nextInt()", "cin.nextInt", "cin", "int ans=(1000-(n%1000))%1000;", "ans", "(1000-(n%1000))%1000", "(1000-(n%1000))", "1000", "(n%1000)", "n", "1000", "1000", "out.println(ans)", "out.println", "out", "ans", "out.flush()", "out.flush", "out", "String args[]", "args", "static class FastScanner{//用于快速读入大量数据\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\t\tpublic FastScanner(InputStream in) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(in),16384);\n\t\t\teat(\"\");\n\t\t}\n\t\tpublic void eat(String s) {\n\t\t\tst = new StringTokenizer(s);\n\t\t}\n\t\tpublic String nextLine() {\n\t\t\ttry {\n\t\t\t\treturn br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\tpublic boolean hasNext() {\n\t\t\twhile(!st.hasMoreTokens()) {\n\t\t\t\tString s = nextLine();\n\t\t\t\tif(s==null) return false;\n\t\t\t\teat(s);\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\tpublic String next() {\n\t\t\thasNext();\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tpublic int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t}", "FastScanner", "BufferedReader br;", "br", "StringTokenizer st;", "st", "public FastScanner(InputStream in) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(in),16384);\n\t\t\teat(\"\");\n\t\t}", "FastScanner", "{\n\t\t\tbr = new BufferedReader(new InputStreamReader(in),16384);\n\t\t\teat(\"\");\n\t\t}", "br = new BufferedReader(new InputStreamReader(in),16384)", "br", "new BufferedReader(new InputStreamReader(in),16384)", "eat(\"\")", "eat", "\"\"", "InputStream in", "in", "public void eat(String s) {\n\t\t\tst = new StringTokenizer(s);\n\t\t}", "eat", "{\n\t\t\tst = new StringTokenizer(s);\n\t\t}", "st = new StringTokenizer(s)", "st", "new StringTokenizer(s)", "String s", "s", "public String nextLine() {\n\t\t\ttry {\n\t\t\t\treturn br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}", "nextLine", "{\n\t\t\ttry {\n\t\t\t\treturn br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}", "try {\n\t\t\t\treturn br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\treturn null;\n\t\t\t}", "catch (IOException e) {\n\t\t\t\treturn null;\n\t\t\t}", "IOException e", "{\n\t\t\t\treturn null;\n\t\t\t}", "return null;", "null", "{\n\t\t\t\treturn br.readLine();\n\t\t\t}", "return br.readLine();", "br.readLine()", "br.readLine", "br", "public boolean hasNext() {\n\t\t\twhile(!st.hasMoreTokens()) {\n\t\t\t\tString s = nextLine();\n\t\t\t\tif(s==null) return false;\n\t\t\t\teat(s);\n\t\t\t}\n\t\t\treturn true;\n\t\t}", "hasNext", "{\n\t\t\twhile(!st.hasMoreTokens()) {\n\t\t\t\tString s = nextLine();\n\t\t\t\tif(s==null) return false;\n\t\t\t\teat(s);\n\t\t\t}\n\t\t\treturn true;\n\t\t}", "while(!st.hasMoreTokens()) {\n\t\t\t\tString s = nextLine();\n\t\t\t\tif(s==null) return false;\n\t\t\t\teat(s);\n\t\t\t}", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "{\n\t\t\t\tString s = nextLine();\n\t\t\t\tif(s==null) return false;\n\t\t\t\teat(s);\n\t\t\t}", "String s = nextLine();", "s", "nextLine()", "nextLine", "if(s==null) return false;", "s==null", "s", "null", "return false;", "false", "eat(s)", "eat", "s", "return true;", "true", "public String next() {\n\t\t\thasNext();\n\t\t\treturn st.nextToken();\n\t\t}", "next", "{\n\t\t\thasNext();\n\t\t\treturn st.nextToken();\n\t\t}", "hasNext()", "hasNext", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "public int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}", "nextInt", "{\n\t\t\treturn Integer.parseInt(next());\n\t\t}", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "public class Main {\n\tstatic class FastScanner{//用于快速读入大量数据\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\t\tpublic FastScanner(InputStream in) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(in),16384);\n\t\t\teat(\"\");\n\t\t}\n\t\tpublic void eat(String s) {\n\t\t\tst = new StringTokenizer(s);\n\t\t}\n\t\tpublic String nextLine() {\n\t\t\ttry {\n\t\t\t\treturn br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\tpublic boolean hasNext() {\n\t\t\twhile(!st.hasMoreTokens()) {\n\t\t\t\tString s = nextLine();\n\t\t\t\tif(s==null) return false;\n\t\t\t\teat(s);\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\tpublic String next() {\n\t\t\thasNext();\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tpublic int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t}\n\n\tstatic FastScanner cin = new FastScanner(System.in);//快读\n\tstatic PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));//快速输出\n\t\n\t public static void main(String args[]) {\n\t\t int n;\n\t\t n=cin.nextInt();\n \n\t\t int ans=(1000-(n%1000))%1000;\n\t\t out.println(ans);\n\t\t out.flush();\n\t }\n}", "public class Main {\n\tstatic class FastScanner{//用于快速读入大量数据\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\t\tpublic FastScanner(InputStream in) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(in),16384);\n\t\t\teat(\"\");\n\t\t}\n\t\tpublic void eat(String s) {\n\t\t\tst = new StringTokenizer(s);\n\t\t}\n\t\tpublic String nextLine() {\n\t\t\ttry {\n\t\t\t\treturn br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\tpublic boolean hasNext() {\n\t\t\twhile(!st.hasMoreTokens()) {\n\t\t\t\tString s = nextLine();\n\t\t\t\tif(s==null) return false;\n\t\t\t\teat(s);\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\tpublic String next() {\n\t\t\thasNext();\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tpublic int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t}\n\n\tstatic FastScanner cin = new FastScanner(System.in);//快读\n\tstatic PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));//快速输出\n\t\n\t public static void main(String args[]) {\n\t\t int n;\n\t\t n=cin.nextInt();\n \n\t\t int ans=(1000-(n%1000))%1000;\n\t\t out.println(ans);\n\t\t out.flush();\n\t }\n}", "Main" ]
import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.io.PrintWriter; import java.math.BigInteger; import java.util.Arrays; import java.util.HashMap; import java.util.Random; import java.util.Scanner; import java.util.Stack; import java.util.StringTokenizer; import java.util.TreeMap; import java.util.Vector; public class Main { static class FastScanner{//用于快速读入大量数据 BufferedReader br; StringTokenizer st; public FastScanner(InputStream in) { br = new BufferedReader(new InputStreamReader(in),16384); eat(""); } public void eat(String s) { st = new StringTokenizer(s); } public String nextLine() { try { return br.readLine(); } catch (IOException e) { return null; } } public boolean hasNext() { while(!st.hasMoreTokens()) { String s = nextLine(); if(s==null) return false; eat(s); } return true; } public String next() { hasNext(); return st.nextToken(); } public int nextInt() { return Integer.parseInt(next()); } } static FastScanner cin = new FastScanner(System.in);//快读 static PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));//快速输出 public static void main(String args[]) { int n; n=cin.nextInt(); int ans=(1000-(n%1000))%1000; out.println(ans); out.flush(); } }
[ 7, 6, 13, 12, 13, 30, 4, 18, 18, 13, 13, 2, 17, 2, 2, 4, 18, 20, 17, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 3, 4 ], [ 3, 5 ], [ 5, 6 ], [ 6, 7 ], [ 7, 8 ], [ 8, 9 ], [ 8, 10 ], [ 6, 11 ], [ 11, 12 ], [ 11, 13 ], [ 13, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 14, 18 ], [ 13, 19 ], [ 3, 20 ], [ 20, 21 ] ]
[ "class Main{public static void main(String[] a){System.out.println(999-(new java.util.Scanner(System.in).nextInt()-1)%1000);}}", "class Main{public static void main(String[] a){System.out.println(999-(new java.util.Scanner(System.in).nextInt()-1)%1000);}}", "Main", "public static void main(String[] a){System.out.println(999-(new java.util.Scanner(System.in).nextInt()-1)%1000);}", "main", "{System.out.println(999-(new java.util.Scanner(System.in).nextInt()-1)%1000);}", "System.out.println(999-(new java.util.Scanner(System.in).nextInt()-1)%1000)", "System.out.println", "System.out", "System", "System.out", "999-(new java.util.Scanner(System.in).nextInt()-1)%1000", "999", "(new java.util.Scanner(System.in).nextInt()-1)%1000", "(new java.util.Scanner(System.in).nextInt()-1)", "new java.util.Scanner(System.in).nextInt()", "new java.util.Scanner(System.in).nextInt", "new java.util.Scanner(System.in)", "1", "1000", "String[] a", "a" ]
class Main{public static void main(String[] a){System.out.println(999-(new java.util.Scanner(System.in).nextInt()-1)%1000);}}
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 42, 2, 13, 13, 30, 0, 13, 17, 4, 18, 18, 13, 13, 2, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 8, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 28, 33 ], [ 33, 34 ], [ 33, 35 ], [ 6, 36 ], [ 36, 37 ] ]
[ "import java.util.Scanner;\nclass Main {\n static public void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int a = 0;\n while (a < n) {\n a += 1000;\n }\n System.out.println(a - n);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n static public void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int a = 0;\n while (a < n) {\n a += 1000;\n }\n System.out.println(a - n);\n }\n}", "Main", "static public void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int a = 0;\n while (a < n) {\n a += 1000;\n }\n System.out.println(a - n);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int a = 0;\n while (a < n) {\n a += 1000;\n }\n System.out.println(a - n);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int a = 0;", "a", "0", "while (a < n) {\n a += 1000;\n }", "a < n", "a", "n", "{\n a += 1000;\n }", "a += 1000", "a", "1000", "System.out.println(a - n)", "System.out.println", "System.out", "System", "System.out", "a - n", "a", "n", "String[] args", "args" ]
import java.util.Scanner; class Main { static public void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int a = 0; while (a < n) { a += 1000; } System.out.println(a - n); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 18, 13, 13, 2, 2, 2, 2, 2, 13, 17, 17, 17, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 38, 5 ], [ 38, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 10, 19 ], [ 19, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 19, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 27, 31 ], [ 26, 32 ], [ 25, 33 ], [ 24, 34 ], [ 6, 35 ], [ 35, 36 ], [ 0, 37 ], [ 37, 38 ], [ 37, 39 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\t\t\tint n = scanner.nextInt();\n\t\t\tSystem.out.println(((n + 1000 - 1) / 1000 * 1000 - n));\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\t\t\tint n = scanner.nextInt();\n\t\t\tSystem.out.println(((n + 1000 - 1) / 1000 * 1000 - n));\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\t\t\tint n = scanner.nextInt();\n\t\t\tSystem.out.println(((n + 1000 - 1) / 1000 * 1000 - n));\n\t\t}\n\t}", "main", "{\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\t\t\tint n = scanner.nextInt();\n\t\t\tSystem.out.println(((n + 1000 - 1) / 1000 * 1000 - n));\n\t\t}\n\t}", "try (Scanner scanner = new Scanner(System.in)) {\n\t\t\tint n = scanner.nextInt();\n\t\t\tSystem.out.println(((n + 1000 - 1) / 1000 * 1000 - n));\n\t\t}", "{\n\t\t\tint n = scanner.nextInt();\n\t\t\tSystem.out.println(((n + 1000 - 1) / 1000 * 1000 - n));\n\t\t}", "Scanner scanner = new Scanner(System.in)", "Scanner scanner = new Scanner(System.in)", "new Scanner(System.in)", "int n = scanner.nextInt();", "n", "scanner.nextInt()", "scanner.nextInt", "scanner", "System.out.println(((n + 1000 - 1) / 1000 * 1000 - n))", "System.out.println", "System.out", "System", "System.out", "((n + 1000 - 1) / 1000 * 1000 - n)", "(n + 1000 - 1) / 1000 * 1000", "(n + 1000 - 1) / 1000", "(n + 1000 - 1)", "n + 1000", "n", "1000", "1", "1000", "1000", "n", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\t\t\tint n = scanner.nextInt();\n\t\t\tSystem.out.println(((n + 1000 - 1) / 1000 * 1000 - n));\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\t\t\tint n = scanner.nextInt();\n\t\t\tSystem.out.println(((n + 1000 - 1) / 1000 * 1000 - n));\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { try (Scanner scanner = new Scanner(System.in)) { int n = scanner.nextInt(); System.out.println(((n + 1000 - 1) / 1000 * 1000 - n)); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 14, 2, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 41, 13, 2, 2, 13, 13, 17, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 60, 11 ], [ 60, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 14, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 27, 31 ], [ 26, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 26, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 39, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 12, 57 ], [ 57, 58 ], [ 0, 59 ], [ 59, 60 ], [ 59, 61 ] ]
[ "\nimport java.util.*;\nimport java.io.*;\n\nimport static java.lang.Character.isUpperCase;\n\npublic class Main {\n\n public static void main(String[] args) {\n\n Scanner in = new Scanner(System.in);\n int N = in.nextInt();\n int bill = 1000;\n\n if (N%bill==0)\n {\n System.out.println(0);\n\n }\n else\n {\n int no_of_notes = N/bill+1;\n System.out.println(no_of_notes*1000-N);\n }\n\n }\n }", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "import static java.lang.Character.isUpperCase;", "import static java.lang.Character.isUpperCase;", "import static java.lang.Character.isUpperCase;", "public class Main {\n\n public static void main(String[] args) {\n\n Scanner in = new Scanner(System.in);\n int N = in.nextInt();\n int bill = 1000;\n\n if (N%bill==0)\n {\n System.out.println(0);\n\n }\n else\n {\n int no_of_notes = N/bill+1;\n System.out.println(no_of_notes*1000-N);\n }\n\n }\n }", "Main", "public static void main(String[] args) {\n\n Scanner in = new Scanner(System.in);\n int N = in.nextInt();\n int bill = 1000;\n\n if (N%bill==0)\n {\n System.out.println(0);\n\n }\n else\n {\n int no_of_notes = N/bill+1;\n System.out.println(no_of_notes*1000-N);\n }\n\n }", "main", "{\n\n Scanner in = new Scanner(System.in);\n int N = in.nextInt();\n int bill = 1000;\n\n if (N%bill==0)\n {\n System.out.println(0);\n\n }\n else\n {\n int no_of_notes = N/bill+1;\n System.out.println(no_of_notes*1000-N);\n }\n\n }", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "int N = in.nextInt();", "N", "in.nextInt()", "in.nextInt", "in", "int bill = 1000;", "bill", "1000", "if (N%bill==0)\n {\n System.out.println(0);\n\n }\n else\n {\n int no_of_notes = N/bill+1;\n System.out.println(no_of_notes*1000-N);\n }", "N%bill==0", "N%bill", "N", "bill", "0", "{\n System.out.println(0);\n\n }", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "{\n int no_of_notes = N/bill+1;\n System.out.println(no_of_notes*1000-N);\n }", "int no_of_notes = N/bill+1;", "no_of_notes", "N/bill+1", "N/bill", "N", "bill", "1", "System.out.println(no_of_notes*1000-N)", "System.out.println", "System.out", "System", "System.out", "no_of_notes*1000-N", "no_of_notes*1000", "no_of_notes", "1000", "N", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n\n Scanner in = new Scanner(System.in);\n int N = in.nextInt();\n int bill = 1000;\n\n if (N%bill==0)\n {\n System.out.println(0);\n\n }\n else\n {\n int no_of_notes = N/bill+1;\n System.out.println(no_of_notes*1000-N);\n }\n\n }\n }", "public class Main {\n\n public static void main(String[] args) {\n\n Scanner in = new Scanner(System.in);\n int N = in.nextInt();\n int bill = 1000;\n\n if (N%bill==0)\n {\n System.out.println(0);\n\n }\n else\n {\n int no_of_notes = N/bill+1;\n System.out.println(no_of_notes*1000-N);\n }\n\n }\n }", "Main" ]
import java.util.*; import java.io.*; import static java.lang.Character.isUpperCase; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int N = in.nextInt(); int bill = 1000; if (N%bill==0) { System.out.println(0); } else { int no_of_notes = N/bill+1; System.out.println(no_of_notes*1000-N); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 2, 13, 17, 14, 2, 2, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 30, 41, 13, 2, 2, 13, 17, 17, 41, 13, 2, 2, 13, 17, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 59, 5 ], [ 59, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 22, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 35, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 35, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 50, 55 ], [ 6, 56 ], [ 56, 57 ], [ 0, 58 ], [ 58, 59 ], [ 58, 60 ] ]
[ "import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint rem = n%1000;\n\t//\tint div = n%1000;\n\t\tif(n%1000==0){\n\t\t\tSystem.out.println(0);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tint div = n/1000+1;\n\t\t\t\tint ans= div*1000 - n;\n\t\t\t\t\tSystem.out.println(ans);\n\t\t\t\t}\n\t\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint rem = n%1000;\n\t//\tint div = n%1000;\n\t\tif(n%1000==0){\n\t\t\tSystem.out.println(0);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tint div = n/1000+1;\n\t\t\t\tint ans= div*1000 - n;\n\t\t\t\t\tSystem.out.println(ans);\n\t\t\t\t}\n\t\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint rem = n%1000;\n\t//\tint div = n%1000;\n\t\tif(n%1000==0){\n\t\t\tSystem.out.println(0);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tint div = n/1000+1;\n\t\t\t\tint ans= div*1000 - n;\n\t\t\t\t\tSystem.out.println(ans);\n\t\t\t\t}\n\t\n\t}", "main", "{\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint rem = n%1000;\n\t//\tint div = n%1000;\n\t\tif(n%1000==0){\n\t\t\tSystem.out.println(0);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tint div = n/1000+1;\n\t\t\t\tint ans= div*1000 - n;\n\t\t\t\t\tSystem.out.println(ans);\n\t\t\t\t}\n\t\n\t}", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "int n = in.nextInt();", "n", "in.nextInt()", "in.nextInt", "in", "int rem = n%1000;", "rem", "n%1000", "n", "1000", "if(n%1000==0){\n\t\t\tSystem.out.println(0);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tint div = n/1000+1;\n\t\t\t\tint ans= div*1000 - n;\n\t\t\t\t\tSystem.out.println(ans);\n\t\t\t\t}", "n%1000==0", "n%1000", "n", "1000", "0", "{\n\t\t\tSystem.out.println(0);\n\t\t\t}", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "{\n\t\t\t\tint div = n/1000+1;\n\t\t\t\tint ans= div*1000 - n;\n\t\t\t\t\tSystem.out.println(ans);\n\t\t\t\t}", "int div = n/1000+1;", "div", "n/1000+1", "n/1000", "n", "1000", "1", "int ans= div*1000 - n;", "ans", "div*1000 - n", "div*1000", "div", "1000", "n", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint rem = n%1000;\n\t//\tint div = n%1000;\n\t\tif(n%1000==0){\n\t\t\tSystem.out.println(0);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tint div = n/1000+1;\n\t\t\t\tint ans= div*1000 - n;\n\t\t\t\t\tSystem.out.println(ans);\n\t\t\t\t}\n\t\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint rem = n%1000;\n\t//\tint div = n%1000;\n\t\tif(n%1000==0){\n\t\t\tSystem.out.println(0);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tint div = n/1000+1;\n\t\t\t\tint ans= div*1000 - n;\n\t\t\t\t\tSystem.out.println(ans);\n\t\t\t\t}\n\t\n\t}\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); int rem = n%1000; // int div = n%1000; if(n%1000==0){ System.out.println(0); } else{ int div = n/1000+1; int ans= div*1000 - n; System.out.println(ans); } } }
[ 7, 6, 13, 12, 13, 30, 41, 13, 4, 18, 20, 11, 1, 41, 13, 17, 1, 40, 13, 30, 30, 41, 13, 2, 2, 2, 13, 17, 17, 13, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 13, 3, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 45, 2 ], [ 45, 3 ], [ 3, 4 ], [ 3, 5 ], [ 5, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 5, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 13, 15 ], [ 11, 16 ], [ 16, 17 ], [ 17, 18 ], [ 11, 19 ], [ 20, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 24, 28 ], [ 23, 29 ], [ 20, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 30, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 34, 41 ], [ 3, 42 ], [ 42, 43 ], [ 0, 44 ], [ 44, 45 ], [ 44, 46 ] ]
[ "public class Main{\n public static void main(String[] args){\n int n = new java.util.Scanner(System.in).nextInt();\n\n for (int i=0; ;i++){\n int tmp = (i+1)*1000 - n;\n if (tmp >= 0){\n System.out.println(tmp);\n break;\n }\n }\n }\n}", "public class Main{\n public static void main(String[] args){\n int n = new java.util.Scanner(System.in).nextInt();\n\n for (int i=0; ;i++){\n int tmp = (i+1)*1000 - n;\n if (tmp >= 0){\n System.out.println(tmp);\n break;\n }\n }\n }\n}", "Main", "public static void main(String[] args){\n int n = new java.util.Scanner(System.in).nextInt();\n\n for (int i=0; ;i++){\n int tmp = (i+1)*1000 - n;\n if (tmp >= 0){\n System.out.println(tmp);\n break;\n }\n }\n }", "main", "{\n int n = new java.util.Scanner(System.in).nextInt();\n\n for (int i=0; ;i++){\n int tmp = (i+1)*1000 - n;\n if (tmp >= 0){\n System.out.println(tmp);\n break;\n }\n }\n }", "int n = new java.util.Scanner(System.in).nextInt();", "n", "new java.util.Scanner(System.in).nextInt()", "new java.util.Scanner(System.in).nextInt", "new java.util.Scanner(System.in)", "for (int i=0; ;i++){\n int tmp = (i+1)*1000 - n;\n if (tmp >= 0){\n System.out.println(tmp);\n break;\n }\n }", "int i=0;", "int i=0;", "i", "0", "i++", "i++", "i", "{\n int tmp = (i+1)*1000 - n;\n if (tmp >= 0){\n System.out.println(tmp);\n break;\n }\n }", "{\n int tmp = (i+1)*1000 - n;\n if (tmp >= 0){\n System.out.println(tmp);\n break;\n }\n }", "int tmp = (i+1)*1000 - n;", "tmp", "(i+1)*1000 - n", "(i+1)*1000", "(i+1)", "i", "1", "1000", "n", "if (tmp >= 0){\n System.out.println(tmp);\n break;\n }", "tmp >= 0", "tmp", "0", "{\n System.out.println(tmp);\n break;\n }", "System.out.println(tmp)", "System.out.println", "System.out", "System", "System.out", "tmp", "break;", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n int n = new java.util.Scanner(System.in).nextInt();\n\n for (int i=0; ;i++){\n int tmp = (i+1)*1000 - n;\n if (tmp >= 0){\n System.out.println(tmp);\n break;\n }\n }\n }\n}", "public class Main{\n public static void main(String[] args){\n int n = new java.util.Scanner(System.in).nextInt();\n\n for (int i=0; ;i++){\n int tmp = (i+1)*1000 - n;\n if (tmp >= 0){\n System.out.println(tmp);\n break;\n }\n }\n }\n}", "Main" ]
public class Main{ public static void main(String[] args){ int n = new java.util.Scanner(System.in).nextInt(); for (int i=0; ;i++){ int tmp = (i+1)*1000 - n; if (tmp >= 0){ System.out.println(tmp); break; } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 18, 13, 13, 41, 13, 18, 13, 13, 41, 13, 20, 41, 13, 20, 41, 13, 20, 4, 18, 13, 17, 13, 13, 4, 18, 13, 23, 13, 6, 13, 12, 13, 30, 4, 18, 13, 2, 2, 17, 2, 4, 18, 13, 17, 17, 23, 13, 23, 13, 23, 13, 6, 13, 41, 13, 41, 13, 20, 17, 41, 13, 41, 13, 12, 13, 30, 0, 18, 36, 13, 13, 0, 18, 36, 13, 17, 0, 18, 36, 13, 17, 23, 13, 12, 13, 30, 14, 2, 13, 13, 30, 14, 2, 13, 40, 17, 37, 20, 0, 13, 17, 38, 5, 13, 30, 37, 20, 30, 0, 13, 4, 18, 13, 13, 14, 2, 13, 17, 29, 40, 17, 29, 18, 13, 40, 13, 12, 13, 30, 29, 2, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 40, 17, 23, 13, 12, 13, 30, 41, 13, 17, 41, 13, 4, 13, 42, 4, 13, 13, 0, 13, 4, 13, 41, 13, 2, 13, 17, 14, 13, 0, 13, 4, 13, 42, 2, 2, 13, 17, 2, 13, 17, 30, 0, 13, 17, 0, 13, 2, 13, 17, 0, 13, 4, 13, 14, 40, 4, 13, 13, 37, 20, 29, 8, 13, 40, 13, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 19, 20 ], [ 19, 21 ], [ 0, 22 ], [ 245, 23 ], [ 245, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 29, 31 ], [ 26, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 34, 36 ], [ 26, 37 ], [ 37, 38 ], [ 37, 39 ], [ 26, 40 ], [ 40, 41 ], [ 40, 42 ], [ 26, 43 ], [ 43, 44 ], [ 43, 45 ], [ 26, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 46, 50 ], [ 46, 51 ], [ 26, 52 ], [ 52, 53 ], [ 53, 54 ], [ 24, 55 ], [ 55, 56 ], [ 245, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 68, 72 ], [ 65, 73 ], [ 59, 74 ], [ 74, 75 ], [ 59, 76 ], [ 76, 77 ], [ 59, 78 ], [ 78, 79 ], [ 245, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 80, 84 ], [ 84, 85 ], [ 84, 86 ], [ 80, 88 ], [ 88, 89 ], [ 80, 90 ], [ 90, 91 ], [ 80, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 94, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 94, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 105, 109 ], [ 92, 110 ], [ 110, 111 ], [ 80, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 115, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 123, 124 ], [ 120, 125 ], [ 125, 126 ], [ 119, 127 ], [ 127, 128 ], [ 127, 129 ], [ 119, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 134, 135 ], [ 130, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 139, 140 ], [ 140, 141 ], [ 139, 142 ], [ 119, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 143, 147 ], [ 147, 148 ], [ 148, 149 ], [ 114, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 153, 154 ], [ 80, 155 ], [ 155, 156 ], [ 155, 157 ], [ 157, 158 ], [ 158, 159 ], [ 162, 160 ], [ 172, 161 ], [ 169, 162 ], [ 162, 163 ], [ 163, 164 ], [ 163, 165 ], [ 162, 166 ], [ 166, 167 ], [ 166, 168 ], [ 169, 169 ], [ 169, 170 ], [ 169, 171 ], [ 172, 172 ], [ 172, 173 ], [ 172, 174 ], [ 162, 175 ], [ 175, 176 ], [ 175, 177 ], [ 177, 178 ], [ 155, 179 ], [ 179, 180 ], [ 80, 181 ], [ 181, 182 ], [ 181, 183 ], [ 183, 184 ], [ 184, 185 ], [ 184, 186 ], [ 183, 187 ], [ 187, 188 ], [ 187, 189 ], [ 189, 190 ], [ 183, 191 ], [ 191, 192 ], [ 192, 193 ], [ 192, 194 ], [ 191, 195 ], [ 195, 196 ], [ 195, 197 ], [ 197, 198 ], [ 183, 199 ], [ 199, 200 ], [ 199, 201 ], [ 201, 202 ], [ 201, 203 ], [ 183, 204 ], [ 204, 205 ], [ 204, 206 ], [ 206, 207 ], [ 206, 208 ], [ 208, 209 ], [ 183, 210 ], [ 210, 211 ], [ 211, 212 ], [ 212, 213 ], [ 212, 214 ], [ 211, 215 ], [ 215, 216 ], [ 215, 217 ], [ 210, 218 ], [ 218, 219 ], [ 219, 220 ], [ 219, 221 ], [ 218, 222 ], [ 222, 223 ], [ 222, 224 ], [ 224, 225 ], [ 224, 226 ], [ 218, 227 ], [ 227, 228 ], [ 227, 229 ], [ 229, 230 ], [ 183, 231 ], [ 231, 232 ], [ 232, 233 ], [ 233, 234 ], [ 233, 235 ], [ 231, 236 ], [ 236, 237 ], [ 183, 238 ], [ 238, 239 ], [ 239, 240 ], [ 239, 241 ], [ 241, 242 ], [ 239, 243 ], [ 0, 244 ], [ 244, 245 ], [ 244, 246 ] ]
[ "import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.InputMismatchException;\nimport java.io.IOException;\nimport java.io.InputStream;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastScanner in = new FastScanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskA solver = new TaskA();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskA {\n public void solve(int testNumber, FastScanner in, PrintWriter out) {\n out.println((1000 - (in.nextInt() % 1000)) % 1000);\n }\n\n }\n\n static class FastScanner {\n private InputStream in;\n private byte[] buffer = new byte[1024];\n private int bufPointer;\n private int bufLength;\n\n public FastScanner(InputStream in) {\n this.in = in;\n this.bufPointer = 0;\n this.bufLength = 0;\n }\n\n private int readByte() {\n if (bufPointer >= bufLength) {\n if (bufLength == -1)\n throw new InputMismatchException();\n\n bufPointer = 0;\n try {\n bufLength = in.read(buffer);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n\n if (bufLength <= 0)\n return -1;\n }\n return buffer[bufPointer++];\n }\n\n private static boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public int nextInt() {\n int n = 0;\n\n int b = readByte();\n while (isSpaceChar(b))\n b = readByte();\n\n boolean minus = (b == '-');\n if (minus)\n b = readByte();\n\n while (b >= '0' && b <= '9') {\n n *= 10;\n n += b - '0';\n b = readByte();\n }\n\n if (!isSpaceChar(b))\n throw new NumberFormatException();\n\n return minus ? -n : n;\n }\n\n }\n}\n", "import java.io.OutputStream;", "OutputStream", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.util.InputMismatchException;", "InputMismatchException", "java.util", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastScanner in = new FastScanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskA solver = new TaskA();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskA {\n public void solve(int testNumber, FastScanner in, PrintWriter out) {\n out.println((1000 - (in.nextInt() % 1000)) % 1000);\n }\n\n }\n\n static class FastScanner {\n private InputStream in;\n private byte[] buffer = new byte[1024];\n private int bufPointer;\n private int bufLength;\n\n public FastScanner(InputStream in) {\n this.in = in;\n this.bufPointer = 0;\n this.bufLength = 0;\n }\n\n private int readByte() {\n if (bufPointer >= bufLength) {\n if (bufLength == -1)\n throw new InputMismatchException();\n\n bufPointer = 0;\n try {\n bufLength = in.read(buffer);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n\n if (bufLength <= 0)\n return -1;\n }\n return buffer[bufPointer++];\n }\n\n private static boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public int nextInt() {\n int n = 0;\n\n int b = readByte();\n while (isSpaceChar(b))\n b = readByte();\n\n boolean minus = (b == '-');\n if (minus)\n b = readByte();\n\n while (b >= '0' && b <= '9') {\n n *= 10;\n n += b - '0';\n b = readByte();\n }\n\n if (!isSpaceChar(b))\n throw new NumberFormatException();\n\n return minus ? -n : n;\n }\n\n }\n}", "Main", "public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastScanner in = new FastScanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskA solver = new TaskA();\n solver.solve(1, in, out);\n out.close();\n }", "main", "{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastScanner in = new FastScanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskA solver = new TaskA();\n solver.solve(1, in, out);\n out.close();\n }", "InputStream inputStream = System.in;", "inputStream", "System.in", "System", "System.in", "OutputStream outputStream = System.out;", "outputStream", "System.out", "System", "System.out", "FastScanner in = new FastScanner(inputStream);", "in", "new FastScanner(inputStream)", "PrintWriter out = new PrintWriter(outputStream);", "out", "new PrintWriter(outputStream)", "TaskA solver = new TaskA();", "solver", "new TaskA()", "solver.solve(1, in, out)", "solver.solve", "solver", "1", "in", "out", "out.close()", "out.close", "out", "String[] args", "args", "static class TaskA {\n public void solve(int testNumber, FastScanner in, PrintWriter out) {\n out.println((1000 - (in.nextInt() % 1000)) % 1000);\n }\n\n }", "TaskA", "public void solve(int testNumber, FastScanner in, PrintWriter out) {\n out.println((1000 - (in.nextInt() % 1000)) % 1000);\n }", "solve", "{\n out.println((1000 - (in.nextInt() % 1000)) % 1000);\n }", "out.println((1000 - (in.nextInt() % 1000)) % 1000)", "out.println", "out", "(1000 - (in.nextInt() % 1000)) % 1000", "(1000 - (in.nextInt() % 1000))", "1000", "(in.nextInt() % 1000)", "in.nextInt()", "in.nextInt", "in", "1000", "1000", "int testNumber", "testNumber", "FastScanner in", "in", "PrintWriter out", "out", "static class FastScanner {\n private InputStream in;\n private byte[] buffer = new byte[1024];\n private int bufPointer;\n private int bufLength;\n\n public FastScanner(InputStream in) {\n this.in = in;\n this.bufPointer = 0;\n this.bufLength = 0;\n }\n\n private int readByte() {\n if (bufPointer >= bufLength) {\n if (bufLength == -1)\n throw new InputMismatchException();\n\n bufPointer = 0;\n try {\n bufLength = in.read(buffer);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n\n if (bufLength <= 0)\n return -1;\n }\n return buffer[bufPointer++];\n }\n\n private static boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public int nextInt() {\n int n = 0;\n\n int b = readByte();\n while (isSpaceChar(b))\n b = readByte();\n\n boolean minus = (b == '-');\n if (minus)\n b = readByte();\n\n while (b >= '0' && b <= '9') {\n n *= 10;\n n += b - '0';\n b = readByte();\n }\n\n if (!isSpaceChar(b))\n throw new NumberFormatException();\n\n return minus ? -n : n;\n }\n\n }", "FastScanner", "private InputStream in;", "in", "private byte[] buffer = new byte[1024];", "buffer", "new byte[1024]", "1024", "private int bufPointer;", "bufPointer", "private int bufLength;", "bufLength", "public FastScanner(InputStream in) {\n this.in = in;\n this.bufPointer = 0;\n this.bufLength = 0;\n }", "FastScanner", "{\n this.in = in;\n this.bufPointer = 0;\n this.bufLength = 0;\n }", "this.in = in", "this.in", "this", "this.in", "in", "this.bufPointer = 0", "this.bufPointer", "this", "this.bufPointer", "0", "this.bufLength = 0", "this.bufLength", "this", "this.bufLength", "0", "InputStream in", "in", "private int readByte() {\n if (bufPointer >= bufLength) {\n if (bufLength == -1)\n throw new InputMismatchException();\n\n bufPointer = 0;\n try {\n bufLength = in.read(buffer);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n\n if (bufLength <= 0)\n return -1;\n }\n return buffer[bufPointer++];\n }", "readByte", "{\n if (bufPointer >= bufLength) {\n if (bufLength == -1)\n throw new InputMismatchException();\n\n bufPointer = 0;\n try {\n bufLength = in.read(buffer);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n\n if (bufLength <= 0)\n return -1;\n }\n return buffer[bufPointer++];\n }", "if (bufPointer >= bufLength) {\n if (bufLength == -1)\n throw new InputMismatchException();\n\n bufPointer = 0;\n try {\n bufLength = in.read(buffer);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n\n if (bufLength <= 0)\n return -1;\n }", "bufPointer >= bufLength", "bufPointer", "bufLength", "{\n if (bufLength == -1)\n throw new InputMismatchException();\n\n bufPointer = 0;\n try {\n bufLength = in.read(buffer);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n\n if (bufLength <= 0)\n return -1;\n }", "if (bufLength == -1)\n throw new InputMismatchException();", "bufLength == -1", "bufLength", "-1", "1", "throw new InputMismatchException();", "new InputMismatchException()", "bufPointer = 0", "bufPointer", "0", "try {\n bufLength = in.read(buffer);\n } catch (IOException e) {\n throw new InputMismatchException();\n }", "catch (IOException e) {\n throw new InputMismatchException();\n }", "IOException e", "{\n throw new InputMismatchException();\n }", "throw new InputMismatchException();", "new InputMismatchException()", "{\n bufLength = in.read(buffer);\n }", "bufLength = in.read(buffer)", "bufLength", "in.read(buffer)", "in.read", "in", "buffer", "if (bufLength <= 0)\n return -1;", "bufLength <= 0", "bufLength", "0", "return -1;", "-1", "1", "return buffer[bufPointer++];", "buffer[bufPointer++]", "buffer", "bufPointer++", "bufPointer", "private static boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }", "isSpaceChar", "{\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }", "return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;", "c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1", "c == '\\t'", "c == '\\r'", "c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1", "c == ' '", "c", "' '", "c == '\\n'", "c", "'\\n'", "c == '\\r'", "c", "'\\r'", "c == '\\t'", "c", "'\\t'", "c == -1", "c", "-1", "1", "int c", "c", "public int nextInt() {\n int n = 0;\n\n int b = readByte();\n while (isSpaceChar(b))\n b = readByte();\n\n boolean minus = (b == '-');\n if (minus)\n b = readByte();\n\n while (b >= '0' && b <= '9') {\n n *= 10;\n n += b - '0';\n b = readByte();\n }\n\n if (!isSpaceChar(b))\n throw new NumberFormatException();\n\n return minus ? -n : n;\n }", "nextInt", "{\n int n = 0;\n\n int b = readByte();\n while (isSpaceChar(b))\n b = readByte();\n\n boolean minus = (b == '-');\n if (minus)\n b = readByte();\n\n while (b >= '0' && b <= '9') {\n n *= 10;\n n += b - '0';\n b = readByte();\n }\n\n if (!isSpaceChar(b))\n throw new NumberFormatException();\n\n return minus ? -n : n;\n }", "int n = 0;", "n", "0", "int b = readByte();", "b", "readByte()", "readByte", "while (isSpaceChar(b))\n b = readByte();", "isSpaceChar(b)", "isSpaceChar", "b", "b = readByte()", "b", "readByte()", "readByte", "boolean minus = (b == '-');", "minus", "(b == '-')", "b", "'-'", "if (minus)\n b = readByte();", "minus", "b = readByte()", "b", "readByte()", "readByte", "while (b >= '0' && b <= '9') {\n n *= 10;\n n += b - '0';\n b = readByte();\n }", "b >= '0' && b <= '9'", "b >= '0'", "b", "'0'", "b <= '9'", "b", "'9'", "{\n n *= 10;\n n += b - '0';\n b = readByte();\n }", "n *= 10", "n", "10", "n += b - '0'", "n", "b - '0'", "b", "'0'", "b = readByte()", "b", "readByte()", "readByte", "if (!isSpaceChar(b))\n throw new NumberFormatException();", "!isSpaceChar(b)", "isSpaceChar(b)", "isSpaceChar", "b", "throw new NumberFormatException();", "new NumberFormatException()", "return minus ? -n : n;", "minus ? -n : n", "minus", "-n", "n", "n", "public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastScanner in = new FastScanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskA solver = new TaskA();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskA {\n public void solve(int testNumber, FastScanner in, PrintWriter out) {\n out.println((1000 - (in.nextInt() % 1000)) % 1000);\n }\n\n }\n\n static class FastScanner {\n private InputStream in;\n private byte[] buffer = new byte[1024];\n private int bufPointer;\n private int bufLength;\n\n public FastScanner(InputStream in) {\n this.in = in;\n this.bufPointer = 0;\n this.bufLength = 0;\n }\n\n private int readByte() {\n if (bufPointer >= bufLength) {\n if (bufLength == -1)\n throw new InputMismatchException();\n\n bufPointer = 0;\n try {\n bufLength = in.read(buffer);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n\n if (bufLength <= 0)\n return -1;\n }\n return buffer[bufPointer++];\n }\n\n private static boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public int nextInt() {\n int n = 0;\n\n int b = readByte();\n while (isSpaceChar(b))\n b = readByte();\n\n boolean minus = (b == '-');\n if (minus)\n b = readByte();\n\n while (b >= '0' && b <= '9') {\n n *= 10;\n n += b - '0';\n b = readByte();\n }\n\n if (!isSpaceChar(b))\n throw new NumberFormatException();\n\n return minus ? -n : n;\n }\n\n }\n}", "public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastScanner in = new FastScanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskA solver = new TaskA();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskA {\n public void solve(int testNumber, FastScanner in, PrintWriter out) {\n out.println((1000 - (in.nextInt() % 1000)) % 1000);\n }\n\n }\n\n static class FastScanner {\n private InputStream in;\n private byte[] buffer = new byte[1024];\n private int bufPointer;\n private int bufLength;\n\n public FastScanner(InputStream in) {\n this.in = in;\n this.bufPointer = 0;\n this.bufLength = 0;\n }\n\n private int readByte() {\n if (bufPointer >= bufLength) {\n if (bufLength == -1)\n throw new InputMismatchException();\n\n bufPointer = 0;\n try {\n bufLength = in.read(buffer);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n\n if (bufLength <= 0)\n return -1;\n }\n return buffer[bufPointer++];\n }\n\n private static boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public int nextInt() {\n int n = 0;\n\n int b = readByte();\n while (isSpaceChar(b))\n b = readByte();\n\n boolean minus = (b == '-');\n if (minus)\n b = readByte();\n\n while (b >= '0' && b <= '9') {\n n *= 10;\n n += b - '0';\n b = readByte();\n }\n\n if (!isSpaceChar(b))\n throw new NumberFormatException();\n\n return minus ? -n : n;\n }\n\n }\n}", "Main" ]
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.InputMismatchException; import java.io.IOException; import java.io.InputStream; /** * Built using CHelper plug-in * Actual solution is at the top */ public class Main { public static void main(String[] args) { InputStream inputStream = System.in; OutputStream outputStream = System.out; FastScanner in = new FastScanner(inputStream); PrintWriter out = new PrintWriter(outputStream); TaskA solver = new TaskA(); solver.solve(1, in, out); out.close(); } static class TaskA { public void solve(int testNumber, FastScanner in, PrintWriter out) { out.println((1000 - (in.nextInt() % 1000)) % 1000); } } static class FastScanner { private InputStream in; private byte[] buffer = new byte[1024]; private int bufPointer; private int bufLength; public FastScanner(InputStream in) { this.in = in; this.bufPointer = 0; this.bufLength = 0; } private int readByte() { if (bufPointer >= bufLength) { if (bufLength == -1) throw new InputMismatchException(); bufPointer = 0; try { bufLength = in.read(buffer); } catch (IOException e) { throw new InputMismatchException(); } if (bufLength <= 0) return -1; } return buffer[bufPointer++]; } private static boolean isSpaceChar(int c) { return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1; } public int nextInt() { int n = 0; int b = readByte(); while (isSpaceChar(b)) b = readByte(); boolean minus = (b == '-'); if (minus) b = readByte(); while (b >= '0' && b <= '9') { n *= 10; n += b - '0'; b = readByte(); } if (!isSpaceChar(b)) throw new NumberFormatException(); return minus ? -n : n; } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 18, 13, 13, 2, 2, 17, 2, 13, 17, 17, 23, 13, 6, 13, 41, 13, 20, 41, 13, 20, 12, 13, 30, 42, 40, 4, 18, 13, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 20, 13, 0, 18, 13, 17, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 135, 14 ], [ 135, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 17, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 34, 36 ], [ 31, 37 ], [ 15, 38 ], [ 38, 39 ], [ 0, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 45, 46 ], [ 45, 47 ], [ 40, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 51, 56 ], [ 56, 57 ], [ 56, 58 ], [ 50, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 40, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 70, 71 ], [ 40, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 79, 80 ], [ 40, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 88, 89 ], [ 40, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 94, 97 ], [ 97, 98 ], [ 40, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 101, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 111, 116 ], [ 116, 117 ], [ 116, 118 ], [ 111, 119 ], [ 119, 120 ], [ 120, 121 ], [ 111, 122 ], [ 123, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 124, 128 ], [ 128, 129 ], [ 101, 130 ], [ 130, 131 ], [ 99, 132 ], [ 132, 133 ], [ 0, 134 ], [ 134, 135 ], [ 134, 136 ] ]
[ "\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\n\npublic class Main\n\n{\t\n\tpublic static void main(String args[]) throws IOException\n\t{\n\t\tFastScanner fs = new FastScanner();\n\t\t\tint n = fs.nextInt();\n\t\t\tSystem.out.println((1000-n%1000)%1000);\n\t\t\n\t}\n\n\n}\nclass FastScanner\n{\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tStringTokenizer str = new StringTokenizer(\"\");\n\t\n\tString next() throws IOException\n\t{\n\t\twhile(!str.hasMoreTokens())\n\t\t\tstr = new StringTokenizer(br.readLine());\n\t\t\n\t\treturn str.nextToken();\n\t}\n\t\n\tint nextInt() throws IOException\n\t{\n\t\treturn Integer.parseInt(next());\n\t}\n\t\n\tfloat nextfloat() throws IOException\n\t{\n\t\treturn Float.parseFloat(next());\n\t}\n\t\n\tdouble nextDouble() throws IOException\n\t{\n\t\treturn Double.parseDouble(next());\n\t}\n\tlong nextLong() throws IOException\n\t{\n\t\treturn Long.parseLong(next());\n\t}\n\tint [] arrayIn(int n) throws IOException\n\t{\n\t\tint arr[] = new int[n];\n\t\tarr[0] = 0;\n\t\tfor(int i=1; i<n; i++)\n\t\t{\n\t\t\tarr[i] = nextInt();\n\t\t}\n\t\treturn arr;\n\t}\n}\n\n\n\n\t", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "public class Main\n\n{\t\n\tpublic static void main(String args[]) throws IOException\n\t{\n\t\tFastScanner fs = new FastScanner();\n\t\t\tint n = fs.nextInt();\n\t\t\tSystem.out.println((1000-n%1000)%1000);\n\t\t\n\t}\n\n\n}", "Main", "public static void main(String args[]) throws IOException\n\t{\n\t\tFastScanner fs = new FastScanner();\n\t\t\tint n = fs.nextInt();\n\t\t\tSystem.out.println((1000-n%1000)%1000);\n\t\t\n\t}", "main", "{\n\t\tFastScanner fs = new FastScanner();\n\t\t\tint n = fs.nextInt();\n\t\t\tSystem.out.println((1000-n%1000)%1000);\n\t\t\n\t}", "FastScanner fs = new FastScanner();", "fs", "new FastScanner()", "int n = fs.nextInt();", "n", "fs.nextInt()", "fs.nextInt", "fs", "System.out.println((1000-n%1000)%1000)", "System.out.println", "System.out", "System", "System.out", "(1000-n%1000)%1000", "(1000-n%1000)", "1000", "n%1000", "n", "1000", "1000", "String args[]", "args", "class FastScanner\n{\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tStringTokenizer str = new StringTokenizer(\"\");\n\t\n\tString next() throws IOException\n\t{\n\t\twhile(!str.hasMoreTokens())\n\t\t\tstr = new StringTokenizer(br.readLine());\n\t\t\n\t\treturn str.nextToken();\n\t}\n\t\n\tint nextInt() throws IOException\n\t{\n\t\treturn Integer.parseInt(next());\n\t}\n\t\n\tfloat nextfloat() throws IOException\n\t{\n\t\treturn Float.parseFloat(next());\n\t}\n\t\n\tdouble nextDouble() throws IOException\n\t{\n\t\treturn Double.parseDouble(next());\n\t}\n\tlong nextLong() throws IOException\n\t{\n\t\treturn Long.parseLong(next());\n\t}\n\tint [] arrayIn(int n) throws IOException\n\t{\n\t\tint arr[] = new int[n];\n\t\tarr[0] = 0;\n\t\tfor(int i=1; i<n; i++)\n\t\t{\n\t\t\tarr[i] = nextInt();\n\t\t}\n\t\treturn arr;\n\t}\n}", "FastScanner", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringTokenizer str = new StringTokenizer(\"\");", "str", "new StringTokenizer(\"\")", "String next() throws IOException\n\t{\n\t\twhile(!str.hasMoreTokens())\n\t\t\tstr = new StringTokenizer(br.readLine());\n\t\t\n\t\treturn str.nextToken();\n\t}", "next", "{\n\t\twhile(!str.hasMoreTokens())\n\t\t\tstr = new StringTokenizer(br.readLine());\n\t\t\n\t\treturn str.nextToken();\n\t}", "while(!str.hasMoreTokens())\n\t\t\tstr = new StringTokenizer(br.readLine());", "!str.hasMoreTokens()", "str.hasMoreTokens()", "str.hasMoreTokens", "str", "str = new StringTokenizer(br.readLine())", "str", "new StringTokenizer(br.readLine())", "return str.nextToken();", "str.nextToken()", "str.nextToken", "str", "int nextInt() throws IOException\n\t{\n\t\treturn Integer.parseInt(next());\n\t}", "nextInt", "{\n\t\treturn Integer.parseInt(next());\n\t}", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "float nextfloat() throws IOException\n\t{\n\t\treturn Float.parseFloat(next());\n\t}", "nextfloat", "{\n\t\treturn Float.parseFloat(next());\n\t}", "return Float.parseFloat(next());", "Float.parseFloat(next())", "Float.parseFloat", "Float", "next()", "next", "double nextDouble() throws IOException\n\t{\n\t\treturn Double.parseDouble(next());\n\t}", "nextDouble", "{\n\t\treturn Double.parseDouble(next());\n\t}", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "long nextLong() throws IOException\n\t{\n\t\treturn Long.parseLong(next());\n\t}", "nextLong", "{\n\t\treturn Long.parseLong(next());\n\t}", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "int [] arrayIn(int n) throws IOException\n\t{\n\t\tint arr[] = new int[n];\n\t\tarr[0] = 0;\n\t\tfor(int i=1; i<n; i++)\n\t\t{\n\t\t\tarr[i] = nextInt();\n\t\t}\n\t\treturn arr;\n\t}", "arrayIn", "{\n\t\tint arr[] = new int[n];\n\t\tarr[0] = 0;\n\t\tfor(int i=1; i<n; i++)\n\t\t{\n\t\t\tarr[i] = nextInt();\n\t\t}\n\t\treturn arr;\n\t}", "int arr[] = new int[n];", "arr", "new int[n]", "n", "arr[0] = 0", "arr[0]", "arr", "0", "0", "for(int i=1; i<n; i++)\n\t\t{\n\t\t\tarr[i] = nextInt();\n\t\t}", "int i=1;", "int i=1;", "i", "1", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\tarr[i] = nextInt();\n\t\t}", "{\n\t\t\tarr[i] = nextInt();\n\t\t}", "arr[i] = nextInt()", "arr[i]", "arr", "i", "nextInt()", "nextInt", "return arr;", "arr", "int n", "n", "public class Main\n\n{\t\n\tpublic static void main(String args[]) throws IOException\n\t{\n\t\tFastScanner fs = new FastScanner();\n\t\t\tint n = fs.nextInt();\n\t\t\tSystem.out.println((1000-n%1000)%1000);\n\t\t\n\t}\n\n\n}", "public class Main\n\n{\t\n\tpublic static void main(String args[]) throws IOException\n\t{\n\t\tFastScanner fs = new FastScanner();\n\t\t\tint n = fs.nextInt();\n\t\t\tSystem.out.println((1000-n%1000)%1000);\n\t\t\n\t}\n\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { public static void main(String args[]) throws IOException { FastScanner fs = new FastScanner(); int n = fs.nextInt(); System.out.println((1000-n%1000)%1000); } } class FastScanner { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer str = new StringTokenizer(""); String next() throws IOException { while(!str.hasMoreTokens()) str = new StringTokenizer(br.readLine()); return str.nextToken(); } int nextInt() throws IOException { return Integer.parseInt(next()); } float nextfloat() throws IOException { return Float.parseFloat(next()); } double nextDouble() throws IOException { return Double.parseDouble(next()); } long nextLong() throws IOException { return Long.parseLong(next()); } int [] arrayIn(int n) throws IOException { int arr[] = new int[n]; arr[0] = 0; for(int i=1; i<n; i++) { arr[i] = nextInt(); } return arr; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 2, 2, 17, 2, 2, 2, 13, 17, 17, 17, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 39, 5 ], [ 39, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 22, 28 ], [ 19, 29 ], [ 8, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 6, 36 ], [ 36, 37 ], [ 0, 38 ], [ 38, 39 ], [ 38, 40 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint exchange = 1000*((N-1)/1000+1)-N;\n\t\tSystem.out.println(exchange);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint exchange = 1000*((N-1)/1000+1)-N;\n\t\tSystem.out.println(exchange);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint exchange = 1000*((N-1)/1000+1)-N;\n\t\tSystem.out.println(exchange);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint exchange = 1000*((N-1)/1000+1)-N;\n\t\tSystem.out.println(exchange);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "int exchange = 1000*((N-1)/1000+1)-N;", "exchange", "1000*((N-1)/1000+1)-N", "1000*((N-1)/1000+1)", "1000", "((N-1)/1000+1)", "(N-1)/1000", "(N-1)", "N", "1", "1000", "1", "N", "System.out.println(exchange)", "System.out.println", "System.out", "System", "System.out", "exchange", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint exchange = 1000*((N-1)/1000+1)-N;\n\t\tSystem.out.println(exchange);\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint exchange = 1000*((N-1)/1000+1)-N;\n\t\tSystem.out.println(exchange);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int exchange = 1000*((N-1)/1000+1)-N; System.out.println(exchange); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 4, 18, 18, 13, 13, 2, 2, 17, 4, 18, 20, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 24, 5 ], [ 24, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 9, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 6, 21 ], [ 21, 22 ], [ 0, 23 ], [ 23, 24 ], [ 23, 25 ] ]
[ "import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tSystem.out.println((100000 - new Scanner(System.in).nextInt()) % 1000);\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tSystem.out.println((100000 - new Scanner(System.in).nextInt()) % 1000);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tSystem.out.println((100000 - new Scanner(System.in).nextInt()) % 1000);\n\t}", "main", "{\n\t\tSystem.out.println((100000 - new Scanner(System.in).nextInt()) % 1000);\n\t}", "System.out.println((100000 - new Scanner(System.in).nextInt()) % 1000)", "System.out.println", "System.out", "System", "System.out", "(100000 - new Scanner(System.in).nextInt()) % 1000", "(100000 - new Scanner(System.in).nextInt())", "100000", "new Scanner(System.in).nextInt()", "new Scanner(System.in).nextInt", "new Scanner(System.in)", "1000", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tSystem.out.println((100000 - new Scanner(System.in).nextInt()) % 1000);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tSystem.out.println((100000 - new Scanner(System.in).nextInt()) % 1000);\n\t}\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { System.out.println((100000 - new Scanner(System.in).nextInt()) % 1000); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 0, 13, 2, 17, 2, 13, 17, 14, 2, 2, 13, 17, 17, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 25, 29 ], [ 24, 30 ], [ 30, 31 ], [ 30, 32 ], [ 8, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 6, 39 ], [ 39, 40 ] ]
[ "import java.util.*;\n \nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scn = new Scanner (System.in);\n \tint num = scn.nextInt();\n \tnum = 1000 - (num % 1000);\n \tif(num % 1000 == 0)\n num = 0;\n \tSystem.out.print(num);\n \t\n }\n}", "import java.util.*;", "util.*", "java", "class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scn = new Scanner (System.in);\n \tint num = scn.nextInt();\n \tnum = 1000 - (num % 1000);\n \tif(num % 1000 == 0)\n num = 0;\n \tSystem.out.print(num);\n \t\n }\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scn = new Scanner (System.in);\n \tint num = scn.nextInt();\n \tnum = 1000 - (num % 1000);\n \tif(num % 1000 == 0)\n num = 0;\n \tSystem.out.print(num);\n \t\n }", "main", "{\n\t\tScanner scn = new Scanner (System.in);\n \tint num = scn.nextInt();\n \tnum = 1000 - (num % 1000);\n \tif(num % 1000 == 0)\n num = 0;\n \tSystem.out.print(num);\n \t\n }", "Scanner scn = new Scanner (System.in);", "scn", "new Scanner (System.in)", "int num = scn.nextInt();", "num", "scn.nextInt()", "scn.nextInt", "scn", "num = 1000 - (num % 1000)", "num", "1000 - (num % 1000)", "1000", "(num % 1000)", "num", "1000", "if(num % 1000 == 0)\n num = 0;", "num % 1000 == 0", "num % 1000", "num", "1000", "0", "num = 0", "num", "0", "System.out.print(num)", "System.out.print", "System.out", "System", "System.out", "num", "String[] args", "args" ]
import java.util.*; class Main { public static void main(String[] args) { Scanner scn = new Scanner (System.in); int num = scn.nextInt(); num = 1000 - (num % 1000); if(num % 1000 == 0) num = 0; System.out.print(num); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 2, 2, 2, 2, 13, 17, 17, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 48, 5 ], [ 48, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 18, 22 ], [ 17, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 24, 29 ], [ 17, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 31, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 37, 43 ], [ 36, 44 ], [ 6, 45 ], [ 45, 46 ], [ 0, 47 ], [ 47, 48 ], [ 47, 49 ] ]
[ "import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n if(N % 1000 == 0){\n System.out.println(0);\n }else{\n System.out.println((N / 1000 + 1)*1000 - N);\n }\n }\n}\n ", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n if(N % 1000 == 0){\n System.out.println(0);\n }else{\n System.out.println((N / 1000 + 1)*1000 - N);\n }\n }\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n if(N % 1000 == 0){\n System.out.println(0);\n }else{\n System.out.println((N / 1000 + 1)*1000 - N);\n }\n }", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n if(N % 1000 == 0){\n System.out.println(0);\n }else{\n System.out.println((N / 1000 + 1)*1000 - N);\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "if(N % 1000 == 0){\n System.out.println(0);\n }else{\n System.out.println((N / 1000 + 1)*1000 - N);\n }", "N % 1000 == 0", "N % 1000", "N", "1000", "0", "{\n System.out.println(0);\n }", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "{\n System.out.println((N / 1000 + 1)*1000 - N);\n }", "System.out.println((N / 1000 + 1)*1000 - N)", "System.out.println", "System.out", "System", "System.out", "(N / 1000 + 1)*1000 - N", "(N / 1000 + 1)*1000", "(N / 1000 + 1)", "N / 1000", "N", "1000", "1", "1000", "N", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n if(N % 1000 == 0){\n System.out.println(0);\n }else{\n System.out.println((N / 1000 + 1)*1000 - N);\n }\n }\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n if(N % 1000 == 0){\n System.out.println(0);\n }else{\n System.out.println((N / 1000 + 1)*1000 - N);\n }\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); if(N % 1000 == 0){ System.out.println(0); }else{ System.out.println((N / 1000 + 1)*1000 - N); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 2, 13, 17, 14, 2, 13, 17, 30, 4, 18, 13, 17, 30, 4, 18, 13, 2, 17, 13, 4, 18, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 0, 13, 17, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 0, 13, 17, 29, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 255, 17 ], [ 255, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 24, 26 ], [ 20, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 20, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 34, 36 ], [ 20, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 37, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 50, 51 ], [ 50, 52 ], [ 20, 53 ], [ 53, 54 ], [ 54, 55 ], [ 18, 56 ], [ 56, 57 ], [ 255, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 58, 62 ], [ 62, 63 ], [ 58, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 58, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 73, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 83, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 72, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 58, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 58, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 108, 111 ], [ 111, 112 ], [ 58, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 117, 120 ], [ 120, 121 ], [ 58, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 126, 129 ], [ 129, 130 ], [ 58, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 135, 138 ], [ 138, 139 ], [ 58, 140 ], [ 140, 141 ], [ 140, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 142, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 146, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 156, 157 ], [ 157, 158 ], [ 142, 159 ], [ 159, 160 ], [ 159, 161 ], [ 142, 162 ], [ 162, 163 ], [ 58, 164 ], [ 164, 165 ], [ 164, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 166, 171 ], [ 171, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 171, 176 ], [ 176, 177 ], [ 176, 178 ], [ 171, 179 ], [ 179, 180 ], [ 180, 181 ], [ 171, 182 ], [ 183, 183 ], [ 183, 184 ], [ 184, 185 ], [ 185, 186 ], [ 185, 187 ], [ 184, 188 ], [ 188, 189 ], [ 166, 190 ], [ 190, 191 ], [ 164, 192 ], [ 192, 193 ], [ 58, 194 ], [ 194, 195 ], [ 194, 196 ], [ 196, 197 ], [ 197, 198 ], [ 197, 199 ], [ 196, 201 ], [ 201, 202 ], [ 202, 203 ], [ 203, 204 ], [ 203, 205 ], [ 201, 206 ], [ 206, 207 ], [ 206, 208 ], [ 201, 209 ], [ 209, 210 ], [ 210, 211 ], [ 201, 212 ], [ 213, 213 ], [ 213, 214 ], [ 214, 215 ], [ 215, 216 ], [ 215, 217 ], [ 214, 218 ], [ 218, 219 ], [ 196, 220 ], [ 220, 221 ], [ 194, 222 ], [ 222, 223 ], [ 58, 224 ], [ 224, 225 ], [ 224, 226 ], [ 226, 227 ], [ 227, 228 ], [ 227, 229 ], [ 226, 231 ], [ 231, 232 ], [ 232, 233 ], [ 233, 234 ], [ 233, 235 ], [ 231, 236 ], [ 236, 237 ], [ 236, 238 ], [ 231, 239 ], [ 239, 240 ], [ 240, 241 ], [ 231, 242 ], [ 243, 243 ], [ 243, 244 ], [ 244, 245 ], [ 245, 246 ], [ 245, 247 ], [ 244, 248 ], [ 248, 249 ], [ 226, 250 ], [ 250, 251 ], [ 224, 252 ], [ 252, 253 ], [ 0, 254 ], [ 254, 255 ], [ 254, 256 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\n //Fast Reader\n private static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n public String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n public void resetST() {\n st = null;\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public float nextFloat() {\n return Float.parseFloat(next());\n }\n\n public String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n st = null;\n return str;\n }\n\n public int[] nextIntArray(int size) {\n int[] arr = new int[size];\n for (int i = 0; i < size; i++) {\n arr[i] = nextInt();\n }\n return arr;\n }\n\n public long[] nextLongArray(int size) {\n long[] arr = new long[size];\n for (int i = 0; i < size; i++) {\n arr[i] = nextLong();\n }\n return arr;\n }\n\n public double[] nextDoubleArray(int size) {\n double[] arr = new double[size];\n for (int i = 0; i < size; i++) {\n arr[i] = nextDouble();\n }\n return arr;\n }\n }\n public static void main(String[] args)\n {\n FastReader sc = new FastReader();\n PrintWriter pr = new PrintWriter(System.out);\n long n =sc.nextInt();\n long k=n%1000;\n if(k==0)\n {\n pr.println(\"0\");\n }\n else\n {\n pr.println(1000-k);\n }\n pr.close();\n\t// write your code here\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "public class Main {\n\n //Fast Reader\n private static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n public String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n public void resetST() {\n st = null;\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public float nextFloat() {\n return Float.parseFloat(next());\n }\n\n public String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n st = null;\n return str;\n }\n\n public int[] nextIntArray(int size) {\n int[] arr = new int[size];\n for (int i = 0; i < size; i++) {\n arr[i] = nextInt();\n }\n return arr;\n }\n\n public long[] nextLongArray(int size) {\n long[] arr = new long[size];\n for (int i = 0; i < size; i++) {\n arr[i] = nextLong();\n }\n return arr;\n }\n\n public double[] nextDoubleArray(int size) {\n double[] arr = new double[size];\n for (int i = 0; i < size; i++) {\n arr[i] = nextDouble();\n }\n return arr;\n }\n }\n public static void main(String[] args)\n {\n FastReader sc = new FastReader();\n PrintWriter pr = new PrintWriter(System.out);\n long n =sc.nextInt();\n long k=n%1000;\n if(k==0)\n {\n pr.println(\"0\");\n }\n else\n {\n pr.println(1000-k);\n }\n pr.close();\n\t// write your code here\n }\n}", "Main", "public static void main(String[] args)\n {\n FastReader sc = new FastReader();\n PrintWriter pr = new PrintWriter(System.out);\n long n =sc.nextInt();\n long k=n%1000;\n if(k==0)\n {\n pr.println(\"0\");\n }\n else\n {\n pr.println(1000-k);\n }\n pr.close();\n\t// write your code here\n }", "main", "{\n FastReader sc = new FastReader();\n PrintWriter pr = new PrintWriter(System.out);\n long n =sc.nextInt();\n long k=n%1000;\n if(k==0)\n {\n pr.println(\"0\");\n }\n else\n {\n pr.println(1000-k);\n }\n pr.close();\n\t// write your code here\n }", "FastReader sc = new FastReader();", "sc", "new FastReader()", "PrintWriter pr = new PrintWriter(System.out);", "pr", "new PrintWriter(System.out)", "long n =sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "long k=n%1000;", "k", "n%1000", "n", "1000", "if(k==0)\n {\n pr.println(\"0\");\n }\n else\n {\n pr.println(1000-k);\n }", "k==0", "k", "0", "{\n pr.println(\"0\");\n }", "pr.println(\"0\")", "pr.println", "pr", "\"0\"", "{\n pr.println(1000-k);\n }", "pr.println(1000-k)", "pr.println", "pr", "1000-k", "1000", "k", "pr.close()", "pr.close", "pr", "String[] args", "args", " private static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n public String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n public void resetST() {\n st = null;\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public float nextFloat() {\n return Float.parseFloat(next());\n }\n\n public String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n st = null;\n return str;\n }\n\n public int[] nextIntArray(int size) {\n int[] arr = new int[size];\n for (int i = 0; i < size; i++) {\n arr[i] = nextInt();\n }\n return arr;\n }\n\n public long[] nextLongArray(int size) {\n long[] arr = new long[size];\n for (int i = 0; i < size; i++) {\n arr[i] = nextLong();\n }\n return arr;\n }\n\n public double[] nextDoubleArray(int size) {\n double[] arr = new double[size];\n for (int i = 0; i < size; i++) {\n arr[i] = nextDouble();\n }\n return arr;\n }\n }", "FastReader", "BufferedReader br;", "br", "StringTokenizer st;", "st", "public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }", "FastReader", "{\n br = new BufferedReader(new InputStreamReader(System.in));\n }", "br = new BufferedReader(new InputStreamReader(System.in))", "br", "new BufferedReader(new InputStreamReader(System.in))", "public String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }", "next", "{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }", "while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "st == null || !st.hasMoreElements()", "st == null", "st", "null", "!st.hasMoreElements()", "st.hasMoreElements()", "st.hasMoreElements", "st", "{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "public void resetST() {\n st = null;\n }", "resetST", "{\n st = null;\n }", "st = null", "st", "null", "public int nextInt() {\n return Integer.parseInt(next());\n }", "nextInt", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "public long nextLong() {\n return Long.parseLong(next());\n }", "nextLong", "{\n return Long.parseLong(next());\n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "public double nextDouble() {\n return Double.parseDouble(next());\n }", "nextDouble", "{\n return Double.parseDouble(next());\n }", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "public float nextFloat() {\n return Float.parseFloat(next());\n }", "nextFloat", "{\n return Float.parseFloat(next());\n }", "return Float.parseFloat(next());", "Float.parseFloat(next())", "Float.parseFloat", "Float", "next()", "next", "public String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n st = null;\n return str;\n }", "nextLine", "{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n st = null;\n return str;\n }", "String str = \"\";", "str", "\"\"", "try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n str = br.readLine();\n }", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "st = null", "st", "null", "return str;", "str", "public int[] nextIntArray(int size) {\n int[] arr = new int[size];\n for (int i = 0; i < size; i++) {\n arr[i] = nextInt();\n }\n return arr;\n }", "nextIntArray", "{\n int[] arr = new int[size];\n for (int i = 0; i < size; i++) {\n arr[i] = nextInt();\n }\n return arr;\n }", "int[] arr = new int[size];", "arr", "new int[size]", "size", "for (int i = 0; i < size; i++) {\n arr[i] = nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < size", "i", "size", "i++", "i++", "i", "{\n arr[i] = nextInt();\n }", "{\n arr[i] = nextInt();\n }", "arr[i] = nextInt()", "arr[i]", "arr", "i", "nextInt()", "nextInt", "return arr;", "arr", "int size", "size", "public long[] nextLongArray(int size) {\n long[] arr = new long[size];\n for (int i = 0; i < size; i++) {\n arr[i] = nextLong();\n }\n return arr;\n }", "nextLongArray", "{\n long[] arr = new long[size];\n for (int i = 0; i < size; i++) {\n arr[i] = nextLong();\n }\n return arr;\n }", "long[] arr = new long[size];", "arr", "new long[size]", "size", "for (int i = 0; i < size; i++) {\n arr[i] = nextLong();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < size", "i", "size", "i++", "i++", "i", "{\n arr[i] = nextLong();\n }", "{\n arr[i] = nextLong();\n }", "arr[i] = nextLong()", "arr[i]", "arr", "i", "nextLong()", "nextLong", "return arr;", "arr", "int size", "size", "public double[] nextDoubleArray(int size) {\n double[] arr = new double[size];\n for (int i = 0; i < size; i++) {\n arr[i] = nextDouble();\n }\n return arr;\n }", "nextDoubleArray", "{\n double[] arr = new double[size];\n for (int i = 0; i < size; i++) {\n arr[i] = nextDouble();\n }\n return arr;\n }", "double[] arr = new double[size];", "arr", "new double[size]", "size", "for (int i = 0; i < size; i++) {\n arr[i] = nextDouble();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < size", "i", "size", "i++", "i++", "i", "{\n arr[i] = nextDouble();\n }", "{\n arr[i] = nextDouble();\n }", "arr[i] = nextDouble()", "arr[i]", "arr", "i", "nextDouble()", "nextDouble", "return arr;", "arr", "int size", "size", "public class Main {\n\n //Fast Reader\n private static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n public String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n public void resetST() {\n st = null;\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public float nextFloat() {\n return Float.parseFloat(next());\n }\n\n public String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n st = null;\n return str;\n }\n\n public int[] nextIntArray(int size) {\n int[] arr = new int[size];\n for (int i = 0; i < size; i++) {\n arr[i] = nextInt();\n }\n return arr;\n }\n\n public long[] nextLongArray(int size) {\n long[] arr = new long[size];\n for (int i = 0; i < size; i++) {\n arr[i] = nextLong();\n }\n return arr;\n }\n\n public double[] nextDoubleArray(int size) {\n double[] arr = new double[size];\n for (int i = 0; i < size; i++) {\n arr[i] = nextDouble();\n }\n return arr;\n }\n }\n public static void main(String[] args)\n {\n FastReader sc = new FastReader();\n PrintWriter pr = new PrintWriter(System.out);\n long n =sc.nextInt();\n long k=n%1000;\n if(k==0)\n {\n pr.println(\"0\");\n }\n else\n {\n pr.println(1000-k);\n }\n pr.close();\n\t// write your code here\n }\n}", "public class Main {\n\n //Fast Reader\n private static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n public String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n public void resetST() {\n st = null;\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public float nextFloat() {\n return Float.parseFloat(next());\n }\n\n public String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n st = null;\n return str;\n }\n\n public int[] nextIntArray(int size) {\n int[] arr = new int[size];\n for (int i = 0; i < size; i++) {\n arr[i] = nextInt();\n }\n return arr;\n }\n\n public long[] nextLongArray(int size) {\n long[] arr = new long[size];\n for (int i = 0; i < size; i++) {\n arr[i] = nextLong();\n }\n return arr;\n }\n\n public double[] nextDoubleArray(int size) {\n double[] arr = new double[size];\n for (int i = 0; i < size; i++) {\n arr[i] = nextDouble();\n }\n return arr;\n }\n }\n public static void main(String[] args)\n {\n FastReader sc = new FastReader();\n PrintWriter pr = new PrintWriter(System.out);\n long n =sc.nextInt();\n long k=n%1000;\n if(k==0)\n {\n pr.println(\"0\");\n }\n else\n {\n pr.println(1000-k);\n }\n pr.close();\n\t// write your code here\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.StringTokenizer; public class Main { //Fast Reader private static class FastReader { BufferedReader br; StringTokenizer st; public FastReader() { br = new BufferedReader(new InputStreamReader(System.in)); } public String next() { while (st == null || !st.hasMoreElements()) { try { st = new StringTokenizer(br.readLine()); } catch (IOException e) { e.printStackTrace(); } } return st.nextToken(); } public void resetST() { st = null; } public int nextInt() { return Integer.parseInt(next()); } public long nextLong() { return Long.parseLong(next()); } public double nextDouble() { return Double.parseDouble(next()); } public float nextFloat() { return Float.parseFloat(next()); } public String nextLine() { String str = ""; try { str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } st = null; return str; } public int[] nextIntArray(int size) { int[] arr = new int[size]; for (int i = 0; i < size; i++) { arr[i] = nextInt(); } return arr; } public long[] nextLongArray(int size) { long[] arr = new long[size]; for (int i = 0; i < size; i++) { arr[i] = nextLong(); } return arr; } public double[] nextDoubleArray(int size) { double[] arr = new double[size]; for (int i = 0; i < size; i++) { arr[i] = nextDouble(); } return arr; } } public static void main(String[] args) { FastReader sc = new FastReader(); PrintWriter pr = new PrintWriter(System.out); long n =sc.nextInt(); long k=n%1000; if(k==0) { pr.println("0"); } else { pr.println(1000-k); } pr.close(); // write your code here } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 42, 2, 17, 13, 30, 0, 13, 17, 41, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 46, 5 ], [ 46, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 14, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 8, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 8, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 6, 43 ], [ 43, 44 ], [ 0, 45 ], [ 45, 46 ], [ 45, 47 ] ]
[ "import java.util.*;\n\npublic class Main {\n\n public static void main(String args[]) {\n\n // 入力\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n sc.close();\n\n // 主処理\n while (0 < n) {\n n -= 1000;\n }\n int result = Math.abs(n);\n\n // 出力\n System.out.println(result);\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\n public static void main(String args[]) {\n\n // 入力\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n sc.close();\n\n // 主処理\n while (0 < n) {\n n -= 1000;\n }\n int result = Math.abs(n);\n\n // 出力\n System.out.println(result);\n }\n}", "Main", "public static void main(String args[]) {\n\n // 入力\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n sc.close();\n\n // 主処理\n while (0 < n) {\n n -= 1000;\n }\n int result = Math.abs(n);\n\n // 出力\n System.out.println(result);\n }", "main", "{\n\n // 入力\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n sc.close();\n\n // 主処理\n while (0 < n) {\n n -= 1000;\n }\n int result = Math.abs(n);\n\n // 出力\n System.out.println(result);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = Integer.parseInt(sc.next());", "n", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "sc.close()", "sc.close", "sc", "while (0 < n) {\n n -= 1000;\n }", "0 < n", "0", "n", "{\n n -= 1000;\n }", "n -= 1000", "n", "1000", "int result = Math.abs(n);", "result", "Math.abs(n)", "Math.abs", "Math", "n", "System.out.println(result)", "System.out.println", "System.out", "System", "System.out", "result", "String args[]", "args", "public class Main {\n\n public static void main(String args[]) {\n\n // 入力\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n sc.close();\n\n // 主処理\n while (0 < n) {\n n -= 1000;\n }\n int result = Math.abs(n);\n\n // 出力\n System.out.println(result);\n }\n}", "public class Main {\n\n public static void main(String args[]) {\n\n // 入力\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n sc.close();\n\n // 主処理\n while (0 < n) {\n n -= 1000;\n }\n int result = Math.abs(n);\n\n // 出力\n System.out.println(result);\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String args[]) { // 入力 Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); sc.close(); // 主処理 while (0 < n) { n -= 1000; } int result = Math.abs(n); // 出力 System.out.println(result); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 2, 13, 17, 0, 13, 2, 13, 17, 4, 18, 18, 13, 13, 2, 2, 17, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 40, 5 ], [ 40, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 24, 26 ], [ 8, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 32, 36 ], [ 6, 37 ], [ 37, 38 ], [ 0, 39 ], [ 39, 40 ], [ 39, 41 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int s = sc.nextInt();\n int k = s + 1000;\n k = k % 1000;\n System.out.println((1000 - k) % 1000);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int s = sc.nextInt();\n int k = s + 1000;\n k = k % 1000;\n System.out.println((1000 - k) % 1000);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int s = sc.nextInt();\n int k = s + 1000;\n k = k % 1000;\n System.out.println((1000 - k) % 1000);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int s = sc.nextInt();\n int k = s + 1000;\n k = k % 1000;\n System.out.println((1000 - k) % 1000);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int s = sc.nextInt();", "s", "sc.nextInt()", "sc.nextInt", "sc", "int k = s + 1000;", "k", "s + 1000", "s", "1000", "k = k % 1000", "k", "k % 1000", "k", "1000", "System.out.println((1000 - k) % 1000)", "System.out.println", "System.out", "System", "System.out", "(1000 - k) % 1000", "(1000 - k)", "1000", "k", "1000", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int s = sc.nextInt();\n int k = s + 1000;\n k = k % 1000;\n System.out.println((1000 - k) % 1000);\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int s = sc.nextInt();\n int k = s + 1000;\n k = k % 1000;\n System.out.println((1000 - k) % 1000);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int s = sc.nextInt(); int k = s + 1000; k = k % 1000; System.out.println((1000 - k) % 1000); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 14, 2, 2, 13, 17, 17, 30, 0, 13, 17, 30, 0, 13, 2, 17, 2, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 49, 5 ], [ 49, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 22, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 37, 39 ], [ 8, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 6, 46 ], [ 46, 47 ], [ 0, 48 ], [ 48, 49 ], [ 48, 50 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tint N = scan.nextInt();\n\tscan.close();\n\tint remainder;\n\tif((N % 1000) == 0) {\n\t\tremainder = 0;\n\t}\n\telse {\n\t\tremainder = 1000 - N % 1000;\n\t}\n\tSystem.out.println(remainder);\n\t}\n\t}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tint N = scan.nextInt();\n\tscan.close();\n\tint remainder;\n\tif((N % 1000) == 0) {\n\t\tremainder = 0;\n\t}\n\telse {\n\t\tremainder = 1000 - N % 1000;\n\t}\n\tSystem.out.println(remainder);\n\t}\n\t}", "Main", "public static void main(String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tint N = scan.nextInt();\n\tscan.close();\n\tint remainder;\n\tif((N % 1000) == 0) {\n\t\tremainder = 0;\n\t}\n\telse {\n\t\tremainder = 1000 - N % 1000;\n\t}\n\tSystem.out.println(remainder);\n\t}", "main", "{\n\tScanner scan = new Scanner(System.in);\n\tint N = scan.nextInt();\n\tscan.close();\n\tint remainder;\n\tif((N % 1000) == 0) {\n\t\tremainder = 0;\n\t}\n\telse {\n\t\tremainder = 1000 - N % 1000;\n\t}\n\tSystem.out.println(remainder);\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int N = scan.nextInt();", "N", "scan.nextInt()", "scan.nextInt", "scan", "scan.close()", "scan.close", "scan", "int remainder;", "remainder", "if((N % 1000) == 0) {\n\t\tremainder = 0;\n\t}\n\telse {\n\t\tremainder = 1000 - N % 1000;\n\t}", "(N % 1000) == 0", "(N % 1000)", "N", "1000", "0", "{\n\t\tremainder = 0;\n\t}", "remainder = 0", "remainder", "0", "{\n\t\tremainder = 1000 - N % 1000;\n\t}", "remainder = 1000 - N % 1000", "remainder", "1000 - N % 1000", "1000", "N % 1000", "N", "1000", "System.out.println(remainder)", "System.out.println", "System.out", "System", "System.out", "remainder", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tint N = scan.nextInt();\n\tscan.close();\n\tint remainder;\n\tif((N % 1000) == 0) {\n\t\tremainder = 0;\n\t}\n\telse {\n\t\tremainder = 1000 - N % 1000;\n\t}\n\tSystem.out.println(remainder);\n\t}\n\t}", "public class Main {\n\tpublic static void main(String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tint N = scan.nextInt();\n\tscan.close();\n\tint remainder;\n\tif((N % 1000) == 0) {\n\t\tremainder = 0;\n\t}\n\telse {\n\t\tremainder = 1000 - N % 1000;\n\t}\n\tSystem.out.println(remainder);\n\t}\n\t}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int N = scan.nextInt(); scan.close(); int remainder; if((N % 1000) == 0) { remainder = 0; } else { remainder = 1000 - N % 1000; } System.out.println(remainder); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 2, 17, 2, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 41, 5 ], [ 41, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 24, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 8, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 6, 38 ], [ 38, 39 ], [ 0, 40 ], [ 40, 41 ], [ 40, 42 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint cnt = 1000 - (n % 1000);\n\t\tif (cnt == 1000) {\n\t\t\tcnt = 0;\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint cnt = 1000 - (n % 1000);\n\t\tif (cnt == 1000) {\n\t\t\tcnt = 0;\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint cnt = 1000 - (n % 1000);\n\t\tif (cnt == 1000) {\n\t\t\tcnt = 0;\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}", "main", "{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint cnt = 1000 - (n % 1000);\n\t\tif (cnt == 1000) {\n\t\t\tcnt = 0;\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int cnt = 1000 - (n % 1000);", "cnt", "1000 - (n % 1000)", "1000", "(n % 1000)", "n", "1000", "if (cnt == 1000) {\n\t\t\tcnt = 0;\n\t\t}", "cnt == 1000", "cnt", "1000", "{\n\t\t\tcnt = 0;\n\t\t}", "cnt = 0", "cnt", "0", "System.out.println(cnt)", "System.out.println", "System.out", "System", "System.out", "cnt", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint cnt = 1000 - (n % 1000);\n\t\tif (cnt == 1000) {\n\t\t\tcnt = 0;\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint cnt = 1000 - (n % 1000);\n\t\tif (cnt == 1000) {\n\t\t\tcnt = 0;\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int cnt = 1000 - (n % 1000); if (cnt == 1000) { cnt = 0; } System.out.println(cnt); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 2, 17, 2, 13, 17, 23, 13, 12, 13, 30, 42, 2, 13, 17, 30, 41, 13, 2, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 29, 17, 0, 13, 17, 29, 17, 23, 13, 12, 13, 30, 41, 13, 17, 41, 13, 20, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 18, 13, 13, 14, 4, 18, 13, 2, 13, 13, 30, 4, 18, 18, 13, 13, 2, 13, 13, 29, 17, 4, 18, 13, 13, 29, 17, 23, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 29, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 226, 8 ], [ 226, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 21, 25 ], [ 20, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 20, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 41, 43 ], [ 9, 44 ], [ 44, 45 ], [ 226, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 56, 58 ], [ 53, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 64, 66 ], [ 59, 67 ], [ 67, 68 ], [ 53, 69 ], [ 69, 70 ], [ 69, 71 ], [ 48, 72 ], [ 72, 73 ], [ 46, 74 ], [ 74, 75 ], [ 226, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 82, 84 ], [ 78, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 78, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 96, 98 ], [ 89, 99 ], [ 99, 100 ], [ 100, 101 ], [ 89, 102 ], [ 103, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 106, 108 ], [ 103, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 110, 113 ], [ 113, 114 ], [ 113, 115 ], [ 109, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 117, 122 ], [ 122, 123 ], [ 122, 124 ], [ 116, 125 ], [ 125, 126 ], [ 103, 127 ], [ 127, 128 ], [ 128, 129 ], [ 127, 130 ], [ 78, 131 ], [ 131, 132 ], [ 76, 133 ], [ 133, 134 ], [ 76, 135 ], [ 135, 136 ], [ 226, 137 ], [ 137, 138 ], [ 137, 139 ], [ 139, 140 ], [ 137, 141 ], [ 141, 142 ], [ 137, 143 ], [ 143, 144 ], [ 143, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 137, 149 ], [ 149, 150 ], [ 149, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 153, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 152, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 163, 165 ], [ 165, 166 ], [ 166, 167 ], [ 167, 168 ], [ 162, 169 ], [ 169, 170 ], [ 170, 171 ], [ 170, 172 ], [ 151, 173 ], [ 173, 174 ], [ 174, 175 ], [ 175, 176 ], [ 137, 177 ], [ 177, 178 ], [ 177, 179 ], [ 179, 180 ], [ 180, 181 ], [ 181, 182 ], [ 182, 183 ], [ 181, 184 ], [ 184, 185 ], [ 137, 186 ], [ 186, 187 ], [ 186, 188 ], [ 188, 189 ], [ 189, 190 ], [ 190, 191 ], [ 191, 192 ], [ 190, 193 ], [ 193, 194 ], [ 137, 195 ], [ 195, 196 ], [ 195, 197 ], [ 197, 198 ], [ 198, 199 ], [ 199, 200 ], [ 200, 201 ], [ 199, 202 ], [ 202, 203 ], [ 137, 204 ], [ 204, 205 ], [ 204, 206 ], [ 206, 207 ], [ 207, 208 ], [ 207, 209 ], [ 206, 210 ], [ 210, 211 ], [ 211, 212 ], [ 211, 213 ], [ 213, 214 ], [ 214, 215 ], [ 215, 216 ], [ 210, 217 ], [ 217, 218 ], [ 218, 219 ], [ 218, 220 ], [ 220, 221 ], [ 221, 222 ], [ 206, 223 ], [ 223, 224 ], [ 0, 225 ], [ 225, 226 ], [ 225, 227 ] ]
[ "\nimport java.util.*;\nimport java.io.*;\n\npublic class Main {\n\n\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n int n = sc.nextInt();\n if (n%1000==0) {\n System.out.println(0);\n } else {\n System.out.println(1000-n%1000);\n }\n }\n\n private static boolean ok(int k) {\n while (k>0) {\n int c = k%10;\n if (c!=4&&c!=7) return false;\n k/=10;\n }\n return true;\n }\n\n // 1 2 3 4 5 6\n // x * 2 == 10\n\n\n\n private static boolean preSum(int[] nums, int target) {\n int cur = 0;\n Set<Integer> set = new HashSet<>();\n set.add(0);\n for (int i = 0; i < nums.length; i++) {\n cur += nums[i];\n if (set.contains(cur-target)) {\n System.out.println(cur-target);\n return true;\n }\n set.add(cur);\n }\n return false;\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n\n }\n\n}\n", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "public class Main {\n\n\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n int n = sc.nextInt();\n if (n%1000==0) {\n System.out.println(0);\n } else {\n System.out.println(1000-n%1000);\n }\n }\n\n private static boolean ok(int k) {\n while (k>0) {\n int c = k%10;\n if (c!=4&&c!=7) return false;\n k/=10;\n }\n return true;\n }\n\n // 1 2 3 4 5 6\n // x * 2 == 10\n\n\n\n private static boolean preSum(int[] nums, int target) {\n int cur = 0;\n Set<Integer> set = new HashSet<>();\n set.add(0);\n for (int i = 0; i < nums.length; i++) {\n cur += nums[i];\n if (set.contains(cur-target)) {\n System.out.println(cur-target);\n return true;\n }\n set.add(cur);\n }\n return false;\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n\n }\n\n}", "Main", "public static void main(String[] args) {\n FastReader sc = new FastReader();\n int n = sc.nextInt();\n if (n%1000==0) {\n System.out.println(0);\n } else {\n System.out.println(1000-n%1000);\n }\n }", "main", "{\n FastReader sc = new FastReader();\n int n = sc.nextInt();\n if (n%1000==0) {\n System.out.println(0);\n } else {\n System.out.println(1000-n%1000);\n }\n }", "FastReader sc = new FastReader();", "sc", "new FastReader()", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "if (n%1000==0) {\n System.out.println(0);\n } else {\n System.out.println(1000-n%1000);\n }", "n%1000==0", "n%1000", "n", "1000", "0", "{\n System.out.println(0);\n }", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "{\n System.out.println(1000-n%1000);\n }", "System.out.println(1000-n%1000)", "System.out.println", "System.out", "System", "System.out", "1000-n%1000", "1000", "n%1000", "n", "1000", "String[] args", "args", "private static boolean ok(int k) {\n while (k>0) {\n int c = k%10;\n if (c!=4&&c!=7) return false;\n k/=10;\n }\n return true;\n }", "ok", "{\n while (k>0) {\n int c = k%10;\n if (c!=4&&c!=7) return false;\n k/=10;\n }\n return true;\n }", "while (k>0) {\n int c = k%10;\n if (c!=4&&c!=7) return false;\n k/=10;\n }", "k>0", "k", "0", "{\n int c = k%10;\n if (c!=4&&c!=7) return false;\n k/=10;\n }", "int c = k%10;", "c", "k%10", "k", "10", "if (c!=4&&c!=7) return false;", "c!=4&&c!=7", "c!=4", "c", "4", "c!=7", "c", "7", "return false;", "false", "k/=10", "k", "10", "return true;", "true", "int k", "k", "private static boolean preSum(int[] nums, int target) {\n int cur = 0;\n Set<Integer> set = new HashSet<>();\n set.add(0);\n for (int i = 0; i < nums.length; i++) {\n cur += nums[i];\n if (set.contains(cur-target)) {\n System.out.println(cur-target);\n return true;\n }\n set.add(cur);\n }\n return false;\n }", "preSum", "{\n int cur = 0;\n Set<Integer> set = new HashSet<>();\n set.add(0);\n for (int i = 0; i < nums.length; i++) {\n cur += nums[i];\n if (set.contains(cur-target)) {\n System.out.println(cur-target);\n return true;\n }\n set.add(cur);\n }\n return false;\n }", "int cur = 0;", "cur", "0", "Set<Integer> set = new HashSet<>();", "set", "new HashSet<>()", "set.add(0)", "set.add", "set", "0", "for (int i = 0; i < nums.length; i++) {\n cur += nums[i];\n if (set.contains(cur-target)) {\n System.out.println(cur-target);\n return true;\n }\n set.add(cur);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < nums.length", "i", "nums.length", "nums", "nums.length", "i++", "i++", "i", "{\n cur += nums[i];\n if (set.contains(cur-target)) {\n System.out.println(cur-target);\n return true;\n }\n set.add(cur);\n }", "{\n cur += nums[i];\n if (set.contains(cur-target)) {\n System.out.println(cur-target);\n return true;\n }\n set.add(cur);\n }", "cur += nums[i]", "cur", "nums[i]", "nums", "i", "if (set.contains(cur-target)) {\n System.out.println(cur-target);\n return true;\n }", "set.contains(cur-target)", "set.contains", "set", "cur-target", "cur", "target", "{\n System.out.println(cur-target);\n return true;\n }", "System.out.println(cur-target)", "System.out.println", "System.out", "System", "System.out", "cur-target", "cur", "target", "return true;", "true", "set.add(cur)", "set.add", "set", "cur", "return false;", "false", "int[] nums", "nums", "int target", "target", "static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n\n }", "FastReader", "BufferedReader br;", "br", "StringTokenizer st;", "st", "public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }", "FastReader", "{\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }", "br = new BufferedReader(new\n InputStreamReader(System.in))", "br", "new BufferedReader(new\n InputStreamReader(System.in))", "String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }", "next", "{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }", "while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "st == null || !st.hasMoreElements()", "st == null", "st", "null", "!st.hasMoreElements()", "st.hasMoreElements()", "st.hasMoreElements", "st", "{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "int nextInt() {\n return Integer.parseInt(next());\n }", "nextInt", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "long nextLong() {\n return Long.parseLong(next());\n }", "nextLong", "{\n return Long.parseLong(next());\n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "double nextDouble() {\n return Double.parseDouble(next());\n }", "nextDouble", "{\n return Double.parseDouble(next());\n }", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }", "nextLine", "{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }", "String str = \"\";", "str", "\"\"", "try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n str = br.readLine();\n }", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "return str;", "str", "public class Main {\n\n\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n int n = sc.nextInt();\n if (n%1000==0) {\n System.out.println(0);\n } else {\n System.out.println(1000-n%1000);\n }\n }\n\n private static boolean ok(int k) {\n while (k>0) {\n int c = k%10;\n if (c!=4&&c!=7) return false;\n k/=10;\n }\n return true;\n }\n\n // 1 2 3 4 5 6\n // x * 2 == 10\n\n\n\n private static boolean preSum(int[] nums, int target) {\n int cur = 0;\n Set<Integer> set = new HashSet<>();\n set.add(0);\n for (int i = 0; i < nums.length; i++) {\n cur += nums[i];\n if (set.contains(cur-target)) {\n System.out.println(cur-target);\n return true;\n }\n set.add(cur);\n }\n return false;\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n\n }\n\n}", "public class Main {\n\n\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n int n = sc.nextInt();\n if (n%1000==0) {\n System.out.println(0);\n } else {\n System.out.println(1000-n%1000);\n }\n }\n\n private static boolean ok(int k) {\n while (k>0) {\n int c = k%10;\n if (c!=4&&c!=7) return false;\n k/=10;\n }\n return true;\n }\n\n // 1 2 3 4 5 6\n // x * 2 == 10\n\n\n\n private static boolean preSum(int[] nums, int target) {\n int cur = 0;\n Set<Integer> set = new HashSet<>();\n set.add(0);\n for (int i = 0; i < nums.length; i++) {\n cur += nums[i];\n if (set.contains(cur-target)) {\n System.out.println(cur-target);\n return true;\n }\n set.add(cur);\n }\n return false;\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n\n }\n\n}", "Main" ]
import java.util.*; import java.io.*; public class Main { public static void main(String[] args) { FastReader sc = new FastReader(); int n = sc.nextInt(); if (n%1000==0) { System.out.println(0); } else { System.out.println(1000-n%1000); } } private static boolean ok(int k) { while (k>0) { int c = k%10; if (c!=4&&c!=7) return false; k/=10; } return true; } // 1 2 3 4 5 6 // x * 2 == 10 private static boolean preSum(int[] nums, int target) { int cur = 0; Set<Integer> set = new HashSet<>(); set.add(0); for (int i = 0; i < nums.length; i++) { cur += nums[i]; if (set.contains(cur-target)) { System.out.println(cur-target); return true; } set.add(cur); } return false; } static class FastReader { BufferedReader br; StringTokenizer st; public FastReader() { br = new BufferedReader(new InputStreamReader(System.in)); } String next() { while (st == null || !st.hasMoreElements()) { try { st = new StringTokenizer(br.readLine()); } catch (IOException e) { e.printStackTrace(); } } return st.nextToken(); } int nextInt() { return Integer.parseInt(next()); } long nextLong() { return Long.parseLong(next()); } double nextDouble() { return Double.parseDouble(next()); } String nextLine() { String str = ""; try { str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } return str; } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 42, 2, 13, 13, 30, 0, 13, 17, 4, 18, 18, 13, 13, 2, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 39, 5 ], [ 39, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 8, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 28, 33 ], [ 33, 34 ], [ 33, 35 ], [ 6, 36 ], [ 36, 37 ], [ 0, 38 ], [ 38, 39 ], [ 38, 40 ] ]
[ "import java.util.*;\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int pay = 0;\n while(n > pay){\n pay +=1000;\n }\n System.out.println(pay - n);\n }\n}", "import java.util.*;", "util.*", "java", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int pay = 0;\n while(n > pay){\n pay +=1000;\n }\n System.out.println(pay - n);\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int pay = 0;\n while(n > pay){\n pay +=1000;\n }\n System.out.println(pay - n);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int pay = 0;\n while(n > pay){\n pay +=1000;\n }\n System.out.println(pay - n);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int pay = 0;", "pay", "0", "while(n > pay){\n pay +=1000;\n }", "n > pay", "n", "pay", "{\n pay +=1000;\n }", "pay +=1000", "pay", "1000", "System.out.println(pay - n)", "System.out.println", "System.out", "System", "System.out", "pay - n", "pay", "n", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int pay = 0;\n while(n > pay){\n pay +=1000;\n }\n System.out.println(pay - n);\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int pay = 0;\n while(n > pay){\n pay +=1000;\n }\n System.out.println(pay - n);\n }\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int pay = 0; while(n > pay){ pay +=1000; } System.out.println(pay - n); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 2, 13, 17, 14, 2, 13, 17, 0, 13, 2, 17, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 43, 8 ], [ 43, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 22, 24 ], [ 11, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 25, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 31, 33 ], [ 11, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 9, 40 ], [ 40, 41 ], [ 0, 42 ], [ 42, 43 ], [ 42, 44 ] ]
[ "import java.util.*;\nimport java.io.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int a = n % 1000;\n if (a != 0)\n a = 1000 - a;\n\n System.out.println(a);\n\n }\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int a = n % 1000;\n if (a != 0)\n a = 1000 - a;\n\n System.out.println(a);\n\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int a = n % 1000;\n if (a != 0)\n a = 1000 - a;\n\n System.out.println(a);\n\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int a = n % 1000;\n if (a != 0)\n a = 1000 - a;\n\n System.out.println(a);\n\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int a = n % 1000;", "a", "n % 1000", "n", "1000", "if (a != 0)\n a = 1000 - a;", "a != 0", "a", "0", "a = 1000 - a", "a", "1000 - a", "1000", "a", "System.out.println(a)", "System.out.println", "System.out", "System", "System.out", "a", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int a = n % 1000;\n if (a != 0)\n a = 1000 - a;\n\n System.out.println(a);\n\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int a = n % 1000;\n if (a != 0)\n a = 1000 - a;\n\n System.out.println(a);\n\n }\n}", "Main" ]
import java.util.*; import java.io.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int a = n % 1000; if (a != 0) a = 1000 - a; System.out.println(a); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 30, 41, 13, 20, 4, 18, 18, 13, 13, 4, 18, 20, 13, 23, 13, 12, 13, 30, 41, 13, 4, 18, 13, 4, 18, 13, 42, 2, 13, 17, 30, 0, 13, 17, 29, 4, 18, 13, 4, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 55, 5 ], [ 55, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 14, 19 ], [ 19, 20 ], [ 20, 21 ], [ 19, 22 ], [ 6, 23 ], [ 23, 24 ], [ 55, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 33, 34 ], [ 34, 35 ], [ 27, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 27, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 25, 52 ], [ 52, 53 ], [ 0, 54 ], [ 54, 55 ], [ 54, 56 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n try(Scanner sc = new Scanner(System.in);){\n System.out.println(new Main().run(sc));\n }\n }\n \n private String run(Scanner sc){\n int n = Integer.parseInt(sc.next());\n while(n > 0){\n n -= 1000;\n }\n return Integer.toString(Math.abs(n));\n }\n \n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) throws Exception {\n try(Scanner sc = new Scanner(System.in);){\n System.out.println(new Main().run(sc));\n }\n }\n \n private String run(Scanner sc){\n int n = Integer.parseInt(sc.next());\n while(n > 0){\n n -= 1000;\n }\n return Integer.toString(Math.abs(n));\n }\n \n}", "Main", "public static void main(String[] args) throws Exception {\n try(Scanner sc = new Scanner(System.in);){\n System.out.println(new Main().run(sc));\n }\n }", "main", "{\n try(Scanner sc = new Scanner(System.in);){\n System.out.println(new Main().run(sc));\n }\n }", "try(Scanner sc = new Scanner(System.in);){\n System.out.println(new Main().run(sc));\n }", "{\n System.out.println(new Main().run(sc));\n }", "Scanner sc = new Scanner(System.in)", "Scanner sc = new Scanner(System.in)", "new Scanner(System.in)", "System.out.println(new Main().run(sc))", "System.out.println", "System.out", "System", "System.out", "new Main().run(sc)", "new Main().run", "new Main()", "sc", "String[] args", "args", "private String run(Scanner sc){\n int n = Integer.parseInt(sc.next());\n while(n > 0){\n n -= 1000;\n }\n return Integer.toString(Math.abs(n));\n }", "run", "{\n int n = Integer.parseInt(sc.next());\n while(n > 0){\n n -= 1000;\n }\n return Integer.toString(Math.abs(n));\n }", "int n = Integer.parseInt(sc.next());", "n", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "while(n > 0){\n n -= 1000;\n }", "n > 0", "n", "0", "{\n n -= 1000;\n }", "n -= 1000", "n", "1000", "return Integer.toString(Math.abs(n));", "Integer.toString(Math.abs(n))", "Integer.toString", "Integer", "Math.abs(n)", "Math.abs", "Math", "n", "Scanner sc", "sc", "public class Main {\n public static void main(String[] args) throws Exception {\n try(Scanner sc = new Scanner(System.in);){\n System.out.println(new Main().run(sc));\n }\n }\n \n private String run(Scanner sc){\n int n = Integer.parseInt(sc.next());\n while(n > 0){\n n -= 1000;\n }\n return Integer.toString(Math.abs(n));\n }\n \n}", "public class Main {\n public static void main(String[] args) throws Exception {\n try(Scanner sc = new Scanner(System.in);){\n System.out.println(new Main().run(sc));\n }\n }\n \n private String run(Scanner sc){\n int n = Integer.parseInt(sc.next());\n while(n > 0){\n n -= 1000;\n }\n return Integer.toString(Math.abs(n));\n }\n \n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) throws Exception { try(Scanner sc = new Scanner(System.in);){ System.out.println(new Main().run(sc)); } } private String run(Scanner sc){ int n = Integer.parseInt(sc.next()); while(n > 0){ n -= 1000; } return Integer.toString(Math.abs(n)); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 14, 2, 2, 13, 17, 17, 30, 0, 13, 2, 2, 2, 2, 13, 17, 17, 17, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 47, 5 ], [ 47, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 21, 25 ], [ 20, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 31, 35 ], [ 30, 36 ], [ 29, 37 ], [ 8, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 6, 44 ], [ 44, 45 ], [ 0, 46 ], [ 46, 47 ], [ 46, 48 ] ]
[ "\nimport java.util.Scanner;\n\npublic class Main {\n public static void main (String[] args) {\n Scanner sc = new Scanner(System.in);\n\n Integer N = sc.nextInt();\n\n Integer ans = 0;\n if (N%1000 != 0) {// N が1000で割り切れないとき\n ans = (N/1000 + 1)*1000 - N;\n }\n\n System.out.println(ans);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main (String[] args) {\n Scanner sc = new Scanner(System.in);\n\n Integer N = sc.nextInt();\n\n Integer ans = 0;\n if (N%1000 != 0) {// N が1000で割り切れないとき\n ans = (N/1000 + 1)*1000 - N;\n }\n\n System.out.println(ans);\n }\n}", "Main", "public static void main (String[] args) {\n Scanner sc = new Scanner(System.in);\n\n Integer N = sc.nextInt();\n\n Integer ans = 0;\n if (N%1000 != 0) {// N が1000で割り切れないとき\n ans = (N/1000 + 1)*1000 - N;\n }\n\n System.out.println(ans);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n\n Integer N = sc.nextInt();\n\n Integer ans = 0;\n if (N%1000 != 0) {// N が1000で割り切れないとき\n ans = (N/1000 + 1)*1000 - N;\n }\n\n System.out.println(ans);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "Integer N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "Integer ans = 0;", "ans", "0", "if (N%1000 != 0) {// N が1000で割り切れないとき\n ans = (N/1000 + 1)*1000 - N;\n }", "N%1000 != 0", "N%1000", "N", "1000", "0", "{// N が1000で割り切れないとき\n ans = (N/1000 + 1)*1000 - N;\n }", "ans = (N/1000 + 1)*1000 - N", "ans", "(N/1000 + 1)*1000 - N", "(N/1000 + 1)*1000", "(N/1000 + 1)", "N/1000", "N", "1000", "1", "1000", "N", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main {\n public static void main (String[] args) {\n Scanner sc = new Scanner(System.in);\n\n Integer N = sc.nextInt();\n\n Integer ans = 0;\n if (N%1000 != 0) {// N が1000で割り切れないとき\n ans = (N/1000 + 1)*1000 - N;\n }\n\n System.out.println(ans);\n }\n}", "public class Main {\n public static void main (String[] args) {\n Scanner sc = new Scanner(System.in);\n\n Integer N = sc.nextInt();\n\n Integer ans = 0;\n if (N%1000 != 0) {// N が1000で割り切れないとき\n ans = (N/1000 + 1)*1000 - N;\n }\n\n System.out.println(ans);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); Integer N = sc.nextInt(); Integer ans = 0; if (N%1000 != 0) {// N が1000で割り切れないとき ans = (N/1000 + 1)*1000 - N; } System.out.println(ans); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 8, 2, 2, 13, 17, 17, 2, 13, 17, 2, 2, 13, 17, 17, 41, 13, 2, 2, 17, 13, 13, 4, 18, 13, 13, 4, 18, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 71, 14 ], [ 71, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 17, 24 ], [ 24, 25 ], [ 24, 26 ], [ 17, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 32, 33 ], [ 33, 34 ], [ 17, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 37, 43 ], [ 43, 44 ], [ 43, 45 ], [ 37, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 17, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 17, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 17, 62 ], [ 62, 63 ], [ 63, 64 ], [ 17, 65 ], [ 65, 66 ], [ 66, 67 ], [ 15, 68 ], [ 68, 69 ], [ 0, 70 ], [ 70, 71 ], [ 70, 72 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.PrintWriter;\nimport java.util.StringTokenizer;\n\npublic class Main {\n \n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));\n PrintWriter pw = new PrintWriter(System.out);\n StringTokenizer st = new StringTokenizer(br.readLine());\n\n int N = Integer.parseInt(st.nextToken());\n int nearPrice = N % 1000 == 0 ? N / 1000 : N / 1000 + 1;\n int result = 1000 * nearPrice - N;\n pw.println(result);\n br.close();\n pw.close();\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "public class Main {\n \n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));\n PrintWriter pw = new PrintWriter(System.out);\n StringTokenizer st = new StringTokenizer(br.readLine());\n\n int N = Integer.parseInt(st.nextToken());\n int nearPrice = N % 1000 == 0 ? N / 1000 : N / 1000 + 1;\n int result = 1000 * nearPrice - N;\n pw.println(result);\n br.close();\n pw.close();\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));\n PrintWriter pw = new PrintWriter(System.out);\n StringTokenizer st = new StringTokenizer(br.readLine());\n\n int N = Integer.parseInt(st.nextToken());\n int nearPrice = N % 1000 == 0 ? N / 1000 : N / 1000 + 1;\n int result = 1000 * nearPrice - N;\n pw.println(result);\n br.close();\n pw.close();\n }", "main", "{\n BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));\n PrintWriter pw = new PrintWriter(System.out);\n StringTokenizer st = new StringTokenizer(br.readLine());\n\n int N = Integer.parseInt(st.nextToken());\n int nearPrice = N % 1000 == 0 ? N / 1000 : N / 1000 + 1;\n int result = 1000 * nearPrice - N;\n pw.println(result);\n br.close();\n pw.close();\n }", "BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));", "br", "new BufferedReader(new java.io.InputStreamReader(System.in))", "PrintWriter pw = new PrintWriter(System.out);", "pw", "new PrintWriter(System.out)", "StringTokenizer st = new StringTokenizer(br.readLine());", "st", "new StringTokenizer(br.readLine())", "int N = Integer.parseInt(st.nextToken());", "N", "Integer.parseInt(st.nextToken())", "Integer.parseInt", "Integer", "st.nextToken()", "st.nextToken", "st", "int nearPrice = N % 1000 == 0 ? N / 1000 : N / 1000 + 1;", "nearPrice", "N % 1000 == 0 ? N / 1000 : N / 1000 + 1", "N % 1000 == 0", "N % 1000", "N", "1000", "0", "N / 1000", "N", "1000", "N / 1000 + 1", "N / 1000", "N", "1000", "1", "int result = 1000 * nearPrice - N;", "result", "1000 * nearPrice - N", "1000 * nearPrice", "1000", "nearPrice", "N", "pw.println(result)", "pw.println", "pw", "result", "br.close()", "br.close", "br", "pw.close()", "pw.close", "pw", "String[] args", "args", "public class Main {\n \n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));\n PrintWriter pw = new PrintWriter(System.out);\n StringTokenizer st = new StringTokenizer(br.readLine());\n\n int N = Integer.parseInt(st.nextToken());\n int nearPrice = N % 1000 == 0 ? N / 1000 : N / 1000 + 1;\n int result = 1000 * nearPrice - N;\n pw.println(result);\n br.close();\n pw.close();\n }\n}", "public class Main {\n \n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));\n PrintWriter pw = new PrintWriter(System.out);\n StringTokenizer st = new StringTokenizer(br.readLine());\n\n int N = Integer.parseInt(st.nextToken());\n int nearPrice = N % 1000 == 0 ? N / 1000 : N / 1000 + 1;\n int result = 1000 * nearPrice - N;\n pw.println(result);\n br.close();\n pw.close();\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.PrintWriter; import java.util.StringTokenizer; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in)); PrintWriter pw = new PrintWriter(System.out); StringTokenizer st = new StringTokenizer(br.readLine()); int N = Integer.parseInt(st.nextToken()); int nearPrice = N % 1000 == 0 ? N / 1000 : N / 1000 + 1; int result = 1000 * nearPrice - N; pw.println(result); br.close(); pw.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 18, 13, 13, 2, 2, 17, 13, 17, 23, 13, 6, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 35, 8 ], [ 35, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 20, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 25, 29 ], [ 9, 30 ], [ 30, 31 ], [ 0, 32 ], [ 32, 33 ], [ 0, 34 ], [ 34, 35 ], [ 34, 36 ] ]
[ "import java.util.*;\nimport java.io.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n System.out.println((10000-n)%1000);\n }\n}\n\nclass Monmo {\n \n}\n", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n System.out.println((10000-n)%1000);\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n System.out.println((10000-n)%1000);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n System.out.println((10000-n)%1000);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "System.out.println((10000-n)%1000)", "System.out.println", "System.out", "System", "System.out", "(10000-n)%1000", "(10000-n)", "10000", "n", "1000", "String[] args", "args", "class Monmo {\n \n}", "Monmo", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n System.out.println((10000-n)%1000);\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n System.out.println((10000-n)%1000);\n }\n}", "Main" ]
import java.util.*; import java.io.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); System.out.println((10000-n)%1000); } } class Monmo { }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 14, 2, 13, 17, 30, 4, 18, 13, 2, 17, 13, 4, 18, 13, 4, 18, 13, 29, 41, 13, 17, 0, 13, 4, 18, 13, 2, 13, 17, 4, 18, 13, 2, 2, 17, 13, 13, 4, 18, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 72, 8 ], [ 72, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 17, 20 ], [ 20, 21 ], [ 21, 22 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 11, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 34, 35 ], [ 34, 36 ], [ 30, 37 ], [ 37, 38 ], [ 38, 39 ], [ 30, 40 ], [ 40, 41 ], [ 41, 42 ], [ 30, 43 ], [ 11, 44 ], [ 44, 45 ], [ 44, 46 ], [ 11, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 52, 53 ], [ 52, 54 ], [ 11, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 11, 63 ], [ 63, 64 ], [ 64, 65 ], [ 11, 66 ], [ 66, 67 ], [ 67, 68 ], [ 9, 69 ], [ 69, 70 ], [ 0, 71 ], [ 71, 72 ], [ 71, 73 ] ]
[ "import java.io.PrintWriter;\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = Integer.parseInt(sc.next());\n PrintWriter out = new PrintWriter(System.out);\n if (N < 1000) {\n out.println(1000 - N);\n sc.close();\n out.flush();\n return;\n }\n\n int x = 0;\n x = (int) Math.ceil((double) N / 1000);\n\n out.println(1000 * x - N);\n sc.close();\n out.flush();\n }\n}", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = Integer.parseInt(sc.next());\n PrintWriter out = new PrintWriter(System.out);\n if (N < 1000) {\n out.println(1000 - N);\n sc.close();\n out.flush();\n return;\n }\n\n int x = 0;\n x = (int) Math.ceil((double) N / 1000);\n\n out.println(1000 * x - N);\n sc.close();\n out.flush();\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = Integer.parseInt(sc.next());\n PrintWriter out = new PrintWriter(System.out);\n if (N < 1000) {\n out.println(1000 - N);\n sc.close();\n out.flush();\n return;\n }\n\n int x = 0;\n x = (int) Math.ceil((double) N / 1000);\n\n out.println(1000 * x - N);\n sc.close();\n out.flush();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int N = Integer.parseInt(sc.next());\n PrintWriter out = new PrintWriter(System.out);\n if (N < 1000) {\n out.println(1000 - N);\n sc.close();\n out.flush();\n return;\n }\n\n int x = 0;\n x = (int) Math.ceil((double) N / 1000);\n\n out.println(1000 * x - N);\n sc.close();\n out.flush();\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N = Integer.parseInt(sc.next());", "N", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "PrintWriter out = new PrintWriter(System.out);", "out", "new PrintWriter(System.out)", "if (N < 1000) {\n out.println(1000 - N);\n sc.close();\n out.flush();\n return;\n }", "N < 1000", "N", "1000", "{\n out.println(1000 - N);\n sc.close();\n out.flush();\n return;\n }", "out.println(1000 - N)", "out.println", "out", "1000 - N", "1000", "N", "sc.close()", "sc.close", "sc", "out.flush()", "out.flush", "out", "return;", "int x = 0;", "x", "0", "x = (int) Math.ceil((double) N / 1000)", "x", "(int) Math.ceil((double) N / 1000)", "Math.ceil", "Math", "(double) N / 1000", "(double) N", "1000", "out.println(1000 * x - N)", "out.println", "out", "1000 * x - N", "1000 * x", "1000", "x", "N", "sc.close()", "sc.close", "sc", "out.flush()", "out.flush", "out", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = Integer.parseInt(sc.next());\n PrintWriter out = new PrintWriter(System.out);\n if (N < 1000) {\n out.println(1000 - N);\n sc.close();\n out.flush();\n return;\n }\n\n int x = 0;\n x = (int) Math.ceil((double) N / 1000);\n\n out.println(1000 * x - N);\n sc.close();\n out.flush();\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = Integer.parseInt(sc.next());\n PrintWriter out = new PrintWriter(System.out);\n if (N < 1000) {\n out.println(1000 - N);\n sc.close();\n out.flush();\n return;\n }\n\n int x = 0;\n x = (int) Math.ceil((double) N / 1000);\n\n out.println(1000 * x - N);\n sc.close();\n out.flush();\n }\n}", "Main" ]
import java.io.PrintWriter; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = Integer.parseInt(sc.next()); PrintWriter out = new PrintWriter(System.out); if (N < 1000) { out.println(1000 - N); sc.close(); out.flush(); return; } int x = 0; x = (int) Math.ceil((double) N / 1000); out.println(1000 * x - N); sc.close(); out.flush(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 42, 2, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 4, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 37, 5 ], [ 37, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 25, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 6, 34 ], [ 34, 35 ], [ 0, 36 ], [ 36, 37 ], [ 36, 38 ] ]
[ "import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n while(n > 0){\n n -= 1000;\n }\n\t\tSystem.out.println(Math.abs(n));\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n while(n > 0){\n n -= 1000;\n }\n\t\tSystem.out.println(Math.abs(n));\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n while(n > 0){\n n -= 1000;\n }\n\t\tSystem.out.println(Math.abs(n));\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n while(n > 0){\n n -= 1000;\n }\n\t\tSystem.out.println(Math.abs(n));\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "while(n > 0){\n n -= 1000;\n }", "n > 0", "n", "0", "{\n n -= 1000;\n }", "n -= 1000", "n", "1000", "System.out.println(Math.abs(n))", "System.out.println", "System.out", "System", "System.out", "Math.abs(n)", "Math.abs", "Math", "n", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n while(n > 0){\n n -= 1000;\n }\n\t\tSystem.out.println(Math.abs(n));\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n while(n > 0){\n n -= 1000;\n }\n\t\tSystem.out.println(Math.abs(n));\n\t}\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); while(n > 0){ n -= 1000; } System.out.println(Math.abs(n)); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 2, 13, 17, 14, 2, 2, 13, 17, 17, 30, 0, 13, 17, 30, 4, 18, 18, 13, 13, 2, 2, 17, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 46, 5 ], [ 46, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 22, 32 ], [ 8, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 6, 43 ], [ 43, 44 ], [ 0, 45 ], [ 45, 46 ], [ 45, 47 ] ]
[ "//package com.company;\n\nimport java.util.Scanner;\n\npublic class Main{\n\n public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n int number=sc.nextInt();\n int val=number/1000;\n if(number%1000!=0){\n val+=1;\n }else{\n\n }\n System.out.println(1000*val-number);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\n public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n int number=sc.nextInt();\n int val=number/1000;\n if(number%1000!=0){\n val+=1;\n }else{\n\n }\n System.out.println(1000*val-number);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n int number=sc.nextInt();\n int val=number/1000;\n if(number%1000!=0){\n val+=1;\n }else{\n\n }\n System.out.println(1000*val-number);\n }", "main", "{\n Scanner sc=new Scanner(System.in);\n int number=sc.nextInt();\n int val=number/1000;\n if(number%1000!=0){\n val+=1;\n }else{\n\n }\n System.out.println(1000*val-number);\n }", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "int number=sc.nextInt();", "number", "sc.nextInt()", "sc.nextInt", "sc", "int val=number/1000;", "val", "number/1000", "number", "1000", "if(number%1000!=0){\n val+=1;\n }else{\n\n }", "number%1000!=0", "number%1000", "number", "1000", "0", "{\n val+=1;\n }", "val+=1", "val", "1", "{\n\n }", "System.out.println(1000*val-number)", "System.out.println", "System.out", "System", "System.out", "1000*val-number", "1000*val", "1000", "val", "number", "String[] args", "args", "public class Main{\n\n public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n int number=sc.nextInt();\n int val=number/1000;\n if(number%1000!=0){\n val+=1;\n }else{\n\n }\n System.out.println(1000*val-number);\n }\n}", "public class Main{\n\n public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n int number=sc.nextInt();\n int val=number/1000;\n if(number%1000!=0){\n val+=1;\n }else{\n\n }\n System.out.println(1000*val-number);\n }\n}", "Main" ]
//package com.company; import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner sc=new Scanner(System.in); int number=sc.nextInt(); int val=number/1000; if(number%1000!=0){ val+=1; }else{ } System.out.println(1000*val-number); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 14, 2, 2, 13, 17, 17, 30, 0, 13, 13, 30, 0, 13, 2, 2, 2, 13, 17, 17, 17, 4, 18, 18, 13, 13, 2, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 19, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 19, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 33, 37 ], [ 32, 38 ], [ 8, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 44, 45 ], [ 44, 46 ], [ 6, 47 ], [ 47, 48 ] ]
[ "import java.util.Scanner;\n\nclass Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int money;\n if(n%1000 == 0){\n money = n;\n }else{\n money = ((n/1000)+1)*1000;\n }\n System.out.println(money-n);\n }\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int money;\n if(n%1000 == 0){\n money = n;\n }else{\n money = ((n/1000)+1)*1000;\n }\n System.out.println(money-n);\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int money;\n if(n%1000 == 0){\n money = n;\n }else{\n money = ((n/1000)+1)*1000;\n }\n System.out.println(money-n);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int money;\n if(n%1000 == 0){\n money = n;\n }else{\n money = ((n/1000)+1)*1000;\n }\n System.out.println(money-n);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int money;", "money", "if(n%1000 == 0){\n money = n;\n }else{\n money = ((n/1000)+1)*1000;\n }", "n%1000 == 0", "n%1000", "n", "1000", "0", "{\n money = n;\n }", "money = n", "money", "n", "{\n money = ((n/1000)+1)*1000;\n }", "money = ((n/1000)+1)*1000", "money", "((n/1000)+1)*1000", "((n/1000)+1)", "(n/1000)", "n", "1000", "1", "1000", "System.out.println(money-n)", "System.out.println", "System.out", "System", "System.out", "money-n", "money", "n", "String[] args", "args" ]
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int money; if(n%1000 == 0){ money = n; }else{ money = ((n/1000)+1)*1000; } System.out.println(money-n); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 14, 2, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 2, 17, 13, 29, 0, 13, 4, 18, 13, 2, 4, 18, 13, 17, 41, 13, 4, 18, 13, 13, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 29, 4, 18, 18, 13, 13, 2, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 78, 5 ], [ 78, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 18, 22 ], [ 17, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 26, 29 ], [ 23, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 35, 37 ], [ 23, 38 ], [ 8, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 44, 48 ], [ 8, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 8, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 59, 66 ], [ 8, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 72, 73 ], [ 72, 74 ], [ 6, 75 ], [ 75, 76 ], [ 0, 77 ], [ 77, 78 ], [ 77, 79 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\t//int n = sc.nextInt();\n\t\tString s = sc.next();\n\t\t\n\t\tif(s.length() <= 3) {\n\t\t\tint n = Integer.parseInt(s);\n\t\t\tSystem.out.println(1000-n);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ts = s.substring(s.length()-3);\n\t\t\n\t\tint n = Integer.parseInt(s);\n\t\t\n\t\tif(n == 0) {\n\t\t\tSystem.out.println(0);\n\t\t\treturn;\n\t\t}\n\t\t//long n = sc.nextLong();\n\t\t//double n = sc.nextDouble();\n\t\t\n\t\tSystem.out.println(1000 - n);\n\t\t//for(int i = 0; i < ; i++)\n\n\t\t//System.out.println(\"Yes\");\n\t\t//System.out.println(\"No\");\n\t\t\n\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\t//int n = sc.nextInt();\n\t\tString s = sc.next();\n\t\t\n\t\tif(s.length() <= 3) {\n\t\t\tint n = Integer.parseInt(s);\n\t\t\tSystem.out.println(1000-n);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ts = s.substring(s.length()-3);\n\t\t\n\t\tint n = Integer.parseInt(s);\n\t\t\n\t\tif(n == 0) {\n\t\t\tSystem.out.println(0);\n\t\t\treturn;\n\t\t}\n\t\t//long n = sc.nextLong();\n\t\t//double n = sc.nextDouble();\n\t\t\n\t\tSystem.out.println(1000 - n);\n\t\t//for(int i = 0; i < ; i++)\n\n\t\t//System.out.println(\"Yes\");\n\t\t//System.out.println(\"No\");\n\t\t\n\n\t}\n}", "Main", "public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\t//int n = sc.nextInt();\n\t\tString s = sc.next();\n\t\t\n\t\tif(s.length() <= 3) {\n\t\t\tint n = Integer.parseInt(s);\n\t\t\tSystem.out.println(1000-n);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ts = s.substring(s.length()-3);\n\t\t\n\t\tint n = Integer.parseInt(s);\n\t\t\n\t\tif(n == 0) {\n\t\t\tSystem.out.println(0);\n\t\t\treturn;\n\t\t}\n\t\t//long n = sc.nextLong();\n\t\t//double n = sc.nextDouble();\n\t\t\n\t\tSystem.out.println(1000 - n);\n\t\t//for(int i = 0; i < ; i++)\n\n\t\t//System.out.println(\"Yes\");\n\t\t//System.out.println(\"No\");\n\t\t\n\n\t}", "main", "{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\t//int n = sc.nextInt();\n\t\tString s = sc.next();\n\t\t\n\t\tif(s.length() <= 3) {\n\t\t\tint n = Integer.parseInt(s);\n\t\t\tSystem.out.println(1000-n);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ts = s.substring(s.length()-3);\n\t\t\n\t\tint n = Integer.parseInt(s);\n\t\t\n\t\tif(n == 0) {\n\t\t\tSystem.out.println(0);\n\t\t\treturn;\n\t\t}\n\t\t//long n = sc.nextLong();\n\t\t//double n = sc.nextDouble();\n\t\t\n\t\tSystem.out.println(1000 - n);\n\t\t//for(int i = 0; i < ; i++)\n\n\t\t//System.out.println(\"Yes\");\n\t\t//System.out.println(\"No\");\n\t\t\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "if(s.length() <= 3) {\n\t\t\tint n = Integer.parseInt(s);\n\t\t\tSystem.out.println(1000-n);\n\t\t\treturn;\n\t\t}", "s.length() <= 3", "s.length()", "s.length", "s", "3", "{\n\t\t\tint n = Integer.parseInt(s);\n\t\t\tSystem.out.println(1000-n);\n\t\t\treturn;\n\t\t}", "int n = Integer.parseInt(s);", "n", "Integer.parseInt(s)", "Integer.parseInt", "Integer", "s", "System.out.println(1000-n)", "System.out.println", "System.out", "System", "System.out", "1000-n", "1000", "n", "return;", "s = s.substring(s.length()-3)", "s", "s.substring(s.length()-3)", "s.substring", "s", "s.length()-3", "s.length()", "s.length", "s", "3", "int n = Integer.parseInt(s);", "n", "Integer.parseInt(s)", "Integer.parseInt", "Integer", "s", "if(n == 0) {\n\t\t\tSystem.out.println(0);\n\t\t\treturn;\n\t\t}", "n == 0", "n", "0", "{\n\t\t\tSystem.out.println(0);\n\t\t\treturn;\n\t\t}", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "return;", "System.out.println(1000 - n)", "System.out.println", "System.out", "System", "System.out", "1000 - n", "1000", "n", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\t//int n = sc.nextInt();\n\t\tString s = sc.next();\n\t\t\n\t\tif(s.length() <= 3) {\n\t\t\tint n = Integer.parseInt(s);\n\t\t\tSystem.out.println(1000-n);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ts = s.substring(s.length()-3);\n\t\t\n\t\tint n = Integer.parseInt(s);\n\t\t\n\t\tif(n == 0) {\n\t\t\tSystem.out.println(0);\n\t\t\treturn;\n\t\t}\n\t\t//long n = sc.nextLong();\n\t\t//double n = sc.nextDouble();\n\t\t\n\t\tSystem.out.println(1000 - n);\n\t\t//for(int i = 0; i < ; i++)\n\n\t\t//System.out.println(\"Yes\");\n\t\t//System.out.println(\"No\");\n\t\t\n\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\t//int n = sc.nextInt();\n\t\tString s = sc.next();\n\t\t\n\t\tif(s.length() <= 3) {\n\t\t\tint n = Integer.parseInt(s);\n\t\t\tSystem.out.println(1000-n);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ts = s.substring(s.length()-3);\n\t\t\n\t\tint n = Integer.parseInt(s);\n\t\t\n\t\tif(n == 0) {\n\t\t\tSystem.out.println(0);\n\t\t\treturn;\n\t\t}\n\t\t//long n = sc.nextLong();\n\t\t//double n = sc.nextDouble();\n\t\t\n\t\tSystem.out.println(1000 - n);\n\t\t//for(int i = 0; i < ; i++)\n\n\t\t//System.out.println(\"Yes\");\n\t\t//System.out.println(\"No\");\n\t\t\n\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); //int n = sc.nextInt(); String s = sc.next(); if(s.length() <= 3) { int n = Integer.parseInt(s); System.out.println(1000-n); return; } s = s.substring(s.length()-3); int n = Integer.parseInt(s); if(n == 0) { System.out.println(0); return; } //long n = sc.nextLong(); //double n = sc.nextDouble(); System.out.println(1000 - n); //for(int i = 0; i < ; i++) //System.out.println("Yes"); //System.out.println("No"); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 13, 30, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 29, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 51, 5 ], [ 51, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 17, 22 ], [ 22, 23 ], [ 22, 24 ], [ 17, 25 ], [ 25, 26 ], [ 26, 27 ], [ 17, 28 ], [ 29, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 31, 35 ], [ 30, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 36, 47 ], [ 6, 48 ], [ 48, 49 ], [ 0, 50 ], [ 50, 51 ], [ 50, 52 ] ]
[ "import java.util.Scanner;\n\n\npublic class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n\n for (int i = 1; i <= 10; i++) {\n if (i * 1000 >= N) {\n System.out.println(i * 1000 - N);\n return;\n }\n }\n }\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n\n for (int i = 1; i <= 10; i++) {\n if (i * 1000 >= N) {\n System.out.println(i * 1000 - N);\n return;\n }\n }\n }\n\n}", "Main", "public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n\n for (int i = 1; i <= 10; i++) {\n if (i * 1000 >= N) {\n System.out.println(i * 1000 - N);\n return;\n }\n }\n }", "main", "{\n\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n\n for (int i = 1; i <= 10; i++) {\n if (i * 1000 >= N) {\n System.out.println(i * 1000 - N);\n return;\n }\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "for (int i = 1; i <= 10; i++) {\n if (i * 1000 >= N) {\n System.out.println(i * 1000 - N);\n return;\n }\n }", "int i = 1;", "int i = 1;", "i", "1", "i <= 10", "i", "10", "i++", "i++", "i", "{\n if (i * 1000 >= N) {\n System.out.println(i * 1000 - N);\n return;\n }\n }", "{\n if (i * 1000 >= N) {\n System.out.println(i * 1000 - N);\n return;\n }\n }", "if (i * 1000 >= N) {\n System.out.println(i * 1000 - N);\n return;\n }", "i * 1000 >= N", "i * 1000", "i", "1000", "N", "{\n System.out.println(i * 1000 - N);\n return;\n }", "System.out.println(i * 1000 - N)", "System.out.println", "System.out", "System", "System.out", "i * 1000 - N", "i * 1000", "i", "1000", "N", "return;", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n\n for (int i = 1; i <= 10; i++) {\n if (i * 1000 >= N) {\n System.out.println(i * 1000 - N);\n return;\n }\n }\n }\n\n}", "public class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n\n for (int i = 1; i <= 10; i++) {\n if (i * 1000 >= N) {\n System.out.println(i * 1000 - N);\n return;\n }\n }\n }\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); for (int i = 1; i <= 10; i++) { if (i * 1000 >= N) { System.out.println(i * 1000 - N); return; } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 2, 17, 2, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 48, 5 ], [ 48, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 24, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 24, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 8, 42 ], [ 42, 43 ], [ 43, 44 ], [ 6, 45 ], [ 45, 46 ], [ 0, 47 ], [ 47, 48 ], [ 47, 49 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner kb = new Scanner(System.in);\n\t\tint s = kb.nextInt();\n\t\tint p = 1000 - s % 1000;\n\t\tif (p == 1000) {\n\t\t\tSystem.out.println(0);\n\t\t} else {\n\t\t\tSystem.out.println(p);\n\t\t}\n\t\tkb.close();\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner kb = new Scanner(System.in);\n\t\tint s = kb.nextInt();\n\t\tint p = 1000 - s % 1000;\n\t\tif (p == 1000) {\n\t\t\tSystem.out.println(0);\n\t\t} else {\n\t\t\tSystem.out.println(p);\n\t\t}\n\t\tkb.close();\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner kb = new Scanner(System.in);\n\t\tint s = kb.nextInt();\n\t\tint p = 1000 - s % 1000;\n\t\tif (p == 1000) {\n\t\t\tSystem.out.println(0);\n\t\t} else {\n\t\t\tSystem.out.println(p);\n\t\t}\n\t\tkb.close();\n\t}", "main", "{\n\t\t// TODO Auto-generated method stub\n\t\tScanner kb = new Scanner(System.in);\n\t\tint s = kb.nextInt();\n\t\tint p = 1000 - s % 1000;\n\t\tif (p == 1000) {\n\t\t\tSystem.out.println(0);\n\t\t} else {\n\t\t\tSystem.out.println(p);\n\t\t}\n\t\tkb.close();\n\t}", "Scanner kb = new Scanner(System.in);", "kb", "new Scanner(System.in)", "int s = kb.nextInt();", "s", "kb.nextInt()", "kb.nextInt", "kb", "int p = 1000 - s % 1000;", "p", "1000 - s % 1000", "1000", "s % 1000", "s", "1000", "if (p == 1000) {\n\t\t\tSystem.out.println(0);\n\t\t} else {\n\t\t\tSystem.out.println(p);\n\t\t}", "p == 1000", "p", "1000", "{\n\t\t\tSystem.out.println(0);\n\t\t}", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "{\n\t\t\tSystem.out.println(p);\n\t\t}", "System.out.println(p)", "System.out.println", "System.out", "System", "System.out", "p", "kb.close()", "kb.close", "kb", "String[] args", "args", "public class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner kb = new Scanner(System.in);\n\t\tint s = kb.nextInt();\n\t\tint p = 1000 - s % 1000;\n\t\tif (p == 1000) {\n\t\t\tSystem.out.println(0);\n\t\t} else {\n\t\t\tSystem.out.println(p);\n\t\t}\n\t\tkb.close();\n\t}\n\n}", "public class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner kb = new Scanner(System.in);\n\t\tint s = kb.nextInt();\n\t\tint p = 1000 - s % 1000;\n\t\tif (p == 1000) {\n\t\t\tSystem.out.println(0);\n\t\t} else {\n\t\t\tSystem.out.println(p);\n\t\t}\n\t\tkb.close();\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args) { // TODO Auto-generated method stub Scanner kb = new Scanner(System.in); int s = kb.nextInt(); int p = 1000 - s % 1000; if (p == 1000) { System.out.println(0); } else { System.out.println(p); } kb.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 8, 2, 2, 13, 17, 17, 2, 13, 17, 2, 2, 13, 17, 17, 4, 18, 18, 13, 13, 2, 2, 17, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 46, 5 ], [ 46, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 19, 25 ], [ 25, 26 ], [ 25, 27 ], [ 19, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 28, 32 ], [ 8, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 6, 43 ], [ 43, 44 ], [ 0, 45 ], [ 45, 46 ], [ 45, 47 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint c = n % 1000 == 0 ? n / 1000 : n / 1000 + 1;\n\n\t\tSystem.out.println(1000 * c - n);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint c = n % 1000 == 0 ? n / 1000 : n / 1000 + 1;\n\n\t\tSystem.out.println(1000 * c - n);\n\t}\n}", "Main", "public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint c = n % 1000 == 0 ? n / 1000 : n / 1000 + 1;\n\n\t\tSystem.out.println(1000 * c - n);\n\t}", "main", "{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint c = n % 1000 == 0 ? n / 1000 : n / 1000 + 1;\n\n\t\tSystem.out.println(1000 * c - n);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int c = n % 1000 == 0 ? n / 1000 : n / 1000 + 1;", "c", "n % 1000 == 0 ? n / 1000 : n / 1000 + 1", "n % 1000 == 0", "n % 1000", "n", "1000", "0", "n / 1000", "n", "1000", "n / 1000 + 1", "n / 1000", "n", "1000", "1", "System.out.println(1000 * c - n)", "System.out.println", "System.out", "System", "System.out", "1000 * c - n", "1000 * c", "1000", "c", "n", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint c = n % 1000 == 0 ? n / 1000 : n / 1000 + 1;\n\n\t\tSystem.out.println(1000 * c - n);\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint c = n % 1000 == 0 ? n / 1000 : n / 1000 + 1;\n\n\t\tSystem.out.println(1000 * c - n);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int c = n % 1000 == 0 ? n / 1000 : n / 1000 + 1; System.out.println(1000 * c - n); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 42, 2, 13, 13, 30, 0, 13, 17, 0, 13, 2, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 45, 8 ], [ 45, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 11, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 11, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 33, 35 ], [ 11, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 9, 42 ], [ 42, 43 ], [ 0, 44 ], [ 44, 45 ], [ 44, 46 ] ]
[ "import java.util.*;\nimport java.io.*;\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\n\t\tint n = sc.nextInt();\n\t\tint pay = 0;\n\t\twhile(pay < n){\n\t\t\tpay += 1000;\n\t\t}\n\n\t\tn = pay - n;\n\t\tSystem.out.println(n);\n\t}\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\n\t\tint n = sc.nextInt();\n\t\tint pay = 0;\n\t\twhile(pay < n){\n\t\t\tpay += 1000;\n\t\t}\n\n\t\tn = pay - n;\n\t\tSystem.out.println(n);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\n\t\tint n = sc.nextInt();\n\t\tint pay = 0;\n\t\twhile(pay < n){\n\t\t\tpay += 1000;\n\t\t}\n\n\t\tn = pay - n;\n\t\tSystem.out.println(n);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\n\t\tint n = sc.nextInt();\n\t\tint pay = 0;\n\t\twhile(pay < n){\n\t\t\tpay += 1000;\n\t\t}\n\n\t\tn = pay - n;\n\t\tSystem.out.println(n);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int pay = 0;", "pay", "0", "while(pay < n){\n\t\t\tpay += 1000;\n\t\t}", "pay < n", "pay", "n", "{\n\t\t\tpay += 1000;\n\t\t}", "pay += 1000", "pay", "1000", "n = pay - n", "n", "pay - n", "pay", "n", "System.out.println(n)", "System.out.println", "System.out", "System", "System.out", "n", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\n\t\tint n = sc.nextInt();\n\t\tint pay = 0;\n\t\twhile(pay < n){\n\t\t\tpay += 1000;\n\t\t}\n\n\t\tn = pay - n;\n\t\tSystem.out.println(n);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\n\t\tint n = sc.nextInt();\n\t\tint pay = 0;\n\t\twhile(pay < n){\n\t\t\tpay += 1000;\n\t\t}\n\n\t\tn = pay - n;\n\t\tSystem.out.println(n);\n\t}\n}", "Main" ]
import java.util.*; import java.io.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int pay = 0; while(pay < n){ pay += 1000; } n = pay - n; System.out.println(n); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 18, 13, 13, 2, 2, 17, 2, 13, 17, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 35, 8 ], [ 35, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 20, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 28, 30 ], [ 25, 31 ], [ 9, 32 ], [ 32, 33 ], [ 0, 34 ], [ 34, 35 ], [ 34, 36 ] ]
[ "import java.util.*;\nimport java.lang.*;\n\npublic class Main\n{\n public static void main (String[] args)\n {\n // your code goes here\n Scanner s = new Scanner(System.in);\n int t = s.nextInt();\n System.out.println((1000-t%1000)%1000);\n }\n}", "import java.util.*;", "util.*", "java", "import java.lang.*;", "lang.*", "java", "public class Main\n{\n public static void main (String[] args)\n {\n // your code goes here\n Scanner s = new Scanner(System.in);\n int t = s.nextInt();\n System.out.println((1000-t%1000)%1000);\n }\n}", "Main", "public static void main (String[] args)\n {\n // your code goes here\n Scanner s = new Scanner(System.in);\n int t = s.nextInt();\n System.out.println((1000-t%1000)%1000);\n }", "main", "{\n // your code goes here\n Scanner s = new Scanner(System.in);\n int t = s.nextInt();\n System.out.println((1000-t%1000)%1000);\n }", "Scanner s = new Scanner(System.in);", "s", "new Scanner(System.in)", "int t = s.nextInt();", "t", "s.nextInt()", "s.nextInt", "s", "System.out.println((1000-t%1000)%1000)", "System.out.println", "System.out", "System", "System.out", "(1000-t%1000)%1000", "(1000-t%1000)", "1000", "t%1000", "t", "1000", "1000", "String[] args", "args", "public class Main\n{\n public static void main (String[] args)\n {\n // your code goes here\n Scanner s = new Scanner(System.in);\n int t = s.nextInt();\n System.out.println((1000-t%1000)%1000);\n }\n}", "public class Main\n{\n public static void main (String[] args)\n {\n // your code goes here\n Scanner s = new Scanner(System.in);\n int t = s.nextInt();\n System.out.println((1000-t%1000)%1000);\n }\n}", "Main" ]
import java.util.*; import java.lang.*; public class Main { public static void main (String[] args) { // your code goes here Scanner s = new Scanner(System.in); int t = s.nextInt(); System.out.println((1000-t%1000)%1000); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 2, 2, 17, 2, 13, 17, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 38, 5 ], [ 38, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 25, 27 ], [ 22, 28 ], [ 8, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 6, 35 ], [ 35, 36 ], [ 0, 37 ], [ 37, 38 ], [ 37, 39 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int N = sc.nextInt();\n sc.close();\n\n int result = (1000 - (N%1000)) % 1000;\n\n System.out.println(result);\n }\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int N = sc.nextInt();\n sc.close();\n\n int result = (1000 - (N%1000)) % 1000;\n\n System.out.println(result);\n }\n\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int N = sc.nextInt();\n sc.close();\n\n int result = (1000 - (N%1000)) % 1000;\n\n System.out.println(result);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n\n int N = sc.nextInt();\n sc.close();\n\n int result = (1000 - (N%1000)) % 1000;\n\n System.out.println(result);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "sc.close()", "sc.close", "sc", "int result = (1000 - (N%1000)) % 1000;", "result", "(1000 - (N%1000)) % 1000", "(1000 - (N%1000))", "1000", "(N%1000)", "N", "1000", "1000", "System.out.println(result)", "System.out.println", "System.out", "System", "System.out", "result", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int N = sc.nextInt();\n sc.close();\n\n int result = (1000 - (N%1000)) % 1000;\n\n System.out.println(result);\n }\n\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int N = sc.nextInt();\n sc.close();\n\n int result = (1000 - (N%1000)) % 1000;\n\n System.out.println(result);\n }\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); sc.close(); int result = (1000 - (N%1000)) % 1000; System.out.println(result); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 42, 2, 13, 13, 30, 0, 13, 2, 13, 17, 4, 18, 18, 13, 13, 2, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 53, 11 ], [ 53, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 14, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 29, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 36, 38 ], [ 14, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 44, 45 ], [ 44, 46 ], [ 14, 47 ], [ 47, 48 ], [ 48, 49 ], [ 12, 50 ], [ 50, 51 ], [ 0, 52 ], [ 52, 53 ], [ 52, 54 ] ]
[ "import java.util.*;\nimport java.io.*;\nimport java.math.*;\n \n \npublic class Main\n{\n public static void main(String[] args) \n { \n Scanner input=new Scanner(System.in);\n int n = input.nextInt();\n // String s = input.next();\n int count =0;\n int i=1000;\n while(i<n){\n i=i+1000;\n // count=i;\n }\n \n \n System.out.println(i-n);\n \n \n \n \n input.close(); \n } \n \n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "import java.math.*;", "math.*", "java", "public class Main\n{\n public static void main(String[] args) \n { \n Scanner input=new Scanner(System.in);\n int n = input.nextInt();\n // String s = input.next();\n int count =0;\n int i=1000;\n while(i<n){\n i=i+1000;\n // count=i;\n }\n \n \n System.out.println(i-n);\n \n \n \n \n input.close(); \n } \n \n}", "Main", "public static void main(String[] args) \n { \n Scanner input=new Scanner(System.in);\n int n = input.nextInt();\n // String s = input.next();\n int count =0;\n int i=1000;\n while(i<n){\n i=i+1000;\n // count=i;\n }\n \n \n System.out.println(i-n);\n \n \n \n \n input.close(); \n }", "main", "{ \n Scanner input=new Scanner(System.in);\n int n = input.nextInt();\n // String s = input.next();\n int count =0;\n int i=1000;\n while(i<n){\n i=i+1000;\n // count=i;\n }\n \n \n System.out.println(i-n);\n \n \n \n \n input.close(); \n }", "Scanner input=new Scanner(System.in);", "input", "new Scanner(System.in)", "int n = input.nextInt();", "n", "input.nextInt()", "input.nextInt", "input", "int count =0;", "count", "0", "int i=1000;", "i", "1000", "while(i<n){\n i=i+1000;\n // count=i;\n }", "i<n", "i", "n", "{\n i=i+1000;\n // count=i;\n }", "i=i+1000", "i", "i+1000", "i", "1000", "System.out.println(i-n)", "System.out.println", "System.out", "System", "System.out", "i-n", "i", "n", "input.close()", "input.close", "input", "String[] args", "args", "public class Main\n{\n public static void main(String[] args) \n { \n Scanner input=new Scanner(System.in);\n int n = input.nextInt();\n // String s = input.next();\n int count =0;\n int i=1000;\n while(i<n){\n i=i+1000;\n // count=i;\n }\n \n \n System.out.println(i-n);\n \n \n \n \n input.close(); \n } \n \n}", "public class Main\n{\n public static void main(String[] args) \n { \n Scanner input=new Scanner(System.in);\n int n = input.nextInt();\n // String s = input.next();\n int count =0;\n int i=1000;\n while(i<n){\n i=i+1000;\n // count=i;\n }\n \n \n System.out.println(i-n);\n \n \n \n \n input.close(); \n } \n \n}", "Main" ]
import java.util.*; import java.io.*; import java.math.*; public class Main { public static void main(String[] args) { Scanner input=new Scanner(System.in); int n = input.nextInt(); // String s = input.next(); int count =0; int i=1000; while(i<n){ i=i+1000; // count=i; } System.out.println(i-n); input.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 18, 13, 13, 41, 13, 18, 13, 13, 41, 13, 20, 41, 13, 20, 41, 13, 20, 4, 18, 13, 17, 13, 13, 4, 18, 13, 23, 13, 6, 13, 12, 13, 30, 41, 13, 4, 18, 13, 4, 18, 13, 2, 2, 17, 2, 13, 17, 17, 23, 13, 23, 13, 23, 13, 6, 13, 41, 13, 41, 13, 20, 17, 41, 13, 41, 13, 41, 13, 12, 13, 30, 0, 18, 36, 13, 13, 23, 13, 12, 13, 30, 14, 2, 13, 40, 17, 37, 20, 14, 2, 13, 13, 30, 0, 13, 17, 38, 5, 13, 30, 37, 20, 30, 0, 13, 4, 18, 13, 13, 14, 2, 13, 17, 29, 40, 17, 29, 18, 13, 40, 13, 12, 13, 30, 41, 13, 4, 13, 42, 4, 13, 13, 0, 13, 4, 13, 41, 13, 17, 14, 2, 13, 17, 30, 0, 13, 40, 17, 0, 13, 4, 13, 41, 13, 17, 42, 40, 4, 13, 13, 30, 14, 2, 2, 13, 17, 2, 13, 17, 37, 20, 0, 13, 17, 0, 13, 2, 13, 17, 0, 13, 4, 13, 29, 2, 13, 13, 12, 13, 30, 14, 2, 13, 17, 29, 4, 18, 13, 13, 29, 2, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 40, 17, 23, 13, 6, 13, 12, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 19, 20 ], [ 19, 21 ], [ 0, 22 ], [ 258, 23 ], [ 258, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 29, 31 ], [ 26, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 34, 36 ], [ 26, 37 ], [ 37, 38 ], [ 37, 39 ], [ 26, 40 ], [ 40, 41 ], [ 40, 42 ], [ 26, 43 ], [ 43, 44 ], [ 43, 45 ], [ 26, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 46, 50 ], [ 46, 51 ], [ 26, 52 ], [ 52, 53 ], [ 53, 54 ], [ 24, 55 ], [ 55, 56 ], [ 258, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 61, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 73, 75 ], [ 70, 76 ], [ 59, 77 ], [ 77, 78 ], [ 59, 79 ], [ 79, 80 ], [ 59, 81 ], [ 81, 82 ], [ 258, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 83, 87 ], [ 87, 88 ], [ 87, 89 ], [ 83, 91 ], [ 91, 92 ], [ 83, 93 ], [ 93, 94 ], [ 83, 95 ], [ 95, 96 ], [ 83, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 97, 105 ], [ 105, 106 ], [ 83, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 110, 115 ], [ 115, 116 ], [ 109, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 117, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 121, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 128, 129 ], [ 129, 130 ], [ 125, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 134, 135 ], [ 135, 136 ], [ 134, 137 ], [ 121, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 138, 142 ], [ 142, 143 ], [ 143, 144 ], [ 109, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 148, 149 ], [ 83, 150 ], [ 150, 151 ], [ 150, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 155, 156 ], [ 152, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 157, 161 ], [ 161, 162 ], [ 161, 163 ], [ 163, 164 ], [ 152, 165 ], [ 165, 166 ], [ 165, 167 ], [ 152, 168 ], [ 168, 169 ], [ 169, 170 ], [ 169, 171 ], [ 168, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 175, 176 ], [ 172, 177 ], [ 177, 178 ], [ 177, 179 ], [ 179, 180 ], [ 152, 181 ], [ 181, 182 ], [ 181, 183 ], [ 152, 184 ], [ 184, 185 ], [ 185, 186 ], [ 186, 187 ], [ 186, 188 ], [ 184, 189 ], [ 189, 190 ], [ 190, 191 ], [ 191, 192 ], [ 192, 193 ], [ 192, 194 ], [ 191, 195 ], [ 195, 196 ], [ 195, 197 ], [ 190, 198 ], [ 198, 199 ], [ 189, 200 ], [ 200, 201 ], [ 200, 202 ], [ 189, 203 ], [ 203, 204 ], [ 203, 205 ], [ 205, 206 ], [ 205, 207 ], [ 189, 208 ], [ 208, 209 ], [ 208, 210 ], [ 210, 211 ], [ 152, 212 ], [ 212, 213 ], [ 213, 214 ], [ 213, 215 ], [ 83, 216 ], [ 216, 217 ], [ 216, 218 ], [ 218, 219 ], [ 219, 220 ], [ 220, 221 ], [ 220, 222 ], [ 219, 223 ], [ 223, 224 ], [ 224, 225 ], [ 225, 226 ], [ 224, 227 ], [ 218, 228 ], [ 228, 229 ], [ 232, 230 ], [ 242, 231 ], [ 239, 232 ], [ 232, 233 ], [ 233, 234 ], [ 233, 235 ], [ 232, 236 ], [ 236, 237 ], [ 236, 238 ], [ 239, 239 ], [ 239, 240 ], [ 239, 241 ], [ 242, 242 ], [ 242, 243 ], [ 242, 244 ], [ 232, 245 ], [ 245, 246 ], [ 245, 247 ], [ 247, 248 ], [ 216, 249 ], [ 249, 250 ], [ 83, 251 ], [ 251, 252 ], [ 251, 253 ], [ 253, 254 ], [ 253, 255 ], [ 255, 256 ], [ 0, 257 ], [ 257, 258 ], [ 257, 259 ] ]
[ "import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.InputMismatchException;\nimport java.io.IOException;\nimport java.io.InputStream;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n *\n * @author Pranay2516\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n A solver = new A();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class A {\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n int n = in.nextInt();\n out.println((1000 - n % 1000) % 1000);\n }\n\n }\n\n static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n\n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}\n", "import java.io.OutputStream;", "OutputStream", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.util.InputMismatchException;", "InputMismatchException", "java.util", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n A solver = new A();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class A {\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n int n = in.nextInt();\n out.println((1000 - n % 1000) % 1000);\n }\n\n }\n\n static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n\n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}", "Main", "public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n A solver = new A();\n solver.solve(1, in, out);\n out.close();\n }", "main", "{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n A solver = new A();\n solver.solve(1, in, out);\n out.close();\n }", "InputStream inputStream = System.in;", "inputStream", "System.in", "System", "System.in", "OutputStream outputStream = System.out;", "outputStream", "System.out", "System", "System.out", "FastReader in = new FastReader(inputStream);", "in", "new FastReader(inputStream)", "PrintWriter out = new PrintWriter(outputStream);", "out", "new PrintWriter(outputStream)", "A solver = new A();", "solver", "new A()", "solver.solve(1, in, out)", "solver.solve", "solver", "1", "in", "out", "out.close()", "out.close", "out", "String[] args", "args", "static class A {\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n int n = in.nextInt();\n out.println((1000 - n % 1000) % 1000);\n }\n\n }", "A", "public void solve(int testNumber, FastReader in, PrintWriter out) {\n int n = in.nextInt();\n out.println((1000 - n % 1000) % 1000);\n }", "solve", "{\n int n = in.nextInt();\n out.println((1000 - n % 1000) % 1000);\n }", "int n = in.nextInt();", "n", "in.nextInt()", "in.nextInt", "in", "out.println((1000 - n % 1000) % 1000)", "out.println", "out", "(1000 - n % 1000) % 1000", "(1000 - n % 1000)", "1000", "n % 1000", "n", "1000", "1000", "int testNumber", "testNumber", "FastReader in", "in", "PrintWriter out", "out", "static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n\n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }", "FastReader", "private InputStream stream;", "stream", "private byte[] buf = new byte[1024];", "buf", "new byte[1024]", "1024", "private int curChar;", "curChar", "private int numChars;", "numChars", "private FastReader.SpaceCharFilter filter;", "filter", "public FastReader(InputStream stream) {\n this.stream = stream;\n }", "FastReader", "{\n this.stream = stream;\n }", "this.stream = stream", "this.stream", "this", "this.stream", "stream", "InputStream stream", "stream", "public int read() {\n if (numChars == -1) throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) return -1;\n }\n return buf[curChar++];\n }", "read", "{\n if (numChars == -1) throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) return -1;\n }\n return buf[curChar++];\n }", "if (numChars == -1) throw new InputMismatchException();", "numChars == -1", "numChars", "-1", "1", "throw new InputMismatchException();", "new InputMismatchException()", "if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) return -1;\n }", "curChar >= numChars", "curChar", "numChars", "{\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) return -1;\n }", "curChar = 0", "curChar", "0", "try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }", "catch (IOException e) {\n throw new InputMismatchException();\n }", "IOException e", "{\n throw new InputMismatchException();\n }", "throw new InputMismatchException();", "new InputMismatchException()", "{\n numChars = stream.read(buf);\n }", "numChars = stream.read(buf)", "numChars", "stream.read(buf)", "stream.read", "stream", "buf", "if (numChars <= 0) return -1;", "numChars <= 0", "numChars", "0", "return -1;", "-1", "1", "return buf[curChar++];", "buf[curChar++]", "buf", "curChar++", "curChar", "public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }", "nextInt", "{\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }", "int c = read();", "c", "read()", "read", "while (isSpaceChar(c)) c = read();", "isSpaceChar(c)", "isSpaceChar", "c", "c = read()", "c", "read()", "read", "int sgn = 1;", "sgn", "1", "if (c == '-') {\n sgn = -1;\n c = read();\n }", "c == '-'", "c", "'-'", "{\n sgn = -1;\n c = read();\n }", "sgn = -1", "sgn", "-1", "1", "c = read()", "c", "read()", "read", "int res = 0;", "res", "0", "do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));", "!isSpaceChar(c)", "isSpaceChar(c)", "isSpaceChar", "c", "{\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }", "if (c < '0' || c > '9') throw new InputMismatchException();", "c < '0' || c > '9'", "c < '0'", "c", "'0'", "c > '9'", "c", "'9'", "throw new InputMismatchException();", "new InputMismatchException()", "res *= 10", "res", "10", "res += c - '0'", "res", "c - '0'", "c", "'0'", "c = read()", "c", "read()", "read", "return res * sgn;", "res * sgn", "res", "sgn", "public boolean isSpaceChar(int c) {\n if (filter != null) return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }", "isSpaceChar", "{\n if (filter != null) return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }", "if (filter != null) return filter.isSpaceChar(c);", "filter != null", "filter", "null", "return filter.isSpaceChar(c);", "filter.isSpaceChar(c)", "filter.isSpaceChar", "filter", "c", "return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;", "c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1", "c == '\\t'", "c == '\\r'", "c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1", "c == ' '", "c", "' '", "c == '\\n'", "c", "'\\n'", "c == '\\r'", "c", "'\\r'", "c == '\\t'", "c", "'\\t'", "c == -1", "c", "-1", "1", "int c", "c", "public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }", "SpaceCharFilter", "public boolean isSpaceChar(int ch);", "isSpaceChar", "int ch", "ch", "public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n A solver = new A();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class A {\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n int n = in.nextInt();\n out.println((1000 - n % 1000) % 1000);\n }\n\n }\n\n static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n\n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}", "public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n A solver = new A();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class A {\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n int n = in.nextInt();\n out.println((1000 - n % 1000) % 1000);\n }\n\n }\n\n static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n\n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}", "Main" ]
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.InputMismatchException; import java.io.IOException; import java.io.InputStream; /** * Built using CHelper plug-in * Actual solution is at the top * * @author Pranay2516 */ public class Main { public static void main(String[] args) { InputStream inputStream = System.in; OutputStream outputStream = System.out; FastReader in = new FastReader(inputStream); PrintWriter out = new PrintWriter(outputStream); A solver = new A(); solver.solve(1, in, out); out.close(); } static class A { public void solve(int testNumber, FastReader in, PrintWriter out) { int n = in.nextInt(); out.println((1000 - n % 1000) % 1000); } } static class FastReader { private InputStream stream; private byte[] buf = new byte[1024]; private int curChar; private int numChars; private FastReader.SpaceCharFilter filter; public FastReader(InputStream stream) { this.stream = stream; } public int read() { if (numChars == -1) throw new InputMismatchException(); if (curChar >= numChars) { curChar = 0; try { numChars = stream.read(buf); } catch (IOException e) { throw new InputMismatchException(); } if (numChars <= 0) return -1; } return buf[curChar++]; } public int nextInt() { int c = read(); while (isSpaceChar(c)) c = read(); int sgn = 1; if (c == '-') { sgn = -1; c = read(); } int res = 0; do { if (c < '0' || c > '9') throw new InputMismatchException(); res *= 10; res += c - '0'; c = read(); } while (!isSpaceChar(c)); return res * sgn; } public boolean isSpaceChar(int c) { if (filter != null) return filter.isSpaceChar(c); return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1; } public interface SpaceCharFilter { public boolean isSpaceChar(int ch); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 0, 13, 2, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 13, 30, 41, 13, 2, 17, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 48, 5 ], [ 48, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 22, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 22, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 36, 38 ], [ 33, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 6, 45 ], [ 45, 46 ], [ 0, 47 ], [ 47, 48 ], [ 47, 49 ] ]
[ "import java.util.*;\n \npublic class Main\n{\n public static void main(String[]args)\n {\n \tScanner console = new Scanner(System.in);\n int n = console.nextInt();\n n = n % 1000;\n if(n == 0)\n {\n \tSystem.out.print(n);\n }\n else\n {\n \tint answer = 1000 - n;\n \tSystem.out.print(answer);\n }\n }\n}", "import java.util.*;", "util.*", "java", "public class Main\n{\n public static void main(String[]args)\n {\n \tScanner console = new Scanner(System.in);\n int n = console.nextInt();\n n = n % 1000;\n if(n == 0)\n {\n \tSystem.out.print(n);\n }\n else\n {\n \tint answer = 1000 - n;\n \tSystem.out.print(answer);\n }\n }\n}", "Main", "public static void main(String[]args)\n {\n \tScanner console = new Scanner(System.in);\n int n = console.nextInt();\n n = n % 1000;\n if(n == 0)\n {\n \tSystem.out.print(n);\n }\n else\n {\n \tint answer = 1000 - n;\n \tSystem.out.print(answer);\n }\n }", "main", "{\n \tScanner console = new Scanner(System.in);\n int n = console.nextInt();\n n = n % 1000;\n if(n == 0)\n {\n \tSystem.out.print(n);\n }\n else\n {\n \tint answer = 1000 - n;\n \tSystem.out.print(answer);\n }\n }", "Scanner console = new Scanner(System.in);", "console", "new Scanner(System.in)", "int n = console.nextInt();", "n", "console.nextInt()", "console.nextInt", "console", "n = n % 1000", "n", "n % 1000", "n", "1000", "if(n == 0)\n {\n \tSystem.out.print(n);\n }\n else\n {\n \tint answer = 1000 - n;\n \tSystem.out.print(answer);\n }", "n == 0", "n", "0", "{\n \tSystem.out.print(n);\n }", "System.out.print(n)", "System.out.print", "System.out", "System", "System.out", "n", "{\n \tint answer = 1000 - n;\n \tSystem.out.print(answer);\n }", "int answer = 1000 - n;", "answer", "1000 - n", "1000", "n", "System.out.print(answer)", "System.out.print", "System.out", "System", "System.out", "answer", "String[]args", "args", "public class Main\n{\n public static void main(String[]args)\n {\n \tScanner console = new Scanner(System.in);\n int n = console.nextInt();\n n = n % 1000;\n if(n == 0)\n {\n \tSystem.out.print(n);\n }\n else\n {\n \tint answer = 1000 - n;\n \tSystem.out.print(answer);\n }\n }\n}", "public class Main\n{\n public static void main(String[]args)\n {\n \tScanner console = new Scanner(System.in);\n int n = console.nextInt();\n n = n % 1000;\n if(n == 0)\n {\n \tSystem.out.print(n);\n }\n else\n {\n \tint answer = 1000 - n;\n \tSystem.out.print(answer);\n }\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[]args) { Scanner console = new Scanner(System.in); int n = console.nextInt(); n = n % 1000; if(n == 0) { System.out.print(n); } else { int answer = 1000 - n; System.out.print(answer); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 0, 13, 4, 18, 13, 41, 13, 2, 2, 13, 17, 17, 0, 13, 2, 2, 17, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 42, 5 ], [ 42, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 21, 25 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 28, 32 ], [ 8, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 6, 39 ], [ 39, 40 ], [ 0, 41 ], [ 41, 42 ], [ 41, 43 ] ]
[ "import java.util.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner in = new Scanner(System.in);\n\t\tint n; n = in.nextInt();\n\t\tint a = (n + 999) / 1000;\n\t\tn = 1000 * a - n;\n\t\tSystem.out.println(n);\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner in = new Scanner(System.in);\n\t\tint n; n = in.nextInt();\n\t\tint a = (n + 999) / 1000;\n\t\tn = 1000 * a - n;\n\t\tSystem.out.println(n);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner in = new Scanner(System.in);\n\t\tint n; n = in.nextInt();\n\t\tint a = (n + 999) / 1000;\n\t\tn = 1000 * a - n;\n\t\tSystem.out.println(n);\n\t}", "main", "{\n\t\t// TODO Auto-generated method stub\n\t\tScanner in = new Scanner(System.in);\n\t\tint n; n = in.nextInt();\n\t\tint a = (n + 999) / 1000;\n\t\tn = 1000 * a - n;\n\t\tSystem.out.println(n);\n\t}", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "int n;", "n", "n = in.nextInt()", "n", "in.nextInt()", "in.nextInt", "in", "int a = (n + 999) / 1000;", "a", "(n + 999) / 1000", "(n + 999)", "n", "999", "1000", "n = 1000 * a - n", "n", "1000 * a - n", "1000 * a", "1000", "a", "n", "System.out.println(n)", "System.out.println", "System.out", "System", "System.out", "n", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner in = new Scanner(System.in);\n\t\tint n; n = in.nextInt();\n\t\tint a = (n + 999) / 1000;\n\t\tn = 1000 * a - n;\n\t\tSystem.out.println(n);\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner in = new Scanner(System.in);\n\t\tint n; n = in.nextInt();\n\t\tint a = (n + 999) / 1000;\n\t\tn = 1000 * a - n;\n\t\tSystem.out.println(n);\n\t}\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner in = new Scanner(System.in); int n; n = in.nextInt(); int a = (n + 999) / 1000; n = 1000 * a - n; System.out.println(n); } }
[ 7, 6, 13, 12, 13, 30, 41, 13, 4, 18, 20, 41, 13, 17, 42, 2, 13, 13, 30, 0, 13, 17, 4, 18, 18, 13, 13, 2, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 33, 2 ], [ 33, 3 ], [ 3, 4 ], [ 3, 5 ], [ 5, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 5, 11 ], [ 11, 12 ], [ 11, 13 ], [ 5, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 5, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 22, 27 ], [ 27, 28 ], [ 27, 29 ], [ 3, 30 ], [ 30, 31 ], [ 0, 32 ], [ 32, 33 ], [ 32, 34 ] ]
[ "public class Main {\n\n public static void main(String[] args) {\n int price = new java.util.Scanner(System.in).nextInt();\n int pay = 0;\n while (pay < price) {\n pay += 1000;\n }\n System.out.println(pay - price);\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n int price = new java.util.Scanner(System.in).nextInt();\n int pay = 0;\n while (pay < price) {\n pay += 1000;\n }\n System.out.println(pay - price);\n }\n}", "Main", "public static void main(String[] args) {\n int price = new java.util.Scanner(System.in).nextInt();\n int pay = 0;\n while (pay < price) {\n pay += 1000;\n }\n System.out.println(pay - price);\n }", "main", "{\n int price = new java.util.Scanner(System.in).nextInt();\n int pay = 0;\n while (pay < price) {\n pay += 1000;\n }\n System.out.println(pay - price);\n }", "int price = new java.util.Scanner(System.in).nextInt();", "price", "new java.util.Scanner(System.in).nextInt()", "new java.util.Scanner(System.in).nextInt", "new java.util.Scanner(System.in)", "int pay = 0;", "pay", "0", "while (pay < price) {\n pay += 1000;\n }", "pay < price", "pay", "price", "{\n pay += 1000;\n }", "pay += 1000", "pay", "1000", "System.out.println(pay - price)", "System.out.println", "System.out", "System", "System.out", "pay - price", "pay", "price", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n int price = new java.util.Scanner(System.in).nextInt();\n int pay = 0;\n while (pay < price) {\n pay += 1000;\n }\n System.out.println(pay - price);\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n int price = new java.util.Scanner(System.in).nextInt();\n int pay = 0;\n while (pay < price) {\n pay += 1000;\n }\n System.out.println(pay - price);\n }\n}", "Main" ]
public class Main { public static void main(String[] args) { int price = new java.util.Scanner(System.in).nextInt(); int pay = 0; while (pay < price) { pay += 1000; } System.out.println(pay - price); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 18, 13, 13, 2, 2, 17, 2, 13, 17, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 32, 5 ], [ 32, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 17, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 25, 27 ], [ 22, 28 ], [ 6, 29 ], [ 29, 30 ], [ 0, 31 ], [ 31, 32 ], [ 31, 33 ] ]
[ "import java.util.*;\n\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tSystem.out.print((1000-n%1000)%1000);\n\t}\n\t\n}", "import java.util.*;", "util.*", "java", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tSystem.out.print((1000-n%1000)%1000);\n\t}\n\t\n}", "Main", "public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tSystem.out.print((1000-n%1000)%1000);\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tSystem.out.print((1000-n%1000)%1000);\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "System.out.print((1000-n%1000)%1000)", "System.out.print", "System.out", "System", "System.out", "(1000-n%1000)%1000", "(1000-n%1000)", "1000", "n%1000", "n", "1000", "1000", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tSystem.out.print((1000-n%1000)%1000);\n\t}\n\t\n}", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tSystem.out.print((1000-n%1000)%1000);\n\t}\n\t\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); System.out.print((1000-n%1000)%1000); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 14, 2, 2, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 2, 17, 2, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 47, 5 ], [ 47, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 14, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 21, 25 ], [ 20, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 20, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 41, 43 ], [ 6, 44 ], [ 44, 45 ], [ 0, 46 ], [ 46, 47 ], [ 46, 48 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String args[]) {\n Scanner input = new Scanner(System.in);\n Integer N = Integer.valueOf(input.nextLine());\n if (N % 1000 == 0) {\n System.out.println(0);\n }\n else {\n System.out.println(1000 - N % 1000);\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String args[]) {\n Scanner input = new Scanner(System.in);\n Integer N = Integer.valueOf(input.nextLine());\n if (N % 1000 == 0) {\n System.out.println(0);\n }\n else {\n System.out.println(1000 - N % 1000);\n }\n }\n}", "Main", "public static void main(String args[]) {\n Scanner input = new Scanner(System.in);\n Integer N = Integer.valueOf(input.nextLine());\n if (N % 1000 == 0) {\n System.out.println(0);\n }\n else {\n System.out.println(1000 - N % 1000);\n }\n }", "main", "{\n Scanner input = new Scanner(System.in);\n Integer N = Integer.valueOf(input.nextLine());\n if (N % 1000 == 0) {\n System.out.println(0);\n }\n else {\n System.out.println(1000 - N % 1000);\n }\n }", "Scanner input = new Scanner(System.in);", "input", "new Scanner(System.in)", "Integer N = Integer.valueOf(input.nextLine());", "N", "Integer.valueOf(input.nextLine())", "Integer.valueOf", "Integer", "input.nextLine()", "input.nextLine", "input", "if (N % 1000 == 0) {\n System.out.println(0);\n }\n else {\n System.out.println(1000 - N % 1000);\n }", "N % 1000 == 0", "N % 1000", "N", "1000", "0", "{\n System.out.println(0);\n }", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "{\n System.out.println(1000 - N % 1000);\n }", "System.out.println(1000 - N % 1000)", "System.out.println", "System.out", "System", "System.out", "1000 - N % 1000", "1000", "N % 1000", "N", "1000", "String args[]", "args", "public class Main {\n public static void main(String args[]) {\n Scanner input = new Scanner(System.in);\n Integer N = Integer.valueOf(input.nextLine());\n if (N % 1000 == 0) {\n System.out.println(0);\n }\n else {\n System.out.println(1000 - N % 1000);\n }\n }\n}", "public class Main {\n public static void main(String args[]) {\n Scanner input = new Scanner(System.in);\n Integer N = Integer.valueOf(input.nextLine());\n if (N % 1000 == 0) {\n System.out.println(0);\n }\n else {\n System.out.println(1000 - N % 1000);\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner input = new Scanner(System.in); Integer N = Integer.valueOf(input.nextLine()); if (N % 1000 == 0) { System.out.println(0); } else { System.out.println(1000 - N % 1000); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 42, 17, 30, 14, 2, 13, 17, 30, 0, 13, 2, 17, 13, 3, 30, 0, 13, 2, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 49, 5 ], [ 49, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 30, 32 ], [ 27, 33 ], [ 23, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 37, 39 ], [ 8, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 6, 46 ], [ 46, 47 ], [ 0, 48 ], [ 48, 49 ], [ 48, 50 ] ]
[ "/******************************************************************************\n\n Online Java Compiler.\n Code, Compile, Run and Debug java program online.\nWrite your code in this editor and press \"Run\" button to execute it.\n\n*******************************************************************************/\nimport java.util.*;\npublic class Main\n{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint x = 0;\n\t\twhile(true)\n\t\t{\n\t\t if(n <= 1000)\n\t\t {\n\t\t x = 1000 - n;\n\t\t break;\n\t\t }\n\t\t else\n\t\t {\n\t\t n = n - 1000;\n\t\t }\n\t\t}\n\t\tSystem.out.println(x);\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main\n{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint x = 0;\n\t\twhile(true)\n\t\t{\n\t\t if(n <= 1000)\n\t\t {\n\t\t x = 1000 - n;\n\t\t break;\n\t\t }\n\t\t else\n\t\t {\n\t\t n = n - 1000;\n\t\t }\n\t\t}\n\t\tSystem.out.println(x);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint x = 0;\n\t\twhile(true)\n\t\t{\n\t\t if(n <= 1000)\n\t\t {\n\t\t x = 1000 - n;\n\t\t break;\n\t\t }\n\t\t else\n\t\t {\n\t\t n = n - 1000;\n\t\t }\n\t\t}\n\t\tSystem.out.println(x);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint x = 0;\n\t\twhile(true)\n\t\t{\n\t\t if(n <= 1000)\n\t\t {\n\t\t x = 1000 - n;\n\t\t break;\n\t\t }\n\t\t else\n\t\t {\n\t\t n = n - 1000;\n\t\t }\n\t\t}\n\t\tSystem.out.println(x);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int x = 0;", "x", "0", "while(true)\n\t\t{\n\t\t if(n <= 1000)\n\t\t {\n\t\t x = 1000 - n;\n\t\t break;\n\t\t }\n\t\t else\n\t\t {\n\t\t n = n - 1000;\n\t\t }\n\t\t}", "true", "{\n\t\t if(n <= 1000)\n\t\t {\n\t\t x = 1000 - n;\n\t\t break;\n\t\t }\n\t\t else\n\t\t {\n\t\t n = n - 1000;\n\t\t }\n\t\t}", "if(n <= 1000)\n\t\t {\n\t\t x = 1000 - n;\n\t\t break;\n\t\t }\n\t\t else\n\t\t {\n\t\t n = n - 1000;\n\t\t }", "n <= 1000", "n", "1000", "{\n\t\t x = 1000 - n;\n\t\t break;\n\t\t }", "x = 1000 - n", "x", "1000 - n", "1000", "n", "break;", "{\n\t\t n = n - 1000;\n\t\t }", "n = n - 1000", "n", "n - 1000", "n", "1000", "System.out.println(x)", "System.out.println", "System.out", "System", "System.out", "x", "String[] args", "args", "public class Main\n{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint x = 0;\n\t\twhile(true)\n\t\t{\n\t\t if(n <= 1000)\n\t\t {\n\t\t x = 1000 - n;\n\t\t break;\n\t\t }\n\t\t else\n\t\t {\n\t\t n = n - 1000;\n\t\t }\n\t\t}\n\t\tSystem.out.println(x);\n\t}\n}", "public class Main\n{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint x = 0;\n\t\twhile(true)\n\t\t{\n\t\t if(n <= 1000)\n\t\t {\n\t\t x = 1000 - n;\n\t\t break;\n\t\t }\n\t\t else\n\t\t {\n\t\t n = n - 1000;\n\t\t }\n\t\t}\n\t\tSystem.out.println(x);\n\t}\n}", "Main" ]
/****************************************************************************** Online Java Compiler. Code, Compile, Run and Debug java program online. Write your code in this editor and press "Run" button to execute it. *******************************************************************************/ import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int x = 0; while(true) { if(n <= 1000) { x = 1000 - n; break; } else { n = n - 1000; } } System.out.println(x); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 42, 2, 13, 13, 30, 0, 13, 2, 13, 17, 4, 18, 18, 13, 13, 2, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 14, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 33, 35 ], [ 14, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 41, 42 ], [ 41, 43 ], [ 12, 44 ], [ 44, 45 ] ]
[ "import java.util.*;\nimport java.lang.*;\nimport java.io.*;\nclass Main {\n public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int bill = 1000;\n while(N>bill)\n {\n bill = bill + 1000; \n }\n System.out.println(bill-N);\n }\n}", "import java.util.*;", "util.*", "java", "import java.lang.*;", "lang.*", "java", "import java.io.*;", "io.*", "java", "class Main {\n public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int bill = 1000;\n while(N>bill)\n {\n bill = bill + 1000; \n }\n System.out.println(bill-N);\n }\n}", "Main", "public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int bill = 1000;\n while(N>bill)\n {\n bill = bill + 1000; \n }\n System.out.println(bill-N);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int bill = 1000;\n while(N>bill)\n {\n bill = bill + 1000; \n }\n System.out.println(bill-N);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "int bill = 1000;", "bill", "1000", "while(N>bill)\n {\n bill = bill + 1000; \n }", "N>bill", "N", "bill", "{\n bill = bill + 1000; \n }", "bill = bill + 1000", "bill", "bill + 1000", "bill", "1000", "System.out.println(bill-N)", "System.out.println", "System.out", "System", "System.out", "bill-N", "bill", "N", "String args[]", "args" ]
import java.util.*; import java.lang.*; import java.io.*; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int bill = 1000; while(N>bill) { bill = bill + 1000; } System.out.println(bill-N); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 42, 2, 2, 13, 13, 13, 30, 40, 13, 41, 13, 2, 2, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 24, 28 ], [ 23, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 8, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 6, 45 ], [ 45, 46 ] ]
[ "import java.util.*;\n\nclass Main\n{\n public static void main (String[] args)\n {\n Scanner sc = new Scanner (System.in);\n \n int n = sc.nextInt();\n \n int moneyCount = 1;\n int money = 1000;\n \n while (money * moneyCount < n) {\n moneyCount++;\n }\n \n int result = money * moneyCount - n;\n \n System.out.println(result);\n \n }\n}", "import java.util.*;", "util.*", "java", "class Main\n{\n public static void main (String[] args)\n {\n Scanner sc = new Scanner (System.in);\n \n int n = sc.nextInt();\n \n int moneyCount = 1;\n int money = 1000;\n \n while (money * moneyCount < n) {\n moneyCount++;\n }\n \n int result = money * moneyCount - n;\n \n System.out.println(result);\n \n }\n}", "Main", "public static void main (String[] args)\n {\n Scanner sc = new Scanner (System.in);\n \n int n = sc.nextInt();\n \n int moneyCount = 1;\n int money = 1000;\n \n while (money * moneyCount < n) {\n moneyCount++;\n }\n \n int result = money * moneyCount - n;\n \n System.out.println(result);\n \n }", "main", "{\n Scanner sc = new Scanner (System.in);\n \n int n = sc.nextInt();\n \n int moneyCount = 1;\n int money = 1000;\n \n while (money * moneyCount < n) {\n moneyCount++;\n }\n \n int result = money * moneyCount - n;\n \n System.out.println(result);\n \n }", "Scanner sc = new Scanner (System.in);", "sc", "new Scanner (System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int moneyCount = 1;", "moneyCount", "1", "int money = 1000;", "money", "1000", "while (money * moneyCount < n) {\n moneyCount++;\n }", "money * moneyCount < n", "money * moneyCount", "money", "moneyCount", "n", "{\n moneyCount++;\n }", "moneyCount++", "moneyCount", "int result = money * moneyCount - n;", "result", "money * moneyCount - n", "money * moneyCount", "money", "moneyCount", "n", "System.out.println(result)", "System.out.println", "System.out", "System", "System.out", "result", "String[] args", "args" ]
import java.util.*; class Main { public static void main (String[] args) { Scanner sc = new Scanner (System.in); int n = sc.nextInt(); int moneyCount = 1; int money = 1000; while (money * moneyCount < n) { moneyCount++; } int result = money * moneyCount - n; System.out.println(result); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 2, 13, 17, 41, 13, 2, 17, 13, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 48, 5 ], [ 48, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 24, 26 ], [ 8, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 27, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 27, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 6, 45 ], [ 45, 46 ], [ 0, 47 ], [ 47, 48 ], [ 47, 49 ] ]
[ "import java.util.Scanner;\npublic class Main\n{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in); \n int a = sc.nextInt();\n int r = a % 1000;\n int s = 1000 - r;\n if(s == 1000)\n {\n System.out.println(\"0\");\n }\n else\n {\n System.out.println(s);\n }\n }\n} ", "import java.util.Scanner;", "Scanner", "java.util", "public class Main\n{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in); \n int a = sc.nextInt();\n int r = a % 1000;\n int s = 1000 - r;\n if(s == 1000)\n {\n System.out.println(\"0\");\n }\n else\n {\n System.out.println(s);\n }\n }\n}", "Main", "public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in); \n int a = sc.nextInt();\n int r = a % 1000;\n int s = 1000 - r;\n if(s == 1000)\n {\n System.out.println(\"0\");\n }\n else\n {\n System.out.println(s);\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in); \n int a = sc.nextInt();\n int r = a % 1000;\n int s = 1000 - r;\n if(s == 1000)\n {\n System.out.println(\"0\");\n }\n else\n {\n System.out.println(s);\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int r = a % 1000;", "r", "a % 1000", "a", "1000", "int s = 1000 - r;", "s", "1000 - r", "1000", "r", "if(s == 1000)\n {\n System.out.println(\"0\");\n }\n else\n {\n System.out.println(s);\n }", "s == 1000", "s", "1000", "{\n System.out.println(\"0\");\n }", "System.out.println(\"0\")", "System.out.println", "System.out", "System", "System.out", "\"0\"", "{\n System.out.println(s);\n }", "System.out.println(s)", "System.out.println", "System.out", "System", "System.out", "s", "String[] args", "args", "public class Main\n{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in); \n int a = sc.nextInt();\n int r = a % 1000;\n int s = 1000 - r;\n if(s == 1000)\n {\n System.out.println(\"0\");\n }\n else\n {\n System.out.println(s);\n }\n }\n}", "public class Main\n{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in); \n int a = sc.nextInt();\n int r = a % 1000;\n int s = 1000 - r;\n if(s == 1000)\n {\n System.out.println(\"0\");\n }\n else\n {\n System.out.println(s);\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int r = a % 1000; int s = 1000 - r; if(s == 1000) { System.out.println("0"); } else { System.out.println(s); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 42, 2, 13, 13, 30, 0, 13, 17, 4, 18, 18, 13, 13, 2, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 39, 5 ], [ 39, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 8, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 28, 33 ], [ 33, 34 ], [ 33, 35 ], [ 6, 36 ], [ 36, 37 ], [ 0, 38 ], [ 38, 39 ], [ 38, 40 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int sum = 0;\n while(sum < n){\n sum += 1000;\n }\n System.out.println(sum- n);\n\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int sum = 0;\n while(sum < n){\n sum += 1000;\n }\n System.out.println(sum- n);\n\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int sum = 0;\n while(sum < n){\n sum += 1000;\n }\n System.out.println(sum- n);\n\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int sum = 0;\n while(sum < n){\n sum += 1000;\n }\n System.out.println(sum- n);\n\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int sum = 0;", "sum", "0", "while(sum < n){\n sum += 1000;\n }", "sum < n", "sum", "n", "{\n sum += 1000;\n }", "sum += 1000", "sum", "1000", "System.out.println(sum- n)", "System.out.println", "System.out", "System", "System.out", "sum- n", "sum", "n", "String[] args", "args", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int sum = 0;\n while(sum < n){\n sum += 1000;\n }\n System.out.println(sum- n);\n\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int sum = 0;\n while(sum < n){\n sum += 1000;\n }\n System.out.println(sum- n);\n\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int sum = 0; while(sum < n){ sum += 1000; } System.out.println(sum- n); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 18, 13, 13, 2, 2, 2, 2, 13, 17, 17, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 34, 5 ], [ 34, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 17, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 24, 28 ], [ 23, 29 ], [ 22, 30 ], [ 6, 31 ], [ 31, 32 ], [ 0, 33 ], [ 33, 34 ], [ 33, 35 ] ]
[ "import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tSystem.out.println(((N+999)/1000)*1000-N);\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tSystem.out.println(((N+999)/1000)*1000-N);\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tSystem.out.println(((N+999)/1000)*1000-N);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tSystem.out.println(((N+999)/1000)*1000-N);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "System.out.println(((N+999)/1000)*1000-N)", "System.out.println", "System.out", "System", "System.out", "((N+999)/1000)*1000-N", "((N+999)/1000)*1000", "((N+999)/1000)", "(N+999)", "N", "999", "1000", "1000", "N", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tSystem.out.println(((N+999)/1000)*1000-N);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tSystem.out.println(((N+999)/1000)*1000-N);\n\t}\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); System.out.println(((N+999)/1000)*1000-N); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 29, 30, 41, 13, 41, 13, 17, 41, 13, 17, 41, 13, 20, 0, 13, 4, 18, 13, 0, 13, 2, 13, 17, 14, 2, 13, 17, 30, 0, 13, 2, 17, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 61, 11 ], [ 61, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 15, 20 ], [ 20, 21 ], [ 21, 22 ], [ 20, 23 ], [ 23, 24 ], [ 23, 25 ], [ 20, 26 ], [ 26, 27 ], [ 26, 28 ], [ 20, 29 ], [ 29, 30 ], [ 29, 31 ], [ 20, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 20, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 39, 41 ], [ 20, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 49, 51 ], [ 20, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 12, 58 ], [ 58, 59 ], [ 0, 60 ], [ 60, 61 ], [ 60, 62 ] ]
[ "import java.util.*;\nimport java.util.Scanner;\nimport java.lang.*;\n\npublic class Main\n{\n public static void main(String args[])\n {\n try\n {\n int n,rem=0,res=0;\n Scanner s=new Scanner(System.in);\n n=s.nextInt();\n rem=n%1000;\n if(rem!=0)\n {\n res=1000-rem;\n }\n System.out.println(res);\n }\n catch(Exception e)\n {\n return ;\n }\n }\n}\n \n \n ", "import java.util.*;", "util.*", "java", "import java.util.Scanner;", "Scanner", "java.util", "import java.lang.*;", "lang.*", "java", "public class Main\n{\n public static void main(String args[])\n {\n try\n {\n int n,rem=0,res=0;\n Scanner s=new Scanner(System.in);\n n=s.nextInt();\n rem=n%1000;\n if(rem!=0)\n {\n res=1000-rem;\n }\n System.out.println(res);\n }\n catch(Exception e)\n {\n return ;\n }\n }\n}", "Main", "public static void main(String args[])\n {\n try\n {\n int n,rem=0,res=0;\n Scanner s=new Scanner(System.in);\n n=s.nextInt();\n rem=n%1000;\n if(rem!=0)\n {\n res=1000-rem;\n }\n System.out.println(res);\n }\n catch(Exception e)\n {\n return ;\n }\n }", "main", "{\n try\n {\n int n,rem=0,res=0;\n Scanner s=new Scanner(System.in);\n n=s.nextInt();\n rem=n%1000;\n if(rem!=0)\n {\n res=1000-rem;\n }\n System.out.println(res);\n }\n catch(Exception e)\n {\n return ;\n }\n }", "try\n {\n int n,rem=0,res=0;\n Scanner s=new Scanner(System.in);\n n=s.nextInt();\n rem=n%1000;\n if(rem!=0)\n {\n res=1000-rem;\n }\n System.out.println(res);\n }\n catch(Exception e)\n {\n return ;\n }", "catch(Exception e)\n {\n return ;\n }", "Exception e", "{\n return ;\n }", "return ;", "{\n int n,rem=0,res=0;\n Scanner s=new Scanner(System.in);\n n=s.nextInt();\n rem=n%1000;\n if(rem!=0)\n {\n res=1000-rem;\n }\n System.out.println(res);\n }", "int n", "n", "rem=0", "rem", "0", "res=0;", "res", "0", "Scanner s=new Scanner(System.in);", "s", "new Scanner(System.in)", "n=s.nextInt()", "n", "s.nextInt()", "s.nextInt", "s", "rem=n%1000", "rem", "n%1000", "n", "1000", "if(rem!=0)\n {\n res=1000-rem;\n }", "rem!=0", "rem", "0", "{\n res=1000-rem;\n }", "res=1000-rem", "res", "1000-rem", "1000", "rem", "System.out.println(res)", "System.out.println", "System.out", "System", "System.out", "res", "String args[]", "args", "public class Main\n{\n public static void main(String args[])\n {\n try\n {\n int n,rem=0,res=0;\n Scanner s=new Scanner(System.in);\n n=s.nextInt();\n rem=n%1000;\n if(rem!=0)\n {\n res=1000-rem;\n }\n System.out.println(res);\n }\n catch(Exception e)\n {\n return ;\n }\n }\n}", "public class Main\n{\n public static void main(String args[])\n {\n try\n {\n int n,rem=0,res=0;\n Scanner s=new Scanner(System.in);\n n=s.nextInt();\n rem=n%1000;\n if(rem!=0)\n {\n res=1000-rem;\n }\n System.out.println(res);\n }\n catch(Exception e)\n {\n return ;\n }\n }\n}", "Main" ]
import java.util.*; import java.util.Scanner; import java.lang.*; public class Main { public static void main(String args[]) { try { int n,rem=0,res=0; Scanner s=new Scanner(System.in); n=s.nextInt(); rem=n%1000; if(rem!=0) { res=1000-rem; } System.out.println(res); } catch(Exception e) { return ; } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 4, 18, 18, 13, 13, 8, 2, 2, 13, 17, 17, 17, 2, 17, 2, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 40, 5 ], [ 40, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 14, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 20, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 25, 31 ], [ 25, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 34, 36 ], [ 6, 37 ], [ 37, 38 ], [ 0, 39 ], [ 39, 40 ], [ 39, 41 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\t//test\n\t\tScanner sc = new Scanner(System.in);\n int N = Integer.parseInt(sc.nextLine());\n\n\t\tSystem.out.println(((N % 1000) == 0) ? 0 : 1000 - (N % 1000));\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\t//test\n\t\tScanner sc = new Scanner(System.in);\n int N = Integer.parseInt(sc.nextLine());\n\n\t\tSystem.out.println(((N % 1000) == 0) ? 0 : 1000 - (N % 1000));\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t//test\n\t\tScanner sc = new Scanner(System.in);\n int N = Integer.parseInt(sc.nextLine());\n\n\t\tSystem.out.println(((N % 1000) == 0) ? 0 : 1000 - (N % 1000));\n\t}", "main", "{\n\t\t//test\n\t\tScanner sc = new Scanner(System.in);\n int N = Integer.parseInt(sc.nextLine());\n\n\t\tSystem.out.println(((N % 1000) == 0) ? 0 : 1000 - (N % 1000));\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N = Integer.parseInt(sc.nextLine());", "N", "Integer.parseInt(sc.nextLine())", "Integer.parseInt", "Integer", "sc.nextLine()", "sc.nextLine", "sc", "System.out.println(((N % 1000) == 0) ? 0 : 1000 - (N % 1000))", "System.out.println", "System.out", "System", "System.out", "((N % 1000) == 0) ? 0 : 1000 - (N % 1000)", "((N % 1000) == 0)", "(N % 1000)", "N", "1000", "0", "0", "1000 - (N % 1000)", "1000", "(N % 1000)", "N", "1000", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\t//test\n\t\tScanner sc = new Scanner(System.in);\n int N = Integer.parseInt(sc.nextLine());\n\n\t\tSystem.out.println(((N % 1000) == 0) ? 0 : 1000 - (N % 1000));\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\t//test\n\t\tScanner sc = new Scanner(System.in);\n int N = Integer.parseInt(sc.nextLine());\n\n\t\tSystem.out.println(((N % 1000) == 0) ? 0 : 1000 - (N % 1000));\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { //test Scanner sc = new Scanner(System.in); int N = Integer.parseInt(sc.nextLine()); System.out.println(((N % 1000) == 0) ? 0 : 1000 - (N % 1000)); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 42, 2, 13, 17, 30, 0, 13, 2, 13, 17, 14, 2, 13, 17, 30, 0, 13, 2, 40, 17, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 14, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 27, 29 ], [ 8, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 30, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 8, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 8, 47 ], [ 47, 48 ], [ 48, 49 ], [ 6, 50 ], [ 50, 51 ] ]
[ "import java.util.*;\n\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int num = Integer.valueOf(sc.nextInt());\n \n while(num > 0) {\n num = num - 1000;\n } \n if (num != 0) {\n num = (-1) * num;\n }\n\n System.out.println(num);\n sc.close();\n }\n}", "import java.util.*;", "util.*", "java", "class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int num = Integer.valueOf(sc.nextInt());\n \n while(num > 0) {\n num = num - 1000;\n } \n if (num != 0) {\n num = (-1) * num;\n }\n\n System.out.println(num);\n sc.close();\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int num = Integer.valueOf(sc.nextInt());\n \n while(num > 0) {\n num = num - 1000;\n } \n if (num != 0) {\n num = (-1) * num;\n }\n\n System.out.println(num);\n sc.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int num = Integer.valueOf(sc.nextInt());\n \n while(num > 0) {\n num = num - 1000;\n } \n if (num != 0) {\n num = (-1) * num;\n }\n\n System.out.println(num);\n sc.close();\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int num = Integer.valueOf(sc.nextInt());", "num", "Integer.valueOf(sc.nextInt())", "Integer.valueOf", "Integer", "sc.nextInt()", "sc.nextInt", "sc", "while(num > 0) {\n num = num - 1000;\n }", "num > 0", "num", "0", "{\n num = num - 1000;\n }", "num = num - 1000", "num", "num - 1000", "num", "1000", "if (num != 0) {\n num = (-1) * num;\n }", "num != 0", "num", "0", "{\n num = (-1) * num;\n }", "num = (-1) * num", "num", "(-1) * num", "(-1)", "1", "num", "System.out.println(num)", "System.out.println", "System.out", "System", "System.out", "num", "sc.close()", "sc.close", "sc", "String[] args", "args" ]
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = Integer.valueOf(sc.nextInt()); while(num > 0) { num = num - 1000; } if (num != 0) { num = (-1) * num; } System.out.println(num); sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 13, 2, 17, 13, 17, 30, 4, 18, 18, 13, 13, 2, 2, 13, 2, 17, 13, 40, 17, 3, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 56, 5 ], [ 56, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 17, 22 ], [ 22, 23 ], [ 22, 24 ], [ 17, 25 ], [ 25, 26 ], [ 26, 27 ], [ 17, 28 ], [ 29, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 34, 36 ], [ 31, 37 ], [ 30, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 47, 49 ], [ 44, 50 ], [ 50, 51 ], [ 38, 52 ], [ 6, 53 ], [ 53, 54 ], [ 0, 55 ], [ 55, 56 ], [ 55, 57 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n for(int i = 1; i <= 10; i++){\n if((n - 1000 * i) <= 0){\n System.out.println((n - 1000 * i) * -1);\n break;\n }\n }\n }\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n for(int i = 1; i <= 10; i++){\n if((n - 1000 * i) <= 0){\n System.out.println((n - 1000 * i) * -1);\n break;\n }\n }\n }\n\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n for(int i = 1; i <= 10; i++){\n if((n - 1000 * i) <= 0){\n System.out.println((n - 1000 * i) * -1);\n break;\n }\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n for(int i = 1; i <= 10; i++){\n if((n - 1000 * i) <= 0){\n System.out.println((n - 1000 * i) * -1);\n break;\n }\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "for(int i = 1; i <= 10; i++){\n if((n - 1000 * i) <= 0){\n System.out.println((n - 1000 * i) * -1);\n break;\n }\n }", "int i = 1;", "int i = 1;", "i", "1", "i <= 10", "i", "10", "i++", "i++", "i", "{\n if((n - 1000 * i) <= 0){\n System.out.println((n - 1000 * i) * -1);\n break;\n }\n }", "{\n if((n - 1000 * i) <= 0){\n System.out.println((n - 1000 * i) * -1);\n break;\n }\n }", "if((n - 1000 * i) <= 0){\n System.out.println((n - 1000 * i) * -1);\n break;\n }", "(n - 1000 * i) <= 0", "(n - 1000 * i)", "n", "1000 * i", "1000", "i", "0", "{\n System.out.println((n - 1000 * i) * -1);\n break;\n }", "System.out.println((n - 1000 * i) * -1)", "System.out.println", "System.out", "System", "System.out", "(n - 1000 * i) * -1", "(n - 1000 * i)", "n", "1000 * i", "1000", "i", "-1", "1", "break;", "String[] args", "args", "public class Main{\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n for(int i = 1; i <= 10; i++){\n if((n - 1000 * i) <= 0){\n System.out.println((n - 1000 * i) * -1);\n break;\n }\n }\n }\n\n}", "public class Main{\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n for(int i = 1; i <= 10; i++){\n if((n - 1000 * i) <= 0){\n System.out.println((n - 1000 * i) * -1);\n break;\n }\n }\n }\n\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); for(int i = 1; i <= 10; i++){ if((n - 1000 * i) <= 0){ System.out.println((n - 1000 * i) * -1); break; } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 8, 2, 2, 13, 17, 17, 2, 13, 17, 2, 2, 13, 17, 17, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 55, 11 ], [ 55, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 20, 23 ], [ 23, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 29, 33 ], [ 28, 34 ], [ 34, 35 ], [ 34, 36 ], [ 28, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 14, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 42, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 12, 52 ], [ 52, 53 ], [ 0, 54 ], [ 54, 55 ], [ 54, 56 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint bills = (n % 1000 == 0)?(n/1000):(n/1000)+1;\n\t\t\n\t\tSystem.out.println((bills * 1000) - n);\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint bills = (n % 1000 == 0)?(n/1000):(n/1000)+1;\n\t\t\n\t\tSystem.out.println((bills * 1000) - n);\n\t}\n\n}", "Main", "public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint bills = (n % 1000 == 0)?(n/1000):(n/1000)+1;\n\t\t\n\t\tSystem.out.println((bills * 1000) - n);\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint bills = (n % 1000 == 0)?(n/1000):(n/1000)+1;\n\t\t\n\t\tSystem.out.println((bills * 1000) - n);\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int n = Integer.parseInt(br.readLine());", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int bills = (n % 1000 == 0)?(n/1000):(n/1000)+1;", "bills", "(n % 1000 == 0)?(n/1000):(n/1000)+1", "(n % 1000 == 0)", "n % 1000", "n", "1000", "0", "(n/1000)", "n", "1000", "(n/1000)+1", "(n/1000)", "n", "1000", "1", "System.out.println((bills * 1000) - n)", "System.out.println", "System.out", "System", "System.out", "(bills * 1000) - n", "(bills * 1000)", "bills", "1000", "n", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint bills = (n % 1000 == 0)?(n/1000):(n/1000)+1;\n\t\t\n\t\tSystem.out.println((bills * 1000) - n);\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint bills = (n % 1000 == 0)?(n/1000):(n/1000)+1;\n\t\t\n\t\tSystem.out.println((bills * 1000) - n);\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); int bills = (n % 1000 == 0)?(n/1000):(n/1000)+1; System.out.println((bills * 1000) - n); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 2, 2, 13, 17, 17, 41, 13, 8, 2, 13, 13, 17, 2, 2, 13, 17, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 45, 5 ], [ 45, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 19, 23 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 26, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 31, 35 ], [ 8, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 6, 42 ], [ 42, 43 ], [ 0, 44 ], [ 44, 45 ], [ 44, 46 ] ]
[ "import java.util.*;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t Scanner sc = new Scanner(System.in);\n\t\t \n\t\t int n = sc.nextInt();\n\t\t int temp = n / 1000 * 1000;\n\t\t int result = temp == n ? 0 : temp + 1000 - n;\n\t\t System.out.println(result);\n\n\t}\n\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t Scanner sc = new Scanner(System.in);\n\t\t \n\t\t int n = sc.nextInt();\n\t\t int temp = n / 1000 * 1000;\n\t\t int result = temp == n ? 0 : temp + 1000 - n;\n\t\t System.out.println(result);\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t Scanner sc = new Scanner(System.in);\n\t\t \n\t\t int n = sc.nextInt();\n\t\t int temp = n / 1000 * 1000;\n\t\t int result = temp == n ? 0 : temp + 1000 - n;\n\t\t System.out.println(result);\n\n\t}", "main", "{\n\t\t Scanner sc = new Scanner(System.in);\n\t\t \n\t\t int n = sc.nextInt();\n\t\t int temp = n / 1000 * 1000;\n\t\t int result = temp == n ? 0 : temp + 1000 - n;\n\t\t System.out.println(result);\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int temp = n / 1000 * 1000;", "temp", "n / 1000 * 1000", "n / 1000", "n", "1000", "1000", "int result = temp == n ? 0 : temp + 1000 - n;", "result", "temp == n ? 0 : temp + 1000 - n", "temp == n", "temp", "n", "0", "temp + 1000 - n", "temp + 1000", "temp", "1000", "n", "System.out.println(result)", "System.out.println", "System.out", "System", "System.out", "result", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t Scanner sc = new Scanner(System.in);\n\t\t \n\t\t int n = sc.nextInt();\n\t\t int temp = n / 1000 * 1000;\n\t\t int result = temp == n ? 0 : temp + 1000 - n;\n\t\t System.out.println(result);\n\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t Scanner sc = new Scanner(System.in);\n\t\t \n\t\t int n = sc.nextInt();\n\t\t int temp = n / 1000 * 1000;\n\t\t int result = temp == n ? 0 : temp + 1000 - n;\n\t\t System.out.println(result);\n\n\t}\n\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int temp = n / 1000 * 1000; int result = temp == n ? 0 : temp + 1000 - n; System.out.println(result); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 18, 13, 13, 41, 13, 18, 13, 13, 41, 13, 20, 41, 13, 20, 41, 13, 20, 4, 18, 13, 17, 13, 13, 4, 18, 13, 23, 13, 6, 13, 12, 13, 30, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 2, 13, 17, 14, 2, 13, 17, 30, 4, 18, 13, 17, 30, 4, 18, 13, 2, 17, 13, 23, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 92, 17 ], [ 92, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 23, 25 ], [ 20, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 28, 30 ], [ 20, 31 ], [ 31, 32 ], [ 31, 33 ], [ 20, 34 ], [ 34, 35 ], [ 34, 36 ], [ 20, 37 ], [ 37, 38 ], [ 37, 39 ], [ 20, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 40, 44 ], [ 40, 45 ], [ 20, 46 ], [ 46, 47 ], [ 47, 48 ], [ 18, 49 ], [ 49, 50 ], [ 92, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 61, 62 ], [ 62, 63 ], [ 55, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 66, 68 ], [ 55, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 69, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 82, 83 ], [ 82, 84 ], [ 53, 85 ], [ 85, 86 ], [ 53, 87 ], [ 87, 88 ], [ 53, 89 ], [ 89, 90 ], [ 0, 91 ], [ 91, 92 ], [ 91, 93 ] ]
[ "import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.Scanner;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n A solver = new A();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class A {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n // 入力\n int n = Integer.parseInt(in.next());\n int ans = n % 1000;\n\n // 出力\n if (ans == 0) {\n out.println(0);\n } else {\n out.println(1000 - ans);\n }\n\n }\n\n }\n}\n", "import java.io.OutputStream;", "OutputStream", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n A solver = new A();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class A {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n // 入力\n int n = Integer.parseInt(in.next());\n int ans = n % 1000;\n\n // 出力\n if (ans == 0) {\n out.println(0);\n } else {\n out.println(1000 - ans);\n }\n\n }\n\n }\n}", "Main", "public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n A solver = new A();\n solver.solve(1, in, out);\n out.close();\n }", "main", "{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n A solver = new A();\n solver.solve(1, in, out);\n out.close();\n }", "InputStream inputStream = System.in;", "inputStream", "System.in", "System", "System.in", "OutputStream outputStream = System.out;", "outputStream", "System.out", "System", "System.out", "Scanner in = new Scanner(inputStream);", "in", "new Scanner(inputStream)", "PrintWriter out = new PrintWriter(outputStream);", "out", "new PrintWriter(outputStream)", "A solver = new A();", "solver", "new A()", "solver.solve(1, in, out)", "solver.solve", "solver", "1", "in", "out", "out.close()", "out.close", "out", "String[] args", "args", "static class A {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n // 入力\n int n = Integer.parseInt(in.next());\n int ans = n % 1000;\n\n // 出力\n if (ans == 0) {\n out.println(0);\n } else {\n out.println(1000 - ans);\n }\n\n }\n\n }", "A", "public void solve(int testNumber, Scanner in, PrintWriter out) {\n // 入力\n int n = Integer.parseInt(in.next());\n int ans = n % 1000;\n\n // 出力\n if (ans == 0) {\n out.println(0);\n } else {\n out.println(1000 - ans);\n }\n\n }", "solve", "{\n // 入力\n int n = Integer.parseInt(in.next());\n int ans = n % 1000;\n\n // 出力\n if (ans == 0) {\n out.println(0);\n } else {\n out.println(1000 - ans);\n }\n\n }", "int n = Integer.parseInt(in.next());", "n", "Integer.parseInt(in.next())", "Integer.parseInt", "Integer", "in.next()", "in.next", "in", "int ans = n % 1000;", "ans", "n % 1000", "n", "1000", "if (ans == 0) {\n out.println(0);\n } else {\n out.println(1000 - ans);\n }", "ans == 0", "ans", "0", "{\n out.println(0);\n }", "out.println(0)", "out.println", "out", "0", "{\n out.println(1000 - ans);\n }", "out.println(1000 - ans)", "out.println", "out", "1000 - ans", "1000", "ans", "int testNumber", "testNumber", "Scanner in", "in", "PrintWriter out", "out", "public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n A solver = new A();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class A {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n // 入力\n int n = Integer.parseInt(in.next());\n int ans = n % 1000;\n\n // 出力\n if (ans == 0) {\n out.println(0);\n } else {\n out.println(1000 - ans);\n }\n\n }\n\n }\n}", "public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n A solver = new A();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class A {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n // 入力\n int n = Integer.parseInt(in.next());\n int ans = n % 1000;\n\n // 出力\n if (ans == 0) {\n out.println(0);\n } else {\n out.println(1000 - ans);\n }\n\n }\n\n }\n}", "Main" ]
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Scanner; /** * Built using CHelper plug-in * Actual solution is at the top */ public class Main { public static void main(String[] args) { InputStream inputStream = System.in; OutputStream outputStream = System.out; Scanner in = new Scanner(inputStream); PrintWriter out = new PrintWriter(outputStream); A solver = new A(); solver.solve(1, in, out); out.close(); } static class A { public void solve(int testNumber, Scanner in, PrintWriter out) { // 入力 int n = Integer.parseInt(in.next()); int ans = n % 1000; // 出力 if (ans == 0) { out.println(0); } else { out.println(1000 - ans); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 2, 17, 13, 42, 2, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 39, 5 ], [ 39, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 22, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 8, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 6, 36 ], [ 36, 37 ], [ 0, 38 ], [ 38, 39 ], [ 38, 40 ] ]
[ "import java.util.*;\n \npublic class Main{\n\tpublic static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \t\tint N = sc.nextInt();\n \t\tint answer = 1000 - N;\n \t\twhile(answer < 0){\n \tanswer += 1000;\n }\n \t\tSystem.out.println(answer);\n }\n}", "import java.util.*;", "util.*", "java", "public class Main{\n\tpublic static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \t\tint N = sc.nextInt();\n \t\tint answer = 1000 - N;\n \t\twhile(answer < 0){\n \tanswer += 1000;\n }\n \t\tSystem.out.println(answer);\n }\n}", "Main", "public static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \t\tint N = sc.nextInt();\n \t\tint answer = 1000 - N;\n \t\twhile(answer < 0){\n \tanswer += 1000;\n }\n \t\tSystem.out.println(answer);\n }", "main", "{\n \tScanner sc = new Scanner(System.in);\n \t\tint N = sc.nextInt();\n \t\tint answer = 1000 - N;\n \t\twhile(answer < 0){\n \tanswer += 1000;\n }\n \t\tSystem.out.println(answer);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "int answer = 1000 - N;", "answer", "1000 - N", "1000", "N", "while(answer < 0){\n \tanswer += 1000;\n }", "answer < 0", "answer", "0", "{\n \tanswer += 1000;\n }", "answer += 1000", "answer", "1000", "System.out.println(answer)", "System.out.println", "System.out", "System", "System.out", "answer", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \t\tint N = sc.nextInt();\n \t\tint answer = 1000 - N;\n \t\twhile(answer < 0){\n \tanswer += 1000;\n }\n \t\tSystem.out.println(answer);\n }\n}", "public class Main{\n\tpublic static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \t\tint N = sc.nextInt();\n \t\tint answer = 1000 - N;\n \t\twhile(answer < 0){\n \tanswer += 1000;\n }\n \t\tSystem.out.println(answer);\n }\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int answer = 1000 - N; while(answer < 0){ answer += 1000; } System.out.println(answer); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 42, 2, 13, 13, 30, 0, 13, 17, 4, 18, 18, 13, 13, 2, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 39, 5 ], [ 39, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 8, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 28, 33 ], [ 33, 34 ], [ 33, 35 ], [ 6, 36 ], [ 36, 37 ], [ 0, 38 ], [ 38, 39 ], [ 38, 40 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n\n int N = in.nextInt();\n int i = 1000;\n \n\twhile(i<N){\n i += 1000;\n }\n \n System.out.println(i - N);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n\n int N = in.nextInt();\n int i = 1000;\n \n\twhile(i<N){\n i += 1000;\n }\n \n System.out.println(i - N);\n }\n}", "Main", "public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n\n int N = in.nextInt();\n int i = 1000;\n \n\twhile(i<N){\n i += 1000;\n }\n \n System.out.println(i - N);\n }", "main", "{\n Scanner in = new Scanner(System.in);\n\n int N = in.nextInt();\n int i = 1000;\n \n\twhile(i<N){\n i += 1000;\n }\n \n System.out.println(i - N);\n }", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "int N = in.nextInt();", "N", "in.nextInt()", "in.nextInt", "in", "int i = 1000;", "i", "1000", "while(i<N){\n i += 1000;\n }", "i<N", "i", "N", "{\n i += 1000;\n }", "i += 1000", "i", "1000", "System.out.println(i - N)", "System.out.println", "System.out", "System", "System.out", "i - N", "i", "N", "String[] args", "args", "public class Main {\n public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n\n int N = in.nextInt();\n int i = 1000;\n \n\twhile(i<N){\n i += 1000;\n }\n \n System.out.println(i - N);\n }\n}", "public class Main {\n public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n\n int N = in.nextInt();\n int i = 1000;\n \n\twhile(i<N){\n i += 1000;\n }\n \n System.out.println(i - N);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner in = new Scanner(System.in); int N = in.nextInt(); int i = 1000; while(i<N){ i += 1000; } System.out.println(i - N); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 20, 41, 13, 2, 17, 17, 41, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 4, 18, 13, 4, 18, 13, 2, 2, 17, 2, 13, 17, 17, 12, 13, 30, 41, 13, 17, 42, 2, 40, 13, 17, 30, 4, 13, 4, 18, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 29, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 18, 13, 13, 0, 13, 20, 2, 13, 17, 4, 13, 13, 17, 17, 2, 13, 17, 23, 13, 12, 13, 30, 14, 2, 13, 13, 30, 0, 18, 13, 13, 18, 13, 13, 29, 17, 41, 13, 2, 13, 2, 2, 13, 13, 17, 41, 13, 4, 18, 13, 4, 13, 13, 2, 13, 17, 13, 13, 4, 13, 13, 2, 2, 13, 17, 17, 2, 13, 17, 13, 14, 2, 2, 13, 17, 17, 30, 0, 18, 13, 13, 2, 18, 13, 2, 13, 17, 18, 13, 2, 2, 13, 17, 17, 30, 0, 18, 13, 13, 2, 18, 13, 2, 13, 17, 18, 13, 2, 2, 13, 17, 17, 29, 40, 13, 23, 13, 23, 13, 23, 13, 23, 13, 12, 13, 30, 14, 2, 13, 13, 30, 0, 18, 13, 13, 13, 29, 17, 41, 13, 2, 13, 2, 2, 13, 13, 17, 41, 13, 17, 14, 2, 13, 13, 30, 0, 13, 4, 13, 2, 2, 13, 17, 17, 2, 13, 17, 13, 13, 13, 30, 0, 13, 4, 13, 2, 13, 17, 13, 13, 13, 13, 14, 2, 2, 13, 17, 17, 30, 0, 18, 13, 13, 2, 18, 13, 2, 13, 17, 18, 13, 2, 2, 13, 17, 17, 30, 0, 18, 13, 13, 2, 18, 13, 2, 13, 17, 18, 13, 2, 2, 13, 17, 17, 29, 40, 13, 23, 13, 23, 13, 23, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 434, 8 ], [ 434, 9 ], [ 9, 10 ], [ 9, 11 ], [ 434, 12 ], [ 12, 13 ], [ 12, 14 ], [ 434, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 17, 19 ], [ 434, 20 ], [ 20, 21 ], [ 434, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 24, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 29, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 46, 47 ], [ 47, 48 ], [ 24, 49 ], [ 49, 50 ], [ 22, 51 ], [ 51, 52 ], [ 434, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 55, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 67, 69 ], [ 64, 70 ], [ 434, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 77, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 73, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 71, 95 ], [ 95, 96 ], [ 0, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 97, 101 ], [ 101, 102 ], [ 97, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 97, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 113, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 112, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 122, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 111, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 97, 137 ], [ 137, 138 ], [ 137, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 141, 144 ], [ 144, 145 ], [ 97, 146 ], [ 146, 147 ], [ 146, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 150, 153 ], [ 153, 154 ], [ 97, 155 ], [ 155, 156 ], [ 155, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 159, 162 ], [ 162, 163 ], [ 97, 164 ], [ 164, 165 ], [ 164, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 166, 170 ], [ 170, 171 ], [ 171, 172 ], [ 171, 173 ], [ 173, 174 ], [ 174, 175 ], [ 175, 176 ], [ 170, 177 ], [ 177, 178 ], [ 178, 179 ], [ 178, 180 ], [ 180, 181 ], [ 181, 182 ], [ 166, 183 ], [ 183, 184 ], [ 0, 185 ], [ 185, 186 ], [ 185, 187 ], [ 187, 188 ], [ 185, 189 ], [ 189, 190 ], [ 185, 191 ], [ 191, 192 ], [ 191, 193 ], [ 193, 194 ], [ 194, 195 ], [ 194, 196 ], [ 196, 197 ], [ 196, 198 ], [ 193, 199 ], [ 199, 200 ], [ 199, 201 ], [ 202, 203 ], [ 202, 204 ], [ 193, 205 ], [ 205, 206 ], [ 205, 207 ], [ 205, 208 ], [ 205, 209 ], [ 205, 210 ], [ 210, 211 ], [ 210, 212 ], [ 191, 213 ], [ 213, 214 ], [ 185, 215 ], [ 215, 216 ], [ 215, 217 ], [ 217, 218 ], [ 218, 219 ], [ 219, 220 ], [ 219, 221 ], [ 218, 222 ], [ 222, 223 ], [ 223, 224 ], [ 224, 225 ], [ 224, 226 ], [ 223, 227 ], [ 227, 228 ], [ 227, 229 ], [ 222, 230 ], [ 230, 231 ], [ 217, 232 ], [ 232, 233 ], [ 232, 234 ], [ 234, 235 ], [ 234, 236 ], [ 236, 237 ], [ 237, 238 ], [ 237, 239 ], [ 236, 240 ], [ 217, 241 ], [ 241, 242 ], [ 241, 243 ], [ 243, 244 ], [ 244, 245 ], [ 243, 246 ], [ 246, 247 ], [ 246, 248 ], [ 246, 249 ], [ 249, 250 ], [ 249, 251 ], [ 246, 252 ], [ 246, 253 ], [ 243, 254 ], [ 254, 255 ], [ 254, 256 ], [ 254, 257 ], [ 257, 258 ], [ 258, 259 ], [ 258, 260 ], [ 257, 261 ], [ 254, 262 ], [ 262, 263 ], [ 262, 264 ], [ 254, 265 ], [ 217, 266 ], [ 266, 267 ], [ 267, 268 ], [ 268, 269 ], [ 268, 270 ], [ 267, 271 ], [ 266, 272 ], [ 272, 273 ], [ 273, 274 ], [ 274, 275 ], [ 274, 276 ], [ 273, 277 ], [ 277, 278 ], [ 278, 279 ], [ 278, 280 ], [ 280, 281 ], [ 280, 282 ], [ 277, 283 ], [ 283, 284 ], [ 283, 285 ], [ 285, 286 ], [ 286, 287 ], [ 286, 288 ], [ 285, 289 ], [ 266, 290 ], [ 290, 291 ], [ 291, 292 ], [ 292, 293 ], [ 292, 294 ], [ 291, 295 ], [ 295, 296 ], [ 296, 297 ], [ 296, 298 ], [ 298, 299 ], [ 298, 300 ], [ 295, 301 ], [ 301, 302 ], [ 301, 303 ], [ 303, 304 ], [ 304, 305 ], [ 304, 306 ], [ 303, 307 ], [ 217, 308 ], [ 308, 309 ], [ 309, 310 ], [ 215, 311 ], [ 311, 312 ], [ 215, 313 ], [ 313, 314 ], [ 215, 315 ], [ 315, 316 ], [ 215, 317 ], [ 317, 318 ], [ 185, 319 ], [ 319, 320 ], [ 319, 321 ], [ 321, 322 ], [ 322, 323 ], [ 323, 324 ], [ 323, 325 ], [ 322, 326 ], [ 326, 327 ], [ 327, 328 ], [ 328, 329 ], [ 328, 330 ], [ 327, 331 ], [ 326, 332 ], [ 332, 333 ], [ 321, 334 ], [ 334, 335 ], [ 334, 336 ], [ 336, 337 ], [ 336, 338 ], [ 338, 339 ], [ 339, 340 ], [ 339, 341 ], [ 338, 342 ], [ 321, 343 ], [ 343, 344 ], [ 343, 345 ], [ 321, 346 ], [ 346, 347 ], [ 347, 348 ], [ 347, 349 ], [ 346, 350 ], [ 350, 351 ], [ 351, 352 ], [ 351, 353 ], [ 353, 354 ], [ 353, 355 ], [ 355, 356 ], [ 356, 357 ], [ 356, 358 ], [ 355, 359 ], [ 353, 360 ], [ 360, 361 ], [ 360, 362 ], [ 353, 363 ], [ 353, 364 ], [ 353, 365 ], [ 346, 366 ], [ 366, 367 ], [ 367, 368 ], [ 367, 369 ], [ 369, 370 ], [ 369, 371 ], [ 371, 372 ], [ 371, 373 ], [ 369, 374 ], [ 369, 375 ], [ 369, 376 ], [ 369, 377 ], [ 321, 378 ], [ 378, 379 ], [ 379, 380 ], [ 380, 381 ], [ 380, 382 ], [ 379, 383 ], [ 378, 384 ], [ 384, 385 ], [ 385, 386 ], [ 386, 387 ], [ 386, 388 ], [ 385, 389 ], [ 389, 390 ], [ 390, 391 ], [ 390, 392 ], [ 392, 393 ], [ 392, 394 ], [ 389, 395 ], [ 395, 396 ], [ 395, 397 ], [ 397, 398 ], [ 398, 399 ], [ 398, 400 ], [ 397, 401 ], [ 378, 402 ], [ 402, 403 ], [ 403, 404 ], [ 404, 405 ], [ 404, 406 ], [ 403, 407 ], [ 407, 408 ], [ 408, 409 ], [ 408, 410 ], [ 410, 411 ], [ 410, 412 ], [ 407, 413 ], [ 413, 414 ], [ 413, 415 ], [ 415, 416 ], [ 416, 417 ], [ 416, 418 ], [ 415, 419 ], [ 321, 420 ], [ 420, 421 ], [ 421, 422 ], [ 319, 423 ], [ 423, 424 ], [ 319, 425 ], [ 425, 426 ], [ 319, 427 ], [ 427, 428 ], [ 319, 429 ], [ 429, 430 ], [ 319, 431 ], [ 431, 432 ], [ 0, 433 ], [ 433, 434 ], [ 433, 435 ] ]
[ "import java.io.*;\nimport java.util.*;\n\n \npublic class Main { \n static StringBuilder out=new StringBuilder();\n static FastReader in=new FastReader();\n public static int[] getIntArray(int n){\n int arr[]=new int[n];\n for(int i=0;i<n;i++){\n arr[i]=in.nextInt();\n }\n return arr;\n }\n \n static int mod=(int)1e9 +7;\n static int [][]dp;\n \n \n public static void solve(){\n int n=in.nextInt();\n out.append((1000-(n%1000))%1000);\n }\n\n public static void main(String args[]){\n int t=1;\n while(t-->0){\n solve();\n out.append('\\n');\n }\n System.out.println(out);\n }\n}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \nclass FastReader {\n BufferedReader br;\n StringTokenizer st;\n \n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n \n long nextLong() {\n return Long.parseLong(next());\n }\n \n double nextDouble() {\n return Double.parseDouble(next());\n }\n \n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n}\n\nclass tree{\n int n, t[];\n public tree(int arr[]){\n n=arr.length;\n t=new int[n*4];\n build(arr, 1,0,n-1);\n }\n public int build(int arr[],int i,int l,int r){\n if(l==r){\n t[i]=arr[l];\n return 1;\n }\n int mid=l+(r-l)/2;\n int h=Math.min(build(arr,i*2,l,mid),build(arr,i*2+1,mid+1,r));\n if(h%2==0){\n t[i]=t[i*2] ^ t[i*2 +1 ];\n }else{\n t[i]=t[i*2] | t[i*2 + 1];\n }\n return ++h;\n }\n public int update(int i, int l,int r, int p,int b){\n if(l==r){\n t[i]=b;\n return 1;\n }\n int mid=l+(r-l)/2;\n int h=0;\n if(p>mid){\n h=update(i*2+1,mid+1,r,p,b);\n }else{\n h=update(i*2,l,mid,p,b);\n }\n if(h%2==0){\n t[i]=t[i*2] ^ t[i*2 +1 ];\n }else{\n t[i]=t[i*2] | t[i*2 + 1];\n }\n return ++h;\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "public class Main { \n static StringBuilder out=new StringBuilder();\n static FastReader in=new FastReader();\n public static int[] getIntArray(int n){\n int arr[]=new int[n];\n for(int i=0;i<n;i++){\n arr[i]=in.nextInt();\n }\n return arr;\n }\n \n static int mod=(int)1e9 +7;\n static int [][]dp;\n \n \n public static void solve(){\n int n=in.nextInt();\n out.append((1000-(n%1000))%1000);\n }\n\n public static void main(String args[]){\n int t=1;\n while(t-->0){\n solve();\n out.append('\\n');\n }\n System.out.println(out);\n }\n}", "Main", "static StringBuilder out=new StringBuilder();", "out", "new StringBuilder()", "static FastReader in=new FastReader();", "in", "new FastReader()", "static int mod=(int)1e9 +7;", "mod", "(int)1e9 +7", "(int)1e9", "7", "static int [][]dp;", "dp", "public static int[] getIntArray(int n){\n int arr[]=new int[n];\n for(int i=0;i<n;i++){\n arr[i]=in.nextInt();\n }\n return arr;\n }", "getIntArray", "{\n int arr[]=new int[n];\n for(int i=0;i<n;i++){\n arr[i]=in.nextInt();\n }\n return arr;\n }", "int arr[]=new int[n];", "arr", "new int[n]", "n", "for(int i=0;i<n;i++){\n arr[i]=in.nextInt();\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n arr[i]=in.nextInt();\n }", "{\n arr[i]=in.nextInt();\n }", "arr[i]=in.nextInt()", "arr[i]", "arr", "i", "in.nextInt()", "in.nextInt", "in", "return arr;", "arr", "int n", "n", "public static void solve(){\n int n=in.nextInt();\n out.append((1000-(n%1000))%1000);\n }", "solve", "{\n int n=in.nextInt();\n out.append((1000-(n%1000))%1000);\n }", "int n=in.nextInt();", "n", "in.nextInt()", "in.nextInt", "in", "out.append((1000-(n%1000))%1000)", "out.append", "out", "(1000-(n%1000))%1000", "(1000-(n%1000))", "1000", "(n%1000)", "n", "1000", "1000", "public static void main(String args[]){\n int t=1;\n while(t-->0){\n solve();\n out.append('\\n');\n }\n System.out.println(out);\n }", "main", "{\n int t=1;\n while(t-->0){\n solve();\n out.append('\\n');\n }\n System.out.println(out);\n }", "int t=1;", "t", "1", "while(t-->0){\n solve();\n out.append('\\n');\n }", "t-->0", "t--", "t", "0", "{\n solve();\n out.append('\\n');\n }", "solve()", "solve", "out.append('\\n')", "out.append", "out", "'\\n'", "System.out.println(out)", "System.out.println", "System.out", "System", "System.out", "out", "String args[]", "args", "class FastReader {\n BufferedReader br;\n StringTokenizer st;\n \n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n \n long nextLong() {\n return Long.parseLong(next());\n }\n \n double nextDouble() {\n return Double.parseDouble(next());\n }\n \n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n}", "FastReader", "BufferedReader br;", "br", "StringTokenizer st;", "st", "public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }", "FastReader", "{\n br = new BufferedReader(new InputStreamReader(System.in));\n }", "br = new BufferedReader(new InputStreamReader(System.in))", "br", "new BufferedReader(new InputStreamReader(System.in))", "String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }", "next", "{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }", "while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "st == null || !st.hasMoreElements()", "st == null", "st", "null", "!st.hasMoreElements()", "st.hasMoreElements()", "st.hasMoreElements", "st", "{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "int nextInt() {\n return Integer.parseInt(next());\n }", "nextInt", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "long nextLong() {\n return Long.parseLong(next());\n }", "nextLong", "{\n return Long.parseLong(next());\n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "double nextDouble() {\n return Double.parseDouble(next());\n }", "nextDouble", "{\n return Double.parseDouble(next());\n }", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }", "nextLine", "{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }", "String str = \"\";", "str", "\"\"", "try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n str = br.readLine();\n }", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "return str;", "str", "class tree{\n int n, t[];\n public tree(int arr[]){\n n=arr.length;\n t=new int[n*4];\n build(arr, 1,0,n-1);\n }\n public int build(int arr[],int i,int l,int r){\n if(l==r){\n t[i]=arr[l];\n return 1;\n }\n int mid=l+(r-l)/2;\n int h=Math.min(build(arr,i*2,l,mid),build(arr,i*2+1,mid+1,r));\n if(h%2==0){\n t[i]=t[i*2] ^ t[i*2 +1 ];\n }else{\n t[i]=t[i*2] | t[i*2 + 1];\n }\n return ++h;\n }\n public int update(int i, int l,int r, int p,int b){\n if(l==r){\n t[i]=b;\n return 1;\n }\n int mid=l+(r-l)/2;\n int h=0;\n if(p>mid){\n h=update(i*2+1,mid+1,r,p,b);\n }else{\n h=update(i*2,l,mid,p,b);\n }\n if(h%2==0){\n t[i]=t[i*2] ^ t[i*2 +1 ];\n }else{\n t[i]=t[i*2] | t[i*2 + 1];\n }\n return ++h;\n }\n}", "tree", "int n", "n", "t[];", "t", "public tree(int arr[]){\n n=arr.length;\n t=new int[n*4];\n build(arr, 1,0,n-1);\n }", "tree", "{\n n=arr.length;\n t=new int[n*4];\n build(arr, 1,0,n-1);\n }", "n=arr.length", "n", "arr.length", "arr", "arr.length", "t=new int[n*4]", "t", "new int[n*4]", "n*4", "n", "4", "build(arr, 1,0,n-1)", "build", "arr", "1", "0", "n-1", "n", "1", "int arr[]", "arr", "public int build(int arr[],int i,int l,int r){\n if(l==r){\n t[i]=arr[l];\n return 1;\n }\n int mid=l+(r-l)/2;\n int h=Math.min(build(arr,i*2,l,mid),build(arr,i*2+1,mid+1,r));\n if(h%2==0){\n t[i]=t[i*2] ^ t[i*2 +1 ];\n }else{\n t[i]=t[i*2] | t[i*2 + 1];\n }\n return ++h;\n }", "build", "{\n if(l==r){\n t[i]=arr[l];\n return 1;\n }\n int mid=l+(r-l)/2;\n int h=Math.min(build(arr,i*2,l,mid),build(arr,i*2+1,mid+1,r));\n if(h%2==0){\n t[i]=t[i*2] ^ t[i*2 +1 ];\n }else{\n t[i]=t[i*2] | t[i*2 + 1];\n }\n return ++h;\n }", "if(l==r){\n t[i]=arr[l];\n return 1;\n }", "l==r", "l", "r", "{\n t[i]=arr[l];\n return 1;\n }", "t[i]=arr[l]", "t[i]", "t", "i", "arr[l]", "arr", "l", "return 1;", "1", "int mid=l+(r-l)/2;", "mid", "l+(r-l)/2", "l", "(r-l)/2", "(r-l)", "r", "l", "2", "int h=Math.min(build(arr,i*2,l,mid),build(arr,i*2+1,mid+1,r));", "h", "Math.min(build(arr,i*2,l,mid),build(arr,i*2+1,mid+1,r))", "Math.min", "Math", "build(arr,i*2,l,mid)", "build", "arr", "i*2", "i", "2", "l", "mid", "build(arr,i*2+1,mid+1,r)", "build", "arr", "i*2+1", "i*2", "i", "2", "1", "mid+1", "mid", "1", "r", "if(h%2==0){\n t[i]=t[i*2] ^ t[i*2 +1 ];\n }else{\n t[i]=t[i*2] | t[i*2 + 1];\n }", "h%2==0", "h%2", "h", "2", "0", "{\n t[i]=t[i*2] ^ t[i*2 +1 ];\n }", "t[i]=t[i*2] ^ t[i*2 +1 ]", "t[i]", "t", "i", "t[i*2] ^ t[i*2 +1 ]", "t[i*2]", "t", "i*2", "i", "2", "t[i*2 +1 ]", "t", "i*2 +1", "i*2", "i", "2", "1", "{\n t[i]=t[i*2] | t[i*2 + 1];\n }", "t[i]=t[i*2] | t[i*2 + 1]", "t[i]", "t", "i", "t[i*2] | t[i*2 + 1]", "t[i*2]", "t", "i*2", "i", "2", "t[i*2 + 1]", "t", "i*2 + 1", "i*2", "i", "2", "1", "return ++h;", "++h", "h", "int arr[]", "arr", "int i", "i", "int l", "l", "int r", "r", "public int update(int i, int l,int r, int p,int b){\n if(l==r){\n t[i]=b;\n return 1;\n }\n int mid=l+(r-l)/2;\n int h=0;\n if(p>mid){\n h=update(i*2+1,mid+1,r,p,b);\n }else{\n h=update(i*2,l,mid,p,b);\n }\n if(h%2==0){\n t[i]=t[i*2] ^ t[i*2 +1 ];\n }else{\n t[i]=t[i*2] | t[i*2 + 1];\n }\n return ++h;\n }", "update", "{\n if(l==r){\n t[i]=b;\n return 1;\n }\n int mid=l+(r-l)/2;\n int h=0;\n if(p>mid){\n h=update(i*2+1,mid+1,r,p,b);\n }else{\n h=update(i*2,l,mid,p,b);\n }\n if(h%2==0){\n t[i]=t[i*2] ^ t[i*2 +1 ];\n }else{\n t[i]=t[i*2] | t[i*2 + 1];\n }\n return ++h;\n }", "if(l==r){\n t[i]=b;\n return 1;\n }", "l==r", "l", "r", "{\n t[i]=b;\n return 1;\n }", "t[i]=b", "t[i]", "t", "i", "b", "return 1;", "1", "int mid=l+(r-l)/2;", "mid", "l+(r-l)/2", "l", "(r-l)/2", "(r-l)", "r", "l", "2", "int h=0;", "h", "0", "if(p>mid){\n h=update(i*2+1,mid+1,r,p,b);\n }else{\n h=update(i*2,l,mid,p,b);\n }", "p>mid", "p", "mid", "{\n h=update(i*2+1,mid+1,r,p,b);\n }", "h=update(i*2+1,mid+1,r,p,b)", "h", "update(i*2+1,mid+1,r,p,b)", "update", "i*2+1", "i*2", "i", "2", "1", "mid+1", "mid", "1", "r", "p", "b", "{\n h=update(i*2,l,mid,p,b);\n }", "h=update(i*2,l,mid,p,b)", "h", "update(i*2,l,mid,p,b)", "update", "i*2", "i", "2", "l", "mid", "p", "b", "if(h%2==0){\n t[i]=t[i*2] ^ t[i*2 +1 ];\n }else{\n t[i]=t[i*2] | t[i*2 + 1];\n }", "h%2==0", "h%2", "h", "2", "0", "{\n t[i]=t[i*2] ^ t[i*2 +1 ];\n }", "t[i]=t[i*2] ^ t[i*2 +1 ]", "t[i]", "t", "i", "t[i*2] ^ t[i*2 +1 ]", "t[i*2]", "t", "i*2", "i", "2", "t[i*2 +1 ]", "t", "i*2 +1", "i*2", "i", "2", "1", "{\n t[i]=t[i*2] | t[i*2 + 1];\n }", "t[i]=t[i*2] | t[i*2 + 1]", "t[i]", "t", "i", "t[i*2] | t[i*2 + 1]", "t[i*2]", "t", "i*2", "i", "2", "t[i*2 + 1]", "t", "i*2 + 1", "i*2", "i", "2", "1", "return ++h;", "++h", "h", "int i", "i", "int l", "l", "int r", "r", "int p", "p", "int b", "b", "public class Main { \n static StringBuilder out=new StringBuilder();\n static FastReader in=new FastReader();\n public static int[] getIntArray(int n){\n int arr[]=new int[n];\n for(int i=0;i<n;i++){\n arr[i]=in.nextInt();\n }\n return arr;\n }\n \n static int mod=(int)1e9 +7;\n static int [][]dp;\n \n \n public static void solve(){\n int n=in.nextInt();\n out.append((1000-(n%1000))%1000);\n }\n\n public static void main(String args[]){\n int t=1;\n while(t-->0){\n solve();\n out.append('\\n');\n }\n System.out.println(out);\n }\n}", "public class Main { \n static StringBuilder out=new StringBuilder();\n static FastReader in=new FastReader();\n public static int[] getIntArray(int n){\n int arr[]=new int[n];\n for(int i=0;i<n;i++){\n arr[i]=in.nextInt();\n }\n return arr;\n }\n \n static int mod=(int)1e9 +7;\n static int [][]dp;\n \n \n public static void solve(){\n int n=in.nextInt();\n out.append((1000-(n%1000))%1000);\n }\n\n public static void main(String args[]){\n int t=1;\n while(t-->0){\n solve();\n out.append('\\n');\n }\n System.out.println(out);\n }\n}", "Main" ]
import java.io.*; import java.util.*; public class Main { static StringBuilder out=new StringBuilder(); static FastReader in=new FastReader(); public static int[] getIntArray(int n){ int arr[]=new int[n]; for(int i=0;i<n;i++){ arr[i]=in.nextInt(); } return arr; } static int mod=(int)1e9 +7; static int [][]dp; public static void solve(){ int n=in.nextInt(); out.append((1000-(n%1000))%1000); } public static void main(String args[]){ int t=1; while(t-->0){ solve(); out.append('\n'); } System.out.println(out); } } class FastReader { BufferedReader br; StringTokenizer st; public FastReader() { br = new BufferedReader(new InputStreamReader(System.in)); } String next() { while (st == null || !st.hasMoreElements()) { try { st = new StringTokenizer(br.readLine()); } catch (IOException e) { e.printStackTrace(); } } return st.nextToken(); } int nextInt() { return Integer.parseInt(next()); } long nextLong() { return Long.parseLong(next()); } double nextDouble() { return Double.parseDouble(next()); } String nextLine() { String str = ""; try { str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } return str; } } class tree{ int n, t[]; public tree(int arr[]){ n=arr.length; t=new int[n*4]; build(arr, 1,0,n-1); } public int build(int arr[],int i,int l,int r){ if(l==r){ t[i]=arr[l]; return 1; } int mid=l+(r-l)/2; int h=Math.min(build(arr,i*2,l,mid),build(arr,i*2+1,mid+1,r)); if(h%2==0){ t[i]=t[i*2] ^ t[i*2 +1 ]; }else{ t[i]=t[i*2] | t[i*2 + 1]; } return ++h; } public int update(int i, int l,int r, int p,int b){ if(l==r){ t[i]=b; return 1; } int mid=l+(r-l)/2; int h=0; if(p>mid){ h=update(i*2+1,mid+1,r,p,b); }else{ h=update(i*2,l,mid,p,b); } if(h%2==0){ t[i]=t[i*2] ^ t[i*2 +1 ]; }else{ t[i]=t[i*2] | t[i*2 + 1]; } return ++h; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 18, 13, 13, 8, 2, 2, 13, 17, 17, 17, 2, 17, 2, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 37, 5 ], [ 37, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 17, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 22, 28 ], [ 22, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 31, 33 ], [ 6, 34 ], [ 34, 35 ], [ 0, 36 ], [ 36, 37 ], [ 36, 38 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n \n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n final int N = sc.nextInt();\n \n System.out.println(N % 1000 == 0 ? 0 : 1000 - N % 1000);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n \n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n final int N = sc.nextInt();\n \n System.out.println(N % 1000 == 0 ? 0 : 1000 - N % 1000);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n final int N = sc.nextInt();\n \n System.out.println(N % 1000 == 0 ? 0 : 1000 - N % 1000);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n \n final int N = sc.nextInt();\n \n System.out.println(N % 1000 == 0 ? 0 : 1000 - N % 1000);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "final int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "System.out.println(N % 1000 == 0 ? 0 : 1000 - N % 1000)", "System.out.println", "System.out", "System", "System.out", "N % 1000 == 0 ? 0 : 1000 - N % 1000", "N % 1000 == 0", "N % 1000", "N", "1000", "0", "0", "1000 - N % 1000", "1000", "N % 1000", "N", "1000", "String[] args", "args", "public class Main {\n \n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n final int N = sc.nextInt();\n \n System.out.println(N % 1000 == 0 ? 0 : 1000 - N % 1000);\n }\n}", "public class Main {\n \n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n final int N = sc.nextInt();\n \n System.out.println(N % 1000 == 0 ? 0 : 1000 - N % 1000);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); final int N = sc.nextInt(); System.out.println(N % 1000 == 0 ? 0 : 1000 - N % 1000); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 14, 2, 2, 13, 17, 17, 30, 4, 18, 18, 13, 13, 2, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 49, 5 ], [ 49, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 10, 19 ], [ 19, 20 ], [ 19, 21 ], [ 10, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 36, 38 ], [ 22, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 6, 46 ], [ 46, 47 ], [ 0, 48 ], [ 48, 49 ], [ 48, 50 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[]args) {\n\t\ttry(Scanner scan = new Scanner(System.in)){\n\n\t\t\tint N = scan.nextInt();\n\n\t\t\tint oturi= 0;\n\n\n\t\t\tif(N%1000!=0) {\n\t\t\t\tSystem.out.println(1000-N%1000);\n\t\t\t}else {\n\t\t\t\tSystem.out.println(0);\n\t\t\t}\n\t\t\t\n\n\t\t\t\n\n\t\t}\n\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[]args) {\n\t\ttry(Scanner scan = new Scanner(System.in)){\n\n\t\t\tint N = scan.nextInt();\n\n\t\t\tint oturi= 0;\n\n\n\t\t\tif(N%1000!=0) {\n\t\t\t\tSystem.out.println(1000-N%1000);\n\t\t\t}else {\n\t\t\t\tSystem.out.println(0);\n\t\t\t}\n\t\t\t\n\n\t\t\t\n\n\t\t}\n\n\t}\n\n}", "Main", "public static void main(String[]args) {\n\t\ttry(Scanner scan = new Scanner(System.in)){\n\n\t\t\tint N = scan.nextInt();\n\n\t\t\tint oturi= 0;\n\n\n\t\t\tif(N%1000!=0) {\n\t\t\t\tSystem.out.println(1000-N%1000);\n\t\t\t}else {\n\t\t\t\tSystem.out.println(0);\n\t\t\t}\n\t\t\t\n\n\t\t\t\n\n\t\t}\n\n\t}", "main", "{\n\t\ttry(Scanner scan = new Scanner(System.in)){\n\n\t\t\tint N = scan.nextInt();\n\n\t\t\tint oturi= 0;\n\n\n\t\t\tif(N%1000!=0) {\n\t\t\t\tSystem.out.println(1000-N%1000);\n\t\t\t}else {\n\t\t\t\tSystem.out.println(0);\n\t\t\t}\n\t\t\t\n\n\t\t\t\n\n\t\t}\n\n\t}", "try(Scanner scan = new Scanner(System.in)){\n\n\t\t\tint N = scan.nextInt();\n\n\t\t\tint oturi= 0;\n\n\n\t\t\tif(N%1000!=0) {\n\t\t\t\tSystem.out.println(1000-N%1000);\n\t\t\t}else {\n\t\t\t\tSystem.out.println(0);\n\t\t\t}\n\t\t\t\n\n\t\t\t\n\n\t\t}", "{\n\n\t\t\tint N = scan.nextInt();\n\n\t\t\tint oturi= 0;\n\n\n\t\t\tif(N%1000!=0) {\n\t\t\t\tSystem.out.println(1000-N%1000);\n\t\t\t}else {\n\t\t\t\tSystem.out.println(0);\n\t\t\t}\n\t\t\t\n\n\t\t\t\n\n\t\t}", "Scanner scan = new Scanner(System.in)", "Scanner scan = new Scanner(System.in)", "new Scanner(System.in)", "int N = scan.nextInt();", "N", "scan.nextInt()", "scan.nextInt", "scan", "int oturi= 0;", "oturi", "0", "if(N%1000!=0) {\n\t\t\t\tSystem.out.println(1000-N%1000);\n\t\t\t}else {\n\t\t\t\tSystem.out.println(0);\n\t\t\t}", "N%1000!=0", "N%1000", "N", "1000", "0", "{\n\t\t\t\tSystem.out.println(1000-N%1000);\n\t\t\t}", "System.out.println(1000-N%1000)", "System.out.println", "System.out", "System", "System.out", "1000-N%1000", "1000", "N%1000", "N", "1000", "{\n\t\t\t\tSystem.out.println(0);\n\t\t\t}", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "String[]args", "args", "public class Main {\n\tpublic static void main(String[]args) {\n\t\ttry(Scanner scan = new Scanner(System.in)){\n\n\t\t\tint N = scan.nextInt();\n\n\t\t\tint oturi= 0;\n\n\n\t\t\tif(N%1000!=0) {\n\t\t\t\tSystem.out.println(1000-N%1000);\n\t\t\t}else {\n\t\t\t\tSystem.out.println(0);\n\t\t\t}\n\t\t\t\n\n\t\t\t\n\n\t\t}\n\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[]args) {\n\t\ttry(Scanner scan = new Scanner(System.in)){\n\n\t\t\tint N = scan.nextInt();\n\n\t\t\tint oturi= 0;\n\n\n\t\t\tif(N%1000!=0) {\n\t\t\t\tSystem.out.println(1000-N%1000);\n\t\t\t}else {\n\t\t\t\tSystem.out.println(0);\n\t\t\t}\n\t\t\t\n\n\t\t\t\n\n\t\t}\n\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[]args) { try(Scanner scan = new Scanner(System.in)){ int N = scan.nextInt(); int oturi= 0; if(N%1000!=0) { System.out.println(1000-N%1000); }else { System.out.println(0); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 12, 13, 30, 41, 13, 20, 0, 13, 20, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 17, 30, 4, 18, 13, 17, 30, 4, 18, 13, 2, 2, 2, 2, 13, 17, 17, 17, 13, 4, 18, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 29, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 143, 8 ], [ 143, 9 ], [ 9, 10 ], [ 143, 11 ], [ 11, 12 ], [ 11, 13 ], [ 13, 14 ], [ 14, 15 ], [ 14, 16 ], [ 13, 17 ], [ 17, 18 ], [ 17, 19 ], [ 13, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 13, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 25, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 25, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 41, 47 ], [ 40, 48 ], [ 13, 49 ], [ 49, 50 ], [ 50, 51 ], [ 11, 52 ], [ 52, 53 ], [ 143, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 54, 58 ], [ 58, 59 ], [ 54, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 54, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 69, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 79, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 68, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 54, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 98, 101 ], [ 101, 102 ], [ 54, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 107, 110 ], [ 110, 111 ], [ 54, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 116, 119 ], [ 119, 120 ], [ 54, 121 ], [ 121, 122 ], [ 121, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 123, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 127, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 137, 138 ], [ 138, 139 ], [ 123, 140 ], [ 140, 141 ], [ 0, 142 ], [ 142, 143 ], [ 142, 144 ] ]
[ "import java.io.*;\nimport java.util.*;\n\n\npublic class Main{\n public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n out = new PrintWriter(new BufferedOutputStream(System.out));\n\n // Start writing your solution here. -------------------------------------\n /*\n int n = sc.nextInt(); // read input as integer\n long k = sc.nextLong(); // read input as long\n double d = sc.nextDouble(); // read input as double\n String str = sc.next(); // read input as String\n String s = sc.nextLine(); // read whole line as String\n\n int result = 3*n;\n out.println(result); // print via PrintWriter\n */\n // Stop writing your solution here. -------------------------------------\n int n = sc.nextInt();\n if (n % 1000 == 0) {\n out.println(0);\n } else {\n out.println((((n / 1000) + 1) * 1000) - n);\n }\n out.close();\n }\n\n\n\n //-----------PrintWriter for faster output---------------------------------\n public static PrintWriter out;\n\n //-----------MyScanner class for faster input----------\n public static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine(){\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n }\n //--------------------------------------------------------\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "public class Main{\n public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n out = new PrintWriter(new BufferedOutputStream(System.out));\n\n // Start writing your solution here. -------------------------------------\n /*\n int n = sc.nextInt(); // read input as integer\n long k = sc.nextLong(); // read input as long\n double d = sc.nextDouble(); // read input as double\n String str = sc.next(); // read input as String\n String s = sc.nextLine(); // read whole line as String\n\n int result = 3*n;\n out.println(result); // print via PrintWriter\n */\n // Stop writing your solution here. -------------------------------------\n int n = sc.nextInt();\n if (n % 1000 == 0) {\n out.println(0);\n } else {\n out.println((((n / 1000) + 1) * 1000) - n);\n }\n out.close();\n }\n\n\n\n //-----------PrintWriter for faster output---------------------------------\n public static PrintWriter out;\n\n //-----------MyScanner class for faster input----------\n public static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine(){\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n }\n //--------------------------------------------------------\n}", "Main", "//-----------PrintWriter for faster output---------------------------------\n public static PrintWriter out;", "out", "public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n out = new PrintWriter(new BufferedOutputStream(System.out));\n\n // Start writing your solution here. -------------------------------------\n /*\n int n = sc.nextInt(); // read input as integer\n long k = sc.nextLong(); // read input as long\n double d = sc.nextDouble(); // read input as double\n String str = sc.next(); // read input as String\n String s = sc.nextLine(); // read whole line as String\n\n int result = 3*n;\n out.println(result); // print via PrintWriter\n */\n // Stop writing your solution here. -------------------------------------\n int n = sc.nextInt();\n if (n % 1000 == 0) {\n out.println(0);\n } else {\n out.println((((n / 1000) + 1) * 1000) - n);\n }\n out.close();\n }", "main", "{\n MyScanner sc = new MyScanner();\n out = new PrintWriter(new BufferedOutputStream(System.out));\n\n // Start writing your solution here. -------------------------------------\n /*\n int n = sc.nextInt(); // read input as integer\n long k = sc.nextLong(); // read input as long\n double d = sc.nextDouble(); // read input as double\n String str = sc.next(); // read input as String\n String s = sc.nextLine(); // read whole line as String\n\n int result = 3*n;\n out.println(result); // print via PrintWriter\n */\n // Stop writing your solution here. -------------------------------------\n int n = sc.nextInt();\n if (n % 1000 == 0) {\n out.println(0);\n } else {\n out.println((((n / 1000) + 1) * 1000) - n);\n }\n out.close();\n }", "MyScanner sc = new MyScanner();", "sc", "new MyScanner()", "out = new PrintWriter(new BufferedOutputStream(System.out))", "out", "new PrintWriter(new BufferedOutputStream(System.out))", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "if (n % 1000 == 0) {\n out.println(0);\n } else {\n out.println((((n / 1000) + 1) * 1000) - n);\n }", "n % 1000 == 0", "n % 1000", "n", "1000", "0", "{\n out.println(0);\n }", "out.println(0)", "out.println", "out", "0", "{\n out.println((((n / 1000) + 1) * 1000) - n);\n }", "out.println((((n / 1000) + 1) * 1000) - n)", "out.println", "out", "(((n / 1000) + 1) * 1000) - n", "(((n / 1000) + 1) * 1000)", "((n / 1000) + 1)", "(n / 1000)", "n", "1000", "1", "1000", "n", "out.close()", "out.close", "out", "String[] args", "args", "public static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine(){\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n }", "MyScanner", "BufferedReader br;", "br", "StringTokenizer st;", "st", "public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }", "MyScanner", "{\n br = new BufferedReader(new InputStreamReader(System.in));\n }", "br = new BufferedReader(new InputStreamReader(System.in))", "br", "new BufferedReader(new InputStreamReader(System.in))", "String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }", "next", "{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }", "while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "st == null || !st.hasMoreElements()", "st == null", "st", "null", "!st.hasMoreElements()", "st.hasMoreElements()", "st.hasMoreElements", "st", "{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "int nextInt() {\n return Integer.parseInt(next());\n }", "nextInt", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "long nextLong() {\n return Long.parseLong(next());\n }", "nextLong", "{\n return Long.parseLong(next());\n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "double nextDouble() {\n return Double.parseDouble(next());\n }", "nextDouble", "{\n return Double.parseDouble(next());\n }", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "String nextLine(){\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }", "nextLine", "{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }", "String str = \"\";", "str", "\"\"", "try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n str = br.readLine();\n }", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "return str;", "str", "public class Main{\n public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n out = new PrintWriter(new BufferedOutputStream(System.out));\n\n // Start writing your solution here. -------------------------------------\n /*\n int n = sc.nextInt(); // read input as integer\n long k = sc.nextLong(); // read input as long\n double d = sc.nextDouble(); // read input as double\n String str = sc.next(); // read input as String\n String s = sc.nextLine(); // read whole line as String\n\n int result = 3*n;\n out.println(result); // print via PrintWriter\n */\n // Stop writing your solution here. -------------------------------------\n int n = sc.nextInt();\n if (n % 1000 == 0) {\n out.println(0);\n } else {\n out.println((((n / 1000) + 1) * 1000) - n);\n }\n out.close();\n }\n\n\n\n //-----------PrintWriter for faster output---------------------------------\n public static PrintWriter out;\n\n //-----------MyScanner class for faster input----------\n public static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine(){\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n }\n //--------------------------------------------------------\n}", "public class Main{\n public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n out = new PrintWriter(new BufferedOutputStream(System.out));\n\n // Start writing your solution here. -------------------------------------\n /*\n int n = sc.nextInt(); // read input as integer\n long k = sc.nextLong(); // read input as long\n double d = sc.nextDouble(); // read input as double\n String str = sc.next(); // read input as String\n String s = sc.nextLine(); // read whole line as String\n\n int result = 3*n;\n out.println(result); // print via PrintWriter\n */\n // Stop writing your solution here. -------------------------------------\n int n = sc.nextInt();\n if (n % 1000 == 0) {\n out.println(0);\n } else {\n out.println((((n / 1000) + 1) * 1000) - n);\n }\n out.close();\n }\n\n\n\n //-----------PrintWriter for faster output---------------------------------\n public static PrintWriter out;\n\n //-----------MyScanner class for faster input----------\n public static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine(){\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n }\n //--------------------------------------------------------\n}", "Main" ]
import java.io.*; import java.util.*; public class Main{ public static void main(String[] args) { MyScanner sc = new MyScanner(); out = new PrintWriter(new BufferedOutputStream(System.out)); // Start writing your solution here. ------------------------------------- /* int n = sc.nextInt(); // read input as integer long k = sc.nextLong(); // read input as long double d = sc.nextDouble(); // read input as double String str = sc.next(); // read input as String String s = sc.nextLine(); // read whole line as String int result = 3*n; out.println(result); // print via PrintWriter */ // Stop writing your solution here. ------------------------------------- int n = sc.nextInt(); if (n % 1000 == 0) { out.println(0); } else { out.println((((n / 1000) + 1) * 1000) - n); } out.close(); } //-----------PrintWriter for faster output--------------------------------- public static PrintWriter out; //-----------MyScanner class for faster input---------- public static class MyScanner { BufferedReader br; StringTokenizer st; public MyScanner() { br = new BufferedReader(new InputStreamReader(System.in)); } String next() { while (st == null || !st.hasMoreElements()) { try { st = new StringTokenizer(br.readLine()); } catch (IOException e) { e.printStackTrace(); } } return st.nextToken(); } int nextInt() { return Integer.parseInt(next()); } long nextLong() { return Long.parseLong(next()); } double nextDouble() { return Double.parseDouble(next()); } String nextLine(){ String str = ""; try { str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } return str; } } //-------------------------------------------------------- }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 2, 13, 17, 14, 2, 13, 17, 30, 0, 13, 2, 17, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 41, 5 ], [ 41, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 22, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 29, 31 ], [ 8, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 6, 38 ], [ 38, 39 ], [ 0, 40 ], [ 40, 41 ], [ 40, 42 ] ]
[ "import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n\t\tint a = sc.nextInt();\n \n\t\tint ans = a % 1000;\n \n \n if (ans != 0) {\n \tans = 1000 - ans;\n }\n\t\t\n\t\t// 出力\n\t\tSystem.out.println(ans);\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n\t\tint a = sc.nextInt();\n \n\t\tint ans = a % 1000;\n \n \n if (ans != 0) {\n \tans = 1000 - ans;\n }\n\t\t\n\t\t// 出力\n\t\tSystem.out.println(ans);\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n\t\tint a = sc.nextInt();\n \n\t\tint ans = a % 1000;\n \n \n if (ans != 0) {\n \tans = 1000 - ans;\n }\n\t\t\n\t\t// 出力\n\t\tSystem.out.println(ans);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n\t\tint a = sc.nextInt();\n \n\t\tint ans = a % 1000;\n \n \n if (ans != 0) {\n \tans = 1000 - ans;\n }\n\t\t\n\t\t// 出力\n\t\tSystem.out.println(ans);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int ans = a % 1000;", "ans", "a % 1000", "a", "1000", "if (ans != 0) {\n \tans = 1000 - ans;\n }", "ans != 0", "ans", "0", "{\n \tans = 1000 - ans;\n }", "ans = 1000 - ans", "ans", "1000 - ans", "1000", "ans", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n\t\tint a = sc.nextInt();\n \n\t\tint ans = a % 1000;\n \n \n if (ans != 0) {\n \tans = 1000 - ans;\n }\n\t\t\n\t\t// 出力\n\t\tSystem.out.println(ans);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n\t\tint a = sc.nextInt();\n \n\t\tint ans = a % 1000;\n \n \n if (ans != 0) {\n \tans = 1000 - ans;\n }\n\t\t\n\t\t// 出力\n\t\tSystem.out.println(ans);\n\t}\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int a = sc.nextInt(); int ans = a % 1000; if (ans != 0) { ans = 1000 - ans; } // 出力 System.out.println(ans); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 0, 13, 17, 14, 4, 18, 13, 17, 30, 0, 13, 17, 14, 4, 18, 13, 17, 30, 0, 13, 17, 14, 4, 18, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 2, 17, 13, 4, 18, 18, 13, 13, 2, 17, 13, 4, 18, 18, 13, 13, 2, 17, 13, 4, 18, 18, 13, 13, 2, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 118, 5 ], [ 118, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 8, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 29, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 41, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 47, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 41, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 56, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 41, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 65, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 41, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 74, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 8, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 88, 89 ], [ 88, 90 ], [ 8, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 91, 96 ], [ 96, 97 ], [ 96, 98 ], [ 8, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 99, 104 ], [ 104, 105 ], [ 104, 106 ], [ 8, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 107, 112 ], [ 112, 113 ], [ 112, 114 ], [ 6, 115 ], [ 115, 116 ], [ 0, 117 ], [ 117, 118 ], [ 117, 119 ] ]
[ "import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int a1 = 0;\n int a2 = 0;\n int a3 = 0;\n int a4 = 0;\n for (int i=0;i<n;i++){\n String g = scan.next();\n if (g.equals(\"AC\")){\n a1 += 1;\n }\n\n if (g.equals(\"WA\")){\n a2 += 1;\n }\n\n if (g.equals(\"TLE\")){\n a3 += 1;\n }\n\n if (g.equals(\"RE\")){\n a4 += 1;\n }\n }\n\n System.out.println(\"AC x \"+a1);\n System.out.println(\"WA x \"+a2);\n System.out.println(\"TLE x \"+a3);\n System.out.println(\"RE x \"+a4);\n }\n}", "import java.util.*;", "util.*", "java", "public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int a1 = 0;\n int a2 = 0;\n int a3 = 0;\n int a4 = 0;\n for (int i=0;i<n;i++){\n String g = scan.next();\n if (g.equals(\"AC\")){\n a1 += 1;\n }\n\n if (g.equals(\"WA\")){\n a2 += 1;\n }\n\n if (g.equals(\"TLE\")){\n a3 += 1;\n }\n\n if (g.equals(\"RE\")){\n a4 += 1;\n }\n }\n\n System.out.println(\"AC x \"+a1);\n System.out.println(\"WA x \"+a2);\n System.out.println(\"TLE x \"+a3);\n System.out.println(\"RE x \"+a4);\n }\n}", "Main", "public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int a1 = 0;\n int a2 = 0;\n int a3 = 0;\n int a4 = 0;\n for (int i=0;i<n;i++){\n String g = scan.next();\n if (g.equals(\"AC\")){\n a1 += 1;\n }\n\n if (g.equals(\"WA\")){\n a2 += 1;\n }\n\n if (g.equals(\"TLE\")){\n a3 += 1;\n }\n\n if (g.equals(\"RE\")){\n a4 += 1;\n }\n }\n\n System.out.println(\"AC x \"+a1);\n System.out.println(\"WA x \"+a2);\n System.out.println(\"TLE x \"+a3);\n System.out.println(\"RE x \"+a4);\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int a1 = 0;\n int a2 = 0;\n int a3 = 0;\n int a4 = 0;\n for (int i=0;i<n;i++){\n String g = scan.next();\n if (g.equals(\"AC\")){\n a1 += 1;\n }\n\n if (g.equals(\"WA\")){\n a2 += 1;\n }\n\n if (g.equals(\"TLE\")){\n a3 += 1;\n }\n\n if (g.equals(\"RE\")){\n a4 += 1;\n }\n }\n\n System.out.println(\"AC x \"+a1);\n System.out.println(\"WA x \"+a2);\n System.out.println(\"TLE x \"+a3);\n System.out.println(\"RE x \"+a4);\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "int a1 = 0;", "a1", "0", "int a2 = 0;", "a2", "0", "int a3 = 0;", "a3", "0", "int a4 = 0;", "a4", "0", "for (int i=0;i<n;i++){\n String g = scan.next();\n if (g.equals(\"AC\")){\n a1 += 1;\n }\n\n if (g.equals(\"WA\")){\n a2 += 1;\n }\n\n if (g.equals(\"TLE\")){\n a3 += 1;\n }\n\n if (g.equals(\"RE\")){\n a4 += 1;\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n String g = scan.next();\n if (g.equals(\"AC\")){\n a1 += 1;\n }\n\n if (g.equals(\"WA\")){\n a2 += 1;\n }\n\n if (g.equals(\"TLE\")){\n a3 += 1;\n }\n\n if (g.equals(\"RE\")){\n a4 += 1;\n }\n }", "{\n String g = scan.next();\n if (g.equals(\"AC\")){\n a1 += 1;\n }\n\n if (g.equals(\"WA\")){\n a2 += 1;\n }\n\n if (g.equals(\"TLE\")){\n a3 += 1;\n }\n\n if (g.equals(\"RE\")){\n a4 += 1;\n }\n }", "String g = scan.next();", "g", "scan.next()", "scan.next", "scan", "if (g.equals(\"AC\")){\n a1 += 1;\n }", "g.equals(\"AC\")", "g.equals", "g", "\"AC\"", "{\n a1 += 1;\n }", "a1 += 1", "a1", "1", "if (g.equals(\"WA\")){\n a2 += 1;\n }", "g.equals(\"WA\")", "g.equals", "g", "\"WA\"", "{\n a2 += 1;\n }", "a2 += 1", "a2", "1", "if (g.equals(\"TLE\")){\n a3 += 1;\n }", "g.equals(\"TLE\")", "g.equals", "g", "\"TLE\"", "{\n a3 += 1;\n }", "a3 += 1", "a3", "1", "if (g.equals(\"RE\")){\n a4 += 1;\n }", "g.equals(\"RE\")", "g.equals", "g", "\"RE\"", "{\n a4 += 1;\n }", "a4 += 1", "a4", "1", "System.out.println(\"AC x \"+a1)", "System.out.println", "System.out", "System", "System.out", "\"AC x \"+a1", "\"AC x \"", "a1", "System.out.println(\"WA x \"+a2)", "System.out.println", "System.out", "System", "System.out", "\"WA x \"+a2", "\"WA x \"", "a2", "System.out.println(\"TLE x \"+a3)", "System.out.println", "System.out", "System", "System.out", "\"TLE x \"+a3", "\"TLE x \"", "a3", "System.out.println(\"RE x \"+a4)", "System.out.println", "System.out", "System", "System.out", "\"RE x \"+a4", "\"RE x \"", "a4", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int a1 = 0;\n int a2 = 0;\n int a3 = 0;\n int a4 = 0;\n for (int i=0;i<n;i++){\n String g = scan.next();\n if (g.equals(\"AC\")){\n a1 += 1;\n }\n\n if (g.equals(\"WA\")){\n a2 += 1;\n }\n\n if (g.equals(\"TLE\")){\n a3 += 1;\n }\n\n if (g.equals(\"RE\")){\n a4 += 1;\n }\n }\n\n System.out.println(\"AC x \"+a1);\n System.out.println(\"WA x \"+a2);\n System.out.println(\"TLE x \"+a3);\n System.out.println(\"RE x \"+a4);\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int a1 = 0;\n int a2 = 0;\n int a3 = 0;\n int a4 = 0;\n for (int i=0;i<n;i++){\n String g = scan.next();\n if (g.equals(\"AC\")){\n a1 += 1;\n }\n\n if (g.equals(\"WA\")){\n a2 += 1;\n }\n\n if (g.equals(\"TLE\")){\n a3 += 1;\n }\n\n if (g.equals(\"RE\")){\n a4 += 1;\n }\n }\n\n System.out.println(\"AC x \"+a1);\n System.out.println(\"WA x \"+a2);\n System.out.println(\"TLE x \"+a3);\n System.out.println(\"RE x \"+a4);\n }\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int a1 = 0; int a2 = 0; int a3 = 0; int a4 = 0; for (int i=0;i<n;i++){ String g = scan.next(); if (g.equals("AC")){ a1 += 1; } if (g.equals("WA")){ a2 += 1; } if (g.equals("TLE")){ a3 += 1; } if (g.equals("RE")){ a4 += 1; } } System.out.println("AC x "+a1); System.out.println("WA x "+a2); System.out.println("TLE x "+a3); System.out.println("RE x "+a4); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 0, 13, 17, 14, 4, 18, 13, 17, 30, 0, 13, 17, 14, 4, 18, 13, 17, 30, 0, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 2, 17, 13, 4, 18, 18, 13, 13, 2, 17, 13, 4, 18, 18, 13, 13, 2, 17, 13, 4, 18, 18, 13, 13, 2, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 113, 5 ], [ 113, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 8, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 29, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 41, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 47, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 47, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 56, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 56, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 65, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 65, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 8, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 78, 83 ], [ 83, 84 ], [ 83, 85 ], [ 8, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 91, 92 ], [ 91, 93 ], [ 8, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 99, 100 ], [ 99, 101 ], [ 8, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 102, 107 ], [ 107, 108 ], [ 107, 109 ], [ 6, 110 ], [ 110, 111 ], [ 0, 112 ], [ 112, 113 ], [ 112, 114 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] var0) {\n Scanner scanner = new Scanner(System.in);\n\n int N = scanner.nextInt();\n int AC = 0;\n int WA = 0;\n int TLE = 0;\n int RE = 0;\n\n for (int i = 0; i < N; i++) {\n String C = scanner.next();\n if (C.equals(\"AC\")) {\n AC += 1;\n } else if(C.equals(\"WA\")) {\n WA += 1;\n } else if(C.equals(\"TLE\")) {\n TLE += 1;\n } else {\n RE += 1;\n }\n }\n\n System.out.println(\"AC x \" + AC);\n System.out.println(\"WA x \" + WA);\n System.out.println(\"TLE x \" + TLE);\n System.out.println(\"RE x \" + RE);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] var0) {\n Scanner scanner = new Scanner(System.in);\n\n int N = scanner.nextInt();\n int AC = 0;\n int WA = 0;\n int TLE = 0;\n int RE = 0;\n\n for (int i = 0; i < N; i++) {\n String C = scanner.next();\n if (C.equals(\"AC\")) {\n AC += 1;\n } else if(C.equals(\"WA\")) {\n WA += 1;\n } else if(C.equals(\"TLE\")) {\n TLE += 1;\n } else {\n RE += 1;\n }\n }\n\n System.out.println(\"AC x \" + AC);\n System.out.println(\"WA x \" + WA);\n System.out.println(\"TLE x \" + TLE);\n System.out.println(\"RE x \" + RE);\n }\n}", "Main", "public static void main(String[] var0) {\n Scanner scanner = new Scanner(System.in);\n\n int N = scanner.nextInt();\n int AC = 0;\n int WA = 0;\n int TLE = 0;\n int RE = 0;\n\n for (int i = 0; i < N; i++) {\n String C = scanner.next();\n if (C.equals(\"AC\")) {\n AC += 1;\n } else if(C.equals(\"WA\")) {\n WA += 1;\n } else if(C.equals(\"TLE\")) {\n TLE += 1;\n } else {\n RE += 1;\n }\n }\n\n System.out.println(\"AC x \" + AC);\n System.out.println(\"WA x \" + WA);\n System.out.println(\"TLE x \" + TLE);\n System.out.println(\"RE x \" + RE);\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n\n int N = scanner.nextInt();\n int AC = 0;\n int WA = 0;\n int TLE = 0;\n int RE = 0;\n\n for (int i = 0; i < N; i++) {\n String C = scanner.next();\n if (C.equals(\"AC\")) {\n AC += 1;\n } else if(C.equals(\"WA\")) {\n WA += 1;\n } else if(C.equals(\"TLE\")) {\n TLE += 1;\n } else {\n RE += 1;\n }\n }\n\n System.out.println(\"AC x \" + AC);\n System.out.println(\"WA x \" + WA);\n System.out.println(\"TLE x \" + TLE);\n System.out.println(\"RE x \" + RE);\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int N = scanner.nextInt();", "N", "scanner.nextInt()", "scanner.nextInt", "scanner", "int AC = 0;", "AC", "0", "int WA = 0;", "WA", "0", "int TLE = 0;", "TLE", "0", "int RE = 0;", "RE", "0", "for (int i = 0; i < N; i++) {\n String C = scanner.next();\n if (C.equals(\"AC\")) {\n AC += 1;\n } else if(C.equals(\"WA\")) {\n WA += 1;\n } else if(C.equals(\"TLE\")) {\n TLE += 1;\n } else {\n RE += 1;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n String C = scanner.next();\n if (C.equals(\"AC\")) {\n AC += 1;\n } else if(C.equals(\"WA\")) {\n WA += 1;\n } else if(C.equals(\"TLE\")) {\n TLE += 1;\n } else {\n RE += 1;\n }\n }", "{\n String C = scanner.next();\n if (C.equals(\"AC\")) {\n AC += 1;\n } else if(C.equals(\"WA\")) {\n WA += 1;\n } else if(C.equals(\"TLE\")) {\n TLE += 1;\n } else {\n RE += 1;\n }\n }", "String C = scanner.next();", "C", "scanner.next()", "scanner.next", "scanner", "if (C.equals(\"AC\")) {\n AC += 1;\n } else if(C.equals(\"WA\")) {\n WA += 1;\n } else if(C.equals(\"TLE\")) {\n TLE += 1;\n } else {\n RE += 1;\n }", "C.equals(\"AC\")", "C.equals", "C", "\"AC\"", "{\n AC += 1;\n }", "AC += 1", "AC", "1", "if(C.equals(\"WA\")) {\n WA += 1;\n } else if(C.equals(\"TLE\")) {\n TLE += 1;\n } else {\n RE += 1;\n }", "C.equals(\"WA\")", "C.equals", "C", "\"WA\"", "{\n WA += 1;\n }", "WA += 1", "WA", "1", "if(C.equals(\"TLE\")) {\n TLE += 1;\n } else {\n RE += 1;\n }", "C.equals(\"TLE\")", "C.equals", "C", "\"TLE\"", "{\n TLE += 1;\n }", "TLE += 1", "TLE", "1", "{\n RE += 1;\n }", "RE += 1", "RE", "1", "System.out.println(\"AC x \" + AC)", "System.out.println", "System.out", "System", "System.out", "\"AC x \" + AC", "\"AC x \"", "AC", "System.out.println(\"WA x \" + WA)", "System.out.println", "System.out", "System", "System.out", "\"WA x \" + WA", "\"WA x \"", "WA", "System.out.println(\"TLE x \" + TLE)", "System.out.println", "System.out", "System", "System.out", "\"TLE x \" + TLE", "\"TLE x \"", "TLE", "System.out.println(\"RE x \" + RE)", "System.out.println", "System.out", "System", "System.out", "\"RE x \" + RE", "\"RE x \"", "RE", "String[] var0", "var0", "public class Main {\n public static void main(String[] var0) {\n Scanner scanner = new Scanner(System.in);\n\n int N = scanner.nextInt();\n int AC = 0;\n int WA = 0;\n int TLE = 0;\n int RE = 0;\n\n for (int i = 0; i < N; i++) {\n String C = scanner.next();\n if (C.equals(\"AC\")) {\n AC += 1;\n } else if(C.equals(\"WA\")) {\n WA += 1;\n } else if(C.equals(\"TLE\")) {\n TLE += 1;\n } else {\n RE += 1;\n }\n }\n\n System.out.println(\"AC x \" + AC);\n System.out.println(\"WA x \" + WA);\n System.out.println(\"TLE x \" + TLE);\n System.out.println(\"RE x \" + RE);\n }\n}", "public class Main {\n public static void main(String[] var0) {\n Scanner scanner = new Scanner(System.in);\n\n int N = scanner.nextInt();\n int AC = 0;\n int WA = 0;\n int TLE = 0;\n int RE = 0;\n\n for (int i = 0; i < N; i++) {\n String C = scanner.next();\n if (C.equals(\"AC\")) {\n AC += 1;\n } else if(C.equals(\"WA\")) {\n WA += 1;\n } else if(C.equals(\"TLE\")) {\n TLE += 1;\n } else {\n RE += 1;\n }\n }\n\n System.out.println(\"AC x \" + AC);\n System.out.println(\"WA x \" + WA);\n System.out.println(\"TLE x \" + TLE);\n System.out.println(\"RE x \" + RE);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] var0) { Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); int AC = 0; int WA = 0; int TLE = 0; int RE = 0; for (int i = 0; i < N; i++) { String C = scanner.next(); if (C.equals("AC")) { AC += 1; } else if(C.equals("WA")) { WA += 1; } else if(C.equals("TLE")) { TLE += 1; } else { RE += 1; } } System.out.println("AC x " + AC); System.out.println("WA x " + WA); System.out.println("TLE x " + TLE); System.out.println("RE x " + RE); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 35, 4, 18, 13, 34, 17, 1, 40, 13, 3, 34, 17, 1, 40, 13, 3, 34, 17, 1, 40, 13, 3, 34, 17, 1, 40, 13, 3, 4, 18, 13, 4, 18, 18, 13, 13, 2, 17, 13, 4, 18, 18, 13, 13, 2, 17, 13, 4, 18, 18, 13, 13, 2, 17, 13, 4, 18, 18, 13, 13, 2, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 111, 5 ], [ 111, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 14, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 8, 29 ], [ 29, 30 ], [ 29, 31 ], [ 8, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 32, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 45, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 45, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 45, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 45, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 8, 73 ], [ 73, 74 ], [ 74, 75 ], [ 8, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 76, 81 ], [ 81, 82 ], [ 81, 83 ], [ 8, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 89, 90 ], [ 89, 91 ], [ 8, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 97, 98 ], [ 97, 99 ], [ 8, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 105, 106 ], [ 105, 107 ], [ 6, 108 ], [ 108, 109 ], [ 0, 110 ], [ 110, 111 ], [ 110, 112 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(final String[] args) {\n final Scanner sc = new Scanner(System.in);\n // 整数の入力\n // final int a = sc.nextInt();\n // 文字列の入力\n // final String s1 = sc.next();\n final int varN = Integer.parseInt(sc.next());\n int acCnt = 0;\n int waCnt = 0;\n int tleCnt = 0;\n int reCnt = 0;\n\n for (int i = 0; i < varN; i++) {\n switch (sc.next()) {\n case \"AC\":\n acCnt++;\n break;\n case \"WA\":\n waCnt++;\n break;\n case \"TLE\":\n tleCnt++;\n break;\n case \"RE\":\n reCnt++;\n break;\n }\n }\n sc.close();\n\n System.out.println(\"AC x \" + acCnt);\n System.out.println(\"WA x \" + waCnt);\n System.out.println(\"TLE x \" + tleCnt);\n System.out.println(\"RE x \" + reCnt);\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(final String[] args) {\n final Scanner sc = new Scanner(System.in);\n // 整数の入力\n // final int a = sc.nextInt();\n // 文字列の入力\n // final String s1 = sc.next();\n final int varN = Integer.parseInt(sc.next());\n int acCnt = 0;\n int waCnt = 0;\n int tleCnt = 0;\n int reCnt = 0;\n\n for (int i = 0; i < varN; i++) {\n switch (sc.next()) {\n case \"AC\":\n acCnt++;\n break;\n case \"WA\":\n waCnt++;\n break;\n case \"TLE\":\n tleCnt++;\n break;\n case \"RE\":\n reCnt++;\n break;\n }\n }\n sc.close();\n\n System.out.println(\"AC x \" + acCnt);\n System.out.println(\"WA x \" + waCnt);\n System.out.println(\"TLE x \" + tleCnt);\n System.out.println(\"RE x \" + reCnt);\n }\n}", "Main", "public static void main(final String[] args) {\n final Scanner sc = new Scanner(System.in);\n // 整数の入力\n // final int a = sc.nextInt();\n // 文字列の入力\n // final String s1 = sc.next();\n final int varN = Integer.parseInt(sc.next());\n int acCnt = 0;\n int waCnt = 0;\n int tleCnt = 0;\n int reCnt = 0;\n\n for (int i = 0; i < varN; i++) {\n switch (sc.next()) {\n case \"AC\":\n acCnt++;\n break;\n case \"WA\":\n waCnt++;\n break;\n case \"TLE\":\n tleCnt++;\n break;\n case \"RE\":\n reCnt++;\n break;\n }\n }\n sc.close();\n\n System.out.println(\"AC x \" + acCnt);\n System.out.println(\"WA x \" + waCnt);\n System.out.println(\"TLE x \" + tleCnt);\n System.out.println(\"RE x \" + reCnt);\n }", "main", "{\n final Scanner sc = new Scanner(System.in);\n // 整数の入力\n // final int a = sc.nextInt();\n // 文字列の入力\n // final String s1 = sc.next();\n final int varN = Integer.parseInt(sc.next());\n int acCnt = 0;\n int waCnt = 0;\n int tleCnt = 0;\n int reCnt = 0;\n\n for (int i = 0; i < varN; i++) {\n switch (sc.next()) {\n case \"AC\":\n acCnt++;\n break;\n case \"WA\":\n waCnt++;\n break;\n case \"TLE\":\n tleCnt++;\n break;\n case \"RE\":\n reCnt++;\n break;\n }\n }\n sc.close();\n\n System.out.println(\"AC x \" + acCnt);\n System.out.println(\"WA x \" + waCnt);\n System.out.println(\"TLE x \" + tleCnt);\n System.out.println(\"RE x \" + reCnt);\n }", "final Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "final int varN = Integer.parseInt(sc.next());", "varN", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "int acCnt = 0;", "acCnt", "0", "int waCnt = 0;", "waCnt", "0", "int tleCnt = 0;", "tleCnt", "0", "int reCnt = 0;", "reCnt", "0", "for (int i = 0; i < varN; i++) {\n switch (sc.next()) {\n case \"AC\":\n acCnt++;\n break;\n case \"WA\":\n waCnt++;\n break;\n case \"TLE\":\n tleCnt++;\n break;\n case \"RE\":\n reCnt++;\n break;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < varN", "i", "varN", "i++", "i++", "i", "{\n switch (sc.next()) {\n case \"AC\":\n acCnt++;\n break;\n case \"WA\":\n waCnt++;\n break;\n case \"TLE\":\n tleCnt++;\n break;\n case \"RE\":\n reCnt++;\n break;\n }\n }", "{\n switch (sc.next()) {\n case \"AC\":\n acCnt++;\n break;\n case \"WA\":\n waCnt++;\n break;\n case \"TLE\":\n tleCnt++;\n break;\n case \"RE\":\n reCnt++;\n break;\n }\n }", "switch (sc.next()) {\n case \"AC\":\n acCnt++;\n break;\n case \"WA\":\n waCnt++;\n break;\n case \"TLE\":\n tleCnt++;\n break;\n case \"RE\":\n reCnt++;\n break;\n }", "sc.next()", "sc.next", "sc", "case \"AC\":", "\"AC\"", "case \"AC\":", "acCnt++", "acCnt", "break;", "case \"WA\":", "\"WA\"", "case \"WA\":", "waCnt++", "waCnt", "break;", "case \"TLE\":", "\"TLE\"", "case \"TLE\":", "tleCnt++", "tleCnt", "break;", "case \"RE\":", "\"RE\"", "case \"RE\":", "reCnt++", "reCnt", "break;", "sc.close()", "sc.close", "sc", "System.out.println(\"AC x \" + acCnt)", "System.out.println", "System.out", "System", "System.out", "\"AC x \" + acCnt", "\"AC x \"", "acCnt", "System.out.println(\"WA x \" + waCnt)", "System.out.println", "System.out", "System", "System.out", "\"WA x \" + waCnt", "\"WA x \"", "waCnt", "System.out.println(\"TLE x \" + tleCnt)", "System.out.println", "System.out", "System", "System.out", "\"TLE x \" + tleCnt", "\"TLE x \"", "tleCnt", "System.out.println(\"RE x \" + reCnt)", "System.out.println", "System.out", "System", "System.out", "\"RE x \" + reCnt", "\"RE x \"", "reCnt", "final String[] args", "args", "public class Main {\n public static void main(final String[] args) {\n final Scanner sc = new Scanner(System.in);\n // 整数の入力\n // final int a = sc.nextInt();\n // 文字列の入力\n // final String s1 = sc.next();\n final int varN = Integer.parseInt(sc.next());\n int acCnt = 0;\n int waCnt = 0;\n int tleCnt = 0;\n int reCnt = 0;\n\n for (int i = 0; i < varN; i++) {\n switch (sc.next()) {\n case \"AC\":\n acCnt++;\n break;\n case \"WA\":\n waCnt++;\n break;\n case \"TLE\":\n tleCnt++;\n break;\n case \"RE\":\n reCnt++;\n break;\n }\n }\n sc.close();\n\n System.out.println(\"AC x \" + acCnt);\n System.out.println(\"WA x \" + waCnt);\n System.out.println(\"TLE x \" + tleCnt);\n System.out.println(\"RE x \" + reCnt);\n }\n}", "public class Main {\n public static void main(final String[] args) {\n final Scanner sc = new Scanner(System.in);\n // 整数の入力\n // final int a = sc.nextInt();\n // 文字列の入力\n // final String s1 = sc.next();\n final int varN = Integer.parseInt(sc.next());\n int acCnt = 0;\n int waCnt = 0;\n int tleCnt = 0;\n int reCnt = 0;\n\n for (int i = 0; i < varN; i++) {\n switch (sc.next()) {\n case \"AC\":\n acCnt++;\n break;\n case \"WA\":\n waCnt++;\n break;\n case \"TLE\":\n tleCnt++;\n break;\n case \"RE\":\n reCnt++;\n break;\n }\n }\n sc.close();\n\n System.out.println(\"AC x \" + acCnt);\n System.out.println(\"WA x \" + waCnt);\n System.out.println(\"TLE x \" + tleCnt);\n System.out.println(\"RE x \" + reCnt);\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(final String[] args) { final Scanner sc = new Scanner(System.in); // 整数の入力 // final int a = sc.nextInt(); // 文字列の入力 // final String s1 = sc.next(); final int varN = Integer.parseInt(sc.next()); int acCnt = 0; int waCnt = 0; int tleCnt = 0; int reCnt = 0; for (int i = 0; i < varN; i++) { switch (sc.next()) { case "AC": acCnt++; break; case "WA": waCnt++; break; case "TLE": tleCnt++; break; case "RE": reCnt++; break; } } sc.close(); System.out.println("AC x " + acCnt); System.out.println("WA x " + waCnt); System.out.println("TLE x " + tleCnt); System.out.println("RE x " + reCnt); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 4, 18, 13, 28, 13, 13, 30, 30, 35, 13, 34, 17, 1, 40, 13, 3, 34, 17, 1, 40, 13, 3, 34, 17, 1, 40, 13, 3, 34, 17, 1, 40, 13, 3, 4, 18, 18, 13, 13, 2, 17, 13, 4, 18, 18, 13, 13, 2, 17, 13, 4, 18, 18, 13, 13, 2, 17, 13, 4, 18, 18, 13, 13, 2, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 117, 5 ], [ 117, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 8, 29 ], [ 29, 30 ], [ 29, 31 ], [ 8, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 32, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 48, 49 ], [ 49, 50 ], [ 8, 51 ], [ 51, 52 ], [ 51, 53 ], [ 51, 54 ], [ 55, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 56, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 56, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 56, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 8, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 87, 88 ], [ 87, 89 ], [ 8, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 90, 95 ], [ 95, 96 ], [ 95, 97 ], [ 8, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 103, 104 ], [ 103, 105 ], [ 8, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 111, 112 ], [ 111, 113 ], [ 6, 114 ], [ 114, 115 ], [ 0, 116 ], [ 116, 117 ], [ 116, 118 ] ]
[ "import java.util.*;\n \npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n \tint ac = 0;\n \tint wa = 0;\n \tint tle = 0;\n \tint re = 0;\n\t \tList<String> judges = new ArrayList<String>();\n \tfor(int i = 0; i <= N; i++){\n\t \t\tjudges.add(sc.nextLine());\n \t}\n \tfor(String str: judges){\n \tswitch(str){\n \t\tcase \"AC\":\n \t\tac ++;\n \tbreak;\n \t\tcase \"WA\":\n \t\twa ++;\n \tbreak;\n \t\tcase \"TLE\":\n \t\ttle ++;\n \tbreak;\n \t\tcase \"RE\":\n \t\tre ++;\n \tbreak;\n \t}\n \t} \n \tSystem.out.println(\"AC x \" + ac );\n \tSystem.out.println(\"WA x \" + wa );\n \tSystem.out.println(\"TLE x \" + tle );\n \tSystem.out.println(\"RE x \" + re );\n \n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n \tint ac = 0;\n \tint wa = 0;\n \tint tle = 0;\n \tint re = 0;\n\t \tList<String> judges = new ArrayList<String>();\n \tfor(int i = 0; i <= N; i++){\n\t \t\tjudges.add(sc.nextLine());\n \t}\n \tfor(String str: judges){\n \tswitch(str){\n \t\tcase \"AC\":\n \t\tac ++;\n \tbreak;\n \t\tcase \"WA\":\n \t\twa ++;\n \tbreak;\n \t\tcase \"TLE\":\n \t\ttle ++;\n \tbreak;\n \t\tcase \"RE\":\n \t\tre ++;\n \tbreak;\n \t}\n \t} \n \tSystem.out.println(\"AC x \" + ac );\n \tSystem.out.println(\"WA x \" + wa );\n \tSystem.out.println(\"TLE x \" + tle );\n \tSystem.out.println(\"RE x \" + re );\n \n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n \tint ac = 0;\n \tint wa = 0;\n \tint tle = 0;\n \tint re = 0;\n\t \tList<String> judges = new ArrayList<String>();\n \tfor(int i = 0; i <= N; i++){\n\t \t\tjudges.add(sc.nextLine());\n \t}\n \tfor(String str: judges){\n \tswitch(str){\n \t\tcase \"AC\":\n \t\tac ++;\n \tbreak;\n \t\tcase \"WA\":\n \t\twa ++;\n \tbreak;\n \t\tcase \"TLE\":\n \t\ttle ++;\n \tbreak;\n \t\tcase \"RE\":\n \t\tre ++;\n \tbreak;\n \t}\n \t} \n \tSystem.out.println(\"AC x \" + ac );\n \tSystem.out.println(\"WA x \" + wa );\n \tSystem.out.println(\"TLE x \" + tle );\n \tSystem.out.println(\"RE x \" + re );\n \n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n \tint ac = 0;\n \tint wa = 0;\n \tint tle = 0;\n \tint re = 0;\n\t \tList<String> judges = new ArrayList<String>();\n \tfor(int i = 0; i <= N; i++){\n\t \t\tjudges.add(sc.nextLine());\n \t}\n \tfor(String str: judges){\n \tswitch(str){\n \t\tcase \"AC\":\n \t\tac ++;\n \tbreak;\n \t\tcase \"WA\":\n \t\twa ++;\n \tbreak;\n \t\tcase \"TLE\":\n \t\ttle ++;\n \tbreak;\n \t\tcase \"RE\":\n \t\tre ++;\n \tbreak;\n \t}\n \t} \n \tSystem.out.println(\"AC x \" + ac );\n \tSystem.out.println(\"WA x \" + wa );\n \tSystem.out.println(\"TLE x \" + tle );\n \tSystem.out.println(\"RE x \" + re );\n \n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "int ac = 0;", "ac", "0", "int wa = 0;", "wa", "0", "int tle = 0;", "tle", "0", "int re = 0;", "re", "0", "List<String> judges = new ArrayList<String>();", "judges", "new ArrayList<String>()", "for(int i = 0; i <= N; i++){\n\t \t\tjudges.add(sc.nextLine());\n \t}", "int i = 0;", "int i = 0;", "i", "0", "i <= N", "i", "N", "i++", "i++", "i", "{\n\t \t\tjudges.add(sc.nextLine());\n \t}", "{\n\t \t\tjudges.add(sc.nextLine());\n \t}", "judges.add(sc.nextLine())", "judges.add", "judges", "sc.nextLine()", "sc.nextLine", "sc", "for(String str: judges){\n \tswitch(str){\n \t\tcase \"AC\":\n \t\tac ++;\n \tbreak;\n \t\tcase \"WA\":\n \t\twa ++;\n \tbreak;\n \t\tcase \"TLE\":\n \t\ttle ++;\n \tbreak;\n \t\tcase \"RE\":\n \t\tre ++;\n \tbreak;\n \t}\n \t}", "String str", "judges", "{\n \tswitch(str){\n \t\tcase \"AC\":\n \t\tac ++;\n \tbreak;\n \t\tcase \"WA\":\n \t\twa ++;\n \tbreak;\n \t\tcase \"TLE\":\n \t\ttle ++;\n \tbreak;\n \t\tcase \"RE\":\n \t\tre ++;\n \tbreak;\n \t}\n \t}", "{\n \tswitch(str){\n \t\tcase \"AC\":\n \t\tac ++;\n \tbreak;\n \t\tcase \"WA\":\n \t\twa ++;\n \tbreak;\n \t\tcase \"TLE\":\n \t\ttle ++;\n \tbreak;\n \t\tcase \"RE\":\n \t\tre ++;\n \tbreak;\n \t}\n \t}", "switch(str){\n \t\tcase \"AC\":\n \t\tac ++;\n \tbreak;\n \t\tcase \"WA\":\n \t\twa ++;\n \tbreak;\n \t\tcase \"TLE\":\n \t\ttle ++;\n \tbreak;\n \t\tcase \"RE\":\n \t\tre ++;\n \tbreak;\n \t}", "str", "case \"AC\":", "\"AC\"", "case \"AC\":", "ac ++", "ac", "break;", "case \"WA\":", "\"WA\"", "case \"WA\":", "wa ++", "wa", "break;", "case \"TLE\":", "\"TLE\"", "case \"TLE\":", "tle ++", "tle", "break;", "case \"RE\":", "\"RE\"", "case \"RE\":", "re ++", "re", "break;", "System.out.println(\"AC x \" + ac )", "System.out.println", "System.out", "System", "System.out", "\"AC x \" + ac", "\"AC x \"", "ac", "System.out.println(\"WA x \" + wa )", "System.out.println", "System.out", "System", "System.out", "\"WA x \" + wa", "\"WA x \"", "wa", "System.out.println(\"TLE x \" + tle )", "System.out.println", "System.out", "System", "System.out", "\"TLE x \" + tle", "\"TLE x \"", "tle", "System.out.println(\"RE x \" + re )", "System.out.println", "System.out", "System", "System.out", "\"RE x \" + re", "\"RE x \"", "re", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n \tint ac = 0;\n \tint wa = 0;\n \tint tle = 0;\n \tint re = 0;\n\t \tList<String> judges = new ArrayList<String>();\n \tfor(int i = 0; i <= N; i++){\n\t \t\tjudges.add(sc.nextLine());\n \t}\n \tfor(String str: judges){\n \tswitch(str){\n \t\tcase \"AC\":\n \t\tac ++;\n \tbreak;\n \t\tcase \"WA\":\n \t\twa ++;\n \tbreak;\n \t\tcase \"TLE\":\n \t\ttle ++;\n \tbreak;\n \t\tcase \"RE\":\n \t\tre ++;\n \tbreak;\n \t}\n \t} \n \tSystem.out.println(\"AC x \" + ac );\n \tSystem.out.println(\"WA x \" + wa );\n \tSystem.out.println(\"TLE x \" + tle );\n \tSystem.out.println(\"RE x \" + re );\n \n\t}\n}", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n \tint ac = 0;\n \tint wa = 0;\n \tint tle = 0;\n \tint re = 0;\n\t \tList<String> judges = new ArrayList<String>();\n \tfor(int i = 0; i <= N; i++){\n\t \t\tjudges.add(sc.nextLine());\n \t}\n \tfor(String str: judges){\n \tswitch(str){\n \t\tcase \"AC\":\n \t\tac ++;\n \tbreak;\n \t\tcase \"WA\":\n \t\twa ++;\n \tbreak;\n \t\tcase \"TLE\":\n \t\ttle ++;\n \tbreak;\n \t\tcase \"RE\":\n \t\tre ++;\n \tbreak;\n \t}\n \t} \n \tSystem.out.println(\"AC x \" + ac );\n \tSystem.out.println(\"WA x \" + wa );\n \tSystem.out.println(\"TLE x \" + tle );\n \tSystem.out.println(\"RE x \" + re );\n \n\t}\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int ac = 0; int wa = 0; int tle = 0; int re = 0; List<String> judges = new ArrayList<String>(); for(int i = 0; i <= N; i++){ judges.add(sc.nextLine()); } for(String str: judges){ switch(str){ case "AC": ac ++; break; case "WA": wa ++; break; case "TLE": tle ++; break; case "RE": re ++; break; } } System.out.println("AC x " + ac ); System.out.println("WA x " + wa ); System.out.println("TLE x " + tle ); System.out.println("RE x " + re ); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 40, 18, 13, 17, 14, 4, 18, 13, 17, 30, 40, 18, 13, 17, 14, 4, 18, 13, 17, 30, 40, 18, 13, 17, 14, 4, 18, 13, 17, 30, 40, 18, 13, 17, 4, 18, 13, 4, 18, 18, 13, 13, 2, 17, 18, 13, 17, 4, 18, 18, 13, 13, 2, 17, 18, 13, 17, 4, 18, 18, 13, 13, 2, 17, 18, 13, 17, 4, 18, 18, 13, 13, 2, 17, 18, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 125, 5 ], [ 125, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 33, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 39, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 39, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 49, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 49, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 59, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 59, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 69, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 8, 79 ], [ 79, 80 ], [ 80, 81 ], [ 8, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 89, 91 ], [ 8, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 99, 101 ], [ 8, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 102, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 109, 111 ], [ 8, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 112, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 119, 121 ], [ 6, 122 ], [ 122, 123 ], [ 0, 124 ], [ 124, 125 ], [ 124, 126 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int N = sc.nextInt();\n int[] count = new int[4];\n\n for (int i = 0; i < N; i++ ){\n String ip = sc.next();\n if (ip.equals(\"AC\")) {\n count[0]++;\n } else if (ip.equals(\"WA\")) {\n count[1]++;\n } else if (ip.equals(\"TLE\")) {\n count[2]++;\n } else if (ip.equals(\"RE\")) {\n count[3]++;\n }\n }\n \n sc.close();\n\n System.out.println(\"AC x \" + count[0]);\n System.out.println(\"WA x \" + count[1]);\n System.out.println(\"TLE x \" + count[2]);\n System.out.println(\"RE x \" + count[3]);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int N = sc.nextInt();\n int[] count = new int[4];\n\n for (int i = 0; i < N; i++ ){\n String ip = sc.next();\n if (ip.equals(\"AC\")) {\n count[0]++;\n } else if (ip.equals(\"WA\")) {\n count[1]++;\n } else if (ip.equals(\"TLE\")) {\n count[2]++;\n } else if (ip.equals(\"RE\")) {\n count[3]++;\n }\n }\n \n sc.close();\n\n System.out.println(\"AC x \" + count[0]);\n System.out.println(\"WA x \" + count[1]);\n System.out.println(\"TLE x \" + count[2]);\n System.out.println(\"RE x \" + count[3]);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int N = sc.nextInt();\n int[] count = new int[4];\n\n for (int i = 0; i < N; i++ ){\n String ip = sc.next();\n if (ip.equals(\"AC\")) {\n count[0]++;\n } else if (ip.equals(\"WA\")) {\n count[1]++;\n } else if (ip.equals(\"TLE\")) {\n count[2]++;\n } else if (ip.equals(\"RE\")) {\n count[3]++;\n }\n }\n \n sc.close();\n\n System.out.println(\"AC x \" + count[0]);\n System.out.println(\"WA x \" + count[1]);\n System.out.println(\"TLE x \" + count[2]);\n System.out.println(\"RE x \" + count[3]);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n\n int N = sc.nextInt();\n int[] count = new int[4];\n\n for (int i = 0; i < N; i++ ){\n String ip = sc.next();\n if (ip.equals(\"AC\")) {\n count[0]++;\n } else if (ip.equals(\"WA\")) {\n count[1]++;\n } else if (ip.equals(\"TLE\")) {\n count[2]++;\n } else if (ip.equals(\"RE\")) {\n count[3]++;\n }\n }\n \n sc.close();\n\n System.out.println(\"AC x \" + count[0]);\n System.out.println(\"WA x \" + count[1]);\n System.out.println(\"TLE x \" + count[2]);\n System.out.println(\"RE x \" + count[3]);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "int[] count = new int[4];", "count", "new int[4]", "4", "for (int i = 0; i < N; i++ ){\n String ip = sc.next();\n if (ip.equals(\"AC\")) {\n count[0]++;\n } else if (ip.equals(\"WA\")) {\n count[1]++;\n } else if (ip.equals(\"TLE\")) {\n count[2]++;\n } else if (ip.equals(\"RE\")) {\n count[3]++;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n String ip = sc.next();\n if (ip.equals(\"AC\")) {\n count[0]++;\n } else if (ip.equals(\"WA\")) {\n count[1]++;\n } else if (ip.equals(\"TLE\")) {\n count[2]++;\n } else if (ip.equals(\"RE\")) {\n count[3]++;\n }\n }", "{\n String ip = sc.next();\n if (ip.equals(\"AC\")) {\n count[0]++;\n } else if (ip.equals(\"WA\")) {\n count[1]++;\n } else if (ip.equals(\"TLE\")) {\n count[2]++;\n } else if (ip.equals(\"RE\")) {\n count[3]++;\n }\n }", "String ip = sc.next();", "ip", "sc.next()", "sc.next", "sc", "if (ip.equals(\"AC\")) {\n count[0]++;\n } else if (ip.equals(\"WA\")) {\n count[1]++;\n } else if (ip.equals(\"TLE\")) {\n count[2]++;\n } else if (ip.equals(\"RE\")) {\n count[3]++;\n }", "ip.equals(\"AC\")", "ip.equals", "ip", "\"AC\"", "{\n count[0]++;\n }", "count[0]++", "count[0]", "count", "0", "if (ip.equals(\"WA\")) {\n count[1]++;\n } else if (ip.equals(\"TLE\")) {\n count[2]++;\n } else if (ip.equals(\"RE\")) {\n count[3]++;\n }", "ip.equals(\"WA\")", "ip.equals", "ip", "\"WA\"", "{\n count[1]++;\n }", "count[1]++", "count[1]", "count", "1", "if (ip.equals(\"TLE\")) {\n count[2]++;\n } else if (ip.equals(\"RE\")) {\n count[3]++;\n }", "ip.equals(\"TLE\")", "ip.equals", "ip", "\"TLE\"", "{\n count[2]++;\n }", "count[2]++", "count[2]", "count", "2", "if (ip.equals(\"RE\")) {\n count[3]++;\n }", "ip.equals(\"RE\")", "ip.equals", "ip", "\"RE\"", "{\n count[3]++;\n }", "count[3]++", "count[3]", "count", "3", "sc.close()", "sc.close", "sc", "System.out.println(\"AC x \" + count[0])", "System.out.println", "System.out", "System", "System.out", "\"AC x \" + count[0]", "\"AC x \"", "count[0]", "count", "0", "System.out.println(\"WA x \" + count[1])", "System.out.println", "System.out", "System", "System.out", "\"WA x \" + count[1]", "\"WA x \"", "count[1]", "count", "1", "System.out.println(\"TLE x \" + count[2])", "System.out.println", "System.out", "System", "System.out", "\"TLE x \" + count[2]", "\"TLE x \"", "count[2]", "count", "2", "System.out.println(\"RE x \" + count[3])", "System.out.println", "System.out", "System", "System.out", "\"RE x \" + count[3]", "\"RE x \"", "count[3]", "count", "3", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int N = sc.nextInt();\n int[] count = new int[4];\n\n for (int i = 0; i < N; i++ ){\n String ip = sc.next();\n if (ip.equals(\"AC\")) {\n count[0]++;\n } else if (ip.equals(\"WA\")) {\n count[1]++;\n } else if (ip.equals(\"TLE\")) {\n count[2]++;\n } else if (ip.equals(\"RE\")) {\n count[3]++;\n }\n }\n \n sc.close();\n\n System.out.println(\"AC x \" + count[0]);\n System.out.println(\"WA x \" + count[1]);\n System.out.println(\"TLE x \" + count[2]);\n System.out.println(\"RE x \" + count[3]);\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int N = sc.nextInt();\n int[] count = new int[4];\n\n for (int i = 0; i < N; i++ ){\n String ip = sc.next();\n if (ip.equals(\"AC\")) {\n count[0]++;\n } else if (ip.equals(\"WA\")) {\n count[1]++;\n } else if (ip.equals(\"TLE\")) {\n count[2]++;\n } else if (ip.equals(\"RE\")) {\n count[3]++;\n }\n }\n \n sc.close();\n\n System.out.println(\"AC x \" + count[0]);\n System.out.println(\"WA x \" + count[1]);\n System.out.println(\"TLE x \" + count[2]);\n System.out.println(\"RE x \" + count[3]);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] count = new int[4]; for (int i = 0; i < N; i++ ){ String ip = sc.next(); if (ip.equals("AC")) { count[0]++; } else if (ip.equals("WA")) { count[1]++; } else if (ip.equals("TLE")) { count[2]++; } else if (ip.equals("RE")) { count[3]++; } } sc.close(); System.out.println("AC x " + count[0]); System.out.println("WA x " + count[1]); System.out.println("TLE x " + count[2]); System.out.println("RE x " + count[3]); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 14, 4, 18, 18, 13, 13, 17, 40, 13, 14, 4, 18, 18, 13, 13, 17, 40, 13, 14, 4, 18, 18, 13, 13, 17, 40, 13, 14, 4, 18, 18, 13, 13, 17, 40, 13, 4, 18, 18, 13, 13, 2, 17, 13, 4, 18, 18, 13, 13, 2, 17, 13, 4, 18, 18, 13, 13, 2, 17, 13, 4, 18, 18, 13, 13, 2, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 124, 5 ], [ 124, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 8, 30 ], [ 30, 31 ], [ 30, 32 ], [ 8, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 38, 39 ], [ 38, 40 ], [ 33, 41 ], [ 41, 42 ], [ 42, 43 ], [ 33, 44 ], [ 45, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 51, 52 ], [ 45, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 53, 60 ], [ 60, 61 ], [ 53, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 62, 69 ], [ 69, 70 ], [ 62, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 71, 78 ], [ 78, 79 ], [ 71, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 80, 87 ], [ 87, 88 ], [ 8, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 94, 95 ], [ 94, 96 ], [ 8, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 102, 103 ], [ 102, 104 ], [ 8, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 105, 110 ], [ 110, 111 ], [ 110, 112 ], [ 8, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 113, 118 ], [ 118, 119 ], [ 118, 120 ], [ 6, 121 ], [ 121, 122 ], [ 0, 123 ], [ 123, 124 ], [ 123, 125 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tString[] s = new String[n];\n\t\tint ac = 0;\n\t\tint wa = 0;\n\t\tint tle = 0;\n\t\tint re = 0;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\ts[i] = sc.next();\n\t\t\tif(s[i].equals(\"AC\"))ac++;\n\t\t\telse if(s[i].equals(\"WA\"))wa++;\n\t\t\telse if(s[i].equals(\"TLE\"))tle++;\n\t\t\telse if(s[i].equals(\"RE\"))re++;\n\t\t}\n\t\tSystem.out.println(\"AC x \" + ac);\n\t\tSystem.out.println(\"WA x \" + wa);\n\t\tSystem.out.println(\"TLE x \" + tle);\n\t\tSystem.out.println(\"RE x \" + re);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tString[] s = new String[n];\n\t\tint ac = 0;\n\t\tint wa = 0;\n\t\tint tle = 0;\n\t\tint re = 0;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\ts[i] = sc.next();\n\t\t\tif(s[i].equals(\"AC\"))ac++;\n\t\t\telse if(s[i].equals(\"WA\"))wa++;\n\t\t\telse if(s[i].equals(\"TLE\"))tle++;\n\t\t\telse if(s[i].equals(\"RE\"))re++;\n\t\t}\n\t\tSystem.out.println(\"AC x \" + ac);\n\t\tSystem.out.println(\"WA x \" + wa);\n\t\tSystem.out.println(\"TLE x \" + tle);\n\t\tSystem.out.println(\"RE x \" + re);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tString[] s = new String[n];\n\t\tint ac = 0;\n\t\tint wa = 0;\n\t\tint tle = 0;\n\t\tint re = 0;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\ts[i] = sc.next();\n\t\t\tif(s[i].equals(\"AC\"))ac++;\n\t\t\telse if(s[i].equals(\"WA\"))wa++;\n\t\t\telse if(s[i].equals(\"TLE\"))tle++;\n\t\t\telse if(s[i].equals(\"RE\"))re++;\n\t\t}\n\t\tSystem.out.println(\"AC x \" + ac);\n\t\tSystem.out.println(\"WA x \" + wa);\n\t\tSystem.out.println(\"TLE x \" + tle);\n\t\tSystem.out.println(\"RE x \" + re);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tString[] s = new String[n];\n\t\tint ac = 0;\n\t\tint wa = 0;\n\t\tint tle = 0;\n\t\tint re = 0;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\ts[i] = sc.next();\n\t\t\tif(s[i].equals(\"AC\"))ac++;\n\t\t\telse if(s[i].equals(\"WA\"))wa++;\n\t\t\telse if(s[i].equals(\"TLE\"))tle++;\n\t\t\telse if(s[i].equals(\"RE\"))re++;\n\t\t}\n\t\tSystem.out.println(\"AC x \" + ac);\n\t\tSystem.out.println(\"WA x \" + wa);\n\t\tSystem.out.println(\"TLE x \" + tle);\n\t\tSystem.out.println(\"RE x \" + re);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "String[] s = new String[n];", "s", "new String[n]", "n", "int ac = 0;", "ac", "0", "int wa = 0;", "wa", "0", "int tle = 0;", "tle", "0", "int re = 0;", "re", "0", "for(int i = 0; i < n; i++) {\n\t\t\ts[i] = sc.next();\n\t\t\tif(s[i].equals(\"AC\"))ac++;\n\t\t\telse if(s[i].equals(\"WA\"))wa++;\n\t\t\telse if(s[i].equals(\"TLE\"))tle++;\n\t\t\telse if(s[i].equals(\"RE\"))re++;\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\ts[i] = sc.next();\n\t\t\tif(s[i].equals(\"AC\"))ac++;\n\t\t\telse if(s[i].equals(\"WA\"))wa++;\n\t\t\telse if(s[i].equals(\"TLE\"))tle++;\n\t\t\telse if(s[i].equals(\"RE\"))re++;\n\t\t}", "{\n\t\t\ts[i] = sc.next();\n\t\t\tif(s[i].equals(\"AC\"))ac++;\n\t\t\telse if(s[i].equals(\"WA\"))wa++;\n\t\t\telse if(s[i].equals(\"TLE\"))tle++;\n\t\t\telse if(s[i].equals(\"RE\"))re++;\n\t\t}", "s[i] = sc.next()", "s[i]", "s", "i", "sc.next()", "sc.next", "sc", "if(s[i].equals(\"AC\"))ac++;\n\t\t\telse if(s[i].equals(\"WA\"))wa++;\n\t\t\telse if(s[i].equals(\"TLE\"))tle++;\n\t\t\telse if(s[i].equals(\"RE\"))re++;", "s[i].equals(\"AC\")", "s[i].equals", "s[i]", "s", "i", "\"AC\"", "ac++", "ac", "if(s[i].equals(\"WA\"))wa++;\n\t\t\telse if(s[i].equals(\"TLE\"))tle++;\n\t\t\telse if(s[i].equals(\"RE\"))re++;", "s[i].equals(\"WA\")", "s[i].equals", "s[i]", "s", "i", "\"WA\"", "wa++", "wa", "if(s[i].equals(\"TLE\"))tle++;\n\t\t\telse if(s[i].equals(\"RE\"))re++;", "s[i].equals(\"TLE\")", "s[i].equals", "s[i]", "s", "i", "\"TLE\"", "tle++", "tle", "if(s[i].equals(\"RE\"))re++;", "s[i].equals(\"RE\")", "s[i].equals", "s[i]", "s", "i", "\"RE\"", "re++", "re", "System.out.println(\"AC x \" + ac)", "System.out.println", "System.out", "System", "System.out", "\"AC x \" + ac", "\"AC x \"", "ac", "System.out.println(\"WA x \" + wa)", "System.out.println", "System.out", "System", "System.out", "\"WA x \" + wa", "\"WA x \"", "wa", "System.out.println(\"TLE x \" + tle)", "System.out.println", "System.out", "System", "System.out", "\"TLE x \" + tle", "\"TLE x \"", "tle", "System.out.println(\"RE x \" + re)", "System.out.println", "System.out", "System", "System.out", "\"RE x \" + re", "\"RE x \"", "re", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tString[] s = new String[n];\n\t\tint ac = 0;\n\t\tint wa = 0;\n\t\tint tle = 0;\n\t\tint re = 0;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\ts[i] = sc.next();\n\t\t\tif(s[i].equals(\"AC\"))ac++;\n\t\t\telse if(s[i].equals(\"WA\"))wa++;\n\t\t\telse if(s[i].equals(\"TLE\"))tle++;\n\t\t\telse if(s[i].equals(\"RE\"))re++;\n\t\t}\n\t\tSystem.out.println(\"AC x \" + ac);\n\t\tSystem.out.println(\"WA x \" + wa);\n\t\tSystem.out.println(\"TLE x \" + tle);\n\t\tSystem.out.println(\"RE x \" + re);\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tString[] s = new String[n];\n\t\tint ac = 0;\n\t\tint wa = 0;\n\t\tint tle = 0;\n\t\tint re = 0;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\ts[i] = sc.next();\n\t\t\tif(s[i].equals(\"AC\"))ac++;\n\t\t\telse if(s[i].equals(\"WA\"))wa++;\n\t\t\telse if(s[i].equals(\"TLE\"))tle++;\n\t\t\telse if(s[i].equals(\"RE\"))re++;\n\t\t}\n\t\tSystem.out.println(\"AC x \" + ac);\n\t\tSystem.out.println(\"WA x \" + wa);\n\t\tSystem.out.println(\"TLE x \" + tle);\n\t\tSystem.out.println(\"RE x \" + re);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); String[] s = new String[n]; int ac = 0; int wa = 0; int tle = 0; int re = 0; for(int i = 0; i < n; i++) { s[i] = sc.next(); if(s[i].equals("AC"))ac++; else if(s[i].equals("WA"))wa++; else if(s[i].equals("TLE"))tle++; else if(s[i].equals("RE"))re++; } System.out.println("AC x " + ac); System.out.println("WA x " + wa); System.out.println("TLE x " + tle); System.out.println("RE x " + re); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 40, 13, 14, 4, 18, 13, 17, 30, 40, 13, 14, 4, 18, 13, 17, 30, 40, 13, 30, 40, 13, 4, 18, 18, 13, 13, 2, 17, 13, 4, 18, 18, 13, 13, 2, 17, 13, 4, 18, 18, 13, 13, 2, 17, 13, 4, 18, 18, 13, 13, 2, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 109, 5 ], [ 109, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 8, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 29, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 41, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 47, 52 ], [ 52, 53 ], [ 53, 54 ], [ 47, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 55, 60 ], [ 60, 61 ], [ 61, 62 ], [ 55, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 63, 68 ], [ 68, 69 ], [ 69, 70 ], [ 63, 71 ], [ 71, 72 ], [ 72, 73 ], [ 8, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 79, 80 ], [ 79, 81 ], [ 8, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 87, 88 ], [ 87, 89 ], [ 8, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 90, 95 ], [ 95, 96 ], [ 95, 97 ], [ 8, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 103, 104 ], [ 103, 105 ], [ 6, 106 ], [ 106, 107 ], [ 0, 108 ], [ 108, 109 ], [ 108, 110 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\t//int n = sc.nextInt();\n\t\t//String s = sc.next();\n\t\tlong n = sc.nextLong();\n\t\t//double n = sc.nextDouble();\n\t\tint a = 0;\n\t\tint b = 0;\n\t\tint c = 0;\n\t\tint d = 0;\n\n\t\t\n\t\tfor(int i = 0; i < n ; i++) {\n\t\t\tString s = sc.next();\n\t\t\tif(s.equals(\"AC\")) {\n\t\t\t\ta++;\n\t\t\t}else if (s.equals(\"WA\")) {\n\t\t\t\tb++;\n\t\t\t}else if (s.equals(\"TLE\")) {\n\t\t\t\tc++;\n\t\t\t}else {\n\t\t\t\td++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"AC x \"+ a);\n\t\tSystem.out.println(\"WA x \"+ b);\n\t\tSystem.out.println(\"TLE x \"+ c);\n\t\tSystem.out.println(\"RE x \"+ d);\n\n\n\t\t//System.out.println(\"Yes\");\n\t\t//System.out.println(\"No\");\n\t\t\n\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\t//int n = sc.nextInt();\n\t\t//String s = sc.next();\n\t\tlong n = sc.nextLong();\n\t\t//double n = sc.nextDouble();\n\t\tint a = 0;\n\t\tint b = 0;\n\t\tint c = 0;\n\t\tint d = 0;\n\n\t\t\n\t\tfor(int i = 0; i < n ; i++) {\n\t\t\tString s = sc.next();\n\t\t\tif(s.equals(\"AC\")) {\n\t\t\t\ta++;\n\t\t\t}else if (s.equals(\"WA\")) {\n\t\t\t\tb++;\n\t\t\t}else if (s.equals(\"TLE\")) {\n\t\t\t\tc++;\n\t\t\t}else {\n\t\t\t\td++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"AC x \"+ a);\n\t\tSystem.out.println(\"WA x \"+ b);\n\t\tSystem.out.println(\"TLE x \"+ c);\n\t\tSystem.out.println(\"RE x \"+ d);\n\n\n\t\t//System.out.println(\"Yes\");\n\t\t//System.out.println(\"No\");\n\t\t\n\n\t}\n}", "Main", "public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\t//int n = sc.nextInt();\n\t\t//String s = sc.next();\n\t\tlong n = sc.nextLong();\n\t\t//double n = sc.nextDouble();\n\t\tint a = 0;\n\t\tint b = 0;\n\t\tint c = 0;\n\t\tint d = 0;\n\n\t\t\n\t\tfor(int i = 0; i < n ; i++) {\n\t\t\tString s = sc.next();\n\t\t\tif(s.equals(\"AC\")) {\n\t\t\t\ta++;\n\t\t\t}else if (s.equals(\"WA\")) {\n\t\t\t\tb++;\n\t\t\t}else if (s.equals(\"TLE\")) {\n\t\t\t\tc++;\n\t\t\t}else {\n\t\t\t\td++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"AC x \"+ a);\n\t\tSystem.out.println(\"WA x \"+ b);\n\t\tSystem.out.println(\"TLE x \"+ c);\n\t\tSystem.out.println(\"RE x \"+ d);\n\n\n\t\t//System.out.println(\"Yes\");\n\t\t//System.out.println(\"No\");\n\t\t\n\n\t}", "main", "{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\t//int n = sc.nextInt();\n\t\t//String s = sc.next();\n\t\tlong n = sc.nextLong();\n\t\t//double n = sc.nextDouble();\n\t\tint a = 0;\n\t\tint b = 0;\n\t\tint c = 0;\n\t\tint d = 0;\n\n\t\t\n\t\tfor(int i = 0; i < n ; i++) {\n\t\t\tString s = sc.next();\n\t\t\tif(s.equals(\"AC\")) {\n\t\t\t\ta++;\n\t\t\t}else if (s.equals(\"WA\")) {\n\t\t\t\tb++;\n\t\t\t}else if (s.equals(\"TLE\")) {\n\t\t\t\tc++;\n\t\t\t}else {\n\t\t\t\td++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"AC x \"+ a);\n\t\tSystem.out.println(\"WA x \"+ b);\n\t\tSystem.out.println(\"TLE x \"+ c);\n\t\tSystem.out.println(\"RE x \"+ d);\n\n\n\t\t//System.out.println(\"Yes\");\n\t\t//System.out.println(\"No\");\n\t\t\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "long n = sc.nextLong();", "n", "sc.nextLong()", "sc.nextLong", "sc", "int a = 0;", "a", "0", "int b = 0;", "b", "0", "int c = 0;", "c", "0", "int d = 0;", "d", "0", "for(int i = 0; i < n ; i++) {\n\t\t\tString s = sc.next();\n\t\t\tif(s.equals(\"AC\")) {\n\t\t\t\ta++;\n\t\t\t}else if (s.equals(\"WA\")) {\n\t\t\t\tb++;\n\t\t\t}else if (s.equals(\"TLE\")) {\n\t\t\t\tc++;\n\t\t\t}else {\n\t\t\t\td++;\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tString s = sc.next();\n\t\t\tif(s.equals(\"AC\")) {\n\t\t\t\ta++;\n\t\t\t}else if (s.equals(\"WA\")) {\n\t\t\t\tb++;\n\t\t\t}else if (s.equals(\"TLE\")) {\n\t\t\t\tc++;\n\t\t\t}else {\n\t\t\t\td++;\n\t\t\t}\n\t\t}", "{\n\t\t\tString s = sc.next();\n\t\t\tif(s.equals(\"AC\")) {\n\t\t\t\ta++;\n\t\t\t}else if (s.equals(\"WA\")) {\n\t\t\t\tb++;\n\t\t\t}else if (s.equals(\"TLE\")) {\n\t\t\t\tc++;\n\t\t\t}else {\n\t\t\t\td++;\n\t\t\t}\n\t\t}", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "if(s.equals(\"AC\")) {\n\t\t\t\ta++;\n\t\t\t}else if (s.equals(\"WA\")) {\n\t\t\t\tb++;\n\t\t\t}else if (s.equals(\"TLE\")) {\n\t\t\t\tc++;\n\t\t\t}else {\n\t\t\t\td++;\n\t\t\t}", "s.equals(\"AC\")", "s.equals", "s", "\"AC\"", "{\n\t\t\t\ta++;\n\t\t\t}", "a++", "a", "if (s.equals(\"WA\")) {\n\t\t\t\tb++;\n\t\t\t}else if (s.equals(\"TLE\")) {\n\t\t\t\tc++;\n\t\t\t}else {\n\t\t\t\td++;\n\t\t\t}", "s.equals(\"WA\")", "s.equals", "s", "\"WA\"", "{\n\t\t\t\tb++;\n\t\t\t}", "b++", "b", "if (s.equals(\"TLE\")) {\n\t\t\t\tc++;\n\t\t\t}else {\n\t\t\t\td++;\n\t\t\t}", "s.equals(\"TLE\")", "s.equals", "s", "\"TLE\"", "{\n\t\t\t\tc++;\n\t\t\t}", "c++", "c", "{\n\t\t\t\td++;\n\t\t\t}", "d++", "d", "System.out.println(\"AC x \"+ a)", "System.out.println", "System.out", "System", "System.out", "\"AC x \"+ a", "\"AC x \"", "a", "System.out.println(\"WA x \"+ b)", "System.out.println", "System.out", "System", "System.out", "\"WA x \"+ b", "\"WA x \"", "b", "System.out.println(\"TLE x \"+ c)", "System.out.println", "System.out", "System", "System.out", "\"TLE x \"+ c", "\"TLE x \"", "c", "System.out.println(\"RE x \"+ d)", "System.out.println", "System.out", "System", "System.out", "\"RE x \"+ d", "\"RE x \"", "d", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\t//int n = sc.nextInt();\n\t\t//String s = sc.next();\n\t\tlong n = sc.nextLong();\n\t\t//double n = sc.nextDouble();\n\t\tint a = 0;\n\t\tint b = 0;\n\t\tint c = 0;\n\t\tint d = 0;\n\n\t\t\n\t\tfor(int i = 0; i < n ; i++) {\n\t\t\tString s = sc.next();\n\t\t\tif(s.equals(\"AC\")) {\n\t\t\t\ta++;\n\t\t\t}else if (s.equals(\"WA\")) {\n\t\t\t\tb++;\n\t\t\t}else if (s.equals(\"TLE\")) {\n\t\t\t\tc++;\n\t\t\t}else {\n\t\t\t\td++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"AC x \"+ a);\n\t\tSystem.out.println(\"WA x \"+ b);\n\t\tSystem.out.println(\"TLE x \"+ c);\n\t\tSystem.out.println(\"RE x \"+ d);\n\n\n\t\t//System.out.println(\"Yes\");\n\t\t//System.out.println(\"No\");\n\t\t\n\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\t//int n = sc.nextInt();\n\t\t//String s = sc.next();\n\t\tlong n = sc.nextLong();\n\t\t//double n = sc.nextDouble();\n\t\tint a = 0;\n\t\tint b = 0;\n\t\tint c = 0;\n\t\tint d = 0;\n\n\t\t\n\t\tfor(int i = 0; i < n ; i++) {\n\t\t\tString s = sc.next();\n\t\t\tif(s.equals(\"AC\")) {\n\t\t\t\ta++;\n\t\t\t}else if (s.equals(\"WA\")) {\n\t\t\t\tb++;\n\t\t\t}else if (s.equals(\"TLE\")) {\n\t\t\t\tc++;\n\t\t\t}else {\n\t\t\t\td++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"AC x \"+ a);\n\t\tSystem.out.println(\"WA x \"+ b);\n\t\tSystem.out.println(\"TLE x \"+ c);\n\t\tSystem.out.println(\"RE x \"+ d);\n\n\n\t\t//System.out.println(\"Yes\");\n\t\t//System.out.println(\"No\");\n\t\t\n\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); //int n = sc.nextInt(); //String s = sc.next(); long n = sc.nextLong(); //double n = sc.nextDouble(); int a = 0; int b = 0; int c = 0; int d = 0; for(int i = 0; i < n ; i++) { String s = sc.next(); if(s.equals("AC")) { a++; }else if (s.equals("WA")) { b++; }else if (s.equals("TLE")) { c++; }else { d++; } } System.out.println("AC x "+ a); System.out.println("WA x "+ b); System.out.println("TLE x "+ c); System.out.println("RE x "+ d); //System.out.println("Yes"); //System.out.println("No"); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 14, 2, 4, 18, 13, 17, 17, 30, 40, 13, 14, 2, 4, 18, 13, 17, 17, 30, 40, 13, 14, 2, 4, 18, 13, 17, 17, 30, 40, 13, 14, 2, 4, 18, 13, 17, 17, 30, 40, 13, 4, 18, 18, 13, 13, 2, 17, 13, 4, 18, 18, 13, 13, 2, 17, 13, 4, 18, 18, 13, 13, 2, 17, 13, 4, 18, 18, 13, 13, 2, 17, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 8, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 29, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 41, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 48, 53 ], [ 47, 54 ], [ 54, 55 ], [ 55, 56 ], [ 47, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 58, 63 ], [ 57, 64 ], [ 64, 65 ], [ 65, 66 ], [ 57, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 68, 73 ], [ 67, 74 ], [ 74, 75 ], [ 75, 76 ], [ 67, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 78, 83 ], [ 77, 84 ], [ 84, 85 ], [ 85, 86 ], [ 8, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 92, 93 ], [ 92, 94 ], [ 8, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 100, 101 ], [ 100, 102 ], [ 8, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 103, 108 ], [ 108, 109 ], [ 108, 110 ], [ 8, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 111, 116 ], [ 116, 117 ], [ 116, 118 ], [ 6, 119 ], [ 119, 120 ] ]
[ "import java.util.*;\n\nclass Main\n{\n\tpublic static void main(String args[]) throws Exception\n\t{\n\t\tScanner in = new Scanner(System.in);\n\t\tint n=in.nextInt();\n\t\tint ac=0;\n\t\tint re=0;\n\t\tint wa=0;\n\t\tint tle=0;\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tString s=in.next();\n\t\t\tif(s.charAt(0)=='A')\n\t\t\t{\n\t\t\t\tac++;\n\t\t\t}\n\t\t\telse if(s.charAt(0)=='R')\n\t\t\t{\n\t\t\t\tre++;\n\t\t\t}\n\t\t\telse if(s.charAt(0)=='W')\n\t\t\t{\n\t\t\t\twa++;\n\t\t\t}\n\t\t\telse if(s.charAt(0)=='T')\n\t\t\t{\n\t\t\t\ttle++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \"+ac);\n\t\tSystem.out.println(\"WA x \"+wa);\n\t\tSystem.out.println(\"TLE x \"+tle);\n\t\tSystem.out.println(\"RE x \"+re);\n\t}\n}", "import java.util.*;", "util.*", "java", "class Main\n{\n\tpublic static void main(String args[]) throws Exception\n\t{\n\t\tScanner in = new Scanner(System.in);\n\t\tint n=in.nextInt();\n\t\tint ac=0;\n\t\tint re=0;\n\t\tint wa=0;\n\t\tint tle=0;\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tString s=in.next();\n\t\t\tif(s.charAt(0)=='A')\n\t\t\t{\n\t\t\t\tac++;\n\t\t\t}\n\t\t\telse if(s.charAt(0)=='R')\n\t\t\t{\n\t\t\t\tre++;\n\t\t\t}\n\t\t\telse if(s.charAt(0)=='W')\n\t\t\t{\n\t\t\t\twa++;\n\t\t\t}\n\t\t\telse if(s.charAt(0)=='T')\n\t\t\t{\n\t\t\t\ttle++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \"+ac);\n\t\tSystem.out.println(\"WA x \"+wa);\n\t\tSystem.out.println(\"TLE x \"+tle);\n\t\tSystem.out.println(\"RE x \"+re);\n\t}\n}", "Main", "public static void main(String args[]) throws Exception\n\t{\n\t\tScanner in = new Scanner(System.in);\n\t\tint n=in.nextInt();\n\t\tint ac=0;\n\t\tint re=0;\n\t\tint wa=0;\n\t\tint tle=0;\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tString s=in.next();\n\t\t\tif(s.charAt(0)=='A')\n\t\t\t{\n\t\t\t\tac++;\n\t\t\t}\n\t\t\telse if(s.charAt(0)=='R')\n\t\t\t{\n\t\t\t\tre++;\n\t\t\t}\n\t\t\telse if(s.charAt(0)=='W')\n\t\t\t{\n\t\t\t\twa++;\n\t\t\t}\n\t\t\telse if(s.charAt(0)=='T')\n\t\t\t{\n\t\t\t\ttle++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \"+ac);\n\t\tSystem.out.println(\"WA x \"+wa);\n\t\tSystem.out.println(\"TLE x \"+tle);\n\t\tSystem.out.println(\"RE x \"+re);\n\t}", "main", "{\n\t\tScanner in = new Scanner(System.in);\n\t\tint n=in.nextInt();\n\t\tint ac=0;\n\t\tint re=0;\n\t\tint wa=0;\n\t\tint tle=0;\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tString s=in.next();\n\t\t\tif(s.charAt(0)=='A')\n\t\t\t{\n\t\t\t\tac++;\n\t\t\t}\n\t\t\telse if(s.charAt(0)=='R')\n\t\t\t{\n\t\t\t\tre++;\n\t\t\t}\n\t\t\telse if(s.charAt(0)=='W')\n\t\t\t{\n\t\t\t\twa++;\n\t\t\t}\n\t\t\telse if(s.charAt(0)=='T')\n\t\t\t{\n\t\t\t\ttle++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \"+ac);\n\t\tSystem.out.println(\"WA x \"+wa);\n\t\tSystem.out.println(\"TLE x \"+tle);\n\t\tSystem.out.println(\"RE x \"+re);\n\t}", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "int n=in.nextInt();", "n", "in.nextInt()", "in.nextInt", "in", "int ac=0;", "ac", "0", "int re=0;", "re", "0", "int wa=0;", "wa", "0", "int tle=0;", "tle", "0", "for(int i=0;i<n;i++)\n\t\t{\n\t\t\tString s=in.next();\n\t\t\tif(s.charAt(0)=='A')\n\t\t\t{\n\t\t\t\tac++;\n\t\t\t}\n\t\t\telse if(s.charAt(0)=='R')\n\t\t\t{\n\t\t\t\tre++;\n\t\t\t}\n\t\t\telse if(s.charAt(0)=='W')\n\t\t\t{\n\t\t\t\twa++;\n\t\t\t}\n\t\t\telse if(s.charAt(0)=='T')\n\t\t\t{\n\t\t\t\ttle++;\n\t\t\t}\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\tString s=in.next();\n\t\t\tif(s.charAt(0)=='A')\n\t\t\t{\n\t\t\t\tac++;\n\t\t\t}\n\t\t\telse if(s.charAt(0)=='R')\n\t\t\t{\n\t\t\t\tre++;\n\t\t\t}\n\t\t\telse if(s.charAt(0)=='W')\n\t\t\t{\n\t\t\t\twa++;\n\t\t\t}\n\t\t\telse if(s.charAt(0)=='T')\n\t\t\t{\n\t\t\t\ttle++;\n\t\t\t}\n\t\t}", "{\n\t\t\tString s=in.next();\n\t\t\tif(s.charAt(0)=='A')\n\t\t\t{\n\t\t\t\tac++;\n\t\t\t}\n\t\t\telse if(s.charAt(0)=='R')\n\t\t\t{\n\t\t\t\tre++;\n\t\t\t}\n\t\t\telse if(s.charAt(0)=='W')\n\t\t\t{\n\t\t\t\twa++;\n\t\t\t}\n\t\t\telse if(s.charAt(0)=='T')\n\t\t\t{\n\t\t\t\ttle++;\n\t\t\t}\n\t\t}", "String s=in.next();", "s", "in.next()", "in.next", "in", "if(s.charAt(0)=='A')\n\t\t\t{\n\t\t\t\tac++;\n\t\t\t}\n\t\t\telse if(s.charAt(0)=='R')\n\t\t\t{\n\t\t\t\tre++;\n\t\t\t}\n\t\t\telse if(s.charAt(0)=='W')\n\t\t\t{\n\t\t\t\twa++;\n\t\t\t}\n\t\t\telse if(s.charAt(0)=='T')\n\t\t\t{\n\t\t\t\ttle++;\n\t\t\t}", "s.charAt(0)=='A'", "s.charAt(0)", "s.charAt", "s", "0", "'A'", "{\n\t\t\t\tac++;\n\t\t\t}", "ac++", "ac", "if(s.charAt(0)=='R')\n\t\t\t{\n\t\t\t\tre++;\n\t\t\t}\n\t\t\telse if(s.charAt(0)=='W')\n\t\t\t{\n\t\t\t\twa++;\n\t\t\t}\n\t\t\telse if(s.charAt(0)=='T')\n\t\t\t{\n\t\t\t\ttle++;\n\t\t\t}", "s.charAt(0)=='R'", "s.charAt(0)", "s.charAt", "s", "0", "'R'", "{\n\t\t\t\tre++;\n\t\t\t}", "re++", "re", "if(s.charAt(0)=='W')\n\t\t\t{\n\t\t\t\twa++;\n\t\t\t}\n\t\t\telse if(s.charAt(0)=='T')\n\t\t\t{\n\t\t\t\ttle++;\n\t\t\t}", "s.charAt(0)=='W'", "s.charAt(0)", "s.charAt", "s", "0", "'W'", "{\n\t\t\t\twa++;\n\t\t\t}", "wa++", "wa", "if(s.charAt(0)=='T')\n\t\t\t{\n\t\t\t\ttle++;\n\t\t\t}", "s.charAt(0)=='T'", "s.charAt(0)", "s.charAt", "s", "0", "'T'", "{\n\t\t\t\ttle++;\n\t\t\t}", "tle++", "tle", "System.out.println(\"AC x \"+ac)", "System.out.println", "System.out", "System", "System.out", "\"AC x \"+ac", "\"AC x \"", "ac", "System.out.println(\"WA x \"+wa)", "System.out.println", "System.out", "System", "System.out", "\"WA x \"+wa", "\"WA x \"", "wa", "System.out.println(\"TLE x \"+tle)", "System.out.println", "System.out", "System", "System.out", "\"TLE x \"+tle", "\"TLE x \"", "tle", "System.out.println(\"RE x \"+re)", "System.out.println", "System.out", "System", "System.out", "\"RE x \"+re", "\"RE x \"", "re", "String args[]", "args" ]
import java.util.*; class Main { public static void main(String args[]) throws Exception { Scanner in = new Scanner(System.in); int n=in.nextInt(); int ac=0; int re=0; int wa=0; int tle=0; for(int i=0;i<n;i++) { String s=in.next(); if(s.charAt(0)=='A') { ac++; } else if(s.charAt(0)=='R') { re++; } else if(s.charAt(0)=='W') { wa++; } else if(s.charAt(0)=='T') { tle++; } } System.out.println("AC x "+ac); System.out.println("WA x "+wa); System.out.println("TLE x "+tle); System.out.println("RE x "+re); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 18, 13, 13, 41, 13, 20, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 4, 18, 18, 13, 13, 30, 40, 13, 14, 4, 18, 13, 4, 18, 18, 13, 13, 30, 40, 13, 14, 4, 18, 13, 4, 18, 18, 13, 13, 30, 40, 13, 14, 4, 18, 13, 4, 18, 18, 13, 13, 30, 40, 13, 4, 18, 13, 4, 18, 18, 13, 13, 4, 18, 13, 17, 13, 4, 18, 18, 13, 13, 4, 18, 13, 17, 13, 4, 18, 18, 13, 13, 4, 18, 13, 17, 13, 4, 18, 18, 13, 13, 4, 18, 13, 17, 13, 23, 13, 6, 13, 41, 13, 41, 13, 41, 13, 41, 13, 12, 12, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 161, 8 ], [ 161, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 14, 16 ], [ 11, 17 ], [ 17, 18 ], [ 17, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 11, 26 ], [ 26, 27 ], [ 26, 28 ], [ 11, 29 ], [ 29, 30 ], [ 29, 31 ], [ 11, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 11, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 42, 43 ], [ 42, 44 ], [ 37, 45 ], [ 45, 46 ], [ 46, 47 ], [ 37, 48 ], [ 49, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 49, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 55, 64 ], [ 64, 65 ], [ 65, 66 ], [ 55, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 67, 76 ], [ 76, 77 ], [ 77, 78 ], [ 67, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 79, 88 ], [ 88, 89 ], [ 89, 90 ], [ 79, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 91, 100 ], [ 100, 101 ], [ 101, 102 ], [ 11, 103 ], [ 103, 104 ], [ 104, 105 ], [ 11, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 111, 112 ], [ 112, 113 ], [ 111, 114 ], [ 111, 115 ], [ 11, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 116, 121 ], [ 121, 122 ], [ 122, 123 ], [ 121, 124 ], [ 121, 125 ], [ 11, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 126, 131 ], [ 131, 132 ], [ 132, 133 ], [ 131, 134 ], [ 131, 135 ], [ 11, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 136, 141 ], [ 141, 142 ], [ 142, 143 ], [ 141, 144 ], [ 141, 145 ], [ 9, 146 ], [ 146, 147 ], [ 161, 148 ], [ 148, 149 ], [ 148, 150 ], [ 150, 151 ], [ 148, 152 ], [ 152, 153 ], [ 148, 154 ], [ 154, 155 ], [ 148, 156 ], [ 156, 157 ], [ 148, 158 ], [ 148, 159 ], [ 0, 160 ], [ 160, 161 ], [ 160, 162 ] ]
[ "import java.io.*;\nimport java.util.Scanner;\npublic class Main {\n private enum hoge{\n AC,\n WA,\n TLE,\n RE;\n }\n public static void main(String[] args) {\n InputStream in = System.in;\n Scanner scanner = new Scanner(in);\n\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n\n int next = scanner.nextInt();\n for (int i = 0; i <= next; i++) {\n String s = scanner.nextLine();\n if (s.equals(hoge.AC.toString())) {\n ac++;\n }else if(s.equals(hoge.WA.toString())){\n wa++;\n }else if(s.equals(hoge.TLE.toString())){\n tle++;\n }else if(s.equals(hoge.RE.toString())){\n re++;\n }\n }\n scanner.close();\n System.out.println( String.format(\"AC x %s\", ac) );\n System.out.println( String.format(\"WA x %s\", wa) );\n System.out.println( String.format(\"TLE x %s\", tle) );\n System.out.println( String.format(\"RE x %s\", re) );\n }\n\n}", "import java.io.*;", "io.*", "java", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n private enum hoge{\n AC,\n WA,\n TLE,\n RE;\n }\n public static void main(String[] args) {\n InputStream in = System.in;\n Scanner scanner = new Scanner(in);\n\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n\n int next = scanner.nextInt();\n for (int i = 0; i <= next; i++) {\n String s = scanner.nextLine();\n if (s.equals(hoge.AC.toString())) {\n ac++;\n }else if(s.equals(hoge.WA.toString())){\n wa++;\n }else if(s.equals(hoge.TLE.toString())){\n tle++;\n }else if(s.equals(hoge.RE.toString())){\n re++;\n }\n }\n scanner.close();\n System.out.println( String.format(\"AC x %s\", ac) );\n System.out.println( String.format(\"WA x %s\", wa) );\n System.out.println( String.format(\"TLE x %s\", tle) );\n System.out.println( String.format(\"RE x %s\", re) );\n }\n\n}", "Main", "public static void main(String[] args) {\n InputStream in = System.in;\n Scanner scanner = new Scanner(in);\n\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n\n int next = scanner.nextInt();\n for (int i = 0; i <= next; i++) {\n String s = scanner.nextLine();\n if (s.equals(hoge.AC.toString())) {\n ac++;\n }else if(s.equals(hoge.WA.toString())){\n wa++;\n }else if(s.equals(hoge.TLE.toString())){\n tle++;\n }else if(s.equals(hoge.RE.toString())){\n re++;\n }\n }\n scanner.close();\n System.out.println( String.format(\"AC x %s\", ac) );\n System.out.println( String.format(\"WA x %s\", wa) );\n System.out.println( String.format(\"TLE x %s\", tle) );\n System.out.println( String.format(\"RE x %s\", re) );\n }", "main", "{\n InputStream in = System.in;\n Scanner scanner = new Scanner(in);\n\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n\n int next = scanner.nextInt();\n for (int i = 0; i <= next; i++) {\n String s = scanner.nextLine();\n if (s.equals(hoge.AC.toString())) {\n ac++;\n }else if(s.equals(hoge.WA.toString())){\n wa++;\n }else if(s.equals(hoge.TLE.toString())){\n tle++;\n }else if(s.equals(hoge.RE.toString())){\n re++;\n }\n }\n scanner.close();\n System.out.println( String.format(\"AC x %s\", ac) );\n System.out.println( String.format(\"WA x %s\", wa) );\n System.out.println( String.format(\"TLE x %s\", tle) );\n System.out.println( String.format(\"RE x %s\", re) );\n }", "InputStream in = System.in;", "in", "System.in", "System", "System.in", "Scanner scanner = new Scanner(in);", "scanner", "new Scanner(in)", "int ac = 0;", "ac", "0", "int wa = 0;", "wa", "0", "int tle = 0;", "tle", "0", "int re = 0;", "re", "0", "int next = scanner.nextInt();", "next", "scanner.nextInt()", "scanner.nextInt", "scanner", "for (int i = 0; i <= next; i++) {\n String s = scanner.nextLine();\n if (s.equals(hoge.AC.toString())) {\n ac++;\n }else if(s.equals(hoge.WA.toString())){\n wa++;\n }else if(s.equals(hoge.TLE.toString())){\n tle++;\n }else if(s.equals(hoge.RE.toString())){\n re++;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i <= next", "i", "next", "i++", "i++", "i", "{\n String s = scanner.nextLine();\n if (s.equals(hoge.AC.toString())) {\n ac++;\n }else if(s.equals(hoge.WA.toString())){\n wa++;\n }else if(s.equals(hoge.TLE.toString())){\n tle++;\n }else if(s.equals(hoge.RE.toString())){\n re++;\n }\n }", "{\n String s = scanner.nextLine();\n if (s.equals(hoge.AC.toString())) {\n ac++;\n }else if(s.equals(hoge.WA.toString())){\n wa++;\n }else if(s.equals(hoge.TLE.toString())){\n tle++;\n }else if(s.equals(hoge.RE.toString())){\n re++;\n }\n }", "String s = scanner.nextLine();", "s", "scanner.nextLine()", "scanner.nextLine", "scanner", "if (s.equals(hoge.AC.toString())) {\n ac++;\n }else if(s.equals(hoge.WA.toString())){\n wa++;\n }else if(s.equals(hoge.TLE.toString())){\n tle++;\n }else if(s.equals(hoge.RE.toString())){\n re++;\n }", "s.equals(hoge.AC.toString())", "s.equals", "s", "hoge.AC.toString()", "hoge.AC.toString", "hoge.AC", "hoge", "hoge.AC", "{\n ac++;\n }", "ac++", "ac", "if(s.equals(hoge.WA.toString())){\n wa++;\n }else if(s.equals(hoge.TLE.toString())){\n tle++;\n }else if(s.equals(hoge.RE.toString())){\n re++;\n }", "s.equals(hoge.WA.toString())", "s.equals", "s", "hoge.WA.toString()", "hoge.WA.toString", "hoge.WA", "hoge", "hoge.WA", "{\n wa++;\n }", "wa++", "wa", "if(s.equals(hoge.TLE.toString())){\n tle++;\n }else if(s.equals(hoge.RE.toString())){\n re++;\n }", "s.equals(hoge.TLE.toString())", "s.equals", "s", "hoge.TLE.toString()", "hoge.TLE.toString", "hoge.TLE", "hoge", "hoge.TLE", "{\n tle++;\n }", "tle++", "tle", "if(s.equals(hoge.RE.toString())){\n re++;\n }", "s.equals(hoge.RE.toString())", "s.equals", "s", "hoge.RE.toString()", "hoge.RE.toString", "hoge.RE", "hoge", "hoge.RE", "{\n re++;\n }", "re++", "re", "scanner.close()", "scanner.close", "scanner", "System.out.println( String.format(\"AC x %s\", ac) )", "System.out.println", "System.out", "System", "System.out", "String.format(\"AC x %s\", ac)", "String.format", "String", "\"AC x %s\"", "ac", "System.out.println( String.format(\"WA x %s\", wa) )", "System.out.println", "System.out", "System", "System.out", "String.format(\"WA x %s\", wa)", "String.format", "String", "\"WA x %s\"", "wa", "System.out.println( String.format(\"TLE x %s\", tle) )", "System.out.println", "System.out", "System", "System.out", "String.format(\"TLE x %s\", tle)", "String.format", "String", "\"TLE x %s\"", "tle", "System.out.println( String.format(\"RE x %s\", re) )", "System.out.println", "System.out", "System", "System.out", "String.format(\"RE x %s\", re)", "String.format", "String", "\"RE x %s\"", "re", "String[] args", "args", "private enum hoge{\n AC,\n WA,\n TLE,\n RE;\n }", "hoge", "AC", "AC", "WA", "WA", "TLE", "TLE", "RE", "RE", "import java.io.*;\nimport java.uti", "import java.io.*;\nimport java.util.Scanner;\npublic class Main {\n private enum hoge{\n ", "public class Main {\n private enum hoge{\n AC,\n WA,\n TLE,\n RE;\n }\n public static void main(String[] args) {\n InputStream in = System.in;\n Scanner scanner = new Scanner(in);\n\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n\n int next = scanner.nextInt();\n for (int i = 0; i <= next; i++) {\n String s = scanner.nextLine();\n if (s.equals(hoge.AC.toString())) {\n ac++;\n }else if(s.equals(hoge.WA.toString())){\n wa++;\n }else if(s.equals(hoge.TLE.toString())){\n tle++;\n }else if(s.equals(hoge.RE.toString())){\n re++;\n }\n }\n scanner.close();\n System.out.println( String.format(\"AC x %s\", ac) );\n System.out.println( String.format(\"WA x %s\", wa) );\n System.out.println( String.format(\"TLE x %s\", tle) );\n System.out.println( String.format(\"RE x %s\", re) );\n }\n\n}", "public class Main {\n private enum hoge{\n AC,\n WA,\n TLE,\n RE;\n }\n public static void main(String[] args) {\n InputStream in = System.in;\n Scanner scanner = new Scanner(in);\n\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n\n int next = scanner.nextInt();\n for (int i = 0; i <= next; i++) {\n String s = scanner.nextLine();\n if (s.equals(hoge.AC.toString())) {\n ac++;\n }else if(s.equals(hoge.WA.toString())){\n wa++;\n }else if(s.equals(hoge.TLE.toString())){\n tle++;\n }else if(s.equals(hoge.RE.toString())){\n re++;\n }\n }\n scanner.close();\n System.out.println( String.format(\"AC x %s\", ac) );\n System.out.println( String.format(\"WA x %s\", wa) );\n System.out.println( String.format(\"TLE x %s\", tle) );\n System.out.println( String.format(\"RE x %s\", re) );\n }\n\n}", "Main" ]
import java.io.*; import java.util.Scanner; public class Main { private enum hoge{ AC, WA, TLE, RE; } public static void main(String[] args) { InputStream in = System.in; Scanner scanner = new Scanner(in); int ac = 0; int wa = 0; int tle = 0; int re = 0; int next = scanner.nextInt(); for (int i = 0; i <= next; i++) { String s = scanner.nextLine(); if (s.equals(hoge.AC.toString())) { ac++; }else if(s.equals(hoge.WA.toString())){ wa++; }else if(s.equals(hoge.TLE.toString())){ tle++; }else if(s.equals(hoge.RE.toString())){ re++; } } scanner.close(); System.out.println( String.format("AC x %s", ac) ); System.out.println( String.format("WA x %s", wa) ); System.out.println( String.format("TLE x %s", tle) ); System.out.println( String.format("RE x %s", re) ); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 40, 13, 14, 4, 18, 13, 17, 30, 40, 13, 14, 4, 18, 13, 17, 30, 40, 13, 14, 4, 18, 13, 17, 30, 40, 13, 4, 18, 18, 13, 13, 2, 17, 13, 4, 18, 18, 13, 13, 2, 17, 13, 4, 18, 18, 13, 13, 2, 17, 13, 4, 18, 18, 13, 13, 2, 17, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 117, 5 ], [ 117, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 8, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 29, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 41, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 47, 52 ], [ 52, 53 ], [ 53, 54 ], [ 47, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 55, 60 ], [ 60, 61 ], [ 61, 62 ], [ 55, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 63, 68 ], [ 68, 69 ], [ 69, 70 ], [ 63, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 71, 76 ], [ 76, 77 ], [ 77, 78 ], [ 8, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 84, 85 ], [ 84, 86 ], [ 8, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 92, 93 ], [ 92, 94 ], [ 8, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 100, 101 ], [ 100, 102 ], [ 8, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 103, 108 ], [ 108, 109 ], [ 108, 110 ], [ 8, 111 ], [ 111, 112 ], [ 112, 113 ], [ 6, 114 ], [ 114, 115 ], [ 0, 116 ], [ 116, 117 ], [ 116, 118 ] ]
[ "import java.util.Scanner;\n\n\n\npublic class Main {\n \n\tpublic static void main(String[] args) {\n \n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint ac = 0;\n\t\tint wa = 0;\n\t\tint tle = 0;\n\t\tint re = 0;\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString judge = sc.next();\n\t\t\tif(judge.equals(\"AC\")) {\n\t\t\t\tac++;\n\t\t\t}else if(judge.equals(\"WA\")) {\n\t\t\t\twa++;\n\t\t\t}else if(judge.equals(\"TLE\")) {\n\t\t\t\ttle++;\n\t\t\t}else if(judge.equals(\"RE\")) {\n\t\t\t\tre++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"AC x \" + ac);\n\t\tSystem.out.println(\"WA x \" + wa);\n\t\tSystem.out.println(\"TLE x \" + tle);\n\t\tSystem.out.println(\"RE x \" + re);\n\t\tsc.close();\n\t}\n \n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n \n\tpublic static void main(String[] args) {\n \n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint ac = 0;\n\t\tint wa = 0;\n\t\tint tle = 0;\n\t\tint re = 0;\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString judge = sc.next();\n\t\t\tif(judge.equals(\"AC\")) {\n\t\t\t\tac++;\n\t\t\t}else if(judge.equals(\"WA\")) {\n\t\t\t\twa++;\n\t\t\t}else if(judge.equals(\"TLE\")) {\n\t\t\t\ttle++;\n\t\t\t}else if(judge.equals(\"RE\")) {\n\t\t\t\tre++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"AC x \" + ac);\n\t\tSystem.out.println(\"WA x \" + wa);\n\t\tSystem.out.println(\"TLE x \" + tle);\n\t\tSystem.out.println(\"RE x \" + re);\n\t\tsc.close();\n\t}\n \n}", "Main", "public static void main(String[] args) {\n \n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint ac = 0;\n\t\tint wa = 0;\n\t\tint tle = 0;\n\t\tint re = 0;\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString judge = sc.next();\n\t\t\tif(judge.equals(\"AC\")) {\n\t\t\t\tac++;\n\t\t\t}else if(judge.equals(\"WA\")) {\n\t\t\t\twa++;\n\t\t\t}else if(judge.equals(\"TLE\")) {\n\t\t\t\ttle++;\n\t\t\t}else if(judge.equals(\"RE\")) {\n\t\t\t\tre++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"AC x \" + ac);\n\t\tSystem.out.println(\"WA x \" + wa);\n\t\tSystem.out.println(\"TLE x \" + tle);\n\t\tSystem.out.println(\"RE x \" + re);\n\t\tsc.close();\n\t}", "main", "{\n \n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint ac = 0;\n\t\tint wa = 0;\n\t\tint tle = 0;\n\t\tint re = 0;\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString judge = sc.next();\n\t\t\tif(judge.equals(\"AC\")) {\n\t\t\t\tac++;\n\t\t\t}else if(judge.equals(\"WA\")) {\n\t\t\t\twa++;\n\t\t\t}else if(judge.equals(\"TLE\")) {\n\t\t\t\ttle++;\n\t\t\t}else if(judge.equals(\"RE\")) {\n\t\t\t\tre++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"AC x \" + ac);\n\t\tSystem.out.println(\"WA x \" + wa);\n\t\tSystem.out.println(\"TLE x \" + tle);\n\t\tSystem.out.println(\"RE x \" + re);\n\t\tsc.close();\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int ac = 0;", "ac", "0", "int wa = 0;", "wa", "0", "int tle = 0;", "tle", "0", "int re = 0;", "re", "0", "for(int i = 0; i < n; i++) {\n\t\t\tString judge = sc.next();\n\t\t\tif(judge.equals(\"AC\")) {\n\t\t\t\tac++;\n\t\t\t}else if(judge.equals(\"WA\")) {\n\t\t\t\twa++;\n\t\t\t}else if(judge.equals(\"TLE\")) {\n\t\t\t\ttle++;\n\t\t\t}else if(judge.equals(\"RE\")) {\n\t\t\t\tre++;\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tString judge = sc.next();\n\t\t\tif(judge.equals(\"AC\")) {\n\t\t\t\tac++;\n\t\t\t}else if(judge.equals(\"WA\")) {\n\t\t\t\twa++;\n\t\t\t}else if(judge.equals(\"TLE\")) {\n\t\t\t\ttle++;\n\t\t\t}else if(judge.equals(\"RE\")) {\n\t\t\t\tre++;\n\t\t\t}\n\t\t}", "{\n\t\t\tString judge = sc.next();\n\t\t\tif(judge.equals(\"AC\")) {\n\t\t\t\tac++;\n\t\t\t}else if(judge.equals(\"WA\")) {\n\t\t\t\twa++;\n\t\t\t}else if(judge.equals(\"TLE\")) {\n\t\t\t\ttle++;\n\t\t\t}else if(judge.equals(\"RE\")) {\n\t\t\t\tre++;\n\t\t\t}\n\t\t}", "String judge = sc.next();", "judge", "sc.next()", "sc.next", "sc", "if(judge.equals(\"AC\")) {\n\t\t\t\tac++;\n\t\t\t}else if(judge.equals(\"WA\")) {\n\t\t\t\twa++;\n\t\t\t}else if(judge.equals(\"TLE\")) {\n\t\t\t\ttle++;\n\t\t\t}else if(judge.equals(\"RE\")) {\n\t\t\t\tre++;\n\t\t\t}", "judge.equals(\"AC\")", "judge.equals", "judge", "\"AC\"", "{\n\t\t\t\tac++;\n\t\t\t}", "ac++", "ac", "if(judge.equals(\"WA\")) {\n\t\t\t\twa++;\n\t\t\t}else if(judge.equals(\"TLE\")) {\n\t\t\t\ttle++;\n\t\t\t}else if(judge.equals(\"RE\")) {\n\t\t\t\tre++;\n\t\t\t}", "judge.equals(\"WA\")", "judge.equals", "judge", "\"WA\"", "{\n\t\t\t\twa++;\n\t\t\t}", "wa++", "wa", "if(judge.equals(\"TLE\")) {\n\t\t\t\ttle++;\n\t\t\t}else if(judge.equals(\"RE\")) {\n\t\t\t\tre++;\n\t\t\t}", "judge.equals(\"TLE\")", "judge.equals", "judge", "\"TLE\"", "{\n\t\t\t\ttle++;\n\t\t\t}", "tle++", "tle", "if(judge.equals(\"RE\")) {\n\t\t\t\tre++;\n\t\t\t}", "judge.equals(\"RE\")", "judge.equals", "judge", "\"RE\"", "{\n\t\t\t\tre++;\n\t\t\t}", "re++", "re", "System.out.println(\"AC x \" + ac)", "System.out.println", "System.out", "System", "System.out", "\"AC x \" + ac", "\"AC x \"", "ac", "System.out.println(\"WA x \" + wa)", "System.out.println", "System.out", "System", "System.out", "\"WA x \" + wa", "\"WA x \"", "wa", "System.out.println(\"TLE x \" + tle)", "System.out.println", "System.out", "System", "System.out", "\"TLE x \" + tle", "\"TLE x \"", "tle", "System.out.println(\"RE x \" + re)", "System.out.println", "System.out", "System", "System.out", "\"RE x \" + re", "\"RE x \"", "re", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n \n\tpublic static void main(String[] args) {\n \n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint ac = 0;\n\t\tint wa = 0;\n\t\tint tle = 0;\n\t\tint re = 0;\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString judge = sc.next();\n\t\t\tif(judge.equals(\"AC\")) {\n\t\t\t\tac++;\n\t\t\t}else if(judge.equals(\"WA\")) {\n\t\t\t\twa++;\n\t\t\t}else if(judge.equals(\"TLE\")) {\n\t\t\t\ttle++;\n\t\t\t}else if(judge.equals(\"RE\")) {\n\t\t\t\tre++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"AC x \" + ac);\n\t\tSystem.out.println(\"WA x \" + wa);\n\t\tSystem.out.println(\"TLE x \" + tle);\n\t\tSystem.out.println(\"RE x \" + re);\n\t\tsc.close();\n\t}\n \n}", "public class Main {\n \n\tpublic static void main(String[] args) {\n \n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint ac = 0;\n\t\tint wa = 0;\n\t\tint tle = 0;\n\t\tint re = 0;\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString judge = sc.next();\n\t\t\tif(judge.equals(\"AC\")) {\n\t\t\t\tac++;\n\t\t\t}else if(judge.equals(\"WA\")) {\n\t\t\t\twa++;\n\t\t\t}else if(judge.equals(\"TLE\")) {\n\t\t\t\ttle++;\n\t\t\t}else if(judge.equals(\"RE\")) {\n\t\t\t\tre++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"AC x \" + ac);\n\t\tSystem.out.println(\"WA x \" + wa);\n\t\tSystem.out.println(\"TLE x \" + tle);\n\t\tSystem.out.println(\"RE x \" + re);\n\t\tsc.close();\n\t}\n \n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int ac = 0; int wa = 0; int tle = 0; int re = 0; for(int i = 0; i < n; i++) { String judge = sc.next(); if(judge.equals("AC")) { ac++; }else if(judge.equals("WA")) { wa++; }else if(judge.equals("TLE")) { tle++; }else if(judge.equals("RE")) { re++; } } System.out.println("AC x " + ac); System.out.println("WA x " + wa); System.out.println("TLE x " + tle); System.out.println("RE x " + re); sc.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 40, 13, 14, 4, 18, 13, 17, 40, 13, 14, 4, 18, 13, 17, 40, 13, 40, 13, 4, 18, 18, 13, 13, 2, 17, 13, 4, 18, 18, 13, 13, 2, 17, 13, 4, 18, 18, 13, 13, 2, 17, 13, 4, 18, 18, 13, 13, 2, 17, 13, 12, 13, 30, 41, 13, 17, 42, 2, 40, 13, 17, 30, 4, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 128, 11 ], [ 128, 12 ], [ 12, 13 ], [ 12, 14 ], [ 128, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 17, 23 ], [ 23, 24 ], [ 23, 25 ], [ 17, 26 ], [ 26, 27 ], [ 26, 28 ], [ 17, 29 ], [ 29, 30 ], [ 29, 31 ], [ 17, 32 ], [ 32, 33 ], [ 32, 34 ], [ 17, 35 ], [ 35, 36 ], [ 36, 37 ], [ 17, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 43, 44 ], [ 43, 45 ], [ 38, 46 ], [ 46, 47 ], [ 47, 48 ], [ 38, 49 ], [ 50, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 50, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 56, 61 ], [ 61, 62 ], [ 56, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 63, 68 ], [ 68, 69 ], [ 63, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 70, 75 ], [ 75, 76 ], [ 70, 77 ], [ 77, 78 ], [ 17, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 84, 85 ], [ 84, 86 ], [ 17, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 92, 93 ], [ 92, 94 ], [ 17, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 100, 101 ], [ 100, 102 ], [ 17, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 103, 108 ], [ 108, 109 ], [ 108, 110 ], [ 128, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 113, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 118, 121 ], [ 117, 122 ], [ 122, 123 ], [ 123, 124 ], [ 111, 125 ], [ 125, 126 ], [ 0, 127 ], [ 127, 128 ], [ 127, 129 ] ]
[ "/*input\n5 5 2 3\n\n\n\n*/\nimport java.util.*;\nimport java.lang.*;\nimport java.io.*;\npublic class Main\n {\n static Scanner in = new Scanner(System.in);\n \n \n \n \n public static void solve()\n { \n int n=in.nextInt();\n int ac=0,wa=0,tle=0,re=0;\n in.nextLine();\n for(int i=0;i<n;i++)\n {\n String s=in.nextLine();\n if(s.equals(\"AC\"))ac++;\n else if(s.equals(\"WA\"))wa++;\n else if(s.equals(\"TLE\"))tle++;\n else re++;\n \n }\n \n System.out.println(\"AC x \"+ac);\n System.out.println(\"WA x \"+wa);\n System.out.println(\"TLE x \"+tle);\n System.out.println(\"RE x \"+re);\n \t\n \t\n }\n \n\tpublic static void main (String[] args)\n\t {\n\t int t=1;\n\t while(t-->0)\n\t {\n\t solve();\n\t }\n}\n}", "import java.util.*;", "util.*", "java", "import java.lang.*;", "lang.*", "java", "import java.io.*;", "io.*", "java", "public class Main\n {\n static Scanner in = new Scanner(System.in);\n \n \n \n \n public static void solve()\n { \n int n=in.nextInt();\n int ac=0,wa=0,tle=0,re=0;\n in.nextLine();\n for(int i=0;i<n;i++)\n {\n String s=in.nextLine();\n if(s.equals(\"AC\"))ac++;\n else if(s.equals(\"WA\"))wa++;\n else if(s.equals(\"TLE\"))tle++;\n else re++;\n \n }\n \n System.out.println(\"AC x \"+ac);\n System.out.println(\"WA x \"+wa);\n System.out.println(\"TLE x \"+tle);\n System.out.println(\"RE x \"+re);\n \t\n \t\n }\n \n\tpublic static void main (String[] args)\n\t {\n\t int t=1;\n\t while(t-->0)\n\t {\n\t solve();\n\t }\n}\n}", "Main", "static Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "public static void solve()\n { \n int n=in.nextInt();\n int ac=0,wa=0,tle=0,re=0;\n in.nextLine();\n for(int i=0;i<n;i++)\n {\n String s=in.nextLine();\n if(s.equals(\"AC\"))ac++;\n else if(s.equals(\"WA\"))wa++;\n else if(s.equals(\"TLE\"))tle++;\n else re++;\n \n }\n \n System.out.println(\"AC x \"+ac);\n System.out.println(\"WA x \"+wa);\n System.out.println(\"TLE x \"+tle);\n System.out.println(\"RE x \"+re);\n \t\n \t\n }", "solve", "{ \n int n=in.nextInt();\n int ac=0,wa=0,tle=0,re=0;\n in.nextLine();\n for(int i=0;i<n;i++)\n {\n String s=in.nextLine();\n if(s.equals(\"AC\"))ac++;\n else if(s.equals(\"WA\"))wa++;\n else if(s.equals(\"TLE\"))tle++;\n else re++;\n \n }\n \n System.out.println(\"AC x \"+ac);\n System.out.println(\"WA x \"+wa);\n System.out.println(\"TLE x \"+tle);\n System.out.println(\"RE x \"+re);\n \t\n \t\n }", "int n=in.nextInt();", "n", "in.nextInt()", "in.nextInt", "in", "int ac=0", "ac", "0", "wa=0", "wa", "0", "tle=0", "tle", "0", "re=0;", "re", "0", "in.nextLine()", "in.nextLine", "in", "for(int i=0;i<n;i++)\n {\n String s=in.nextLine();\n if(s.equals(\"AC\"))ac++;\n else if(s.equals(\"WA\"))wa++;\n else if(s.equals(\"TLE\"))tle++;\n else re++;\n \n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n String s=in.nextLine();\n if(s.equals(\"AC\"))ac++;\n else if(s.equals(\"WA\"))wa++;\n else if(s.equals(\"TLE\"))tle++;\n else re++;\n \n }", "{\n String s=in.nextLine();\n if(s.equals(\"AC\"))ac++;\n else if(s.equals(\"WA\"))wa++;\n else if(s.equals(\"TLE\"))tle++;\n else re++;\n \n }", "String s=in.nextLine();", "s", "in.nextLine()", "in.nextLine", "in", "if(s.equals(\"AC\"))ac++;\n else if(s.equals(\"WA\"))wa++;\n else if(s.equals(\"TLE\"))tle++;\n else re++;", "s.equals(\"AC\")", "s.equals", "s", "\"AC\"", "ac++", "ac", "if(s.equals(\"WA\"))wa++;\n else if(s.equals(\"TLE\"))tle++;\n else re++;", "s.equals(\"WA\")", "s.equals", "s", "\"WA\"", "wa++", "wa", "if(s.equals(\"TLE\"))tle++;\n else re++;", "s.equals(\"TLE\")", "s.equals", "s", "\"TLE\"", "tle++", "tle", "re++", "re", "System.out.println(\"AC x \"+ac)", "System.out.println", "System.out", "System", "System.out", "\"AC x \"+ac", "\"AC x \"", "ac", "System.out.println(\"WA x \"+wa)", "System.out.println", "System.out", "System", "System.out", "\"WA x \"+wa", "\"WA x \"", "wa", "System.out.println(\"TLE x \"+tle)", "System.out.println", "System.out", "System", "System.out", "\"TLE x \"+tle", "\"TLE x \"", "tle", "System.out.println(\"RE x \"+re)", "System.out.println", "System.out", "System", "System.out", "\"RE x \"+re", "\"RE x \"", "re", "public static void main (String[] args)\n\t {\n\t int t=1;\n\t while(t-->0)\n\t {\n\t solve();\n\t }\n}", "main", "{\n\t int t=1;\n\t while(t-->0)\n\t {\n\t solve();\n\t }\n}", "int t=1;", "t", "1", "while(t-->0)\n\t {\n\t solve();\n\t }", "t-->0", "t--", "t", "0", "{\n\t solve();\n\t }", "solve()", "solve", "String[] args", "args", "public class Main\n {\n static Scanner in = new Scanner(System.in);\n \n \n \n \n public static void solve()\n { \n int n=in.nextInt();\n int ac=0,wa=0,tle=0,re=0;\n in.nextLine();\n for(int i=0;i<n;i++)\n {\n String s=in.nextLine();\n if(s.equals(\"AC\"))ac++;\n else if(s.equals(\"WA\"))wa++;\n else if(s.equals(\"TLE\"))tle++;\n else re++;\n \n }\n \n System.out.println(\"AC x \"+ac);\n System.out.println(\"WA x \"+wa);\n System.out.println(\"TLE x \"+tle);\n System.out.println(\"RE x \"+re);\n \t\n \t\n }\n \n\tpublic static void main (String[] args)\n\t {\n\t int t=1;\n\t while(t-->0)\n\t {\n\t solve();\n\t }\n}\n}", "public class Main\n {\n static Scanner in = new Scanner(System.in);\n \n \n \n \n public static void solve()\n { \n int n=in.nextInt();\n int ac=0,wa=0,tle=0,re=0;\n in.nextLine();\n for(int i=0;i<n;i++)\n {\n String s=in.nextLine();\n if(s.equals(\"AC\"))ac++;\n else if(s.equals(\"WA\"))wa++;\n else if(s.equals(\"TLE\"))tle++;\n else re++;\n \n }\n \n System.out.println(\"AC x \"+ac);\n System.out.println(\"WA x \"+wa);\n System.out.println(\"TLE x \"+tle);\n System.out.println(\"RE x \"+re);\n \t\n \t\n }\n \n\tpublic static void main (String[] args)\n\t {\n\t int t=1;\n\t while(t-->0)\n\t {\n\t solve();\n\t }\n}\n}", "Main" ]
/*input 5 5 2 3 */ import java.util.*; import java.lang.*; import java.io.*; public class Main { static Scanner in = new Scanner(System.in); public static void solve() { int n=in.nextInt(); int ac=0,wa=0,tle=0,re=0; in.nextLine(); for(int i=0;i<n;i++) { String s=in.nextLine(); if(s.equals("AC"))ac++; else if(s.equals("WA"))wa++; else if(s.equals("TLE"))tle++; else re++; } System.out.println("AC x "+ac); System.out.println("WA x "+wa); System.out.println("TLE x "+tle); System.out.println("RE x "+re); } public static void main (String[] args) { int t=1; while(t-->0) { solve(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 35, 13, 34, 17, 1, 0, 18, 13, 17, 2, 18, 13, 17, 17, 3, 34, 17, 1, 0, 18, 13, 17, 2, 18, 13, 17, 17, 3, 34, 17, 1, 0, 18, 13, 17, 2, 18, 13, 17, 17, 3, 34, 1, 0, 18, 13, 17, 2, 18, 13, 17, 17, 3, 4, 18, 18, 13, 13, 2, 17, 18, 13, 17, 4, 18, 18, 13, 13, 2, 17, 18, 13, 17, 4, 18, 18, 13, 13, 2, 17, 18, 13, 17, 4, 18, 18, 13, 13, 2, 17, 18, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 135, 5 ], [ 135, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 33, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 43, 53 ], [ 39, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 61, 65 ], [ 56, 66 ], [ 39, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 69, 79 ], [ 39, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 81, 91 ], [ 8, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 99, 101 ], [ 8, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 102, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 109, 111 ], [ 8, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 112, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 119, 121 ], [ 8, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 122, 127 ], [ 127, 128 ], [ 127, 129 ], [ 129, 130 ], [ 129, 131 ], [ 6, 132 ], [ 132, 133 ], [ 0, 134 ], [ 134, 135 ], [ 134, 136 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n \n int N = sc.nextInt();\n int[] C = new int[4];\n\n for (int i = 0; i < N; i++) {\n String s = sc.next();\n switch (s) {\n case \"AC\":\n C[0] = C[0] + 1;\n break;\n case \"WA\":\n C[1] = C[1] + 1;\n break;\n case \"TLE\":\n C[2] = C[2] + 1;\n break;\n default:\n C[3] = C[3] + 1;\n break;\n }\n }\n\n System.out.println(\"AC x \" + C[0]);\n System.out.println(\"WA x \" + C[1]);\n System.out.println(\"TLE x \" + C[2]);\n System.out.println(\"RE x \" + C[3]);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n \n int N = sc.nextInt();\n int[] C = new int[4];\n\n for (int i = 0; i < N; i++) {\n String s = sc.next();\n switch (s) {\n case \"AC\":\n C[0] = C[0] + 1;\n break;\n case \"WA\":\n C[1] = C[1] + 1;\n break;\n case \"TLE\":\n C[2] = C[2] + 1;\n break;\n default:\n C[3] = C[3] + 1;\n break;\n }\n }\n\n System.out.println(\"AC x \" + C[0]);\n System.out.println(\"WA x \" + C[1]);\n System.out.println(\"TLE x \" + C[2]);\n System.out.println(\"RE x \" + C[3]);\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n \n int N = sc.nextInt();\n int[] C = new int[4];\n\n for (int i = 0; i < N; i++) {\n String s = sc.next();\n switch (s) {\n case \"AC\":\n C[0] = C[0] + 1;\n break;\n case \"WA\":\n C[1] = C[1] + 1;\n break;\n case \"TLE\":\n C[2] = C[2] + 1;\n break;\n default:\n C[3] = C[3] + 1;\n break;\n }\n }\n\n System.out.println(\"AC x \" + C[0]);\n System.out.println(\"WA x \" + C[1]);\n System.out.println(\"TLE x \" + C[2]);\n System.out.println(\"RE x \" + C[3]);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n \n int N = sc.nextInt();\n int[] C = new int[4];\n\n for (int i = 0; i < N; i++) {\n String s = sc.next();\n switch (s) {\n case \"AC\":\n C[0] = C[0] + 1;\n break;\n case \"WA\":\n C[1] = C[1] + 1;\n break;\n case \"TLE\":\n C[2] = C[2] + 1;\n break;\n default:\n C[3] = C[3] + 1;\n break;\n }\n }\n\n System.out.println(\"AC x \" + C[0]);\n System.out.println(\"WA x \" + C[1]);\n System.out.println(\"TLE x \" + C[2]);\n System.out.println(\"RE x \" + C[3]);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "int[] C = new int[4];", "C", "new int[4]", "4", "for (int i = 0; i < N; i++) {\n String s = sc.next();\n switch (s) {\n case \"AC\":\n C[0] = C[0] + 1;\n break;\n case \"WA\":\n C[1] = C[1] + 1;\n break;\n case \"TLE\":\n C[2] = C[2] + 1;\n break;\n default:\n C[3] = C[3] + 1;\n break;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n String s = sc.next();\n switch (s) {\n case \"AC\":\n C[0] = C[0] + 1;\n break;\n case \"WA\":\n C[1] = C[1] + 1;\n break;\n case \"TLE\":\n C[2] = C[2] + 1;\n break;\n default:\n C[3] = C[3] + 1;\n break;\n }\n }", "{\n String s = sc.next();\n switch (s) {\n case \"AC\":\n C[0] = C[0] + 1;\n break;\n case \"WA\":\n C[1] = C[1] + 1;\n break;\n case \"TLE\":\n C[2] = C[2] + 1;\n break;\n default:\n C[3] = C[3] + 1;\n break;\n }\n }", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "switch (s) {\n case \"AC\":\n C[0] = C[0] + 1;\n break;\n case \"WA\":\n C[1] = C[1] + 1;\n break;\n case \"TLE\":\n C[2] = C[2] + 1;\n break;\n default:\n C[3] = C[3] + 1;\n break;\n }", "s", "case \"AC\":", "\"AC\"", "case \"AC\":", "C[0] = C[0] + 1", "C[0]", "C", "0", "C[0] + 1", "C[0]", "C", "0", "1", "break;", "case \"WA\":", "\"WA\"", "case \"WA\":", "C[1] = C[1] + 1", "C[1]", "C", "1", "C[1] + 1", "C[1]", "C", "1", "1", "break;", "case \"TLE\":", "\"TLE\"", "case \"TLE\":", "C[2] = C[2] + 1", "C[2]", "C", "2", "C[2] + 1", "C[2]", "C", "2", "1", "break;", "default:", "default:", "C[3] = C[3] + 1", "C[3]", "C", "3", "C[3] + 1", "C[3]", "C", "3", "1", "break;", "System.out.println(\"AC x \" + C[0])", "System.out.println", "System.out", "System", "System.out", "\"AC x \" + C[0]", "\"AC x \"", "C[0]", "C", "0", "System.out.println(\"WA x \" + C[1])", "System.out.println", "System.out", "System", "System.out", "\"WA x \" + C[1]", "\"WA x \"", "C[1]", "C", "1", "System.out.println(\"TLE x \" + C[2])", "System.out.println", "System.out", "System", "System.out", "\"TLE x \" + C[2]", "\"TLE x \"", "C[2]", "C", "2", "System.out.println(\"RE x \" + C[3])", "System.out.println", "System.out", "System", "System.out", "\"RE x \" + C[3]", "\"RE x \"", "C[3]", "C", "3", "String[] args", "args", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n \n int N = sc.nextInt();\n int[] C = new int[4];\n\n for (int i = 0; i < N; i++) {\n String s = sc.next();\n switch (s) {\n case \"AC\":\n C[0] = C[0] + 1;\n break;\n case \"WA\":\n C[1] = C[1] + 1;\n break;\n case \"TLE\":\n C[2] = C[2] + 1;\n break;\n default:\n C[3] = C[3] + 1;\n break;\n }\n }\n\n System.out.println(\"AC x \" + C[0]);\n System.out.println(\"WA x \" + C[1]);\n System.out.println(\"TLE x \" + C[2]);\n System.out.println(\"RE x \" + C[3]);\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n \n int N = sc.nextInt();\n int[] C = new int[4];\n\n for (int i = 0; i < N; i++) {\n String s = sc.next();\n switch (s) {\n case \"AC\":\n C[0] = C[0] + 1;\n break;\n case \"WA\":\n C[1] = C[1] + 1;\n break;\n case \"TLE\":\n C[2] = C[2] + 1;\n break;\n default:\n C[3] = C[3] + 1;\n break;\n }\n }\n\n System.out.println(\"AC x \" + C[0]);\n System.out.println(\"WA x \" + C[1]);\n System.out.println(\"TLE x \" + C[2]);\n System.out.println(\"RE x \" + C[3]);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] C = new int[4]; for (int i = 0; i < N; i++) { String s = sc.next(); switch (s) { case "AC": C[0] = C[0] + 1; break; case "WA": C[1] = C[1] + 1; break; case "TLE": C[2] = C[2] + 1; break; default: C[3] = C[3] + 1; break; } } System.out.println("AC x " + C[0]); System.out.println("WA x " + C[1]); System.out.println("TLE x " + C[2]); System.out.println("RE x " + C[3]); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 40, 13, 14, 4, 18, 13, 17, 30, 40, 13, 14, 4, 18, 13, 17, 30, 40, 13, 30, 40, 13, 4, 18, 18, 13, 13, 2, 17, 13, 4, 18, 18, 13, 13, 2, 17, 13, 4, 18, 18, 13, 13, 2, 17, 13, 4, 18, 18, 13, 13, 2, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 109, 5 ], [ 109, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 8, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 29, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 41, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 47, 52 ], [ 52, 53 ], [ 53, 54 ], [ 47, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 55, 60 ], [ 60, 61 ], [ 61, 62 ], [ 55, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 63, 68 ], [ 68, 69 ], [ 69, 70 ], [ 63, 71 ], [ 71, 72 ], [ 72, 73 ], [ 8, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 79, 80 ], [ 79, 81 ], [ 8, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 87, 88 ], [ 87, 89 ], [ 8, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 90, 95 ], [ 95, 96 ], [ 95, 97 ], [ 8, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 103, 104 ], [ 103, 105 ], [ 6, 106 ], [ 106, 107 ], [ 0, 108 ], [ 108, 109 ], [ 108, 110 ] ]
[ "import java.util.*;\n \npublic class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n for(int i = 0; i < n; i++){\n \tString s = sc.next();\n if(s.equals(\"AC\")){\n \tac++;\n }else if(s.equals(\"WA\")){\n \twa++;\n }else if(s.equals(\"TLE\")){\n \ttle++;\n }else{\n \tre++;\n }\n }\n System.out.println(\"AC x \" + ac);\n System.out.println(\"WA x \" + wa);\n System.out.println(\"TLE x \" + tle);\n System.out.println(\"RE x \" + re);\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n for(int i = 0; i < n; i++){\n \tString s = sc.next();\n if(s.equals(\"AC\")){\n \tac++;\n }else if(s.equals(\"WA\")){\n \twa++;\n }else if(s.equals(\"TLE\")){\n \ttle++;\n }else{\n \tre++;\n }\n }\n System.out.println(\"AC x \" + ac);\n System.out.println(\"WA x \" + wa);\n System.out.println(\"TLE x \" + tle);\n System.out.println(\"RE x \" + re);\n\t}\n}", "Main", "public static void main(String[] args) throws Exception{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n for(int i = 0; i < n; i++){\n \tString s = sc.next();\n if(s.equals(\"AC\")){\n \tac++;\n }else if(s.equals(\"WA\")){\n \twa++;\n }else if(s.equals(\"TLE\")){\n \ttle++;\n }else{\n \tre++;\n }\n }\n System.out.println(\"AC x \" + ac);\n System.out.println(\"WA x \" + wa);\n System.out.println(\"TLE x \" + tle);\n System.out.println(\"RE x \" + re);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n for(int i = 0; i < n; i++){\n \tString s = sc.next();\n if(s.equals(\"AC\")){\n \tac++;\n }else if(s.equals(\"WA\")){\n \twa++;\n }else if(s.equals(\"TLE\")){\n \ttle++;\n }else{\n \tre++;\n }\n }\n System.out.println(\"AC x \" + ac);\n System.out.println(\"WA x \" + wa);\n System.out.println(\"TLE x \" + tle);\n System.out.println(\"RE x \" + re);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int ac = 0;", "ac", "0", "int wa = 0;", "wa", "0", "int tle = 0;", "tle", "0", "int re = 0;", "re", "0", "for(int i = 0; i < n; i++){\n \tString s = sc.next();\n if(s.equals(\"AC\")){\n \tac++;\n }else if(s.equals(\"WA\")){\n \twa++;\n }else if(s.equals(\"TLE\")){\n \ttle++;\n }else{\n \tre++;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n \tString s = sc.next();\n if(s.equals(\"AC\")){\n \tac++;\n }else if(s.equals(\"WA\")){\n \twa++;\n }else if(s.equals(\"TLE\")){\n \ttle++;\n }else{\n \tre++;\n }\n }", "{\n \tString s = sc.next();\n if(s.equals(\"AC\")){\n \tac++;\n }else if(s.equals(\"WA\")){\n \twa++;\n }else if(s.equals(\"TLE\")){\n \ttle++;\n }else{\n \tre++;\n }\n }", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "if(s.equals(\"AC\")){\n \tac++;\n }else if(s.equals(\"WA\")){\n \twa++;\n }else if(s.equals(\"TLE\")){\n \ttle++;\n }else{\n \tre++;\n }", "s.equals(\"AC\")", "s.equals", "s", "\"AC\"", "{\n \tac++;\n }", "ac++", "ac", "if(s.equals(\"WA\")){\n \twa++;\n }else if(s.equals(\"TLE\")){\n \ttle++;\n }else{\n \tre++;\n }", "s.equals(\"WA\")", "s.equals", "s", "\"WA\"", "{\n \twa++;\n }", "wa++", "wa", "if(s.equals(\"TLE\")){\n \ttle++;\n }else{\n \tre++;\n }", "s.equals(\"TLE\")", "s.equals", "s", "\"TLE\"", "{\n \ttle++;\n }", "tle++", "tle", "{\n \tre++;\n }", "re++", "re", "System.out.println(\"AC x \" + ac)", "System.out.println", "System.out", "System", "System.out", "\"AC x \" + ac", "\"AC x \"", "ac", "System.out.println(\"WA x \" + wa)", "System.out.println", "System.out", "System", "System.out", "\"WA x \" + wa", "\"WA x \"", "wa", "System.out.println(\"TLE x \" + tle)", "System.out.println", "System.out", "System", "System.out", "\"TLE x \" + tle", "\"TLE x \"", "tle", "System.out.println(\"RE x \" + re)", "System.out.println", "System.out", "System", "System.out", "\"RE x \" + re", "\"RE x \"", "re", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n for(int i = 0; i < n; i++){\n \tString s = sc.next();\n if(s.equals(\"AC\")){\n \tac++;\n }else if(s.equals(\"WA\")){\n \twa++;\n }else if(s.equals(\"TLE\")){\n \ttle++;\n }else{\n \tre++;\n }\n }\n System.out.println(\"AC x \" + ac);\n System.out.println(\"WA x \" + wa);\n System.out.println(\"TLE x \" + tle);\n System.out.println(\"RE x \" + re);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n for(int i = 0; i < n; i++){\n \tString s = sc.next();\n if(s.equals(\"AC\")){\n \tac++;\n }else if(s.equals(\"WA\")){\n \twa++;\n }else if(s.equals(\"TLE\")){\n \ttle++;\n }else{\n \tre++;\n }\n }\n System.out.println(\"AC x \" + ac);\n System.out.println(\"WA x \" + wa);\n System.out.println(\"TLE x \" + tle);\n System.out.println(\"RE x \" + re);\n\t}\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) throws Exception{ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int ac = 0; int wa = 0; int tle = 0; int re = 0; for(int i = 0; i < n; i++){ String s = sc.next(); if(s.equals("AC")){ ac++; }else if(s.equals("WA")){ wa++; }else if(s.equals("TLE")){ tle++; }else{ re++; } } System.out.println("AC x " + ac); System.out.println("WA x " + wa); System.out.println("TLE x " + tle); System.out.println("RE x " + re); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 13, 14, 2, 13, 17, 0, 13, 17, 40, 13, 4, 18, 13, 13, 13, 41, 13, 4, 18, 13, 17, 14, 2, 13, 17, 0, 13, 17, 41, 13, 4, 18, 13, 17, 14, 2, 13, 17, 0, 13, 17, 41, 13, 4, 18, 13, 17, 14, 2, 13, 17, 0, 13, 17, 41, 13, 4, 18, 13, 17, 14, 2, 13, 17, 0, 13, 17, 4, 18, 18, 13, 13, 2, 17, 13, 4, 18, 18, 13, 13, 2, 17, 13, 4, 18, 18, 13, 13, 2, 17, 13, 4, 18, 18, 13, 13, 2, 17, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 11, 26 ], [ 26, 27 ], [ 26, 28 ], [ 11, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 29, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 41, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 41, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 57, 58 ], [ 57, 59 ], [ 53, 60 ], [ 60, 61 ], [ 41, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 62, 66 ], [ 11, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 11, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 77, 78 ], [ 77, 79 ], [ 11, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 11, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 90, 91 ], [ 90, 92 ], [ 11, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 11, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 103, 104 ], [ 103, 105 ], [ 11, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 109, 110 ], [ 108, 111 ], [ 11, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 112, 116 ], [ 116, 117 ], [ 116, 118 ], [ 11, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 119, 124 ], [ 124, 125 ], [ 124, 126 ], [ 11, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 127, 132 ], [ 132, 133 ], [ 132, 134 ], [ 11, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 135, 140 ], [ 140, 141 ], [ 140, 142 ], [ 11, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 143, 148 ], [ 148, 149 ], [ 148, 150 ], [ 9, 151 ], [ 151, 152 ] ]
[ "import java.util.Scanner;\nimport java.util.HashMap;\n \nclass Main {\n\tpublic static void main(String[] args) {\n \n\t Scanner sc = new Scanner(System.in);\n\t int N = sc.nextInt();\n\t String S = \"\";\n\t Integer count = 0;\n\t HashMap<String, Integer> map = new HashMap<>();\n\t \n\t for (int i = 1; i <= N ; i++) {\n\t S = sc.next();\n\t count = map.get(S);\n\t if (count == null) count = 1; else count++;\n\t map.put(S, count);\n\t }\n\t \n\t Integer AC = map.get(\"AC\"); if (AC == null) AC = 0;\n\t Integer WA = map.get(\"WA\"); if (WA == null) WA = 0;\n\t Integer TLE = map.get(\"TLE\"); if (TLE == null) TLE = 0;\n\t Integer RE = map.get(\"RE\"); if (RE == null) RE = 0;\n\t \n\t System.out.println(\"AC x \" + AC);\n\t System.out.println(\"WA x \" + WA);\n\t System.out.println(\"TLE x \" + TLE);\n\t System.out.println(\"RE x \" + RE);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.HashMap;", "HashMap", "java.util", "class Main {\n\tpublic static void main(String[] args) {\n \n\t Scanner sc = new Scanner(System.in);\n\t int N = sc.nextInt();\n\t String S = \"\";\n\t Integer count = 0;\n\t HashMap<String, Integer> map = new HashMap<>();\n\t \n\t for (int i = 1; i <= N ; i++) {\n\t S = sc.next();\n\t count = map.get(S);\n\t if (count == null) count = 1; else count++;\n\t map.put(S, count);\n\t }\n\t \n\t Integer AC = map.get(\"AC\"); if (AC == null) AC = 0;\n\t Integer WA = map.get(\"WA\"); if (WA == null) WA = 0;\n\t Integer TLE = map.get(\"TLE\"); if (TLE == null) TLE = 0;\n\t Integer RE = map.get(\"RE\"); if (RE == null) RE = 0;\n\t \n\t System.out.println(\"AC x \" + AC);\n\t System.out.println(\"WA x \" + WA);\n\t System.out.println(\"TLE x \" + TLE);\n\t System.out.println(\"RE x \" + RE);\n }\n}", "Main", "public static void main(String[] args) {\n \n\t Scanner sc = new Scanner(System.in);\n\t int N = sc.nextInt();\n\t String S = \"\";\n\t Integer count = 0;\n\t HashMap<String, Integer> map = new HashMap<>();\n\t \n\t for (int i = 1; i <= N ; i++) {\n\t S = sc.next();\n\t count = map.get(S);\n\t if (count == null) count = 1; else count++;\n\t map.put(S, count);\n\t }\n\t \n\t Integer AC = map.get(\"AC\"); if (AC == null) AC = 0;\n\t Integer WA = map.get(\"WA\"); if (WA == null) WA = 0;\n\t Integer TLE = map.get(\"TLE\"); if (TLE == null) TLE = 0;\n\t Integer RE = map.get(\"RE\"); if (RE == null) RE = 0;\n\t \n\t System.out.println(\"AC x \" + AC);\n\t System.out.println(\"WA x \" + WA);\n\t System.out.println(\"TLE x \" + TLE);\n\t System.out.println(\"RE x \" + RE);\n }", "main", "{\n \n\t Scanner sc = new Scanner(System.in);\n\t int N = sc.nextInt();\n\t String S = \"\";\n\t Integer count = 0;\n\t HashMap<String, Integer> map = new HashMap<>();\n\t \n\t for (int i = 1; i <= N ; i++) {\n\t S = sc.next();\n\t count = map.get(S);\n\t if (count == null) count = 1; else count++;\n\t map.put(S, count);\n\t }\n\t \n\t Integer AC = map.get(\"AC\"); if (AC == null) AC = 0;\n\t Integer WA = map.get(\"WA\"); if (WA == null) WA = 0;\n\t Integer TLE = map.get(\"TLE\"); if (TLE == null) TLE = 0;\n\t Integer RE = map.get(\"RE\"); if (RE == null) RE = 0;\n\t \n\t System.out.println(\"AC x \" + AC);\n\t System.out.println(\"WA x \" + WA);\n\t System.out.println(\"TLE x \" + TLE);\n\t System.out.println(\"RE x \" + RE);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "String S = \"\";", "S", "\"\"", "Integer count = 0;", "count", "0", "HashMap<String, Integer> map = new HashMap<>();", "map", "new HashMap<>()", "for (int i = 1; i <= N ; i++) {\n\t S = sc.next();\n\t count = map.get(S);\n\t if (count == null) count = 1; else count++;\n\t map.put(S, count);\n\t }", "int i = 1;", "int i = 1;", "i", "1", "i <= N", "i", "N", "i++", "i++", "i", "{\n\t S = sc.next();\n\t count = map.get(S);\n\t if (count == null) count = 1; else count++;\n\t map.put(S, count);\n\t }", "{\n\t S = sc.next();\n\t count = map.get(S);\n\t if (count == null) count = 1; else count++;\n\t map.put(S, count);\n\t }", "S = sc.next()", "S", "sc.next()", "sc.next", "sc", "count = map.get(S)", "count", "map.get(S)", "map.get", "map", "S", "if (count == null) count = 1; else count++;", "count == null", "count", "null", "count = 1", "count", "1", "count++", "count", "map.put(S, count)", "map.put", "map", "S", "count", "Integer AC = map.get(\"AC\");", "AC", "map.get(\"AC\")", "map.get", "map", "\"AC\"", "if (AC == null) AC = 0;", "AC == null", "AC", "null", "AC = 0", "AC", "0", "Integer WA = map.get(\"WA\");", "WA", "map.get(\"WA\")", "map.get", "map", "\"WA\"", "if (WA == null) WA = 0;", "WA == null", "WA", "null", "WA = 0", "WA", "0", "Integer TLE = map.get(\"TLE\");", "TLE", "map.get(\"TLE\")", "map.get", "map", "\"TLE\"", "if (TLE == null) TLE = 0;", "TLE == null", "TLE", "null", "TLE = 0", "TLE", "0", "Integer RE = map.get(\"RE\");", "RE", "map.get(\"RE\")", "map.get", "map", "\"RE\"", "if (RE == null) RE = 0;", "RE == null", "RE", "null", "RE = 0", "RE", "0", "System.out.println(\"AC x \" + AC)", "System.out.println", "System.out", "System", "System.out", "\"AC x \" + AC", "\"AC x \"", "AC", "System.out.println(\"WA x \" + WA)", "System.out.println", "System.out", "System", "System.out", "\"WA x \" + WA", "\"WA x \"", "WA", "System.out.println(\"TLE x \" + TLE)", "System.out.println", "System.out", "System", "System.out", "\"TLE x \" + TLE", "\"TLE x \"", "TLE", "System.out.println(\"RE x \" + RE)", "System.out.println", "System.out", "System", "System.out", "\"RE x \" + RE", "\"RE x \"", "RE", "String[] args", "args" ]
import java.util.Scanner; import java.util.HashMap; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); String S = ""; Integer count = 0; HashMap<String, Integer> map = new HashMap<>(); for (int i = 1; i <= N ; i++) { S = sc.next(); count = map.get(S); if (count == null) count = 1; else count++; map.put(S, count); } Integer AC = map.get("AC"); if (AC == null) AC = 0; Integer WA = map.get("WA"); if (WA == null) WA = 0; Integer TLE = map.get("TLE"); if (TLE == null) TLE = 0; Integer RE = map.get("RE"); if (RE == null) RE = 0; System.out.println("AC x " + AC); System.out.println("WA x " + WA); System.out.println("TLE x " + TLE); System.out.println("RE x " + RE); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 40, 13, 14, 4, 18, 13, 17, 40, 13, 14, 4, 18, 13, 17, 40, 13, 40, 13, 41, 13, 20, 4, 18, 4, 18, 13, 17, 13, 4, 18, 4, 18, 13, 17, 13, 4, 18, 4, 18, 13, 17, 13, 4, 18, 4, 18, 13, 17, 13, 4, 18, 18, 13, 13, 4, 18, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 115, 5 ], [ 115, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 8, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 29, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 41, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 47, 52 ], [ 52, 53 ], [ 47, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 54, 59 ], [ 59, 60 ], [ 54, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 61, 66 ], [ 66, 67 ], [ 61, 68 ], [ 68, 69 ], [ 8, 70 ], [ 70, 71 ], [ 70, 72 ], [ 8, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 73, 79 ], [ 8, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 80, 86 ], [ 8, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 87, 93 ], [ 8, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 94, 100 ], [ 8, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 106, 107 ], [ 107, 108 ], [ 8, 109 ], [ 109, 110 ], [ 110, 111 ], [ 6, 112 ], [ 112, 113 ], [ 0, 114 ], [ 114, 115 ], [ 114, 116 ] ]
[ "import java.util.Scanner;\n\n/**\n * B - Judge Status Summary\n *\n */\npublic class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner( System.in );\n // 入力値\n int n = sc.nextInt(); // 提出数\n // 結果\n int totalAcCnt = 0;\n int totalWaCnt = 0;\n int totalTleCnt = 0;\n int totalReCnt = 0;\n for( int i = 0; i < n; i++ ) {\n String s = sc.next();\n if( s.equals( \"AC\" ) ) ++totalAcCnt;\n else if( s.equals( \"WA\" ) ) ++ totalWaCnt;\n else if( s.equals( \"TLE\" ) ) ++ totalTleCnt;\n else ++totalReCnt;\n }\n\n StringBuffer sb = new StringBuffer();\n sb.append( \"AC x \" ).append( totalAcCnt );\n sb.append( \"\\nWA x \" ).append( totalWaCnt );\n sb.append( \"\\nTLE x \" ).append( totalTleCnt );\n sb.append( \"\\nRE x \" ).append( totalReCnt );\n\n System.out.println( sb.toString() );\n\n sc.close();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner( System.in );\n // 入力値\n int n = sc.nextInt(); // 提出数\n // 結果\n int totalAcCnt = 0;\n int totalWaCnt = 0;\n int totalTleCnt = 0;\n int totalReCnt = 0;\n for( int i = 0; i < n; i++ ) {\n String s = sc.next();\n if( s.equals( \"AC\" ) ) ++totalAcCnt;\n else if( s.equals( \"WA\" ) ) ++ totalWaCnt;\n else if( s.equals( \"TLE\" ) ) ++ totalTleCnt;\n else ++totalReCnt;\n }\n\n StringBuffer sb = new StringBuffer();\n sb.append( \"AC x \" ).append( totalAcCnt );\n sb.append( \"\\nWA x \" ).append( totalWaCnt );\n sb.append( \"\\nTLE x \" ).append( totalTleCnt );\n sb.append( \"\\nRE x \" ).append( totalReCnt );\n\n System.out.println( sb.toString() );\n\n sc.close();\n }\n}", "Main", "public static void main(String[] args) {\n\n Scanner sc = new Scanner( System.in );\n // 入力値\n int n = sc.nextInt(); // 提出数\n // 結果\n int totalAcCnt = 0;\n int totalWaCnt = 0;\n int totalTleCnt = 0;\n int totalReCnt = 0;\n for( int i = 0; i < n; i++ ) {\n String s = sc.next();\n if( s.equals( \"AC\" ) ) ++totalAcCnt;\n else if( s.equals( \"WA\" ) ) ++ totalWaCnt;\n else if( s.equals( \"TLE\" ) ) ++ totalTleCnt;\n else ++totalReCnt;\n }\n\n StringBuffer sb = new StringBuffer();\n sb.append( \"AC x \" ).append( totalAcCnt );\n sb.append( \"\\nWA x \" ).append( totalWaCnt );\n sb.append( \"\\nTLE x \" ).append( totalTleCnt );\n sb.append( \"\\nRE x \" ).append( totalReCnt );\n\n System.out.println( sb.toString() );\n\n sc.close();\n }", "main", "{\n\n Scanner sc = new Scanner( System.in );\n // 入力値\n int n = sc.nextInt(); // 提出数\n // 結果\n int totalAcCnt = 0;\n int totalWaCnt = 0;\n int totalTleCnt = 0;\n int totalReCnt = 0;\n for( int i = 0; i < n; i++ ) {\n String s = sc.next();\n if( s.equals( \"AC\" ) ) ++totalAcCnt;\n else if( s.equals( \"WA\" ) ) ++ totalWaCnt;\n else if( s.equals( \"TLE\" ) ) ++ totalTleCnt;\n else ++totalReCnt;\n }\n\n StringBuffer sb = new StringBuffer();\n sb.append( \"AC x \" ).append( totalAcCnt );\n sb.append( \"\\nWA x \" ).append( totalWaCnt );\n sb.append( \"\\nTLE x \" ).append( totalTleCnt );\n sb.append( \"\\nRE x \" ).append( totalReCnt );\n\n System.out.println( sb.toString() );\n\n sc.close();\n }", "Scanner sc = new Scanner( System.in );", "sc", "new Scanner( System.in )", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int totalAcCnt = 0;", "totalAcCnt", "0", "int totalWaCnt = 0;", "totalWaCnt", "0", "int totalTleCnt = 0;", "totalTleCnt", "0", "int totalReCnt = 0;", "totalReCnt", "0", "for( int i = 0; i < n; i++ ) {\n String s = sc.next();\n if( s.equals( \"AC\" ) ) ++totalAcCnt;\n else if( s.equals( \"WA\" ) ) ++ totalWaCnt;\n else if( s.equals( \"TLE\" ) ) ++ totalTleCnt;\n else ++totalReCnt;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n String s = sc.next();\n if( s.equals( \"AC\" ) ) ++totalAcCnt;\n else if( s.equals( \"WA\" ) ) ++ totalWaCnt;\n else if( s.equals( \"TLE\" ) ) ++ totalTleCnt;\n else ++totalReCnt;\n }", "{\n String s = sc.next();\n if( s.equals( \"AC\" ) ) ++totalAcCnt;\n else if( s.equals( \"WA\" ) ) ++ totalWaCnt;\n else if( s.equals( \"TLE\" ) ) ++ totalTleCnt;\n else ++totalReCnt;\n }", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "if( s.equals( \"AC\" ) ) ++totalAcCnt;\n else if( s.equals( \"WA\" ) ) ++ totalWaCnt;\n else if( s.equals( \"TLE\" ) ) ++ totalTleCnt;\n else ++totalReCnt;", "s.equals( \"AC\" )", "s.equals", "s", "\"AC\"", "++totalAcCnt", "totalAcCnt", "if( s.equals( \"WA\" ) ) ++ totalWaCnt;\n else if( s.equals( \"TLE\" ) ) ++ totalTleCnt;\n else ++totalReCnt;", "s.equals( \"WA\" )", "s.equals", "s", "\"WA\"", "++ totalWaCnt", "totalWaCnt", "if( s.equals( \"TLE\" ) ) ++ totalTleCnt;\n else ++totalReCnt;", "s.equals( \"TLE\" )", "s.equals", "s", "\"TLE\"", "++ totalTleCnt", "totalTleCnt", "++totalReCnt", "totalReCnt", "StringBuffer sb = new StringBuffer();", "sb", "new StringBuffer()", "sb.append( \"AC x \" ).append( totalAcCnt )", "sb.append( \"AC x \" ).append", "sb.append( \"AC x \" )", "sb.append", "sb", "\"AC x \"", "totalAcCnt", "sb.append( \"\\nWA x \" ).append( totalWaCnt )", "sb.append( \"\\nWA x \" ).append", "sb.append( \"\\nWA x \" )", "sb.append", "sb", "\"\\nWA x \"", "totalWaCnt", "sb.append( \"\\nTLE x \" ).append( totalTleCnt )", "sb.append( \"\\nTLE x \" ).append", "sb.append( \"\\nTLE x \" )", "sb.append", "sb", "\"\\nTLE x \"", "totalTleCnt", "sb.append( \"\\nRE x \" ).append( totalReCnt )", "sb.append( \"\\nRE x \" ).append", "sb.append( \"\\nRE x \" )", "sb.append", "sb", "\"\\nRE x \"", "totalReCnt", "System.out.println( sb.toString() )", "System.out.println", "System.out", "System", "System.out", "sb.toString()", "sb.toString", "sb", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner( System.in );\n // 入力値\n int n = sc.nextInt(); // 提出数\n // 結果\n int totalAcCnt = 0;\n int totalWaCnt = 0;\n int totalTleCnt = 0;\n int totalReCnt = 0;\n for( int i = 0; i < n; i++ ) {\n String s = sc.next();\n if( s.equals( \"AC\" ) ) ++totalAcCnt;\n else if( s.equals( \"WA\" ) ) ++ totalWaCnt;\n else if( s.equals( \"TLE\" ) ) ++ totalTleCnt;\n else ++totalReCnt;\n }\n\n StringBuffer sb = new StringBuffer();\n sb.append( \"AC x \" ).append( totalAcCnt );\n sb.append( \"\\nWA x \" ).append( totalWaCnt );\n sb.append( \"\\nTLE x \" ).append( totalTleCnt );\n sb.append( \"\\nRE x \" ).append( totalReCnt );\n\n System.out.println( sb.toString() );\n\n sc.close();\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner( System.in );\n // 入力値\n int n = sc.nextInt(); // 提出数\n // 結果\n int totalAcCnt = 0;\n int totalWaCnt = 0;\n int totalTleCnt = 0;\n int totalReCnt = 0;\n for( int i = 0; i < n; i++ ) {\n String s = sc.next();\n if( s.equals( \"AC\" ) ) ++totalAcCnt;\n else if( s.equals( \"WA\" ) ) ++ totalWaCnt;\n else if( s.equals( \"TLE\" ) ) ++ totalTleCnt;\n else ++totalReCnt;\n }\n\n StringBuffer sb = new StringBuffer();\n sb.append( \"AC x \" ).append( totalAcCnt );\n sb.append( \"\\nWA x \" ).append( totalWaCnt );\n sb.append( \"\\nTLE x \" ).append( totalTleCnt );\n sb.append( \"\\nRE x \" ).append( totalReCnt );\n\n System.out.println( sb.toString() );\n\n sc.close();\n }\n}", "Main" ]
import java.util.Scanner; /** * B - Judge Status Summary * */ public class Main { public static void main(String[] args) { Scanner sc = new Scanner( System.in ); // 入力値 int n = sc.nextInt(); // 提出数 // 結果 int totalAcCnt = 0; int totalWaCnt = 0; int totalTleCnt = 0; int totalReCnt = 0; for( int i = 0; i < n; i++ ) { String s = sc.next(); if( s.equals( "AC" ) ) ++totalAcCnt; else if( s.equals( "WA" ) ) ++ totalWaCnt; else if( s.equals( "TLE" ) ) ++ totalTleCnt; else ++totalReCnt; } StringBuffer sb = new StringBuffer(); sb.append( "AC x " ).append( totalAcCnt ); sb.append( "\nWA x " ).append( totalWaCnt ); sb.append( "\nTLE x " ).append( totalTleCnt ); sb.append( "\nRE x " ).append( totalReCnt ); System.out.println( sb.toString() ); sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 42, 2, 40, 13, 17, 30, 41, 13, 4, 18, 13, 35, 13, 34, 17, 1, 40, 13, 3, 34, 17, 1, 40, 13, 3, 34, 17, 1, 40, 13, 3, 34, 17, 1, 40, 13, 3, 4, 18, 18, 13, 13, 2, 17, 13, 4, 18, 18, 13, 13, 2, 17, 13, 4, 18, 18, 13, 13, 2, 17, 13, 4, 18, 18, 13, 13, 2, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 104, 5 ], [ 104, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 14, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 8, 29 ], [ 29, 30 ], [ 29, 31 ], [ 8, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 32, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 37, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 43, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 43, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 43, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 8, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 74, 75 ], [ 74, 76 ], [ 8, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 77, 82 ], [ 82, 83 ], [ 82, 84 ], [ 8, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 90, 91 ], [ 90, 92 ], [ 8, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 98, 99 ], [ 98, 100 ], [ 6, 101 ], [ 101, 102 ], [ 0, 103 ], [ 103, 104 ], [ 103, 105 ] ]
[ "import java.util.Scanner;\npublic class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int n = Integer.parseInt(s.next());\n int a = 0,t = 0,w = 0,r = 0;\n while(n-->0){\n String str = s.next();\n\n switch (str) {\n case \"AC\":\n a++;\n break;\n case \"RE\":\n r++;\n break;\n case \"TLE\":\n t++;\n break;\n case \"WA\":\n w++;\n break;\n }\n }\n System.out.println(\"AC x \"+a);\n System.out.println(\"WA x \"+w);\n System.out.println(\"TLE x \"+t);\n System.out.println(\"RE x \"+r);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int n = Integer.parseInt(s.next());\n int a = 0,t = 0,w = 0,r = 0;\n while(n-->0){\n String str = s.next();\n\n switch (str) {\n case \"AC\":\n a++;\n break;\n case \"RE\":\n r++;\n break;\n case \"TLE\":\n t++;\n break;\n case \"WA\":\n w++;\n break;\n }\n }\n System.out.println(\"AC x \"+a);\n System.out.println(\"WA x \"+w);\n System.out.println(\"TLE x \"+t);\n System.out.println(\"RE x \"+r);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int n = Integer.parseInt(s.next());\n int a = 0,t = 0,w = 0,r = 0;\n while(n-->0){\n String str = s.next();\n\n switch (str) {\n case \"AC\":\n a++;\n break;\n case \"RE\":\n r++;\n break;\n case \"TLE\":\n t++;\n break;\n case \"WA\":\n w++;\n break;\n }\n }\n System.out.println(\"AC x \"+a);\n System.out.println(\"WA x \"+w);\n System.out.println(\"TLE x \"+t);\n System.out.println(\"RE x \"+r);\n }", "main", "{\n Scanner s = new Scanner(System.in);\n int n = Integer.parseInt(s.next());\n int a = 0,t = 0,w = 0,r = 0;\n while(n-->0){\n String str = s.next();\n\n switch (str) {\n case \"AC\":\n a++;\n break;\n case \"RE\":\n r++;\n break;\n case \"TLE\":\n t++;\n break;\n case \"WA\":\n w++;\n break;\n }\n }\n System.out.println(\"AC x \"+a);\n System.out.println(\"WA x \"+w);\n System.out.println(\"TLE x \"+t);\n System.out.println(\"RE x \"+r);\n }", "Scanner s = new Scanner(System.in);", "s", "new Scanner(System.in)", "int n = Integer.parseInt(s.next());", "n", "Integer.parseInt(s.next())", "Integer.parseInt", "Integer", "s.next()", "s.next", "s", "int a = 0", "a", "0", "t = 0", "t", "0", "w = 0", "w", "0", "r = 0;", "r", "0", "while(n-->0){\n String str = s.next();\n\n switch (str) {\n case \"AC\":\n a++;\n break;\n case \"RE\":\n r++;\n break;\n case \"TLE\":\n t++;\n break;\n case \"WA\":\n w++;\n break;\n }\n }", "n-->0", "n--", "n", "0", "{\n String str = s.next();\n\n switch (str) {\n case \"AC\":\n a++;\n break;\n case \"RE\":\n r++;\n break;\n case \"TLE\":\n t++;\n break;\n case \"WA\":\n w++;\n break;\n }\n }", "String str = s.next();", "str", "s.next()", "s.next", "s", "switch (str) {\n case \"AC\":\n a++;\n break;\n case \"RE\":\n r++;\n break;\n case \"TLE\":\n t++;\n break;\n case \"WA\":\n w++;\n break;\n }", "str", "case \"AC\":", "\"AC\"", "case \"AC\":", "a++", "a", "break;", "case \"RE\":", "\"RE\"", "case \"RE\":", "r++", "r", "break;", "case \"TLE\":", "\"TLE\"", "case \"TLE\":", "t++", "t", "break;", "case \"WA\":", "\"WA\"", "case \"WA\":", "w++", "w", "break;", "System.out.println(\"AC x \"+a)", "System.out.println", "System.out", "System", "System.out", "\"AC x \"+a", "\"AC x \"", "a", "System.out.println(\"WA x \"+w)", "System.out.println", "System.out", "System", "System.out", "\"WA x \"+w", "\"WA x \"", "w", "System.out.println(\"TLE x \"+t)", "System.out.println", "System.out", "System", "System.out", "\"TLE x \"+t", "\"TLE x \"", "t", "System.out.println(\"RE x \"+r)", "System.out.println", "System.out", "System", "System.out", "\"RE x \"+r", "\"RE x \"", "r", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int n = Integer.parseInt(s.next());\n int a = 0,t = 0,w = 0,r = 0;\n while(n-->0){\n String str = s.next();\n\n switch (str) {\n case \"AC\":\n a++;\n break;\n case \"RE\":\n r++;\n break;\n case \"TLE\":\n t++;\n break;\n case \"WA\":\n w++;\n break;\n }\n }\n System.out.println(\"AC x \"+a);\n System.out.println(\"WA x \"+w);\n System.out.println(\"TLE x \"+t);\n System.out.println(\"RE x \"+r);\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int n = Integer.parseInt(s.next());\n int a = 0,t = 0,w = 0,r = 0;\n while(n-->0){\n String str = s.next();\n\n switch (str) {\n case \"AC\":\n a++;\n break;\n case \"RE\":\n r++;\n break;\n case \"TLE\":\n t++;\n break;\n case \"WA\":\n w++;\n break;\n }\n }\n System.out.println(\"AC x \"+a);\n System.out.println(\"WA x \"+w);\n System.out.println(\"TLE x \"+t);\n System.out.println(\"RE x \"+r);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int n = Integer.parseInt(s.next()); int a = 0,t = 0,w = 0,r = 0; while(n-->0){ String str = s.next(); switch (str) { case "AC": a++; break; case "RE": r++; break; case "TLE": t++; break; case "WA": w++; break; } } System.out.println("AC x "+a); System.out.println("WA x "+w); System.out.println("TLE x "+t); System.out.println("RE x "+r); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 18, 13, 13, 17, 30, 40, 13, 14, 4, 18, 18, 13, 13, 17, 30, 40, 13, 14, 4, 18, 18, 13, 13, 17, 30, 40, 13, 30, 40, 13, 4, 18, 18, 13, 13, 2, 17, 13, 4, 18, 18, 13, 13, 2, 17, 13, 4, 18, 18, 13, 13, 2, 17, 13, 4, 18, 18, 13, 13, 2, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 133, 5 ], [ 133, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 33, 37 ], [ 37, 38 ], [ 38, 39 ], [ 8, 40 ], [ 40, 41 ], [ 40, 42 ], [ 8, 43 ], [ 43, 44 ], [ 43, 45 ], [ 8, 46 ], [ 46, 47 ], [ 46, 48 ], [ 8, 49 ], [ 49, 50 ], [ 49, 51 ], [ 8, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 52, 60 ], [ 60, 61 ], [ 61, 62 ], [ 52, 63 ], [ 64, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 65, 72 ], [ 72, 73 ], [ 73, 74 ], [ 65, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 76, 81 ], [ 75, 82 ], [ 82, 83 ], [ 83, 84 ], [ 75, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 85, 92 ], [ 92, 93 ], [ 93, 94 ], [ 85, 95 ], [ 95, 96 ], [ 96, 97 ], [ 8, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 103, 104 ], [ 103, 105 ], [ 8, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 111, 112 ], [ 111, 113 ], [ 8, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 114, 119 ], [ 119, 120 ], [ 119, 121 ], [ 8, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 122, 127 ], [ 127, 128 ], [ 127, 129 ], [ 6, 130 ], [ 130, 131 ], [ 0, 132 ], [ 132, 133 ], [ 132, 134 ] ]
[ "/*package whatever //do not write package name here */\n\nimport java.util.*;\n\npublic class Main {\n\tpublic static void main (String[] args) {\nScanner sc=new Scanner(System.in);\nint n=sc.nextInt();\n String[] arr=new String[n];\n for(int i=0;i<n;i++)\n arr[i]=sc.next();\n int acc=0,wac=0,tlec=0,rec=0;\n for(int i=0;i<n;i++){\n if(arr[i].equals(\"AC\")){\n acc++;\n }\n else if(arr[i].equals(\"WA\")){\n wac++;\n }\n else if(arr[i].equals(\"TLE\")){\n tlec++;\n }\n else{\n rec++;\n }\n \n \n }\n System.out.println(\"AC x \"+acc);\n System.out.println(\"WA x \"+wac);\n System.out.println(\"TLE x \"+tlec);\n System.out.println(\"RE x \"+rec);\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main (String[] args) {\nScanner sc=new Scanner(System.in);\nint n=sc.nextInt();\n String[] arr=new String[n];\n for(int i=0;i<n;i++)\n arr[i]=sc.next();\n int acc=0,wac=0,tlec=0,rec=0;\n for(int i=0;i<n;i++){\n if(arr[i].equals(\"AC\")){\n acc++;\n }\n else if(arr[i].equals(\"WA\")){\n wac++;\n }\n else if(arr[i].equals(\"TLE\")){\n tlec++;\n }\n else{\n rec++;\n }\n \n \n }\n System.out.println(\"AC x \"+acc);\n System.out.println(\"WA x \"+wac);\n System.out.println(\"TLE x \"+tlec);\n System.out.println(\"RE x \"+rec);\n\t}\n}", "Main", "public static void main (String[] args) {\nScanner sc=new Scanner(System.in);\nint n=sc.nextInt();\n String[] arr=new String[n];\n for(int i=0;i<n;i++)\n arr[i]=sc.next();\n int acc=0,wac=0,tlec=0,rec=0;\n for(int i=0;i<n;i++){\n if(arr[i].equals(\"AC\")){\n acc++;\n }\n else if(arr[i].equals(\"WA\")){\n wac++;\n }\n else if(arr[i].equals(\"TLE\")){\n tlec++;\n }\n else{\n rec++;\n }\n \n \n }\n System.out.println(\"AC x \"+acc);\n System.out.println(\"WA x \"+wac);\n System.out.println(\"TLE x \"+tlec);\n System.out.println(\"RE x \"+rec);\n\t}", "main", "{\nScanner sc=new Scanner(System.in);\nint n=sc.nextInt();\n String[] arr=new String[n];\n for(int i=0;i<n;i++)\n arr[i]=sc.next();\n int acc=0,wac=0,tlec=0,rec=0;\n for(int i=0;i<n;i++){\n if(arr[i].equals(\"AC\")){\n acc++;\n }\n else if(arr[i].equals(\"WA\")){\n wac++;\n }\n else if(arr[i].equals(\"TLE\")){\n tlec++;\n }\n else{\n rec++;\n }\n \n \n }\n System.out.println(\"AC x \"+acc);\n System.out.println(\"WA x \"+wac);\n System.out.println(\"TLE x \"+tlec);\n System.out.println(\"RE x \"+rec);\n\t}", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n=sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "String[] arr=new String[n];", "arr", "new String[n]", "n", "for(int i=0;i<n;i++)\n arr[i]=sc.next();", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "arr[i]=sc.next();", "arr[i]=sc.next()", "arr[i]", "arr", "i", "sc.next()", "sc.next", "sc", "int acc=0", "acc", "0", "wac=0", "wac", "0", "tlec=0", "tlec", "0", "rec=0;", "rec", "0", "for(int i=0;i<n;i++){\n if(arr[i].equals(\"AC\")){\n acc++;\n }\n else if(arr[i].equals(\"WA\")){\n wac++;\n }\n else if(arr[i].equals(\"TLE\")){\n tlec++;\n }\n else{\n rec++;\n }\n \n \n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n if(arr[i].equals(\"AC\")){\n acc++;\n }\n else if(arr[i].equals(\"WA\")){\n wac++;\n }\n else if(arr[i].equals(\"TLE\")){\n tlec++;\n }\n else{\n rec++;\n }\n \n \n }", "{\n if(arr[i].equals(\"AC\")){\n acc++;\n }\n else if(arr[i].equals(\"WA\")){\n wac++;\n }\n else if(arr[i].equals(\"TLE\")){\n tlec++;\n }\n else{\n rec++;\n }\n \n \n }", "if(arr[i].equals(\"AC\")){\n acc++;\n }\n else if(arr[i].equals(\"WA\")){\n wac++;\n }\n else if(arr[i].equals(\"TLE\")){\n tlec++;\n }\n else{\n rec++;\n }", "arr[i].equals(\"AC\")", "arr[i].equals", "arr[i]", "arr", "i", "\"AC\"", "{\n acc++;\n }", "acc++", "acc", "if(arr[i].equals(\"WA\")){\n wac++;\n }\n else if(arr[i].equals(\"TLE\")){\n tlec++;\n }\n else{\n rec++;\n }", "arr[i].equals(\"WA\")", "arr[i].equals", "arr[i]", "arr", "i", "\"WA\"", "{\n wac++;\n }", "wac++", "wac", "if(arr[i].equals(\"TLE\")){\n tlec++;\n }\n else{\n rec++;\n }", "arr[i].equals(\"TLE\")", "arr[i].equals", "arr[i]", "arr", "i", "\"TLE\"", "{\n tlec++;\n }", "tlec++", "tlec", "{\n rec++;\n }", "rec++", "rec", "System.out.println(\"AC x \"+acc)", "System.out.println", "System.out", "System", "System.out", "\"AC x \"+acc", "\"AC x \"", "acc", "System.out.println(\"WA x \"+wac)", "System.out.println", "System.out", "System", "System.out", "\"WA x \"+wac", "\"WA x \"", "wac", "System.out.println(\"TLE x \"+tlec)", "System.out.println", "System.out", "System", "System.out", "\"TLE x \"+tlec", "\"TLE x \"", "tlec", "System.out.println(\"RE x \"+rec)", "System.out.println", "System.out", "System", "System.out", "\"RE x \"+rec", "\"RE x \"", "rec", "String[] args", "args", "public class Main {\n\tpublic static void main (String[] args) {\nScanner sc=new Scanner(System.in);\nint n=sc.nextInt();\n String[] arr=new String[n];\n for(int i=0;i<n;i++)\n arr[i]=sc.next();\n int acc=0,wac=0,tlec=0,rec=0;\n for(int i=0;i<n;i++){\n if(arr[i].equals(\"AC\")){\n acc++;\n }\n else if(arr[i].equals(\"WA\")){\n wac++;\n }\n else if(arr[i].equals(\"TLE\")){\n tlec++;\n }\n else{\n rec++;\n }\n \n \n }\n System.out.println(\"AC x \"+acc);\n System.out.println(\"WA x \"+wac);\n System.out.println(\"TLE x \"+tlec);\n System.out.println(\"RE x \"+rec);\n\t}\n}", "public class Main {\n\tpublic static void main (String[] args) {\nScanner sc=new Scanner(System.in);\nint n=sc.nextInt();\n String[] arr=new String[n];\n for(int i=0;i<n;i++)\n arr[i]=sc.next();\n int acc=0,wac=0,tlec=0,rec=0;\n for(int i=0;i<n;i++){\n if(arr[i].equals(\"AC\")){\n acc++;\n }\n else if(arr[i].equals(\"WA\")){\n wac++;\n }\n else if(arr[i].equals(\"TLE\")){\n tlec++;\n }\n else{\n rec++;\n }\n \n \n }\n System.out.println(\"AC x \"+acc);\n System.out.println(\"WA x \"+wac);\n System.out.println(\"TLE x \"+tlec);\n System.out.println(\"RE x \"+rec);\n\t}\n}", "Main" ]
/*package whatever //do not write package name here */ import java.util.*; public class Main { public static void main (String[] args) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); String[] arr=new String[n]; for(int i=0;i<n;i++) arr[i]=sc.next(); int acc=0,wac=0,tlec=0,rec=0; for(int i=0;i<n;i++){ if(arr[i].equals("AC")){ acc++; } else if(arr[i].equals("WA")){ wac++; } else if(arr[i].equals("TLE")){ tlec++; } else{ rec++; } } System.out.println("AC x "+acc); System.out.println("WA x "+wac); System.out.println("TLE x "+tlec); System.out.println("RE x "+rec); } }