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, 42, 2, 13, 17, 30, 0, 13, 17, 14, 2, 13, 17, 4, 18, 18, 13, 13, 17, 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 ], [ 50, 5 ], [ 50, 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 ], [ 26, 28 ], [ 25, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 25, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 38, 40 ], [ 35, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 6, 47 ], [ 47, 48 ], [ 0, 49 ], [ 49, 50 ], [ 49, 51 ] ]
[ "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 input = sc.nextInt();\n\n while (input > 1000) {\n input -= 1000;\n }\n \n if (input == 0)\n System.out.println(0);\n else {\n int res = 1000-input;\n System.out.println(res);\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 input = sc.nextInt();\n\n while (input > 1000) {\n input -= 1000;\n }\n \n if (input == 0)\n System.out.println(0);\n else {\n int res = 1000-input;\n System.out.println(res);\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int input = sc.nextInt();\n\n while (input > 1000) {\n input -= 1000;\n }\n \n if (input == 0)\n System.out.println(0);\n else {\n int res = 1000-input;\n System.out.println(res);\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int input = sc.nextInt();\n\n while (input > 1000) {\n input -= 1000;\n }\n \n if (input == 0)\n System.out.println(0);\n else {\n int res = 1000-input;\n System.out.println(res);\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int input = sc.nextInt();", "input", "sc.nextInt()", "sc.nextInt", "sc", "while (input > 1000) {\n input -= 1000;\n }", "input > 1000", "input", "1000", "{\n input -= 1000;\n }", "input -= 1000", "input", "1000", "if (input == 0)\n System.out.println(0);\n else {\n int res = 1000-input;\n System.out.println(res);\n }", "input == 0", "input", "0", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "{\n int res = 1000-input;\n System.out.println(res);\n }", "int res = 1000-input;", "res", "1000-input", "1000", "input", "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 Scanner sc = new Scanner(System.in);\n int input = sc.nextInt();\n\n while (input > 1000) {\n input -= 1000;\n }\n \n if (input == 0)\n System.out.println(0);\n else {\n int res = 1000-input;\n System.out.println(res);\n }\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int input = sc.nextInt();\n\n while (input > 1000) {\n input -= 1000;\n }\n \n if (input == 0)\n System.out.println(0);\n else {\n int res = 1000-input;\n System.out.println(res);\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int input = sc.nextInt(); while (input > 1000) { input -= 1000; } if (input == 0) System.out.println(0); else { int res = 1000-input; System.out.println(res); } } }
[ 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, 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, 41, 13, 2, 2, 17, 2, 13, 17, 17, 4, 18, 18, 13, 13, 2, 13, 13, 23, 13, 12, 13, 30, 41, 13, 20, 28, 13, 13, 30, 4, 18, 13, 13, 4, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 13, 23, 13, 6, 13, 41, 13, 20, 41, 13, 20, 12, 13, 30, 42, 40, 4, 18, 13, 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, 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, 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, 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 ], [ 221, 26 ], [ 221, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 29, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 29, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 38, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 38, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 57, 59 ], [ 54, 60 ], [ 51, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 66, 67 ], [ 66, 68 ], [ 27, 69 ], [ 69, 70 ], [ 221, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 77, 78 ], [ 77, 79 ], [ 77, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 73, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 73, 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 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 107, 108 ], [ 108, 109 ], [ 107, 110 ], [ 71, 111 ], [ 111, 112 ], [ 221, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 115, 117 ], [ 113, 118 ], [ 118, 119 ], [ 118, 120 ], [ 113, 121 ], [ 121, 122 ], [ 121, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 124, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 129, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 123, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 113, 144 ], [ 144, 145 ], [ 144, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 148, 151 ], [ 151, 152 ], [ 113, 153 ], [ 153, 154 ], [ 153, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 155, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 160, 165 ], [ 165, 166 ], [ 165, 167 ], [ 160, 168 ], [ 168, 169 ], [ 169, 170 ], [ 160, 171 ], [ 171, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 172, 176 ], [ 176, 177 ], [ 155, 178 ], [ 178, 179 ], [ 153, 180 ], [ 180, 181 ], [ 113, 182 ], [ 182, 183 ], [ 182, 184 ], [ 184, 185 ], [ 185, 186 ], [ 186, 187 ], [ 187, 188 ], [ 186, 189 ], [ 189, 190 ], [ 113, 191 ], [ 191, 192 ], [ 191, 193 ], [ 193, 194 ], [ 194, 195 ], [ 194, 196 ], [ 193, 198 ], [ 198, 199 ], [ 199, 200 ], [ 200, 201 ], [ 200, 202 ], [ 198, 203 ], [ 203, 204 ], [ 203, 205 ], [ 198, 206 ], [ 206, 207 ], [ 207, 208 ], [ 198, 209 ], [ 209, 210 ], [ 210, 211 ], [ 211, 212 ], [ 211, 213 ], [ 210, 214 ], [ 214, 215 ], [ 193, 216 ], [ 216, 217 ], [ 191, 218 ], [ 218, 219 ], [ 0, 220 ], [ 220, 221 ], [ 220, 222 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.math.BigInteger;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Collections;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\n public static void main(String[] args) throws InterruptedException {\n FastScanner fs=new FastScanner();\n int T=fs.nextInt();\n /*\n for (int tt=0; tt<T; tt++) {\n\n }\n */\n if (T % 1000 == 0) {\n System.out.println(\"0\");\n } else {\n int round = (1 + (T / 1000)) * 1000;\n System.out.println(round - T);\n }\n }\n\n void sort(int[] a) {\n ArrayList<Integer> list=new ArrayList<>();\n for (int i:a) list.add(i);\n Collections.sort(list);\n for (int i=0; i<a.length; i++) a[i]=list.get(i);\n }\n\n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n\n public String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public long[] readLongArray(int n) {\n long[] a=new long[n];\n for (int i=0; i<n; i++) a[i]=nextLong();\n return a;\n }\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.math.BigInteger;", "BigInteger", "java.math", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.Collections;", "Collections", "java.util", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "public class Main {\n\n public static void main(String[] args) throws InterruptedException {\n FastScanner fs=new FastScanner();\n int T=fs.nextInt();\n /*\n for (int tt=0; tt<T; tt++) {\n\n }\n */\n if (T % 1000 == 0) {\n System.out.println(\"0\");\n } else {\n int round = (1 + (T / 1000)) * 1000;\n System.out.println(round - T);\n }\n }\n\n void sort(int[] a) {\n ArrayList<Integer> list=new ArrayList<>();\n for (int i:a) list.add(i);\n Collections.sort(list);\n for (int i=0; i<a.length; i++) a[i]=list.get(i);\n }\n\n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n\n public String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public long[] readLongArray(int n) {\n long[] a=new long[n];\n for (int i=0; i<n; i++) a[i]=nextLong();\n return a;\n }\n }\n}", "Main", "public static void main(String[] args) throws InterruptedException {\n FastScanner fs=new FastScanner();\n int T=fs.nextInt();\n /*\n for (int tt=0; tt<T; tt++) {\n\n }\n */\n if (T % 1000 == 0) {\n System.out.println(\"0\");\n } else {\n int round = (1 + (T / 1000)) * 1000;\n System.out.println(round - T);\n }\n }", "main", "{\n FastScanner fs=new FastScanner();\n int T=fs.nextInt();\n /*\n for (int tt=0; tt<T; tt++) {\n\n }\n */\n if (T % 1000 == 0) {\n System.out.println(\"0\");\n } else {\n int round = (1 + (T / 1000)) * 1000;\n System.out.println(round - T);\n }\n }", "FastScanner fs=new FastScanner();", "fs", "new FastScanner()", "int T=fs.nextInt();", "T", "fs.nextInt()", "fs.nextInt", "fs", "if (T % 1000 == 0) {\n System.out.println(\"0\");\n } else {\n int round = (1 + (T / 1000)) * 1000;\n System.out.println(round - T);\n }", "T % 1000 == 0", "T % 1000", "T", "1000", "0", "{\n System.out.println(\"0\");\n }", "System.out.println(\"0\")", "System.out.println", "System.out", "System", "System.out", "\"0\"", "{\n int round = (1 + (T / 1000)) * 1000;\n System.out.println(round - T);\n }", "int round = (1 + (T / 1000)) * 1000;", "round", "(1 + (T / 1000)) * 1000", "(1 + (T / 1000))", "1", "(T / 1000)", "T", "1000", "1000", "System.out.println(round - T)", "System.out.println", "System.out", "System", "System.out", "round - T", "round", "T", "String[] args", "args", "void sort(int[] a) {\n ArrayList<Integer> list=new ArrayList<>();\n for (int i:a) list.add(i);\n Collections.sort(list);\n for (int i=0; i<a.length; i++) a[i]=list.get(i);\n }", "sort", "{\n ArrayList<Integer> list=new ArrayList<>();\n for (int i:a) list.add(i);\n Collections.sort(list);\n for (int i=0; i<a.length; i++) a[i]=list.get(i);\n }", "ArrayList<Integer> list=new ArrayList<>();", "list", "new ArrayList<>()", "for (int i:a) list.add(i);", "int i", "a", "list.add(i);", "list.add(i)", "list.add", "list", "i", "Collections.sort(list)", "Collections.sort", "Collections", "list", "for (int i=0; i<a.length; i++) a[i]=list.get(i);", "int i=0;", "int i=0;", "i", "0", "i<a.length", "i", "a.length", "a", "a.length", "i++", "i++", "i", "a[i]=list.get(i);", "a[i]=list.get(i)", "a[i]", "a", "i", "list.get(i)", "list.get", "list", "i", "int[] a", "a", "static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n\n public String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public long[] readLongArray(int n) {\n long[] a=new long[n];\n for (int i=0; i<n; i++) a[i]=nextLong();\n return a;\n }\n }", "FastScanner", "BufferedReader br=new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringTokenizer st=new StringTokenizer(\"\");", "st", "new StringTokenizer(\"\")", "public String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n\n }", "next", "{\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n\n }", "while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "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 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 int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }", "readArray", "{\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }", "int[] a=new int[n];", "a", "new int[n]", "n", "for (int i=0; i<n; i++) 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 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 long[] readLongArray(int n) {\n long[] a=new long[n];\n for (int i=0; i<n; i++) a[i]=nextLong();\n return a;\n }", "readLongArray", "{\n long[] a=new long[n];\n for (int i=0; i<n; i++) a[i]=nextLong();\n return a;\n }", "long[] a=new long[n];", "a", "new long[n]", "n", "for (int i=0; i<n; i++) 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\n public static void main(String[] args) throws InterruptedException {\n FastScanner fs=new FastScanner();\n int T=fs.nextInt();\n /*\n for (int tt=0; tt<T; tt++) {\n\n }\n */\n if (T % 1000 == 0) {\n System.out.println(\"0\");\n } else {\n int round = (1 + (T / 1000)) * 1000;\n System.out.println(round - T);\n }\n }\n\n void sort(int[] a) {\n ArrayList<Integer> list=new ArrayList<>();\n for (int i:a) list.add(i);\n Collections.sort(list);\n for (int i=0; i<a.length; i++) a[i]=list.get(i);\n }\n\n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n\n public String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public long[] readLongArray(int n) {\n long[] a=new long[n];\n for (int i=0; i<n; i++) a[i]=nextLong();\n return a;\n }\n }\n}", "public class Main {\n\n public static void main(String[] args) throws InterruptedException {\n FastScanner fs=new FastScanner();\n int T=fs.nextInt();\n /*\n for (int tt=0; tt<T; tt++) {\n\n }\n */\n if (T % 1000 == 0) {\n System.out.println(\"0\");\n } else {\n int round = (1 + (T / 1000)) * 1000;\n System.out.println(round - T);\n }\n }\n\n void sort(int[] a) {\n ArrayList<Integer> list=new ArrayList<>();\n for (int i:a) list.add(i);\n Collections.sort(list);\n for (int i=0; i<a.length; i++) a[i]=list.get(i);\n }\n\n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n\n public String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public long[] readLongArray(int n) {\n long[] a=new long[n];\n for (int i=0; i<n; i++) a[i]=nextLong();\n return a;\n }\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.math.BigInteger; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.StringTokenizer; public class Main { public static void main(String[] args) throws InterruptedException { FastScanner fs=new FastScanner(); int T=fs.nextInt(); /* for (int tt=0; tt<T; tt++) { } */ if (T % 1000 == 0) { System.out.println("0"); } else { int round = (1 + (T / 1000)) * 1000; System.out.println(round - T); } } void sort(int[] a) { ArrayList<Integer> list=new ArrayList<>(); for (int i:a) list.add(i); Collections.sort(list); for (int i=0; i<a.length; i++) a[i]=list.get(i); } static class FastScanner { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st=new StringTokenizer(""); public String next() { while (!st.hasMoreTokens()) try { st=new StringTokenizer(br.readLine()); } catch (IOException e) { e.printStackTrace(); } return st.nextToken(); } public int nextInt() { return Integer.parseInt(next()); } public int[] readArray(int n) { int[] a=new int[n]; for (int i=0; i<n; i++) a[i]=nextInt(); return a; } public long nextLong() { return Long.parseLong(next()); } public long[] readLongArray(int n) { long[] a=new long[n]; for (int i=0; i<n; i++) a[i]=nextLong(); return a; } } }
[ 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, 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 ], [ 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 ], [ 17, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 25, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 32, 34 ], [ 8, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 6, 41 ], [ 41, 42 ], [ 0, 43 ], [ 43, 44 ], [ 43, 45 ] ]
[ "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\tint n = sc.nextInt(); // 文字列\n\t\t\n\t\tint check = n % 1000;\n\t\tint result = 0;\n\t\t\n\t\tif (check != 0) {\n\t\t\tresult = 1000 - check;\n\t\t}\n\n\t\tSystem.out.println(result);\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\tint n = sc.nextInt(); // 文字列\n\t\t\n\t\tint check = n % 1000;\n\t\tint result = 0;\n\t\t\n\t\tif (check != 0) {\n\t\t\tresult = 1000 - check;\n\t\t}\n\n\t\tSystem.out.println(result);\n\t}\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\t\n\t\tint check = n % 1000;\n\t\tint result = 0;\n\t\t\n\t\tif (check != 0) {\n\t\t\tresult = 1000 - check;\n\t\t}\n\n\t\tSystem.out.println(result);\n\t}", "main", "{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt(); // 文字列\n\t\t\n\t\tint check = n % 1000;\n\t\tint result = 0;\n\t\t\n\t\tif (check != 0) {\n\t\t\tresult = 1000 - check;\n\t\t}\n\n\t\tSystem.out.println(result);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int check = n % 1000;", "check", "n % 1000", "n", "1000", "int result = 0;", "result", "0", "if (check != 0) {\n\t\t\tresult = 1000 - check;\n\t\t}", "check != 0", "check", "0", "{\n\t\t\tresult = 1000 - check;\n\t\t}", "result = 1000 - check", "result", "1000 - check", "1000", "check", "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\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt(); // 文字列\n\t\t\n\t\tint check = n % 1000;\n\t\tint result = 0;\n\t\t\n\t\tif (check != 0) {\n\t\t\tresult = 1000 - check;\n\t\t}\n\n\t\tSystem.out.println(result);\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\tint n = sc.nextInt(); // 文字列\n\t\t\n\t\tint check = n % 1000;\n\t\tint result = 0;\n\t\t\n\t\tif (check != 0) {\n\t\t\tresult = 1000 - check;\n\t\t}\n\n\t\tSystem.out.println(result);\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 check = n % 1000; int result = 0; if (check != 0) { result = 1000 - check; } 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, 14, 2, 2, 13, 17, 17, 30, 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 ], [ 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 ], [ 17, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 8, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 31, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 6, 41 ], [ 41, 42 ], [ 0, 43 ], [ 43, 44 ], [ 43, 45 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String args[]){\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n \n int n = N / 1000;\n if(N % 1000 != 0){\n n++;\n }\n System.out.println(n * 1000 - N);\n \n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\tpublic static void main(String args[]){\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n \n int n = N / 1000;\n if(N % 1000 != 0){\n n++;\n }\n System.out.println(n * 1000 - N);\n \n }\n}", "Main", "public static void main(String args[]){\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n \n int n = N / 1000;\n if(N % 1000 != 0){\n n++;\n }\n System.out.println(n * 1000 - N);\n \n }", "main", "{\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n \n int n = N / 1000;\n if(N % 1000 != 0){\n n++;\n }\n System.out.println(n * 1000 - N);\n \n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int N = scan.nextInt();", "N", "scan.nextInt()", "scan.nextInt", "scan", "int n = N / 1000;", "n", "N / 1000", "N", "1000", "if(N % 1000 != 0){\n n++;\n }", "N % 1000 != 0", "N % 1000", "N", "1000", "0", "{\n n++;\n }", "n++", "n", "System.out.println(n * 1000 - N)", "System.out.println", "System.out", "System", "System.out", "n * 1000 - N", "n * 1000", "n", "1000", "N", "String args[]", "args", "public class Main{\n\tpublic static void main(String args[]){\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n \n int n = N / 1000;\n if(N % 1000 != 0){\n n++;\n }\n System.out.println(n * 1000 - N);\n \n }\n}", "public class Main{\n\tpublic static void main(String args[]){\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n \n int n = N / 1000;\n if(N % 1000 != 0){\n n++;\n }\n System.out.println(n * 1000 - N);\n \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(); int n = N / 1000; if(N % 1000 != 0){ n++; } System.out.println(n * 1000 - N); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 0, 13, 17, 30, 30, 0, 13, 17, 41, 13, 2, 13, 13, 4, 18, 18, 13, 13, 13, 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 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 20, 25 ], [ 25, 26 ], [ 25, 27 ], [ 20, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 20, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 8, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 39, 41 ], [ 8, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 42, 47 ], [ 6, 48 ], [ 48, 49 ], [ 0, 50 ], [ 50, 51 ], [ 50, 52 ] ]
[ "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 payment = 0;\n\t\tfor (int i = 0; i < n; i+=1000) {\n\t\t\tpayment += 1000;\n\t\t}\n\t\tint exa = payment - n;\n\t\tSystem.out.println(exa);\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 payment = 0;\n\t\tfor (int i = 0; i < n; i+=1000) {\n\t\t\tpayment += 1000;\n\t\t}\n\t\tint exa = payment - n;\n\t\tSystem.out.println(exa);\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 payment = 0;\n\t\tfor (int i = 0; i < n; i+=1000) {\n\t\t\tpayment += 1000;\n\t\t}\n\t\tint exa = payment - n;\n\t\tSystem.out.println(exa);\n\t}", "main", "{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint payment = 0;\n\t\tfor (int i = 0; i < n; i+=1000) {\n\t\t\tpayment += 1000;\n\t\t}\n\t\tint exa = payment - n;\n\t\tSystem.out.println(exa);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int payment = 0;", "payment", "0", "for (int i = 0; i < n; i+=1000) {\n\t\t\tpayment += 1000;\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i+=1000", "i+=1000", "i", "1000", "{\n\t\t\tpayment += 1000;\n\t\t}", "{\n\t\t\tpayment += 1000;\n\t\t}", "payment += 1000", "payment", "1000", "int exa = payment - n;", "exa", "payment - n", "payment", "n", "System.out.println(exa)", "System.out.println", "System.out", "System", "System.out", "exa", "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 payment = 0;\n\t\tfor (int i = 0; i < n; i+=1000) {\n\t\t\tpayment += 1000;\n\t\t}\n\t\tint exa = payment - n;\n\t\tSystem.out.println(exa);\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 payment = 0;\n\t\tfor (int i = 0; i < n; i+=1000) {\n\t\t\tpayment += 1000;\n\t\t}\n\t\tint exa = payment - n;\n\t\tSystem.out.println(exa);\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 payment = 0; for (int i = 0; i < n; i+=1000) { payment += 1000; } int exa = payment - n; System.out.println(exa); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 20, 38, 5, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 14, 2, 2, 13, 17, 17, 30, 4, 18, 18, 13, 13, 13, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 67, 11 ], [ 67, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 21, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 25, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 25, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 37, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 37, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 55, 57 ], [ 50, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 12, 64 ], [ 64, 65 ], [ 0, 66 ], [ 66, 67 ], [ 66, 68 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t // 1000の倍数の場合はお釣りは必ず0円となる\n\t // 1000の倍数でない場合は、1000-(N円の1の位~百の位)がお釣りとなる\n\t int answer = 0;\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t try{\n\t String str = br.readLine();\n\t int n = Integer.parseInt(str);\n\n\t if (n % 1000 == 0) {\n\t System.out.println(answer);\n\t } else {\n\t answer = 1000 - (n % 1000);\n\t System.out.println(answer);\n\t }\n\n\t } catch (IOException ioe) {\n\n\t }\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) {\n\t // 1000の倍数の場合はお釣りは必ず0円となる\n\t // 1000の倍数でない場合は、1000-(N円の1の位~百の位)がお釣りとなる\n\t int answer = 0;\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t try{\n\t String str = br.readLine();\n\t int n = Integer.parseInt(str);\n\n\t if (n % 1000 == 0) {\n\t System.out.println(answer);\n\t } else {\n\t answer = 1000 - (n % 1000);\n\t System.out.println(answer);\n\t }\n\n\t } catch (IOException ioe) {\n\n\t }\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t // 1000の倍数の場合はお釣りは必ず0円となる\n\t // 1000の倍数でない場合は、1000-(N円の1の位~百の位)がお釣りとなる\n\t int answer = 0;\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t try{\n\t String str = br.readLine();\n\t int n = Integer.parseInt(str);\n\n\t if (n % 1000 == 0) {\n\t System.out.println(answer);\n\t } else {\n\t answer = 1000 - (n % 1000);\n\t System.out.println(answer);\n\t }\n\n\t } catch (IOException ioe) {\n\n\t }\n\t}", "main", "{\n\t // 1000の倍数の場合はお釣りは必ず0円となる\n\t // 1000の倍数でない場合は、1000-(N円の1の位~百の位)がお釣りとなる\n\t int answer = 0;\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t try{\n\t String str = br.readLine();\n\t int n = Integer.parseInt(str);\n\n\t if (n % 1000 == 0) {\n\t System.out.println(answer);\n\t } else {\n\t answer = 1000 - (n % 1000);\n\t System.out.println(answer);\n\t }\n\n\t } catch (IOException ioe) {\n\n\t }\n\t}", "int answer = 0;", "answer", "0", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "try{\n\t String str = br.readLine();\n\t int n = Integer.parseInt(str);\n\n\t if (n % 1000 == 0) {\n\t System.out.println(answer);\n\t } else {\n\t answer = 1000 - (n % 1000);\n\t System.out.println(answer);\n\t }\n\n\t } catch (IOException ioe) {\n\n\t }", "catch (IOException ioe) {\n\n\t }", "IOException ioe", "{\n\n\t }", "{\n\t String str = br.readLine();\n\t int n = Integer.parseInt(str);\n\n\t if (n % 1000 == 0) {\n\t System.out.println(answer);\n\t } else {\n\t answer = 1000 - (n % 1000);\n\t System.out.println(answer);\n\t }\n\n\t }", "String str = br.readLine();", "str", "br.readLine()", "br.readLine", "br", "int n = Integer.parseInt(str);", "n", "Integer.parseInt(str)", "Integer.parseInt", "Integer", "str", "if (n % 1000 == 0) {\n\t System.out.println(answer);\n\t } else {\n\t answer = 1000 - (n % 1000);\n\t System.out.println(answer);\n\t }", "n % 1000 == 0", "n % 1000", "n", "1000", "0", "{\n\t System.out.println(answer);\n\t }", "System.out.println(answer)", "System.out.println", "System.out", "System", "System.out", "answer", "{\n\t answer = 1000 - (n % 1000);\n\t System.out.println(answer);\n\t }", "answer = 1000 - (n % 1000)", "answer", "1000 - (n % 1000)", "1000", "(n % 1000)", "n", "1000", "System.out.println(answer)", "System.out.println", "System.out", "System", "System.out", "answer", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t // 1000の倍数の場合はお釣りは必ず0円となる\n\t // 1000の倍数でない場合は、1000-(N円の1の位~百の位)がお釣りとなる\n\t int answer = 0;\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t try{\n\t String str = br.readLine();\n\t int n = Integer.parseInt(str);\n\n\t if (n % 1000 == 0) {\n\t System.out.println(answer);\n\t } else {\n\t answer = 1000 - (n % 1000);\n\t System.out.println(answer);\n\t }\n\n\t } catch (IOException ioe) {\n\n\t }\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t // 1000の倍数の場合はお釣りは必ず0円となる\n\t // 1000の倍数でない場合は、1000-(N円の1の位~百の位)がお釣りとなる\n\t int answer = 0;\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t try{\n\t String str = br.readLine();\n\t int n = Integer.parseInt(str);\n\n\t if (n % 1000 == 0) {\n\t System.out.println(answer);\n\t } else {\n\t answer = 1000 - (n % 1000);\n\t System.out.println(answer);\n\t }\n\n\t } catch (IOException ioe) {\n\n\t }\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) { // 1000の倍数の場合はお釣りは必ず0円となる // 1000の倍数でない場合は、1000-(N円の1の位~百の位)がお釣りとなる int answer = 0; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try{ String str = br.readLine(); int n = Integer.parseInt(str); if (n % 1000 == 0) { System.out.println(answer); } else { answer = 1000 - (n % 1000); System.out.println(answer); } } catch (IOException ioe) { } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 1, 40, 13, 30, 30, 41, 13, 2, 13, 13, 14, 2, 13, 13, 30, 0, 13, 2, 13, 13, 3, 4, 18, 13, 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 ], [ 11, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 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 ], [ 35, 36 ], [ 29, 37 ], [ 38, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 41, 43 ], [ 38, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 51, 53 ], [ 48, 54 ], [ 11, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 9, 59 ], [ 59, 60 ] ]
[ "import java.util.*;\nimport java.io.*;\nclass Main{\n\tpublic static void main(String[]args){\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out = new PrintWriter(System.out, true);\n\t\tint n = in.nextInt();\n\t\tint base = 1000;\n\t\tint ans = 0;\n\t\tfor(int i=1;;i++){\n\t\t\tint cash = base*i;\n\t\t\tif(cash >= n){\n\t\t\t\tans = cash - n;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tout.println(ans);\n\t}\n}\t", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "class Main{\n\tpublic static void main(String[]args){\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out = new PrintWriter(System.out, true);\n\t\tint n = in.nextInt();\n\t\tint base = 1000;\n\t\tint ans = 0;\n\t\tfor(int i=1;;i++){\n\t\t\tint cash = base*i;\n\t\t\tif(cash >= n){\n\t\t\t\tans = cash - n;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tout.println(ans);\n\t}\n}", "Main", "public static void main(String[]args){\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out = new PrintWriter(System.out, true);\n\t\tint n = in.nextInt();\n\t\tint base = 1000;\n\t\tint ans = 0;\n\t\tfor(int i=1;;i++){\n\t\t\tint cash = base*i;\n\t\t\tif(cash >= n){\n\t\t\t\tans = cash - n;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tout.println(ans);\n\t}", "main", "{\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out = new PrintWriter(System.out, true);\n\t\tint n = in.nextInt();\n\t\tint base = 1000;\n\t\tint ans = 0;\n\t\tfor(int i=1;;i++){\n\t\t\tint cash = base*i;\n\t\t\tif(cash >= n){\n\t\t\t\tans = cash - n;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tout.println(ans);\n\t}", "Scanner in=new Scanner(System.in);", "in", "new Scanner(System.in)", "PrintWriter out = new PrintWriter(System.out, true);", "out", "new PrintWriter(System.out, true)", "int n = in.nextInt();", "n", "in.nextInt()", "in.nextInt", "in", "int base = 1000;", "base", "1000", "int ans = 0;", "ans", "0", "for(int i=1;;i++){\n\t\t\tint cash = base*i;\n\t\t\tif(cash >= n){\n\t\t\t\tans = cash - n;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "int i=1;", "int i=1;", "i", "1", "i++", "i++", "i", "{\n\t\t\tint cash = base*i;\n\t\t\tif(cash >= n){\n\t\t\t\tans = cash - n;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "{\n\t\t\tint cash = base*i;\n\t\t\tif(cash >= n){\n\t\t\t\tans = cash - n;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "int cash = base*i;", "cash", "base*i", "base", "i", "if(cash >= n){\n\t\t\t\tans = cash - n;\n\t\t\t\tbreak;\n\t\t\t}", "cash >= n", "cash", "n", "{\n\t\t\t\tans = cash - n;\n\t\t\t\tbreak;\n\t\t\t}", "ans = cash - n", "ans", "cash - n", "cash", "n", "break;", "out.println(ans)", "out.println", "out", "ans", "String[]args", "args" ]
import java.util.*; import java.io.*; class Main{ public static void main(String[]args){ Scanner in=new Scanner(System.in); PrintWriter out = new PrintWriter(System.out, true); int n = in.nextInt(); int base = 1000; int ans = 0; for(int i=1;;i++){ int cash = base*i; if(cash >= n){ ans = cash - n; break; } } out.println(ans); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 2, 13, 17, 14, 2, 13, 17, 30, 41, 13, 2, 17, 13, 4, 18, 18, 13, 13, 13, 30, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 4, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 11, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 19, 21 ], [ 11, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 22, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 29, 31 ], [ 26, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 22, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 9, 45 ], [ 45, 46 ] ]
[ "import java.util.*;\n\nclass Main {\n static Scanner sc = new Scanner(System.in);\n\n public static void main(String[] args) {\n int n = sc.nextInt();\n int x = n % 1000;\n if (x > 0) {\n int y = 1000 - x;\n System.out.println(y);\n } else {\n System.out.println(x);\n }\n }\n}", "import java.util.*;", "util.*", "java", "class Main {\n static Scanner sc = new Scanner(System.in);\n\n public static void main(String[] args) {\n int n = sc.nextInt();\n int x = n % 1000;\n if (x > 0) {\n int y = 1000 - x;\n System.out.println(y);\n } else {\n System.out.println(x);\n }\n }\n}", "Main", "static Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "public static void main(String[] args) {\n int n = sc.nextInt();\n int x = n % 1000;\n if (x > 0) {\n int y = 1000 - x;\n System.out.println(y);\n } else {\n System.out.println(x);\n }\n }", "main", "{\n int n = sc.nextInt();\n int x = n % 1000;\n if (x > 0) {\n int y = 1000 - x;\n System.out.println(y);\n } else {\n System.out.println(x);\n }\n }", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int x = n % 1000;", "x", "n % 1000", "n", "1000", "if (x > 0) {\n int y = 1000 - x;\n System.out.println(y);\n } else {\n System.out.println(x);\n }", "x > 0", "x", "0", "{\n int y = 1000 - x;\n System.out.println(y);\n }", "int y = 1000 - x;", "y", "1000 - x", "1000", "x", "System.out.println(y)", "System.out.println", "System.out", "System", "System.out", "y", "{\n System.out.println(x);\n }", "System.out.println(x)", "System.out.println", "System.out", "System", "System.out", "x", "String[] args", "args" ]
import java.util.*; class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int n = sc.nextInt(); int x = n % 1000; if (x > 0) { int y = 1000 - x; System.out.println(y); } else { System.out.println(x); } } }
[ 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, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 47, 8 ], [ 47, 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 ], [ 0, 46 ], [ 46, 47 ], [ 46, 48 ] ]
[ "import java.util.HashMap;\nimport java.util.Scanner;\n\npublic class Main {\n\t\n\t\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tif(n%1000==0) {\n\t\t\tSystem.out.println(0);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(1000-n%1000);\n\t\t}\n\t}\n\n}", "import java.util.HashMap;", "HashMap", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\t\n\t\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tif(n%1000==0) {\n\t\t\tSystem.out.println(0);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(1000-n%1000);\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tif(n%1000==0) {\n\t\t\tSystem.out.println(0);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(1000-n%1000);\n\t\t}\n\t}", "main", "{\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tif(n%1000==0) {\n\t\t\tSystem.out.println(0);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(1000-n%1000);\n\t\t}\n\t}", "Scanner s = new Scanner(System.in);", "s", "new Scanner(System.in)", "int n = s.nextInt();", "n", "s.nextInt()", "s.nextInt", "s", "if(n%1000==0) {\n\t\t\tSystem.out.println(0);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(1000-n%1000);\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(1000-n%1000);\n\t\t}", "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\t\n\t\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tif(n%1000==0) {\n\t\t\tSystem.out.println(0);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(1000-n%1000);\n\t\t}\n\t}\n\n}", "public class Main {\n\t\n\t\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tif(n%1000==0) {\n\t\t\tSystem.out.println(0);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(1000-n%1000);\n\t\t}\n\t}\n\n}", "Main" ]
import java.util.HashMap; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int n = s.nextInt(); 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, 14, 2, 2, 13, 17, 17, 30, 41, 13, 2, 13, 17, 0, 13, 2, 2, 13, 17, 13, 30, 41, 13, 2, 2, 13, 17, 17, 0, 13, 2, 2, 13, 17, 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 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 21, 25 ], [ 20, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 29, 31 ], [ 26, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 20, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 39, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 8, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 6, 60 ], [ 60, 61 ] ]
[ "import java.util.*;\n\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n Integer price = sc.nextInt();\n Integer change = 0;\n\n if (price % 1000 == 0){\n Integer count_bill = (price / 1000);\n change = ((count_bill * 1000) - price); \n }\n else{\n Integer count_bill = (price / 1000) + 1;\n change = ((count_bill * 1000) - price); \n }\n \n System.out.println(change);\n }\n}", "import java.util.*;", "util.*", "java", "class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n Integer price = sc.nextInt();\n Integer change = 0;\n\n if (price % 1000 == 0){\n Integer count_bill = (price / 1000);\n change = ((count_bill * 1000) - price); \n }\n else{\n Integer count_bill = (price / 1000) + 1;\n change = ((count_bill * 1000) - price); \n }\n \n System.out.println(change);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n Integer price = sc.nextInt();\n Integer change = 0;\n\n if (price % 1000 == 0){\n Integer count_bill = (price / 1000);\n change = ((count_bill * 1000) - price); \n }\n else{\n Integer count_bill = (price / 1000) + 1;\n change = ((count_bill * 1000) - price); \n }\n \n System.out.println(change);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n Integer price = sc.nextInt();\n Integer change = 0;\n\n if (price % 1000 == 0){\n Integer count_bill = (price / 1000);\n change = ((count_bill * 1000) - price); \n }\n else{\n Integer count_bill = (price / 1000) + 1;\n change = ((count_bill * 1000) - price); \n }\n \n System.out.println(change);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "Integer price = sc.nextInt();", "price", "sc.nextInt()", "sc.nextInt", "sc", "Integer change = 0;", "change", "0", "if (price % 1000 == 0){\n Integer count_bill = (price / 1000);\n change = ((count_bill * 1000) - price); \n }\n else{\n Integer count_bill = (price / 1000) + 1;\n change = ((count_bill * 1000) - price); \n }", "price % 1000 == 0", "price % 1000", "price", "1000", "0", "{\n Integer count_bill = (price / 1000);\n change = ((count_bill * 1000) - price); \n }", "Integer count_bill = (price / 1000);", "count_bill", "(price / 1000)", "price", "1000", "change = ((count_bill * 1000) - price)", "change", "((count_bill * 1000) - price)", "(count_bill * 1000)", "count_bill", "1000", "price", "{\n Integer count_bill = (price / 1000) + 1;\n change = ((count_bill * 1000) - price); \n }", "Integer count_bill = (price / 1000) + 1;", "count_bill", "(price / 1000) + 1", "(price / 1000)", "price", "1000", "1", "change = ((count_bill * 1000) - price)", "change", "((count_bill * 1000) - price)", "(count_bill * 1000)", "count_bill", "1000", "price", "System.out.println(change)", "System.out.println", "System.out", "System", "System.out", "change", "String[] args", "args" ]
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); Integer price = sc.nextInt(); Integer change = 0; if (price % 1000 == 0){ Integer count_bill = (price / 1000); change = ((count_bill * 1000) - price); } else{ Integer count_bill = (price / 1000) + 1; change = ((count_bill * 1000) - price); } System.out.println(change); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 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 ], [ 37, 5 ], [ 37, 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 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 24, 26 ], [ 21, 27 ], [ 10, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 28, 33 ], [ 6, 34 ], [ 34, 35 ], [ 0, 36 ], [ 36, 37 ], [ 36, 38 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\t\t\t\n\t\t\tint n = sc.nextInt();\n\t\t\t\n\t\t\tint ans = (1000 - (n % 1000)) % 1000;\n\t\t\t\n\t\t\tSystem.out.println(ans);\n\t\t}\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 sc = new Scanner(System.in)) {\n\t\t\t\n\t\t\tint n = sc.nextInt();\n\t\t\t\n\t\t\tint ans = (1000 - (n % 1000)) % 1000;\n\t\t\t\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args){\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\t\t\t\n\t\t\tint n = sc.nextInt();\n\t\t\t\n\t\t\tint ans = (1000 - (n % 1000)) % 1000;\n\t\t\t\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}", "main", "{\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\t\t\t\n\t\t\tint n = sc.nextInt();\n\t\t\t\n\t\t\tint ans = (1000 - (n % 1000)) % 1000;\n\t\t\t\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}", "try(Scanner sc = new Scanner(System.in)) {\n\t\t\t\n\t\t\tint n = sc.nextInt();\n\t\t\t\n\t\t\tint ans = (1000 - (n % 1000)) % 1000;\n\t\t\t\n\t\t\tSystem.out.println(ans);\n\t\t}", "{\n\t\t\t\n\t\t\tint n = sc.nextInt();\n\t\t\t\n\t\t\tint ans = (1000 - (n % 1000)) % 1000;\n\t\t\t\n\t\t\tSystem.out.println(ans);\n\t\t}", "Scanner sc = new Scanner(System.in)", "Scanner sc = new Scanner(System.in)", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int ans = (1000 - (n % 1000)) % 1000;", "ans", "(1000 - (n % 1000)) % 1000", "(1000 - (n % 1000))", "1000", "(n % 1000)", "n", "1000", "1000", "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\ttry(Scanner sc = new Scanner(System.in)) {\n\t\t\t\n\t\t\tint n = sc.nextInt();\n\t\t\t\n\t\t\tint ans = (1000 - (n % 1000)) % 1000;\n\t\t\t\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\t\t\t\n\t\t\tint n = sc.nextInt();\n\t\t\t\n\t\t\tint ans = (1000 - (n % 1000)) % 1000;\n\t\t\t\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ try(Scanner sc = new Scanner(System.in)) { int n = sc.nextInt(); int ans = (1000 - (n % 1000)) % 1000; System.out.println(ans); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 4, 18, 13, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 17, 14, 2, 2, 13, 17, 17, 30, 0, 13, 2, 17, 2, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 6, 13, 41, 13, 41, 13, 41, 13, 41, 13, 17, 12, 13, 30, 0, 13, 20, 17, 0, 13, 17, 0, 13, 20, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 14, 2, 13, 18, 13, 13, 29, 18, 13, 40, 13, 41, 13, 4, 18, 13, 42, 4, 18, 13, 17, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 13, 17, 0, 13, 17, 29, 18, 13, 40, 13, 29, 17, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 29, 4, 18, 13, 4, 13, 29, 40, 17, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 29, 4, 18, 13, 4, 13, 29, 40, 17, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 29, 4, 18, 13, 4, 13, 29, 40, 17, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 207, 11 ], [ 207, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 19, 20 ], [ 18, 21 ], [ 12, 22 ], [ 22, 23 ], [ 207, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 35, 36 ], [ 36, 37 ], [ 26, 38 ], [ 38, 39 ], [ 38, 40 ], [ 26, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 41, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 52, 54 ], [ 41, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 26, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 24, 65 ], [ 65, 66 ], [ 207, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 67, 71 ], [ 71, 72 ], [ 67, 73 ], [ 73, 74 ], [ 67, 75 ], [ 75, 76 ], [ 75, 77 ], [ 67, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 85 ], [ 85, 86 ], [ 85, 87 ], [ 80, 88 ], [ 88, 89 ], [ 88, 90 ], [ 67, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 94, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 105, 107 ], [ 102, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 101, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 116, 117 ], [ 101, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 119, 122 ], [ 118, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 126, 127 ], [ 127, 128 ], [ 101, 129 ], [ 129, 130 ], [ 129, 131 ], [ 131, 132 ], [ 132, 133 ], [ 131, 134 ], [ 131, 135 ], [ 101, 136 ], [ 136, 137 ], [ 136, 138 ], [ 101, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 142, 143 ], [ 93, 144 ], [ 144, 145 ], [ 67, 146 ], [ 146, 147 ], [ 146, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 149, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 158, 161 ], [ 161, 162 ], [ 148, 163 ], [ 163, 164 ], [ 164, 165 ], [ 67, 166 ], [ 166, 167 ], [ 166, 168 ], [ 168, 169 ], [ 169, 170 ], [ 170, 171 ], [ 170, 172 ], [ 172, 173 ], [ 173, 174 ], [ 174, 175 ], [ 169, 176 ], [ 176, 177 ], [ 177, 178 ], [ 178, 179 ], [ 179, 180 ], [ 178, 181 ], [ 181, 182 ], [ 168, 183 ], [ 183, 184 ], [ 184, 185 ], [ 67, 186 ], [ 186, 187 ], [ 186, 188 ], [ 188, 189 ], [ 189, 190 ], [ 190, 191 ], [ 190, 192 ], [ 192, 193 ], [ 193, 194 ], [ 194, 195 ], [ 189, 196 ], [ 196, 197 ], [ 197, 198 ], [ 198, 199 ], [ 199, 200 ], [ 198, 201 ], [ 201, 202 ], [ 188, 203 ], [ 203, 204 ], [ 204, 205 ], [ 0, 206 ], [ 206, 207 ], [ 206, 208 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\n\n\npublic class Main {\n public static void main(String[] args) {\n Main main = new Main();\n main.solve(args);\n }\n\n public void solve(String[] args) {\n MyScanner scanner = new MyScanner();\n\n // ビジネスロジックここから\n int n = Integer.parseInt(scanner.next());\n int ans = 0;\n\t\tif(n % 1000 != 0) {\n\t\t\tans = 1000 - n % 1000;\n\t\t} else {\n\t\t\tans = 0;\n\t\t}\n System.out.println(ans);\n \n // ビジネスロジックここまで\n\n }\n\n private class MyScanner {\n String[] s;\n int i;\n BufferedReader br;\n String reg = \" \";\n MyScanner () {\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n public String next() {\n try {\n if (i < s.length) return s[i++];\n String line = br.readLine();\n while (line.equals(\"\")) {line = br.readLine();}\n s = line.split(reg, 0);\n i = 0;return s[i++];\n } catch (Exception e) {e.printStackTrace();}\n return null;\n }\n public int nextInt() {\n try {return Integer.parseInt(next());} catch (Exception e) {e.printStackTrace();}\n return -1;\n }\n public double nextDouble() {\n try {return Double.parseDouble(next());} catch (Exception e) {e.printStackTrace();}\n return -1;\n }\n public long nextLong() {\n try {return Long.parseLong(next());} catch (Exception e) {e.printStackTrace();}\n return -1;\n }\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.Arrays;", "Arrays", "java.util", "public class Main {\n public static void main(String[] args) {\n Main main = new Main();\n main.solve(args);\n }\n\n public void solve(String[] args) {\n MyScanner scanner = new MyScanner();\n\n // ビジネスロジックここから\n int n = Integer.parseInt(scanner.next());\n int ans = 0;\n\t\tif(n % 1000 != 0) {\n\t\t\tans = 1000 - n % 1000;\n\t\t} else {\n\t\t\tans = 0;\n\t\t}\n System.out.println(ans);\n \n // ビジネスロジックここまで\n\n }\n\n private class MyScanner {\n String[] s;\n int i;\n BufferedReader br;\n String reg = \" \";\n MyScanner () {\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n public String next() {\n try {\n if (i < s.length) return s[i++];\n String line = br.readLine();\n while (line.equals(\"\")) {line = br.readLine();}\n s = line.split(reg, 0);\n i = 0;return s[i++];\n } catch (Exception e) {e.printStackTrace();}\n return null;\n }\n public int nextInt() {\n try {return Integer.parseInt(next());} catch (Exception e) {e.printStackTrace();}\n return -1;\n }\n public double nextDouble() {\n try {return Double.parseDouble(next());} catch (Exception e) {e.printStackTrace();}\n return -1;\n }\n public long nextLong() {\n try {return Long.parseLong(next());} catch (Exception e) {e.printStackTrace();}\n return -1;\n }\n }\n}", "Main", "public static void main(String[] args) {\n Main main = new Main();\n main.solve(args);\n }", "main", "{\n Main main = new Main();\n main.solve(args);\n }", "Main main = new Main();", "main", "new Main()", "main.solve(args)", "main.solve", "main", "args", "String[] args", "args", "public void solve(String[] args) {\n MyScanner scanner = new MyScanner();\n\n // ビジネスロジックここから\n int n = Integer.parseInt(scanner.next());\n int ans = 0;\n\t\tif(n % 1000 != 0) {\n\t\t\tans = 1000 - n % 1000;\n\t\t} else {\n\t\t\tans = 0;\n\t\t}\n System.out.println(ans);\n \n // ビジネスロジックここまで\n\n }", "solve", "{\n MyScanner scanner = new MyScanner();\n\n // ビジネスロジックここから\n int n = Integer.parseInt(scanner.next());\n int ans = 0;\n\t\tif(n % 1000 != 0) {\n\t\t\tans = 1000 - n % 1000;\n\t\t} else {\n\t\t\tans = 0;\n\t\t}\n System.out.println(ans);\n \n // ビジネスロジックここまで\n\n }", "MyScanner scanner = new MyScanner();", "scanner", "new MyScanner()", "int n = Integer.parseInt(scanner.next());", "n", "Integer.parseInt(scanner.next())", "Integer.parseInt", "Integer", "scanner.next()", "scanner.next", "scanner", "int ans = 0;", "ans", "0", "if(n % 1000 != 0) {\n\t\t\tans = 1000 - n % 1000;\n\t\t} else {\n\t\t\tans = 0;\n\t\t}", "n % 1000 != 0", "n % 1000", "n", "1000", "0", "{\n\t\t\tans = 1000 - n % 1000;\n\t\t}", "ans = 1000 - n % 1000", "ans", "1000 - n % 1000", "1000", "n % 1000", "n", "1000", "{\n\t\t\tans = 0;\n\t\t}", "ans = 0", "ans", "0", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "private class MyScanner {\n String[] s;\n int i;\n BufferedReader br;\n String reg = \" \";\n MyScanner () {\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n public String next() {\n try {\n if (i < s.length) return s[i++];\n String line = br.readLine();\n while (line.equals(\"\")) {line = br.readLine();}\n s = line.split(reg, 0);\n i = 0;return s[i++];\n } catch (Exception e) {e.printStackTrace();}\n return null;\n }\n public int nextInt() {\n try {return Integer.parseInt(next());} catch (Exception e) {e.printStackTrace();}\n return -1;\n }\n public double nextDouble() {\n try {return Double.parseDouble(next());} catch (Exception e) {e.printStackTrace();}\n return -1;\n }\n public long nextLong() {\n try {return Long.parseLong(next());} catch (Exception e) {e.printStackTrace();}\n return -1;\n }\n }", "MyScanner", "String[] s;", "s", "int i;", "i", "BufferedReader br;", "br", "String reg = \" \";", "reg", "\" \"", "MyScanner () {\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }", "MyScanner", "{\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }", "s = new String[0]", "s", "new String[0]", "0", "i = 0", "i", "0", "br = new BufferedReader(new InputStreamReader(System.in))", "br", "new BufferedReader(new InputStreamReader(System.in))", "public String next() {\n try {\n if (i < s.length) return s[i++];\n String line = br.readLine();\n while (line.equals(\"\")) {line = br.readLine();}\n s = line.split(reg, 0);\n i = 0;return s[i++];\n } catch (Exception e) {e.printStackTrace();}\n return null;\n }", "next", "{\n try {\n if (i < s.length) return s[i++];\n String line = br.readLine();\n while (line.equals(\"\")) {line = br.readLine();}\n s = line.split(reg, 0);\n i = 0;return s[i++];\n } catch (Exception e) {e.printStackTrace();}\n return null;\n }", "try {\n if (i < s.length) return s[i++];\n String line = br.readLine();\n while (line.equals(\"\")) {line = br.readLine();}\n s = line.split(reg, 0);\n i = 0;return s[i++];\n } catch (Exception e) {e.printStackTrace();}", "catch (Exception e) {e.printStackTrace();}", "Exception e", "{e.printStackTrace();}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n if (i < s.length) return s[i++];\n String line = br.readLine();\n while (line.equals(\"\")) {line = br.readLine();}\n s = line.split(reg, 0);\n i = 0;return s[i++];\n }", "if (i < s.length) return s[i++];", "i < s.length", "i", "s.length", "s", "s.length", "return s[i++];", "s[i++]", "s", "i++", "i", "String line = br.readLine();", "line", "br.readLine()", "br.readLine", "br", "while (line.equals(\"\")) {line = br.readLine();}", "line.equals(\"\")", "line.equals", "line", "\"\"", "{line = br.readLine();}", "line = br.readLine()", "line", "br.readLine()", "br.readLine", "br", "s = line.split(reg, 0)", "s", "line.split(reg, 0)", "line.split", "line", "reg", "0", "i = 0", "i", "0", "return s[i++];", "s[i++]", "s", "i++", "i", "return null;", "null", "public int nextInt() {\n try {return Integer.parseInt(next());} catch (Exception e) {e.printStackTrace();}\n return -1;\n }", "nextInt", "{\n try {return Integer.parseInt(next());} catch (Exception e) {e.printStackTrace();}\n return -1;\n }", "try {return Integer.parseInt(next());} catch (Exception e) {e.printStackTrace();}", "catch (Exception e) {e.printStackTrace();}", "Exception e", "{e.printStackTrace();}", "e.printStackTrace()", "e.printStackTrace", "e", "{return Integer.parseInt(next());}", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "return -1;", "-1", "1", "public double nextDouble() {\n try {return Double.parseDouble(next());} catch (Exception e) {e.printStackTrace();}\n return -1;\n }", "nextDouble", "{\n try {return Double.parseDouble(next());} catch (Exception e) {e.printStackTrace();}\n return -1;\n }", "try {return Double.parseDouble(next());} catch (Exception e) {e.printStackTrace();}", "catch (Exception e) {e.printStackTrace();}", "Exception e", "{e.printStackTrace();}", "e.printStackTrace()", "e.printStackTrace", "e", "{return Double.parseDouble(next());}", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "return -1;", "-1", "1", "public long nextLong() {\n try {return Long.parseLong(next());} catch (Exception e) {e.printStackTrace();}\n return -1;\n }", "nextLong", "{\n try {return Long.parseLong(next());} catch (Exception e) {e.printStackTrace();}\n return -1;\n }", "try {return Long.parseLong(next());} catch (Exception e) {e.printStackTrace();}", "catch (Exception e) {e.printStackTrace();}", "Exception e", "{e.printStackTrace();}", "e.printStackTrace()", "e.printStackTrace", "e", "{return Long.parseLong(next());}", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "return -1;", "-1", "1", "public class Main {\n public static void main(String[] args) {\n Main main = new Main();\n main.solve(args);\n }\n\n public void solve(String[] args) {\n MyScanner scanner = new MyScanner();\n\n // ビジネスロジックここから\n int n = Integer.parseInt(scanner.next());\n int ans = 0;\n\t\tif(n % 1000 != 0) {\n\t\t\tans = 1000 - n % 1000;\n\t\t} else {\n\t\t\tans = 0;\n\t\t}\n System.out.println(ans);\n \n // ビジネスロジックここまで\n\n }\n\n private class MyScanner {\n String[] s;\n int i;\n BufferedReader br;\n String reg = \" \";\n MyScanner () {\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n public String next() {\n try {\n if (i < s.length) return s[i++];\n String line = br.readLine();\n while (line.equals(\"\")) {line = br.readLine();}\n s = line.split(reg, 0);\n i = 0;return s[i++];\n } catch (Exception e) {e.printStackTrace();}\n return null;\n }\n public int nextInt() {\n try {return Integer.parseInt(next());} catch (Exception e) {e.printStackTrace();}\n return -1;\n }\n public double nextDouble() {\n try {return Double.parseDouble(next());} catch (Exception e) {e.printStackTrace();}\n return -1;\n }\n public long nextLong() {\n try {return Long.parseLong(next());} catch (Exception e) {e.printStackTrace();}\n return -1;\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n Main main = new Main();\n main.solve(args);\n }\n\n public void solve(String[] args) {\n MyScanner scanner = new MyScanner();\n\n // ビジネスロジックここから\n int n = Integer.parseInt(scanner.next());\n int ans = 0;\n\t\tif(n % 1000 != 0) {\n\t\t\tans = 1000 - n % 1000;\n\t\t} else {\n\t\t\tans = 0;\n\t\t}\n System.out.println(ans);\n \n // ビジネスロジックここまで\n\n }\n\n private class MyScanner {\n String[] s;\n int i;\n BufferedReader br;\n String reg = \" \";\n MyScanner () {\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n public String next() {\n try {\n if (i < s.length) return s[i++];\n String line = br.readLine();\n while (line.equals(\"\")) {line = br.readLine();}\n s = line.split(reg, 0);\n i = 0;return s[i++];\n } catch (Exception e) {e.printStackTrace();}\n return null;\n }\n public int nextInt() {\n try {return Integer.parseInt(next());} catch (Exception e) {e.printStackTrace();}\n return -1;\n }\n public double nextDouble() {\n try {return Double.parseDouble(next());} catch (Exception e) {e.printStackTrace();}\n return -1;\n }\n public long nextLong() {\n try {return Long.parseLong(next());} catch (Exception e) {e.printStackTrace();}\n return -1;\n }\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Arrays; public class Main { public static void main(String[] args) { Main main = new Main(); main.solve(args); } public void solve(String[] args) { MyScanner scanner = new MyScanner(); // ビジネスロジックここから int n = Integer.parseInt(scanner.next()); int ans = 0; if(n % 1000 != 0) { ans = 1000 - n % 1000; } else { ans = 0; } System.out.println(ans); // ビジネスロジックここまで } private class MyScanner { String[] s; int i; BufferedReader br; String reg = " "; MyScanner () { s = new String[0]; i = 0; br = new BufferedReader(new InputStreamReader(System.in)); } public String next() { try { if (i < s.length) return s[i++]; String line = br.readLine(); while (line.equals("")) {line = br.readLine();} s = line.split(reg, 0); i = 0;return s[i++]; } catch (Exception e) {e.printStackTrace();} return null; } public int nextInt() { try {return Integer.parseInt(next());} catch (Exception e) {e.printStackTrace();} return -1; } public double nextDouble() { try {return Double.parseDouble(next());} catch (Exception e) {e.printStackTrace();} return -1; } public long nextLong() { try {return Long.parseLong(next());} catch (Exception e) {e.printStackTrace();} return -1; } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 14, 2, 2, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 17, 30, 41, 13, 17, 41, 13, 2, 13, 17, 4, 18, 18, 13, 13, 2, 2, 2, 13, 13, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 66, 5 ], [ 66, 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 ], [ 19, 22 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 24, 28 ], [ 23, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 23, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 36, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 48, 50 ], [ 42, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 51, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 56, 62 ], [ 6, 63 ], [ 63, 64 ], [ 0, 65 ], [ 65, 66 ], [ 65, 67 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString str=sc.nextLine();\n int a =Integer.parseInt(str);\n //int z=a/1000\n\t\t// int b = 1;\n if(a%1000==0){\n System.out.println(0);}\n \n else if(a%1000>0){\n int z=1;\n int b= a/1000;\n \n System.out.println((z+b)*1000-a);\n }\n }\n \n \n\t}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString str=sc.nextLine();\n int a =Integer.parseInt(str);\n //int z=a/1000\n\t\t// int b = 1;\n if(a%1000==0){\n System.out.println(0);}\n \n else if(a%1000>0){\n int z=1;\n int b= a/1000;\n \n System.out.println((z+b)*1000-a);\n }\n }\n \n \n\t}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString str=sc.nextLine();\n int a =Integer.parseInt(str);\n //int z=a/1000\n\t\t// int b = 1;\n if(a%1000==0){\n System.out.println(0);}\n \n else if(a%1000>0){\n int z=1;\n int b= a/1000;\n \n System.out.println((z+b)*1000-a);\n }\n }", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString str=sc.nextLine();\n int a =Integer.parseInt(str);\n //int z=a/1000\n\t\t// int b = 1;\n if(a%1000==0){\n System.out.println(0);}\n \n else if(a%1000>0){\n int z=1;\n int b= a/1000;\n \n System.out.println((z+b)*1000-a);\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String str=sc.nextLine();", "str", "sc.nextLine()", "sc.nextLine", "sc", "int a =Integer.parseInt(str);", "a", "Integer.parseInt(str)", "Integer.parseInt", "Integer", "str", "if(a%1000==0){\n System.out.println(0);}\n \n else if(a%1000>0){\n int z=1;\n int b= a/1000;\n \n System.out.println((z+b)*1000-a);\n }", "a%1000==0", "a%1000", "a", "1000", "0", "{\n System.out.println(0);}", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "if(a%1000>0){\n int z=1;\n int b= a/1000;\n \n System.out.println((z+b)*1000-a);\n }", "a%1000>0", "a%1000", "a", "1000", "0", "{\n int z=1;\n int b= a/1000;\n \n System.out.println((z+b)*1000-a);\n }", "int z=1;", "z", "1", "int b= a/1000;", "b", "a/1000", "a", "1000", "System.out.println((z+b)*1000-a)", "System.out.println", "System.out", "System", "System.out", "(z+b)*1000-a", "(z+b)*1000", "(z+b)", "z", "b", "1000", "a", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString str=sc.nextLine();\n int a =Integer.parseInt(str);\n //int z=a/1000\n\t\t// int b = 1;\n if(a%1000==0){\n System.out.println(0);}\n \n else if(a%1000>0){\n int z=1;\n int b= a/1000;\n \n System.out.println((z+b)*1000-a);\n }\n }\n \n \n\t}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString str=sc.nextLine();\n int a =Integer.parseInt(str);\n //int z=a/1000\n\t\t// int b = 1;\n if(a%1000==0){\n System.out.println(0);}\n \n else if(a%1000>0){\n int z=1;\n int b= a/1000;\n \n System.out.println((z+b)*1000-a);\n }\n }\n \n \n\t}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str=sc.nextLine(); int a =Integer.parseInt(str); //int z=a/1000 // int b = 1; if(a%1000==0){ System.out.println(0);} else if(a%1000>0){ int z=1; int b= a/1000; System.out.println((z+b)*1000-a); } } }
[ 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, 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 ], [ 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 ], [ 19, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 19, 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.Scanner;\n\n\npublic class Main {\n \n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int price = sc.nextInt();\n \n int a = (price+1000-1)/1000;\n int r = a*1000 - price;\n System.out.println(r);\n \n// if(price < 1000) {\n// System.out.println(price);\n// } else {\n// int surplus = price % 1000;\n// int change = 1000 - surplus;\n// System.out.println(change);\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 price = sc.nextInt();\n \n int a = (price+1000-1)/1000;\n int r = a*1000 - price;\n System.out.println(r);\n \n// if(price < 1000) {\n// System.out.println(price);\n// } else {\n// int surplus = price % 1000;\n// int change = 1000 - surplus;\n// System.out.println(change);\n// }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int price = sc.nextInt();\n \n int a = (price+1000-1)/1000;\n int r = a*1000 - price;\n System.out.println(r);\n \n// if(price < 1000) {\n// System.out.println(price);\n// } else {\n// int surplus = price % 1000;\n// int change = 1000 - surplus;\n// System.out.println(change);\n// }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int price = sc.nextInt();\n \n int a = (price+1000-1)/1000;\n int r = a*1000 - price;\n System.out.println(r);\n \n// if(price < 1000) {\n// System.out.println(price);\n// } else {\n// int surplus = price % 1000;\n// int change = 1000 - surplus;\n// System.out.println(change);\n// }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int price = sc.nextInt();", "price", "sc.nextInt()", "sc.nextInt", "sc", "int a = (price+1000-1)/1000;", "a", "(price+1000-1)/1000", "(price+1000-1)", "price+1000", "price", "1000", "1", "1000", "int r = a*1000 - price;", "r", "a*1000 - price", "a*1000", "a", "1000", "price", "System.out.println(r)", "System.out.println", "System.out", "System", "System.out", "r", "String[] args", "args", "public class Main {\n \n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int price = sc.nextInt();\n \n int a = (price+1000-1)/1000;\n int r = a*1000 - price;\n System.out.println(r);\n \n// if(price < 1000) {\n// System.out.println(price);\n// } else {\n// int surplus = price % 1000;\n// int change = 1000 - surplus;\n// System.out.println(change);\n// }\n }\n}", "public class Main {\n \n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int price = sc.nextInt();\n \n int a = (price+1000-1)/1000;\n int r = a*1000 - price;\n System.out.println(r);\n \n// if(price < 1000) {\n// System.out.println(price);\n// } else {\n// int surplus = price % 1000;\n// int change = 1000 - surplus;\n// System.out.println(change);\n// }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int price = sc.nextInt(); int a = (price+1000-1)/1000; int r = a*1000 - price; System.out.println(r); // if(price < 1000) { // System.out.println(price); // } else { // int surplus = price % 1000; // int change = 1000 - surplus; // System.out.println(change); // } } }
[ 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, 4, 18, 18, 13, 13, 17, 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.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = scan.nextInt();\n\t\tint a = N%1000;\n\t\tif(a == 0) {\n\t\t\tSystem.out.println(\"0\");\n\t\t}else {\n\t\t\tint b = 1000-a;\n\t\t\tSystem.out.println(b);\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\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = scan.nextInt();\n\t\tint a = N%1000;\n\t\tif(a == 0) {\n\t\t\tSystem.out.println(\"0\");\n\t\t}else {\n\t\t\tint b = 1000-a;\n\t\t\tSystem.out.println(b);\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = scan.nextInt();\n\t\tint a = N%1000;\n\t\tif(a == 0) {\n\t\t\tSystem.out.println(\"0\");\n\t\t}else {\n\t\t\tint b = 1000-a;\n\t\t\tSystem.out.println(b);\n\t\t}\n\t}", "main", "{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = scan.nextInt();\n\t\tint a = N%1000;\n\t\tif(a == 0) {\n\t\t\tSystem.out.println(\"0\");\n\t\t}else {\n\t\t\tint b = 1000-a;\n\t\t\tSystem.out.println(b);\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", "int a = N%1000;", "a", "N%1000", "N", "1000", "if(a == 0) {\n\t\t\tSystem.out.println(\"0\");\n\t\t}else {\n\t\t\tint b = 1000-a;\n\t\t\tSystem.out.println(b);\n\t\t}", "a == 0", "a", "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\tint b = 1000-a;\n\t\t\tSystem.out.println(b);\n\t\t}", "int b = 1000-a;", "b", "1000-a", "1000", "a", "System.out.println(b)", "System.out.println", "System.out", "System", "System.out", "b", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = scan.nextInt();\n\t\tint a = N%1000;\n\t\tif(a == 0) {\n\t\t\tSystem.out.println(\"0\");\n\t\t}else {\n\t\t\tint b = 1000-a;\n\t\t\tSystem.out.println(b);\n\t\t}\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = scan.nextInt();\n\t\tint a = N%1000;\n\t\tif(a == 0) {\n\t\t\tSystem.out.println(\"0\");\n\t\t}else {\n\t\t\tint b = 1000-a;\n\t\t\tSystem.out.println(b);\n\t\t}\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner scan = new Scanner(System.in); int N = scan.nextInt(); int a = N%1000; if(a == 0) { System.out.println("0"); }else { int b = 1000-a; System.out.println(b); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 2, 17, 13, 14, 2, 2, 13, 17, 2, 2, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 2, 13, 17, 17, 30, 0, 13, 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 ], [ 81, 5 ], [ 81, 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 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 25, 30 ], [ 30, 31 ], [ 30, 32 ], [ 8, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 33, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 8, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 50, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 60, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 6, 78 ], [ 78, 79 ], [ 0, 80 ], [ 80, 81 ], [ 80, 82 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int total = scan.nextInt();\n int noguti = 0;\n if(total < 1000){\n System.out.print(1000- total);\n }\n if(total > 999 && total % 1000 == 0){\n System.out.print(0);\n }\n if(total > 999 && total % 1000 != 0){\n noguti = (total/1000)+ 1;\n System.out.print(1000*noguti - total);\n } \n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int total = scan.nextInt();\n int noguti = 0;\n if(total < 1000){\n System.out.print(1000- total);\n }\n if(total > 999 && total % 1000 == 0){\n System.out.print(0);\n }\n if(total > 999 && total % 1000 != 0){\n noguti = (total/1000)+ 1;\n System.out.print(1000*noguti - total);\n } \n }\n}", "Main", "public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int total = scan.nextInt();\n int noguti = 0;\n if(total < 1000){\n System.out.print(1000- total);\n }\n if(total > 999 && total % 1000 == 0){\n System.out.print(0);\n }\n if(total > 999 && total % 1000 != 0){\n noguti = (total/1000)+ 1;\n System.out.print(1000*noguti - total);\n } \n }", "main", "{\n Scanner scan = new Scanner(System.in);\n int total = scan.nextInt();\n int noguti = 0;\n if(total < 1000){\n System.out.print(1000- total);\n }\n if(total > 999 && total % 1000 == 0){\n System.out.print(0);\n }\n if(total > 999 && total % 1000 != 0){\n noguti = (total/1000)+ 1;\n System.out.print(1000*noguti - total);\n } \n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int total = scan.nextInt();", "total", "scan.nextInt()", "scan.nextInt", "scan", "int noguti = 0;", "noguti", "0", "if(total < 1000){\n System.out.print(1000- total);\n }", "total < 1000", "total", "1000", "{\n System.out.print(1000- total);\n }", "System.out.print(1000- total)", "System.out.print", "System.out", "System", "System.out", "1000- total", "1000", "total", "if(total > 999 && total % 1000 == 0){\n System.out.print(0);\n }", "total > 999 && total % 1000 == 0", "total > 999", "total", "999", "total % 1000 == 0", "total % 1000", "total", "1000", "0", "{\n System.out.print(0);\n }", "System.out.print(0)", "System.out.print", "System.out", "System", "System.out", "0", "if(total > 999 && total % 1000 != 0){\n noguti = (total/1000)+ 1;\n System.out.print(1000*noguti - total);\n }", "total > 999 && total % 1000 != 0", "total > 999", "total", "999", "total % 1000 != 0", "total % 1000", "total", "1000", "0", "{\n noguti = (total/1000)+ 1;\n System.out.print(1000*noguti - total);\n }", "noguti = (total/1000)+ 1", "noguti", "(total/1000)+ 1", "(total/1000)", "total", "1000", "1", "System.out.print(1000*noguti - total)", "System.out.print", "System.out", "System", "System.out", "1000*noguti - total", "1000*noguti", "1000", "noguti", "total", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int total = scan.nextInt();\n int noguti = 0;\n if(total < 1000){\n System.out.print(1000- total);\n }\n if(total > 999 && total % 1000 == 0){\n System.out.print(0);\n }\n if(total > 999 && total % 1000 != 0){\n noguti = (total/1000)+ 1;\n System.out.print(1000*noguti - total);\n } \n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int total = scan.nextInt();\n int noguti = 0;\n if(total < 1000){\n System.out.print(1000- total);\n }\n if(total > 999 && total % 1000 == 0){\n System.out.print(0);\n }\n if(total > 999 && total % 1000 != 0){\n noguti = (total/1000)+ 1;\n System.out.print(1000*noguti - total);\n } \n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int total = scan.nextInt(); int noguti = 0; if(total < 1000){ System.out.print(1000- total); } if(total > 999 && total % 1000 == 0){ System.out.print(0); } if(total > 999 && total % 1000 != 0){ noguti = (total/1000)+ 1; System.out.print(1000*noguti - total); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 17, 41, 13, 20, 0, 13, 4, 18, 13, 14, 2, 2, 13, 17, 17, 30, 41, 13, 2, 17, 2, 13, 17, 4, 18, 18, 13, 13, 13, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 52, 5 ], [ 52, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 8, 11 ], [ 11, 12 ], [ 11, 13 ], [ 8, 14 ], [ 14, 15 ], [ 14, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 33, 35 ], [ 28, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 22, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 6, 49 ], [ 49, 50 ], [ 0, 51 ], [ 51, 52 ], [ 51, 53 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n \tint n;\n \tint senCount=0;\n \tScanner sc=new Scanner(System.in);\n \tn=sc.nextInt();\n\t\n \tif((n%1000)!=0){\n \tint amari=1000-(n%1000);\n \tSystem.out.println(amari);\n \t}else{\n \t System.out.println(0);\n \t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n \tint n;\n \tint senCount=0;\n \tScanner sc=new Scanner(System.in);\n \tn=sc.nextInt();\n\t\n \tif((n%1000)!=0){\n \tint amari=1000-(n%1000);\n \tSystem.out.println(amari);\n \t}else{\n \t System.out.println(0);\n \t}\n\t}\n}", "Main", "public static void main(String[] args) {\n \tint n;\n \tint senCount=0;\n \tScanner sc=new Scanner(System.in);\n \tn=sc.nextInt();\n\t\n \tif((n%1000)!=0){\n \tint amari=1000-(n%1000);\n \tSystem.out.println(amari);\n \t}else{\n \t System.out.println(0);\n \t}\n\t}", "main", "{\n \tint n;\n \tint senCount=0;\n \tScanner sc=new Scanner(System.in);\n \tn=sc.nextInt();\n\t\n \tif((n%1000)!=0){\n \tint amari=1000-(n%1000);\n \tSystem.out.println(amari);\n \t}else{\n \t System.out.println(0);\n \t}\n\t}", "int n;", "n", "int senCount=0;", "senCount", "0", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "n=sc.nextInt()", "n", "sc.nextInt()", "sc.nextInt", "sc", "if((n%1000)!=0){\n \tint amari=1000-(n%1000);\n \tSystem.out.println(amari);\n \t}else{\n \t System.out.println(0);\n \t}", "(n%1000)!=0", "(n%1000)", "n", "1000", "0", "{\n \tint amari=1000-(n%1000);\n \tSystem.out.println(amari);\n \t}", "int amari=1000-(n%1000);", "amari", "1000-(n%1000)", "1000", "(n%1000)", "n", "1000", "System.out.println(amari)", "System.out.println", "System.out", "System", "System.out", "amari", "{\n \t System.out.println(0);\n \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 \tint n;\n \tint senCount=0;\n \tScanner sc=new Scanner(System.in);\n \tn=sc.nextInt();\n\t\n \tif((n%1000)!=0){\n \tint amari=1000-(n%1000);\n \tSystem.out.println(amari);\n \t}else{\n \t System.out.println(0);\n \t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n \tint n;\n \tint senCount=0;\n \tScanner sc=new Scanner(System.in);\n \tn=sc.nextInt();\n\t\n \tif((n%1000)!=0){\n \tint amari=1000-(n%1000);\n \tSystem.out.println(amari);\n \t}else{\n \t System.out.println(0);\n \t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { int n; int senCount=0; Scanner sc=new Scanner(System.in); n=sc.nextInt(); if((n%1000)!=0){ int amari=1000-(n%1000); System.out.println(amari); }else{ System.out.println(0); } } }
[ 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, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 18, 13, 13, 2, 2, 2, 40, 13, 17, 17, 17, 23, 13, 6, 13, 41, 13, 20, 41, 13, 20, 12, 13, 30, 42, 40, 4, 18, 13, 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, 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, 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 ], [ 132, 26 ], [ 132, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 29, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 29, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 44, 49 ], [ 43, 50 ], [ 27, 51 ], [ 51, 52 ], [ 132, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 58, 59 ], [ 58, 60 ], [ 53, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 64, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 69, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 63, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 53, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 88, 91 ], [ 91, 92 ], [ 53, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 105, 106 ], [ 105, 107 ], [ 100, 108 ], [ 108, 109 ], [ 109, 110 ], [ 100, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 112, 116 ], [ 116, 117 ], [ 95, 118 ], [ 118, 119 ], [ 93, 120 ], [ 120, 121 ], [ 53, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 126, 129 ], [ 129, 130 ], [ 0, 131 ], [ 131, 132 ], [ 131, 133 ] ]
[ "import java.io.*;\nimport java.math.*;\nimport java.security.*;\nimport java.text.*;\nimport java.time.LocalTime;\nimport java.util.*;\nimport java.util.concurrent.*;\nimport java.util.regex.*;\n\n\npublic class Main {\n\n public static void main(String[] args) {\n \n \tFastScanner scan = new FastScanner();\n \t\n \tint n = scan.nextInt();\n \tSystem.out.println((-n%1000 + 1000) % 1000);\n \t} \n \n \n static class FastScanner{\n \t\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tStringTokenizer st = new StringTokenizer(\"\");\n \tString next() {\n \t\twhile(!st.hasMoreTokens())\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\treturn st.nextToken();\n \t}\n \t\n \tint nextInt() {\n \t\treturn Integer.parseInt(next());\n \t}\n \t\n \tint [] readArray(int n) {\n \t\tint [] a = new int[n];\n \t\tfor(int i=0; i<n ; i++) a[i] = nextInt();\n \t\treturn a;\n \t}\n \t\n \tlong nextLong() {\n \t\treturn Long.parseLong(next());\n \t}\n \t\n \t\n }\n \n \n}\n", "import java.io.*;", "io.*", "java", "import java.math.*;", "math.*", "java", "import java.security.*;", "security.*", "java", "import java.text.*;", "text.*", "java", "import java.time.LocalTime;", "LocalTime", "java.time", "import java.util.*;", "util.*", "java", "import java.util.concurrent.*;", "concurrent.*", "java.util", "import java.util.regex.*;", "regex.*", "java.util", "public class Main {\n\n public static void main(String[] args) {\n \n \tFastScanner scan = new FastScanner();\n \t\n \tint n = scan.nextInt();\n \tSystem.out.println((-n%1000 + 1000) % 1000);\n \t} \n \n \n static class FastScanner{\n \t\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tStringTokenizer st = new StringTokenizer(\"\");\n \tString next() {\n \t\twhile(!st.hasMoreTokens())\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\treturn st.nextToken();\n \t}\n \t\n \tint nextInt() {\n \t\treturn Integer.parseInt(next());\n \t}\n \t\n \tint [] readArray(int n) {\n \t\tint [] a = new int[n];\n \t\tfor(int i=0; i<n ; i++) a[i] = nextInt();\n \t\treturn a;\n \t}\n \t\n \tlong nextLong() {\n \t\treturn Long.parseLong(next());\n \t}\n \t\n \t\n }\n \n \n}", "Main", "public static void main(String[] args) {\n \n \tFastScanner scan = new FastScanner();\n \t\n \tint n = scan.nextInt();\n \tSystem.out.println((-n%1000 + 1000) % 1000);\n \t}", "main", "{\n \n \tFastScanner scan = new FastScanner();\n \t\n \tint n = scan.nextInt();\n \tSystem.out.println((-n%1000 + 1000) % 1000);\n \t}", "FastScanner scan = new FastScanner();", "scan", "new FastScanner()", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "System.out.println((-n%1000 + 1000) % 1000)", "System.out.println", "System.out", "System", "System.out", "(-n%1000 + 1000) % 1000", "(-n%1000 + 1000)", "-n%1000", "-n", "n", "1000", "1000", "1000", "String[] args", "args", "static class FastScanner{\n \t\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tStringTokenizer st = new StringTokenizer(\"\");\n \tString next() {\n \t\twhile(!st.hasMoreTokens())\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\treturn st.nextToken();\n \t}\n \t\n \tint nextInt() {\n \t\treturn Integer.parseInt(next());\n \t}\n \t\n \tint [] readArray(int n) {\n \t\tint [] a = new int[n];\n \t\tfor(int i=0; i<n ; i++) a[i] = nextInt();\n \t\treturn a;\n \t}\n \t\n \tlong nextLong() {\n \t\treturn Long.parseLong(next());\n \t}\n \t\n \t\n }", "FastScanner", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringTokenizer st = new StringTokenizer(\"\");", "st", "new StringTokenizer(\"\")", "String next() {\n \t\twhile(!st.hasMoreTokens())\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\treturn st.nextToken();\n \t}", "next", "{\n \t\twhile(!st.hasMoreTokens())\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\treturn st.nextToken();\n \t}", "while(!st.hasMoreTokens())\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}", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "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())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "int nextInt() {\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", "int [] readArray(int n) {\n \t\tint [] a = new int[n];\n \t\tfor(int i=0; i<n ; i++) a[i] = nextInt();\n \t\treturn a;\n \t}", "readArray", "{\n \t\tint [] a = new int[n];\n \t\tfor(int i=0; i<n ; i++) a[i] = nextInt();\n \t\treturn a;\n \t}", "int [] a = new int[n];", "a", "new int[n]", "n", "for(int i=0; i<n ; i++) 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", "long nextLong() {\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", "public class Main {\n\n public static void main(String[] args) {\n \n \tFastScanner scan = new FastScanner();\n \t\n \tint n = scan.nextInt();\n \tSystem.out.println((-n%1000 + 1000) % 1000);\n \t} \n \n \n static class FastScanner{\n \t\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tStringTokenizer st = new StringTokenizer(\"\");\n \tString next() {\n \t\twhile(!st.hasMoreTokens())\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\treturn st.nextToken();\n \t}\n \t\n \tint nextInt() {\n \t\treturn Integer.parseInt(next());\n \t}\n \t\n \tint [] readArray(int n) {\n \t\tint [] a = new int[n];\n \t\tfor(int i=0; i<n ; i++) a[i] = nextInt();\n \t\treturn a;\n \t}\n \t\n \tlong nextLong() {\n \t\treturn Long.parseLong(next());\n \t}\n \t\n \t\n }\n \n \n}", "public class Main {\n\n public static void main(String[] args) {\n \n \tFastScanner scan = new FastScanner();\n \t\n \tint n = scan.nextInt();\n \tSystem.out.println((-n%1000 + 1000) % 1000);\n \t} \n \n \n static class FastScanner{\n \t\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tStringTokenizer st = new StringTokenizer(\"\");\n \tString next() {\n \t\twhile(!st.hasMoreTokens())\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\treturn st.nextToken();\n \t}\n \t\n \tint nextInt() {\n \t\treturn Integer.parseInt(next());\n \t}\n \t\n \tint [] readArray(int n) {\n \t\tint [] a = new int[n];\n \t\tfor(int i=0; i<n ; i++) a[i] = nextInt();\n \t\treturn a;\n \t}\n \t\n \tlong nextLong() {\n \t\treturn Long.parseLong(next());\n \t}\n \t\n \t\n }\n \n \n}", "Main" ]
import java.io.*; import java.math.*; import java.security.*; import java.text.*; import java.time.LocalTime; import java.util.*; import java.util.concurrent.*; import java.util.regex.*; public class Main { public static void main(String[] args) { FastScanner scan = new FastScanner(); int n = scan.nextInt(); System.out.println((-n%1000 + 1000) % 1000); } static class FastScanner{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(""); String next() { while(!st.hasMoreTokens()) try { st = new StringTokenizer(br.readLine()); } catch (IOException e){ e.printStackTrace(); } return st.nextToken(); } int nextInt() { return Integer.parseInt(next()); } int [] readArray(int n) { int [] a = new int[n]; for(int i=0; i<n ; i++) a[i] = nextInt(); return a; } long nextLong() { return Long.parseLong(next()); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 20, 41, 13, 17, 42, 2, 40, 13, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 2, 13, 17, 0, 13, 17, 4, 18, 13, 2, 13, 13, 4, 18, 13, 23, 13, 6, 13, 41, 13, 41, 13, 20, 17, 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, 30, 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, 0, 13, 17, 0, 13, 2, 13, 17, 0, 13, 4, 13, 29, 2, 13, 13, 12, 13, 30, 41, 13, 4, 13, 42, 4, 13, 13, 30, 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, 0, 13, 17, 0, 13, 2, 13, 17, 0, 13, 4, 13, 29, 2, 13, 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, 11, 1, 41, 13, 17, 41, 13, 18, 13, 13, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 2, 4, 18, 13, 2, 13, 13, 13, 41, 13, 18, 13, 13, 0, 18, 13, 13, 18, 13, 13, 0, 18, 13, 13, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 4, 13, 42, 4, 13, 13, 30, 0, 13, 4, 13, 41, 13, 20, 42, 40, 4, 13, 13, 30, 4, 18, 13, 13, 0, 13, 4, 13, 29, 4, 18, 13, 12, 13, 30, 41, 13, 4, 13, 42, 4, 13, 13, 0, 13, 4, 13, 41, 13, 20, 42, 40, 4, 13, 13, 30, 4, 18, 13, 13, 0, 13, 4, 13, 29, 4, 18, 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, 29, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 40, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 438, 8 ], [ 438, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 18 ], [ 18, 19 ], [ 18, 20 ], [ 11, 21 ], [ 21, 22 ], [ 21, 23 ], [ 11, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 24, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 29, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 40, 41 ], [ 40, 42 ], [ 29, 43 ], [ 43, 44 ], [ 43, 45 ], [ 29, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 49, 50 ], [ 49, 51 ], [ 11, 52 ], [ 52, 53 ], [ 53, 54 ], [ 9, 55 ], [ 55, 56 ], [ 438, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 57, 61 ], [ 61, 62 ], [ 61, 63 ], [ 57, 65 ], [ 65, 66 ], [ 57, 67 ], [ 67, 68 ], [ 57, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 69, 77 ], [ 77, 78 ], [ 57, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 82, 87 ], [ 87, 88 ], [ 81, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 101, 102 ], [ 97, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 109 ], [ 93, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 110, 114 ], [ 114, 115 ], [ 115, 116 ], [ 81, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 57, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 124, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 129, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 136, 137 ], [ 124, 138 ], [ 138, 139 ], [ 138, 140 ], [ 124, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 141, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 148, 149 ], [ 145, 150 ], [ 150, 151 ], [ 150, 152 ], [ 152, 153 ], [ 124, 154 ], [ 154, 155 ], [ 154, 156 ], [ 124, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 157, 162 ], [ 162, 163 ], [ 163, 164 ], [ 163, 165 ], [ 162, 166 ], [ 166, 167 ], [ 166, 168 ], [ 168, 169 ], [ 168, 170 ], [ 162, 171 ], [ 171, 172 ], [ 171, 173 ], [ 173, 174 ], [ 124, 175 ], [ 175, 176 ], [ 176, 177 ], [ 176, 178 ], [ 57, 179 ], [ 179, 180 ], [ 179, 181 ], [ 181, 182 ], [ 182, 183 ], [ 182, 184 ], [ 184, 185 ], [ 181, 186 ], [ 186, 187 ], [ 187, 188 ], [ 187, 189 ], [ 186, 190 ], [ 190, 191 ], [ 191, 192 ], [ 191, 193 ], [ 193, 194 ], [ 181, 195 ], [ 195, 196 ], [ 195, 197 ], [ 181, 198 ], [ 198, 199 ], [ 199, 200 ], [ 199, 201 ], [ 198, 202 ], [ 202, 203 ], [ 203, 204 ], [ 203, 205 ], [ 205, 206 ], [ 202, 207 ], [ 207, 208 ], [ 207, 209 ], [ 209, 210 ], [ 181, 211 ], [ 211, 212 ], [ 211, 213 ], [ 181, 214 ], [ 214, 215 ], [ 215, 216 ], [ 216, 217 ], [ 216, 218 ], [ 214, 219 ], [ 219, 220 ], [ 220, 221 ], [ 220, 222 ], [ 219, 223 ], [ 223, 224 ], [ 223, 225 ], [ 225, 226 ], [ 225, 227 ], [ 219, 228 ], [ 228, 229 ], [ 228, 230 ], [ 230, 231 ], [ 181, 232 ], [ 232, 233 ], [ 233, 234 ], [ 233, 235 ], [ 57, 236 ], [ 236, 237 ], [ 236, 238 ], [ 238, 239 ], [ 239, 240 ], [ 239, 241 ], [ 238, 243 ], [ 243, 244 ], [ 244, 245 ], [ 245, 246 ], [ 245, 247 ], [ 243, 248 ], [ 248, 249 ], [ 248, 250 ], [ 243, 251 ], [ 251, 252 ], [ 252, 253 ], [ 243, 254 ], [ 255, 255 ], [ 255, 256 ], [ 256, 257 ], [ 257, 258 ], [ 257, 259 ], [ 256, 260 ], [ 260, 261 ], [ 238, 262 ], [ 262, 263 ], [ 236, 264 ], [ 264, 265 ], [ 57, 266 ], [ 266, 267 ], [ 266, 268 ], [ 268, 269 ], [ 269, 270 ], [ 270, 271 ], [ 271, 272 ], [ 271, 273 ], [ 270, 274 ], [ 274, 275 ], [ 274, 276 ], [ 276, 277 ], [ 276, 278 ], [ 269, 279 ], [ 279, 280 ], [ 279, 281 ], [ 269, 282 ], [ 282, 283 ], [ 283, 284 ], [ 269, 285 ], [ 286, 286 ], [ 286, 287 ], [ 287, 288 ], [ 287, 289 ], [ 289, 290 ], [ 290, 291 ], [ 291, 292 ], [ 290, 293 ], [ 293, 294 ], [ 293, 295 ], [ 289, 296 ], [ 286, 297 ], [ 297, 298 ], [ 297, 299 ], [ 299, 300 ], [ 299, 301 ], [ 286, 302 ], [ 302, 303 ], [ 303, 304 ], [ 303, 305 ], [ 302, 306 ], [ 306, 307 ], [ 306, 308 ], [ 286, 309 ], [ 309, 310 ], [ 310, 311 ], [ 310, 312 ], [ 309, 313 ], [ 268, 314 ], [ 314, 315 ], [ 266, 316 ], [ 316, 317 ], [ 266, 318 ], [ 318, 319 ], [ 57, 320 ], [ 320, 321 ], [ 320, 322 ], [ 322, 323 ], [ 323, 324 ], [ 323, 325 ], [ 325, 326 ], [ 322, 327 ], [ 327, 328 ], [ 328, 329 ], [ 328, 330 ], [ 327, 331 ], [ 331, 332 ], [ 332, 333 ], [ 332, 334 ], [ 334, 335 ], [ 322, 336 ], [ 336, 337 ], [ 336, 338 ], [ 322, 339 ], [ 339, 340 ], [ 340, 341 ], [ 341, 342 ], [ 341, 343 ], [ 339, 344 ], [ 344, 345 ], [ 345, 346 ], [ 346, 347 ], [ 345, 348 ], [ 344, 349 ], [ 349, 350 ], [ 349, 351 ], [ 351, 352 ], [ 322, 353 ], [ 353, 354 ], [ 354, 355 ], [ 355, 356 ], [ 57, 357 ], [ 357, 358 ], [ 357, 359 ], [ 359, 360 ], [ 360, 361 ], [ 360, 362 ], [ 362, 363 ], [ 359, 364 ], [ 364, 365 ], [ 365, 366 ], [ 365, 367 ], [ 364, 368 ], [ 368, 369 ], [ 368, 370 ], [ 370, 371 ], [ 359, 372 ], [ 372, 373 ], [ 372, 374 ], [ 359, 375 ], [ 375, 376 ], [ 376, 377 ], [ 377, 378 ], [ 377, 379 ], [ 375, 380 ], [ 380, 381 ], [ 381, 382 ], [ 382, 383 ], [ 381, 384 ], [ 380, 385 ], [ 385, 386 ], [ 385, 387 ], [ 387, 388 ], [ 359, 389 ], [ 389, 390 ], [ 390, 391 ], [ 391, 392 ], [ 57, 393 ], [ 393, 394 ], [ 393, 395 ], [ 395, 396 ], [ 396, 397 ], [ 400, 398 ], [ 410, 399 ], [ 407, 400 ], [ 400, 401 ], [ 401, 402 ], [ 401, 403 ], [ 400, 404 ], [ 404, 405 ], [ 404, 406 ], [ 407, 407 ], [ 407, 408 ], [ 407, 409 ], [ 410, 410 ], [ 410, 411 ], [ 410, 412 ], [ 400, 413 ], [ 413, 414 ], [ 413, 415 ], [ 415, 416 ], [ 393, 417 ], [ 417, 418 ], [ 57, 419 ], [ 419, 420 ], [ 419, 421 ], [ 421, 422 ], [ 422, 423 ], [ 424, 424 ], [ 424, 425 ], [ 425, 426 ], [ 425, 427 ], [ 424, 428 ], [ 428, 429 ], [ 428, 430 ], [ 424, 431 ], [ 431, 432 ], [ 431, 433 ], [ 433, 434 ], [ 419, 435 ], [ 435, 436 ], [ 0, 437 ], [ 437, 438 ], [ 437, 439 ] ]
[ "import java.io.*;\nimport java.util.*;\npublic class Main {\n\npublic static void main(String[] args) {\n InputReader sc = new InputReader(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n Random gen = new Random();\n int test = 1;//sc.nextInt();\n while(test-->0) {\n\n int n = sc.nextInt();\n int next = (int)Math.ceil((double)n/1000);\n next*=1000;\n pw.println(next-n);\n }\n pw.close();\n\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nstatic class InputReader {\n\n private final InputStream stream;\n private final byte[] buf = new byte[8192];\n private int curChar, snumChars;\n\n public InputReader(InputStream st) {\n this.stream = st;\n }\n\n public int read() {\n if (snumChars == -1)\n throw new InputMismatchException();\n if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\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 }\n return a;\n }\n\n public static int[] shuffle(int[] a, Random gen)\n { for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }\n return a;\n }\n\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public String nextLine() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n private boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n}\n\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "public class Main {\n\npublic static void main(String[] args) {\n InputReader sc = new InputReader(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n Random gen = new Random();\n int test = 1;//sc.nextInt();\n while(test-->0) {\n\n int n = sc.nextInt();\n int next = (int)Math.ceil((double)n/1000);\n next*=1000;\n pw.println(next-n);\n }\n pw.close();\n\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nstatic class InputReader {\n\n private final InputStream stream;\n private final byte[] buf = new byte[8192];\n private int curChar, snumChars;\n\n public InputReader(InputStream st) {\n this.stream = st;\n }\n\n public int read() {\n if (snumChars == -1)\n throw new InputMismatchException();\n if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\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 }\n return a;\n }\n\n public static int[] shuffle(int[] a, Random gen)\n { for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }\n return a;\n }\n\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public String nextLine() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n private boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n}\n\n}", "Main", "public static void main(String[] args) {\n InputReader sc = new InputReader(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n Random gen = new Random();\n int test = 1;//sc.nextInt();\n while(test-->0) {\n\n int n = sc.nextInt();\n int next = (int)Math.ceil((double)n/1000);\n next*=1000;\n pw.println(next-n);\n }\n pw.close();\n\n}", "main", "{\n InputReader sc = new InputReader(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n Random gen = new Random();\n int test = 1;//sc.nextInt();\n while(test-->0) {\n\n int n = sc.nextInt();\n int next = (int)Math.ceil((double)n/1000);\n next*=1000;\n pw.println(next-n);\n }\n pw.close();\n\n}", "InputReader sc = new InputReader(System.in);", "sc", "new InputReader(System.in)", "PrintWriter pw = new PrintWriter(System.out);", "pw", "new PrintWriter(System.out)", "Random gen = new Random();", "gen", "new Random()", "int test = 1;", "test", "1", "while(test-->0) {\n\n int n = sc.nextInt();\n int next = (int)Math.ceil((double)n/1000);\n next*=1000;\n pw.println(next-n);\n }", "test-->0", "test--", "test", "0", "{\n\n int n = sc.nextInt();\n int next = (int)Math.ceil((double)n/1000);\n next*=1000;\n pw.println(next-n);\n }", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int next = (int)Math.ceil((double)n/1000);", "next", "(int)Math.ceil((double)n/1000)", "Math.ceil", "Math", "(double)n/1000", "(double)n", "1000", "next*=1000", "next", "1000", "pw.println(next-n)", "pw.println", "pw", "next-n", "next", "n", "pw.close()", "pw.close", "pw", "String[] args", "args", "static class InputReader {\n\n private final InputStream stream;\n private final byte[] buf = new byte[8192];\n private int curChar, snumChars;\n\n public InputReader(InputStream st) {\n this.stream = st;\n }\n\n public int read() {\n if (snumChars == -1)\n throw new InputMismatchException();\n if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\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 }\n return a;\n }\n\n public static int[] shuffle(int[] a, Random gen)\n { for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }\n return a;\n }\n\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public String nextLine() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n private boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n}", "InputReader", "private final InputStream stream;", "stream", "private final byte[] buf = new byte[8192];", "buf", "new byte[8192]", "8192", "private int curChar", "curChar", "snumChars;", "snumChars", "public InputReader(InputStream st) {\n this.stream = st;\n }", "InputReader", "{\n this.stream = st;\n }", "this.stream = st", "this.stream", "this", "this.stream", "st", "InputStream st", "st", "public int read() {\n if (snumChars == -1)\n throw new InputMismatchException();\n if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }", "read", "{\n if (snumChars == -1)\n throw new InputMismatchException();\n if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }", "if (snumChars == -1)\n throw new InputMismatchException();", "snumChars == -1", "snumChars", "-1", "1", "throw new InputMismatchException();", "new InputMismatchException()", "if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }", "curChar >= snumChars", "curChar", "snumChars", "{\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }", "curChar = 0", "curChar", "0", "try {\n snumChars = 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 snumChars = stream.read(buf);\n }", "snumChars = stream.read(buf)", "snumChars", "stream.read(buf)", "stream.read", "stream", "buf", "if (snumChars <= 0)\n return -1;", "snumChars <= 0", "snumChars", "0", "return -1;", "-1", "1", "return buf[curChar++];", "buf[curChar++]", "buf", "curChar++", "curChar", "public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }", "nextInt", "{\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }", "int c = read();", "c", "read()", "read", "while (isSpaceChar(c)) {\n c = read();\n }", "isSpaceChar(c)", "isSpaceChar", "c", "{\n c = read();\n }", "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 res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));", "!isSpaceChar(c)", "isSpaceChar(c)", "isSpaceChar", "c", "{\n res *= 10;\n res += c - '0';\n c = read();\n }", "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 long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }", "nextLong", "{\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }", "int c = read();", "c", "read()", "read", "while (isSpaceChar(c)) {\n c = read();\n }", "isSpaceChar(c)", "isSpaceChar", "c", "{\n c = read();\n }", "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", "long res = 0;", "res", "0", "do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));", "!isSpaceChar(c)", "isSpaceChar(c)", "isSpaceChar", "c", "{\n res *= 10;\n res += c - '0';\n c = read();\n }", "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 int[] nextIntArray(int n) {\n int [] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }", "nextIntArray", "{\n int [] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\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();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n a[i] = nextInt();\n }", "{\n a[i] = nextInt();\n }", "a[i] = nextInt()", "a[i]", "a", "i", "nextInt()", "nextInt", "return a;", "a", "int n", "n", "public static int[] shuffle(int[] a, Random gen)\n { for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }\n return a;\n }", "shuffle", "{ for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }\n return a;\n }", "for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }", "int i = 0, n = a.length;", "int i = 0", "i", "0", "n = a.length;", "n", "a.length", "a", "a.length", "i < n", "i", "n", "i++", "i++", "i", "{ int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }", "{ int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }", "int ind = gen.nextInt(n-i)+i;", "ind", "gen.nextInt(n-i)+i", "gen.nextInt(n-i)", "gen.nextInt", "gen", "n-i", "n", "i", "i", "int d = a[i];", "d", "a[i]", "a", "i", "a[i] = a[ind]", "a[i]", "a", "i", "a[ind]", "a", "ind", "a[ind] = d", "a[ind]", "a", "ind", "d", "return a;", "a", "int[] a", "a", "Random gen", "gen", "public String readString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }", "readString", "{\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }", "int c = read();", "c", "read()", "read", "while (isSpaceChar(c)) {\n c = read();\n }", "isSpaceChar(c)", "isSpaceChar", "c", "{\n c = read();\n }", "c = read()", "c", "read()", "read", "StringBuilder res = new StringBuilder();", "res", "new StringBuilder()", "do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));", "!isSpaceChar(c)", "isSpaceChar(c)", "isSpaceChar", "c", "{\n res.appendCodePoint(c);\n c = read();\n }", "res.appendCodePoint(c)", "res.appendCodePoint", "res", "c", "c = read()", "c", "read()", "read", "return res.toString();", "res.toString()", "res.toString", "res", "public String nextLine() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }", "nextLine", "{\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }", "int c = read();", "c", "read()", "read", "while (isSpaceChar(c))\n c = read();", "isSpaceChar(c)", "isSpaceChar", "c", "c = read()", "c", "read()", "read", "StringBuilder res = new StringBuilder();", "res", "new StringBuilder()", "do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));", "!isEndOfLine(c)", "isEndOfLine(c)", "isEndOfLine", "c", "{\n res.appendCodePoint(c);\n c = read();\n }", "res.appendCodePoint(c)", "res.appendCodePoint", "res", "c", "c = read()", "c", "read()", "read", "return res.toString();", "res.toString()", "res.toString", "res", "public 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", "private boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }", "isEndOfLine", "{\n return c == '\\n' || c == '\\r' || c == -1;\n }", "return c == '\\n' || c == '\\r' || c == -1;", "c == '\\n' || c == '\\r' || c == -1", "c == '\\n' || c == '\\r' || c == -1", "c == '\\n'", "c", "'\\n'", "c == '\\r'", "c", "'\\r'", "c == -1", "c", "-1", "1", "int c", "c", "public class Main {\n\npublic static void main(String[] args) {\n InputReader sc = new InputReader(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n Random gen = new Random();\n int test = 1;//sc.nextInt();\n while(test-->0) {\n\n int n = sc.nextInt();\n int next = (int)Math.ceil((double)n/1000);\n next*=1000;\n pw.println(next-n);\n }\n pw.close();\n\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nstatic class InputReader {\n\n private final InputStream stream;\n private final byte[] buf = new byte[8192];\n private int curChar, snumChars;\n\n public InputReader(InputStream st) {\n this.stream = st;\n }\n\n public int read() {\n if (snumChars == -1)\n throw new InputMismatchException();\n if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\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 }\n return a;\n }\n\n public static int[] shuffle(int[] a, Random gen)\n { for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }\n return a;\n }\n\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public String nextLine() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n private boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n}\n\n}", "public class Main {\n\npublic static void main(String[] args) {\n InputReader sc = new InputReader(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n Random gen = new Random();\n int test = 1;//sc.nextInt();\n while(test-->0) {\n\n int n = sc.nextInt();\n int next = (int)Math.ceil((double)n/1000);\n next*=1000;\n pw.println(next-n);\n }\n pw.close();\n\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nstatic class InputReader {\n\n private final InputStream stream;\n private final byte[] buf = new byte[8192];\n private int curChar, snumChars;\n\n public InputReader(InputStream st) {\n this.stream = st;\n }\n\n public int read() {\n if (snumChars == -1)\n throw new InputMismatchException();\n if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\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 }\n return a;\n }\n\n public static int[] shuffle(int[] a, Random gen)\n { for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }\n return a;\n }\n\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public String nextLine() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n private boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n}\n\n}", "Main" ]
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { InputReader sc = new InputReader(System.in); PrintWriter pw = new PrintWriter(System.out); Random gen = new Random(); int test = 1;//sc.nextInt(); while(test-->0) { int n = sc.nextInt(); int next = (int)Math.ceil((double)n/1000); next*=1000; pw.println(next-n); } pw.close(); } static class InputReader { private final InputStream stream; private final byte[] buf = new byte[8192]; private int curChar, snumChars; public InputReader(InputStream st) { this.stream = st; } public int read() { if (snumChars == -1) throw new InputMismatchException(); if (curChar >= snumChars) { curChar = 0; try { snumChars = stream.read(buf); } catch (IOException e) { throw new InputMismatchException(); } if (snumChars <= 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 { res *= 10; res += c - '0'; c = read(); } while (!isSpaceChar(c)); return res * sgn; } public long nextLong() { int c = read(); while (isSpaceChar(c)) { c = read(); } int sgn = 1; if (c == '-') { sgn = -1; c = read(); } long res = 0; do { res *= 10; res += c - '0'; c = read(); } while (!isSpaceChar(c)); return res * sgn; } public int[] nextIntArray(int n) { int [] a = new int[n]; for (int i = 0; i < n; i++) { a[i] = nextInt(); } return a; } public static int[] shuffle(int[] a, Random gen) { for(int i = 0, n = a.length;i < n;i++) { int ind = gen.nextInt(n-i)+i; int d = a[i]; a[i] = a[ind]; a[ind] = d; } return a; } public String readString() { int c = read(); while (isSpaceChar(c)) { c = read(); } StringBuilder res = new StringBuilder(); do { res.appendCodePoint(c); c = read(); } while (!isSpaceChar(c)); return res.toString(); } public String nextLine() { int c = read(); while (isSpaceChar(c)) c = read(); StringBuilder res = new StringBuilder(); do { res.appendCodePoint(c); c = read(); } while (!isEndOfLine(c)); return res.toString(); } public boolean isSpaceChar(int c) { return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1; } private boolean isEndOfLine(int c) { return c == '\n' || c == '\r' || c == -1; } } }
[ 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, 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 ], [ 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 ], [ 23, 24 ], [ 23, 25 ], [ 22, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 31, 32 ], [ 31, 33 ], [ 22, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 6, 40 ], [ 40, 41 ], [ 0, 42 ], [ 42, 43 ], [ 42, 44 ] ]
[ "//package hiougyf;\nimport java.util.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t Scanner sc =new Scanner(System.in);\n\tint t=sc.nextInt();\n\t int a=t%1000;\n\t if(a!=0)System.out.println(1000-a);\n\t else System.out.println(\"0\");\t\t\n\t}\n\t\n}\n\t", "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\tint t=sc.nextInt();\n\t int a=t%1000;\n\t if(a!=0)System.out.println(1000-a);\n\t else System.out.println(\"0\");\t\t\n\t}\n\t\n}", "Main", "public static void main(String[] args) {\n\t\t Scanner sc =new Scanner(System.in);\n\tint t=sc.nextInt();\n\t int a=t%1000;\n\t if(a!=0)System.out.println(1000-a);\n\t else System.out.println(\"0\");\t\t\n\t}", "main", "{\n\t\t Scanner sc =new Scanner(System.in);\n\tint t=sc.nextInt();\n\t int a=t%1000;\n\t if(a!=0)System.out.println(1000-a);\n\t else System.out.println(\"0\");\t\t\n\t}", "Scanner sc =new Scanner(System.in);", "sc", "new Scanner(System.in)", "int t=sc.nextInt();", "t", "sc.nextInt()", "sc.nextInt", "sc", "int a=t%1000;", "a", "t%1000", "t", "1000", "if(a!=0)System.out.println(1000-a);\n\t else System.out.println(\"0\");", "a!=0", "a", "0", "System.out.println(1000-a)", "System.out.println", "System.out", "System", "System.out", "1000-a", "1000", "a", "System.out.println(\"0\")", "System.out.println", "System.out", "System", "System.out", "\"0\"", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t Scanner sc =new Scanner(System.in);\n\tint t=sc.nextInt();\n\t int a=t%1000;\n\t if(a!=0)System.out.println(1000-a);\n\t else System.out.println(\"0\");\t\t\n\t}\n\t\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t Scanner sc =new Scanner(System.in);\n\tint t=sc.nextInt();\n\t int a=t%1000;\n\t if(a!=0)System.out.println(1000-a);\n\t else System.out.println(\"0\");\t\t\n\t}\n\t\n}", "Main" ]
//package hiougyf; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc =new Scanner(System.in); int t=sc.nextInt(); int a=t%1000; if(a!=0)System.out.println(1000-a); else System.out.println("0"); } }
[ 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, 14, 2, 2, 13, 17, 2, 17, 13, 30, 4, 18, 18, 13, 13, 2, 17, 13, 14, 2, 2, 17, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 2, 17, 2, 13, 17, 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 ], [ 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 ], [ 32, 34 ], [ 31, 35 ], [ 35, 36 ], [ 35, 37 ], [ 30, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 44, 45 ], [ 44, 46 ], [ 30, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 52, 53 ], [ 52, 54 ], [ 47, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 63, 65 ], [ 6, 66 ], [ 66, 67 ] ]
[ "import java.util.*;\n \nclass 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 if (N<=1000&&0<N){\n System.out.println(1000-N);\n }else if(1000<N&&N<10000){\n System.out.println(1000-N%1000);\n }\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 N = sc.nextInt();\n if (N%1000 == 0){\n System.out.println(0);\n }else if (N<=1000&&0<N){\n System.out.println(1000-N);\n }else if(1000<N&&N<10000){\n System.out.println(1000-N%1000);\n }\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 if (N<=1000&&0<N){\n System.out.println(1000-N);\n }else if(1000<N&&N<10000){\n System.out.println(1000-N%1000);\n }\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 if (N<=1000&&0<N){\n System.out.println(1000-N);\n }else if(1000<N&&N<10000){\n System.out.println(1000-N%1000);\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 if (N<=1000&&0<N){\n System.out.println(1000-N);\n }else if(1000<N&&N<10000){\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", "if (N<=1000&&0<N){\n System.out.println(1000-N);\n }else if(1000<N&&N<10000){\n System.out.println(1000-N%1000);\n }", "N<=1000&&0<N", "N<=1000", "N", "1000", "0<N", "0", "N", "{\n System.out.println(1000-N);\n }", "System.out.println(1000-N)", "System.out.println", "System.out", "System", "System.out", "1000-N", "1000", "N", "if(1000<N&&N<10000){\n System.out.println(1000-N%1000);\n }", "1000<N&&N<10000", "1000<N", "1000", "N", "N<10000", "N", "10000", "{\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" ]
import java.util.*; 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 if (N<=1000&&0<N){ System.out.println(1000-N); }else if(1000<N&&N<10000){ 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, 2, 4, 18, 13, 2, 13, 17, 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 ], [ 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 ], [ 20, 21 ], [ 21, 22 ], [ 20, 23 ], [ 23, 24 ], [ 23, 25 ], [ 19, 26 ], [ 8, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 32, 33 ], [ 32, 34 ], [ 8, 35 ], [ 35, 36 ], [ 36, 37 ], [ 6, 38 ], [ 38, 39 ], [ 0, 40 ], [ 40, 41 ], [ 40, 42 ] ]
[ "import java.util.Scanner;\n\n/**\n * A - Payment\n * お店で N 円の商品を買います。\n * 1000 円札のみを使って支払いを行う時、お釣りはいくらになりますか?\n * ただし、必要最小限の枚数の 1000 円札で支払いを行うものとします。\n */\npublic class Main {\n\n public static void main(String[] args) {\n\n // 入力値\n Scanner sc = new Scanner( System.in );\n int n = sc.nextInt(); // 商品の値段\n\n // 100の位で切り上げ\n int ceilN = ( int ) ( Math.ceil( ( double ) n / 1000 ) ) * 1000;\n\n System.out.println( ceilN - n );\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 // 入力値\n Scanner sc = new Scanner( System.in );\n int n = sc.nextInt(); // 商品の値段\n\n // 100の位で切り上げ\n int ceilN = ( int ) ( Math.ceil( ( double ) n / 1000 ) ) * 1000;\n\n System.out.println( ceilN - n );\n\n sc.close();\n }\n}", "Main", "public static void main(String[] args) {\n\n // 入力値\n Scanner sc = new Scanner( System.in );\n int n = sc.nextInt(); // 商品の値段\n\n // 100の位で切り上げ\n int ceilN = ( int ) ( Math.ceil( ( double ) n / 1000 ) ) * 1000;\n\n System.out.println( ceilN - n );\n\n sc.close();\n }", "main", "{\n\n // 入力値\n Scanner sc = new Scanner( System.in );\n int n = sc.nextInt(); // 商品の値段\n\n // 100の位で切り上げ\n int ceilN = ( int ) ( Math.ceil( ( double ) n / 1000 ) ) * 1000;\n\n System.out.println( ceilN - n );\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 ceilN = ( int ) ( Math.ceil( ( double ) n / 1000 ) ) * 1000;", "ceilN", "( int ) ( Math.ceil( ( double ) n / 1000 ) ) * 1000", "( int ) ( Math.ceil( ( double ) n / 1000 ) )", "Math.ceil", "Math", "( double ) n / 1000", "( double ) n", "1000", "1000", "System.out.println( ceilN - n )", "System.out.println", "System.out", "System", "System.out", "ceilN - n", "ceilN", "n", "sc.close()", "sc.close", "sc", "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 = sc.nextInt(); // 商品の値段\n\n // 100の位で切り上げ\n int ceilN = ( int ) ( Math.ceil( ( double ) n / 1000 ) ) * 1000;\n\n System.out.println( ceilN - n );\n\n sc.close();\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 = sc.nextInt(); // 商品の値段\n\n // 100の位で切り上げ\n int ceilN = ( int ) ( Math.ceil( ( double ) n / 1000 ) ) * 1000;\n\n System.out.println( ceilN - n );\n\n sc.close();\n }\n}", "Main" ]
import java.util.Scanner; /** * A - Payment * お店で N 円の商品を買います。 * 1000 円札のみを使って支払いを行う時、お釣りはいくらになりますか? * ただし、必要最小限の枚数の 1000 円札で支払いを行うものとします。 */ public class Main { public static void main(String[] args) { // 入力値 Scanner sc = new Scanner( System.in ); int n = sc.nextInt(); // 商品の値段 // 100の位で切り上げ int ceilN = ( int ) ( Math.ceil( ( double ) n / 1000 ) ) * 1000; System.out.println( ceilN - n ); sc.close(); } }
[ 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, 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, 41, 13, 2, 13, 17, 41, 13, 2, 13, 17, 14, 2, 13, 17, 4, 18, 13, 17, 30, 41, 13, 2, 2, 17, 2, 13, 17, 13, 4, 18, 13, 13, 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 ], [ 22, 23 ], [ 22, 24 ], [ 0, 25 ], [ 25, 26 ], [ 25, 27 ], [ 0, 28 ], [ 165, 29 ], [ 165, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 35, 37 ], [ 32, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 40, 42 ], [ 32, 43 ], [ 43, 44 ], [ 43, 45 ], [ 32, 46 ], [ 46, 47 ], [ 46, 48 ], [ 32, 49 ], [ 49, 50 ], [ 49, 51 ], [ 32, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 52, 56 ], [ 52, 57 ], [ 32, 58 ], [ 58, 59 ], [ 59, 60 ], [ 30, 61 ], [ 61, 62 ], [ 165, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 67, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 75, 77 ], [ 67, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 80, 82 ], [ 67, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 83, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 97, 99 ], [ 94, 100 ], [ 91, 101 ], [ 101, 102 ], [ 102, 103 ], [ 101, 104 ], [ 65, 105 ], [ 105, 106 ], [ 65, 107 ], [ 107, 108 ], [ 65, 109 ], [ 109, 110 ], [ 165, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 111, 115 ], [ 115, 116 ], [ 111, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 119, 123 ], [ 123, 124 ], [ 123, 125 ], [ 117, 126 ], [ 126, 127 ], [ 111, 128 ], [ 128, 129 ], [ 128, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 132, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 131, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 144, 145 ], [ 145, 146 ], [ 141, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 130, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 111, 155 ], [ 155, 156 ], [ 155, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 159, 162 ], [ 162, 163 ], [ 0, 164 ], [ 164, 165 ], [ 164, 166 ] ]
[ "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.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 *\n * @author shivam\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 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, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n int x = n / 1000;\n int y = n % 1000;\n if (y == 0) out.println(0);\n else {\n int ans = 1000 * (x + 1) - n;\n out.println(ans);\n }\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.util.StringTokenizer;", "StringTokenizer", "java.util", "import java.io.IOException;", "IOException", "java.io", "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 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 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, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n int x = n / 1000;\n int y = n % 1000;\n if (y == 0) out.println(0);\n else {\n int ans = 1000 * (x + 1) - n;\n out.println(ans);\n }\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 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 InputReader in = new InputReader(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", "InputReader in = new InputReader(inputStream);", "in", "new InputReader(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, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n int x = n / 1000;\n int y = n % 1000;\n if (y == 0) out.println(0);\n else {\n int ans = 1000 * (x + 1) - n;\n out.println(ans);\n }\n }\n\n }", "TaskA", "public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n int x = n / 1000;\n int y = n % 1000;\n if (y == 0) out.println(0);\n else {\n int ans = 1000 * (x + 1) - n;\n out.println(ans);\n }\n }", "solve", "{\n int n = in.nextInt();\n int x = n / 1000;\n int y = n % 1000;\n if (y == 0) out.println(0);\n else {\n int ans = 1000 * (x + 1) - n;\n out.println(ans);\n }\n }", "int n = in.nextInt();", "n", "in.nextInt()", "in.nextInt", "in", "int x = n / 1000;", "x", "n / 1000", "n", "1000", "int y = n % 1000;", "y", "n % 1000", "n", "1000", "if (y == 0) out.println(0);\n else {\n int ans = 1000 * (x + 1) - n;\n out.println(ans);\n }", "y == 0", "y", "0", "out.println(0)", "out.println", "out", "0", "{\n int ans = 1000 * (x + 1) - n;\n out.println(ans);\n }", "int ans = 1000 * (x + 1) - n;", "ans", "1000 * (x + 1) - n", "1000 * (x + 1)", "1000", "(x + 1)", "x", "1", "n", "out.println(ans)", "out.println", "out", "ans", "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 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, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n int x = n / 1000;\n int y = n % 1000;\n if (y == 0) out.println(0);\n else {\n int ans = 1000 * (x + 1) - n;\n out.println(ans);\n }\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 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, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n int x = n / 1000;\n int y = n % 1000;\n if (y == 0) out.println(0);\n else {\n int ans = 1000 * (x + 1) - n;\n out.println(ans);\n }\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.util.StringTokenizer; import java.io.IOException; import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.InputStream; /** * Built using CHelper plug-in * Actual solution is at the top * * @author shivam */ 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); TaskA solver = new TaskA(); solver.solve(1, in, out); out.close(); } static class TaskA { public void solve(int testNumber, InputReader in, PrintWriter out) { int n = in.nextInt(); int x = n / 1000; int y = n % 1000; if (y == 0) out.println(0); else { int ans = 1000 * (x + 1) - n; out.println(ans); } } } 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, 0, 13, 4, 18, 13, 2, 13, 17, 4, 18, 18, 13, 13, 2, 13, 17, 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 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 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 sc = new Scanner(System.in);\n int N = sc.nextInt();\n sc.close();\n\n N = Math.abs(N-10000);\n System.out.println(N%1000);\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 int N = sc.nextInt();\n sc.close();\n\n N = Math.abs(N-10000);\n System.out.println(N%1000);\n }\n}", "Main", "public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n sc.close();\n\n N = Math.abs(N-10000);\n System.out.println(N%1000);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n sc.close();\n\n N = Math.abs(N-10000);\n System.out.println(N%1000);\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", "N = Math.abs(N-10000)", "N", "Math.abs(N-10000)", "Math.abs", "Math", "N-10000", "N", "10000", "System.out.println(N%1000)", "System.out.println", "System.out", "System", "System.out", "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 sc.close();\n\n N = Math.abs(N-10000);\n System.out.println(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 sc.close();\n\n N = Math.abs(N-10000);\n System.out.println(N%1000);\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(); N = Math.abs(N-10000); System.out.println(N%1000); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 18, 13, 13, 2, 17, 4, 18, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 0, 13, 2, 13, 17, 0, 13, 2, 17, 13, 14, 2, 13, 17, 30, 0, 13, 17, 4, 18, 13, 13, 4, 18, 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 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 28, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 24, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 42, 43 ], [ 42, 44 ], [ 38, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 50, 51 ], [ 51, 52 ], [ 38, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 55, 57 ], [ 38, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 38, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 38, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 38, 75 ], [ 75, 76 ], [ 76, 77 ], [ 21, 78 ], [ 78, 79 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\nimport java.math.BigInteger;\nimport java.nio.Buffer;\nimport java.util.*;\n\nclass Main {\n public static void main(String[] args){\n try {\n PrintWriter out=new PrintWriter(System.out,true);\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n int t=Integer.parseInt(br.readLine());\n t=t%1000;\n t=1000-t;\n if(t==1000){\n t=0;\n }\n out.println(t);\n out.close();\n } catch (Exception e) {\n System.out.println(\"kkkk \"+ e.getMessage());\n }\n\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.math.BigInteger;", "BigInteger", "java.math", "import java.nio.Buffer;", "Buffer", "java.nio", "import java.util.*;", "util.*", "java", "class Main {\n public static void main(String[] args){\n try {\n PrintWriter out=new PrintWriter(System.out,true);\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n int t=Integer.parseInt(br.readLine());\n t=t%1000;\n t=1000-t;\n if(t==1000){\n t=0;\n }\n out.println(t);\n out.close();\n } catch (Exception e) {\n System.out.println(\"kkkk \"+ e.getMessage());\n }\n\n }\n}", "Main", "public static void main(String[] args){\n try {\n PrintWriter out=new PrintWriter(System.out,true);\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n int t=Integer.parseInt(br.readLine());\n t=t%1000;\n t=1000-t;\n if(t==1000){\n t=0;\n }\n out.println(t);\n out.close();\n } catch (Exception e) {\n System.out.println(\"kkkk \"+ e.getMessage());\n }\n\n }", "main", "{\n try {\n PrintWriter out=new PrintWriter(System.out,true);\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n int t=Integer.parseInt(br.readLine());\n t=t%1000;\n t=1000-t;\n if(t==1000){\n t=0;\n }\n out.println(t);\n out.close();\n } catch (Exception e) {\n System.out.println(\"kkkk \"+ e.getMessage());\n }\n\n }", "try {\n PrintWriter out=new PrintWriter(System.out,true);\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n int t=Integer.parseInt(br.readLine());\n t=t%1000;\n t=1000-t;\n if(t==1000){\n t=0;\n }\n out.println(t);\n out.close();\n } catch (Exception e) {\n System.out.println(\"kkkk \"+ e.getMessage());\n }", "catch (Exception e) {\n System.out.println(\"kkkk \"+ e.getMessage());\n }", "Exception e", "{\n System.out.println(\"kkkk \"+ e.getMessage());\n }", "System.out.println(\"kkkk \"+ e.getMessage())", "System.out.println", "System.out", "System", "System.out", "\"kkkk \"+ e.getMessage()", "\"kkkk \"", "e.getMessage()", "e.getMessage", "e", "{\n PrintWriter out=new PrintWriter(System.out,true);\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n int t=Integer.parseInt(br.readLine());\n t=t%1000;\n t=1000-t;\n if(t==1000){\n t=0;\n }\n out.println(t);\n out.close();\n }", "PrintWriter out=new PrintWriter(System.out,true);", "out", "new PrintWriter(System.out,true)", "BufferedReader br=new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int t=Integer.parseInt(br.readLine());", "t", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "t=t%1000", "t", "t%1000", "t", "1000", "t=1000-t", "t", "1000-t", "1000", "t", "if(t==1000){\n t=0;\n }", "t==1000", "t", "1000", "{\n t=0;\n }", "t=0", "t", "0", "out.println(t)", "out.println", "out", "t", "out.close()", "out.close", "out", "String[] args", "args" ]
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.PrintWriter; import java.math.BigInteger; import java.nio.Buffer; import java.util.*; class Main { public static void main(String[] args){ try { PrintWriter out=new PrintWriter(System.out,true); BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); int t=Integer.parseInt(br.readLine()); t=t%1000; t=1000-t; if(t==1000){ t=0; } out.println(t); out.close(); } catch (Exception e) { System.out.println("kkkk "+ e.getMessage()); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 14, 2, 2, 13, 13, 2, 13, 13, 30, 29, 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 ], [ 60, 5 ], [ 60, 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 ], [ 28, 29 ], [ 28, 30 ], [ 23, 31 ], [ 31, 32 ], [ 8, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 33, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 33, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 54, 56 ], [ 6, 57 ], [ 57, 58 ], [ 0, 59 ], [ 59, 60 ], [ 59, 61 ] ]
[ "import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n\n int minN = 1;\n int maxN = 10000;\n if(N < minN || N > maxN ){\n return;\n }\n\n if(N % 1000 == 0){\n System.out.println(0);\n }else{\n System.out.println( 1000 - N % 1000 );\n }\n }\n}", "import java.util.*;", "util.*", "java", "public class Main{\n public static void main(String[] args){\n\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n\n int minN = 1;\n int maxN = 10000;\n if(N < minN || N > maxN ){\n return;\n }\n\n if(N % 1000 == 0){\n System.out.println(0);\n }else{\n System.out.println( 1000 - N % 1000 );\n }\n }\n}", "Main", "public static void main(String[] args){\n\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n\n int minN = 1;\n int maxN = 10000;\n if(N < minN || N > maxN ){\n return;\n }\n\n if(N % 1000 == 0){\n System.out.println(0);\n }else{\n System.out.println( 1000 - N % 1000 );\n }\n }", "main", "{\n\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n\n int minN = 1;\n int maxN = 10000;\n if(N < minN || N > maxN ){\n return;\n }\n\n if(N % 1000 == 0){\n System.out.println(0);\n }else{\n System.out.println( 1000 - N % 1000 );\n }\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int N = scanner.nextInt();", "N", "scanner.nextInt()", "scanner.nextInt", "scanner", "int minN = 1;", "minN", "1", "int maxN = 10000;", "maxN", "10000", "if(N < minN || N > maxN ){\n return;\n }", "N < minN || N > maxN", "N < minN", "N", "minN", "N > maxN", "N", "maxN", "{\n return;\n }", "return;", "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", "public class Main{\n public static void main(String[] args){\n\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n\n int minN = 1;\n int maxN = 10000;\n if(N < minN || N > maxN ){\n return;\n }\n\n if(N % 1000 == 0){\n System.out.println(0);\n }else{\n System.out.println( 1000 - N % 1000 );\n }\n }\n}", "public class Main{\n public static void main(String[] args){\n\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n\n int minN = 1;\n int maxN = 10000;\n if(N < minN || N > maxN ){\n return;\n }\n\n if(N % 1000 == 0){\n System.out.println(0);\n }else{\n System.out.println( 1000 - N % 1000 );\n }\n }\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); int minN = 1; int maxN = 10000; if(N < minN || N > maxN ){ return; } if(N % 1000 == 0){ System.out.println(0); }else{ System.out.println( 1000 - N % 1000 ); } } }
[ 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, 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, 18, 13, 13, 17, 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, 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, 30, 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, 30, 29, 40, 17, 29, 18, 13, 40, 13, 12, 13, 30, 41, 13, 4, 13, 42, 4, 13, 13, 30, 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, 30, 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, 30, 29, 4, 18, 13, 13, 29, 4, 13, 13, 23, 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, 6, 13, 12, 13, 23, 13, 6, 13, 41, 13, 12, 13, 30, 0, 13, 20, 23, 13, 12, 13, 30, 0, 18, 36, 13, 20, 23, 13, 12, 13, 30, 4, 18, 13, 12, 13, 30, 4, 18, 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 ], [ 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 ], [ 341, 38 ], [ 341, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 44, 46 ], [ 41, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 49, 51 ], [ 41, 52 ], [ 52, 53 ], [ 52, 54 ], [ 41, 55 ], [ 55, 56 ], [ 55, 57 ], [ 41, 58 ], [ 58, 59 ], [ 58, 60 ], [ 41, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 61, 65 ], [ 61, 66 ], [ 41, 67 ], [ 67, 68 ], [ 68, 69 ], [ 39, 70 ], [ 70, 71 ], [ 341, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 77, 82 ], [ 76, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 86, 87 ], [ 76, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 90, 92 ], [ 76, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 98, 101 ], [ 93, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 103, 106 ], [ 106, 107 ], [ 106, 108 ], [ 74, 109 ], [ 109, 110 ], [ 74, 111 ], [ 111, 112 ], [ 74, 113 ], [ 113, 114 ], [ 341, 115 ], [ 115, 116 ], [ 115, 117 ], [ 117, 118 ], [ 115, 119 ], [ 119, 120 ], [ 119, 121 ], [ 115, 123 ], [ 123, 124 ], [ 115, 125 ], [ 125, 126 ], [ 115, 127 ], [ 127, 128 ], [ 115, 129 ], [ 129, 130 ], [ 129, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 132, 136 ], [ 129, 137 ], [ 137, 138 ], [ 115, 139 ], [ 139, 140 ], [ 139, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 145, 146 ], [ 142, 147 ], [ 147, 148 ], [ 148, 149 ], [ 141, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 150, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 154, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 161, 162 ], [ 162, 163 ], [ 158, 164 ], [ 164, 165 ], [ 165, 166 ], [ 165, 167 ], [ 167, 168 ], [ 168, 169 ], [ 167, 170 ], [ 154, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 171, 175 ], [ 175, 176 ], [ 176, 177 ], [ 177, 178 ], [ 141, 179 ], [ 179, 180 ], [ 180, 181 ], [ 180, 182 ], [ 182, 183 ], [ 115, 184 ], [ 184, 185 ], [ 184, 186 ], [ 186, 187 ], [ 187, 188 ], [ 187, 189 ], [ 189, 190 ], [ 186, 191 ], [ 191, 192 ], [ 192, 193 ], [ 192, 194 ], [ 191, 195 ], [ 195, 196 ], [ 196, 197 ], [ 196, 198 ], [ 198, 199 ], [ 186, 200 ], [ 200, 201 ], [ 200, 202 ], [ 186, 203 ], [ 203, 204 ], [ 204, 205 ], [ 204, 206 ], [ 203, 207 ], [ 207, 208 ], [ 208, 209 ], [ 208, 210 ], [ 210, 211 ], [ 207, 212 ], [ 212, 213 ], [ 212, 214 ], [ 214, 215 ], [ 186, 216 ], [ 216, 217 ], [ 216, 218 ], [ 186, 219 ], [ 219, 220 ], [ 220, 221 ], [ 221, 222 ], [ 221, 223 ], [ 219, 224 ], [ 224, 225 ], [ 225, 226 ], [ 226, 227 ], [ 227, 228 ], [ 227, 229 ], [ 226, 230 ], [ 230, 231 ], [ 230, 232 ], [ 225, 233 ], [ 233, 234 ], [ 234, 235 ], [ 224, 236 ], [ 236, 237 ], [ 236, 238 ], [ 224, 239 ], [ 239, 240 ], [ 239, 241 ], [ 241, 242 ], [ 241, 243 ], [ 224, 244 ], [ 244, 245 ], [ 244, 246 ], [ 246, 247 ], [ 186, 248 ], [ 248, 249 ], [ 249, 250 ], [ 249, 251 ], [ 115, 252 ], [ 252, 253 ], [ 252, 254 ], [ 254, 255 ], [ 255, 256 ], [ 256, 257 ], [ 256, 258 ], [ 255, 259 ], [ 259, 260 ], [ 260, 261 ], [ 261, 262 ], [ 262, 263 ], [ 261, 264 ], [ 254, 265 ], [ 265, 266 ], [ 266, 267 ], [ 266, 268 ], [ 252, 269 ], [ 269, 270 ], [ 115, 271 ], [ 271, 272 ], [ 271, 273 ], [ 273, 274 ], [ 274, 275 ], [ 278, 276 ], [ 288, 277 ], [ 285, 278 ], [ 278, 279 ], [ 279, 280 ], [ 279, 281 ], [ 278, 282 ], [ 282, 283 ], [ 282, 284 ], [ 285, 285 ], [ 285, 286 ], [ 285, 287 ], [ 288, 288 ], [ 288, 289 ], [ 288, 290 ], [ 278, 291 ], [ 291, 292 ], [ 291, 293 ], [ 293, 294 ], [ 271, 295 ], [ 295, 296 ], [ 115, 297 ], [ 297, 298 ], [ 297, 299 ], [ 299, 300 ], [ 299, 301 ], [ 301, 302 ], [ 341, 303 ], [ 303, 304 ], [ 303, 305 ], [ 305, 306 ], [ 303, 307 ], [ 307, 308 ], [ 307, 309 ], [ 309, 310 ], [ 310, 311 ], [ 310, 312 ], [ 307, 313 ], [ 313, 314 ], [ 303, 315 ], [ 315, 316 ], [ 315, 317 ], [ 317, 318 ], [ 318, 319 ], [ 319, 320 ], [ 319, 321 ], [ 318, 322 ], [ 315, 323 ], [ 323, 324 ], [ 303, 325 ], [ 325, 326 ], [ 325, 327 ], [ 327, 328 ], [ 328, 329 ], [ 329, 330 ], [ 303, 331 ], [ 331, 332 ], [ 331, 333 ], [ 333, 334 ], [ 334, 335 ], [ 335, 336 ], [ 334, 337 ], [ 331, 338 ], [ 338, 339 ], [ 0, 340 ], [ 340, 341 ], [ 340, 342 ] ]
[ "import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintStream;\nimport java.io.OutputStream;\nimport java.io.PrintWriter;\nimport java.io.BufferedWriter;\nimport java.io.Writer;\nimport java.io.OutputStreamWriter;\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 New User\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 OutputWriter out = new OutputWriter(outputStream);\n APayment solver = new APayment();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class APayment {\n public void solve(int testNumber, InputReader c, OutputWriter w) {\n\n System.err.println(\"Test Try\");\n int n = c.readInt();\n int kk = n % 1000;\n if (kk == 0) {\n w.printLine(0);\n } else {\n w.printLine(1000 - kk);\n }\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\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) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int readInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\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') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int 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 static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void close() {\n writer.close();\n }\n\n public void printLine(int i) {\n writer.println(i);\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.PrintStream;", "PrintStream", "java.io", "import java.io.OutputStream;", "OutputStream", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.io.BufferedWriter;", "BufferedWriter", "java.io", "import java.io.Writer;", "Writer", "java.io", "import java.io.OutputStreamWriter;", "OutputStreamWriter", "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 InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n APayment solver = new APayment();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class APayment {\n public void solve(int testNumber, InputReader c, OutputWriter w) {\n\n System.err.println(\"Test Try\");\n int n = c.readInt();\n int kk = n % 1000;\n if (kk == 0) {\n w.printLine(0);\n } else {\n w.printLine(1000 - kk);\n }\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\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) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int readInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\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') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int 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 static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void close() {\n writer.close();\n }\n\n public void printLine(int i) {\n writer.println(i);\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 OutputWriter out = new OutputWriter(outputStream);\n APayment solver = new APayment();\n solver.solve(1, in, out);\n out.close();\n }", "main", "{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n APayment solver = new APayment();\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", "InputReader in = new InputReader(inputStream);", "in", "new InputReader(inputStream)", "OutputWriter out = new OutputWriter(outputStream);", "out", "new OutputWriter(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 public void solve(int testNumber, InputReader c, OutputWriter w) {\n\n System.err.println(\"Test Try\");\n int n = c.readInt();\n int kk = n % 1000;\n if (kk == 0) {\n w.printLine(0);\n } else {\n w.printLine(1000 - kk);\n }\n }\n\n }", "APayment", "public void solve(int testNumber, InputReader c, OutputWriter w) {\n\n System.err.println(\"Test Try\");\n int n = c.readInt();\n int kk = n % 1000;\n if (kk == 0) {\n w.printLine(0);\n } else {\n w.printLine(1000 - kk);\n }\n }", "solve", "{\n\n System.err.println(\"Test Try\");\n int n = c.readInt();\n int kk = n % 1000;\n if (kk == 0) {\n w.printLine(0);\n } else {\n w.printLine(1000 - kk);\n }\n }", "System.err.println(\"Test Try\")", "System.err.println", "System.err", "System", "System.err", "\"Test Try\"", "int n = c.readInt();", "n", "c.readInt()", "c.readInt", "c", "int kk = n % 1000;", "kk", "n % 1000", "n", "1000", "if (kk == 0) {\n w.printLine(0);\n } else {\n w.printLine(1000 - kk);\n }", "kk == 0", "kk", "0", "{\n w.printLine(0);\n }", "w.printLine(0)", "w.printLine", "w", "0", "{\n w.printLine(1000 - kk);\n }", "w.printLine(1000 - kk)", "w.printLine", "w", "1000 - kk", "1000", "kk", "int testNumber", "testNumber", "InputReader c", "c", "OutputWriter w", "w", "static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\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) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int readInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\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') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int 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 }", "InputReader", "private InputStream stream;", "stream", "private byte[] buf = new byte[1024];", "buf", "new byte[1024]", "1024", "private int curChar;", "curChar", "private int numChars;", "numChars", "private InputReader.SpaceCharFilter filter;", "filter", "public InputReader(InputStream stream) {\n this.stream = stream;\n }", "InputReader", "{\n this.stream = stream;\n }", "this.stream = stream", "this.stream", "this", "this.stream", "stream", "InputStream stream", "stream", "public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\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) {\n return -1;\n }\n }\n return buf[curChar++];\n }", "read", "{\n if (numChars == -1) {\n throw new InputMismatchException();\n }\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) {\n return -1;\n }\n }\n return buf[curChar++];\n }", "if (numChars == -1) {\n throw new InputMismatchException();\n }", "numChars == -1", "numChars", "-1", "1", "{\n throw new InputMismatchException();\n }", "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) {\n return -1;\n }\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) {\n return -1;\n }\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) {\n return -1;\n }", "numChars <= 0", "numChars", "0", "{\n return -1;\n }", "return -1;", "-1", "1", "return buf[curChar++];", "buf[curChar++]", "buf", "curChar++", "curChar", "public int readInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\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') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }", "readInt", "{\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\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') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }", "int c = read();", "c", "read()", "read", "while (isSpaceChar(c)) {\n c = read();\n }", "isSpaceChar(c)", "isSpaceChar", "c", "{\n c = read();\n }", "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') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));", "!isSpaceChar(c)", "isSpaceChar(c)", "isSpaceChar", "c", "{\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n }", "if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }", "c < '0' || c > '9'", "c < '0'", "c", "'0'", "c > '9'", "c", "'9'", "{\n throw new InputMismatchException();\n }", "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) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }", "isSpaceChar", "{\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }", "if (filter != null) {\n return filter.isSpaceChar(c);\n }", "filter != null", "filter", "null", "{\n return filter.isSpaceChar(c);\n }", "return filter.isSpaceChar(c);", "filter.isSpaceChar(c)", "filter.isSpaceChar", "filter", "c", "return isWhitespace(c);", "isWhitespace(c)", "isWhitespace", "c", "int c", "c", "public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }", "isWhitespace", "{\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 interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }", "SpaceCharFilter", "public boolean isSpaceChar(int ch);", "isSpaceChar", "int ch", "ch", "static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void close() {\n writer.close();\n }\n\n public void printLine(int i) {\n writer.println(i);\n }\n\n }", "OutputWriter", "private final PrintWriter writer;", "writer", "public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }", "OutputWriter", "{\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }", "writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)))", "writer", "new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)))", "OutputStream outputStream", "outputStream", "public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }", "OutputWriter", "{\n this.writer = new PrintWriter(writer);\n }", "this.writer = new PrintWriter(writer)", "this.writer", "this", "this.writer", "new PrintWriter(writer)", "Writer writer", "writer", "public void close() {\n writer.close();\n }", "close", "{\n writer.close();\n }", "writer.close()", "writer.close", "writer", "public void printLine(int i) {\n writer.println(i);\n }", "printLine", "{\n writer.println(i);\n }", "writer.println(i)", "writer.println", "writer", "i", "int i", "i", "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 OutputWriter out = new OutputWriter(outputStream);\n APayment solver = new APayment();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class APayment {\n public void solve(int testNumber, InputReader c, OutputWriter w) {\n\n System.err.println(\"Test Try\");\n int n = c.readInt();\n int kk = n % 1000;\n if (kk == 0) {\n w.printLine(0);\n } else {\n w.printLine(1000 - kk);\n }\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\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) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int readInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\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') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int 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 static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void close() {\n writer.close();\n }\n\n public void printLine(int i) {\n writer.println(i);\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 OutputWriter out = new OutputWriter(outputStream);\n APayment solver = new APayment();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class APayment {\n public void solve(int testNumber, InputReader c, OutputWriter w) {\n\n System.err.println(\"Test Try\");\n int n = c.readInt();\n int kk = n % 1000;\n if (kk == 0) {\n w.printLine(0);\n } else {\n w.printLine(1000 - kk);\n }\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\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) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int readInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\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') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int 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 static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void close() {\n writer.close();\n }\n\n public void printLine(int i) {\n writer.println(i);\n }\n\n }\n}", "Main" ]
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintStream; import java.io.OutputStream; import java.io.PrintWriter; import java.io.BufferedWriter; import java.io.Writer; import java.io.OutputStreamWriter; import java.util.InputMismatchException; import java.io.IOException; import java.io.InputStream; /** * Built using CHelper plug-in * Actual solution is at the top * * @author New User */ public class Main { public static void main(String[] args) { InputStream inputStream = System.in; OutputStream outputStream = System.out; InputReader in = new InputReader(inputStream); OutputWriter out = new OutputWriter(outputStream); APayment solver = new APayment(); solver.solve(1, in, out); out.close(); } static class APayment { public void solve(int testNumber, InputReader c, OutputWriter w) { System.err.println("Test Try"); int n = c.readInt(); int kk = n % 1000; if (kk == 0) { w.printLine(0); } else { w.printLine(1000 - kk); } } } static class InputReader { private InputStream stream; private byte[] buf = new byte[1024]; private int curChar; private int numChars; private InputReader.SpaceCharFilter filter; public InputReader(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 readInt() { 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 isWhitespace(c); } public static boolean isWhitespace(int c) { return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1; } public interface SpaceCharFilter { public boolean isSpaceChar(int ch); } } static class OutputWriter { private final PrintWriter writer; public OutputWriter(OutputStream outputStream) { writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream))); } public OutputWriter(Writer writer) { this.writer = new PrintWriter(writer); } public void close() { writer.close(); } public void printLine(int i) { writer.println(i); } } }
[ 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, 4, 18, 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 ], [ 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 ], [ 8, 34 ], [ 34, 35 ], [ 35, 36 ], [ 6, 37 ], [ 37, 38 ], [ 0, 39 ], [ 39, 40 ], [ 39, 41 ] ]
[ "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 System.out.println(n % 1000 == 0 ? 0 : 1000 - (n % 1000));\n scan.close();\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 System.out.println(n % 1000 == 0 ? 0 : 1000 - (n % 1000));\n scan.close();\n }\n}", "Main", "public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n System.out.println(n % 1000 == 0 ? 0 : 1000 - (n % 1000));\n scan.close();\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n System.out.println(n % 1000 == 0 ? 0 : 1000 - (n % 1000));\n scan.close();\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "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", "scan.close()", "scan.close", "scan", "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 System.out.println(n % 1000 == 0 ? 0 : 1000 - (n % 1000));\n scan.close();\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 System.out.println(n % 1000 == 0 ? 0 : 1000 - (n % 1000));\n scan.close();\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(); System.out.println(n % 1000 == 0 ? 0 : 1000 - (n % 1000)); scan.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 14, 2, 2, 13, 17, 17, 30, 0, 13, 2, 13, 17, 4, 18, 18, 13, 13, 13, 30, 0, 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 ], [ 58, 5 ], [ 58, 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 ], [ 30, 32 ], [ 32, 33 ], [ 32, 34 ], [ 29, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 23, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 44, 46 ], [ 41, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 52, 53 ], [ 52, 54 ], [ 6, 55 ], [ 55, 56 ], [ 0, 57 ], [ 57, 58 ], [ 57, 59 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n\n int rest = 0;\n int senyen = 0;\n if(n % 1000 == 0) {\n senyen = n % 1000;\n System.out.println(senyen);\n } else {\n rest = n % 1000;\n System.out.println(1000 - rest);\n }\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 int n = sc.nextInt();\n\n int rest = 0;\n int senyen = 0;\n if(n % 1000 == 0) {\n senyen = n % 1000;\n System.out.println(senyen);\n } else {\n rest = n % 1000;\n System.out.println(1000 - rest);\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n\n int rest = 0;\n int senyen = 0;\n if(n % 1000 == 0) {\n senyen = n % 1000;\n System.out.println(senyen);\n } else {\n rest = n % 1000;\n System.out.println(1000 - rest);\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n\n int rest = 0;\n int senyen = 0;\n if(n % 1000 == 0) {\n senyen = n % 1000;\n System.out.println(senyen);\n } else {\n rest = n % 1000;\n System.out.println(1000 - rest);\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int rest = 0;", "rest", "0", "int senyen = 0;", "senyen", "0", "if(n % 1000 == 0) {\n senyen = n % 1000;\n System.out.println(senyen);\n } else {\n rest = n % 1000;\n System.out.println(1000 - rest);\n }", "n % 1000 == 0", "n % 1000", "n", "1000", "0", "{\n senyen = n % 1000;\n System.out.println(senyen);\n }", "senyen = n % 1000", "senyen", "n % 1000", "n", "1000", "System.out.println(senyen)", "System.out.println", "System.out", "System", "System.out", "senyen", "{\n rest = n % 1000;\n System.out.println(1000 - rest);\n }", "rest = n % 1000", "rest", "n % 1000", "n", "1000", "System.out.println(1000 - rest)", "System.out.println", "System.out", "System", "System.out", "1000 - rest", "1000", "rest", "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\n int rest = 0;\n int senyen = 0;\n if(n % 1000 == 0) {\n senyen = n % 1000;\n System.out.println(senyen);\n } else {\n rest = n % 1000;\n System.out.println(1000 - rest);\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\n int rest = 0;\n int senyen = 0;\n if(n % 1000 == 0) {\n senyen = n % 1000;\n System.out.println(senyen);\n } else {\n rest = n % 1000;\n System.out.println(1000 - rest);\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(); int rest = 0; int senyen = 0; if(n % 1000 == 0) { senyen = n % 1000; System.out.println(senyen); } else { rest = n % 1000; System.out.println(1000 - rest); } } }
[ 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 ], [ 8, 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 sc = new Scanner(System.in);\n int N = sc.nextInt();\n sc.close();\n\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 sc = new Scanner(System.in);\n int N = sc.nextInt();\n sc.close();\n\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 sc = new Scanner(System.in);\n int N = sc.nextInt();\n sc.close();\n\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 sc = new Scanner(System.in);\n int N = sc.nextInt();\n sc.close();\n\n if(N%1000==0){\n System.out.println(0);\n }\n else{\n System.out.println(1000-N%1000);\n }\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", "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 sc = new Scanner(System.in);\n int N = sc.nextInt();\n sc.close();\n\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 sc = new Scanner(System.in);\n int N = sc.nextInt();\n sc.close();\n\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 sc = new Scanner(System.in); int N = sc.nextInt(); sc.close(); if(N%1000==0){ System.out.println(0); } else{ System.out.println(1000-N%1000); } } }
[ 7, 6, 13, 12, 13, 30, 41, 13, 4, 18, 20, 41, 13, 40, 13, 42, 2, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 32, 2 ], [ 32, 3 ], [ 3, 4 ], [ 3, 5 ], [ 5, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 5, 11 ], [ 11, 12 ], [ 11, 13 ], [ 13, 14 ], [ 5, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 15, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 5, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 23, 28 ], [ 3, 29 ], [ 29, 30 ], [ 0, 31 ], [ 31, 32 ], [ 31, 33 ] ]
[ "public class Main{\n\tpublic static void main(String[] args) {\n\t\tint N = new java.util.Scanner(System.in).nextInt();\n\t\tint result = -N;\n\n\t\twhile(result< 0) {\n\t\t\tresult += 1000;\n\t\t}\n\t\tSystem.out.println(result);\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args) {\n\t\tint N = new java.util.Scanner(System.in).nextInt();\n\t\tint result = -N;\n\n\t\twhile(result< 0) {\n\t\t\tresult += 1000;\n\t\t}\n\t\tSystem.out.println(result);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tint N = new java.util.Scanner(System.in).nextInt();\n\t\tint result = -N;\n\n\t\twhile(result< 0) {\n\t\t\tresult += 1000;\n\t\t}\n\t\tSystem.out.println(result);\n\t}", "main", "{\n\t\tint N = new java.util.Scanner(System.in).nextInt();\n\t\tint result = -N;\n\n\t\twhile(result< 0) {\n\t\t\tresult += 1000;\n\t\t}\n\t\tSystem.out.println(result);\n\t}", "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)", "int result = -N;", "result", "-N", "N", "while(result< 0) {\n\t\t\tresult += 1000;\n\t\t}", "result< 0", "result", "0", "{\n\t\t\tresult += 1000;\n\t\t}", "result += 1000", "result", "1000", "System.out.println(result)", "System.out.println", "System.out", "System", "System.out", "result", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args) {\n\t\tint N = new java.util.Scanner(System.in).nextInt();\n\t\tint result = -N;\n\n\t\twhile(result< 0) {\n\t\t\tresult += 1000;\n\t\t}\n\t\tSystem.out.println(result);\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args) {\n\t\tint N = new java.util.Scanner(System.in).nextInt();\n\t\tint result = -N;\n\n\t\twhile(result< 0) {\n\t\t\tresult += 1000;\n\t\t}\n\t\tSystem.out.println(result);\n\t}\n}", "Main" ]
public class Main{ public static void main(String[] args) { int N = new java.util.Scanner(System.in).nextInt(); int result = -N; while(result< 0) { result += 1000; } 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, 13, 30, 4, 18, 18, 13, 13, 17, 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.*;\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n \n int a = n%1000;\n \n int b = 1000-a;\n \n if(b != 1000){\n System.out.println(b);\n }else{\n System.out.println(0);\n }\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 \n int a = n%1000;\n \n int b = 1000-a;\n \n if(b != 1000){\n System.out.println(b);\n }else{\n System.out.println(0);\n }\n \n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n \n int a = n%1000;\n \n int b = 1000-a;\n \n if(b != 1000){\n System.out.println(b);\n }else{\n System.out.println(0);\n }\n \n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n \n int a = n%1000;\n \n int b = 1000-a;\n \n if(b != 1000){\n System.out.println(b);\n }else{\n System.out.println(0);\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 a = n%1000;", "a", "n%1000", "n", "1000", "int b = 1000-a;", "b", "1000-a", "1000", "a", "if(b != 1000){\n System.out.println(b);\n }else{\n System.out.println(0);\n }", "b != 1000", "b", "1000", "{\n System.out.println(b);\n }", "System.out.println(b)", "System.out.println", "System.out", "System", "System.out", "b", "{\n System.out.println(0);\n }", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "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 \n int a = n%1000;\n \n int b = 1000-a;\n \n if(b != 1000){\n System.out.println(b);\n }else{\n System.out.println(0);\n }\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 \n int a = n%1000;\n \n int b = 1000-a;\n \n if(b != 1000){\n System.out.println(b);\n }else{\n System.out.println(0);\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(); int a = n%1000; int b = 1000-a; if(b != 1000){ System.out.println(b); }else{ System.out.println(0); } } }
[ 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, 41, 13, 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 ], [ 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 ], [ 18, 22 ], [ 17, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 24, 29 ], [ 17, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 33, 37 ], [ 30, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 6, 48 ], [ 48, 49 ], [ 0, 50 ], [ 50, 51 ], [ 50, 52 ] ]
[ "import java.util.*;\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 if(n%1000==0)\n {\n System.out.println(\"0\");\n }\n else\n {\n int a=(n/1000)+1;\n System.out.println((a*1000)-n);\n }\n }\n}", "import java.util.*;", "util.*", "java", "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 if(n%1000==0)\n {\n System.out.println(\"0\");\n }\n else\n {\n int a=(n/1000)+1;\n System.out.println((a*1000)-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 if(n%1000==0)\n {\n System.out.println(\"0\");\n }\n else\n {\n int a=(n/1000)+1;\n System.out.println((a*1000)-n);\n }\n }", "main", "{\n Scanner in=new Scanner(System.in);\n int n=in.nextInt();\n if(n%1000==0)\n {\n System.out.println(\"0\");\n }\n else\n {\n int a=(n/1000)+1;\n System.out.println((a*1000)-n);\n }\n }", "Scanner in=new Scanner(System.in);", "in", "new Scanner(System.in)", "int n=in.nextInt();", "n", "in.nextInt()", "in.nextInt", "in", "if(n%1000==0)\n {\n System.out.println(\"0\");\n }\n else\n {\n int a=(n/1000)+1;\n System.out.println((a*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 int a=(n/1000)+1;\n System.out.println((a*1000)-n);\n }", "int a=(n/1000)+1;", "a", "(n/1000)+1", "(n/1000)", "n", "1000", "1", "System.out.println((a*1000)-n)", "System.out.println", "System.out", "System", "System.out", "(a*1000)-n", "(a*1000)", "a", "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 if(n%1000==0)\n {\n System.out.println(\"0\");\n }\n else\n {\n int a=(n/1000)+1;\n System.out.println((a*1000)-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 if(n%1000==0)\n {\n System.out.println(\"0\");\n }\n else\n {\n int a=(n/1000)+1;\n System.out.println((a*1000)-n);\n }\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String args[]) { Scanner in=new Scanner(System.in); int n=in.nextInt(); if(n%1000==0) { System.out.println("0"); } else { int a=(n/1000)+1; System.out.println((a*1000)-n); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 20, 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, 20, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 18, 13, 13, 13, 4, 18, 13, 29, 13, 23, 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, 18, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 18, 13, 13, 13, 4, 18, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 12, 13, 30, 14, 2, 13, 17, 30, 29, 13, 29, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 42, 2, 40, 13, 17, 30, 41, 13, 4, 13, 14, 2, 2, 13, 17, 17, 30, 4, 18, 13, 17, 30, 4, 18, 4, 18, 13, 2, 17, 2, 13, 17, 17, 4, 18, 13, 4, 18, 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 ], [ 359, 8 ], [ 359, 9 ], [ 9, 10 ], [ 9, 11 ], [ 359, 12 ], [ 12, 13 ], [ 12, 14 ], [ 359, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 22, 27 ], [ 27, 28 ], [ 27, 29 ], [ 22, 30 ], [ 30, 31 ], [ 31, 32 ], [ 22, 33 ], [ 34, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 35, 39 ], [ 39, 40 ], [ 40, 41 ], [ 17, 42 ], [ 42, 43 ], [ 15, 44 ], [ 44, 45 ], [ 359, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 59, 60 ], [ 59, 61 ], [ 54, 62 ], [ 62, 63 ], [ 63, 64 ], [ 54, 65 ], [ 66, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 72, 73 ], [ 72, 74 ], [ 67, 75 ], [ 75, 76 ], [ 76, 77 ], [ 67, 78 ], [ 79, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 80, 86 ], [ 86, 87 ], [ 87, 88 ], [ 48, 89 ], [ 89, 90 ], [ 46, 91 ], [ 91, 92 ], [ 46, 93 ], [ 93, 94 ], [ 359, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 102, 107 ], [ 107, 108 ], [ 107, 109 ], [ 102, 110 ], [ 110, 111 ], [ 111, 112 ], [ 102, 113 ], [ 114, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 115, 119 ], [ 119, 120 ], [ 120, 121 ], [ 97, 122 ], [ 122, 123 ], [ 95, 124 ], [ 124, 125 ], [ 359, 126 ], [ 126, 127 ], [ 126, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 128, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 134, 139 ], [ 139, 140 ], [ 139, 141 ], [ 134, 142 ], [ 142, 143 ], [ 143, 144 ], [ 134, 145 ], [ 146, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 149, 151 ], [ 147, 152 ], [ 152, 153 ], [ 152, 154 ], [ 147, 155 ], [ 155, 156 ], [ 156, 157 ], [ 147, 158 ], [ 159, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 161, 165 ], [ 160, 166 ], [ 166, 167 ], [ 167, 168 ], [ 128, 169 ], [ 169, 170 ], [ 126, 171 ], [ 171, 172 ], [ 126, 173 ], [ 173, 174 ], [ 359, 175 ], [ 175, 176 ], [ 175, 177 ], [ 177, 178 ], [ 178, 179 ], [ 179, 180 ], [ 180, 181 ], [ 359, 182 ], [ 182, 183 ], [ 182, 184 ], [ 184, 185 ], [ 185, 186 ], [ 186, 187 ], [ 187, 188 ], [ 359, 189 ], [ 189, 190 ], [ 189, 191 ], [ 191, 192 ], [ 192, 193 ], [ 193, 194 ], [ 194, 195 ], [ 359, 196 ], [ 196, 197 ], [ 196, 198 ], [ 198, 199 ], [ 199, 200 ], [ 200, 201 ], [ 200, 202 ], [ 199, 203 ], [ 203, 204 ], [ 204, 205 ], [ 198, 206 ], [ 206, 207 ], [ 207, 208 ], [ 207, 209 ], [ 207, 210 ], [ 210, 211 ], [ 210, 212 ], [ 196, 213 ], [ 213, 214 ], [ 196, 215 ], [ 215, 216 ], [ 359, 217 ], [ 217, 218 ], [ 217, 219 ], [ 219, 220 ], [ 220, 221 ], [ 220, 222 ], [ 219, 223 ], [ 223, 224 ], [ 223, 225 ], [ 219, 226 ], [ 226, 227 ], [ 227, 228 ], [ 228, 229 ], [ 227, 230 ], [ 226, 231 ], [ 231, 232 ], [ 232, 233 ], [ 232, 234 ], [ 234, 235 ], [ 231, 236 ], [ 236, 237 ], [ 237, 238 ], [ 238, 239 ], [ 238, 240 ], [ 237, 241 ], [ 236, 242 ], [ 242, 243 ], [ 243, 244 ], [ 244, 245 ], [ 243, 246 ], [ 236, 247 ], [ 247, 248 ], [ 248, 249 ], [ 249, 250 ], [ 250, 251 ], [ 251, 252 ], [ 250, 253 ], [ 253, 254 ], [ 253, 255 ], [ 255, 256 ], [ 255, 257 ], [ 248, 258 ], [ 219, 259 ], [ 259, 260 ], [ 260, 261 ], [ 259, 262 ], [ 262, 263 ], [ 263, 264 ], [ 219, 265 ], [ 265, 266 ], [ 266, 267 ], [ 217, 268 ], [ 268, 269 ], [ 359, 270 ], [ 270, 271 ], [ 270, 272 ], [ 272, 273 ], [ 270, 274 ], [ 274, 275 ], [ 270, 276 ], [ 276, 277 ], [ 276, 278 ], [ 278, 279 ], [ 279, 280 ], [ 279, 281 ], [ 270, 282 ], [ 282, 283 ], [ 282, 284 ], [ 284, 285 ], [ 285, 286 ], [ 286, 287 ], [ 287, 288 ], [ 287, 289 ], [ 286, 290 ], [ 290, 291 ], [ 291, 292 ], [ 292, 293 ], [ 285, 294 ], [ 294, 295 ], [ 295, 296 ], [ 296, 297 ], [ 296, 298 ], [ 298, 299 ], [ 299, 300 ], [ 300, 301 ], [ 295, 302 ], [ 302, 303 ], [ 303, 304 ], [ 303, 305 ], [ 284, 306 ], [ 306, 307 ], [ 307, 308 ], [ 308, 309 ], [ 270, 310 ], [ 310, 311 ], [ 310, 312 ], [ 312, 313 ], [ 313, 314 ], [ 314, 315 ], [ 315, 316 ], [ 314, 317 ], [ 317, 318 ], [ 270, 319 ], [ 319, 320 ], [ 319, 321 ], [ 321, 322 ], [ 322, 323 ], [ 323, 324 ], [ 324, 325 ], [ 323, 326 ], [ 326, 327 ], [ 270, 328 ], [ 328, 329 ], [ 328, 330 ], [ 330, 331 ], [ 331, 332 ], [ 332, 333 ], [ 333, 334 ], [ 332, 335 ], [ 335, 336 ], [ 270, 337 ], [ 337, 338 ], [ 337, 339 ], [ 339, 340 ], [ 340, 341 ], [ 340, 342 ], [ 339, 343 ], [ 343, 344 ], [ 344, 345 ], [ 344, 346 ], [ 346, 347 ], [ 347, 348 ], [ 348, 349 ], [ 343, 350 ], [ 350, 351 ], [ 351, 352 ], [ 351, 353 ], [ 353, 354 ], [ 354, 355 ], [ 339, 356 ], [ 356, 357 ], [ 0, 358 ], [ 358, 359 ], [ 358, 360 ] ]
[ "import java.io.*;\nimport java.util.*;\n\npublic class Main {\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 static FastReader s = new FastReader();\n static PrintWriter out = new PrintWriter(System.out);\n\n private static int[] rai(int n) {\n int[] arr = new int[n];\n for (int i = 0; i < n; i++) {\n arr[i] = s.nextInt();\n }\n return arr;\n }\n\n private static int[][] rai(int n, int m) {\n int[][] arr = new int[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n arr[i][j] = s.nextInt();\n }\n }\n return arr;\n }\n\n private static long[] ral(int n) {\n long[] arr = new long[n];\n for (int i = 0; i < n; i++) {\n arr[i] = s.nextLong();\n }\n return arr;\n }\n\n private static long[][] ral(int n, int m) {\n long[][] arr = new long[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n arr[i][j] = s.nextLong();\n }\n }\n return arr;\n }\n\n private static int ri() {\n return s.nextInt();\n }\n\n private static long rl() {\n return s.nextLong();\n }\n\n private static String rs() {\n return s.next();\n }\n static int gcd(int a,int b)\n {\n if(b==0)\n {\n return a;\n }\n return gcd(b,a%b);\n }\n\n\n public static void main(String[] args) {\n StringBuilder ans = new StringBuilder();\n// int t = ri();\n int t=1;\n while (t-- > 0) {\n int n=ri();\n if(n%1000==0)\n {\n ans.append(\"0\\n\");\n }\n else {\n ans.append(1000-n%1000).append(\"\\n\");\n }\n }\n out.print(ans.toString());\n out.flush();\n\n }\n\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "public class Main {\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 static FastReader s = new FastReader();\n static PrintWriter out = new PrintWriter(System.out);\n\n private static int[] rai(int n) {\n int[] arr = new int[n];\n for (int i = 0; i < n; i++) {\n arr[i] = s.nextInt();\n }\n return arr;\n }\n\n private static int[][] rai(int n, int m) {\n int[][] arr = new int[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n arr[i][j] = s.nextInt();\n }\n }\n return arr;\n }\n\n private static long[] ral(int n) {\n long[] arr = new long[n];\n for (int i = 0; i < n; i++) {\n arr[i] = s.nextLong();\n }\n return arr;\n }\n\n private static long[][] ral(int n, int m) {\n long[][] arr = new long[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n arr[i][j] = s.nextLong();\n }\n }\n return arr;\n }\n\n private static int ri() {\n return s.nextInt();\n }\n\n private static long rl() {\n return s.nextLong();\n }\n\n private static String rs() {\n return s.next();\n }\n static int gcd(int a,int b)\n {\n if(b==0)\n {\n return a;\n }\n return gcd(b,a%b);\n }\n\n\n public static void main(String[] args) {\n StringBuilder ans = new StringBuilder();\n// int t = ri();\n int t=1;\n while (t-- > 0) {\n int n=ri();\n if(n%1000==0)\n {\n ans.append(\"0\\n\");\n }\n else {\n ans.append(1000-n%1000).append(\"\\n\");\n }\n }\n out.print(ans.toString());\n out.flush();\n\n }\n\n}", "Main", "static FastReader s = new FastReader();", "s", "new FastReader()", "static PrintWriter out = new PrintWriter(System.out);", "out", "new PrintWriter(System.out)", "private static int[] rai(int n) {\n int[] arr = new int[n];\n for (int i = 0; i < n; i++) {\n arr[i] = s.nextInt();\n }\n return arr;\n }", "rai", "{\n int[] arr = new int[n];\n for (int i = 0; i < n; i++) {\n arr[i] = s.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] = s.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n arr[i] = s.nextInt();\n }", "{\n arr[i] = s.nextInt();\n }", "arr[i] = s.nextInt()", "arr[i]", "arr", "i", "s.nextInt()", "s.nextInt", "s", "return arr;", "arr", "int n", "n", "private static int[][] rai(int n, int m) {\n int[][] arr = new int[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n arr[i][j] = s.nextInt();\n }\n }\n return arr;\n }", "rai", "{\n int[][] arr = new int[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n arr[i][j] = s.nextInt();\n }\n }\n return arr;\n }", "int[][] arr = new int[n][m];", "arr", "new int[n][m]", "n", "m", "for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n arr[i][j] = s.nextInt();\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n for (int j = 0; j < m; j++) {\n arr[i][j] = s.nextInt();\n }\n }", "{\n for (int j = 0; j < m; j++) {\n arr[i][j] = s.nextInt();\n }\n }", "for (int j = 0; j < m; j++) {\n arr[i][j] = s.nextInt();\n }", "int j = 0;", "int j = 0;", "j", "0", "j < m", "j", "m", "j++", "j++", "j", "{\n arr[i][j] = s.nextInt();\n }", "{\n arr[i][j] = s.nextInt();\n }", "arr[i][j] = s.nextInt()", "arr[i][j]", "arr[i]", "arr", "i", "j", "s.nextInt()", "s.nextInt", "s", "return arr;", "arr", "int n", "n", "int m", "m", "private static long[] ral(int n) {\n long[] arr = new long[n];\n for (int i = 0; i < n; i++) {\n arr[i] = s.nextLong();\n }\n return arr;\n }", "ral", "{\n long[] arr = new long[n];\n for (int i = 0; i < n; i++) {\n arr[i] = s.nextLong();\n }\n return arr;\n }", "long[] arr = new long[n];", "arr", "new long[n]", "n", "for (int i = 0; i < n; i++) {\n arr[i] = s.nextLong();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n arr[i] = s.nextLong();\n }", "{\n arr[i] = s.nextLong();\n }", "arr[i] = s.nextLong()", "arr[i]", "arr", "i", "s.nextLong()", "s.nextLong", "s", "return arr;", "arr", "int n", "n", "private static long[][] ral(int n, int m) {\n long[][] arr = new long[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n arr[i][j] = s.nextLong();\n }\n }\n return arr;\n }", "ral", "{\n long[][] arr = new long[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n arr[i][j] = s.nextLong();\n }\n }\n return arr;\n }", "long[][] arr = new long[n][m];", "arr", "new long[n][m]", "n", "m", "for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n arr[i][j] = s.nextLong();\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n for (int j = 0; j < m; j++) {\n arr[i][j] = s.nextLong();\n }\n }", "{\n for (int j = 0; j < m; j++) {\n arr[i][j] = s.nextLong();\n }\n }", "for (int j = 0; j < m; j++) {\n arr[i][j] = s.nextLong();\n }", "int j = 0;", "int j = 0;", "j", "0", "j < m", "j", "m", "j++", "j++", "j", "{\n arr[i][j] = s.nextLong();\n }", "{\n arr[i][j] = s.nextLong();\n }", "arr[i][j] = s.nextLong()", "arr[i][j]", "arr[i]", "arr", "i", "j", "s.nextLong()", "s.nextLong", "s", "return arr;", "arr", "int n", "n", "int m", "m", "private static int ri() {\n return s.nextInt();\n }", "ri", "{\n return s.nextInt();\n }", "return s.nextInt();", "s.nextInt()", "s.nextInt", "s", "private static long rl() {\n return s.nextLong();\n }", "rl", "{\n return s.nextLong();\n }", "return s.nextLong();", "s.nextLong()", "s.nextLong", "s", "private static String rs() {\n return s.next();\n }", "rs", "{\n return s.next();\n }", "return s.next();", "s.next()", "s.next", "s", "static int gcd(int a,int b)\n {\n if(b==0)\n {\n return a;\n }\n return gcd(b,a%b);\n }", "gcd", "{\n if(b==0)\n {\n return a;\n }\n return gcd(b,a%b);\n }", "if(b==0)\n {\n return a;\n }", "b==0", "b", "0", "{\n return a;\n }", "return a;", "a", "return gcd(b,a%b);", "gcd(b,a%b)", "gcd", "b", "a%b", "a", "b", "int a", "a", "int b", "b", "public static void main(String[] args) {\n StringBuilder ans = new StringBuilder();\n// int t = ri();\n int t=1;\n while (t-- > 0) {\n int n=ri();\n if(n%1000==0)\n {\n ans.append(\"0\\n\");\n }\n else {\n ans.append(1000-n%1000).append(\"\\n\");\n }\n }\n out.print(ans.toString());\n out.flush();\n\n }", "main", "{\n StringBuilder ans = new StringBuilder();\n// int t = ri();\n int t=1;\n while (t-- > 0) {\n int n=ri();\n if(n%1000==0)\n {\n ans.append(\"0\\n\");\n }\n else {\n ans.append(1000-n%1000).append(\"\\n\");\n }\n }\n out.print(ans.toString());\n out.flush();\n\n }", "StringBuilder ans = new StringBuilder();", "ans", "new StringBuilder()", "int t=1;", "t", "1", "while (t-- > 0) {\n int n=ri();\n if(n%1000==0)\n {\n ans.append(\"0\\n\");\n }\n else {\n ans.append(1000-n%1000).append(\"\\n\");\n }\n }", "t-- > 0", "t--", "t", "0", "{\n int n=ri();\n if(n%1000==0)\n {\n ans.append(\"0\\n\");\n }\n else {\n ans.append(1000-n%1000).append(\"\\n\");\n }\n }", "int n=ri();", "n", "ri()", "ri", "if(n%1000==0)\n {\n ans.append(\"0\\n\");\n }\n else {\n ans.append(1000-n%1000).append(\"\\n\");\n }", "n%1000==0", "n%1000", "n", "1000", "0", "{\n ans.append(\"0\\n\");\n }", "ans.append(\"0\\n\")", "ans.append", "ans", "\"0\\n\"", "{\n ans.append(1000-n%1000).append(\"\\n\");\n }", "ans.append(1000-n%1000).append(\"\\n\")", "ans.append(1000-n%1000).append", "ans.append(1000-n%1000)", "ans.append", "ans", "1000-n%1000", "1000", "n%1000", "n", "1000", "\"\\n\"", "out.print(ans.toString())", "out.print", "out", "ans.toString()", "ans.toString", "ans", "out.flush()", "out.flush", "out", "String[] args", "args", "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 }", "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 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 static FastReader s = new FastReader();\n static PrintWriter out = new PrintWriter(System.out);\n\n private static int[] rai(int n) {\n int[] arr = new int[n];\n for (int i = 0; i < n; i++) {\n arr[i] = s.nextInt();\n }\n return arr;\n }\n\n private static int[][] rai(int n, int m) {\n int[][] arr = new int[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n arr[i][j] = s.nextInt();\n }\n }\n return arr;\n }\n\n private static long[] ral(int n) {\n long[] arr = new long[n];\n for (int i = 0; i < n; i++) {\n arr[i] = s.nextLong();\n }\n return arr;\n }\n\n private static long[][] ral(int n, int m) {\n long[][] arr = new long[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n arr[i][j] = s.nextLong();\n }\n }\n return arr;\n }\n\n private static int ri() {\n return s.nextInt();\n }\n\n private static long rl() {\n return s.nextLong();\n }\n\n private static String rs() {\n return s.next();\n }\n static int gcd(int a,int b)\n {\n if(b==0)\n {\n return a;\n }\n return gcd(b,a%b);\n }\n\n\n public static void main(String[] args) {\n StringBuilder ans = new StringBuilder();\n// int t = ri();\n int t=1;\n while (t-- > 0) {\n int n=ri();\n if(n%1000==0)\n {\n ans.append(\"0\\n\");\n }\n else {\n ans.append(1000-n%1000).append(\"\\n\");\n }\n }\n out.print(ans.toString());\n out.flush();\n\n }\n\n}", "public class Main {\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 static FastReader s = new FastReader();\n static PrintWriter out = new PrintWriter(System.out);\n\n private static int[] rai(int n) {\n int[] arr = new int[n];\n for (int i = 0; i < n; i++) {\n arr[i] = s.nextInt();\n }\n return arr;\n }\n\n private static int[][] rai(int n, int m) {\n int[][] arr = new int[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n arr[i][j] = s.nextInt();\n }\n }\n return arr;\n }\n\n private static long[] ral(int n) {\n long[] arr = new long[n];\n for (int i = 0; i < n; i++) {\n arr[i] = s.nextLong();\n }\n return arr;\n }\n\n private static long[][] ral(int n, int m) {\n long[][] arr = new long[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n arr[i][j] = s.nextLong();\n }\n }\n return arr;\n }\n\n private static int ri() {\n return s.nextInt();\n }\n\n private static long rl() {\n return s.nextLong();\n }\n\n private static String rs() {\n return s.next();\n }\n static int gcd(int a,int b)\n {\n if(b==0)\n {\n return a;\n }\n return gcd(b,a%b);\n }\n\n\n public static void main(String[] args) {\n StringBuilder ans = new StringBuilder();\n// int t = ri();\n int t=1;\n while (t-- > 0) {\n int n=ri();\n if(n%1000==0)\n {\n ans.append(\"0\\n\");\n }\n else {\n ans.append(1000-n%1000).append(\"\\n\");\n }\n }\n out.print(ans.toString());\n out.flush();\n\n }\n\n}", "Main" ]
import java.io.*; import java.util.*; public class Main { 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; } } static FastReader s = new FastReader(); static PrintWriter out = new PrintWriter(System.out); private static int[] rai(int n) { int[] arr = new int[n]; for (int i = 0; i < n; i++) { arr[i] = s.nextInt(); } return arr; } private static int[][] rai(int n, int m) { int[][] arr = new int[n][m]; for (int i = 0; i < n; i++) { for (int j = 0; j < m; j++) { arr[i][j] = s.nextInt(); } } return arr; } private static long[] ral(int n) { long[] arr = new long[n]; for (int i = 0; i < n; i++) { arr[i] = s.nextLong(); } return arr; } private static long[][] ral(int n, int m) { long[][] arr = new long[n][m]; for (int i = 0; i < n; i++) { for (int j = 0; j < m; j++) { arr[i][j] = s.nextLong(); } } return arr; } private static int ri() { return s.nextInt(); } private static long rl() { return s.nextLong(); } private static String rs() { return s.next(); } static int gcd(int a,int b) { if(b==0) { return a; } return gcd(b,a%b); } public static void main(String[] args) { StringBuilder ans = new StringBuilder(); // int t = ri(); int t=1; while (t-- > 0) { int n=ri(); if(n%1000==0) { ans.append("0\n"); } else { ans.append(1000-n%1000).append("\n"); } } out.print(ans.toString()); out.flush(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 20, 12, 13, 30, 41, 13, 4, 13, 41, 13, 4, 18, 13, 2, 13, 17, 4, 13, 2, 2, 40, 13, 2, 17, 13, 17, 4, 18, 13, 4, 18, 13, 23, 13, 12, 13, 30, 41, 13, 17, 14, 2, 13, 2, 13, 13, 30, 0, 13, 2, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 2, 13, 13, 17, 0, 13, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 29, 2, 2, 2, 13, 13, 13, 13, 23, 13, 23, 13, 12, 13, 30, 29, 2, 2, 13, 4, 13, 13, 13, 13, 23, 13, 23, 13, 12, 13, 30, 14, 2, 13, 17, 29, 13, 29, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 12, 13, 30, 4, 18, 13, 13, 23, 13, 12, 13, 30, 4, 18, 13, 2, 13, 17, 23, 13, 12, 13, 30, 4, 18, 13, 2, 13, 17, 23, 13, 6, 13, 41, 13, 2, 17, 17, 41, 13, 41, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 0, 13, 20, 13, 0, 13, 0, 13, 17, 12, 13, 30, 0, 13, 20, 0, 13, 20, 13, 0, 13, 0, 13, 17, 23, 13, 12, 13, 30, 41, 13, 20, 17, 41, 13, 17, 41, 13, 42, 2, 0, 13, 4, 13, 40, 17, 30, 14, 2, 13, 17, 3, 0, 18, 13, 40, 13, 13, 29, 20, 12, 13, 30, 41, 13, 17, 41, 13, 4, 13, 42, 2, 13, 17, 0, 13, 4, 13, 41, 13, 2, 13, 17, 14, 13, 0, 13, 4, 13, 42, 2, 2, 0, 13, 4, 13, 17, 2, 13, 17, 30, 0, 13, 2, 2, 2, 13, 17, 13, 17, 14, 13, 29, 40, 13, 29, 13, 12, 13, 30, 41, 13, 17, 41, 13, 4, 13, 42, 2, 13, 17, 0, 13, 4, 13, 41, 13, 2, 13, 17, 14, 13, 0, 13, 4, 13, 42, 2, 2, 0, 13, 4, 13, 17, 2, 13, 17, 30, 0, 13, 2, 2, 2, 13, 17, 13, 17, 14, 13, 29, 40, 13, 29, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 41, 13, 4, 13, 42, 2, 13, 17, 0, 13, 4, 13, 41, 13, 2, 13, 17, 14, 13, 0, 13, 4, 13, 42, 2, 2, 0, 13, 4, 13, 17, 2, 13, 17, 30, 0, 13, 2, 2, 2, 13, 17, 13, 17, 14, 2, 13, 17, 30, 42, 2, 2, 0, 13, 4, 13, 17, 2, 13, 17, 30, 0, 13, 2, 2, 13, 17, 0, 13, 17, 14, 13, 29, 40, 13, 29, 13, 12, 13, 30, 0, 13, 4, 18, 13, 13, 0, 13, 17, 13, 14, 2, 13, 40, 17, 0, 18, 13, 17, 40, 17, 12, 13, 30, 14, 2, 13, 13, 4, 13, 29, 18, 13, 40, 13, 12, 13, 30, 14, 2, 13, 17, 29, 4, 18, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 539, 11 ], [ 539, 12 ], [ 12, 13 ], [ 12, 14 ], [ 539, 15 ], [ 15, 16 ], [ 15, 17 ], [ 539, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 20, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 27, 30 ], [ 30, 31 ], [ 30, 32 ], [ 20, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 39, 40 ], [ 39, 41 ], [ 35, 42 ], [ 20, 43 ], [ 43, 44 ], [ 44, 45 ], [ 20, 46 ], [ 46, 47 ], [ 47, 48 ], [ 18, 49 ], [ 49, 50 ], [ 539, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 57, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 66, 68 ], [ 53, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 74, 75 ], [ 74, 76 ], [ 69, 77 ], [ 77, 78 ], [ 78, 79 ], [ 69, 80 ], [ 81, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 81, 89 ], [ 89, 90 ], [ 89, 91 ], [ 53, 92 ], [ 92, 93 ], [ 51, 94 ], [ 94, 95 ], [ 51, 96 ], [ 96, 97 ], [ 539, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 102, 108 ], [ 98, 109 ], [ 109, 110 ], [ 98, 111 ], [ 111, 112 ], [ 539, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 120, 122 ], [ 120, 123 ], [ 117, 124 ], [ 113, 125 ], [ 125, 126 ], [ 113, 127 ], [ 127, 128 ], [ 539, 129 ], [ 129, 130 ], [ 129, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 132, 136 ], [ 136, 137 ], [ 131, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 139, 142 ], [ 142, 143 ], [ 142, 144 ], [ 129, 145 ], [ 145, 146 ], [ 129, 147 ], [ 147, 148 ], [ 539, 149 ], [ 149, 150 ], [ 149, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 539, 156 ], [ 156, 157 ], [ 156, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 539, 163 ], [ 163, 164 ], [ 163, 165 ], [ 165, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 539, 170 ], [ 170, 171 ], [ 170, 172 ], [ 172, 173 ], [ 173, 174 ], [ 174, 175 ], [ 175, 176 ], [ 539, 177 ], [ 177, 178 ], [ 177, 179 ], [ 179, 180 ], [ 180, 181 ], [ 181, 182 ], [ 180, 183 ], [ 177, 184 ], [ 184, 185 ], [ 539, 186 ], [ 186, 187 ], [ 186, 188 ], [ 188, 189 ], [ 189, 190 ], [ 190, 191 ], [ 189, 192 ], [ 192, 193 ], [ 192, 194 ], [ 186, 195 ], [ 195, 196 ], [ 539, 197 ], [ 197, 198 ], [ 197, 199 ], [ 199, 200 ], [ 200, 201 ], [ 201, 202 ], [ 200, 203 ], [ 203, 204 ], [ 203, 205 ], [ 197, 206 ], [ 206, 207 ], [ 539, 208 ], [ 208, 209 ], [ 208, 210 ], [ 210, 211 ], [ 210, 212 ], [ 212, 213 ], [ 212, 214 ], [ 208, 215 ], [ 215, 216 ], [ 208, 217 ], [ 217, 218 ], [ 208, 219 ], [ 219, 220 ], [ 208, 221 ], [ 221, 222 ], [ 208, 223 ], [ 223, 224 ], [ 223, 225 ], [ 225, 226 ], [ 226, 227 ], [ 226, 228 ], [ 225, 229 ], [ 229, 230 ], [ 229, 231 ], [ 225, 233 ], [ 233, 234 ], [ 233, 235 ], [ 235, 236 ], [ 235, 237 ], [ 208, 238 ], [ 238, 239 ], [ 238, 240 ], [ 240, 241 ], [ 241, 242 ], [ 241, 243 ], [ 240, 244 ], [ 244, 245 ], [ 244, 246 ], [ 240, 248 ], [ 248, 249 ], [ 248, 250 ], [ 250, 251 ], [ 250, 252 ], [ 238, 253 ], [ 253, 254 ], [ 208, 255 ], [ 255, 256 ], [ 255, 257 ], [ 257, 258 ], [ 258, 259 ], [ 258, 260 ], [ 257, 262 ], [ 262, 263 ], [ 262, 264 ], [ 257, 265 ], [ 265, 266 ], [ 257, 267 ], [ 267, 268 ], [ 268, 269 ], [ 269, 270 ], [ 269, 271 ], [ 271, 272 ], [ 268, 273 ], [ 273, 274 ], [ 267, 275 ], [ 275, 276 ], [ 276, 277 ], [ 277, 278 ], [ 277, 279 ], [ 276, 280 ], [ 275, 281 ], [ 281, 282 ], [ 282, 283 ], [ 282, 284 ], [ 284, 285 ], [ 281, 286 ], [ 257, 287 ], [ 287, 288 ], [ 208, 289 ], [ 289, 290 ], [ 289, 291 ], [ 291, 292 ], [ 292, 293 ], [ 292, 294 ], [ 291, 295 ], [ 295, 296 ], [ 295, 297 ], [ 297, 298 ], [ 291, 299 ], [ 299, 300 ], [ 300, 301 ], [ 300, 302 ], [ 299, 303 ], [ 303, 304 ], [ 303, 305 ], [ 305, 306 ], [ 291, 307 ], [ 307, 308 ], [ 307, 309 ], [ 309, 310 ], [ 309, 311 ], [ 291, 312 ], [ 312, 313 ], [ 312, 314 ], [ 314, 315 ], [ 314, 316 ], [ 316, 317 ], [ 291, 318 ], [ 318, 319 ], [ 319, 320 ], [ 320, 321 ], [ 321, 322 ], [ 321, 323 ], [ 323, 324 ], [ 320, 325 ], [ 319, 326 ], [ 326, 327 ], [ 326, 328 ], [ 318, 329 ], [ 329, 330 ], [ 330, 331 ], [ 330, 332 ], [ 332, 333 ], [ 333, 334 ], [ 334, 335 ], [ 334, 336 ], [ 333, 337 ], [ 332, 338 ], [ 291, 339 ], [ 339, 340 ], [ 339, 341 ], [ 341, 342 ], [ 342, 343 ], [ 291, 344 ], [ 344, 345 ], [ 208, 346 ], [ 346, 347 ], [ 346, 348 ], [ 348, 349 ], [ 349, 350 ], [ 349, 351 ], [ 348, 352 ], [ 352, 353 ], [ 352, 354 ], [ 354, 355 ], [ 348, 356 ], [ 356, 357 ], [ 357, 358 ], [ 357, 359 ], [ 356, 360 ], [ 360, 361 ], [ 360, 362 ], [ 362, 363 ], [ 348, 364 ], [ 364, 365 ], [ 364, 366 ], [ 366, 367 ], [ 366, 368 ], [ 348, 369 ], [ 369, 370 ], [ 369, 371 ], [ 371, 372 ], [ 371, 373 ], [ 373, 374 ], [ 348, 375 ], [ 375, 376 ], [ 376, 377 ], [ 377, 378 ], [ 378, 379 ], [ 378, 380 ], [ 380, 381 ], [ 377, 382 ], [ 376, 383 ], [ 383, 384 ], [ 383, 385 ], [ 375, 386 ], [ 386, 387 ], [ 387, 388 ], [ 387, 389 ], [ 389, 390 ], [ 390, 391 ], [ 391, 392 ], [ 391, 393 ], [ 390, 394 ], [ 389, 395 ], [ 348, 396 ], [ 396, 397 ], [ 396, 398 ], [ 398, 399 ], [ 399, 400 ], [ 348, 401 ], [ 401, 402 ], [ 208, 403 ], [ 403, 404 ], [ 403, 405 ], [ 405, 406 ], [ 406, 407 ], [ 406, 408 ], [ 405, 409 ], [ 409, 410 ], [ 409, 411 ], [ 405, 412 ], [ 412, 413 ], [ 412, 414 ], [ 414, 415 ], [ 405, 416 ], [ 416, 417 ], [ 417, 418 ], [ 417, 419 ], [ 416, 420 ], [ 420, 421 ], [ 420, 422 ], [ 422, 423 ], [ 405, 424 ], [ 424, 425 ], [ 424, 426 ], [ 426, 427 ], [ 426, 428 ], [ 405, 429 ], [ 429, 430 ], [ 429, 431 ], [ 431, 432 ], [ 431, 433 ], [ 433, 434 ], [ 405, 435 ], [ 435, 436 ], [ 436, 437 ], [ 437, 438 ], [ 438, 439 ], [ 438, 440 ], [ 440, 441 ], [ 437, 442 ], [ 436, 443 ], [ 443, 444 ], [ 443, 445 ], [ 435, 446 ], [ 446, 447 ], [ 447, 448 ], [ 447, 449 ], [ 449, 450 ], [ 450, 451 ], [ 451, 452 ], [ 451, 453 ], [ 450, 454 ], [ 449, 455 ], [ 405, 456 ], [ 456, 457 ], [ 457, 458 ], [ 457, 459 ], [ 456, 460 ], [ 460, 461 ], [ 461, 462 ], [ 462, 463 ], [ 463, 464 ], [ 464, 465 ], [ 464, 466 ], [ 466, 467 ], [ 463, 468 ], [ 462, 469 ], [ 469, 470 ], [ 469, 471 ], [ 461, 472 ], [ 472, 473 ], [ 473, 474 ], [ 473, 475 ], [ 475, 476 ], [ 476, 477 ], [ 476, 478 ], [ 475, 479 ], [ 479, 480 ], [ 479, 481 ], [ 405, 482 ], [ 482, 483 ], [ 482, 484 ], [ 484, 485 ], [ 485, 486 ], [ 405, 487 ], [ 487, 488 ], [ 208, 489 ], [ 489, 490 ], [ 489, 491 ], [ 491, 492 ], [ 492, 493 ], [ 492, 494 ], [ 494, 495 ], [ 495, 496 ], [ 494, 497 ], [ 494, 498 ], [ 498, 499 ], [ 498, 500 ], [ 494, 501 ], [ 491, 502 ], [ 502, 503 ], [ 503, 504 ], [ 503, 505 ], [ 505, 506 ], [ 502, 507 ], [ 507, 508 ], [ 508, 509 ], [ 508, 510 ], [ 507, 511 ], [ 511, 512 ], [ 208, 513 ], [ 513, 514 ], [ 513, 515 ], [ 515, 516 ], [ 516, 517 ], [ 517, 518 ], [ 517, 519 ], [ 516, 520 ], [ 520, 521 ], [ 515, 522 ], [ 522, 523 ], [ 523, 524 ], [ 523, 525 ], [ 525, 526 ], [ 208, 527 ], [ 527, 528 ], [ 527, 529 ], [ 529, 530 ], [ 530, 531 ], [ 531, 532 ], [ 531, 533 ], [ 530, 534 ], [ 529, 535 ], [ 535, 536 ], [ 536, 537 ], [ 0, 538 ], [ 538, 539 ], [ 538, 540 ] ]
[ "/*input\n0\n*/\n\n\n\n\nimport java.math.*;\nimport java.io.*;\nimport java.util.*;\npublic class Main\n{\n static class Reader \n { \n final private int BUFFER_SIZE = 1 << 16; \n private DataInputStream din; \n private byte[] buffer; \n private int bufferPointer, bytesRead;\npublic Reader() \n { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }\npublic Reader(String file_name) throws IOException \n { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }\npublic String readLine() throws IOException \n { \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n }\npublic int nextInt() throws IOException \n { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9');\nif (neg) \n return -ret; \n return ret; \n }\npublic long nextLong() throws IOException \n { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n }\npublic double nextDouble() throws IOException \n { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read();\ndo { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9');\nif (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n }\nif (neg) \n return -ret; \n return ret; \n }\nprivate void fillBuffer() throws IOException \n { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n }\nprivate byte read() throws IOException \n { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n }\npublic void close() throws IOException \n { \n if (din == null) \n return; \n din.close(); \n } \n } \n\n\n\n\n \n static Reader sc=new Reader();\n static BufferedWriter bw=new BufferedWriter(new OutputStreamWriter(System.out));\n\n public static void main(String args[])throws IOException\n {\n /*\n * For integer input: int n=inputInt();\n * For long input: long n=inputLong();\n * For double input: double n=inputDouble();\n * For String input: String s=inputString();\n * Logic goes here\n * For printing without space: print(a+\"\"); where a is a variable of any datatype\n * For printing with space: printSp(a+\"\"); where a is a variable of any datatype\n * For printing with new line: println(a+\"\"); where a is a variable of any datatype\n Scanner in = new Scanner(System.in);\n //all four\n int[] dr = { 1, 0, -1, 0 };\n int[] dc = { 0, 1, 0, -1 };\n */\n \n \t\tint n=inputInt();\n\n \t\tint quo=(int)Math.ceil(n/1000.0);\n\n \t\tprintln((-n+1000*quo)+\"\");\n\n\n\n bw.flush();\n bw.close();\n\n \n\n\n \n}\n\nstatic long nCr(long n, long r) \n{ \n long ans=1;\n if(r>n-r)\n {\n \tr=n-r;\n }\n\n for(long i=1;i<=r;i++)\n {\n \tans*=(n-i+1);\n \tans/=i;\n\n }\n\n return ans;\n} \n \n\n \n\n\n\n\n public static int modulo(int x,int N)\n {\n return (x % N + N) %N;\n }\n public static long lcm(long a,long b)\n { \n return a / gcd(a, b) * b;\n }\n public static long gcd(long a,long b)\n {\n if(b==0)\n return a;\n return gcd(b,a%b);\n }\n\n public static int inputInt()throws IOException\n {\n return sc.nextInt();\n }\n public static long inputLong()throws IOException\n {\n return sc.nextLong();\n }\n public static double inputDouble()throws IOException\n {\n return sc.nextDouble();\n }\n public static String inputString()throws IOException\n {\n return sc.readLine();\n }\n public static void print(String a)throws IOException\n {\n bw.write(a);\n }\n public static void printSp(String a)throws IOException\n {\n bw.write(a+\" \");\n }\n public static void println(String a)throws IOException\n {\n bw.write(a+\"\\n\");\n }\n}", "import java.math.*;", "math.*", "java", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "public class Main\n{\n static class Reader \n { \n final private int BUFFER_SIZE = 1 << 16; \n private DataInputStream din; \n private byte[] buffer; \n private int bufferPointer, bytesRead;\npublic Reader() \n { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }\npublic Reader(String file_name) throws IOException \n { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }\npublic String readLine() throws IOException \n { \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n }\npublic int nextInt() throws IOException \n { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9');\nif (neg) \n return -ret; \n return ret; \n }\npublic long nextLong() throws IOException \n { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n }\npublic double nextDouble() throws IOException \n { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read();\ndo { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9');\nif (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n }\nif (neg) \n return -ret; \n return ret; \n }\nprivate void fillBuffer() throws IOException \n { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n }\nprivate byte read() throws IOException \n { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n }\npublic void close() throws IOException \n { \n if (din == null) \n return; \n din.close(); \n } \n } \n\n\n\n\n \n static Reader sc=new Reader();\n static BufferedWriter bw=new BufferedWriter(new OutputStreamWriter(System.out));\n\n public static void main(String args[])throws IOException\n {\n /*\n * For integer input: int n=inputInt();\n * For long input: long n=inputLong();\n * For double input: double n=inputDouble();\n * For String input: String s=inputString();\n * Logic goes here\n * For printing without space: print(a+\"\"); where a is a variable of any datatype\n * For printing with space: printSp(a+\"\"); where a is a variable of any datatype\n * For printing with new line: println(a+\"\"); where a is a variable of any datatype\n Scanner in = new Scanner(System.in);\n //all four\n int[] dr = { 1, 0, -1, 0 };\n int[] dc = { 0, 1, 0, -1 };\n */\n \n \t\tint n=inputInt();\n\n \t\tint quo=(int)Math.ceil(n/1000.0);\n\n \t\tprintln((-n+1000*quo)+\"\");\n\n\n\n bw.flush();\n bw.close();\n\n \n\n\n \n}\n\nstatic long nCr(long n, long r) \n{ \n long ans=1;\n if(r>n-r)\n {\n \tr=n-r;\n }\n\n for(long i=1;i<=r;i++)\n {\n \tans*=(n-i+1);\n \tans/=i;\n\n }\n\n return ans;\n} \n \n\n \n\n\n\n\n public static int modulo(int x,int N)\n {\n return (x % N + N) %N;\n }\n public static long lcm(long a,long b)\n { \n return a / gcd(a, b) * b;\n }\n public static long gcd(long a,long b)\n {\n if(b==0)\n return a;\n return gcd(b,a%b);\n }\n\n public static int inputInt()throws IOException\n {\n return sc.nextInt();\n }\n public static long inputLong()throws IOException\n {\n return sc.nextLong();\n }\n public static double inputDouble()throws IOException\n {\n return sc.nextDouble();\n }\n public static String inputString()throws IOException\n {\n return sc.readLine();\n }\n public static void print(String a)throws IOException\n {\n bw.write(a);\n }\n public static void printSp(String a)throws IOException\n {\n bw.write(a+\" \");\n }\n public static void println(String a)throws IOException\n {\n bw.write(a+\"\\n\");\n }\n}", "Main", "static Reader sc=new Reader();", "sc", "new Reader()", "static BufferedWriter bw=new BufferedWriter(new OutputStreamWriter(System.out));", "bw", "new BufferedWriter(new OutputStreamWriter(System.out))", "public static void main(String args[])throws IOException\n {\n /*\n * For integer input: int n=inputInt();\n * For long input: long n=inputLong();\n * For double input: double n=inputDouble();\n * For String input: String s=inputString();\n * Logic goes here\n * For printing without space: print(a+\"\"); where a is a variable of any datatype\n * For printing with space: printSp(a+\"\"); where a is a variable of any datatype\n * For printing with new line: println(a+\"\"); where a is a variable of any datatype\n Scanner in = new Scanner(System.in);\n //all four\n int[] dr = { 1, 0, -1, 0 };\n int[] dc = { 0, 1, 0, -1 };\n */\n \n \t\tint n=inputInt();\n\n \t\tint quo=(int)Math.ceil(n/1000.0);\n\n \t\tprintln((-n+1000*quo)+\"\");\n\n\n\n bw.flush();\n bw.close();\n\n \n\n\n \n}", "main", "{\n /*\n * For integer input: int n=inputInt();\n * For long input: long n=inputLong();\n * For double input: double n=inputDouble();\n * For String input: String s=inputString();\n * Logic goes here\n * For printing without space: print(a+\"\"); where a is a variable of any datatype\n * For printing with space: printSp(a+\"\"); where a is a variable of any datatype\n * For printing with new line: println(a+\"\"); where a is a variable of any datatype\n Scanner in = new Scanner(System.in);\n //all four\n int[] dr = { 1, 0, -1, 0 };\n int[] dc = { 0, 1, 0, -1 };\n */\n \n \t\tint n=inputInt();\n\n \t\tint quo=(int)Math.ceil(n/1000.0);\n\n \t\tprintln((-n+1000*quo)+\"\");\n\n\n\n bw.flush();\n bw.close();\n\n \n\n\n \n}", "int n=inputInt();", "n", "inputInt()", "inputInt", "int quo=(int)Math.ceil(n/1000.0);", "quo", "(int)Math.ceil(n/1000.0)", "Math.ceil", "Math", "n/1000.0", "n", "1000.0", "println((-n+1000*quo)+\"\")", "println", "(-n+1000*quo)+\"\"", "(-n+1000*quo)", "-n", "n", "1000*quo", "1000", "quo", "\"\"", "bw.flush()", "bw.flush", "bw", "bw.close()", "bw.close", "bw", "String args[]", "args", "static long nCr(long n, long r) \n{ \n long ans=1;\n if(r>n-r)\n {\n \tr=n-r;\n }\n\n for(long i=1;i<=r;i++)\n {\n \tans*=(n-i+1);\n \tans/=i;\n\n }\n\n return ans;\n}", "nCr", "{ \n long ans=1;\n if(r>n-r)\n {\n \tr=n-r;\n }\n\n for(long i=1;i<=r;i++)\n {\n \tans*=(n-i+1);\n \tans/=i;\n\n }\n\n return ans;\n}", "long ans=1;", "ans", "1", "if(r>n-r)\n {\n \tr=n-r;\n }", "r>n-r", "r", "n-r", "n", "r", "{\n \tr=n-r;\n }", "r=n-r", "r", "n-r", "n", "r", "for(long i=1;i<=r;i++)\n {\n \tans*=(n-i+1);\n \tans/=i;\n\n }", "long i=1;", "long i=1;", "i", "1", "i<=r", "i", "r", "i++", "i++", "i", "{\n \tans*=(n-i+1);\n \tans/=i;\n\n }", "{\n \tans*=(n-i+1);\n \tans/=i;\n\n }", "ans*=(n-i+1)", "ans", "(n-i+1)", "n-i", "n", "i", "1", "ans/=i", "ans", "i", "return ans;", "ans", "long n", "n", "long r", "r", "public static int modulo(int x,int N)\n {\n return (x % N + N) %N;\n }", "modulo", "{\n return (x % N + N) %N;\n }", "return (x % N + N) %N;", "(x % N + N) %N", "(x % N + N)", "x % N", "x", "N", "N", "N", "int x", "x", "int N", "N", "public static long lcm(long a,long b)\n { \n return a / gcd(a, b) * b;\n }", "lcm", "{ \n return a / gcd(a, b) * b;\n }", "return a / gcd(a, b) * b;", "a / gcd(a, b) * b", "a / gcd(a, b)", "a", "gcd(a, b)", "gcd", "a", "b", "b", "long a", "a", "long b", "b", "public static long gcd(long a,long b)\n {\n if(b==0)\n return a;\n return gcd(b,a%b);\n }", "gcd", "{\n if(b==0)\n return a;\n return gcd(b,a%b);\n }", "if(b==0)\n return a;", "b==0", "b", "0", "return a;", "a", "return gcd(b,a%b);", "gcd(b,a%b)", "gcd", "b", "a%b", "a", "b", "long a", "a", "long b", "b", "public static int inputInt()throws IOException\n {\n return sc.nextInt();\n }", "inputInt", "{\n return sc.nextInt();\n }", "return sc.nextInt();", "sc.nextInt()", "sc.nextInt", "sc", "public static long inputLong()throws IOException\n {\n return sc.nextLong();\n }", "inputLong", "{\n return sc.nextLong();\n }", "return sc.nextLong();", "sc.nextLong()", "sc.nextLong", "sc", "public static double inputDouble()throws IOException\n {\n return sc.nextDouble();\n }", "inputDouble", "{\n return sc.nextDouble();\n }", "return sc.nextDouble();", "sc.nextDouble()", "sc.nextDouble", "sc", "public static String inputString()throws IOException\n {\n return sc.readLine();\n }", "inputString", "{\n return sc.readLine();\n }", "return sc.readLine();", "sc.readLine()", "sc.readLine", "sc", "public static void print(String a)throws IOException\n {\n bw.write(a);\n }", "print", "{\n bw.write(a);\n }", "bw.write(a)", "bw.write", "bw", "a", "String a", "a", "public static void printSp(String a)throws IOException\n {\n bw.write(a+\" \");\n }", "printSp", "{\n bw.write(a+\" \");\n }", "bw.write(a+\" \")", "bw.write", "bw", "a+\" \"", "a", "\" \"", "String a", "a", "public static void println(String a)throws IOException\n {\n bw.write(a+\"\\n\");\n }", "println", "{\n bw.write(a+\"\\n\");\n }", "bw.write(a+\"\\n\")", "bw.write", "bw", "a+\"\\n\"", "a", "\"\\n\"", "String a", "a", "static class Reader \n { \n final private int BUFFER_SIZE = 1 << 16; \n private DataInputStream din; \n private byte[] buffer; \n private int bufferPointer, bytesRead;\npublic Reader() \n { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }\npublic Reader(String file_name) throws IOException \n { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }\npublic String readLine() throws IOException \n { \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n }\npublic int nextInt() throws IOException \n { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9');\nif (neg) \n return -ret; \n return ret; \n }\npublic long nextLong() throws IOException \n { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n }\npublic double nextDouble() throws IOException \n { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read();\ndo { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9');\nif (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n }\nif (neg) \n return -ret; \n return ret; \n }\nprivate void fillBuffer() throws IOException \n { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n }\nprivate byte read() throws IOException \n { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n }\npublic void close() throws IOException \n { \n if (din == null) \n return; \n din.close(); \n } \n }", "Reader", "final private int BUFFER_SIZE = 1 << 16;", "BUFFER_SIZE", "1 << 16", "1", "16", "private DataInputStream din;", "din", "private byte[] buffer;", "buffer", "private int bufferPointer", "bufferPointer", "bytesRead;", "bytesRead", "public Reader() \n { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }", "Reader", "{ \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }", "din = new DataInputStream(System.in)", "din", "new DataInputStream(System.in)", "buffer = new byte[BUFFER_SIZE]", "buffer", "new byte[BUFFER_SIZE]", "BUFFER_SIZE", "bufferPointer = bytesRead = 0", "bufferPointer", "bytesRead = 0", "bytesRead", "0", "public Reader(String file_name) throws IOException \n { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }", "Reader", "{ \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }", "din = new DataInputStream(new FileInputStream(file_name))", "din", "new DataInputStream(new FileInputStream(file_name))", "buffer = new byte[BUFFER_SIZE]", "buffer", "new byte[BUFFER_SIZE]", "BUFFER_SIZE", "bufferPointer = bytesRead = 0", "bufferPointer", "bytesRead = 0", "bytesRead", "0", "String file_name", "file_name", "public String readLine() throws IOException \n { \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n }", "readLine", "{ \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n }", "byte[] buf = new byte[64];", "buf", "new byte[64]", "64", "int cnt = 0", "cnt", "0", "c;", "c", "while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n }", "(c = read()) != -1", "(c = read())", "c", "read()", "read", "-1", "1", "{ \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n }", "if (c == '\\n') \n break;", "c == '\\n'", "c", "'\\n'", "break;", "buf[cnt++] = (byte) c", "buf[cnt++]", "buf", "cnt++", "cnt", "(byte) c", "return new String(buf, 0, cnt);", "new String(buf, 0, cnt)", "public int nextInt() throws IOException \n { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9');\nif (neg) \n return -ret; \n return ret; \n }", "nextInt", "{ \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9');\nif (neg) \n return -ret; \n return ret; \n }", "int ret = 0;", "ret", "0", "byte c = read();", "c", "read()", "read", "while (c <= ' ') \n c = read();", "c <= ' '", "c", "' '", "c = read()", "c", "read()", "read", "boolean neg = (c == '-');", "neg", "(c == '-')", "c", "'-'", "if (neg) \n c = read();", "neg", "c = read()", "c", "read()", "read", "do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9');", "(c = read()) >= '0' && c <= '9'", "(c = read()) >= '0'", "(c = read())", "c", "read()", "read", "'0'", "c <= '9'", "c", "'9'", "{ \n ret = ret * 10 + c - '0'; \n }", "ret = ret * 10 + c - '0'", "ret", "ret * 10 + c - '0'", "ret * 10 + c", "ret * 10", "ret", "10", "c", "'0'", "if (neg) \n return -ret;", "neg", "return -ret;", "-ret", "ret", "return ret;", "ret", "public long nextLong() throws IOException \n { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n }", "nextLong", "{ \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n }", "long ret = 0;", "ret", "0", "byte c = read();", "c", "read()", "read", "while (c <= ' ') \n c = read();", "c <= ' '", "c", "' '", "c = read()", "c", "read()", "read", "boolean neg = (c == '-');", "neg", "(c == '-')", "c", "'-'", "if (neg) \n c = read();", "neg", "c = read()", "c", "read()", "read", "do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9');", "(c = read()) >= '0' && c <= '9'", "(c = read()) >= '0'", "(c = read())", "c", "read()", "read", "'0'", "c <= '9'", "c", "'9'", "{ \n ret = ret * 10 + c - '0'; \n }", "ret = ret * 10 + c - '0'", "ret", "ret * 10 + c - '0'", "ret * 10 + c", "ret * 10", "ret", "10", "c", "'0'", "if (neg) \n return -ret;", "neg", "return -ret;", "-ret", "ret", "return ret;", "ret", "public double nextDouble() throws IOException \n { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read();\ndo { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9');\nif (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n }\nif (neg) \n return -ret; \n return ret; \n }", "nextDouble", "{ \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read();\ndo { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9');\nif (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n }\nif (neg) \n return -ret; \n return ret; \n }", "double ret = 0", "ret", "0", "div = 1;", "div", "1", "byte c = read();", "c", "read()", "read", "while (c <= ' ') \n c = read();", "c <= ' '", "c", "' '", "c = read()", "c", "read()", "read", "boolean neg = (c == '-');", "neg", "(c == '-')", "c", "'-'", "if (neg) \n c = read();", "neg", "c = read()", "c", "read()", "read", "do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9');", "(c = read()) >= '0' && c <= '9'", "(c = read()) >= '0'", "(c = read())", "c", "read()", "read", "'0'", "c <= '9'", "c", "'9'", "{ \n ret = ret * 10 + c - '0'; \n }", "ret = ret * 10 + c - '0'", "ret", "ret * 10 + c - '0'", "ret * 10 + c", "ret * 10", "ret", "10", "c", "'0'", "if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n }", "c == '.'", "c", "'.'", "{ \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n }", "while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n }", "(c = read()) >= '0' && c <= '9'", "(c = read()) >= '0'", "(c = read())", "c", "read()", "read", "'0'", "c <= '9'", "c", "'9'", "{ \n ret += (c - '0') / (div *= 10); \n }", "ret += (c - '0') / (div *= 10)", "ret", "(c - '0') / (div *= 10)", "(c - '0')", "c", "'0'", "(div *= 10)", "div", "10", "if (neg) \n return -ret;", "neg", "return -ret;", "-ret", "ret", "return ret;", "ret", "private void fillBuffer() throws IOException \n { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n }", "fillBuffer", "{ \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n }", "bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE)", "bytesRead", "din.read(buffer, bufferPointer = 0, BUFFER_SIZE)", "din.read", "din", "buffer", "bufferPointer = 0", "bufferPointer", "0", "BUFFER_SIZE", "if (bytesRead == -1) \n buffer[0] = -1;", "bytesRead == -1", "bytesRead", "-1", "1", "buffer[0] = -1", "buffer[0]", "buffer", "0", "-1", "1", "private byte read() throws IOException \n { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n }", "read", "{ \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n }", "if (bufferPointer == bytesRead) \n fillBuffer();", "bufferPointer == bytesRead", "bufferPointer", "bytesRead", "fillBuffer()", "fillBuffer", "return buffer[bufferPointer++];", "buffer[bufferPointer++]", "buffer", "bufferPointer++", "bufferPointer", "public void close() throws IOException \n { \n if (din == null) \n return; \n din.close(); \n }", "close", "{ \n if (din == null) \n return; \n din.close(); \n }", "if (din == null) \n return;", "din == null", "din", "null", "return;", "din.close()", "din.close", "din", "public class Main\n{\n static class Reader \n { \n final private int BUFFER_SIZE = 1 << 16; \n private DataInputStream din; \n private byte[] buffer; \n private int bufferPointer, bytesRead;\npublic Reader() \n { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }\npublic Reader(String file_name) throws IOException \n { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }\npublic String readLine() throws IOException \n { \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n }\npublic int nextInt() throws IOException \n { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9');\nif (neg) \n return -ret; \n return ret; \n }\npublic long nextLong() throws IOException \n { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n }\npublic double nextDouble() throws IOException \n { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read();\ndo { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9');\nif (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n }\nif (neg) \n return -ret; \n return ret; \n }\nprivate void fillBuffer() throws IOException \n { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n }\nprivate byte read() throws IOException \n { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n }\npublic void close() throws IOException \n { \n if (din == null) \n return; \n din.close(); \n } \n } \n\n\n\n\n \n static Reader sc=new Reader();\n static BufferedWriter bw=new BufferedWriter(new OutputStreamWriter(System.out));\n\n public static void main(String args[])throws IOException\n {\n /*\n * For integer input: int n=inputInt();\n * For long input: long n=inputLong();\n * For double input: double n=inputDouble();\n * For String input: String s=inputString();\n * Logic goes here\n * For printing without space: print(a+\"\"); where a is a variable of any datatype\n * For printing with space: printSp(a+\"\"); where a is a variable of any datatype\n * For printing with new line: println(a+\"\"); where a is a variable of any datatype\n Scanner in = new Scanner(System.in);\n //all four\n int[] dr = { 1, 0, -1, 0 };\n int[] dc = { 0, 1, 0, -1 };\n */\n \n \t\tint n=inputInt();\n\n \t\tint quo=(int)Math.ceil(n/1000.0);\n\n \t\tprintln((-n+1000*quo)+\"\");\n\n\n\n bw.flush();\n bw.close();\n\n \n\n\n \n}\n\nstatic long nCr(long n, long r) \n{ \n long ans=1;\n if(r>n-r)\n {\n \tr=n-r;\n }\n\n for(long i=1;i<=r;i++)\n {\n \tans*=(n-i+1);\n \tans/=i;\n\n }\n\n return ans;\n} \n \n\n \n\n\n\n\n public static int modulo(int x,int N)\n {\n return (x % N + N) %N;\n }\n public static long lcm(long a,long b)\n { \n return a / gcd(a, b) * b;\n }\n public static long gcd(long a,long b)\n {\n if(b==0)\n return a;\n return gcd(b,a%b);\n }\n\n public static int inputInt()throws IOException\n {\n return sc.nextInt();\n }\n public static long inputLong()throws IOException\n {\n return sc.nextLong();\n }\n public static double inputDouble()throws IOException\n {\n return sc.nextDouble();\n }\n public static String inputString()throws IOException\n {\n return sc.readLine();\n }\n public static void print(String a)throws IOException\n {\n bw.write(a);\n }\n public static void printSp(String a)throws IOException\n {\n bw.write(a+\" \");\n }\n public static void println(String a)throws IOException\n {\n bw.write(a+\"\\n\");\n }\n}", "public class Main\n{\n static class Reader \n { \n final private int BUFFER_SIZE = 1 << 16; \n private DataInputStream din; \n private byte[] buffer; \n private int bufferPointer, bytesRead;\npublic Reader() \n { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }\npublic Reader(String file_name) throws IOException \n { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }\npublic String readLine() throws IOException \n { \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n }\npublic int nextInt() throws IOException \n { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9');\nif (neg) \n return -ret; \n return ret; \n }\npublic long nextLong() throws IOException \n { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n }\npublic double nextDouble() throws IOException \n { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read();\ndo { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9');\nif (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n }\nif (neg) \n return -ret; \n return ret; \n }\nprivate void fillBuffer() throws IOException \n { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n }\nprivate byte read() throws IOException \n { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n }\npublic void close() throws IOException \n { \n if (din == null) \n return; \n din.close(); \n } \n } \n\n\n\n\n \n static Reader sc=new Reader();\n static BufferedWriter bw=new BufferedWriter(new OutputStreamWriter(System.out));\n\n public static void main(String args[])throws IOException\n {\n /*\n * For integer input: int n=inputInt();\n * For long input: long n=inputLong();\n * For double input: double n=inputDouble();\n * For String input: String s=inputString();\n * Logic goes here\n * For printing without space: print(a+\"\"); where a is a variable of any datatype\n * For printing with space: printSp(a+\"\"); where a is a variable of any datatype\n * For printing with new line: println(a+\"\"); where a is a variable of any datatype\n Scanner in = new Scanner(System.in);\n //all four\n int[] dr = { 1, 0, -1, 0 };\n int[] dc = { 0, 1, 0, -1 };\n */\n \n \t\tint n=inputInt();\n\n \t\tint quo=(int)Math.ceil(n/1000.0);\n\n \t\tprintln((-n+1000*quo)+\"\");\n\n\n\n bw.flush();\n bw.close();\n\n \n\n\n \n}\n\nstatic long nCr(long n, long r) \n{ \n long ans=1;\n if(r>n-r)\n {\n \tr=n-r;\n }\n\n for(long i=1;i<=r;i++)\n {\n \tans*=(n-i+1);\n \tans/=i;\n\n }\n\n return ans;\n} \n \n\n \n\n\n\n\n public static int modulo(int x,int N)\n {\n return (x % N + N) %N;\n }\n public static long lcm(long a,long b)\n { \n return a / gcd(a, b) * b;\n }\n public static long gcd(long a,long b)\n {\n if(b==0)\n return a;\n return gcd(b,a%b);\n }\n\n public static int inputInt()throws IOException\n {\n return sc.nextInt();\n }\n public static long inputLong()throws IOException\n {\n return sc.nextLong();\n }\n public static double inputDouble()throws IOException\n {\n return sc.nextDouble();\n }\n public static String inputString()throws IOException\n {\n return sc.readLine();\n }\n public static void print(String a)throws IOException\n {\n bw.write(a);\n }\n public static void printSp(String a)throws IOException\n {\n bw.write(a+\" \");\n }\n public static void println(String a)throws IOException\n {\n bw.write(a+\"\\n\");\n }\n}", "Main" ]
/*input 0 */ import java.math.*; import java.io.*; import java.util.*; public class Main { static class Reader { final private int BUFFER_SIZE = 1 << 16; private DataInputStream din; private byte[] buffer; private int bufferPointer, bytesRead; public Reader() { din = new DataInputStream(System.in); buffer = new byte[BUFFER_SIZE]; bufferPointer = bytesRead = 0; } public Reader(String file_name) throws IOException { din = new DataInputStream(new FileInputStream(file_name)); buffer = new byte[BUFFER_SIZE]; bufferPointer = bytesRead = 0; } public String readLine() throws IOException { byte[] buf = new byte[64]; // line length int cnt = 0, c; while ((c = read()) != -1) { if (c == '\n') break; buf[cnt++] = (byte) c; } return new String(buf, 0, cnt); } public int nextInt() throws IOException { int ret = 0; byte c = read(); while (c <= ' ') c = read(); boolean neg = (c == '-'); if (neg) c = read(); do { ret = ret * 10 + c - '0'; } while ((c = read()) >= '0' && c <= '9'); if (neg) return -ret; return ret; } public long nextLong() throws IOException { long ret = 0; byte c = read(); while (c <= ' ') c = read(); boolean neg = (c == '-'); if (neg) c = read(); do { ret = ret * 10 + c - '0'; } while ((c = read()) >= '0' && c <= '9'); if (neg) return -ret; return ret; } public double nextDouble() throws IOException { double ret = 0, div = 1; byte c = read(); while (c <= ' ') c = read(); boolean neg = (c == '-'); if (neg) c = read(); do { ret = ret * 10 + c - '0'; } while ((c = read()) >= '0' && c <= '9'); if (c == '.') { while ((c = read()) >= '0' && c <= '9') { ret += (c - '0') / (div *= 10); } } if (neg) return -ret; return ret; } private void fillBuffer() throws IOException { bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); if (bytesRead == -1) buffer[0] = -1; } private byte read() throws IOException { if (bufferPointer == bytesRead) fillBuffer(); return buffer[bufferPointer++]; } public void close() throws IOException { if (din == null) return; din.close(); } } static Reader sc=new Reader(); static BufferedWriter bw=new BufferedWriter(new OutputStreamWriter(System.out)); public static void main(String args[])throws IOException { /* * For integer input: int n=inputInt(); * For long input: long n=inputLong(); * For double input: double n=inputDouble(); * For String input: String s=inputString(); * Logic goes here * For printing without space: print(a+""); where a is a variable of any datatype * For printing with space: printSp(a+""); where a is a variable of any datatype * For printing with new line: println(a+""); where a is a variable of any datatype Scanner in = new Scanner(System.in); //all four int[] dr = { 1, 0, -1, 0 }; int[] dc = { 0, 1, 0, -1 }; */ int n=inputInt(); int quo=(int)Math.ceil(n/1000.0); println((-n+1000*quo)+""); bw.flush(); bw.close(); } static long nCr(long n, long r) { long ans=1; if(r>n-r) { r=n-r; } for(long i=1;i<=r;i++) { ans*=(n-i+1); ans/=i; } return ans; } public static int modulo(int x,int N) { return (x % N + N) %N; } public static long lcm(long a,long b) { return a / gcd(a, b) * b; } public static long gcd(long a,long b) { if(b==0) return a; return gcd(b,a%b); } public static int inputInt()throws IOException { return sc.nextInt(); } public static long inputLong()throws IOException { return sc.nextLong(); } public static double inputDouble()throws IOException { return sc.nextDouble(); } public static String inputString()throws IOException { return sc.readLine(); } public static void print(String a)throws IOException { bw.write(a); } public static void printSp(String a)throws IOException { bw.write(a+" "); } public static void println(String a)throws IOException { bw.write(a+"\n"); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 41, 13, 17, 41, 13, 17, 41, 13, 13, 41, 13, 17, 41, 13, 41, 13, 12, 13, 30, 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, 12, 13, 30, 14, 2, 13, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 20, 4, 18, 18, 13, 13, 17, 30, 0, 13, 18, 13, 13, 0, 13, 20, 0, 13, 20, 4, 13, 12, 13, 30, 4, 18, 20, 23, 13, 6, 13, 41, 13, 41, 13, 20, 17, 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, 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, 29, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 40, 17, 23, 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, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 13, 13, 29, 13, 23, 13, 23, 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, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 13, 13, 29, 13, 23, 13, 23, 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, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 13, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 4, 13, 42, 4, 13, 13, 0, 13, 4, 13, 41, 13, 20, 42, 40, 4, 13, 13, 30, 4, 18, 13, 13, 0, 13, 4, 13, 29, 4, 18, 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, 4, 13, 42, 4, 13, 13, 0, 13, 4, 13, 41, 13, 20, 42, 40, 4, 13, 13, 30, 4, 18, 13, 13, 0, 13, 4, 13, 29, 4, 18, 13, 12, 13, 30, 41, 13, 20, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 18, 13, 13, 13, 4, 13, 29, 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 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 593, 20 ], [ 593, 21 ], [ 21, 22 ], [ 593, 23 ], [ 23, 24 ], [ 23, 25 ], [ 593, 26 ], [ 26, 27 ], [ 26, 28 ], [ 593, 29 ], [ 29, 30 ], [ 29, 31 ], [ 593, 32 ], [ 32, 33 ], [ 32, 34 ], [ 593, 35 ], [ 35, 36 ], [ 593, 37 ], [ 37, 38 ], [ 593, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 41, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 47, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 47, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 68, 70 ], [ 593, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 79, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 78, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 90, 95 ], [ 74, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 99, 101 ], [ 73, 102 ], [ 102, 103 ], [ 102, 104 ], [ 73, 105 ], [ 105, 106 ], [ 105, 107 ], [ 73, 108 ], [ 108, 109 ], [ 593, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 110, 116 ], [ 116, 117 ], [ 0, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 118, 122 ], [ 122, 123 ], [ 122, 124 ], [ 118, 126 ], [ 126, 127 ], [ 118, 128 ], [ 128, 129 ], [ 118, 130 ], [ 130, 131 ], [ 130, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 133, 137 ], [ 130, 138 ], [ 138, 139 ], [ 118, 140 ], [ 140, 141 ], [ 140, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 146, 147 ], [ 143, 148 ], [ 148, 149 ], [ 142, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 150, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 154, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 161, 162 ], [ 162, 163 ], [ 158, 164 ], [ 164, 165 ], [ 165, 166 ], [ 165, 167 ], [ 167, 168 ], [ 168, 169 ], [ 167, 170 ], [ 154, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 171, 175 ], [ 175, 176 ], [ 176, 177 ], [ 142, 178 ], [ 178, 179 ], [ 179, 180 ], [ 179, 181 ], [ 181, 182 ], [ 118, 183 ], [ 183, 184 ], [ 183, 185 ], [ 185, 186 ], [ 186, 187 ], [ 190, 188 ], [ 200, 189 ], [ 197, 190 ], [ 190, 191 ], [ 191, 192 ], [ 191, 193 ], [ 190, 194 ], [ 194, 195 ], [ 194, 196 ], [ 197, 197 ], [ 197, 198 ], [ 197, 199 ], [ 200, 200 ], [ 200, 201 ], [ 200, 202 ], [ 190, 203 ], [ 203, 204 ], [ 203, 205 ], [ 205, 206 ], [ 183, 207 ], [ 207, 208 ], [ 118, 209 ], [ 209, 210 ], [ 209, 211 ], [ 211, 212 ], [ 212, 213 ], [ 214, 214 ], [ 214, 215 ], [ 215, 216 ], [ 215, 217 ], [ 214, 218 ], [ 218, 219 ], [ 218, 220 ], [ 214, 221 ], [ 221, 222 ], [ 221, 223 ], [ 223, 224 ], [ 209, 225 ], [ 225, 226 ], [ 118, 227 ], [ 227, 228 ], [ 227, 229 ], [ 229, 230 ], [ 230, 231 ], [ 231, 232 ], [ 232, 233 ], [ 231, 234 ], [ 234, 235 ], [ 118, 236 ], [ 236, 237 ], [ 236, 238 ], [ 238, 239 ], [ 239, 240 ], [ 239, 241 ], [ 238, 243 ], [ 243, 244 ], [ 244, 245 ], [ 245, 246 ], [ 245, 247 ], [ 243, 248 ], [ 248, 249 ], [ 248, 250 ], [ 243, 251 ], [ 251, 252 ], [ 252, 253 ], [ 243, 254 ], [ 254, 255 ], [ 255, 256 ], [ 256, 257 ], [ 256, 258 ], [ 255, 259 ], [ 259, 260 ], [ 238, 261 ], [ 261, 262 ], [ 236, 263 ], [ 263, 264 ], [ 118, 265 ], [ 265, 266 ], [ 265, 267 ], [ 267, 268 ], [ 268, 269 ], [ 268, 270 ], [ 267, 273 ], [ 273, 274 ], [ 274, 275 ], [ 275, 276 ], [ 275, 277 ], [ 273, 278 ], [ 278, 279 ], [ 278, 280 ], [ 273, 281 ], [ 281, 282 ], [ 282, 283 ], [ 273, 284 ], [ 285, 285 ], [ 285, 286 ], [ 286, 287 ], [ 287, 288 ], [ 287, 289 ], [ 286, 290 ], [ 290, 291 ], [ 290, 292 ], [ 267, 293 ], [ 293, 294 ], [ 265, 295 ], [ 295, 296 ], [ 265, 297 ], [ 297, 298 ], [ 118, 299 ], [ 299, 300 ], [ 299, 301 ], [ 301, 302 ], [ 302, 303 ], [ 303, 304 ], [ 304, 305 ], [ 303, 306 ], [ 306, 307 ], [ 118, 308 ], [ 308, 309 ], [ 308, 310 ], [ 310, 311 ], [ 311, 312 ], [ 311, 313 ], [ 310, 315 ], [ 315, 316 ], [ 316, 317 ], [ 317, 318 ], [ 317, 319 ], [ 315, 320 ], [ 320, 321 ], [ 320, 322 ], [ 315, 323 ], [ 323, 324 ], [ 324, 325 ], [ 315, 326 ], [ 326, 327 ], [ 327, 328 ], [ 328, 329 ], [ 328, 330 ], [ 327, 331 ], [ 331, 332 ], [ 310, 333 ], [ 333, 334 ], [ 308, 335 ], [ 335, 336 ], [ 118, 337 ], [ 337, 338 ], [ 337, 339 ], [ 339, 340 ], [ 340, 341 ], [ 340, 342 ], [ 339, 345 ], [ 345, 346 ], [ 346, 347 ], [ 347, 348 ], [ 347, 349 ], [ 345, 350 ], [ 350, 351 ], [ 350, 352 ], [ 345, 353 ], [ 353, 354 ], [ 354, 355 ], [ 345, 356 ], [ 357, 357 ], [ 357, 358 ], [ 358, 359 ], [ 359, 360 ], [ 359, 361 ], [ 358, 362 ], [ 362, 363 ], [ 362, 364 ], [ 339, 365 ], [ 365, 366 ], [ 337, 367 ], [ 367, 368 ], [ 337, 369 ], [ 369, 370 ], [ 118, 371 ], [ 371, 372 ], [ 371, 373 ], [ 373, 374 ], [ 374, 375 ], [ 375, 376 ], [ 376, 377 ], [ 375, 378 ], [ 378, 379 ], [ 118, 380 ], [ 380, 381 ], [ 380, 382 ], [ 382, 383 ], [ 383, 384 ], [ 383, 385 ], [ 382, 387 ], [ 387, 388 ], [ 388, 389 ], [ 389, 390 ], [ 389, 391 ], [ 387, 392 ], [ 392, 393 ], [ 392, 394 ], [ 387, 395 ], [ 395, 396 ], [ 396, 397 ], [ 387, 398 ], [ 398, 399 ], [ 399, 400 ], [ 400, 401 ], [ 400, 402 ], [ 399, 403 ], [ 403, 404 ], [ 382, 405 ], [ 405, 406 ], [ 380, 407 ], [ 407, 408 ], [ 118, 409 ], [ 409, 410 ], [ 409, 411 ], [ 411, 412 ], [ 412, 413 ], [ 412, 414 ], [ 411, 417 ], [ 417, 418 ], [ 418, 419 ], [ 419, 420 ], [ 419, 421 ], [ 417, 422 ], [ 422, 423 ], [ 422, 424 ], [ 417, 425 ], [ 425, 426 ], [ 426, 427 ], [ 417, 428 ], [ 429, 429 ], [ 429, 430 ], [ 430, 431 ], [ 431, 432 ], [ 431, 433 ], [ 430, 434 ], [ 434, 435 ], [ 434, 436 ], [ 411, 437 ], [ 437, 438 ], [ 409, 439 ], [ 439, 440 ], [ 409, 441 ], [ 441, 442 ], [ 118, 443 ], [ 443, 444 ], [ 443, 445 ], [ 445, 446 ], [ 446, 447 ], [ 446, 448 ], [ 448, 449 ], [ 445, 450 ], [ 450, 451 ], [ 451, 452 ], [ 451, 453 ], [ 450, 454 ], [ 454, 455 ], [ 454, 456 ], [ 456, 457 ], [ 445, 458 ], [ 458, 459 ], [ 458, 460 ], [ 445, 461 ], [ 461, 462 ], [ 462, 463 ], [ 463, 464 ], [ 463, 465 ], [ 461, 466 ], [ 466, 467 ], [ 467, 468 ], [ 468, 469 ], [ 467, 470 ], [ 466, 471 ], [ 471, 472 ], [ 471, 473 ], [ 473, 474 ], [ 445, 475 ], [ 475, 476 ], [ 476, 477 ], [ 477, 478 ], [ 118, 479 ], [ 479, 480 ], [ 479, 481 ], [ 481, 482 ], [ 482, 483 ], [ 482, 484 ], [ 481, 486 ], [ 486, 487 ], [ 487, 488 ], [ 488, 489 ], [ 488, 490 ], [ 486, 491 ], [ 491, 492 ], [ 491, 493 ], [ 486, 494 ], [ 494, 495 ], [ 495, 496 ], [ 486, 497 ], [ 497, 498 ], [ 498, 499 ], [ 499, 500 ], [ 499, 501 ], [ 498, 502 ], [ 502, 503 ], [ 481, 504 ], [ 504, 505 ], [ 479, 506 ], [ 506, 507 ], [ 118, 508 ], [ 508, 509 ], [ 508, 510 ], [ 510, 511 ], [ 511, 512 ], [ 511, 513 ], [ 513, 514 ], [ 510, 515 ], [ 515, 516 ], [ 516, 517 ], [ 516, 518 ], [ 515, 519 ], [ 519, 520 ], [ 519, 521 ], [ 521, 522 ], [ 510, 523 ], [ 523, 524 ], [ 523, 525 ], [ 510, 526 ], [ 526, 527 ], [ 527, 528 ], [ 528, 529 ], [ 528, 530 ], [ 526, 531 ], [ 531, 532 ], [ 532, 533 ], [ 533, 534 ], [ 532, 535 ], [ 531, 536 ], [ 536, 537 ], [ 536, 538 ], [ 538, 539 ], [ 510, 540 ], [ 540, 541 ], [ 541, 542 ], [ 542, 543 ], [ 118, 544 ], [ 544, 545 ], [ 544, 546 ], [ 546, 547 ], [ 547, 548 ], [ 547, 549 ], [ 546, 552 ], [ 552, 553 ], [ 553, 554 ], [ 554, 555 ], [ 554, 556 ], [ 552, 557 ], [ 557, 558 ], [ 557, 559 ], [ 552, 560 ], [ 560, 561 ], [ 561, 562 ], [ 552, 563 ], [ 564, 564 ], [ 564, 565 ], [ 565, 566 ], [ 566, 567 ], [ 567, 568 ], [ 567, 569 ], [ 565, 570 ], [ 570, 571 ], [ 570, 572 ], [ 565, 573 ], [ 573, 574 ], [ 574, 575 ], [ 565, 576 ], [ 577, 577 ], [ 577, 578 ], [ 578, 579 ], [ 579, 580 ], [ 580, 581 ], [ 580, 582 ], [ 579, 583 ], [ 578, 584 ], [ 584, 585 ], [ 546, 586 ], [ 586, 587 ], [ 544, 588 ], [ 588, 589 ], [ 544, 590 ], [ 590, 591 ], [ 0, 592 ], [ 592, 593 ], [ 592, 594 ] ]
[ "import java.io.IOException;\nimport java.io.FileInputStream;\nimport java.util.InputMismatchException;\nimport java.io.FileNotFoundException;\nimport java.io.PrintWriter;\nimport java.io.InputStream;\n\npublic class Main {\n InputStream is;\n\n int __t__ = 1;\n int __f__ = 0;\n int __FILE_DEBUG_FLAG__ = __f__;\n String __DEBUG_FILE_NAME__ = \"src/main/java/F6\";\n\n FastScanner in;\n PrintWriter out;\n\n public void solve() {\n int n = in.nextInt();\n if (n % 1000 == 0) {\n System.out.println(\"0\");\n } else {\n System.out.println(1000 - n % 1000);\n }\n }\n\n public void run() {\n if (__FILE_DEBUG_FLAG__ == __t__) {\n try {\n is = new FileInputStream(__DEBUG_FILE_NAME__);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n System.out.println(\"FILE_INPUT!\");\n } else {\n is = System.in;\n }\n in = new FastScanner(is);\n out = new PrintWriter(System.out);\n\n solve();\n }\n\n public static void main(final String[] args) {\n new Main().run();\n }\n}\n\n\nclass FastScanner {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n\n public FastScanner(InputStream stream) {\n this.stream = stream;\n // stream = new FileInputStream(new File(\"dec.in\"));\n }\n\n int read() {\n if (numChars == -1)\n 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)\n return -1;\n }\n return buf[curChar++];\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public boolean isEndline(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public int[] nextIntArray(int n) {\n int[] array = new int[n];\n for (int i = 0; i < n; i++)\n array[i] = nextInt();\n\n return array;\n }\n\n public int[][] nextIntMap(int n, int m) {\n int[][] map = new int[n][m];\n for (int i = 0; i < n; i++) {\n map[i] = nextIntArray(m);\n }\n return map;\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public long[] nextLongArray(int n) {\n long[] array = new long[n];\n for (int i = 0; i < n; i++)\n array[i] = nextLong();\n\n return array;\n }\n\n public long[][] nextLongMap(int n, int m) {\n long[][] map = new long[n][m];\n for (int i = 0; i < n; i++) {\n map[i] = nextLongArray(m);\n }\n return map;\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public double[] nextDoubleArray(int n) {\n double[] array = new double[n];\n for (int i = 0; i < n; i++)\n array[i] = nextDouble();\n\n return array;\n }\n\n public double[][] nextDoubleMap(int n, int m) {\n double[][] map = new double[n][m];\n for (int i = 0; i < n; i++) {\n map[i] = nextDoubleArray(m);\n }\n return map;\n }\n\n public String next() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public String[] nextStringArray(int n) {\n String[] array = new String[n];\n for (int i = 0; i < n; i++)\n array[i] = next();\n\n return array;\n }\n\n public String nextLine() {\n int c = read();\n while (isEndline(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndline(c));\n return res.toString();\n }\n\n public int[][] nextPackedIntArrays(int packN, int size) {\n int[][] res = new int[packN][size];\n for (int i = 0; i < size; i++) {\n for (int j = 0; j < packN; j++) {\n res[j][i] = nextInt();\n }\n }\n return res;\n }\n}", "import java.io.IOException;", "IOException", "java.io", "import java.io.FileInputStream;", "FileInputStream", "java.io", "import java.util.InputMismatchException;", "InputMismatchException", "java.util", "import java.io.FileNotFoundException;", "FileNotFoundException", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "public class Main {\n InputStream is;\n\n int __t__ = 1;\n int __f__ = 0;\n int __FILE_DEBUG_FLAG__ = __f__;\n String __DEBUG_FILE_NAME__ = \"src/main/java/F6\";\n\n FastScanner in;\n PrintWriter out;\n\n public void solve() {\n int n = in.nextInt();\n if (n % 1000 == 0) {\n System.out.println(\"0\");\n } else {\n System.out.println(1000 - n % 1000);\n }\n }\n\n public void run() {\n if (__FILE_DEBUG_FLAG__ == __t__) {\n try {\n is = new FileInputStream(__DEBUG_FILE_NAME__);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n System.out.println(\"FILE_INPUT!\");\n } else {\n is = System.in;\n }\n in = new FastScanner(is);\n out = new PrintWriter(System.out);\n\n solve();\n }\n\n public static void main(final String[] args) {\n new Main().run();\n }\n}", "Main", "InputStream is;", "is", "int __t__ = 1;", "__t__", "1", "int __f__ = 0;", "__f__", "0", "int __FILE_DEBUG_FLAG__ = __f__;", "__FILE_DEBUG_FLAG__", "__f__", "String __DEBUG_FILE_NAME__ = \"src/main/java/F6\";", "__DEBUG_FILE_NAME__", "\"src/main/java/F6\"", "FastScanner in;", "in", "PrintWriter out;", "out", "public void solve() {\n int n = in.nextInt();\n if (n % 1000 == 0) {\n System.out.println(\"0\");\n } else {\n System.out.println(1000 - n % 1000);\n }\n }", "solve", "{\n int n = in.nextInt();\n if (n % 1000 == 0) {\n System.out.println(\"0\");\n } else {\n System.out.println(1000 - n % 1000);\n }\n }", "int n = in.nextInt();", "n", "in.nextInt()", "in.nextInt", "in", "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", "public void run() {\n if (__FILE_DEBUG_FLAG__ == __t__) {\n try {\n is = new FileInputStream(__DEBUG_FILE_NAME__);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n System.out.println(\"FILE_INPUT!\");\n } else {\n is = System.in;\n }\n in = new FastScanner(is);\n out = new PrintWriter(System.out);\n\n solve();\n }", "run", "{\n if (__FILE_DEBUG_FLAG__ == __t__) {\n try {\n is = new FileInputStream(__DEBUG_FILE_NAME__);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n System.out.println(\"FILE_INPUT!\");\n } else {\n is = System.in;\n }\n in = new FastScanner(is);\n out = new PrintWriter(System.out);\n\n solve();\n }", "if (__FILE_DEBUG_FLAG__ == __t__) {\n try {\n is = new FileInputStream(__DEBUG_FILE_NAME__);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n System.out.println(\"FILE_INPUT!\");\n } else {\n is = System.in;\n }", "__FILE_DEBUG_FLAG__ == __t__", "__FILE_DEBUG_FLAG__", "__t__", "{\n try {\n is = new FileInputStream(__DEBUG_FILE_NAME__);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n System.out.println(\"FILE_INPUT!\");\n }", "try {\n is = new FileInputStream(__DEBUG_FILE_NAME__);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }", "catch (FileNotFoundException e) {\n e.printStackTrace();\n }", "FileNotFoundException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n is = new FileInputStream(__DEBUG_FILE_NAME__);\n }", "is = new FileInputStream(__DEBUG_FILE_NAME__)", "is", "new FileInputStream(__DEBUG_FILE_NAME__)", "System.out.println(\"FILE_INPUT!\")", "System.out.println", "System.out", "System", "System.out", "\"FILE_INPUT!\"", "{\n is = System.in;\n }", "is = System.in", "is", "System.in", "System", "System.in", "in = new FastScanner(is)", "in", "new FastScanner(is)", "out = new PrintWriter(System.out)", "out", "new PrintWriter(System.out)", "solve()", "solve", "public static void main(final String[] args) {\n new Main().run();\n }", "main", "{\n new Main().run();\n }", "new Main().run()", "new Main().run", "new Main()", "final String[] args", "args", "class FastScanner {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n\n public FastScanner(InputStream stream) {\n this.stream = stream;\n // stream = new FileInputStream(new File(\"dec.in\"));\n }\n\n int read() {\n if (numChars == -1)\n 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)\n return -1;\n }\n return buf[curChar++];\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public boolean isEndline(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public int[] nextIntArray(int n) {\n int[] array = new int[n];\n for (int i = 0; i < n; i++)\n array[i] = nextInt();\n\n return array;\n }\n\n public int[][] nextIntMap(int n, int m) {\n int[][] map = new int[n][m];\n for (int i = 0; i < n; i++) {\n map[i] = nextIntArray(m);\n }\n return map;\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public long[] nextLongArray(int n) {\n long[] array = new long[n];\n for (int i = 0; i < n; i++)\n array[i] = nextLong();\n\n return array;\n }\n\n public long[][] nextLongMap(int n, int m) {\n long[][] map = new long[n][m];\n for (int i = 0; i < n; i++) {\n map[i] = nextLongArray(m);\n }\n return map;\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public double[] nextDoubleArray(int n) {\n double[] array = new double[n];\n for (int i = 0; i < n; i++)\n array[i] = nextDouble();\n\n return array;\n }\n\n public double[][] nextDoubleMap(int n, int m) {\n double[][] map = new double[n][m];\n for (int i = 0; i < n; i++) {\n map[i] = nextDoubleArray(m);\n }\n return map;\n }\n\n public String next() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public String[] nextStringArray(int n) {\n String[] array = new String[n];\n for (int i = 0; i < n; i++)\n array[i] = next();\n\n return array;\n }\n\n public String nextLine() {\n int c = read();\n while (isEndline(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndline(c));\n return res.toString();\n }\n\n public int[][] nextPackedIntArrays(int packN, int size) {\n int[][] res = new int[packN][size];\n for (int i = 0; i < size; i++) {\n for (int j = 0; j < packN; j++) {\n res[j][i] = nextInt();\n }\n }\n return res;\n }\n}", "FastScanner", "private InputStream stream;", "stream", "private byte[] buf = new byte[1024];", "buf", "new byte[1024]", "1024", "private int curChar;", "curChar", "private int numChars;", "numChars", "public FastScanner(InputStream stream) {\n this.stream = stream;\n // stream = new FileInputStream(new File(\"dec.in\"));\n }", "FastScanner", "{\n this.stream = stream;\n // stream = new FileInputStream(new File(\"dec.in\"));\n }", "this.stream = stream", "this.stream", "this", "this.stream", "stream", "InputStream stream", "stream", "int read() {\n if (numChars == -1)\n 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)\n return -1;\n }\n return buf[curChar++];\n }", "read", "{\n if (numChars == -1)\n 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)\n return -1;\n }\n return buf[curChar++];\n }", "if (numChars == -1)\n 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)\n 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)\n 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)\n return -1;", "numChars <= 0", "numChars", "0", "return -1;", "-1", "1", "return buf[curChar++];", "buf[curChar++]", "buf", "curChar++", "curChar", "public 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 boolean isEndline(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }", "isEndline", "{\n return c == '\\n' || c == '\\r' || c == -1;\n }", "return c == '\\n' || c == '\\r' || c == -1;", "c == '\\n' || c == '\\r' || c == -1", "c == '\\n' || c == '\\r' || c == -1", "c == '\\n'", "c", "'\\n'", "c == '\\r'", "c", "'\\r'", "c == -1", "c", "-1", "1", "int c", "c", "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 int[] nextIntArray(int n) {\n int[] array = new int[n];\n for (int i = 0; i < n; i++)\n array[i] = nextInt();\n\n return array;\n }", "nextIntArray", "{\n int[] array = new int[n];\n for (int i = 0; i < n; i++)\n array[i] = nextInt();\n\n return array;\n }", "int[] array = new int[n];", "array", "new int[n]", "n", "for (int i = 0; i < n; i++)\n array[i] = nextInt();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "array[i] = nextInt();", "array[i] = nextInt()", "array[i]", "array", "i", "nextInt()", "nextInt", "return array;", "array", "int n", "n", "public int[][] nextIntMap(int n, int m) {\n int[][] map = new int[n][m];\n for (int i = 0; i < n; i++) {\n map[i] = nextIntArray(m);\n }\n return map;\n }", "nextIntMap", "{\n int[][] map = new int[n][m];\n for (int i = 0; i < n; i++) {\n map[i] = nextIntArray(m);\n }\n return map;\n }", "int[][] map = new int[n][m];", "map", "new int[n][m]", "n", "m", "for (int i = 0; i < n; i++) {\n map[i] = nextIntArray(m);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n map[i] = nextIntArray(m);\n }", "{\n map[i] = nextIntArray(m);\n }", "map[i] = nextIntArray(m)", "map[i]", "map", "i", "nextIntArray(m)", "nextIntArray", "m", "return map;", "map", "int n", "n", "int m", "m", "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 long[] nextLongArray(int n) {\n long[] array = new long[n];\n for (int i = 0; i < n; i++)\n array[i] = nextLong();\n\n return array;\n }", "nextLongArray", "{\n long[] array = new long[n];\n for (int i = 0; i < n; i++)\n array[i] = nextLong();\n\n return array;\n }", "long[] array = new long[n];", "array", "new long[n]", "n", "for (int i = 0; i < n; i++)\n array[i] = nextLong();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "array[i] = nextLong();", "array[i] = nextLong()", "array[i]", "array", "i", "nextLong()", "nextLong", "return array;", "array", "int n", "n", "public long[][] nextLongMap(int n, int m) {\n long[][] map = new long[n][m];\n for (int i = 0; i < n; i++) {\n map[i] = nextLongArray(m);\n }\n return map;\n }", "nextLongMap", "{\n long[][] map = new long[n][m];\n for (int i = 0; i < n; i++) {\n map[i] = nextLongArray(m);\n }\n return map;\n }", "long[][] map = new long[n][m];", "map", "new long[n][m]", "n", "m", "for (int i = 0; i < n; i++) {\n map[i] = nextLongArray(m);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n map[i] = nextLongArray(m);\n }", "{\n map[i] = nextLongArray(m);\n }", "map[i] = nextLongArray(m)", "map[i]", "map", "i", "nextLongArray(m)", "nextLongArray", "m", "return map;", "map", "int n", "n", "int m", "m", "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 double[] nextDoubleArray(int n) {\n double[] array = new double[n];\n for (int i = 0; i < n; i++)\n array[i] = nextDouble();\n\n return array;\n }", "nextDoubleArray", "{\n double[] array = new double[n];\n for (int i = 0; i < n; i++)\n array[i] = nextDouble();\n\n return array;\n }", "double[] array = new double[n];", "array", "new double[n]", "n", "for (int i = 0; i < n; i++)\n array[i] = nextDouble();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "array[i] = nextDouble();", "array[i] = nextDouble()", "array[i]", "array", "i", "nextDouble()", "nextDouble", "return array;", "array", "int n", "n", "public double[][] nextDoubleMap(int n, int m) {\n double[][] map = new double[n][m];\n for (int i = 0; i < n; i++) {\n map[i] = nextDoubleArray(m);\n }\n return map;\n }", "nextDoubleMap", "{\n double[][] map = new double[n][m];\n for (int i = 0; i < n; i++) {\n map[i] = nextDoubleArray(m);\n }\n return map;\n }", "double[][] map = new double[n][m];", "map", "new double[n][m]", "n", "m", "for (int i = 0; i < n; i++) {\n map[i] = nextDoubleArray(m);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n map[i] = nextDoubleArray(m);\n }", "{\n map[i] = nextDoubleArray(m);\n }", "map[i] = nextDoubleArray(m)", "map[i]", "map", "i", "nextDoubleArray(m)", "nextDoubleArray", "m", "return map;", "map", "int n", "n", "int m", "m", "public String next() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }", "next", "{\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }", "int c = read();", "c", "read()", "read", "while (isSpaceChar(c))\n c = read();", "isSpaceChar(c)", "isSpaceChar", "c", "c = read()", "c", "read()", "read", "StringBuilder res = new StringBuilder();", "res", "new StringBuilder()", "do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));", "!isSpaceChar(c)", "isSpaceChar(c)", "isSpaceChar", "c", "{\n res.appendCodePoint(c);\n c = read();\n }", "res.appendCodePoint(c)", "res.appendCodePoint", "res", "c", "c = read()", "c", "read()", "read", "return res.toString();", "res.toString()", "res.toString", "res", "public String[] nextStringArray(int n) {\n String[] array = new String[n];\n for (int i = 0; i < n; i++)\n array[i] = next();\n\n return array;\n }", "nextStringArray", "{\n String[] array = new String[n];\n for (int i = 0; i < n; i++)\n array[i] = next();\n\n return array;\n }", "String[] array = new String[n];", "array", "new String[n]", "n", "for (int i = 0; i < n; i++)\n array[i] = next();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "array[i] = next();", "array[i] = next()", "array[i]", "array", "i", "next()", "next", "return array;", "array", "int n", "n", "public String nextLine() {\n int c = read();\n while (isEndline(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndline(c));\n return res.toString();\n }", "nextLine", "{\n int c = read();\n while (isEndline(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndline(c));\n return res.toString();\n }", "int c = read();", "c", "read()", "read", "while (isEndline(c))\n c = read();", "isEndline(c)", "isEndline", "c", "c = read()", "c", "read()", "read", "StringBuilder res = new StringBuilder();", "res", "new StringBuilder()", "do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndline(c));", "!isEndline(c)", "isEndline(c)", "isEndline", "c", "{\n res.appendCodePoint(c);\n c = read();\n }", "res.appendCodePoint(c)", "res.appendCodePoint", "res", "c", "c = read()", "c", "read()", "read", "return res.toString();", "res.toString()", "res.toString", "res", "public int[][] nextPackedIntArrays(int packN, int size) {\n int[][] res = new int[packN][size];\n for (int i = 0; i < size; i++) {\n for (int j = 0; j < packN; j++) {\n res[j][i] = nextInt();\n }\n }\n return res;\n }", "nextPackedIntArrays", "{\n int[][] res = new int[packN][size];\n for (int i = 0; i < size; i++) {\n for (int j = 0; j < packN; j++) {\n res[j][i] = nextInt();\n }\n }\n return res;\n }", "int[][] res = new int[packN][size];", "res", "new int[packN][size]", "packN", "size", "for (int i = 0; i < size; i++) {\n for (int j = 0; j < packN; j++) {\n res[j][i] = nextInt();\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < size", "i", "size", "i++", "i++", "i", "{\n for (int j = 0; j < packN; j++) {\n res[j][i] = nextInt();\n }\n }", "{\n for (int j = 0; j < packN; j++) {\n res[j][i] = nextInt();\n }\n }", "for (int j = 0; j < packN; j++) {\n res[j][i] = nextInt();\n }", "int j = 0;", "int j = 0;", "j", "0", "j < packN", "j", "packN", "j++", "j++", "j", "{\n res[j][i] = nextInt();\n }", "{\n res[j][i] = nextInt();\n }", "res[j][i] = nextInt()", "res[j][i]", "res[j]", "res", "j", "i", "nextInt()", "nextInt", "return res;", "res", "int packN", "packN", "int size", "size", "public class Main {\n InputStream is;\n\n int __t__ = 1;\n int __f__ = 0;\n int __FILE_DEBUG_FLAG__ = __f__;\n String __DEBUG_FILE_NAME__ = \"src/main/java/F6\";\n\n FastScanner in;\n PrintWriter out;\n\n public void solve() {\n int n = in.nextInt();\n if (n % 1000 == 0) {\n System.out.println(\"0\");\n } else {\n System.out.println(1000 - n % 1000);\n }\n }\n\n public void run() {\n if (__FILE_DEBUG_FLAG__ == __t__) {\n try {\n is = new FileInputStream(__DEBUG_FILE_NAME__);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n System.out.println(\"FILE_INPUT!\");\n } else {\n is = System.in;\n }\n in = new FastScanner(is);\n out = new PrintWriter(System.out);\n\n solve();\n }\n\n public static void main(final String[] args) {\n new Main().run();\n }\n}", "public class Main {\n InputStream is;\n\n int __t__ = 1;\n int __f__ = 0;\n int __FILE_DEBUG_FLAG__ = __f__;\n String __DEBUG_FILE_NAME__ = \"src/main/java/F6\";\n\n FastScanner in;\n PrintWriter out;\n\n public void solve() {\n int n = in.nextInt();\n if (n % 1000 == 0) {\n System.out.println(\"0\");\n } else {\n System.out.println(1000 - n % 1000);\n }\n }\n\n public void run() {\n if (__FILE_DEBUG_FLAG__ == __t__) {\n try {\n is = new FileInputStream(__DEBUG_FILE_NAME__);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n System.out.println(\"FILE_INPUT!\");\n } else {\n is = System.in;\n }\n in = new FastScanner(is);\n out = new PrintWriter(System.out);\n\n solve();\n }\n\n public static void main(final String[] args) {\n new Main().run();\n }\n}", "Main" ]
import java.io.IOException; import java.io.FileInputStream; import java.util.InputMismatchException; import java.io.FileNotFoundException; import java.io.PrintWriter; import java.io.InputStream; public class Main { InputStream is; int __t__ = 1; int __f__ = 0; int __FILE_DEBUG_FLAG__ = __f__; String __DEBUG_FILE_NAME__ = "src/main/java/F6"; FastScanner in; PrintWriter out; public void solve() { int n = in.nextInt(); if (n % 1000 == 0) { System.out.println("0"); } else { System.out.println(1000 - n % 1000); } } public void run() { if (__FILE_DEBUG_FLAG__ == __t__) { try { is = new FileInputStream(__DEBUG_FILE_NAME__); } catch (FileNotFoundException e) { e.printStackTrace(); } System.out.println("FILE_INPUT!"); } else { is = System.in; } in = new FastScanner(is); out = new PrintWriter(System.out); solve(); } public static void main(final String[] args) { new Main().run(); } } class FastScanner { private InputStream stream; private byte[] buf = new byte[1024]; private int curChar; private int numChars; public FastScanner(InputStream stream) { this.stream = stream; // stream = new FileInputStream(new File("dec.in")); } 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 boolean isSpaceChar(int c) { return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1; } public boolean isEndline(int c) { return c == '\n' || c == '\r' || c == -1; } public int nextInt() { return Integer.parseInt(next()); } public int[] nextIntArray(int n) { int[] array = new int[n]; for (int i = 0; i < n; i++) array[i] = nextInt(); return array; } public int[][] nextIntMap(int n, int m) { int[][] map = new int[n][m]; for (int i = 0; i < n; i++) { map[i] = nextIntArray(m); } return map; } public long nextLong() { return Long.parseLong(next()); } public long[] nextLongArray(int n) { long[] array = new long[n]; for (int i = 0; i < n; i++) array[i] = nextLong(); return array; } public long[][] nextLongMap(int n, int m) { long[][] map = new long[n][m]; for (int i = 0; i < n; i++) { map[i] = nextLongArray(m); } return map; } public double nextDouble() { return Double.parseDouble(next()); } public double[] nextDoubleArray(int n) { double[] array = new double[n]; for (int i = 0; i < n; i++) array[i] = nextDouble(); return array; } public double[][] nextDoubleMap(int n, int m) { double[][] map = new double[n][m]; for (int i = 0; i < n; i++) { map[i] = nextDoubleArray(m); } return map; } public String next() { int c = read(); while (isSpaceChar(c)) c = read(); StringBuilder res = new StringBuilder(); do { res.appendCodePoint(c); c = read(); } while (!isSpaceChar(c)); return res.toString(); } public String[] nextStringArray(int n) { String[] array = new String[n]; for (int i = 0; i < n; i++) array[i] = next(); return array; } public String nextLine() { int c = read(); while (isEndline(c)) c = read(); StringBuilder res = new StringBuilder(); do { res.appendCodePoint(c); c = read(); } while (!isEndline(c)); return res.toString(); } public int[][] nextPackedIntArrays(int packN, int size) { int[][] res = new int[packN][size]; for (int i = 0; i < size; i++) { for (int j = 0; j < packN; j++) { res[j][i] = nextInt(); } } return res; } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 18, 13, 13, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 2, 17, 2, 13, 17, 4, 18, 18, 13, 13, 8, 2, 13, 17, 17, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 49, 8 ], [ 49, 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 ], [ 22, 23 ], [ 23, 24 ], [ 11, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 29, 31 ], [ 11, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 37, 42 ], [ 11, 43 ], [ 43, 44 ], [ 44, 45 ], [ 9, 46 ], [ 46, 47 ], [ 0, 48 ], [ 48, 49 ], [ 48, 50 ] ]
[ "/**\n * A\n */\nimport java.io.*;\nimport java.util.Scanner;\npublic class Main {\n public static void main(String[] args) {\n InputStream in = System.in;\n Scanner scanner = new Scanner(in);\n \n int next = scanner.nextInt();\n int left = 1000 - (next % 1000);\n System.out.println(left == 1000 ? 0 : left);\n scanner.close();\n }\n\n}", "import java.io.*;", "io.*", "java", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n InputStream in = System.in;\n Scanner scanner = new Scanner(in);\n \n int next = scanner.nextInt();\n int left = 1000 - (next % 1000);\n System.out.println(left == 1000 ? 0 : left);\n scanner.close();\n }\n\n}", "Main", "public static void main(String[] args) {\n InputStream in = System.in;\n Scanner scanner = new Scanner(in);\n \n int next = scanner.nextInt();\n int left = 1000 - (next % 1000);\n System.out.println(left == 1000 ? 0 : left);\n scanner.close();\n }", "main", "{\n InputStream in = System.in;\n Scanner scanner = new Scanner(in);\n \n int next = scanner.nextInt();\n int left = 1000 - (next % 1000);\n System.out.println(left == 1000 ? 0 : left);\n scanner.close();\n }", "InputStream in = System.in;", "in", "System.in", "System", "System.in", "Scanner scanner = new Scanner(in);", "scanner", "new Scanner(in)", "int next = scanner.nextInt();", "next", "scanner.nextInt()", "scanner.nextInt", "scanner", "int left = 1000 - (next % 1000);", "left", "1000 - (next % 1000)", "1000", "(next % 1000)", "next", "1000", "System.out.println(left == 1000 ? 0 : left)", "System.out.println", "System.out", "System", "System.out", "left == 1000 ? 0 : left", "left == 1000", "left", "1000", "0", "left", "scanner.close()", "scanner.close", "scanner", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n InputStream in = System.in;\n Scanner scanner = new Scanner(in);\n \n int next = scanner.nextInt();\n int left = 1000 - (next % 1000);\n System.out.println(left == 1000 ? 0 : left);\n scanner.close();\n }\n\n}", "public class Main {\n public static void main(String[] args) {\n InputStream in = System.in;\n Scanner scanner = new Scanner(in);\n \n int next = scanner.nextInt();\n int left = 1000 - (next % 1000);\n System.out.println(left == 1000 ? 0 : left);\n scanner.close();\n }\n\n}", "Main" ]
/** * A */ import java.io.*; import java.util.Scanner; public class Main { public static void main(String[] args) { InputStream in = System.in; Scanner scanner = new Scanner(in); int next = scanner.nextInt(); int left = 1000 - (next % 1000); System.out.println(left == 1000 ? 0 : left); scanner.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, 13, 1, 40, 13, 30, 30, 41, 13, 2, 2, 17, 13, 13, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 13, 3, 14, 2, 13, 17, 30, 9, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 58, 5 ], [ 58, 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 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 32, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 42, 47 ], [ 41, 48 ], [ 37, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 6, 55 ], [ 55, 56 ], [ 0, 57 ], [ 57, 58 ], [ 57, 59 ] ]
[ "import java.util.*;\n public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n for(int i=0; i<=N; i++){\n int ans = 1000*i - N;\n if (ans >= 0){\n System.out.println(ans);\n break;\n } else if (ans < 0) {\n continue;\n }\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 for(int i=0; i<=N; i++){\n int ans = 1000*i - N;\n if (ans >= 0){\n System.out.println(ans);\n break;\n } else if (ans < 0) {\n continue;\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=0; i<=N; i++){\n int ans = 1000*i - N;\n if (ans >= 0){\n System.out.println(ans);\n break;\n } else if (ans < 0) {\n continue;\n }\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n for(int i=0; i<=N; i++){\n int ans = 1000*i - N;\n if (ans >= 0){\n System.out.println(ans);\n break;\n } else if (ans < 0) {\n continue;\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=0; i<=N; i++){\n int ans = 1000*i - N;\n if (ans >= 0){\n System.out.println(ans);\n break;\n } else if (ans < 0) {\n continue;\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<=N", "i", "N", "i++", "i++", "i", "{\n int ans = 1000*i - N;\n if (ans >= 0){\n System.out.println(ans);\n break;\n } else if (ans < 0) {\n continue;\n }\n }", "{\n int ans = 1000*i - N;\n if (ans >= 0){\n System.out.println(ans);\n break;\n } else if (ans < 0) {\n continue;\n }\n }", "int ans = 1000*i - N;", "ans", "1000*i - N", "1000*i", "1000", "i", "N", "if (ans >= 0){\n System.out.println(ans);\n break;\n } else if (ans < 0) {\n continue;\n }", "ans >= 0", "ans", "0", "{\n System.out.println(ans);\n break;\n }", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "break;", "if (ans < 0) {\n continue;\n }", "ans < 0", "ans", "0", "{\n continue;\n }", "continue;", "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 for(int i=0; i<=N; i++){\n int ans = 1000*i - N;\n if (ans >= 0){\n System.out.println(ans);\n break;\n } else if (ans < 0) {\n continue;\n }\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 for(int i=0; i<=N; i++){\n int ans = 1000*i - N;\n if (ans >= 0){\n System.out.println(ans);\n break;\n } else if (ans < 0) {\n continue;\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(); for(int i=0; i<=N; i++){ int ans = 1000*i - N; if (ans >= 0){ System.out.println(ans); break; } else if (ans < 0) { continue; } } } }
[ 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, 41, 13, 17, 42, 17, 30, 41, 13, 2, 13, 17, 14, 2, 13, 13, 30, 29, 4, 18, 13, 2, 13, 13, 40, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 64, 5 ], [ 64, 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 ], [ 64, 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 ], [ 36, 38 ], [ 27, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 44, 46 ], [ 41, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 56, 57 ], [ 56, 58 ], [ 41, 59 ], [ 59, 60 ], [ 25, 61 ], [ 61, 62 ], [ 0, 63 ], [ 63, 64 ], [ 63, 65 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n try(Scanner sc = new Scanner(System.in)) {\n System.out.println(new Main().run(sc));\n }\n }\n\n public String run(Scanner sc) {\n int n = Integer.parseInt(sc.nextLine());\n int i = 1;\n while (true) {\n int payment = i * 1000;\n if (payment >= n) {\n return String.valueOf(payment - n);\n }\n i++;\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n try(Scanner sc = new Scanner(System.in)) {\n System.out.println(new Main().run(sc));\n }\n }\n\n public String run(Scanner sc) {\n int n = Integer.parseInt(sc.nextLine());\n int i = 1;\n while (true) {\n int payment = i * 1000;\n if (payment >= n) {\n return String.valueOf(payment - n);\n }\n i++;\n }\n }\n}", "Main", "public static void main(String[] args) {\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", "public String run(Scanner sc) {\n int n = Integer.parseInt(sc.nextLine());\n int i = 1;\n while (true) {\n int payment = i * 1000;\n if (payment >= n) {\n return String.valueOf(payment - n);\n }\n i++;\n }\n }", "run", "{\n int n = Integer.parseInt(sc.nextLine());\n int i = 1;\n while (true) {\n int payment = i * 1000;\n if (payment >= n) {\n return String.valueOf(payment - n);\n }\n i++;\n }\n }", "int n = Integer.parseInt(sc.nextLine());", "n", "Integer.parseInt(sc.nextLine())", "Integer.parseInt", "Integer", "sc.nextLine()", "sc.nextLine", "sc", "int i = 1;", "i", "1", "while (true) {\n int payment = i * 1000;\n if (payment >= n) {\n return String.valueOf(payment - n);\n }\n i++;\n }", "true", "{\n int payment = i * 1000;\n if (payment >= n) {\n return String.valueOf(payment - n);\n }\n i++;\n }", "int payment = i * 1000;", "payment", "i * 1000", "i", "1000", "if (payment >= n) {\n return String.valueOf(payment - n);\n }", "payment >= n", "payment", "n", "{\n return String.valueOf(payment - n);\n }", "return String.valueOf(payment - n);", "String.valueOf(payment - n)", "String.valueOf", "String", "payment - n", "payment", "n", "i++", "i", "Scanner sc", "sc", "public class Main {\n public static void main(String[] args) {\n try(Scanner sc = new Scanner(System.in)) {\n System.out.println(new Main().run(sc));\n }\n }\n\n public String run(Scanner sc) {\n int n = Integer.parseInt(sc.nextLine());\n int i = 1;\n while (true) {\n int payment = i * 1000;\n if (payment >= n) {\n return String.valueOf(payment - n);\n }\n i++;\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n try(Scanner sc = new Scanner(System.in)) {\n System.out.println(new Main().run(sc));\n }\n }\n\n public String run(Scanner sc) {\n int n = Integer.parseInt(sc.nextLine());\n int i = 1;\n while (true) {\n int payment = i * 1000;\n if (payment >= n) {\n return String.valueOf(payment - n);\n }\n i++;\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { try(Scanner sc = new Scanner(System.in)) { System.out.println(new Main().run(sc)); } } public String run(Scanner sc) { int n = Integer.parseInt(sc.nextLine()); int i = 1; while (true) { int payment = i * 1000; if (payment >= n) { return String.valueOf(payment - n); } i++; } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 41, 13, 41, 13, 17, 42, 17, 30, 0, 13, 2, 13, 17, 14, 2, 13, 13, 30, 0, 13, 2, 13, 13, 3, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 54, 5 ], [ 54, 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 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 29, 31 ], [ 26, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 32, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 39, 41 ], [ 36, 42 ], [ 26, 43 ], [ 43, 44 ], [ 8, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 6, 51 ], [ 51, 52 ], [ 0, 53 ], [ 53, 54 ], [ 53, 55 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner input =new Scanner(System.in);\n\t\tint n=input.nextInt();\n\t\tint back,i,j=1;\n\t\twhile(true)\n\t\t{\n\t\t\ti=j*1000;\n\t\t\tif(i>=n)\n\t\t\t{\n\t\t\t\tback=i-n;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tj++;\n\t\t\t\n\t\t}\n\t System.out.println(back);\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\tScanner input =new Scanner(System.in);\n\t\tint n=input.nextInt();\n\t\tint back,i,j=1;\n\t\twhile(true)\n\t\t{\n\t\t\ti=j*1000;\n\t\t\tif(i>=n)\n\t\t\t{\n\t\t\t\tback=i-n;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tj++;\n\t\t\t\n\t\t}\n\t System.out.println(back);\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner input =new Scanner(System.in);\n\t\tint n=input.nextInt();\n\t\tint back,i,j=1;\n\t\twhile(true)\n\t\t{\n\t\t\ti=j*1000;\n\t\t\tif(i>=n)\n\t\t\t{\n\t\t\t\tback=i-n;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tj++;\n\t\t\t\n\t\t}\n\t System.out.println(back);\n\n\t}", "main", "{\n\t\tScanner input =new Scanner(System.in);\n\t\tint n=input.nextInt();\n\t\tint back,i,j=1;\n\t\twhile(true)\n\t\t{\n\t\t\ti=j*1000;\n\t\t\tif(i>=n)\n\t\t\t{\n\t\t\t\tback=i-n;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tj++;\n\t\t\t\n\t\t}\n\t System.out.println(back);\n\n\t}", "Scanner input =new Scanner(System.in);", "input", "new Scanner(System.in)", "int n=input.nextInt();", "n", "input.nextInt()", "input.nextInt", "input", "int back", "back", "i", "i", "j=1;", "j", "1", "while(true)\n\t\t{\n\t\t\ti=j*1000;\n\t\t\tif(i>=n)\n\t\t\t{\n\t\t\t\tback=i-n;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tj++;\n\t\t\t\n\t\t}", "true", "{\n\t\t\ti=j*1000;\n\t\t\tif(i>=n)\n\t\t\t{\n\t\t\t\tback=i-n;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tj++;\n\t\t\t\n\t\t}", "i=j*1000", "i", "j*1000", "j", "1000", "if(i>=n)\n\t\t\t{\n\t\t\t\tback=i-n;\n\t\t\t\tbreak;\n\t\t\t}", "i>=n", "i", "n", "{\n\t\t\t\tback=i-n;\n\t\t\t\tbreak;\n\t\t\t}", "back=i-n", "back", "i-n", "i", "n", "break;", "j++", "j", "System.out.println(back)", "System.out.println", "System.out", "System", "System.out", "back", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner input =new Scanner(System.in);\n\t\tint n=input.nextInt();\n\t\tint back,i,j=1;\n\t\twhile(true)\n\t\t{\n\t\t\ti=j*1000;\n\t\t\tif(i>=n)\n\t\t\t{\n\t\t\t\tback=i-n;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tj++;\n\t\t\t\n\t\t}\n\t System.out.println(back);\n\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner input =new Scanner(System.in);\n\t\tint n=input.nextInt();\n\t\tint back,i,j=1;\n\t\twhile(true)\n\t\t{\n\t\t\ti=j*1000;\n\t\t\tif(i>=n)\n\t\t\t{\n\t\t\t\tback=i-n;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tj++;\n\t\t\t\n\t\t}\n\t System.out.println(back);\n\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner input =new Scanner(System.in); int n=input.nextInt(); int back,i,j=1; while(true) { i=j*1000; if(i>=n) { back=i-n; break; } j++; } System.out.println(back); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 41, 13, 17, 0, 13, 2, 2, 13, 17, 13, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 13, 3, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 58, 5 ], [ 58, 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 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 20, 25 ], [ 25, 26 ], [ 25, 27 ], [ 20, 28 ], [ 28, 29 ], [ 29, 30 ], [ 20, 31 ], [ 32, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 32, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 32, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 47, 54 ], [ 6, 55 ], [ 55, 56 ], [ 0, 57 ], [ 57, 58 ], [ 57, 59 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t//数取得\n\t\tint N = sc.nextInt();\n\t\tsc.close();\n\n\t\tfor(int i = 1; i <= 10; i++) {\n\t\t\tint answer = 0;\n\n\t\t\tanswer = i*1000 - N;\n\t\t\tif(answer >= 0) {\n\t\t\t\tSystem.out.println(answer);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t//数取得\n\t\tint N = sc.nextInt();\n\t\tsc.close();\n\n\t\tfor(int i = 1; i <= 10; i++) {\n\t\t\tint answer = 0;\n\n\t\t\tanswer = i*1000 - N;\n\t\t\tif(answer >= 0) {\n\t\t\t\tSystem.out.println(answer);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t//数取得\n\t\tint N = sc.nextInt();\n\t\tsc.close();\n\n\t\tfor(int i = 1; i <= 10; i++) {\n\t\t\tint answer = 0;\n\n\t\t\tanswer = i*1000 - N;\n\t\t\tif(answer >= 0) {\n\t\t\t\tSystem.out.println(answer);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\t//数取得\n\t\tint N = sc.nextInt();\n\t\tsc.close();\n\n\t\tfor(int i = 1; i <= 10; i++) {\n\t\t\tint answer = 0;\n\n\t\t\tanswer = i*1000 - N;\n\t\t\tif(answer >= 0) {\n\t\t\t\tSystem.out.println(answer);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "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", "for(int i = 1; i <= 10; i++) {\n\t\t\tint answer = 0;\n\n\t\t\tanswer = i*1000 - N;\n\t\t\tif(answer >= 0) {\n\t\t\t\tSystem.out.println(answer);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i <= 10", "i", "10", "i++", "i++", "i", "{\n\t\t\tint answer = 0;\n\n\t\t\tanswer = i*1000 - N;\n\t\t\tif(answer >= 0) {\n\t\t\t\tSystem.out.println(answer);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "{\n\t\t\tint answer = 0;\n\n\t\t\tanswer = i*1000 - N;\n\t\t\tif(answer >= 0) {\n\t\t\t\tSystem.out.println(answer);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "int answer = 0;", "answer", "0", "answer = i*1000 - N", "answer", "i*1000 - N", "i*1000", "i", "1000", "N", "if(answer >= 0) {\n\t\t\t\tSystem.out.println(answer);\n\t\t\t\tbreak;\n\t\t\t}", "answer >= 0", "answer", "0", "{\n\t\t\t\tSystem.out.println(answer);\n\t\t\t\tbreak;\n\t\t\t}", "System.out.println(answer)", "System.out.println", "System.out", "System", "System.out", "answer", "break;", "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 N = sc.nextInt();\n\t\tsc.close();\n\n\t\tfor(int i = 1; i <= 10; i++) {\n\t\t\tint answer = 0;\n\n\t\t\tanswer = i*1000 - N;\n\t\t\tif(answer >= 0) {\n\t\t\t\tSystem.out.println(answer);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\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 N = sc.nextInt();\n\t\tsc.close();\n\n\t\tfor(int i = 1; i <= 10; i++) {\n\t\t\tint answer = 0;\n\n\t\t\tanswer = i*1000 - N;\n\t\t\tif(answer >= 0) {\n\t\t\t\tSystem.out.println(answer);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\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(); sc.close(); for(int i = 1; i <= 10; i++) { int answer = 0; answer = i*1000 - N; if(answer >= 0) { System.out.println(answer); break; } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 2, 17, 2, 13, 17, 0, 13, 8, 2, 13, 17, 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 ], [ 21, 22 ], [ 21, 23 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 26, 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\tScanner sc = new Scanner(System.in);\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = 1000-a%1000;\n\t\t\tb = b==1000 ? 0:b;\n\t\t\tSystem.out.println(b);\n\t}\t\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = 1000-a%1000;\n\t\t\tb = b==1000 ? 0:b;\n\t\t\tSystem.out.println(b);\n\t}\t\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = 1000-a%1000;\n\t\t\tb = b==1000 ? 0:b;\n\t\t\tSystem.out.println(b);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = 1000-a%1000;\n\t\t\tb = b==1000 ? 0:b;\n\t\t\tSystem.out.println(b);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int b = 1000-a%1000;", "b", "1000-a%1000", "1000", "a%1000", "a", "1000", "b = b==1000 ? 0:b", "b", "b==1000 ? 0:b", "b==1000", "b", "1000", "0", "b", "System.out.println(b)", "System.out.println", "System.out", "System", "System.out", "b", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = 1000-a%1000;\n\t\t\tb = b==1000 ? 0:b;\n\t\t\tSystem.out.println(b);\n\t}\t\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = 1000-a%1000;\n\t\t\tb = b==1000 ? 0:b;\n\t\t\tSystem.out.println(b);\n\t}\t\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 b = 1000-a%1000; b = b==1000 ? 0:b; System.out.println(b); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 2, 2, 17, 4, 18, 13, 2, 13, 17, 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 ], [ 48, 8 ], [ 48, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 20, 23 ], [ 23, 24 ], [ 24, 25 ], [ 11, 26 ], [ 26, 27 ], [ 27, 28 ], [ 26, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 35, 36 ], [ 35, 37 ], [ 29, 38 ], [ 11, 39 ], [ 39, 40 ], [ 40, 41 ], [ 11, 42 ], [ 42, 43 ], [ 43, 44 ], [ 9, 45 ], [ 45, 46 ], [ 0, 47 ], [ 47, 48 ], [ 47, 49 ] ]
[ "import java.util.*;\nimport java.io.*;\npublic class Main\n{\n public static void main(String args[])throws Exception\n {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n PrintWriter pw=new PrintWriter(System.out);\n int n=Integer.parseInt(br.readLine());\n pw.println(1000*(int)Math.ceil((double)n/1000)-n);\n pw.flush();\n pw.close();\n }\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "public class Main\n{\n public static void main(String args[])throws Exception\n {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n PrintWriter pw=new PrintWriter(System.out);\n int n=Integer.parseInt(br.readLine());\n pw.println(1000*(int)Math.ceil((double)n/1000)-n);\n pw.flush();\n pw.close();\n }\n}", "Main", "public static void main(String args[])throws Exception\n {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n PrintWriter pw=new PrintWriter(System.out);\n int n=Integer.parseInt(br.readLine());\n pw.println(1000*(int)Math.ceil((double)n/1000)-n);\n pw.flush();\n pw.close();\n }", "main", "{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n PrintWriter pw=new PrintWriter(System.out);\n int n=Integer.parseInt(br.readLine());\n pw.println(1000*(int)Math.ceil((double)n/1000)-n);\n pw.flush();\n pw.close();\n }", "BufferedReader br=new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "PrintWriter pw=new PrintWriter(System.out);", "pw", "new PrintWriter(System.out)", "int n=Integer.parseInt(br.readLine());", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "pw.println(1000*(int)Math.ceil((double)n/1000)-n)", "pw.println", "pw", "1000*(int)Math.ceil((double)n/1000)-n", "1000*(int)Math.ceil((double)n/1000)", "1000", "(int)Math.ceil((double)n/1000)", "Math.ceil", "Math", "(double)n/1000", "(double)n", "1000", "n", "pw.flush()", "pw.flush", "pw", "pw.close()", "pw.close", "pw", "String args[]", "args", "public class Main\n{\n public static void main(String args[])throws Exception\n {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n PrintWriter pw=new PrintWriter(System.out);\n int n=Integer.parseInt(br.readLine());\n pw.println(1000*(int)Math.ceil((double)n/1000)-n);\n pw.flush();\n pw.close();\n }\n}", "public class Main\n{\n public static void main(String args[])throws Exception\n {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n PrintWriter pw=new PrintWriter(System.out);\n int n=Integer.parseInt(br.readLine());\n pw.println(1000*(int)Math.ceil((double)n/1000)-n);\n pw.flush();\n pw.close();\n }\n}", "Main" ]
import java.util.*; import java.io.*; public class Main { public static void main(String args[])throws Exception { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); PrintWriter pw=new PrintWriter(System.out); int n=Integer.parseInt(br.readLine()); pw.println(1000*(int)Math.ceil((double)n/1000)-n); pw.flush(); pw.close(); } }
[ 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, 2, 13, 17, 17, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 54, 5 ], [ 54, 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 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 38, 44 ], [ 35, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 6, 51 ], [ 51, 52 ], [ 0, 53 ], [ 53, 54 ], [ 53, 55 ] ]
[ "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 n = sc.nextInt();\n \tint m = n/1000;\n \tif (n%1000 ==0){\n System.out.print(0);\n }\n else {\n int p = (m+1)*1000-n;\n System.out.print(p);\n }\n \t\n\t\t\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 n = sc.nextInt();\n \tint m = n/1000;\n \tif (n%1000 ==0){\n System.out.print(0);\n }\n else {\n int p = (m+1)*1000-n;\n System.out.print(p);\n }\n \t\n\t\t\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n \tint m = n/1000;\n \tif (n%1000 ==0){\n System.out.print(0);\n }\n else {\n int p = (m+1)*1000-n;\n System.out.print(p);\n }\n \t\n\t\t\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n \tint m = n/1000;\n \tif (n%1000 ==0){\n System.out.print(0);\n }\n else {\n int p = (m+1)*1000-n;\n System.out.print(p);\n }\n \t\n\t\t\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int m = n/1000;", "m", "n/1000", "n", "1000", "if (n%1000 ==0){\n System.out.print(0);\n }\n else {\n int p = (m+1)*1000-n;\n System.out.print(p);\n }", "n%1000 ==0", "n%1000", "n", "1000", "0", "{\n System.out.print(0);\n }", "System.out.print(0)", "System.out.print", "System.out", "System", "System.out", "0", "{\n int p = (m+1)*1000-n;\n System.out.print(p);\n }", "int p = (m+1)*1000-n;", "p", "(m+1)*1000-n", "(m+1)*1000", "(m+1)", "m", "1", "1000", "n", "System.out.print(p)", "System.out.print", "System.out", "System", "System.out", "p", "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 n = sc.nextInt();\n \tint m = n/1000;\n \tif (n%1000 ==0){\n System.out.print(0);\n }\n else {\n int p = (m+1)*1000-n;\n System.out.print(p);\n }\n \t\n\t\t\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 n = sc.nextInt();\n \tint m = n/1000;\n \tif (n%1000 ==0){\n System.out.print(0);\n }\n else {\n int p = (m+1)*1000-n;\n System.out.print(p);\n }\n \t\n\t\t\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 m = n/1000; if (n%1000 ==0){ System.out.print(0); } else { int p = (m+1)*1000-n; System.out.print(p); } } }
[ 7, 6, 13, 12, 13, 30, 41, 13, 4, 18, 20, 14, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 17, 30, 41, 13, 17, 4, 18, 18, 13, 13, 13, 30, 41, 13, 2, 17, 2, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 78, 2 ], [ 78, 3 ], [ 3, 4 ], [ 3, 5 ], [ 5, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 5, 11 ], [ 11, 12 ], [ 20, 13 ], [ 45, 14 ], [ 42, 15 ], [ 39, 16 ], [ 36, 17 ], [ 33, 18 ], [ 30, 19 ], [ 27, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 24, 26 ], [ 27, 27 ], [ 27, 28 ], [ 27, 29 ], [ 30, 30 ], [ 30, 31 ], [ 30, 32 ], [ 33, 33 ], [ 33, 34 ], [ 33, 35 ], [ 36, 36 ], [ 36, 37 ], [ 36, 38 ], [ 39, 39 ], [ 39, 40 ], [ 39, 41 ], [ 42, 42 ], [ 42, 43 ], [ 42, 44 ], [ 45, 45 ], [ 45, 46 ], [ 45, 47 ], [ 20, 48 ], [ 48, 49 ], [ 48, 50 ], [ 11, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 11, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 66, 68 ], [ 61, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 3, 75 ], [ 75, 76 ], [ 0, 77 ], [ 77, 78 ], [ 77, 79 ] ]
[ "public class Main {\n public static void main(String[] args) {\n int N = new java.util.Scanner(System.in).nextInt();\n if (N == 1000 || N == 2000 || N == 3000 || N == 4000 || N == 5000 || N == 6000 || N == 7000 || N == 8000 || N == 9000 || N == 10000) {\n int A = 0; \n System.out.println(A);\n } else {\n int A = 1000 - (N % 1000);\n System.out.println(A);\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n int N = new java.util.Scanner(System.in).nextInt();\n if (N == 1000 || N == 2000 || N == 3000 || N == 4000 || N == 5000 || N == 6000 || N == 7000 || N == 8000 || N == 9000 || N == 10000) {\n int A = 0; \n System.out.println(A);\n } else {\n int A = 1000 - (N % 1000);\n System.out.println(A);\n }\n }\n}", "Main", "public static void main(String[] args) {\n int N = new java.util.Scanner(System.in).nextInt();\n if (N == 1000 || N == 2000 || N == 3000 || N == 4000 || N == 5000 || N == 6000 || N == 7000 || N == 8000 || N == 9000 || N == 10000) {\n int A = 0; \n System.out.println(A);\n } else {\n int A = 1000 - (N % 1000);\n System.out.println(A);\n }\n }", "main", "{\n int N = new java.util.Scanner(System.in).nextInt();\n if (N == 1000 || N == 2000 || N == 3000 || N == 4000 || N == 5000 || N == 6000 || N == 7000 || N == 8000 || N == 9000 || N == 10000) {\n int A = 0; \n System.out.println(A);\n } else {\n int A = 1000 - (N % 1000);\n System.out.println(A);\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)", "if (N == 1000 || N == 2000 || N == 3000 || N == 4000 || N == 5000 || N == 6000 || N == 7000 || N == 8000 || N == 9000 || N == 10000) {\n int A = 0; \n System.out.println(A);\n } else {\n int A = 1000 - (N % 1000);\n System.out.println(A);\n }", "N == 1000 || N == 2000 || N == 3000 || N == 4000 || N == 5000 || N == 6000 || N == 7000 || N == 8000 || N == 9000 || N == 10000", "N == 9000", "N == 8000", "N == 7000", "N == 6000", "N == 5000", "N == 4000", "N == 3000", "N == 1000 || N == 2000 || N == 3000 || N == 4000 || N == 5000 || N == 6000 || N == 7000 || N == 8000 || N == 9000 || N == 10000", "N == 1000", "N", "1000", "N == 2000", "N", "2000", "N == 3000", "N", "3000", "N == 4000", "N", "4000", "N == 5000", "N", "5000", "N == 6000", "N", "6000", "N == 7000", "N", "7000", "N == 8000", "N", "8000", "N == 9000", "N", "9000", "N == 10000", "N", "10000", "{\n int A = 0; \n System.out.println(A);\n }", "int A = 0;", "A", "0", "System.out.println(A)", "System.out.println", "System.out", "System", "System.out", "A", "{\n int A = 1000 - (N % 1000);\n System.out.println(A);\n }", "int A = 1000 - (N % 1000);", "A", "1000 - (N % 1000)", "1000", "(N % 1000)", "N", "1000", "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 int N = new java.util.Scanner(System.in).nextInt();\n if (N == 1000 || N == 2000 || N == 3000 || N == 4000 || N == 5000 || N == 6000 || N == 7000 || N == 8000 || N == 9000 || N == 10000) {\n int A = 0; \n System.out.println(A);\n } else {\n int A = 1000 - (N % 1000);\n System.out.println(A);\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n int N = new java.util.Scanner(System.in).nextInt();\n if (N == 1000 || N == 2000 || N == 3000 || N == 4000 || N == 5000 || N == 6000 || N == 7000 || N == 8000 || N == 9000 || N == 10000) {\n int A = 0; \n System.out.println(A);\n } else {\n int A = 1000 - (N % 1000);\n System.out.println(A);\n }\n }\n}", "Main" ]
public class Main { public static void main(String[] args) { int N = new java.util.Scanner(System.in).nextInt(); if (N == 1000 || N == 2000 || N == 3000 || N == 4000 || N == 5000 || N == 6000 || N == 7000 || N == 8000 || N == 9000 || N == 10000) { int A = 0; System.out.println(A); } else { int A = 1000 - (N % 1000); System.out.println(A); } } }
[ 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, 4, 18, 13, 2, 2, 13, 17, 17, 4, 18, 18, 13, 13, 2, 2, 17, 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, 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 ], [ 143, 17 ], [ 143, 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 ], [ 35, 36 ], [ 34, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 20, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 42, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 18, 52 ], [ 52, 53 ], [ 0, 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.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\nimport java.util.*;\npublic class Main {\n\tpublic static void main(String[] args)throws IOException {\n\t\tFastReader sc = new FastReader();\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\tint n = sc.nextInt();\n\t\tint m = (int)Math.ceil(n * 1.0 / 1000.0);\n\t\tSystem.out.println(1000 * m - n);\n\n\t}\n}\n\n\n\n\n\nclass FastReader {\n\tBufferedReader br;\n\tStringTokenizer st;\n\n\tpublic FastReader() {\n\t\tbr = new BufferedReader(new\n\t\t InputStreamReader(System.in));\n\t}\n\n\tString next() {\n\t\twhile (st == null || !st.hasMoreElements()) {\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\t\treturn st.nextToken();\n\t}\n\n\tint nextInt() {\n\t\treturn Integer.parseInt(next());\n\t}\n\n\tlong nextLong() {\n\t\treturn Long.parseLong(next());\n\t}\n\n\tdouble nextDouble() {\n\t\treturn Double.parseDouble(next());\n\t}\n\n\tString nextLine() {\n\t\tString str = \"\";\n\t\ttry {\n\t\t\tstr = br.readLine();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn str;\n\t}\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.*;", "util.*", "java", "public class Main {\n\tpublic static void main(String[] args)throws IOException {\n\t\tFastReader sc = new FastReader();\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\tint n = sc.nextInt();\n\t\tint m = (int)Math.ceil(n * 1.0 / 1000.0);\n\t\tSystem.out.println(1000 * m - n);\n\n\t}\n}", "Main", "public static void main(String[] args)throws IOException {\n\t\tFastReader sc = new FastReader();\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\tint n = sc.nextInt();\n\t\tint m = (int)Math.ceil(n * 1.0 / 1000.0);\n\t\tSystem.out.println(1000 * m - n);\n\n\t}", "main", "{\n\t\tFastReader sc = new FastReader();\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\tint n = sc.nextInt();\n\t\tint m = (int)Math.ceil(n * 1.0 / 1000.0);\n\t\tSystem.out.println(1000 * m - n);\n\n\t}", "FastReader sc = new FastReader();", "sc", "new FastReader()", "PrintWriter pw = new PrintWriter(System.out);", "pw", "new PrintWriter(System.out)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int m = (int)Math.ceil(n * 1.0 / 1000.0);", "m", "(int)Math.ceil(n * 1.0 / 1000.0)", "Math.ceil", "Math", "n * 1.0 / 1000.0", "n * 1.0", "n", "1.0", "1000.0", "System.out.println(1000 * m - n)", "System.out.println", "System.out", "System", "System.out", "1000 * m - n", "1000 * m", "1000", "m", "n", "String[] args", "args", "class FastReader {\n\tBufferedReader br;\n\tStringTokenizer st;\n\n\tpublic FastReader() {\n\t\tbr = new BufferedReader(new\n\t\t InputStreamReader(System.in));\n\t}\n\n\tString next() {\n\t\twhile (st == null || !st.hasMoreElements()) {\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\t\treturn st.nextToken();\n\t}\n\n\tint nextInt() {\n\t\treturn Integer.parseInt(next());\n\t}\n\n\tlong nextLong() {\n\t\treturn Long.parseLong(next());\n\t}\n\n\tdouble nextDouble() {\n\t\treturn Double.parseDouble(next());\n\t}\n\n\tString nextLine() {\n\t\tString str = \"\";\n\t\ttry {\n\t\t\tstr = br.readLine();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn str;\n\t}\n}", "FastReader", "BufferedReader br;", "br", "StringTokenizer st;", "st", "public FastReader() {\n\t\tbr = new BufferedReader(new\n\t\t InputStreamReader(System.in));\n\t}", "FastReader", "{\n\t\tbr = new BufferedReader(new\n\t\t InputStreamReader(System.in));\n\t}", "br = new BufferedReader(new\n\t\t InputStreamReader(System.in))", "br", "new BufferedReader(new\n\t\t InputStreamReader(System.in))", "String next() {\n\t\twhile (st == null || !st.hasMoreElements()) {\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\t\treturn st.nextToken();\n\t}", "next", "{\n\t\twhile (st == null || !st.hasMoreElements()) {\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\t\treturn st.nextToken();\n\t}", "while (st == null || !st.hasMoreElements()) {\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}", "st == null || !st.hasMoreElements()", "st == null", "st", "null", "!st.hasMoreElements()", "st.hasMoreElements()", "st.hasMoreElements", "st", "{\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}", "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())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "int nextInt() {\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", "long nextLong() {\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", "double nextDouble() {\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", "String nextLine() {\n\t\tString str = \"\";\n\t\ttry {\n\t\t\tstr = br.readLine();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn str;\n\t}", "nextLine", "{\n\t\tString str = \"\";\n\t\ttry {\n\t\t\tstr = br.readLine();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn str;\n\t}", "String str = \"\";", "str", "\"\"", "try {\n\t\t\tstr = br.readLine();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}", "catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}", "IOException e", "{\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\tstr = br.readLine();\n\t\t}", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "return str;", "str", "public class Main {\n\tpublic static void main(String[] args)throws IOException {\n\t\tFastReader sc = new FastReader();\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\tint n = sc.nextInt();\n\t\tint m = (int)Math.ceil(n * 1.0 / 1000.0);\n\t\tSystem.out.println(1000 * m - n);\n\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args)throws IOException {\n\t\tFastReader sc = new FastReader();\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\tint n = sc.nextInt();\n\t\tint m = (int)Math.ceil(n * 1.0 / 1000.0);\n\t\tSystem.out.println(1000 * m - n);\n\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.*; public class Main { public static void main(String[] args)throws IOException { FastReader sc = new FastReader(); PrintWriter pw = new PrintWriter(System.out); int n = sc.nextInt(); int m = (int)Math.ceil(n * 1.0 / 1000.0); System.out.println(1000 * m - n); } } 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, 4, 18, 20, 41, 13, 4, 18, 20, 13, 4, 18, 20, 13, 23, 13, 6, 13, 41, 13, 17, 12, 13, 30, 41, 13, 2, 13, 13, 14, 2, 2, 13, 13, 13, 30, 40, 13, 29, 2, 2, 13, 13, 13, 23, 13, 6, 13, 12, 13, 30, 41, 13, 20, 29, 4, 18, 13, 6, 13, 12, 13, 30, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 82, 5 ], [ 82, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 16, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 20, 23 ], [ 6, 24 ], [ 24, 25 ], [ 0, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 36, 38 ], [ 33, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 40, 44 ], [ 39, 45 ], [ 45, 46 ], [ 46, 47 ], [ 33, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 31, 54 ], [ 54, 55 ], [ 0, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 0, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 70, 79 ], [ 79, 80 ], [ 0, 81 ], [ 81, 82 ], [ 81, 83 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n final int price = new PriceReader().read();\n final int balance = new BalanceCalculator().pay(price);\n new BalancePrinter().write(balance);\n }\n \n}\n\nclass BalanceCalculator {\n private static final int AMOUNT_PER_BILL = 1_000;\n public int pay(int price) {\n int bills = price / AMOUNT_PER_BILL;\n if (bills * AMOUNT_PER_BILL < price) {\n bills++;\n }\n return bills * AMOUNT_PER_BILL - price;\n }\n}\n\nclass PriceReader {\n public int read() {\n Scanner scanner = new Scanner(System.in);\n return scanner.nextInt();\n }\n}\n\nclass BalancePrinter {\n public void write(int balance) {\n System.out.println(balance);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n final int price = new PriceReader().read();\n final int balance = new BalanceCalculator().pay(price);\n new BalancePrinter().write(balance);\n }\n \n}", "Main", "public static void main(String[] args) {\n final int price = new PriceReader().read();\n final int balance = new BalanceCalculator().pay(price);\n new BalancePrinter().write(balance);\n }", "main", "{\n final int price = new PriceReader().read();\n final int balance = new BalanceCalculator().pay(price);\n new BalancePrinter().write(balance);\n }", "final int price = new PriceReader().read();", "price", "new PriceReader().read()", "new PriceReader().read", "new PriceReader()", "final int balance = new BalanceCalculator().pay(price);", "balance", "new BalanceCalculator().pay(price)", "new BalanceCalculator().pay", "new BalanceCalculator()", "price", "new BalancePrinter().write(balance)", "new BalancePrinter().write", "new BalancePrinter()", "balance", "String[] args", "args", "class BalanceCalculator {\n private static final int AMOUNT_PER_BILL = 1_000;\n public int pay(int price) {\n int bills = price / AMOUNT_PER_BILL;\n if (bills * AMOUNT_PER_BILL < price) {\n bills++;\n }\n return bills * AMOUNT_PER_BILL - price;\n }\n}", "BalanceCalculator", "private static final int AMOUNT_PER_BILL = 1_000;", "AMOUNT_PER_BILL", "1_000", "public int pay(int price) {\n int bills = price / AMOUNT_PER_BILL;\n if (bills * AMOUNT_PER_BILL < price) {\n bills++;\n }\n return bills * AMOUNT_PER_BILL - price;\n }", "pay", "{\n int bills = price / AMOUNT_PER_BILL;\n if (bills * AMOUNT_PER_BILL < price) {\n bills++;\n }\n return bills * AMOUNT_PER_BILL - price;\n }", "int bills = price / AMOUNT_PER_BILL;", "bills", "price / AMOUNT_PER_BILL", "price", "AMOUNT_PER_BILL", "if (bills * AMOUNT_PER_BILL < price) {\n bills++;\n }", "bills * AMOUNT_PER_BILL < price", "bills * AMOUNT_PER_BILL", "bills", "AMOUNT_PER_BILL", "price", "{\n bills++;\n }", "bills++", "bills", "return bills * AMOUNT_PER_BILL - price;", "bills * AMOUNT_PER_BILL - price", "bills * AMOUNT_PER_BILL", "bills", "AMOUNT_PER_BILL", "price", "int price", "price", "class PriceReader {\n public int read() {\n Scanner scanner = new Scanner(System.in);\n return scanner.nextInt();\n }\n}", "PriceReader", "public int read() {\n Scanner scanner = new Scanner(System.in);\n return scanner.nextInt();\n }", "read", "{\n Scanner scanner = new Scanner(System.in);\n return scanner.nextInt();\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "return scanner.nextInt();", "scanner.nextInt()", "scanner.nextInt", "scanner", "class BalancePrinter {\n public void write(int balance) {\n System.out.println(balance);\n }\n}", "BalancePrinter", "public void write(int balance) {\n System.out.println(balance);\n }", "write", "{\n System.out.println(balance);\n }", "System.out.println(balance)", "System.out.println", "System.out", "System", "System.out", "balance", "int balance", "balance", "public class Main {\n public static void main(String[] args) {\n final int price = new PriceReader().read();\n final int balance = new BalanceCalculator().pay(price);\n new BalancePrinter().write(balance);\n }\n \n}", "public class Main {\n public static void main(String[] args) {\n final int price = new PriceReader().read();\n final int balance = new BalanceCalculator().pay(price);\n new BalancePrinter().write(balance);\n }\n \n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { final int price = new PriceReader().read(); final int balance = new BalanceCalculator().pay(price); new BalancePrinter().write(balance); } } class BalanceCalculator { private static final int AMOUNT_PER_BILL = 1_000; public int pay(int price) { int bills = price / AMOUNT_PER_BILL; if (bills * AMOUNT_PER_BILL < price) { bills++; } return bills * AMOUNT_PER_BILL - price; } } class PriceReader { public int read() { Scanner scanner = new Scanner(System.in); return scanner.nextInt(); } } class BalancePrinter { public void write(int balance) { System.out.println(balance); } }
[ 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, 2, 13, 17, 17, 0, 13, 17, 14, 2, 13, 17, 0, 13, 2, 17, 13, 0, 13, 2, 2, 17, 2, 13, 17, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 61, 5 ], [ 61, 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 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 25, 31 ], [ 31, 32 ], [ 31, 33 ], [ 25, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 40, 42 ], [ 34, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 48, 50 ], [ 45, 51 ], [ 8, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 6, 58 ], [ 58, 59 ], [ 0, 60 ], [ 60, 61 ], [ 60, 62 ] ]
[ "import java.util.Scanner;\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int sen = N / 1000;\n int ans = 0;\n if(N % 1000 == 0) ans = 0;\n else if(sen == 0) ans = 1000 -N ;\n else ans = 1000*(sen+1) - 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 int N = sc.nextInt();\n int sen = N / 1000;\n int ans = 0;\n if(N % 1000 == 0) ans = 0;\n else if(sen == 0) ans = 1000 -N ;\n else ans = 1000*(sen+1) - N;\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 sen = N / 1000;\n int ans = 0;\n if(N % 1000 == 0) ans = 0;\n else if(sen == 0) ans = 1000 -N ;\n else ans = 1000*(sen+1) - N;\n System.out.println(ans);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int sen = N / 1000;\n int ans = 0;\n if(N % 1000 == 0) ans = 0;\n else if(sen == 0) ans = 1000 -N ;\n else ans = 1000*(sen+1) - N;\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 sen = N / 1000;", "sen", "N / 1000", "N", "1000", "int ans = 0;", "ans", "0", "if(N % 1000 == 0) ans = 0;\n else if(sen == 0) ans = 1000 -N ;\n else ans = 1000*(sen+1) - N;", "N % 1000 == 0", "N % 1000", "N", "1000", "0", "ans = 0", "ans", "0", "if(sen == 0) ans = 1000 -N ;\n else ans = 1000*(sen+1) - N;", "sen == 0", "sen", "0", "ans = 1000 -N", "ans", "1000 -N", "1000", "N", "ans = 1000*(sen+1) - N", "ans", "1000*(sen+1) - N", "1000*(sen+1)", "1000", "(sen+1)", "sen", "1", "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 int N = sc.nextInt();\n int sen = N / 1000;\n int ans = 0;\n if(N % 1000 == 0) ans = 0;\n else if(sen == 0) ans = 1000 -N ;\n else ans = 1000*(sen+1) - 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 int N = sc.nextInt();\n int sen = N / 1000;\n int ans = 0;\n if(N % 1000 == 0) ans = 0;\n else if(sen == 0) ans = 1000 -N ;\n else ans = 1000*(sen+1) - 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); int N = sc.nextInt(); int sen = N / 1000; int ans = 0; if(N % 1000 == 0) ans = 0; else if(sen == 0) ans = 1000 -N ; else ans = 1000*(sen+1) - N; System.out.println(ans); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 0, 13, 20, 4, 18, 13, 2, 2, 17, 2, 4, 18, 13, 17, 17, 4, 18, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 12, 13, 30, 41, 13, 20, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 13, 41, 13, 4, 13, 4, 18, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 42, 2, 2, 13, 17, 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, 4, 13, 17, 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, 29, 4, 18, 4, 18, 13, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 2, 18, 13, 13, 17, 42, 2, 2, 13, 13, 17, 30, 41, 13, 2, 2, 13, 13, 17, 14, 2, 13, 18, 13, 13, 30, 0, 13, 2, 13, 17, 30, 0, 13, 2, 13, 17, 29, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 17, 41, 13, 2, 4, 18, 13, 17, 42, 2, 2, 13, 13, 17, 30, 41, 13, 2, 2, 13, 13, 17, 14, 2, 13, 4, 18, 13, 13, 30, 0, 13, 2, 13, 17, 30, 0, 13, 2, 13, 17, 29, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 17, 41, 13, 2, 18, 13, 13, 17, 42, 2, 2, 13, 13, 17, 30, 41, 13, 2, 2, 13, 13, 17, 14, 2, 13, 18, 13, 13, 30, 0, 13, 2, 13, 17, 30, 0, 13, 2, 13, 17, 29, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 17, 41, 13, 2, 4, 18, 13, 17, 42, 2, 2, 13, 13, 17, 30, 41, 13, 2, 2, 13, 13, 17, 14, 2, 13, 4, 18, 13, 13, 30, 0, 13, 2, 13, 17, 30, 0, 13, 2, 13, 17, 29, 13, 23, 13, 23, 13, 12, 13, 30, 4, 18, 18, 13, 13, 4, 18, 13, 13, 23, 13, 12, 13, 30, 4, 18, 18, 13, 13, 4, 18, 13, 13, 23, 13, 12, 13, 30, 4, 18, 18, 13, 13, 4, 18, 13, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 18, 36, 13, 13, 0, 18, 36, 13, 13, 23, 13, 23, 13, 12, 13, 30, 29, 13, 12, 13, 30, 29, 13, 12, 13, 30, 14, 2, 18, 36, 13, 18, 13, 13, 29, 4, 18, 13, 18, 36, 13, 18, 13, 13, 29, 4, 18, 13, 18, 36, 13, 18, 13, 13, 23, 13, 12, 13, 30, 29, 4, 18, 13, 20, 12, 13, 30, 14, 40, 2, 13, 13, 29, 17, 41, 13, 13, 29, 2, 2, 18, 36, 13, 18, 13, 13, 2, 18, 36, 13, 18, 13, 13, 23, 13, 12, 13, 30, 29, 4, 18, 13, 17, 18, 36, 13, 18, 36, 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 ], [ 623, 20 ], [ 623, 21 ], [ 21, 22 ], [ 623, 23 ], [ 23, 24 ], [ 623, 25 ], [ 25, 26 ], [ 623, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 29, 33 ], [ 33, 34 ], [ 33, 35 ], [ 29, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 42, 46 ], [ 39, 47 ], [ 29, 48 ], [ 48, 49 ], [ 49, 50 ], [ 27, 51 ], [ 51, 52 ], [ 623, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 53, 57 ], [ 57, 58 ], [ 53, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 53, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 71, 72 ], [ 71, 73 ], [ 67, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 79, 80 ], [ 79, 81 ], [ 74, 82 ], [ 82, 83 ], [ 83, 84 ], [ 74, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 67, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 91, 96 ], [ 96, 97 ], [ 96, 98 ], [ 91, 99 ], [ 99, 100 ], [ 100, 101 ], [ 91, 102 ], [ 103, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 103, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 103, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 112, 117 ], [ 103, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 118, 123 ], [ 67, 124 ], [ 124, 125 ], [ 65, 126 ], [ 126, 127 ], [ 65, 128 ], [ 128, 129 ], [ 53, 130 ], [ 130, 131 ], [ 130, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 134, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 133, 142 ], [ 142, 143 ], [ 142, 144 ], [ 132, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 53, 149 ], [ 149, 150 ], [ 149, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 153, 156 ], [ 156, 157 ], [ 53, 158 ], [ 158, 159 ], [ 158, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 162, 165 ], [ 165, 166 ], [ 53, 167 ], [ 167, 168 ], [ 167, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 171, 174 ], [ 174, 175 ], [ 53, 176 ], [ 176, 177 ], [ 176, 178 ], [ 178, 179 ], [ 179, 180 ], [ 180, 181 ], [ 181, 182 ], [ 182, 183 ], [ 180, 184 ], [ 53, 185 ], [ 185, 186 ], [ 185, 187 ], [ 187, 188 ], [ 188, 189 ], [ 188, 190 ], [ 187, 192 ], [ 192, 193 ], [ 193, 194 ], [ 194, 195 ], [ 194, 196 ], [ 192, 197 ], [ 197, 198 ], [ 197, 199 ], [ 192, 200 ], [ 200, 201 ], [ 201, 202 ], [ 192, 203 ], [ 203, 204 ], [ 204, 205 ], [ 205, 206 ], [ 205, 207 ], [ 204, 208 ], [ 208, 209 ], [ 187, 210 ], [ 210, 211 ], [ 185, 212 ], [ 212, 213 ], [ 53, 214 ], [ 214, 215 ], [ 214, 216 ], [ 216, 217 ], [ 217, 218 ], [ 217, 219 ], [ 216, 221 ], [ 221, 222 ], [ 222, 223 ], [ 223, 224 ], [ 223, 225 ], [ 221, 226 ], [ 226, 227 ], [ 226, 228 ], [ 221, 229 ], [ 229, 230 ], [ 230, 231 ], [ 221, 232 ], [ 232, 233 ], [ 233, 234 ], [ 234, 235 ], [ 234, 236 ], [ 233, 237 ], [ 237, 238 ], [ 216, 239 ], [ 239, 240 ], [ 214, 241 ], [ 241, 242 ], [ 53, 243 ], [ 243, 244 ], [ 243, 245 ], [ 245, 246 ], [ 246, 247 ], [ 247, 248 ], [ 248, 249 ], [ 249, 250 ], [ 250, 251 ], [ 623, 252 ], [ 252, 253 ], [ 252, 254 ], [ 254, 255 ], [ 254, 256 ], [ 256, 257 ], [ 257, 258 ], [ 257, 259 ], [ 256, 260 ], [ 260, 261 ], [ 260, 262 ], [ 262, 263 ], [ 263, 264 ], [ 263, 265 ], [ 262, 266 ], [ 256, 267 ], [ 267, 268 ], [ 268, 269 ], [ 269, 270 ], [ 269, 271 ], [ 268, 272 ], [ 267, 273 ], [ 273, 274 ], [ 274, 275 ], [ 274, 276 ], [ 276, 277 ], [ 277, 278 ], [ 277, 279 ], [ 276, 280 ], [ 273, 281 ], [ 281, 282 ], [ 282, 283 ], [ 282, 284 ], [ 284, 285 ], [ 284, 286 ], [ 281, 287 ], [ 287, 288 ], [ 288, 289 ], [ 288, 290 ], [ 290, 291 ], [ 290, 292 ], [ 281, 293 ], [ 293, 294 ], [ 294, 295 ], [ 294, 296 ], [ 296, 297 ], [ 296, 298 ], [ 256, 299 ], [ 299, 300 ], [ 254, 301 ], [ 301, 302 ], [ 254, 303 ], [ 303, 304 ], [ 252, 305 ], [ 305, 306 ], [ 305, 307 ], [ 307, 308 ], [ 308, 309 ], [ 308, 310 ], [ 307, 311 ], [ 311, 312 ], [ 311, 313 ], [ 313, 314 ], [ 314, 315 ], [ 315, 316 ], [ 313, 317 ], [ 307, 318 ], [ 318, 319 ], [ 319, 320 ], [ 320, 321 ], [ 320, 322 ], [ 319, 323 ], [ 318, 324 ], [ 324, 325 ], [ 325, 326 ], [ 325, 327 ], [ 327, 328 ], [ 328, 329 ], [ 328, 330 ], [ 327, 331 ], [ 324, 332 ], [ 332, 333 ], [ 333, 334 ], [ 333, 335 ], [ 335, 336 ], [ 336, 337 ], [ 335, 338 ], [ 332, 339 ], [ 339, 340 ], [ 340, 341 ], [ 340, 342 ], [ 342, 343 ], [ 342, 344 ], [ 332, 345 ], [ 345, 346 ], [ 346, 347 ], [ 346, 348 ], [ 348, 349 ], [ 348, 350 ], [ 307, 351 ], [ 351, 352 ], [ 305, 353 ], [ 353, 354 ], [ 305, 355 ], [ 355, 356 ], [ 252, 357 ], [ 357, 358 ], [ 357, 359 ], [ 359, 360 ], [ 360, 361 ], [ 360, 362 ], [ 359, 363 ], [ 363, 364 ], [ 363, 365 ], [ 365, 366 ], [ 366, 367 ], [ 366, 368 ], [ 365, 369 ], [ 359, 370 ], [ 370, 371 ], [ 371, 372 ], [ 372, 373 ], [ 372, 374 ], [ 371, 375 ], [ 370, 376 ], [ 376, 377 ], [ 377, 378 ], [ 377, 379 ], [ 379, 380 ], [ 380, 381 ], [ 380, 382 ], [ 379, 383 ], [ 376, 384 ], [ 384, 385 ], [ 385, 386 ], [ 385, 387 ], [ 387, 388 ], [ 387, 389 ], [ 384, 390 ], [ 390, 391 ], [ 391, 392 ], [ 391, 393 ], [ 393, 394 ], [ 393, 395 ], [ 384, 396 ], [ 396, 397 ], [ 397, 398 ], [ 397, 399 ], [ 399, 400 ], [ 399, 401 ], [ 359, 402 ], [ 402, 403 ], [ 357, 404 ], [ 404, 405 ], [ 357, 406 ], [ 406, 407 ], [ 252, 408 ], [ 408, 409 ], [ 408, 410 ], [ 410, 411 ], [ 411, 412 ], [ 411, 413 ], [ 410, 414 ], [ 414, 415 ], [ 414, 416 ], [ 416, 417 ], [ 417, 418 ], [ 418, 419 ], [ 416, 420 ], [ 410, 421 ], [ 421, 422 ], [ 422, 423 ], [ 423, 424 ], [ 423, 425 ], [ 422, 426 ], [ 421, 427 ], [ 427, 428 ], [ 428, 429 ], [ 428, 430 ], [ 430, 431 ], [ 431, 432 ], [ 431, 433 ], [ 430, 434 ], [ 427, 435 ], [ 435, 436 ], [ 436, 437 ], [ 436, 438 ], [ 438, 439 ], [ 439, 440 ], [ 438, 441 ], [ 435, 442 ], [ 442, 443 ], [ 443, 444 ], [ 443, 445 ], [ 445, 446 ], [ 445, 447 ], [ 435, 448 ], [ 448, 449 ], [ 449, 450 ], [ 449, 451 ], [ 451, 452 ], [ 451, 453 ], [ 410, 454 ], [ 454, 455 ], [ 408, 456 ], [ 456, 457 ], [ 408, 458 ], [ 458, 459 ], [ 252, 460 ], [ 460, 461 ], [ 460, 462 ], [ 462, 463 ], [ 463, 464 ], [ 464, 465 ], [ 465, 466 ], [ 465, 467 ], [ 463, 468 ], [ 468, 469 ], [ 469, 470 ], [ 468, 471 ], [ 460, 472 ], [ 472, 473 ], [ 252, 474 ], [ 474, 475 ], [ 474, 476 ], [ 476, 477 ], [ 477, 478 ], [ 478, 479 ], [ 479, 480 ], [ 479, 481 ], [ 477, 482 ], [ 482, 483 ], [ 483, 484 ], [ 482, 485 ], [ 474, 486 ], [ 486, 487 ], [ 252, 488 ], [ 488, 489 ], [ 488, 490 ], [ 490, 491 ], [ 491, 492 ], [ 492, 493 ], [ 493, 494 ], [ 493, 495 ], [ 491, 496 ], [ 496, 497 ], [ 497, 498 ], [ 496, 499 ], [ 488, 500 ], [ 500, 501 ], [ 623, 502 ], [ 502, 503 ], [ 502, 504 ], [ 504, 505 ], [ 502, 506 ], [ 506, 507 ], [ 502, 508 ], [ 508, 509 ], [ 508, 510 ], [ 510, 511 ], [ 511, 512 ], [ 512, 513 ], [ 512, 514 ], [ 511, 515 ], [ 510, 516 ], [ 516, 517 ], [ 517, 518 ], [ 517, 519 ], [ 516, 520 ], [ 508, 521 ], [ 521, 522 ], [ 508, 523 ], [ 523, 524 ], [ 502, 525 ], [ 525, 526 ], [ 525, 527 ], [ 527, 528 ], [ 528, 529 ], [ 502, 530 ], [ 530, 531 ], [ 530, 532 ], [ 532, 533 ], [ 533, 534 ], [ 502, 535 ], [ 535, 536 ], [ 535, 537 ], [ 537, 538 ], [ 538, 539 ], [ 539, 540 ], [ 540, 541 ], [ 540, 542 ], [ 539, 543 ], [ 543, 544 ], [ 543, 545 ], [ 538, 546 ], [ 546, 547 ], [ 547, 548 ], [ 548, 549 ], [ 547, 550 ], [ 550, 551 ], [ 550, 552 ], [ 547, 553 ], [ 553, 554 ], [ 553, 555 ], [ 537, 556 ], [ 556, 557 ], [ 557, 558 ], [ 558, 559 ], [ 557, 560 ], [ 560, 561 ], [ 560, 562 ], [ 557, 563 ], [ 563, 564 ], [ 563, 565 ], [ 535, 566 ], [ 566, 567 ], [ 502, 568 ], [ 568, 569 ], [ 568, 570 ], [ 570, 571 ], [ 571, 572 ], [ 572, 573 ], [ 573, 574 ], [ 572, 575 ], [ 502, 576 ], [ 576, 577 ], [ 576, 578 ], [ 578, 579 ], [ 579, 580 ], [ 580, 581 ], [ 581, 582 ], [ 581, 583 ], [ 579, 584 ], [ 584, 585 ], [ 578, 586 ], [ 586, 587 ], [ 586, 588 ], [ 578, 589 ], [ 589, 590 ], [ 590, 591 ], [ 591, 592 ], [ 592, 593 ], [ 592, 594 ], [ 591, 595 ], [ 595, 596 ], [ 595, 597 ], [ 590, 598 ], [ 598, 599 ], [ 599, 600 ], [ 599, 601 ], [ 598, 602 ], [ 602, 603 ], [ 602, 604 ], [ 576, 605 ], [ 605, 606 ], [ 502, 607 ], [ 607, 608 ], [ 607, 609 ], [ 609, 610 ], [ 610, 611 ], [ 611, 612 ], [ 612, 613 ], [ 611, 614 ], [ 611, 615 ], [ 615, 616 ], [ 615, 617 ], [ 611, 618 ], [ 618, 619 ], [ 618, 620 ], [ 502, 621 ], [ 0, 622 ], [ 622, 623 ], [ 622, 624 ] ]
[ "\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.OutputStreamWriter;\nimport java.io.PrintWriter;\nimport java.util.*;\n\npublic class Main {\n static PrintWriter out;\n static CF_Reader in;\n static ArrayList<Integer>[] adj;\n\n public static void main(String[] args) throws IOException {\n out = new PrintWriter(new OutputStreamWriter(System.out));\n in = new CF_Reader();\n\n out.println((1000 - in.intNext() % 1000) % 1000);\n\n out.close();\n }\n\n\n static class CF_Reader {\n BufferedReader br;\n StringTokenizer st;\n\n public CF_Reader() throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n public ArrayList<Integer>[] adjacencyList(int n, int m) throws IOException {\n ArrayList<Integer>[] adj = new ArrayList[n + 1];\n for (int i = 1; i <= n; i++) adj[i] = new ArrayList<>();\n for (int i = 0; i < m; i++) {\n int a = intNext(), b = intNext();\n adj[a].add(b);\n adj[b].add(a);\n }\n return adj;\n }\n\n String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }\n\n long longNext() throws IOException {\n return Long.parseLong(next());\n }\n\n int intNext() throws IOException {\n return Integer.parseInt(next());\n }\n\n double doubleNext() throws IOException {\n return Double.parseDouble(next());\n }\n\n char charNext() throws IOException {\n return next().charAt(0);\n }\n\n public int[] nextIntArray(final int n) throws IOException {\n final int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = intNext();\n return a;\n }\n\n public long[] nextLongArray(final int n) throws IOException {\n final long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = longNext();\n return a;\n }\n\n String line() throws IOException {\n return br.readLine().trim();\n }\n }\n\n static class util {\n public static int upperBound(long[] array, long obj) {\n int l = 0, r = array.length - 1;\n while (r - l >= 0) {\n int c = (l + r) / 2;\n if (obj < array[c]) {\n r = c - 1;\n } else {\n l = c + 1;\n }\n }\n return l;\n }\n\n public static int upperBound(ArrayList<Long> array, long obj) {\n int l = 0, r = array.size() - 1;\n while (r - l >= 0) {\n int c = (l + r) / 2;\n if (obj < array.get(c)) {\n r = c - 1;\n } else {\n l = c + 1;\n }\n }\n return l;\n }\n\n public static int lowerBound(long[] array, long obj) {\n int l = 0, r = array.length - 1;\n while (r - l >= 0) {\n int c = (l + r) / 2;\n if (obj <= array[c]) {\n r = c - 1;\n } else {\n l = c + 1;\n }\n }\n return l;\n }\n\n public static int lowerBound(ArrayList<Long> array, long obj) {\n int l = 0, r = array.size() - 1;\n while (r - l >= 0) {\n int c = (l + r) / 2;\n if (obj <= array.get(c)) {\n r = c - 1;\n } else {\n l = c + 1;\n }\n }\n return l;\n }\n\n public static void print(long[] arr) {\n System.out.println(Arrays.toString(arr));\n }\n\n public static void print(int[] arr) {\n System.out.println(Arrays.toString(arr));\n }\n\n public static void print(char[] arr) {\n System.out.println(Arrays.toString(arr));\n }\n }\n\n static class Tuple implements Comparable<Tuple> {\n int a;\n int b;\n\n public Tuple(int a, int b) {\n this.a = a;\n this.b = b;\n }\n\n public int getA() {\n return a;\n }\n\n public int getB() {\n return b;\n }\n\n public int compareTo(Tuple other) {\n if (this.a == other.a) return Integer.compare(this.b, other.b);\n return Integer.compare(this.a, other.a);\n }\n\n @Override\n public int hashCode() {\n return Arrays.deepHashCode(new Integer[]{a, b});\n }\n\n @Override\n public boolean equals(Object o) {\n if (!(o instanceof Tuple)) return false;\n Tuple pairo = (Tuple) o;\n return (this.a == pairo.a && this.b == pairo.b);\n }\n\n @Override\n public String toString() {\n return String.format(\"%d,%d \", this.a, this.b);\n }\n }\n}\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.OutputStreamWriter;", "OutputStreamWriter", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.util.*;", "util.*", "java", "public class Main {\n static PrintWriter out;\n static CF_Reader in;\n static ArrayList<Integer>[] adj;\n\n public static void main(String[] args) throws IOException {\n out = new PrintWriter(new OutputStreamWriter(System.out));\n in = new CF_Reader();\n\n out.println((1000 - in.intNext() % 1000) % 1000);\n\n out.close();\n }\n\n\n static class CF_Reader {\n BufferedReader br;\n StringTokenizer st;\n\n public CF_Reader() throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n public ArrayList<Integer>[] adjacencyList(int n, int m) throws IOException {\n ArrayList<Integer>[] adj = new ArrayList[n + 1];\n for (int i = 1; i <= n; i++) adj[i] = new ArrayList<>();\n for (int i = 0; i < m; i++) {\n int a = intNext(), b = intNext();\n adj[a].add(b);\n adj[b].add(a);\n }\n return adj;\n }\n\n String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }\n\n long longNext() throws IOException {\n return Long.parseLong(next());\n }\n\n int intNext() throws IOException {\n return Integer.parseInt(next());\n }\n\n double doubleNext() throws IOException {\n return Double.parseDouble(next());\n }\n\n char charNext() throws IOException {\n return next().charAt(0);\n }\n\n public int[] nextIntArray(final int n) throws IOException {\n final int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = intNext();\n return a;\n }\n\n public long[] nextLongArray(final int n) throws IOException {\n final long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = longNext();\n return a;\n }\n\n String line() throws IOException {\n return br.readLine().trim();\n }\n }\n\n static class util {\n public static int upperBound(long[] array, long obj) {\n int l = 0, r = array.length - 1;\n while (r - l >= 0) {\n int c = (l + r) / 2;\n if (obj < array[c]) {\n r = c - 1;\n } else {\n l = c + 1;\n }\n }\n return l;\n }\n\n public static int upperBound(ArrayList<Long> array, long obj) {\n int l = 0, r = array.size() - 1;\n while (r - l >= 0) {\n int c = (l + r) / 2;\n if (obj < array.get(c)) {\n r = c - 1;\n } else {\n l = c + 1;\n }\n }\n return l;\n }\n\n public static int lowerBound(long[] array, long obj) {\n int l = 0, r = array.length - 1;\n while (r - l >= 0) {\n int c = (l + r) / 2;\n if (obj <= array[c]) {\n r = c - 1;\n } else {\n l = c + 1;\n }\n }\n return l;\n }\n\n public static int lowerBound(ArrayList<Long> array, long obj) {\n int l = 0, r = array.size() - 1;\n while (r - l >= 0) {\n int c = (l + r) / 2;\n if (obj <= array.get(c)) {\n r = c - 1;\n } else {\n l = c + 1;\n }\n }\n return l;\n }\n\n public static void print(long[] arr) {\n System.out.println(Arrays.toString(arr));\n }\n\n public static void print(int[] arr) {\n System.out.println(Arrays.toString(arr));\n }\n\n public static void print(char[] arr) {\n System.out.println(Arrays.toString(arr));\n }\n }\n\n static class Tuple implements Comparable<Tuple> {\n int a;\n int b;\n\n public Tuple(int a, int b) {\n this.a = a;\n this.b = b;\n }\n\n public int getA() {\n return a;\n }\n\n public int getB() {\n return b;\n }\n\n public int compareTo(Tuple other) {\n if (this.a == other.a) return Integer.compare(this.b, other.b);\n return Integer.compare(this.a, other.a);\n }\n\n @Override\n public int hashCode() {\n return Arrays.deepHashCode(new Integer[]{a, b});\n }\n\n @Override\n public boolean equals(Object o) {\n if (!(o instanceof Tuple)) return false;\n Tuple pairo = (Tuple) o;\n return (this.a == pairo.a && this.b == pairo.b);\n }\n\n @Override\n public String toString() {\n return String.format(\"%d,%d \", this.a, this.b);\n }\n }\n}", "Main", "static PrintWriter out;", "out", "static CF_Reader in;", "in", "static ArrayList<Integer>[] adj;", "adj", "public static void main(String[] args) throws IOException {\n out = new PrintWriter(new OutputStreamWriter(System.out));\n in = new CF_Reader();\n\n out.println((1000 - in.intNext() % 1000) % 1000);\n\n out.close();\n }", "main", "{\n out = new PrintWriter(new OutputStreamWriter(System.out));\n in = new CF_Reader();\n\n out.println((1000 - in.intNext() % 1000) % 1000);\n\n out.close();\n }", "out = new PrintWriter(new OutputStreamWriter(System.out))", "out", "new PrintWriter(new OutputStreamWriter(System.out))", "in = new CF_Reader()", "in", "new CF_Reader()", "out.println((1000 - in.intNext() % 1000) % 1000)", "out.println", "out", "(1000 - in.intNext() % 1000) % 1000", "(1000 - in.intNext() % 1000)", "1000", "in.intNext() % 1000", "in.intNext()", "in.intNext", "in", "1000", "1000", "out.close()", "out.close", "out", "String[] args", "args", "static class CF_Reader {\n BufferedReader br;\n StringTokenizer st;\n\n public CF_Reader() throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n public ArrayList<Integer>[] adjacencyList(int n, int m) throws IOException {\n ArrayList<Integer>[] adj = new ArrayList[n + 1];\n for (int i = 1; i <= n; i++) adj[i] = new ArrayList<>();\n for (int i = 0; i < m; i++) {\n int a = intNext(), b = intNext();\n adj[a].add(b);\n adj[b].add(a);\n }\n return adj;\n }\n\n String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }\n\n long longNext() throws IOException {\n return Long.parseLong(next());\n }\n\n int intNext() throws IOException {\n return Integer.parseInt(next());\n }\n\n double doubleNext() throws IOException {\n return Double.parseDouble(next());\n }\n\n char charNext() throws IOException {\n return next().charAt(0);\n }\n\n public int[] nextIntArray(final int n) throws IOException {\n final int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = intNext();\n return a;\n }\n\n public long[] nextLongArray(final int n) throws IOException {\n final long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = longNext();\n return a;\n }\n\n String line() throws IOException {\n return br.readLine().trim();\n }\n }", "CF_Reader", "BufferedReader br;", "br", "StringTokenizer st;", "st", "public CF_Reader() throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n }", "CF_Reader", "{\n br = new BufferedReader(new InputStreamReader(System.in));\n }", "br = new BufferedReader(new InputStreamReader(System.in))", "br", "new BufferedReader(new InputStreamReader(System.in))", "public ArrayList<Integer>[] adjacencyList(int n, int m) throws IOException {\n ArrayList<Integer>[] adj = new ArrayList[n + 1];\n for (int i = 1; i <= n; i++) adj[i] = new ArrayList<>();\n for (int i = 0; i < m; i++) {\n int a = intNext(), b = intNext();\n adj[a].add(b);\n adj[b].add(a);\n }\n return adj;\n }", "adjacencyList", "{\n ArrayList<Integer>[] adj = new ArrayList[n + 1];\n for (int i = 1; i <= n; i++) adj[i] = new ArrayList<>();\n for (int i = 0; i < m; i++) {\n int a = intNext(), b = intNext();\n adj[a].add(b);\n adj[b].add(a);\n }\n return adj;\n }", "ArrayList<Integer>[] adj = new ArrayList[n + 1];", "adj", "new ArrayList[n + 1]", "n + 1", "n", "1", "for (int i = 1; i <= n; i++) adj[i] = new ArrayList<>();", "int i = 1;", "int i = 1;", "i", "1", "i <= n", "i", "n", "i++", "i++", "i", "adj[i] = new ArrayList<>();", "adj[i] = new ArrayList<>()", "adj[i]", "adj", "i", "new ArrayList<>()", "for (int i = 0; i < m; i++) {\n int a = intNext(), b = intNext();\n adj[a].add(b);\n adj[b].add(a);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < m", "i", "m", "i++", "i++", "i", "{\n int a = intNext(), b = intNext();\n adj[a].add(b);\n adj[b].add(a);\n }", "{\n int a = intNext(), b = intNext();\n adj[a].add(b);\n adj[b].add(a);\n }", "int a = intNext()", "a", "intNext()", "intNext", "b = intNext();", "b", "intNext()", "intNext", "adj[a].add(b)", "adj[a].add", "adj[a]", "adj", "a", "b", "adj[b].add(a)", "adj[b].add", "adj[b]", "adj", "b", "a", "return adj;", "adj", "int n", "n", "int m", "m", "String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }", "next", "{\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }", "while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());", "st == null || !st.hasMoreTokens()", "st == null", "st", "null", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "st = new StringTokenizer(br.readLine().trim())", "st", "new StringTokenizer(br.readLine().trim())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "long longNext() throws IOException {\n return Long.parseLong(next());\n }", "longNext", "{\n return Long.parseLong(next());\n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "int intNext() throws IOException {\n return Integer.parseInt(next());\n }", "intNext", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "double doubleNext() throws IOException {\n return Double.parseDouble(next());\n }", "doubleNext", "{\n return Double.parseDouble(next());\n }", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "char charNext() throws IOException {\n return next().charAt(0);\n }", "charNext", "{\n return next().charAt(0);\n }", "return next().charAt(0);", "next().charAt(0)", "next().charAt", "next()", "next", "0", "public int[] nextIntArray(final int n) throws IOException {\n final int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = intNext();\n return a;\n }", "nextIntArray", "{\n final int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = intNext();\n return a;\n }", "final int[] a = new int[n];", "a", "new int[n]", "n", "for (int i = 0; i < n; i++)\n a[i] = intNext();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "a[i] = intNext();", "a[i] = intNext()", "a[i]", "a", "i", "intNext()", "intNext", "return a;", "a", "final int n", "n", "public long[] nextLongArray(final int n) throws IOException {\n final long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = longNext();\n return a;\n }", "nextLongArray", "{\n final long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = longNext();\n return a;\n }", "final long[] a = new long[n];", "a", "new long[n]", "n", "for (int i = 0; i < n; i++)\n a[i] = longNext();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "a[i] = longNext();", "a[i] = longNext()", "a[i]", "a", "i", "longNext()", "longNext", "return a;", "a", "final int n", "n", "String line() throws IOException {\n return br.readLine().trim();\n }", "line", "{\n return br.readLine().trim();\n }", "return br.readLine().trim();", "br.readLine().trim()", "br.readLine().trim", "br.readLine()", "br.readLine", "br", "static class util {\n public static int upperBound(long[] array, long obj) {\n int l = 0, r = array.length - 1;\n while (r - l >= 0) {\n int c = (l + r) / 2;\n if (obj < array[c]) {\n r = c - 1;\n } else {\n l = c + 1;\n }\n }\n return l;\n }\n\n public static int upperBound(ArrayList<Long> array, long obj) {\n int l = 0, r = array.size() - 1;\n while (r - l >= 0) {\n int c = (l + r) / 2;\n if (obj < array.get(c)) {\n r = c - 1;\n } else {\n l = c + 1;\n }\n }\n return l;\n }\n\n public static int lowerBound(long[] array, long obj) {\n int l = 0, r = array.length - 1;\n while (r - l >= 0) {\n int c = (l + r) / 2;\n if (obj <= array[c]) {\n r = c - 1;\n } else {\n l = c + 1;\n }\n }\n return l;\n }\n\n public static int lowerBound(ArrayList<Long> array, long obj) {\n int l = 0, r = array.size() - 1;\n while (r - l >= 0) {\n int c = (l + r) / 2;\n if (obj <= array.get(c)) {\n r = c - 1;\n } else {\n l = c + 1;\n }\n }\n return l;\n }\n\n public static void print(long[] arr) {\n System.out.println(Arrays.toString(arr));\n }\n\n public static void print(int[] arr) {\n System.out.println(Arrays.toString(arr));\n }\n\n public static void print(char[] arr) {\n System.out.println(Arrays.toString(arr));\n }\n }", "util", "public static int upperBound(long[] array, long obj) {\n int l = 0, r = array.length - 1;\n while (r - l >= 0) {\n int c = (l + r) / 2;\n if (obj < array[c]) {\n r = c - 1;\n } else {\n l = c + 1;\n }\n }\n return l;\n }", "upperBound", "{\n int l = 0, r = array.length - 1;\n while (r - l >= 0) {\n int c = (l + r) / 2;\n if (obj < array[c]) {\n r = c - 1;\n } else {\n l = c + 1;\n }\n }\n return l;\n }", "int l = 0", "l", "0", "r = array.length - 1;", "r", "array.length - 1", "array.length", "array", "array.length", "1", "while (r - l >= 0) {\n int c = (l + r) / 2;\n if (obj < array[c]) {\n r = c - 1;\n } else {\n l = c + 1;\n }\n }", "r - l >= 0", "r - l", "r", "l", "0", "{\n int c = (l + r) / 2;\n if (obj < array[c]) {\n r = c - 1;\n } else {\n l = c + 1;\n }\n }", "int c = (l + r) / 2;", "c", "(l + r) / 2", "(l + r)", "l", "r", "2", "if (obj < array[c]) {\n r = c - 1;\n } else {\n l = c + 1;\n }", "obj < array[c]", "obj", "array[c]", "array", "c", "{\n r = c - 1;\n }", "r = c - 1", "r", "c - 1", "c", "1", "{\n l = c + 1;\n }", "l = c + 1", "l", "c + 1", "c", "1", "return l;", "l", "long[] array", "array", "long obj", "obj", "public static int upperBound(ArrayList<Long> array, long obj) {\n int l = 0, r = array.size() - 1;\n while (r - l >= 0) {\n int c = (l + r) / 2;\n if (obj < array.get(c)) {\n r = c - 1;\n } else {\n l = c + 1;\n }\n }\n return l;\n }", "upperBound", "{\n int l = 0, r = array.size() - 1;\n while (r - l >= 0) {\n int c = (l + r) / 2;\n if (obj < array.get(c)) {\n r = c - 1;\n } else {\n l = c + 1;\n }\n }\n return l;\n }", "int l = 0", "l", "0", "r = array.size() - 1;", "r", "array.size() - 1", "array.size()", "array.size", "array", "1", "while (r - l >= 0) {\n int c = (l + r) / 2;\n if (obj < array.get(c)) {\n r = c - 1;\n } else {\n l = c + 1;\n }\n }", "r - l >= 0", "r - l", "r", "l", "0", "{\n int c = (l + r) / 2;\n if (obj < array.get(c)) {\n r = c - 1;\n } else {\n l = c + 1;\n }\n }", "int c = (l + r) / 2;", "c", "(l + r) / 2", "(l + r)", "l", "r", "2", "if (obj < array.get(c)) {\n r = c - 1;\n } else {\n l = c + 1;\n }", "obj < array.get(c)", "obj", "array.get(c)", "array.get", "array", "c", "{\n r = c - 1;\n }", "r = c - 1", "r", "c - 1", "c", "1", "{\n l = c + 1;\n }", "l = c + 1", "l", "c + 1", "c", "1", "return l;", "l", "ArrayList<Long> array", "array", "long obj", "obj", "public static int lowerBound(long[] array, long obj) {\n int l = 0, r = array.length - 1;\n while (r - l >= 0) {\n int c = (l + r) / 2;\n if (obj <= array[c]) {\n r = c - 1;\n } else {\n l = c + 1;\n }\n }\n return l;\n }", "lowerBound", "{\n int l = 0, r = array.length - 1;\n while (r - l >= 0) {\n int c = (l + r) / 2;\n if (obj <= array[c]) {\n r = c - 1;\n } else {\n l = c + 1;\n }\n }\n return l;\n }", "int l = 0", "l", "0", "r = array.length - 1;", "r", "array.length - 1", "array.length", "array", "array.length", "1", "while (r - l >= 0) {\n int c = (l + r) / 2;\n if (obj <= array[c]) {\n r = c - 1;\n } else {\n l = c + 1;\n }\n }", "r - l >= 0", "r - l", "r", "l", "0", "{\n int c = (l + r) / 2;\n if (obj <= array[c]) {\n r = c - 1;\n } else {\n l = c + 1;\n }\n }", "int c = (l + r) / 2;", "c", "(l + r) / 2", "(l + r)", "l", "r", "2", "if (obj <= array[c]) {\n r = c - 1;\n } else {\n l = c + 1;\n }", "obj <= array[c]", "obj", "array[c]", "array", "c", "{\n r = c - 1;\n }", "r = c - 1", "r", "c - 1", "c", "1", "{\n l = c + 1;\n }", "l = c + 1", "l", "c + 1", "c", "1", "return l;", "l", "long[] array", "array", "long obj", "obj", "public static int lowerBound(ArrayList<Long> array, long obj) {\n int l = 0, r = array.size() - 1;\n while (r - l >= 0) {\n int c = (l + r) / 2;\n if (obj <= array.get(c)) {\n r = c - 1;\n } else {\n l = c + 1;\n }\n }\n return l;\n }", "lowerBound", "{\n int l = 0, r = array.size() - 1;\n while (r - l >= 0) {\n int c = (l + r) / 2;\n if (obj <= array.get(c)) {\n r = c - 1;\n } else {\n l = c + 1;\n }\n }\n return l;\n }", "int l = 0", "l", "0", "r = array.size() - 1;", "r", "array.size() - 1", "array.size()", "array.size", "array", "1", "while (r - l >= 0) {\n int c = (l + r) / 2;\n if (obj <= array.get(c)) {\n r = c - 1;\n } else {\n l = c + 1;\n }\n }", "r - l >= 0", "r - l", "r", "l", "0", "{\n int c = (l + r) / 2;\n if (obj <= array.get(c)) {\n r = c - 1;\n } else {\n l = c + 1;\n }\n }", "int c = (l + r) / 2;", "c", "(l + r) / 2", "(l + r)", "l", "r", "2", "if (obj <= array.get(c)) {\n r = c - 1;\n } else {\n l = c + 1;\n }", "obj <= array.get(c)", "obj", "array.get(c)", "array.get", "array", "c", "{\n r = c - 1;\n }", "r = c - 1", "r", "c - 1", "c", "1", "{\n l = c + 1;\n }", "l = c + 1", "l", "c + 1", "c", "1", "return l;", "l", "ArrayList<Long> array", "array", "long obj", "obj", "public static void print(long[] arr) {\n System.out.println(Arrays.toString(arr));\n }", "print", "{\n System.out.println(Arrays.toString(arr));\n }", "System.out.println(Arrays.toString(arr))", "System.out.println", "System.out", "System", "System.out", "Arrays.toString(arr)", "Arrays.toString", "Arrays", "arr", "long[] arr", "arr", "public static void print(int[] arr) {\n System.out.println(Arrays.toString(arr));\n }", "print", "{\n System.out.println(Arrays.toString(arr));\n }", "System.out.println(Arrays.toString(arr))", "System.out.println", "System.out", "System", "System.out", "Arrays.toString(arr)", "Arrays.toString", "Arrays", "arr", "int[] arr", "arr", "public static void print(char[] arr) {\n System.out.println(Arrays.toString(arr));\n }", "print", "{\n System.out.println(Arrays.toString(arr));\n }", "System.out.println(Arrays.toString(arr))", "System.out.println", "System.out", "System", "System.out", "Arrays.toString(arr)", "Arrays.toString", "Arrays", "arr", "char[] arr", "arr", "static class Tuple implements Comparable<Tuple> {\n int a;\n int b;\n\n public Tuple(int a, int b) {\n this.a = a;\n this.b = b;\n }\n\n public int getA() {\n return a;\n }\n\n public int getB() {\n return b;\n }\n\n public int compareTo(Tuple other) {\n if (this.a == other.a) return Integer.compare(this.b, other.b);\n return Integer.compare(this.a, other.a);\n }\n\n @Override\n public int hashCode() {\n return Arrays.deepHashCode(new Integer[]{a, b});\n }\n\n @Override\n public boolean equals(Object o) {\n if (!(o instanceof Tuple)) return false;\n Tuple pairo = (Tuple) o;\n return (this.a == pairo.a && this.b == pairo.b);\n }\n\n @Override\n public String toString() {\n return String.format(\"%d,%d \", this.a, this.b);\n }\n }", "Tuple", "int a;", "a", "int b;", "b", "public Tuple(int a, int b) {\n this.a = a;\n this.b = b;\n }", "Tuple", "{\n this.a = a;\n this.b = b;\n }", "this.a = a", "this.a", "this", "this.a", "a", "this.b = b", "this.b", "this", "this.b", "b", "int a", "a", "int b", "b", "public int getA() {\n return a;\n }", "getA", "{\n return a;\n }", "return a;", "a", "public int getB() {\n return b;\n }", "getB", "{\n return b;\n }", "return b;", "b", "public int compareTo(Tuple other) {\n if (this.a == other.a) return Integer.compare(this.b, other.b);\n return Integer.compare(this.a, other.a);\n }", "compareTo", "{\n if (this.a == other.a) return Integer.compare(this.b, other.b);\n return Integer.compare(this.a, other.a);\n }", "if (this.a == other.a) return Integer.compare(this.b, other.b);", "this.a == other.a", "this.a", "this", "this.a", "other.a", "other", "other.a", "return Integer.compare(this.b, other.b);", "Integer.compare(this.b, other.b)", "Integer.compare", "Integer", "this.b", "this", "this.b", "other.b", "other", "other.b", "return Integer.compare(this.a, other.a);", "Integer.compare(this.a, other.a)", "Integer.compare", "Integer", "this.a", "this", "this.a", "other.a", "other", "other.a", "Tuple other", "other", "@Override\n public int hashCode() {\n return Arrays.deepHashCode(new Integer[]{a, b});\n }", "hashCode", "{\n return Arrays.deepHashCode(new Integer[]{a, b});\n }", "return Arrays.deepHashCode(new Integer[]{a, b});", "Arrays.deepHashCode(new Integer[]{a, b})", "Arrays.deepHashCode", "Arrays", "new Integer[]{a, b}", "@Override\n public boolean equals(Object o) {\n if (!(o instanceof Tuple)) return false;\n Tuple pairo = (Tuple) o;\n return (this.a == pairo.a && this.b == pairo.b);\n }", "equals", "{\n if (!(o instanceof Tuple)) return false;\n Tuple pairo = (Tuple) o;\n return (this.a == pairo.a && this.b == pairo.b);\n }", "if (!(o instanceof Tuple)) return false;", "!(o instanceof Tuple)", "(o instanceof Tuple)", "o", "Tuple", "return false;", "false", "Tuple pairo = (Tuple) o;", "pairo", "(Tuple) o", "return (this.a == pairo.a && this.b == pairo.b);", "(this.a == pairo.a && this.b == pairo.b)", "this.a == pairo.a", "this.a", "this", "this.a", "pairo.a", "pairo", "pairo.a", "this.b == pairo.b", "this.b", "this", "this.b", "pairo.b", "pairo", "pairo.b", "Object o", "o", "@Override\n public String toString() {\n return String.format(\"%d,%d \", this.a, this.b);\n }", "toString", "{\n return String.format(\"%d,%d \", this.a, this.b);\n }", "return String.format(\"%d,%d \", this.a, this.b);", "String.format(\"%d,%d \", this.a, this.b)", "String.format", "String", "\"%d,%d \"", "this.a", "this", "this.a", "this.b", "this", "this.b", "Comparable", "public class Main {\n static PrintWriter out;\n static CF_Reader in;\n static ArrayList<Integer>[] adj;\n\n public static void main(String[] args) throws IOException {\n out = new PrintWriter(new OutputStreamWriter(System.out));\n in = new CF_Reader();\n\n out.println((1000 - in.intNext() % 1000) % 1000);\n\n out.close();\n }\n\n\n static class CF_Reader {\n BufferedReader br;\n StringTokenizer st;\n\n public CF_Reader() throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n public ArrayList<Integer>[] adjacencyList(int n, int m) throws IOException {\n ArrayList<Integer>[] adj = new ArrayList[n + 1];\n for (int i = 1; i <= n; i++) adj[i] = new ArrayList<>();\n for (int i = 0; i < m; i++) {\n int a = intNext(), b = intNext();\n adj[a].add(b);\n adj[b].add(a);\n }\n return adj;\n }\n\n String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }\n\n long longNext() throws IOException {\n return Long.parseLong(next());\n }\n\n int intNext() throws IOException {\n return Integer.parseInt(next());\n }\n\n double doubleNext() throws IOException {\n return Double.parseDouble(next());\n }\n\n char charNext() throws IOException {\n return next().charAt(0);\n }\n\n public int[] nextIntArray(final int n) throws IOException {\n final int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = intNext();\n return a;\n }\n\n public long[] nextLongArray(final int n) throws IOException {\n final long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = longNext();\n return a;\n }\n\n String line() throws IOException {\n return br.readLine().trim();\n }\n }\n\n static class util {\n public static int upperBound(long[] array, long obj) {\n int l = 0, r = array.length - 1;\n while (r - l >= 0) {\n int c = (l + r) / 2;\n if (obj < array[c]) {\n r = c - 1;\n } else {\n l = c + 1;\n }\n }\n return l;\n }\n\n public static int upperBound(ArrayList<Long> array, long obj) {\n int l = 0, r = array.size() - 1;\n while (r - l >= 0) {\n int c = (l + r) / 2;\n if (obj < array.get(c)) {\n r = c - 1;\n } else {\n l = c + 1;\n }\n }\n return l;\n }\n\n public static int lowerBound(long[] array, long obj) {\n int l = 0, r = array.length - 1;\n while (r - l >= 0) {\n int c = (l + r) / 2;\n if (obj <= array[c]) {\n r = c - 1;\n } else {\n l = c + 1;\n }\n }\n return l;\n }\n\n public static int lowerBound(ArrayList<Long> array, long obj) {\n int l = 0, r = array.size() - 1;\n while (r - l >= 0) {\n int c = (l + r) / 2;\n if (obj <= array.get(c)) {\n r = c - 1;\n } else {\n l = c + 1;\n }\n }\n return l;\n }\n\n public static void print(long[] arr) {\n System.out.println(Arrays.toString(arr));\n }\n\n public static void print(int[] arr) {\n System.out.println(Arrays.toString(arr));\n }\n\n public static void print(char[] arr) {\n System.out.println(Arrays.toString(arr));\n }\n }\n\n static class Tuple implements Comparable<Tuple> {\n int a;\n int b;\n\n public Tuple(int a, int b) {\n this.a = a;\n this.b = b;\n }\n\n public int getA() {\n return a;\n }\n\n public int getB() {\n return b;\n }\n\n public int compareTo(Tuple other) {\n if (this.a == other.a) return Integer.compare(this.b, other.b);\n return Integer.compare(this.a, other.a);\n }\n\n @Override\n public int hashCode() {\n return Arrays.deepHashCode(new Integer[]{a, b});\n }\n\n @Override\n public boolean equals(Object o) {\n if (!(o instanceof Tuple)) return false;\n Tuple pairo = (Tuple) o;\n return (this.a == pairo.a && this.b == pairo.b);\n }\n\n @Override\n public String toString() {\n return String.format(\"%d,%d \", this.a, this.b);\n }\n }\n}", "public class Main {\n static PrintWriter out;\n static CF_Reader in;\n static ArrayList<Integer>[] adj;\n\n public static void main(String[] args) throws IOException {\n out = new PrintWriter(new OutputStreamWriter(System.out));\n in = new CF_Reader();\n\n out.println((1000 - in.intNext() % 1000) % 1000);\n\n out.close();\n }\n\n\n static class CF_Reader {\n BufferedReader br;\n StringTokenizer st;\n\n public CF_Reader() throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n public ArrayList<Integer>[] adjacencyList(int n, int m) throws IOException {\n ArrayList<Integer>[] adj = new ArrayList[n + 1];\n for (int i = 1; i <= n; i++) adj[i] = new ArrayList<>();\n for (int i = 0; i < m; i++) {\n int a = intNext(), b = intNext();\n adj[a].add(b);\n adj[b].add(a);\n }\n return adj;\n }\n\n String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }\n\n long longNext() throws IOException {\n return Long.parseLong(next());\n }\n\n int intNext() throws IOException {\n return Integer.parseInt(next());\n }\n\n double doubleNext() throws IOException {\n return Double.parseDouble(next());\n }\n\n char charNext() throws IOException {\n return next().charAt(0);\n }\n\n public int[] nextIntArray(final int n) throws IOException {\n final int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = intNext();\n return a;\n }\n\n public long[] nextLongArray(final int n) throws IOException {\n final long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = longNext();\n return a;\n }\n\n String line() throws IOException {\n return br.readLine().trim();\n }\n }\n\n static class util {\n public static int upperBound(long[] array, long obj) {\n int l = 0, r = array.length - 1;\n while (r - l >= 0) {\n int c = (l + r) / 2;\n if (obj < array[c]) {\n r = c - 1;\n } else {\n l = c + 1;\n }\n }\n return l;\n }\n\n public static int upperBound(ArrayList<Long> array, long obj) {\n int l = 0, r = array.size() - 1;\n while (r - l >= 0) {\n int c = (l + r) / 2;\n if (obj < array.get(c)) {\n r = c - 1;\n } else {\n l = c + 1;\n }\n }\n return l;\n }\n\n public static int lowerBound(long[] array, long obj) {\n int l = 0, r = array.length - 1;\n while (r - l >= 0) {\n int c = (l + r) / 2;\n if (obj <= array[c]) {\n r = c - 1;\n } else {\n l = c + 1;\n }\n }\n return l;\n }\n\n public static int lowerBound(ArrayList<Long> array, long obj) {\n int l = 0, r = array.size() - 1;\n while (r - l >= 0) {\n int c = (l + r) / 2;\n if (obj <= array.get(c)) {\n r = c - 1;\n } else {\n l = c + 1;\n }\n }\n return l;\n }\n\n public static void print(long[] arr) {\n System.out.println(Arrays.toString(arr));\n }\n\n public static void print(int[] arr) {\n System.out.println(Arrays.toString(arr));\n }\n\n public static void print(char[] arr) {\n System.out.println(Arrays.toString(arr));\n }\n }\n\n static class Tuple implements Comparable<Tuple> {\n int a;\n int b;\n\n public Tuple(int a, int b) {\n this.a = a;\n this.b = b;\n }\n\n public int getA() {\n return a;\n }\n\n public int getB() {\n return b;\n }\n\n public int compareTo(Tuple other) {\n if (this.a == other.a) return Integer.compare(this.b, other.b);\n return Integer.compare(this.a, other.a);\n }\n\n @Override\n public int hashCode() {\n return Arrays.deepHashCode(new Integer[]{a, b});\n }\n\n @Override\n public boolean equals(Object o) {\n if (!(o instanceof Tuple)) return false;\n Tuple pairo = (Tuple) o;\n return (this.a == pairo.a && this.b == pairo.b);\n }\n\n @Override\n public String toString() {\n return String.format(\"%d,%d \", this.a, this.b);\n }\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.io.PrintWriter; import java.util.*; public class Main { static PrintWriter out; static CF_Reader in; static ArrayList<Integer>[] adj; public static void main(String[] args) throws IOException { out = new PrintWriter(new OutputStreamWriter(System.out)); in = new CF_Reader(); out.println((1000 - in.intNext() % 1000) % 1000); out.close(); } static class CF_Reader { BufferedReader br; StringTokenizer st; public CF_Reader() throws IOException { br = new BufferedReader(new InputStreamReader(System.in)); } public ArrayList<Integer>[] adjacencyList(int n, int m) throws IOException { ArrayList<Integer>[] adj = new ArrayList[n + 1]; for (int i = 1; i <= n; i++) adj[i] = new ArrayList<>(); for (int i = 0; i < m; i++) { int a = intNext(), b = intNext(); adj[a].add(b); adj[b].add(a); } return adj; } String next() throws IOException { while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine().trim()); return st.nextToken(); } long longNext() throws IOException { return Long.parseLong(next()); } int intNext() throws IOException { return Integer.parseInt(next()); } double doubleNext() throws IOException { return Double.parseDouble(next()); } char charNext() throws IOException { return next().charAt(0); } public int[] nextIntArray(final int n) throws IOException { final int[] a = new int[n]; for (int i = 0; i < n; i++) a[i] = intNext(); return a; } public long[] nextLongArray(final int n) throws IOException { final long[] a = new long[n]; for (int i = 0; i < n; i++) a[i] = longNext(); return a; } String line() throws IOException { return br.readLine().trim(); } } static class util { public static int upperBound(long[] array, long obj) { int l = 0, r = array.length - 1; while (r - l >= 0) { int c = (l + r) / 2; if (obj < array[c]) { r = c - 1; } else { l = c + 1; } } return l; } public static int upperBound(ArrayList<Long> array, long obj) { int l = 0, r = array.size() - 1; while (r - l >= 0) { int c = (l + r) / 2; if (obj < array.get(c)) { r = c - 1; } else { l = c + 1; } } return l; } public static int lowerBound(long[] array, long obj) { int l = 0, r = array.length - 1; while (r - l >= 0) { int c = (l + r) / 2; if (obj <= array[c]) { r = c - 1; } else { l = c + 1; } } return l; } public static int lowerBound(ArrayList<Long> array, long obj) { int l = 0, r = array.size() - 1; while (r - l >= 0) { int c = (l + r) / 2; if (obj <= array.get(c)) { r = c - 1; } else { l = c + 1; } } return l; } public static void print(long[] arr) { System.out.println(Arrays.toString(arr)); } public static void print(int[] arr) { System.out.println(Arrays.toString(arr)); } public static void print(char[] arr) { System.out.println(Arrays.toString(arr)); } } static class Tuple implements Comparable<Tuple> { int a; int b; public Tuple(int a, int b) { this.a = a; this.b = b; } public int getA() { return a; } public int getB() { return b; } public int compareTo(Tuple other) { if (this.a == other.a) return Integer.compare(this.b, other.b); return Integer.compare(this.a, other.a); } @Override public int hashCode() { return Arrays.deepHashCode(new Integer[]{a, b}); } @Override public boolean equals(Object o) { if (!(o instanceof Tuple)) return false; Tuple pairo = (Tuple) o; return (this.a == pairo.a && this.b == pairo.b); } @Override public String toString() { return String.format("%d,%d ", this.a, this.b); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 13, 2, 17, 13, 14, 2, 2, 13, 13, 17, 30, 0, 13, 2, 13, 13, 3, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 63, 5 ], [ 63, 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 ], [ 23, 28 ], [ 28, 29 ], [ 28, 30 ], [ 23, 31 ], [ 31, 32 ], [ 32, 33 ], [ 23, 34 ], [ 35, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 38, 40 ], [ 35, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 41, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 50, 52 ], [ 47, 53 ], [ 8, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 6, 60 ], [ 60, 61 ], [ 0, 62 ], [ 62, 63 ], [ 62, 64 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(final String[] args) {\n Scanner scan = new Scanner(System.in);\n int inputStr = scan.nextInt();//ここでコンソールに入力したものを取得\n // System.out.println(\"Hello World!\");\n int money = 0;\n int otsuri = 0;\n for(int i=1; i<=10; i++){\n money = 1000*i;\n if(money-inputStr >= 0){\n otsuri = money-inputStr;\n break;\n }\n }\n System.out.println(otsuri);\n }\n \n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(final String[] args) {\n Scanner scan = new Scanner(System.in);\n int inputStr = scan.nextInt();//ここでコンソールに入力したものを取得\n // System.out.println(\"Hello World!\");\n int money = 0;\n int otsuri = 0;\n for(int i=1; i<=10; i++){\n money = 1000*i;\n if(money-inputStr >= 0){\n otsuri = money-inputStr;\n break;\n }\n }\n System.out.println(otsuri);\n }\n \n}", "Main", "public static void main(final String[] args) {\n Scanner scan = new Scanner(System.in);\n int inputStr = scan.nextInt();//ここでコンソールに入力したものを取得\n // System.out.println(\"Hello World!\");\n int money = 0;\n int otsuri = 0;\n for(int i=1; i<=10; i++){\n money = 1000*i;\n if(money-inputStr >= 0){\n otsuri = money-inputStr;\n break;\n }\n }\n System.out.println(otsuri);\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n int inputStr = scan.nextInt();//ここでコンソールに入力したものを取得\n // System.out.println(\"Hello World!\");\n int money = 0;\n int otsuri = 0;\n for(int i=1; i<=10; i++){\n money = 1000*i;\n if(money-inputStr >= 0){\n otsuri = money-inputStr;\n break;\n }\n }\n System.out.println(otsuri);\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int inputStr = scan.nextInt();", "inputStr", "scan.nextInt()", "scan.nextInt", "scan", "int money = 0;", "money", "0", "int otsuri = 0;", "otsuri", "0", "for(int i=1; i<=10; i++){\n money = 1000*i;\n if(money-inputStr >= 0){\n otsuri = money-inputStr;\n break;\n }\n }", "int i=1;", "int i=1;", "i", "1", "i<=10", "i", "10", "i++", "i++", "i", "{\n money = 1000*i;\n if(money-inputStr >= 0){\n otsuri = money-inputStr;\n break;\n }\n }", "{\n money = 1000*i;\n if(money-inputStr >= 0){\n otsuri = money-inputStr;\n break;\n }\n }", "money = 1000*i", "money", "1000*i", "1000", "i", "if(money-inputStr >= 0){\n otsuri = money-inputStr;\n break;\n }", "money-inputStr >= 0", "money-inputStr", "money", "inputStr", "0", "{\n otsuri = money-inputStr;\n break;\n }", "otsuri = money-inputStr", "otsuri", "money-inputStr", "money", "inputStr", "break;", "System.out.println(otsuri)", "System.out.println", "System.out", "System", "System.out", "otsuri", "final String[] args", "args", "public class Main {\n\n public static void main(final String[] args) {\n Scanner scan = new Scanner(System.in);\n int inputStr = scan.nextInt();//ここでコンソールに入力したものを取得\n // System.out.println(\"Hello World!\");\n int money = 0;\n int otsuri = 0;\n for(int i=1; i<=10; i++){\n money = 1000*i;\n if(money-inputStr >= 0){\n otsuri = money-inputStr;\n break;\n }\n }\n System.out.println(otsuri);\n }\n \n}", "public class Main {\n\n public static void main(final String[] args) {\n Scanner scan = new Scanner(System.in);\n int inputStr = scan.nextInt();//ここでコンソールに入力したものを取得\n // System.out.println(\"Hello World!\");\n int money = 0;\n int otsuri = 0;\n for(int i=1; i<=10; i++){\n money = 1000*i;\n if(money-inputStr >= 0){\n otsuri = money-inputStr;\n break;\n }\n }\n System.out.println(otsuri);\n }\n \n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(final String[] args) { Scanner scan = new Scanner(System.in); int inputStr = scan.nextInt();//ここでコンソールに入力したものを取得 // System.out.println("Hello World!"); int money = 0; int otsuri = 0; for(int i=1; i<=10; i++){ money = 1000*i; if(money-inputStr >= 0){ otsuri = money-inputStr; break; } } System.out.println(otsuri); } }
[ 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, 17, 2, 17, 2, 13, 17, 4, 18, 18, 13, 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 ], [ 19, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 19, 25 ], [ 19, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 28, 30 ], [ 8, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 31, 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 n = sc.nextInt();\n int ans = (n % 1000 == 0) ? 0 : 1000 - (n % 1000);\n System.out.println(ans);\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 int ans = (n % 1000 == 0) ? 0 : 1000 - (n % 1000);\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 ans = (n % 1000 == 0) ? 0 : 1000 - (n % 1000);\n System.out.println(ans);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int ans = (n % 1000 == 0) ? 0 : 1000 - (n % 1000);\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 ans = (n % 1000 == 0) ? 0 : 1000 - (n % 1000);", "ans", "(n % 1000 == 0) ? 0 : 1000 - (n % 1000)", "(n % 1000 == 0)", "n % 1000", "n", "1000", "0", "0", "1000 - (n % 1000)", "1000", "(n % 1000)", "n", "1000", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "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 int ans = (n % 1000 == 0) ? 0 : 1000 - (n % 1000);\n System.out.println(ans);\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 int ans = (n % 1000 == 0) ? 0 : 1000 - (n % 1000);\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); int n = sc.nextInt(); int ans = (n % 1000 == 0) ? 0 : 1000 - (n % 1000); System.out.println(ans); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 2, 13, 17, 41, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 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 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 24, 27 ], [ 8, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 28, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 33, 37 ], [ 6, 38 ], [ 38, 39 ], [ 0, 40 ], [ 40, 41 ], [ 40, 42 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n\n Scanner sc= new Scanner(System.in);\n\n int num = sc.nextInt();\n\n float f = num/1000f;\n\n int l = (int)(Math.ceil(f));\n System.out.println(l*1000-num);\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 num = sc.nextInt();\n\n float f = num/1000f;\n\n int l = (int)(Math.ceil(f));\n System.out.println(l*1000-num);\n }\n}", "Main", "public static void main(String[] args) {\n\n Scanner sc= new Scanner(System.in);\n\n int num = sc.nextInt();\n\n float f = num/1000f;\n\n int l = (int)(Math.ceil(f));\n System.out.println(l*1000-num);\n }", "main", "{\n\n Scanner sc= new Scanner(System.in);\n\n int num = sc.nextInt();\n\n float f = num/1000f;\n\n int l = (int)(Math.ceil(f));\n System.out.println(l*1000-num);\n }", "Scanner sc= new Scanner(System.in);", "sc", "new Scanner(System.in)", "int num = sc.nextInt();", "num", "sc.nextInt()", "sc.nextInt", "sc", "float f = num/1000f;", "f", "num/1000f", "num", "1000f", "int l = (int)(Math.ceil(f));", "l", "(int)(Math.ceil(f))", "Math.ceil", "Math", "f", "System.out.println(l*1000-num)", "System.out.println", "System.out", "System", "System.out", "l*1000-num", "l*1000", "l", "1000", "num", "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 num = sc.nextInt();\n\n float f = num/1000f;\n\n int l = (int)(Math.ceil(f));\n System.out.println(l*1000-num);\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n\n Scanner sc= new Scanner(System.in);\n\n int num = sc.nextInt();\n\n float f = num/1000f;\n\n int l = (int)(Math.ceil(f));\n System.out.println(l*1000-num);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc= new Scanner(System.in); int num = sc.nextInt(); float f = num/1000f; int l = (int)(Math.ceil(f)); System.out.println(l*1000-num); } }
[ 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, 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, 18, 13, 13, 2, 2, 17, 2, 13, 17, 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, 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 ], [ 151, 26 ], [ 151, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 32, 34 ], [ 29, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 37, 39 ], [ 29, 40 ], [ 40, 41 ], [ 40, 42 ], [ 29, 43 ], [ 43, 44 ], [ 43, 45 ], [ 29, 46 ], [ 46, 47 ], [ 46, 48 ], [ 29, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 49, 53 ], [ 49, 54 ], [ 29, 55 ], [ 55, 56 ], [ 56, 57 ], [ 27, 58 ], [ 58, 59 ], [ 151, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 64, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 78, 80 ], [ 75, 81 ], [ 62, 82 ], [ 82, 83 ], [ 62, 84 ], [ 84, 85 ], [ 62, 86 ], [ 86, 87 ], [ 151, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 88, 92 ], [ 92, 93 ], [ 88, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 100, 101 ], [ 100, 102 ], [ 94, 103 ], [ 103, 104 ], [ 88, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 109, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 108, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 121, 122 ], [ 122, 123 ], [ 118, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 107, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 88, 132 ], [ 132, 133 ], [ 132, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 136, 139 ], [ 139, 140 ], [ 88, 141 ], [ 141, 142 ], [ 141, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 145, 148 ], [ 148, 149 ], [ 0, 150 ], [ 150, 151 ], [ 150, 152 ] ]
[ "import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.math.BigInteger;\nimport java.util.*;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\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 TaskC solver = new TaskC();\n solver.solve(1, in, out);\n out.close();\n }\n static class TaskC {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n System.out.println((1000-(n%1000))%1000);\n }\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 public int nextInt(){return Integer.parseInt(next());}\n public long nextLong() {\n return Long.parseLong(next());\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.math.BigInteger;", "BigInteger", "java.math", "import java.util.*;", "util.*", "java", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "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 TaskC solver = new TaskC();\n solver.solve(1, in, out);\n out.close();\n }\n static class TaskC {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n System.out.println((1000-(n%1000))%1000);\n }\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 public int nextInt(){return Integer.parseInt(next());}\n public long nextLong() {\n return Long.parseLong(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 TaskC solver = new TaskC();\n solver.solve(1, 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 TaskC solver = new TaskC();\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", "InputReader in = new InputReader(inputStream);", "in", "new InputReader(inputStream)", "PrintWriter out = new PrintWriter(outputStream);", "out", "new PrintWriter(outputStream)", "TaskC solver = new TaskC();", "solver", "new TaskC()", "solver.solve(1, in, out)", "solver.solve", "solver", "1", "in", "out", "out.close()", "out.close", "out", "String[] args", "args", "static class TaskC {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n System.out.println((1000-(n%1000))%1000);\n }\n\n\n }", "TaskC", "public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n System.out.println((1000-(n%1000))%1000);\n }", "solve", "{\n int n = in.nextInt();\n System.out.println((1000-(n%1000))%1000);\n }", "int n = in.nextInt();", "n", "in.nextInt()", "in.nextInt", "in", "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", "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 public int nextInt(){return Integer.parseInt(next());}\n public long nextLong() {\n return Long.parseLong(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(){return Integer.parseInt(next());}", "nextInt", "{return Integer.parseInt(next());}", "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 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 TaskC solver = new TaskC();\n solver.solve(1, in, out);\n out.close();\n }\n static class TaskC {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n System.out.println((1000-(n%1000))%1000);\n }\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 public int nextInt(){return Integer.parseInt(next());}\n public long nextLong() {\n return Long.parseLong(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 TaskC solver = new TaskC();\n solver.solve(1, in, out);\n out.close();\n }\n static class TaskC {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n System.out.println((1000-(n%1000))%1000);\n }\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 public int nextInt(){return Integer.parseInt(next());}\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n }\n}", "Main" ]
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.math.BigInteger; import java.util.*; import java.io.BufferedReader; import java.io.InputStreamReader; 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); TaskC solver = new TaskC(); solver.solve(1, in, out); out.close(); } static class TaskC { public void solve(int testNumber, InputReader in, PrintWriter out) { int n = in.nextInt(); System.out.println((1000-(n%1000))%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());} public long nextLong() { return Long.parseLong(next()); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 13, 13, 17, 30, 0, 13, 2, 13, 13, 4, 18, 18, 13, 13, 13, 3, 30, 0, 13, 2, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 64, 8 ], [ 64, 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 ], [ 25, 26 ], [ 25, 27 ], [ 23, 28 ], [ 28, 29 ], [ 28, 30 ], [ 23, 31 ], [ 31, 32 ], [ 32, 33 ], [ 23, 34 ], [ 35, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 36, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 45, 47 ], [ 42, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 42, 54 ], [ 36, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 58, 60 ], [ 9, 61 ], [ 61, 62 ], [ 0, 63 ], [ 63, 64 ], [ 63, 65 ] ]
[ "import java.util.*;\nimport java.lang.Math;\npublic class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int counter = 0;\n for(int i = 0; i < 10001; i ++){\n if(i - N >= 0){\n counter = i - N;\n System.out.println(counter);\n break;\n }else{\n i = i + 999;\n }\n }\n }\n}", "import java.util.*;", "util.*", "java", "import java.lang.Math;", "Math", "java.lang", "public class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int counter = 0;\n for(int i = 0; i < 10001; i ++){\n if(i - N >= 0){\n counter = i - N;\n System.out.println(counter);\n break;\n }else{\n i = i + 999;\n }\n }\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int counter = 0;\n for(int i = 0; i < 10001; i ++){\n if(i - N >= 0){\n counter = i - N;\n System.out.println(counter);\n break;\n }else{\n i = i + 999;\n }\n }\n }", "main", "{\n // Your code here!\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int counter = 0;\n for(int i = 0; i < 10001; i ++){\n if(i - N >= 0){\n counter = i - N;\n System.out.println(counter);\n break;\n }else{\n i = i + 999;\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 counter = 0;", "counter", "0", "for(int i = 0; i < 10001; i ++){\n if(i - N >= 0){\n counter = i - N;\n System.out.println(counter);\n break;\n }else{\n i = i + 999;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < 10001", "i", "10001", "i ++", "i ++", "i", "{\n if(i - N >= 0){\n counter = i - N;\n System.out.println(counter);\n break;\n }else{\n i = i + 999;\n }\n }", "{\n if(i - N >= 0){\n counter = i - N;\n System.out.println(counter);\n break;\n }else{\n i = i + 999;\n }\n }", "if(i - N >= 0){\n counter = i - N;\n System.out.println(counter);\n break;\n }else{\n i = i + 999;\n }", "i - N >= 0", "i - N", "i", "N", "0", "{\n counter = i - N;\n System.out.println(counter);\n break;\n }", "counter = i - N", "counter", "i - N", "i", "N", "System.out.println(counter)", "System.out.println", "System.out", "System", "System.out", "counter", "break;", "{\n i = i + 999;\n }", "i = i + 999", "i", "i + 999", "i", "999", "String[] args", "args", "public class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int counter = 0;\n for(int i = 0; i < 10001; i ++){\n if(i - N >= 0){\n counter = i - N;\n System.out.println(counter);\n break;\n }else{\n i = i + 999;\n }\n }\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int counter = 0;\n for(int i = 0; i < 10001; i ++){\n if(i - N >= 0){\n counter = i - N;\n System.out.println(counter);\n break;\n }else{\n i = i + 999;\n }\n }\n }\n}", "Main" ]
import java.util.*; import java.lang.Math; public class Main { public static void main(String[] args) throws Exception { // Your code here! Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int counter = 0; for(int i = 0; i < 10001; i ++){ if(i - N >= 0){ counter = i - N; System.out.println(counter); break; }else{ i = i + 999; } } } }
[ 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\tpublic static void main(String args[]) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint N = stdIn.nextInt();\n\t\tint sum = 0;\n\t\twhile(sum < N) {\n\t\t\tsum += 1000;\n\t\t}\n\t\tSystem.out.println(sum - N);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint N = stdIn.nextInt();\n\t\tint sum = 0;\n\t\twhile(sum < N) {\n\t\t\tsum += 1000;\n\t\t}\n\t\tSystem.out.println(sum - N);\n\t}\n}", "Main", "public static void main(String args[]) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint N = stdIn.nextInt();\n\t\tint sum = 0;\n\t\twhile(sum < N) {\n\t\t\tsum += 1000;\n\t\t}\n\t\tSystem.out.println(sum - N);\n\t}", "main", "{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint N = stdIn.nextInt();\n\t\tint sum = 0;\n\t\twhile(sum < N) {\n\t\t\tsum += 1000;\n\t\t}\n\t\tSystem.out.println(sum - N);\n\t}", "Scanner stdIn = new Scanner(System.in);", "stdIn", "new Scanner(System.in)", "int N = stdIn.nextInt();", "N", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "int sum = 0;", "sum", "0", "while(sum < N) {\n\t\t\tsum += 1000;\n\t\t}", "sum < N", "sum", "N", "{\n\t\t\tsum += 1000;\n\t\t}", "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\tpublic static void main(String args[]) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint N = stdIn.nextInt();\n\t\tint sum = 0;\n\t\twhile(sum < N) {\n\t\t\tsum += 1000;\n\t\t}\n\t\tSystem.out.println(sum - N);\n\t}\n}", "public class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint N = stdIn.nextInt();\n\t\tint sum = 0;\n\t\twhile(sum < N) {\n\t\t\tsum += 1000;\n\t\t}\n\t\tSystem.out.println(sum - N);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner stdIn = new Scanner(System.in); int N = stdIn.nextInt(); int sum = 0; while(sum < N) { sum += 1000; } System.out.println(sum - N); } }
[ 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, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 50, 8 ], [ 50, 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 ], [ 34, 36 ], [ 36, 37 ], [ 36, 38 ], [ 33, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 44, 45 ], [ 44, 46 ], [ 9, 47 ], [ 47, 48 ], [ 0, 49 ], [ 49, 50 ], [ 49, 51 ] ]
[ "import java.util.*;\nimport java.io.*;\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\tif(n%1000==0) {\n\t\t\tSystem.out.println(\"0\");\n\t\t}\n\t\telse {\n\t\t\tint y = n%1000;\n\t\t\tSystem.out.println(1000-y);\n\t\t}\n\t}\n\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "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\tif(n%1000==0) {\n\t\t\tSystem.out.println(\"0\");\n\t\t}\n\t\telse {\n\t\t\tint y = n%1000;\n\t\t\tSystem.out.println(1000-y);\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tif(n%1000==0) {\n\t\t\tSystem.out.println(\"0\");\n\t\t}\n\t\telse {\n\t\t\tint y = n%1000;\n\t\t\tSystem.out.println(1000-y);\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tif(n%1000==0) {\n\t\t\tSystem.out.println(\"0\");\n\t\t}\n\t\telse {\n\t\t\tint y = n%1000;\n\t\t\tSystem.out.println(1000-y);\n\t\t}\n\t}", "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\t\t\tSystem.out.println(\"0\");\n\t\t}\n\t\telse {\n\t\t\tint y = n%1000;\n\t\t\tSystem.out.println(1000-y);\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\tint y = n%1000;\n\t\t\tSystem.out.println(1000-y);\n\t\t}", "int y = n%1000;", "y", "n%1000", "n", "1000", "System.out.println(1000-y)", "System.out.println", "System.out", "System", "System.out", "1000-y", "1000", "y", "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\tif(n%1000==0) {\n\t\t\tSystem.out.println(\"0\");\n\t\t}\n\t\telse {\n\t\t\tint y = n%1000;\n\t\t\tSystem.out.println(1000-y);\n\t\t}\n\t}\n\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\tif(n%1000==0) {\n\t\t\tSystem.out.println(\"0\");\n\t\t}\n\t\telse {\n\t\t\tint y = n%1000;\n\t\t\tSystem.out.println(1000-y);\n\t\t}\n\t}\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 { int y = n%1000; System.out.println(1000-y); } } }
[ 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, 2, 13, 17, 17, 30, 0, 13, 2, 2, 17, 2, 13, 17, 13, 30, 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 ], [ 58, 5 ], [ 58, 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 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 25, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 37, 39 ], [ 34, 40 ], [ 25, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 8, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 6, 55 ], [ 55, 56 ], [ 0, 57 ], [ 57, 58 ], [ 57, 59 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint N = scanner.nextInt();\n\t\tint x = N/1000;\n\t\tint y = 0;\n\t\tif (N%1000 != 0) {\n\t\t\ty = 1000*(x+1) - N;\n\t\t} else {\n\t\t\ty = 1000*x - N;\n\t\t}\n\t\tSystem.out.println(y);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint N = scanner.nextInt();\n\t\tint x = N/1000;\n\t\tint y = 0;\n\t\tif (N%1000 != 0) {\n\t\t\ty = 1000*(x+1) - N;\n\t\t} else {\n\t\t\ty = 1000*x - N;\n\t\t}\n\t\tSystem.out.println(y);\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 x = N/1000;\n\t\tint y = 0;\n\t\tif (N%1000 != 0) {\n\t\t\ty = 1000*(x+1) - N;\n\t\t} else {\n\t\t\ty = 1000*x - N;\n\t\t}\n\t\tSystem.out.println(y);\n\t}", "main", "{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint N = scanner.nextInt();\n\t\tint x = N/1000;\n\t\tint y = 0;\n\t\tif (N%1000 != 0) {\n\t\t\ty = 1000*(x+1) - N;\n\t\t} else {\n\t\t\ty = 1000*x - N;\n\t\t}\n\t\tSystem.out.println(y);\n\t}", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int N = scanner.nextInt();", "N", "scanner.nextInt()", "scanner.nextInt", "scanner", "int x = N/1000;", "x", "N/1000", "N", "1000", "int y = 0;", "y", "0", "if (N%1000 != 0) {\n\t\t\ty = 1000*(x+1) - N;\n\t\t} else {\n\t\t\ty = 1000*x - N;\n\t\t}", "N%1000 != 0", "N%1000", "N", "1000", "0", "{\n\t\t\ty = 1000*(x+1) - N;\n\t\t}", "y = 1000*(x+1) - N", "y", "1000*(x+1) - N", "1000*(x+1)", "1000", "(x+1)", "x", "1", "N", "{\n\t\t\ty = 1000*x - N;\n\t\t}", "y = 1000*x - N", "y", "1000*x - N", "1000*x", "1000", "x", "N", "System.out.println(y)", "System.out.println", "System.out", "System", "System.out", "y", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint N = scanner.nextInt();\n\t\tint x = N/1000;\n\t\tint y = 0;\n\t\tif (N%1000 != 0) {\n\t\t\ty = 1000*(x+1) - N;\n\t\t} else {\n\t\t\ty = 1000*x - N;\n\t\t}\n\t\tSystem.out.println(y);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint N = scanner.nextInt();\n\t\tint x = N/1000;\n\t\tint y = 0;\n\t\tif (N%1000 != 0) {\n\t\t\ty = 1000*(x+1) - N;\n\t\t} else {\n\t\t\ty = 1000*x - N;\n\t\t}\n\t\tSystem.out.println(y);\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 x = N/1000; int y = 0; if (N%1000 != 0) { y = 1000*(x+1) - N; } else { y = 1000*x - N; } System.out.println(y); } }
[ 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, 14, 2, 2, 13, 17, 17, 30, 4, 18, 13, 17, 30, 41, 13, 2, 13, 17, 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 ], [ 91, 17 ], [ 91, 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 ], [ 91, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 55, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 61, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 61, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 75, 77 ], [ 72, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 81, 82 ], [ 81, 83 ], [ 53, 84 ], [ 84, 85 ], [ 53, 86 ], [ 86, 87 ], [ 53, 88 ], [ 88, 89 ], [ 0, 90 ], [ 90, 91 ], [ 90, 92 ] ]
[ "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 APayment solver = new APayment();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class APayment {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n\n int n = in.nextInt();\n if (n % 1000 == 0) {\n out.println(\"0\");\n } else {\n int y = n % 1000;\n out.println(1000 - y);\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 APayment solver = new APayment();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class APayment {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n\n int n = in.nextInt();\n if (n % 1000 == 0) {\n out.println(\"0\");\n } else {\n int y = n % 1000;\n out.println(1000 - y);\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 APayment solver = new APayment();\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 APayment solver = new APayment();\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)", "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 public void solve(int testNumber, Scanner in, PrintWriter out) {\n\n int n = in.nextInt();\n if (n % 1000 == 0) {\n out.println(\"0\");\n } else {\n int y = n % 1000;\n out.println(1000 - y);\n }\n }\n\n }", "APayment", "public void solve(int testNumber, Scanner in, PrintWriter out) {\n\n int n = in.nextInt();\n if (n % 1000 == 0) {\n out.println(\"0\");\n } else {\n int y = n % 1000;\n out.println(1000 - y);\n }\n }", "solve", "{\n\n int n = in.nextInt();\n if (n % 1000 == 0) {\n out.println(\"0\");\n } else {\n int y = n % 1000;\n out.println(1000 - y);\n }\n }", "int n = in.nextInt();", "n", "in.nextInt()", "in.nextInt", "in", "if (n % 1000 == 0) {\n out.println(\"0\");\n } else {\n int y = n % 1000;\n out.println(1000 - y);\n }", "n % 1000 == 0", "n % 1000", "n", "1000", "0", "{\n out.println(\"0\");\n }", "out.println(\"0\")", "out.println", "out", "\"0\"", "{\n int y = n % 1000;\n out.println(1000 - y);\n }", "int y = n % 1000;", "y", "n % 1000", "n", "1000", "out.println(1000 - y)", "out.println", "out", "1000 - y", "1000", "y", "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 APayment solver = new APayment();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class APayment {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n\n int n = in.nextInt();\n if (n % 1000 == 0) {\n out.println(\"0\");\n } else {\n int y = n % 1000;\n out.println(1000 - y);\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 APayment solver = new APayment();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class APayment {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n\n int n = in.nextInt();\n if (n % 1000 == 0) {\n out.println(\"0\");\n } else {\n int y = n % 1000;\n out.println(1000 - y);\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); APayment solver = new APayment(); solver.solve(1, in, out); out.close(); } static class APayment { public void solve(int testNumber, Scanner in, PrintWriter out) { int n = in.nextInt(); if (n % 1000 == 0) { out.println("0"); } else { int y = n % 1000; out.println(1000 - y); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 1, 0, 13, 17, 30, 30, 14, 2, 13, 13, 30, 4, 18, 18, 13, 13, 2, 13, 13, 3, 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 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 17, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 17, 26 ], [ 27, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 28, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 38, 39 ], [ 38, 40 ], [ 32, 41 ], [ 6, 42 ], [ 42, 43 ] ]
[ "import java.util.*;\nclass Main{\npublic static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n for(int i=1000;;i+=1000){\n if(i>=n){\nSystem.out.println(i-n);\n break;\n }\n }\n}\n}", "import java.util.*;", "util.*", "java", "class Main{\npublic static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n for(int i=1000;;i+=1000){\n if(i>=n){\nSystem.out.println(i-n);\n break;\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=1000;;i+=1000){\n if(i>=n){\nSystem.out.println(i-n);\n break;\n }\n }\n}", "main", "{\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n for(int i=1000;;i+=1000){\n if(i>=n){\nSystem.out.println(i-n);\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=1000;;i+=1000){\n if(i>=n){\nSystem.out.println(i-n);\n break;\n }\n }", "int i=1000;", "int i=1000;", "i", "1000", "i+=1000", "i+=1000", "i", "1000", "{\n if(i>=n){\nSystem.out.println(i-n);\n break;\n }\n }", "{\n if(i>=n){\nSystem.out.println(i-n);\n break;\n }\n }", "if(i>=n){\nSystem.out.println(i-n);\n break;\n }", "i>=n", "i", "n", "{\nSystem.out.println(i-n);\n break;\n }", "System.out.println(i-n)", "System.out.println", "System.out", "System", "System.out", "i-n", "i", "n", "break;", "String[] args", "args" ]
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); for(int i=1000;;i+=1000){ if(i>=n){ System.out.println(i-n); break; } } } }
[ 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, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 13, 13, 30, 0, 13, 2, 13, 13, 3, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 62, 5 ], [ 62, 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 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 31, 32 ], [ 31, 33 ], [ 26, 34 ], [ 34, 35 ], [ 35, 36 ], [ 26, 37 ], [ 38, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 46, 48 ], [ 43, 49 ], [ 38, 50 ], [ 50, 51 ], [ 50, 52 ], [ 8, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 6, 59 ], [ 59, 60 ], [ 0, 61 ], [ 61, 62 ], [ 61, 63 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = Integer.parseInt(scan.next());\n\t\tint pay = 1000;\n\t\tint ans = 0;\n\t\tfor (int i = 1;i <= 10 ;i++ ) {\n\t\t\tif (pay >=N) {\n\t\t\t\tans = pay - N;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tpay+=1000;\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = Integer.parseInt(scan.next());\n\t\tint pay = 1000;\n\t\tint ans = 0;\n\t\tfor (int i = 1;i <= 10 ;i++ ) {\n\t\t\tif (pay >=N) {\n\t\t\t\tans = pay - N;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tpay+=1000;\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = Integer.parseInt(scan.next());\n\t\tint pay = 1000;\n\t\tint ans = 0;\n\t\tfor (int i = 1;i <= 10 ;i++ ) {\n\t\t\tif (pay >=N) {\n\t\t\t\tans = pay - N;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tpay+=1000;\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = Integer.parseInt(scan.next());\n\t\tint pay = 1000;\n\t\tint ans = 0;\n\t\tfor (int i = 1;i <= 10 ;i++ ) {\n\t\t\tif (pay >=N) {\n\t\t\t\tans = pay - N;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tpay+=1000;\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int N = Integer.parseInt(scan.next());", "N", "Integer.parseInt(scan.next())", "Integer.parseInt", "Integer", "scan.next()", "scan.next", "scan", "int pay = 1000;", "pay", "1000", "int ans = 0;", "ans", "0", "for (int i = 1;i <= 10 ;i++ ) {\n\t\t\tif (pay >=N) {\n\t\t\t\tans = pay - N;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tpay+=1000;\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i <= 10", "i", "10", "i++", "i++", "i", "{\n\t\t\tif (pay >=N) {\n\t\t\t\tans = pay - N;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tpay+=1000;\n\t\t}", "{\n\t\t\tif (pay >=N) {\n\t\t\t\tans = pay - N;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tpay+=1000;\n\t\t}", "if (pay >=N) {\n\t\t\t\tans = pay - N;\n\t\t\t\tbreak;\n\t\t\t}", "pay >=N", "pay", "N", "{\n\t\t\t\tans = pay - N;\n\t\t\t\tbreak;\n\t\t\t}", "ans = pay - N", "ans", "pay - N", "pay", "N", "break;", "pay+=1000", "pay", "1000", "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 scan = new Scanner(System.in);\n\t\tint N = Integer.parseInt(scan.next());\n\t\tint pay = 1000;\n\t\tint ans = 0;\n\t\tfor (int i = 1;i <= 10 ;i++ ) {\n\t\t\tif (pay >=N) {\n\t\t\t\tans = pay - N;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tpay+=1000;\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = Integer.parseInt(scan.next());\n\t\tint pay = 1000;\n\t\tint ans = 0;\n\t\tfor (int i = 1;i <= 10 ;i++ ) {\n\t\t\tif (pay >=N) {\n\t\t\t\tans = pay - N;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tpay+=1000;\n\t\t}\n\n\t\tSystem.out.println(ans);\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 = Integer.parseInt(scan.next()); int pay = 1000; int ans = 0; for (int i = 1;i <= 10 ;i++ ) { if (pay >=N) { ans = pay - N; break; } pay+=1000; } System.out.println(ans); } }
[ 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, 42, 2, 13, 13, 30, 0, 13, 13, 4, 18, 18, 13, 13, 2, 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 ], [ 23, 25 ], [ 11, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 11, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 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\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 int currAmount = 0;\n while (currAmount < N) {\n\n currAmount += bill;\n\n\n }\n System.out.println(currAmount-N);\n }\n\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "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 int currAmount = 0;\n while (currAmount < N) {\n\n currAmount += bill;\n\n\n }\n System.out.println(currAmount-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 int currAmount = 0;\n while (currAmount < N) {\n\n currAmount += bill;\n\n\n }\n System.out.println(currAmount-N);\n }", "main", "{\n\n Scanner in = new Scanner(System.in);\n int N = in.nextInt();\n int bill = 1000;\n int currAmount = 0;\n while (currAmount < N) {\n\n currAmount += bill;\n\n\n }\n System.out.println(currAmount-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", "int currAmount = 0;", "currAmount", "0", "while (currAmount < N) {\n\n currAmount += bill;\n\n\n }", "currAmount < N", "currAmount", "N", "{\n\n currAmount += bill;\n\n\n }", "currAmount += bill", "currAmount", "bill", "System.out.println(currAmount-N)", "System.out.println", "System.out", "System", "System.out", "currAmount-N", "currAmount", "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 int currAmount = 0;\n while (currAmount < N) {\n\n currAmount += bill;\n\n\n }\n System.out.println(currAmount-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 int currAmount = 0;\n while (currAmount < N) {\n\n currAmount += bill;\n\n\n }\n System.out.println(currAmount-N);\n }\n\n}", "Main" ]
import java.util.*; import java.io.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int N = in.nextInt(); int bill = 1000; int currAmount = 0; while (currAmount < N) { currAmount += bill; } System.out.println(currAmount-N); } }
[ 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.Scanner;\n\npublic class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint itemPrice = scan.nextInt();\n\t\twhile(itemPrice>0) {\n\t\t\titemPrice-=1000;\n\t\t}\n\t\tSystem.out.println(Math.abs(itemPrice));\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\tScanner scan = new Scanner(System.in);\n\t\tint itemPrice = scan.nextInt();\n\t\twhile(itemPrice>0) {\n\t\t\titemPrice-=1000;\n\t\t}\n\t\tSystem.out.println(Math.abs(itemPrice));\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint itemPrice = scan.nextInt();\n\t\twhile(itemPrice>0) {\n\t\t\titemPrice-=1000;\n\t\t}\n\t\tSystem.out.println(Math.abs(itemPrice));\n\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint itemPrice = scan.nextInt();\n\t\twhile(itemPrice>0) {\n\t\t\titemPrice-=1000;\n\t\t}\n\t\tSystem.out.println(Math.abs(itemPrice));\n\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int itemPrice = scan.nextInt();", "itemPrice", "scan.nextInt()", "scan.nextInt", "scan", "while(itemPrice>0) {\n\t\t\titemPrice-=1000;\n\t\t}", "itemPrice>0", "itemPrice", "0", "{\n\t\t\titemPrice-=1000;\n\t\t}", "itemPrice-=1000", "itemPrice", "1000", "System.out.println(Math.abs(itemPrice))", "System.out.println", "System.out", "System", "System.out", "Math.abs(itemPrice)", "Math.abs", "Math", "itemPrice", "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 itemPrice = scan.nextInt();\n\t\twhile(itemPrice>0) {\n\t\t\titemPrice-=1000;\n\t\t}\n\t\tSystem.out.println(Math.abs(itemPrice));\n\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 itemPrice = scan.nextInt();\n\t\twhile(itemPrice>0) {\n\t\t\titemPrice-=1000;\n\t\t}\n\t\tSystem.out.println(Math.abs(itemPrice));\n\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 itemPrice = scan.nextInt(); while(itemPrice>0) { itemPrice-=1000; } System.out.println(Math.abs(itemPrice)); } }
[ 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, 41, 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 ], [ 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 ], [ 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 ], [ 31, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 35, 37 ], [ 30, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 6, 44 ], [ 44, 45 ], [ 0, 46 ], [ 46, 47 ], [ 46, 48 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int payment = sc.nextInt();\n if (payment % 1000 == 0) {\n System.out.println(0);\n } else {\n int charge = 1000 - (payment % 1000);\n System.out.println(charge);\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 payment = sc.nextInt();\n if (payment % 1000 == 0) {\n System.out.println(0);\n } else {\n int charge = 1000 - (payment % 1000);\n System.out.println(charge);\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int payment = sc.nextInt();\n if (payment % 1000 == 0) {\n System.out.println(0);\n } else {\n int charge = 1000 - (payment % 1000);\n System.out.println(charge);\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int payment = sc.nextInt();\n if (payment % 1000 == 0) {\n System.out.println(0);\n } else {\n int charge = 1000 - (payment % 1000);\n System.out.println(charge);\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int payment = sc.nextInt();", "payment", "sc.nextInt()", "sc.nextInt", "sc", "if (payment % 1000 == 0) {\n System.out.println(0);\n } else {\n int charge = 1000 - (payment % 1000);\n System.out.println(charge);\n }", "payment % 1000 == 0", "payment % 1000", "payment", "1000", "0", "{\n System.out.println(0);\n }", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "{\n int charge = 1000 - (payment % 1000);\n System.out.println(charge);\n }", "int charge = 1000 - (payment % 1000);", "charge", "1000 - (payment % 1000)", "1000", "(payment % 1000)", "payment", "1000", "System.out.println(charge)", "System.out.println", "System.out", "System", "System.out", "charge", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int payment = sc.nextInt();\n if (payment % 1000 == 0) {\n System.out.println(0);\n } else {\n int charge = 1000 - (payment % 1000);\n System.out.println(charge);\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int payment = sc.nextInt();\n if (payment % 1000 == 0) {\n System.out.println(0);\n } else {\n int charge = 1000 - (payment % 1000);\n System.out.println(charge);\n }\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int payment = sc.nextInt(); if (payment % 1000 == 0) { System.out.println(0); } else { int charge = 1000 - (payment % 1000); System.out.println(charge); } } }
[ 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, 17, 2, 13, 17, 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 ], [ 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 ], [ 36, 38 ], [ 38, 39 ], [ 38, 40 ], [ 6, 41 ], [ 41, 42 ], [ 0, 43 ], [ 43, 44 ], [ 43, 45 ] ]
[ "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 if(n%1000==0){\n System.out.println(0);\n }else{\n System.out.println(1000-(n%1000));\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 if(n%1000==0){\n System.out.println(0);\n }else{\n System.out.println(1000-(n%1000));\n }\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 }\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 }\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 }", "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 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 }\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 }\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(1000-(n%1000)); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 2, 4, 18, 13, 17, 17, 17, 41, 13, 17, 12, 13, 30, 41, 13, 20, 41, 13, 17, 42, 2, 40, 13, 17, 30, 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, 4, 18, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 2, 4, 18, 13, 17, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 4, 18, 13, 2, 2, 4, 18, 13, 13, 17, 29, 17, 29, 17, 23, 13, 12, 13, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 13, 17, 30, 14, 2, 13, 4, 18, 13, 13, 4, 18, 13, 13, 30, 4, 18, 13, 13, 4, 18, 13, 2, 13, 13, 4, 18, 13, 13, 29, 13, 23, 13, 12, 13, 30, 14, 2, 4, 18, 4, 13, 13, 17, 29, 17, 29, 17, 23, 13, 12, 13, 30, 14, 2, 13, 17, 29, 13, 14, 2, 13, 17, 29, 13, 14, 2, 13, 13, 29, 13, 14, 2, 13, 13, 29, 4, 13, 2, 13, 13, 13, 29, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 29, 2, 2, 13, 13, 4, 13, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 2, 2, 4, 18, 13, 17, 17, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 0, 18, 13, 13, 18, 13, 2, 2, 4, 18, 13, 13, 17, 0, 18, 13, 2, 2, 4, 18, 13, 13, 17, 13, 41, 13, 20, 29, 13, 23, 13, 12, 13, 30, 14, 2, 13, 17, 29, 17, 14, 2, 13, 17, 29, 13, 30, 41, 13, 4, 13, 13, 2, 13, 17, 14, 2, 2, 13, 17, 17, 30, 29, 2, 13, 13, 30, 29, 2, 2, 13, 13, 13, 23, 13, 23, 13, 12, 13, 30, 14, 2, 13, 17, 29, 17, 14, 2, 13, 17, 29, 2, 13, 13, 30, 41, 13, 2, 4, 13, 13, 2, 13, 17, 13, 0, 13, 13, 0, 13, 13, 14, 2, 2, 13, 17, 17, 30, 0, 13, 13, 0, 13, 13, 29, 2, 13, 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 ], [ 413, 11 ], [ 413, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 15, 18 ], [ 15, 19 ], [ 14, 20 ], [ 413, 21 ], [ 21, 22 ], [ 21, 23 ], [ 413, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 30, 32 ], [ 26, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 33, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 38, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 44, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 50, 55 ], [ 44, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 63, 65 ], [ 26, 66 ], [ 66, 67 ], [ 67, 68 ], [ 24, 69 ], [ 69, 70 ], [ 413, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 81, 85 ], [ 74, 86 ], [ 86, 87 ], [ 87, 88 ], [ 74, 89 ], [ 90, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 92, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 101, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 101, 105 ], [ 101, 106 ], [ 91, 107 ], [ 107, 108 ], [ 73, 109 ], [ 109, 110 ], [ 71, 111 ], [ 111, 112 ], [ 413, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 115, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 119, 124 ], [ 124, 125 ], [ 124, 126 ], [ 126, 127 ], [ 127, 128 ], [ 126, 129 ], [ 119, 130 ], [ 130, 131 ], [ 131, 132 ], [ 119, 133 ], [ 134, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 136, 140 ], [ 135, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 145, 146 ], [ 146, 147 ], [ 145, 148 ], [ 142, 149 ], [ 149, 150 ], [ 150, 151 ], [ 149, 152 ], [ 142, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 154, 157 ], [ 153, 158 ], [ 158, 159 ], [ 159, 160 ], [ 158, 161 ], [ 161, 162 ], [ 161, 163 ], [ 115, 164 ], [ 164, 165 ], [ 165, 166 ], [ 164, 167 ], [ 115, 168 ], [ 168, 169 ], [ 113, 170 ], [ 170, 171 ], [ 413, 172 ], [ 172, 173 ], [ 172, 174 ], [ 174, 175 ], [ 175, 176 ], [ 176, 177 ], [ 177, 178 ], [ 178, 179 ], [ 179, 180 ], [ 179, 181 ], [ 176, 182 ], [ 175, 183 ], [ 183, 184 ], [ 175, 185 ], [ 185, 186 ], [ 172, 187 ], [ 187, 188 ], [ 413, 189 ], [ 189, 190 ], [ 189, 191 ], [ 191, 192 ], [ 192, 193 ], [ 193, 194 ], [ 193, 195 ], [ 192, 196 ], [ 196, 197 ], [ 191, 198 ], [ 198, 199 ], [ 199, 200 ], [ 199, 201 ], [ 198, 202 ], [ 202, 203 ], [ 191, 204 ], [ 204, 205 ], [ 205, 206 ], [ 205, 207 ], [ 204, 208 ], [ 208, 209 ], [ 191, 210 ], [ 210, 211 ], [ 211, 212 ], [ 211, 213 ], [ 210, 214 ], [ 214, 215 ], [ 215, 216 ], [ 215, 217 ], [ 217, 218 ], [ 217, 219 ], [ 215, 220 ], [ 191, 221 ], [ 221, 222 ], [ 222, 223 ], [ 222, 224 ], [ 222, 225 ], [ 225, 226 ], [ 225, 227 ], [ 189, 228 ], [ 228, 229 ], [ 189, 230 ], [ 230, 231 ], [ 413, 232 ], [ 232, 233 ], [ 232, 234 ], [ 234, 235 ], [ 235, 236 ], [ 236, 237 ], [ 237, 238 ], [ 237, 239 ], [ 236, 240 ], [ 240, 241 ], [ 240, 242 ], [ 240, 243 ], [ 232, 244 ], [ 244, 245 ], [ 232, 246 ], [ 246, 247 ], [ 413, 248 ], [ 248, 249 ], [ 248, 250 ], [ 250, 251 ], [ 251, 252 ], [ 251, 253 ], [ 253, 254 ], [ 254, 255 ], [ 250, 256 ], [ 256, 257 ], [ 257, 258 ], [ 258, 259 ], [ 258, 260 ], [ 256, 261 ], [ 261, 262 ], [ 261, 263 ], [ 263, 264 ], [ 264, 265 ], [ 265, 266 ], [ 266, 267 ], [ 264, 268 ], [ 263, 269 ], [ 256, 270 ], [ 270, 271 ], [ 271, 272 ], [ 256, 273 ], [ 274, 274 ], [ 274, 275 ], [ 275, 276 ], [ 275, 277 ], [ 277, 278 ], [ 277, 279 ], [ 274, 280 ], [ 280, 281 ], [ 281, 282 ], [ 281, 283 ], [ 280, 284 ], [ 284, 285 ], [ 284, 286 ], [ 287, 287 ], [ 287, 288 ], [ 288, 289 ], [ 289, 290 ], [ 287, 291 ], [ 287, 292 ], [ 274, 293 ], [ 293, 294 ], [ 294, 295 ], [ 294, 296 ], [ 297, 297 ], [ 297, 298 ], [ 298, 299 ], [ 299, 300 ], [ 297, 301 ], [ 297, 302 ], [ 293, 303 ], [ 250, 304 ], [ 304, 305 ], [ 304, 306 ], [ 250, 307 ], [ 307, 308 ], [ 248, 309 ], [ 309, 310 ], [ 413, 311 ], [ 311, 312 ], [ 311, 313 ], [ 313, 314 ], [ 314, 315 ], [ 315, 316 ], [ 315, 317 ], [ 314, 318 ], [ 318, 319 ], [ 314, 320 ], [ 320, 321 ], [ 321, 322 ], [ 321, 323 ], [ 320, 324 ], [ 324, 325 ], [ 320, 326 ], [ 326, 327 ], [ 327, 328 ], [ 327, 329 ], [ 329, 330 ], [ 329, 331 ], [ 329, 332 ], [ 332, 333 ], [ 332, 334 ], [ 326, 335 ], [ 335, 336 ], [ 336, 337 ], [ 337, 338 ], [ 337, 339 ], [ 336, 340 ], [ 335, 341 ], [ 341, 342 ], [ 342, 343 ], [ 343, 344 ], [ 343, 345 ], [ 335, 346 ], [ 346, 347 ], [ 347, 348 ], [ 349, 349 ], [ 349, 350 ], [ 349, 351 ], [ 349, 352 ], [ 311, 353 ], [ 353, 354 ], [ 311, 355 ], [ 355, 356 ], [ 413, 357 ], [ 357, 358 ], [ 357, 359 ], [ 359, 360 ], [ 360, 361 ], [ 361, 362 ], [ 361, 363 ], [ 360, 364 ], [ 364, 365 ], [ 360, 366 ], [ 366, 367 ], [ 367, 368 ], [ 367, 369 ], [ 366, 370 ], [ 370, 371 ], [ 371, 372 ], [ 371, 373 ], [ 366, 374 ], [ 374, 375 ], [ 375, 376 ], [ 375, 377 ], [ 377, 378 ], [ 378, 379 ], [ 378, 380 ], [ 378, 381 ], [ 381, 382 ], [ 381, 383 ], [ 377, 384 ], [ 374, 385 ], [ 385, 386 ], [ 385, 387 ], [ 374, 388 ], [ 388, 389 ], [ 388, 390 ], [ 374, 391 ], [ 391, 392 ], [ 392, 393 ], [ 393, 394 ], [ 393, 395 ], [ 392, 396 ], [ 391, 397 ], [ 397, 398 ], [ 398, 399 ], [ 398, 400 ], [ 397, 401 ], [ 401, 402 ], [ 401, 403 ], [ 374, 404 ], [ 404, 405 ], [ 405, 406 ], [ 405, 407 ], [ 357, 408 ], [ 408, 409 ], [ 357, 410 ], [ 410, 411 ], [ 0, 412 ], [ 412, 413 ], [ 412, 414 ] ]
[ "import java.lang.reflect.Array;\nimport java.util.*;\nimport java.io.* ;\n/*\nNOTES:\n-more than 10 digits (10^10), use long\n-prefix sum of 1's and -1's to control flow of highlighting a region\n-log(a)/log(b) = log base b of a\n-create a position array if trying to see if elements show up next to each other sequentially\n i.e. elements 1,2,3 are within 3 spots of each other in an array\n arr[scannedInt - 1] = i; (position of i at p[i] in original)\n- use a freq array when counting instances of an element occurring\n- increment the counter first before simulating anything turn-based (two player game)\n\n */\n\npublic class Main {\n static long mod = (long)(Math.pow(10, 9) + 7);\n public static String alpha = \"zabcdefghijklmnopqrstuvwxy\";\n public static void main(String[] args) throws IOException{\n Scanner scan = new Scanner(System.in);\n long t = 1;\n //System.out.println(t);\n while (t-- > 0){\n int n = scan.nextInt();\n if(n%1000 == 0) System.out.println(0);\n else System.out.println(1000-n%1000);\n }\n scan.close();\n\n }\n\n\n static boolean isPalindrome(String s){\n for(int i = 0; i<s.length()/2; i++){\n if(s.charAt(i) != s.charAt(s.length()-i-1)) return false;\n }\n return true;\n }\n\n static ArrayList factors(long n ){\n ArrayList<Long> facts = new ArrayList<>();\n for(int i = 1; i<=(int)Math.sqrt(n); i++){\n if(n%i == 0){\n if( i == Math.sqrt(n)) facts.add((long)i);\n else{\n facts.add((long)i);\n facts.add(n/i);\n }\n }\n }\n Collections.sort(facts);\n return facts;\n }\n\n static boolean isPrime (int n){\n if(factors(n).size() ==2) return true;\n else return false;\n }\n\n\n\n\n\n static long GCD(long a, long b) {\n // Everything divides 0\n if (a == 0) return b;\n if (b == 0) return a;\n\n // base case\n if (a == b) return a;\n\n // a is greater\n if (a > b) return GCD(a-b, b);\n return GCD(a, b-a);\n }\n static long LCM(long a, long b){\n return (a*b)/(GCD(a,b));\n }\n static String rev(String s){\n char[] arr = s.toCharArray();\n for(int i = 0; i<(s.length()+1)/2; i++){\n char temp = arr[i];\n arr[i] = arr[s.length()-i-1];\n arr[s.length()-i-1] = temp;\n }\n String fin = new String(arr);\n return fin;\n }\n static long pow(long a, long N) {\n if (N == 0) return 1;\n else if (N == 1) return a;\n else {\n long R = pow(a,N/2);\n if (N % 2 == 0) {\n return R*R;\n }\n else {\n return R*R*a;\n }\n }\n }\n\n static long powMod(long a, long N) {\n if (N == 0) return 1;\n else if (N == 1) return a % mod;\n else {\n long R = powMod(a,N/2) % mod;\n R *= R;\n R %= mod;\n if (N % 2 == 1) {\n R *= a;\n R %= mod;\n }\n return R % mod;\n }\n }\n\n}", "import java.lang.reflect.Array;", "Array", "java.lang.reflect", "import java.util.*;", "util.*", "java", "import java.io.* ;", "io.*", "java", "public class Main {\n static long mod = (long)(Math.pow(10, 9) + 7);\n public static String alpha = \"zabcdefghijklmnopqrstuvwxy\";\n public static void main(String[] args) throws IOException{\n Scanner scan = new Scanner(System.in);\n long t = 1;\n //System.out.println(t);\n while (t-- > 0){\n int n = scan.nextInt();\n if(n%1000 == 0) System.out.println(0);\n else System.out.println(1000-n%1000);\n }\n scan.close();\n\n }\n\n\n static boolean isPalindrome(String s){\n for(int i = 0; i<s.length()/2; i++){\n if(s.charAt(i) != s.charAt(s.length()-i-1)) return false;\n }\n return true;\n }\n\n static ArrayList factors(long n ){\n ArrayList<Long> facts = new ArrayList<>();\n for(int i = 1; i<=(int)Math.sqrt(n); i++){\n if(n%i == 0){\n if( i == Math.sqrt(n)) facts.add((long)i);\n else{\n facts.add((long)i);\n facts.add(n/i);\n }\n }\n }\n Collections.sort(facts);\n return facts;\n }\n\n static boolean isPrime (int n){\n if(factors(n).size() ==2) return true;\n else return false;\n }\n\n\n\n\n\n static long GCD(long a, long b) {\n // Everything divides 0\n if (a == 0) return b;\n if (b == 0) return a;\n\n // base case\n if (a == b) return a;\n\n // a is greater\n if (a > b) return GCD(a-b, b);\n return GCD(a, b-a);\n }\n static long LCM(long a, long b){\n return (a*b)/(GCD(a,b));\n }\n static String rev(String s){\n char[] arr = s.toCharArray();\n for(int i = 0; i<(s.length()+1)/2; i++){\n char temp = arr[i];\n arr[i] = arr[s.length()-i-1];\n arr[s.length()-i-1] = temp;\n }\n String fin = new String(arr);\n return fin;\n }\n static long pow(long a, long N) {\n if (N == 0) return 1;\n else if (N == 1) return a;\n else {\n long R = pow(a,N/2);\n if (N % 2 == 0) {\n return R*R;\n }\n else {\n return R*R*a;\n }\n }\n }\n\n static long powMod(long a, long N) {\n if (N == 0) return 1;\n else if (N == 1) return a % mod;\n else {\n long R = powMod(a,N/2) % mod;\n R *= R;\n R %= mod;\n if (N % 2 == 1) {\n R *= a;\n R %= mod;\n }\n return R % mod;\n }\n }\n\n}", "Main", "static long mod = (long)(Math.pow(10, 9) + 7);", "mod", "(long)(Math.pow(10, 9) + 7)", "Math.pow(10, 9)", "Math.pow", "Math", "10", "9", "7", "public static String alpha = \"zabcdefghijklmnopqrstuvwxy\";", "alpha", "\"zabcdefghijklmnopqrstuvwxy\"", "public static void main(String[] args) throws IOException{\n Scanner scan = new Scanner(System.in);\n long t = 1;\n //System.out.println(t);\n while (t-- > 0){\n int n = scan.nextInt();\n if(n%1000 == 0) System.out.println(0);\n else System.out.println(1000-n%1000);\n }\n scan.close();\n\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n long t = 1;\n //System.out.println(t);\n while (t-- > 0){\n int n = scan.nextInt();\n if(n%1000 == 0) System.out.println(0);\n else System.out.println(1000-n%1000);\n }\n scan.close();\n\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "long t = 1;", "t", "1", "while (t-- > 0){\n int n = scan.nextInt();\n if(n%1000 == 0) System.out.println(0);\n else System.out.println(1000-n%1000);\n }", "t-- > 0", "t--", "t", "0", "{\n int n = scan.nextInt();\n if(n%1000 == 0) System.out.println(0);\n else System.out.println(1000-n%1000);\n }", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "if(n%1000 == 0) System.out.println(0);\n else 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", "scan.close()", "scan.close", "scan", "String[] args", "args", "static boolean isPalindrome(String s){\n for(int i = 0; i<s.length()/2; i++){\n if(s.charAt(i) != s.charAt(s.length()-i-1)) return false;\n }\n return true;\n }", "isPalindrome", "{\n for(int i = 0; i<s.length()/2; i++){\n if(s.charAt(i) != s.charAt(s.length()-i-1)) return false;\n }\n return true;\n }", "for(int i = 0; i<s.length()/2; i++){\n if(s.charAt(i) != s.charAt(s.length()-i-1)) return false;\n }", "int i = 0;", "int i = 0;", "i", "0", "i<s.length()/2", "i", "s.length()/2", "s.length()", "s.length", "s", "2", "i++", "i++", "i", "{\n if(s.charAt(i) != s.charAt(s.length()-i-1)) return false;\n }", "{\n if(s.charAt(i) != s.charAt(s.length()-i-1)) return false;\n }", "if(s.charAt(i) != s.charAt(s.length()-i-1)) return false;", "s.charAt(i) != s.charAt(s.length()-i-1)", "s.charAt(i)", "s.charAt", "s", "i", "s.charAt(s.length()-i-1)", "s.charAt", "s", "s.length()-i-1", "s.length()-i-1", "s.length()", "s.length", "s", "i", "1", "return false;", "false", "return true;", "true", "String s", "s", "static ArrayList factors(long n ){\n ArrayList<Long> facts = new ArrayList<>();\n for(int i = 1; i<=(int)Math.sqrt(n); i++){\n if(n%i == 0){\n if( i == Math.sqrt(n)) facts.add((long)i);\n else{\n facts.add((long)i);\n facts.add(n/i);\n }\n }\n }\n Collections.sort(facts);\n return facts;\n }", "factors", "{\n ArrayList<Long> facts = new ArrayList<>();\n for(int i = 1; i<=(int)Math.sqrt(n); i++){\n if(n%i == 0){\n if( i == Math.sqrt(n)) facts.add((long)i);\n else{\n facts.add((long)i);\n facts.add(n/i);\n }\n }\n }\n Collections.sort(facts);\n return facts;\n }", "ArrayList<Long> facts = new ArrayList<>();", "facts", "new ArrayList<>()", "for(int i = 1; i<=(int)Math.sqrt(n); i++){\n if(n%i == 0){\n if( i == Math.sqrt(n)) facts.add((long)i);\n else{\n facts.add((long)i);\n facts.add(n/i);\n }\n }\n }", "int i = 1;", "int i = 1;", "i", "1", "i<=(int)Math.sqrt(n)", "i", "(int)Math.sqrt(n)", "Math.sqrt", "Math", "n", "i++", "i++", "i", "{\n if(n%i == 0){\n if( i == Math.sqrt(n)) facts.add((long)i);\n else{\n facts.add((long)i);\n facts.add(n/i);\n }\n }\n }", "{\n if(n%i == 0){\n if( i == Math.sqrt(n)) facts.add((long)i);\n else{\n facts.add((long)i);\n facts.add(n/i);\n }\n }\n }", "if(n%i == 0){\n if( i == Math.sqrt(n)) facts.add((long)i);\n else{\n facts.add((long)i);\n facts.add(n/i);\n }\n }", "n%i == 0", "n%i", "n", "i", "0", "{\n if( i == Math.sqrt(n)) facts.add((long)i);\n else{\n facts.add((long)i);\n facts.add(n/i);\n }\n }", "if( i == Math.sqrt(n)) facts.add((long)i);\n else{\n facts.add((long)i);\n facts.add(n/i);\n }", "i == Math.sqrt(n)", "i", "Math.sqrt(n)", "Math.sqrt", "Math", "n", "facts.add((long)i)", "facts.add", "facts", "(long)i", "{\n facts.add((long)i);\n facts.add(n/i);\n }", "facts.add((long)i)", "facts.add", "facts", "(long)i", "facts.add(n/i)", "facts.add", "facts", "n/i", "n", "i", "Collections.sort(facts)", "Collections.sort", "Collections", "facts", "return facts;", "facts", "long n", "n", "static boolean isPrime (int n){\n if(factors(n).size() ==2) return true;\n else return false;\n }", "isPrime", "{\n if(factors(n).size() ==2) return true;\n else return false;\n }", "if(factors(n).size() ==2) return true;\n else return false;", "factors(n).size() ==2", "factors(n).size()", "factors(n).size", "factors(n)", "factors", "n", "2", "return true;", "true", "return false;", "false", "int n", "n", "static long GCD(long a, long b) {\n // Everything divides 0\n if (a == 0) return b;\n if (b == 0) return a;\n\n // base case\n if (a == b) return a;\n\n // a is greater\n if (a > b) return GCD(a-b, b);\n return GCD(a, b-a);\n }", "GCD", "{\n // Everything divides 0\n if (a == 0) return b;\n if (b == 0) return a;\n\n // base case\n if (a == b) return a;\n\n // a is greater\n if (a > b) return GCD(a-b, b);\n return GCD(a, b-a);\n }", "if (a == 0) return b;", "a == 0", "a", "0", "return b;", "b", "if (b == 0) return a;", "b == 0", "b", "0", "return a;", "a", "if (a == b) return a;", "a == b", "a", "b", "return a;", "a", "if (a > b) return GCD(a-b, b);", "a > b", "a", "b", "return GCD(a-b, b);", "GCD(a-b, b)", "GCD", "a-b", "a", "b", "b", "return GCD(a, b-a);", "GCD(a, b-a)", "GCD", "a", "b-a", "b", "a", "long a", "a", "long b", "b", "static long LCM(long a, long b){\n return (a*b)/(GCD(a,b));\n }", "LCM", "{\n return (a*b)/(GCD(a,b));\n }", "return (a*b)/(GCD(a,b));", "(a*b)/(GCD(a,b))", "(a*b)", "a", "b", "(GCD(a,b))", "GCD", "a", "b", "long a", "a", "long b", "b", "static String rev(String s){\n char[] arr = s.toCharArray();\n for(int i = 0; i<(s.length()+1)/2; i++){\n char temp = arr[i];\n arr[i] = arr[s.length()-i-1];\n arr[s.length()-i-1] = temp;\n }\n String fin = new String(arr);\n return fin;\n }", "rev", "{\n char[] arr = s.toCharArray();\n for(int i = 0; i<(s.length()+1)/2; i++){\n char temp = arr[i];\n arr[i] = arr[s.length()-i-1];\n arr[s.length()-i-1] = temp;\n }\n String fin = new String(arr);\n return fin;\n }", "char[] arr = s.toCharArray();", "arr", "s.toCharArray()", "s.toCharArray", "s", "for(int i = 0; i<(s.length()+1)/2; i++){\n char temp = arr[i];\n arr[i] = arr[s.length()-i-1];\n arr[s.length()-i-1] = temp;\n }", "int i = 0;", "int i = 0;", "i", "0", "i<(s.length()+1)/2", "i", "(s.length()+1)/2", "(s.length()+1)", "s.length()", "s.length", "s", "1", "2", "i++", "i++", "i", "{\n char temp = arr[i];\n arr[i] = arr[s.length()-i-1];\n arr[s.length()-i-1] = temp;\n }", "{\n char temp = arr[i];\n arr[i] = arr[s.length()-i-1];\n arr[s.length()-i-1] = temp;\n }", "char temp = arr[i];", "temp", "arr[i]", "arr", "i", "arr[i] = arr[s.length()-i-1]", "arr[i]", "arr", "i", "arr[s.length()-i-1]", "arr", "s.length()-i-1", "s.length()-i-1", "s.length()", "s.length", "s", "i", "1", "arr[s.length()-i-1] = temp", "arr[s.length()-i-1]", "arr", "s.length()-i-1", "s.length()-i-1", "s.length()", "s.length", "s", "i", "1", "temp", "String fin = new String(arr);", "fin", "new String(arr)", "return fin;", "fin", "String s", "s", "static long pow(long a, long N) {\n if (N == 0) return 1;\n else if (N == 1) return a;\n else {\n long R = pow(a,N/2);\n if (N % 2 == 0) {\n return R*R;\n }\n else {\n return R*R*a;\n }\n }\n }", "pow", "{\n if (N == 0) return 1;\n else if (N == 1) return a;\n else {\n long R = pow(a,N/2);\n if (N % 2 == 0) {\n return R*R;\n }\n else {\n return R*R*a;\n }\n }\n }", "if (N == 0) return 1;\n else if (N == 1) return a;\n else {\n long R = pow(a,N/2);\n if (N % 2 == 0) {\n return R*R;\n }\n else {\n return R*R*a;\n }\n }", "N == 0", "N", "0", "return 1;", "1", "if (N == 1) return a;\n else {\n long R = pow(a,N/2);\n if (N % 2 == 0) {\n return R*R;\n }\n else {\n return R*R*a;\n }\n }", "N == 1", "N", "1", "return a;", "a", "{\n long R = pow(a,N/2);\n if (N % 2 == 0) {\n return R*R;\n }\n else {\n return R*R*a;\n }\n }", "long R = pow(a,N/2);", "R", "pow(a,N/2)", "pow", "a", "N/2", "N", "2", "if (N % 2 == 0) {\n return R*R;\n }\n else {\n return R*R*a;\n }", "N % 2 == 0", "N % 2", "N", "2", "0", "{\n return R*R;\n }", "return R*R;", "R*R", "R", "R", "{\n return R*R*a;\n }", "return R*R*a;", "R*R*a", "R*R*a", "R", "R", "a", "long a", "a", "long N", "N", "static long powMod(long a, long N) {\n if (N == 0) return 1;\n else if (N == 1) return a % mod;\n else {\n long R = powMod(a,N/2) % mod;\n R *= R;\n R %= mod;\n if (N % 2 == 1) {\n R *= a;\n R %= mod;\n }\n return R % mod;\n }\n }", "powMod", "{\n if (N == 0) return 1;\n else if (N == 1) return a % mod;\n else {\n long R = powMod(a,N/2) % mod;\n R *= R;\n R %= mod;\n if (N % 2 == 1) {\n R *= a;\n R %= mod;\n }\n return R % mod;\n }\n }", "if (N == 0) return 1;\n else if (N == 1) return a % mod;\n else {\n long R = powMod(a,N/2) % mod;\n R *= R;\n R %= mod;\n if (N % 2 == 1) {\n R *= a;\n R %= mod;\n }\n return R % mod;\n }", "N == 0", "N", "0", "return 1;", "1", "if (N == 1) return a % mod;\n else {\n long R = powMod(a,N/2) % mod;\n R *= R;\n R %= mod;\n if (N % 2 == 1) {\n R *= a;\n R %= mod;\n }\n return R % mod;\n }", "N == 1", "N", "1", "return a % mod;", "a % mod", "a", "mod", "{\n long R = powMod(a,N/2) % mod;\n R *= R;\n R %= mod;\n if (N % 2 == 1) {\n R *= a;\n R %= mod;\n }\n return R % mod;\n }", "long R = powMod(a,N/2) % mod;", "R", "powMod(a,N/2) % mod", "powMod(a,N/2)", "powMod", "a", "N/2", "N", "2", "mod", "R *= R", "R", "R", "R %= mod", "R", "mod", "if (N % 2 == 1) {\n R *= a;\n R %= mod;\n }", "N % 2 == 1", "N % 2", "N", "2", "1", "{\n R *= a;\n R %= mod;\n }", "R *= a", "R", "a", "R %= mod", "R", "mod", "return R % mod;", "R % mod", "R", "mod", "long a", "a", "long N", "N", "public class Main {\n static long mod = (long)(Math.pow(10, 9) + 7);\n public static String alpha = \"zabcdefghijklmnopqrstuvwxy\";\n public static void main(String[] args) throws IOException{\n Scanner scan = new Scanner(System.in);\n long t = 1;\n //System.out.println(t);\n while (t-- > 0){\n int n = scan.nextInt();\n if(n%1000 == 0) System.out.println(0);\n else System.out.println(1000-n%1000);\n }\n scan.close();\n\n }\n\n\n static boolean isPalindrome(String s){\n for(int i = 0; i<s.length()/2; i++){\n if(s.charAt(i) != s.charAt(s.length()-i-1)) return false;\n }\n return true;\n }\n\n static ArrayList factors(long n ){\n ArrayList<Long> facts = new ArrayList<>();\n for(int i = 1; i<=(int)Math.sqrt(n); i++){\n if(n%i == 0){\n if( i == Math.sqrt(n)) facts.add((long)i);\n else{\n facts.add((long)i);\n facts.add(n/i);\n }\n }\n }\n Collections.sort(facts);\n return facts;\n }\n\n static boolean isPrime (int n){\n if(factors(n).size() ==2) return true;\n else return false;\n }\n\n\n\n\n\n static long GCD(long a, long b) {\n // Everything divides 0\n if (a == 0) return b;\n if (b == 0) return a;\n\n // base case\n if (a == b) return a;\n\n // a is greater\n if (a > b) return GCD(a-b, b);\n return GCD(a, b-a);\n }\n static long LCM(long a, long b){\n return (a*b)/(GCD(a,b));\n }\n static String rev(String s){\n char[] arr = s.toCharArray();\n for(int i = 0; i<(s.length()+1)/2; i++){\n char temp = arr[i];\n arr[i] = arr[s.length()-i-1];\n arr[s.length()-i-1] = temp;\n }\n String fin = new String(arr);\n return fin;\n }\n static long pow(long a, long N) {\n if (N == 0) return 1;\n else if (N == 1) return a;\n else {\n long R = pow(a,N/2);\n if (N % 2 == 0) {\n return R*R;\n }\n else {\n return R*R*a;\n }\n }\n }\n\n static long powMod(long a, long N) {\n if (N == 0) return 1;\n else if (N == 1) return a % mod;\n else {\n long R = powMod(a,N/2) % mod;\n R *= R;\n R %= mod;\n if (N % 2 == 1) {\n R *= a;\n R %= mod;\n }\n return R % mod;\n }\n }\n\n}", "public class Main {\n static long mod = (long)(Math.pow(10, 9) + 7);\n public static String alpha = \"zabcdefghijklmnopqrstuvwxy\";\n public static void main(String[] args) throws IOException{\n Scanner scan = new Scanner(System.in);\n long t = 1;\n //System.out.println(t);\n while (t-- > 0){\n int n = scan.nextInt();\n if(n%1000 == 0) System.out.println(0);\n else System.out.println(1000-n%1000);\n }\n scan.close();\n\n }\n\n\n static boolean isPalindrome(String s){\n for(int i = 0; i<s.length()/2; i++){\n if(s.charAt(i) != s.charAt(s.length()-i-1)) return false;\n }\n return true;\n }\n\n static ArrayList factors(long n ){\n ArrayList<Long> facts = new ArrayList<>();\n for(int i = 1; i<=(int)Math.sqrt(n); i++){\n if(n%i == 0){\n if( i == Math.sqrt(n)) facts.add((long)i);\n else{\n facts.add((long)i);\n facts.add(n/i);\n }\n }\n }\n Collections.sort(facts);\n return facts;\n }\n\n static boolean isPrime (int n){\n if(factors(n).size() ==2) return true;\n else return false;\n }\n\n\n\n\n\n static long GCD(long a, long b) {\n // Everything divides 0\n if (a == 0) return b;\n if (b == 0) return a;\n\n // base case\n if (a == b) return a;\n\n // a is greater\n if (a > b) return GCD(a-b, b);\n return GCD(a, b-a);\n }\n static long LCM(long a, long b){\n return (a*b)/(GCD(a,b));\n }\n static String rev(String s){\n char[] arr = s.toCharArray();\n for(int i = 0; i<(s.length()+1)/2; i++){\n char temp = arr[i];\n arr[i] = arr[s.length()-i-1];\n arr[s.length()-i-1] = temp;\n }\n String fin = new String(arr);\n return fin;\n }\n static long pow(long a, long N) {\n if (N == 0) return 1;\n else if (N == 1) return a;\n else {\n long R = pow(a,N/2);\n if (N % 2 == 0) {\n return R*R;\n }\n else {\n return R*R*a;\n }\n }\n }\n\n static long powMod(long a, long N) {\n if (N == 0) return 1;\n else if (N == 1) return a % mod;\n else {\n long R = powMod(a,N/2) % mod;\n R *= R;\n R %= mod;\n if (N % 2 == 1) {\n R *= a;\n R %= mod;\n }\n return R % mod;\n }\n }\n\n}", "Main" ]
import java.lang.reflect.Array; import java.util.*; import java.io.* ; /* NOTES: -more than 10 digits (10^10), use long -prefix sum of 1's and -1's to control flow of highlighting a region -log(a)/log(b) = log base b of a -create a position array if trying to see if elements show up next to each other sequentially i.e. elements 1,2,3 are within 3 spots of each other in an array arr[scannedInt - 1] = i; (position of i at p[i] in original) - use a freq array when counting instances of an element occurring - increment the counter first before simulating anything turn-based (two player game) */ public class Main { static long mod = (long)(Math.pow(10, 9) + 7); public static String alpha = "zabcdefghijklmnopqrstuvwxy"; public static void main(String[] args) throws IOException{ Scanner scan = new Scanner(System.in); long t = 1; //System.out.println(t); while (t-- > 0){ int n = scan.nextInt(); if(n%1000 == 0) System.out.println(0); else System.out.println(1000-n%1000); } scan.close(); } static boolean isPalindrome(String s){ for(int i = 0; i<s.length()/2; i++){ if(s.charAt(i) != s.charAt(s.length()-i-1)) return false; } return true; } static ArrayList factors(long n ){ ArrayList<Long> facts = new ArrayList<>(); for(int i = 1; i<=(int)Math.sqrt(n); i++){ if(n%i == 0){ if( i == Math.sqrt(n)) facts.add((long)i); else{ facts.add((long)i); facts.add(n/i); } } } Collections.sort(facts); return facts; } static boolean isPrime (int n){ if(factors(n).size() ==2) return true; else return false; } static long GCD(long a, long b) { // Everything divides 0 if (a == 0) return b; if (b == 0) return a; // base case if (a == b) return a; // a is greater if (a > b) return GCD(a-b, b); return GCD(a, b-a); } static long LCM(long a, long b){ return (a*b)/(GCD(a,b)); } static String rev(String s){ char[] arr = s.toCharArray(); for(int i = 0; i<(s.length()+1)/2; i++){ char temp = arr[i]; arr[i] = arr[s.length()-i-1]; arr[s.length()-i-1] = temp; } String fin = new String(arr); return fin; } static long pow(long a, long N) { if (N == 0) return 1; else if (N == 1) return a; else { long R = pow(a,N/2); if (N % 2 == 0) { return R*R; } else { return R*R*a; } } } static long powMod(long a, long N) { if (N == 0) return 1; else if (N == 1) return a % mod; else { long R = powMod(a,N/2) % mod; R *= R; R %= mod; if (N % 2 == 1) { R *= a; R %= mod; } return R % mod; } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 2, 13, 17, 14, 2, 2, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 2, 2, 17, 2, 13, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 54, 5 ], [ 54, 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 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 25, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 25, 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 ], [ 6, 51 ], [ 51, 52 ], [ 0, 53 ], [ 53, 54 ], [ 53, 55 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int price = scan.nextInt(); // 商品価格\n scan.close();\n int num1000 = price / 1000; // 必要な1000円の枚数-1\n if (price % 1000 == 0) {\n // 価格が1000円で割り切れるときはお釣り0\n System.out.println(\"0\");\n } else {\n System.out.println(1000 * (num1000 + 1) - price);\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int price = scan.nextInt(); // 商品価格\n scan.close();\n int num1000 = price / 1000; // 必要な1000円の枚数-1\n if (price % 1000 == 0) {\n // 価格が1000円で割り切れるときはお釣り0\n System.out.println(\"0\");\n } else {\n System.out.println(1000 * (num1000 + 1) - price);\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int price = scan.nextInt(); // 商品価格\n scan.close();\n int num1000 = price / 1000; // 必要な1000円の枚数-1\n if (price % 1000 == 0) {\n // 価格が1000円で割り切れるときはお釣り0\n System.out.println(\"0\");\n } else {\n System.out.println(1000 * (num1000 + 1) - price);\n }\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n int price = scan.nextInt(); // 商品価格\n scan.close();\n int num1000 = price / 1000; // 必要な1000円の枚数-1\n if (price % 1000 == 0) {\n // 価格が1000円で割り切れるときはお釣り0\n System.out.println(\"0\");\n } else {\n System.out.println(1000 * (num1000 + 1) - price);\n }\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int price = scan.nextInt();", "price", "scan.nextInt()", "scan.nextInt", "scan", "scan.close()", "scan.close", "scan", "int num1000 = price / 1000;", "num1000", "price / 1000", "price", "1000", "if (price % 1000 == 0) {\n // 価格が1000円で割り切れるときはお釣り0\n System.out.println(\"0\");\n } else {\n System.out.println(1000 * (num1000 + 1) - price);\n }", "price % 1000 == 0", "price % 1000", "price", "1000", "0", "{\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 * (num1000 + 1) - price);\n }", "System.out.println(1000 * (num1000 + 1) - price)", "System.out.println", "System.out", "System", "System.out", "1000 * (num1000 + 1) - price", "1000 * (num1000 + 1)", "1000", "(num1000 + 1)", "num1000", "1", "price", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int price = scan.nextInt(); // 商品価格\n scan.close();\n int num1000 = price / 1000; // 必要な1000円の枚数-1\n if (price % 1000 == 0) {\n // 価格が1000円で割り切れるときはお釣り0\n System.out.println(\"0\");\n } else {\n System.out.println(1000 * (num1000 + 1) - price);\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int price = scan.nextInt(); // 商品価格\n scan.close();\n int num1000 = price / 1000; // 必要な1000円の枚数-1\n if (price % 1000 == 0) {\n // 価格が1000円で割り切れるときはお釣り0\n System.out.println(\"0\");\n } else {\n System.out.println(1000 * (num1000 + 1) - price);\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int price = scan.nextInt(); // 商品価格 scan.close(); int num1000 = price / 1000; // 必要な1000円の枚数-1 if (price % 1000 == 0) { // 価格が1000円で割り切れるときはお釣り0 System.out.println("0"); } else { System.out.println(1000 * (num1000 + 1) - price); } } }
[ 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, 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 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 51, 11 ], [ 51, 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 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 27, 31 ], [ 26, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 26, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 45, 47 ], [ 12, 48 ], [ 48, 49 ], [ 0, 50 ], [ 50, 51 ], [ 50, 52 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n int n = Integer.parseInt(br.readLine());\n if(n%1000==0)\n System.out.println(0);\n else\n System.out.println(1000 - (n%1000));\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 public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n int n = Integer.parseInt(br.readLine());\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) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n int n = Integer.parseInt(br.readLine());\n if(n%1000==0)\n System.out.println(0);\n else\n System.out.println(1000 - (n%1000));\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n int n = Integer.parseInt(br.readLine());\n if(n%1000==0)\n System.out.println(0);\n else\n System.out.println(1000 - (n%1000));\n }", "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", "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) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n int n = Integer.parseInt(br.readLine());\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) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n int n = Integer.parseInt(br.readLine());\n if(n%1000==0)\n System.out.println(0);\n else\n System.out.println(1000 - (n%1000));\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 IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); 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, 14, 2, 2, 13, 17, 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 ], [ 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 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 21, 25 ], [ 20, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 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.Scanner;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n\n Scanner sc = new Scanner(System.in);\n\n int N = sc.nextInt();\n int num = 0;\n\n if(N % 1000 != 0) {\n \tnum = 1000 - N % 1000;\n }\n\n System.out.println(num);\n\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) throws Exception {\n\n Scanner sc = new Scanner(System.in);\n\n int N = sc.nextInt();\n int num = 0;\n\n if(N % 1000 != 0) {\n \tnum = 1000 - N % 1000;\n }\n\n System.out.println(num);\n\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n\n Scanner sc = new Scanner(System.in);\n\n int N = sc.nextInt();\n int num = 0;\n\n if(N % 1000 != 0) {\n \tnum = 1000 - N % 1000;\n }\n\n System.out.println(num);\n\n }", "main", "{\n\n Scanner sc = new Scanner(System.in);\n\n int N = sc.nextInt();\n int num = 0;\n\n if(N % 1000 != 0) {\n \tnum = 1000 - N % 1000;\n }\n\n System.out.println(num);\n\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "int num = 0;", "num", "0", "if(N % 1000 != 0) {\n \tnum = 1000 - N % 1000;\n }", "N % 1000 != 0", "N % 1000", "N", "1000", "0", "{\n \tnum = 1000 - N % 1000;\n }", "num = 1000 - N % 1000", "num", "1000 - N % 1000", "1000", "N % 1000", "N", "1000", "System.out.println(num)", "System.out.println", "System.out", "System", "System.out", "num", "String[] args", "args", "public class Main {\n public static void main(String[] args) throws Exception {\n\n Scanner sc = new Scanner(System.in);\n\n int N = sc.nextInt();\n int num = 0;\n\n if(N % 1000 != 0) {\n \tnum = 1000 - N % 1000;\n }\n\n System.out.println(num);\n\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n\n Scanner sc = new Scanner(System.in);\n\n int N = sc.nextInt();\n int num = 0;\n\n if(N % 1000 != 0) {\n \tnum = 1000 - N % 1000;\n }\n\n System.out.println(num);\n\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 num = 0; if(N % 1000 != 0) { num = 1000 - N % 1000; } System.out.println(num); } }
[ 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, 2, 2, 2, 2, 13, 17, 17, 17, 13, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 49, 8 ], [ 49, 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 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 33, 37 ], [ 32, 38 ], [ 31, 39 ], [ 20, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 9, 46 ], [ 46, 47 ], [ 0, 48 ], [ 48, 49 ], [ 48, 50 ] ]
[ "import java.io.*;\nimport java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws IOException\n {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n if(N%1000 != 0)\n System.out.println((N/1000 + 1)*1000 - N);\n else\n System.out.println(0);\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) throws IOException\n {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n if(N%1000 != 0)\n System.out.println((N/1000 + 1)*1000 - N);\n else\n System.out.println(0);\n }\n}", "Main", "public static void main(String[] args) throws IOException\n {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n if(N%1000 != 0)\n System.out.println((N/1000 + 1)*1000 - N);\n else\n System.out.println(0);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n if(N%1000 != 0)\n System.out.println((N/1000 + 1)*1000 - N);\n else\n System.out.println(0);\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((N/1000 + 1)*1000 - N);\n else\n System.out.println(0);", "N%1000 != 0", "N%1000", "N", "1000", "0", "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", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "String[] args", "args", "public class Main {\n public static void main(String[] args) throws IOException\n {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n if(N%1000 != 0)\n System.out.println((N/1000 + 1)*1000 - N);\n else\n System.out.println(0);\n }\n}", "public class Main {\n public static void main(String[] args) throws IOException\n {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n if(N%1000 != 0)\n System.out.println((N/1000 + 1)*1000 - N);\n else\n System.out.println(0);\n }\n}", "Main" ]
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws IOException { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); if(N%1000 != 0) System.out.println((N/1000 + 1)*1000 - N); else System.out.println(0); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 4, 18, 18, 13, 13, 8, 2, 2, 13, 17, 17, 2, 17, 2, 13, 17, 17, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 4, 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 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 15, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 21, 25 ], [ 20, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 28, 30 ], [ 20, 31 ], [ 12, 32 ], [ 32, 33 ], [ 10, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 45, 46 ], [ 46, 47 ], [ 36, 48 ], [ 48, 49 ], [ 48, 50 ], [ 34, 51 ], [ 51, 52 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nclass Main {\n private static void solve(int n) {\n // solve here\n System.out.println(n%1000 != 0 ? 1000 - (n%1000) : 0);\n }\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n solve(n);\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "class Main {\n private static void solve(int n) {\n // solve here\n System.out.println(n%1000 != 0 ? 1000 - (n%1000) : 0);\n }\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n solve(n);\n }\n}", "Main", "private static void solve(int n) {\n // solve here\n System.out.println(n%1000 != 0 ? 1000 - (n%1000) : 0);\n }", "solve", "{\n // solve here\n System.out.println(n%1000 != 0 ? 1000 - (n%1000) : 0);\n }", "System.out.println(n%1000 != 0 ? 1000 - (n%1000) : 0)", "System.out.println", "System.out", "System", "System.out", "n%1000 != 0 ? 1000 - (n%1000) : 0", "n%1000 != 0", "n%1000", "n", "1000", "0", "1000 - (n%1000)", "1000", "(n%1000)", "n", "1000", "0", "int n", "n", "public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n solve(n);\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n solve(n);\n }", "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", "solve(n)", "solve", "n", "String[] args", "args" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; class Main { private static void solve(int n) { // solve here System.out.println(n%1000 != 0 ? 1000 - (n%1000) : 0); } public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); solve(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, 0, 13, 17, 41, 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 ], [ 55, 5 ], [ 55, 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 ], [ 35, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 35, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 46, 51 ], [ 6, 52 ], [ 52, 53 ], [ 0, 54 ], [ 54, 55 ], [ 54, 56 ] ]
[ "import java.util.Scanner;\npublic class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan =new Scanner(System.in);\n\t\tint N=scan.nextInt();\n\t\tint sum=N/1000;\n\t\tif(N%1000==0) {\n\t\t\tSystem.out.println(0);\n\t\t}else {\n\t\t\tsum+=1;\n\t\t\tint goukei=(1000*sum)-N;\n\t\t\tSystem.out.println(goukei);\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\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan =new Scanner(System.in);\n\t\tint N=scan.nextInt();\n\t\tint sum=N/1000;\n\t\tif(N%1000==0) {\n\t\t\tSystem.out.println(0);\n\t\t}else {\n\t\t\tsum+=1;\n\t\t\tint goukei=(1000*sum)-N;\n\t\t\tSystem.out.println(goukei);\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan =new Scanner(System.in);\n\t\tint N=scan.nextInt();\n\t\tint sum=N/1000;\n\t\tif(N%1000==0) {\n\t\t\tSystem.out.println(0);\n\t\t}else {\n\t\t\tsum+=1;\n\t\t\tint goukei=(1000*sum)-N;\n\t\t\tSystem.out.println(goukei);\n\t\t}\n\t}", "main", "{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan =new Scanner(System.in);\n\t\tint N=scan.nextInt();\n\t\tint sum=N/1000;\n\t\tif(N%1000==0) {\n\t\t\tSystem.out.println(0);\n\t\t}else {\n\t\t\tsum+=1;\n\t\t\tint goukei=(1000*sum)-N;\n\t\t\tSystem.out.println(goukei);\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", "int sum=N/1000;", "sum", "N/1000", "N", "1000", "if(N%1000==0) {\n\t\t\tSystem.out.println(0);\n\t\t}else {\n\t\t\tsum+=1;\n\t\t\tint goukei=(1000*sum)-N;\n\t\t\tSystem.out.println(goukei);\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\tsum+=1;\n\t\t\tint goukei=(1000*sum)-N;\n\t\t\tSystem.out.println(goukei);\n\t\t}", "sum+=1", "sum", "1", "int goukei=(1000*sum)-N;", "goukei", "(1000*sum)-N", "(1000*sum)", "1000", "sum", "N", "System.out.println(goukei)", "System.out.println", "System.out", "System", "System.out", "goukei", "String[] args", "args", "public class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan =new Scanner(System.in);\n\t\tint N=scan.nextInt();\n\t\tint sum=N/1000;\n\t\tif(N%1000==0) {\n\t\t\tSystem.out.println(0);\n\t\t}else {\n\t\t\tsum+=1;\n\t\t\tint goukei=(1000*sum)-N;\n\t\t\tSystem.out.println(goukei);\n\t\t}\n\t}\n\n}", "public class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan =new Scanner(System.in);\n\t\tint N=scan.nextInt();\n\t\tint sum=N/1000;\n\t\tif(N%1000==0) {\n\t\t\tSystem.out.println(0);\n\t\t}else {\n\t\t\tsum+=1;\n\t\t\tint goukei=(1000*sum)-N;\n\t\t\tSystem.out.println(goukei);\n\t\t}\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner scan =new Scanner(System.in); int N=scan.nextInt(); int sum=N/1000; if(N%1000==0) { System.out.println(0); }else { sum+=1; int goukei=(1000*sum)-N; System.out.println(goukei); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 11, 1, 2, 13, 17, 30, 30, 0, 13, 17, 4, 18, 18, 13, 13, 2, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 41, 8 ], [ 41, 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 ], [ 20, 25 ], [ 26, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 11, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 35, 37 ], [ 9, 38 ], [ 38, 39 ], [ 0, 40 ], [ 40, 41 ], [ 40, 42 ] ]
[ "import java.util.Scanner;\nimport java.io.IOException;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint num = scan.nextInt();\n\t\tfor(;num > 1000;) {\n\t\t\tnum -= 1000;\n\t\t}\n\t\tSystem.out.println(1000-num);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "import java.io.IOException;", "IOException", "java.io", "public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint num = scan.nextInt();\n\t\tfor(;num > 1000;) {\n\t\t\tnum -= 1000;\n\t\t}\n\t\tSystem.out.println(1000-num);\n\t}\n}", "Main", "public static void main(String[] args) throws IOException{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint num = scan.nextInt();\n\t\tfor(;num > 1000;) {\n\t\t\tnum -= 1000;\n\t\t}\n\t\tSystem.out.println(1000-num);\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint num = scan.nextInt();\n\t\tfor(;num > 1000;) {\n\t\t\tnum -= 1000;\n\t\t}\n\t\tSystem.out.println(1000-num);\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int num = scan.nextInt();", "num", "scan.nextInt()", "scan.nextInt", "scan", "for(;num > 1000;) {\n\t\t\tnum -= 1000;\n\t\t}", ";", "num > 1000", "num", "1000", "{\n\t\t\tnum -= 1000;\n\t\t}", "{\n\t\t\tnum -= 1000;\n\t\t}", "num -= 1000", "num", "1000", "System.out.println(1000-num)", "System.out.println", "System.out", "System", "System.out", "1000-num", "1000", "num", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint num = scan.nextInt();\n\t\tfor(;num > 1000;) {\n\t\t\tnum -= 1000;\n\t\t}\n\t\tSystem.out.println(1000-num);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint num = scan.nextInt();\n\t\tfor(;num > 1000;) {\n\t\t\tnum -= 1000;\n\t\t}\n\t\tSystem.out.println(1000-num);\n\t}\n}", "Main" ]
import java.util.Scanner; import java.io.IOException; public class Main { public static void main(String[] args) throws IOException{ Scanner scan = new Scanner(System.in); int num = scan.nextInt(); for(;num > 1000;) { num -= 1000; } System.out.println(1000-num); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 13, 42, 2, 13, 17, 30, 0, 13, 2, 13, 17, 4, 18, 18, 13, 13, 40, 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 ], [ 27, 28 ], [ 27, 29 ], [ 8, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 6, 37 ], [ 37, 38 ], [ 0, 39 ], [ 39, 40 ], [ 39, 41 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n\n int r = N;\n while(r > 0) {\n r = r - 1000;\n }\n System.out.println(-r);\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\n int r = N;\n while(r > 0) {\n r = r - 1000;\n }\n System.out.println(-r);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n\n int r = N;\n while(r > 0) {\n r = r - 1000;\n }\n System.out.println(-r);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n\n int r = N;\n while(r > 0) {\n r = r - 1000;\n }\n System.out.println(-r);\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;", "r", "N", "while(r > 0) {\n r = r - 1000;\n }", "r > 0", "r", "0", "{\n r = r - 1000;\n }", "r = r - 1000", "r", "r - 1000", "r", "1000", "System.out.println(-r)", "System.out.println", "System.out", "System", "System.out", "-r", "r", "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\n int r = N;\n while(r > 0) {\n r = r - 1000;\n }\n System.out.println(-r);\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\n int r = N;\n while(r > 0) {\n r = r - 1000;\n }\n System.out.println(-r);\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 r = N; while(r > 0) { r = r - 1000; } System.out.println(-r); } }
[ 7, 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 ], [ 57, 8 ], [ 57, 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 ], [ 25, 26 ], [ 25, 27 ], [ 24, 28 ], [ 23, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 23, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 36, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 9, 54 ], [ 54, 55 ], [ 0, 56 ], [ 56, 57 ], [ 56, 58 ] ]
[ "\nimport java.util.*;\nimport java.io.*;\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\n\n System.out.println(0);\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", "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\n\n System.out.println(0);\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\n\n System.out.println(0);\n }\n else\n {\n int no_of_notes = N/bill + 1;\n System.out.println(no_of_notes*1000-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\n\n System.out.println(0);\n }\n else\n {\n int no_of_notes = N/bill + 1;\n System.out.println(no_of_notes*1000-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\n\n System.out.println(0);\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\n\n System.out.println(0);\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\n\n System.out.println(0);\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\n\n System.out.println(0);\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.*; 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, 13, 17, 30, 0, 13, 2, 17, 13, 4, 18, 18, 13, 13, 4, 18, 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 ], [ 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 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 6, 41 ], [ 41, 42 ], [ 0, 43 ], [ 43, 44 ], [ 43, 45 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n int ret = n % 1000;\n if(ret > 0) {\n ret = 1000 - ret;\n }\n\n System.out.println(String.valueOf(ret));\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 int n = sc.nextInt();\n int ret = n % 1000;\n if(ret > 0) {\n ret = 1000 - ret;\n }\n\n System.out.println(String.valueOf(ret));\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n int ret = n % 1000;\n if(ret > 0) {\n ret = 1000 - ret;\n }\n\n System.out.println(String.valueOf(ret));\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n int ret = n % 1000;\n if(ret > 0) {\n ret = 1000 - ret;\n }\n\n System.out.println(String.valueOf(ret));\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int ret = n % 1000;", "ret", "n % 1000", "n", "1000", "if(ret > 0) {\n ret = 1000 - ret;\n }", "ret > 0", "ret", "0", "{\n ret = 1000 - ret;\n }", "ret = 1000 - ret", "ret", "1000 - ret", "1000", "ret", "System.out.println(String.valueOf(ret))", "System.out.println", "System.out", "System", "System.out", "String.valueOf(ret)", "String.valueOf", "String", "ret", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n int ret = n % 1000;\n if(ret > 0) {\n ret = 1000 - ret;\n }\n\n System.out.println(String.valueOf(ret));\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n int ret = n % 1000;\n if(ret > 0) {\n ret = 1000 - ret;\n }\n\n System.out.println(String.valueOf(ret));\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 ret = n % 1000; if(ret > 0) { ret = 1000 - ret; } System.out.println(String.valueOf(ret)); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 2, 17, 17, 41, 13, 18, 13, 13, 41, 13, 18, 13, 13, 41, 13, 17, 12, 13, 30, 41, 13, 4, 18, 13, 4, 18, 18, 13, 13, 2, 2, 17, 2, 13, 17, 17, 12, 13, 30, 4, 18, 20, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 56, 5 ], [ 56, 6 ], [ 6, 7 ], [ 6, 8 ], [ 56, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 11, 13 ], [ 56, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 16, 18 ], [ 56, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 21, 23 ], [ 56, 24 ], [ 24, 25 ], [ 24, 26 ], [ 56, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 29, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 43, 45 ], [ 40, 46 ], [ 56, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 47, 53 ], [ 53, 54 ], [ 0, 55 ], [ 55, 56 ], [ 55, 57 ] ]
[ "import java.util.*;\n \npublic class Main {\n\tScanner sc = new Scanner(System.in);\n\tfinal int MOD = (int)1e9 + 7;\n\tfinal int MAX = Integer.MAX_VALUE;\n\tfinal long LMAX = Long.MAX_VALUE;\n\tint len = (int)1e7;\n\t\n\t\n\tvoid doIt() {\n\t\tint N = sc.nextInt();\n\t\tSystem.out.println((1000-(N%1000)) % 1000);\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tnew Main().doIt();\n\t}\n \n}", "import java.util.*;", "util.*", "java", "public class Main {\n\tScanner sc = new Scanner(System.in);\n\tfinal int MOD = (int)1e9 + 7;\n\tfinal int MAX = Integer.MAX_VALUE;\n\tfinal long LMAX = Long.MAX_VALUE;\n\tint len = (int)1e7;\n\t\n\t\n\tvoid doIt() {\n\t\tint N = sc.nextInt();\n\t\tSystem.out.println((1000-(N%1000)) % 1000);\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tnew Main().doIt();\n\t}\n \n}", "Main", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "final int MOD = (int)1e9 + 7;", "MOD", "(int)1e9 + 7", "(int)1e9", "7", "final int MAX = Integer.MAX_VALUE;", "MAX", "Integer.MAX_VALUE", "Integer", "Integer.MAX_VALUE", "final long LMAX = Long.MAX_VALUE;", "LMAX", "Long.MAX_VALUE", "Long", "Long.MAX_VALUE", "int len = (int)1e7;", "len", "(int)1e7", "void doIt() {\n\t\tint N = sc.nextInt();\n\t\tSystem.out.println((1000-(N%1000)) % 1000);\n\t}", "doIt", "{\n\t\tint N = sc.nextInt();\n\t\tSystem.out.println((1000-(N%1000)) % 1000);\n\t}", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "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", "public static void main(String[] args) {\n\t\tnew Main().doIt();\n\t}", "main", "{\n\t\tnew Main().doIt();\n\t}", "new Main().doIt()", "new Main().doIt", "new Main()", "String[] args", "args", "public class Main {\n\tScanner sc = new Scanner(System.in);\n\tfinal int MOD = (int)1e9 + 7;\n\tfinal int MAX = Integer.MAX_VALUE;\n\tfinal long LMAX = Long.MAX_VALUE;\n\tint len = (int)1e7;\n\t\n\t\n\tvoid doIt() {\n\t\tint N = sc.nextInt();\n\t\tSystem.out.println((1000-(N%1000)) % 1000);\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tnew Main().doIt();\n\t}\n \n}", "public class Main {\n\tScanner sc = new Scanner(System.in);\n\tfinal int MOD = (int)1e9 + 7;\n\tfinal int MAX = Integer.MAX_VALUE;\n\tfinal long LMAX = Long.MAX_VALUE;\n\tint len = (int)1e7;\n\t\n\t\n\tvoid doIt() {\n\t\tint N = sc.nextInt();\n\t\tSystem.out.println((1000-(N%1000)) % 1000);\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tnew Main().doIt();\n\t}\n \n}", "Main" ]
import java.util.*; public class Main { Scanner sc = new Scanner(System.in); final int MOD = (int)1e9 + 7; final int MAX = Integer.MAX_VALUE; final long LMAX = Long.MAX_VALUE; int len = (int)1e7; void doIt() { int N = sc.nextInt(); System.out.println((1000-(N%1000)) % 1000); } public static void main(String[] args) { new Main().doIt(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 0, 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 ], [ 17, 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\tpublic static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tint N=scan.nextInt();\n\t\tint s=0;\n\t\ts=(1000-N%1000)%1000;\n\t\tSystem.out.println(s);\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\tScanner scan=new Scanner(System.in);\n\t\tint N=scan.nextInt();\n\t\tint s=0;\n\t\ts=(1000-N%1000)%1000;\n\t\tSystem.out.println(s);\n\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\tint s=0;\n\t\ts=(1000-N%1000)%1000;\n\t\tSystem.out.println(s);\n\n\t}", "main", "{\n\t\tScanner scan=new Scanner(System.in);\n\t\tint N=scan.nextInt();\n\t\tint s=0;\n\t\ts=(1000-N%1000)%1000;\n\t\tSystem.out.println(s);\n\n\t}", "Scanner scan=new Scanner(System.in);", "scan", "new Scanner(System.in)", "int N=scan.nextInt();", "N", "scan.nextInt()", "scan.nextInt", "scan", "int s=0;", "s", "0", "s=(1000-N%1000)%1000", "s", "(1000-N%1000)%1000", "(1000-N%1000)", "1000", "N%1000", "N", "1000", "1000", "System.out.println(s)", "System.out.println", "System.out", "System", "System.out", "s", "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\tint s=0;\n\t\ts=(1000-N%1000)%1000;\n\t\tSystem.out.println(s);\n\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\tint s=0;\n\t\ts=(1000-N%1000)%1000;\n\t\tSystem.out.println(s);\n\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(); int s=0; s=(1000-N%1000)%1000; System.out.println(s); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 4, 18, 13, 41, 13, 17, 42, 2, 13, 13, 30, 0, 13, 2, 13, 17, 0, 13, 2, 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 ], [ 14, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 25, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 32, 34 ], [ 8, 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 ] ]
[ "import java.io.*;\nclass Main{\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine().trim());\n int a = 1000;\n while(a<n){\n a = a+1000;\n\t // System.out.println(\"Executed\");\n\t}\n a = a - n;\n System.out.println(a);\n }\n}", "import java.io.*;", "io.*", "java", "class Main{\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine().trim());\n int a = 1000;\n while(a<n){\n a = a+1000;\n\t // System.out.println(\"Executed\");\n\t}\n a = a - n;\n System.out.println(a);\n }\n}", "Main", "public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine().trim());\n int a = 1000;\n while(a<n){\n a = a+1000;\n\t // System.out.println(\"Executed\");\n\t}\n a = a - n;\n System.out.println(a);\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine().trim());\n int a = 1000;\n while(a<n){\n a = a+1000;\n\t // System.out.println(\"Executed\");\n\t}\n a = a - n;\n System.out.println(a);\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int n = Integer.parseInt(br.readLine().trim());", "n", "Integer.parseInt(br.readLine().trim())", "Integer.parseInt", "Integer", "br.readLine().trim()", "br.readLine().trim", "br.readLine()", "br.readLine", "br", "int a = 1000;", "a", "1000", "while(a<n){\n a = a+1000;\n\t // System.out.println(\"Executed\");\n\t}", "a<n", "a", "n", "{\n a = a+1000;\n\t // System.out.println(\"Executed\");\n\t}", "a = a+1000", "a", "a+1000", "a", "1000", "a = a - n", "a", "a - n", "a", "n", "System.out.println(a)", "System.out.println", "System.out", "System", "System.out", "a", "String[] args", "args" ]
import java.io.*; class Main{ public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine().trim()); int a = 1000; while(a<n){ a = a+1000; // System.out.println("Executed"); } a = a - n; System.out.println(a); } }
[ 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, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 20, 2, 13, 17, 4, 18, 13, 13, 17, 0, 18, 13, 17, 17, 0, 18, 13, 17, 17, 41, 13, 4, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 18, 13, 13, 30, 11, 1, 41, 13, 2, 13, 13, 2, 13, 13, 1, 0, 13, 13, 30, 30, 0, 18, 13, 13, 17, 29, 13, 23, 13, 12, 13, 30, 14, 2, 13, 17, 30, 29, 13, 29, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 13, 11, 1, 41, 13, 17, 2, 2, 13, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 13, 17, 30, 42, 2, 2, 13, 13, 17, 30, 0, 13, 13, 0, 13, 2, 13, 13, 14, 2, 13, 17, 30, 0, 13, 2, 13, 13, 29, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 2, 13, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 13, 17, 17, 2, 2, 13, 17, 17, 30, 29, 17, 29, 17, 23, 13, 12, 13, 30, 4, 18, 20, 23, 13, 12, 13, 30, 41, 13, 17, 41, 13, 2, 18, 13, 13, 17, 42, 2, 13, 13, 30, 41, 13, 18, 13, 13, 0, 18, 13, 13, 18, 13, 13, 0, 18, 13, 13, 13, 40, 13, 40, 13, 23, 13, 12, 13, 30, 41, 13, 4, 13, 4, 13, 2, 2, 17, 2, 13, 17, 17, 12, 13, 30, 14, 2, 2, 13, 17, 17, 30, 29, 13, 14, 2, 2, 13, 17, 17, 30, 29, 17, 14, 2, 2, 13, 17, 17, 30, 29, 2, 13, 17, 29, 17, 23, 13, 12, 13, 30, 29, 2, 4, 13, 13, 4, 13, 2, 13, 17, 23, 13, 23, 13, 12, 13, 30, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 13, 0, 13, 13, 0, 13, 13, 23, 13, 23, 13, 12, 13, 30, 29, 4, 18, 13, 13, 13, 23, 13, 23, 13, 12, 13, 30, 29, 4, 18, 13, 13, 13, 23, 13, 23, 13, 12, 13, 30, 29, 4, 18, 13, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 23, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 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, 12, 13, 30, 29, 4, 18, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 18, 36, 13, 13, 0, 18, 36, 13, 13, 23, 13, 23, 13, 12, 13, 30, 29, 2, 18, 36, 13, 18, 13, 13, 23, 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 ], [ 22, 23 ], [ 22, 24 ], [ 0, 25 ], [ 562, 26 ], [ 562, 27 ], [ 27, 28 ], [ 27, 29 ], [ 562, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 36, 37 ], [ 36, 38 ], [ 32, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 39, 43 ], [ 32, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 32, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 32, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 32, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 65, 66 ], [ 65, 67 ], [ 60, 68 ], [ 68, 69 ], [ 69, 70 ], [ 60, 71 ], [ 72, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 82, 84 ], [ 78, 85 ], [ 85, 86 ], [ 85, 87 ], [ 78, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 78, 92 ], [ 93, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 32, 99 ], [ 99, 100 ], [ 30, 101 ], [ 101, 102 ], [ 562, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 110, 111 ], [ 111, 112 ], [ 105, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 114, 117 ], [ 117, 118 ], [ 117, 119 ], [ 103, 120 ], [ 120, 121 ], [ 103, 122 ], [ 122, 123 ], [ 562, 124 ], [ 124, 125 ], [ 124, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 126, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 130, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 135, 139 ], [ 130, 140 ], [ 140, 141 ], [ 141, 142 ], [ 130, 143 ], [ 144, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 146, 150 ], [ 145, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 153, 157 ], [ 152, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 151, 162 ], [ 162, 163 ], [ 162, 164 ], [ 164, 165 ], [ 164, 166 ], [ 126, 167 ], [ 167, 168 ], [ 168, 169 ], [ 168, 170 ], [ 167, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 174, 175 ], [ 174, 176 ], [ 126, 177 ], [ 177, 178 ], [ 124, 179 ], [ 179, 180 ], [ 562, 181 ], [ 181, 182 ], [ 181, 183 ], [ 183, 184 ], [ 184, 185 ], [ 185, 186 ], [ 186, 187 ], [ 186, 188 ], [ 184, 189 ], [ 189, 190 ], [ 190, 191 ], [ 190, 192 ], [ 189, 193 ], [ 184, 194 ], [ 194, 195 ], [ 195, 196 ], [ 184, 197 ], [ 198, 198 ], [ 198, 199 ], [ 199, 200 ], [ 200, 201 ], [ 201, 202 ], [ 202, 203 ], [ 202, 204 ], [ 201, 205 ], [ 200, 206 ], [ 206, 207 ], [ 207, 208 ], [ 207, 209 ], [ 206, 210 ], [ 199, 211 ], [ 211, 212 ], [ 212, 213 ], [ 183, 214 ], [ 214, 215 ], [ 181, 216 ], [ 216, 217 ], [ 562, 218 ], [ 218, 219 ], [ 218, 220 ], [ 220, 221 ], [ 221, 222 ], [ 222, 223 ], [ 218, 224 ], [ 224, 225 ], [ 562, 226 ], [ 226, 227 ], [ 226, 228 ], [ 228, 229 ], [ 229, 230 ], [ 229, 231 ], [ 228, 232 ], [ 232, 233 ], [ 232, 234 ], [ 234, 235 ], [ 235, 236 ], [ 235, 237 ], [ 234, 238 ], [ 228, 239 ], [ 239, 240 ], [ 240, 241 ], [ 240, 242 ], [ 239, 243 ], [ 243, 244 ], [ 244, 245 ], [ 244, 246 ], [ 246, 247 ], [ 246, 248 ], [ 243, 249 ], [ 249, 250 ], [ 250, 251 ], [ 250, 252 ], [ 249, 253 ], [ 253, 254 ], [ 253, 255 ], [ 243, 256 ], [ 256, 257 ], [ 257, 258 ], [ 257, 259 ], [ 256, 260 ], [ 243, 261 ], [ 261, 262 ], [ 243, 263 ], [ 263, 264 ], [ 226, 265 ], [ 265, 266 ], [ 562, 267 ], [ 267, 268 ], [ 267, 269 ], [ 269, 270 ], [ 270, 271 ], [ 270, 272 ], [ 272, 273 ], [ 269, 274 ], [ 274, 275 ], [ 274, 276 ], [ 276, 277 ], [ 277, 278 ], [ 277, 279 ], [ 279, 280 ], [ 279, 281 ], [ 276, 282 ], [ 562, 283 ], [ 283, 284 ], [ 283, 285 ], [ 285, 286 ], [ 286, 287 ], [ 287, 288 ], [ 288, 289 ], [ 288, 290 ], [ 287, 291 ], [ 286, 292 ], [ 292, 293 ], [ 293, 294 ], [ 285, 295 ], [ 295, 296 ], [ 296, 297 ], [ 297, 298 ], [ 297, 299 ], [ 296, 300 ], [ 295, 301 ], [ 301, 302 ], [ 302, 303 ], [ 285, 304 ], [ 304, 305 ], [ 305, 306 ], [ 306, 307 ], [ 306, 308 ], [ 305, 309 ], [ 304, 310 ], [ 310, 311 ], [ 311, 312 ], [ 312, 313 ], [ 312, 314 ], [ 285, 315 ], [ 315, 316 ], [ 283, 317 ], [ 317, 318 ], [ 562, 319 ], [ 319, 320 ], [ 319, 321 ], [ 321, 322 ], [ 322, 323 ], [ 323, 324 ], [ 324, 325 ], [ 324, 326 ], [ 323, 327 ], [ 327, 328 ], [ 327, 329 ], [ 329, 330 ], [ 329, 331 ], [ 319, 332 ], [ 332, 333 ], [ 319, 334 ], [ 334, 335 ], [ 562, 336 ], [ 336, 337 ], [ 336, 338 ], [ 338, 339 ], [ 339, 340 ], [ 340, 341 ], [ 341, 342 ], [ 341, 343 ], [ 339, 344 ], [ 336, 345 ], [ 345, 346 ], [ 562, 347 ], [ 347, 348 ], [ 347, 349 ], [ 349, 350 ], [ 350, 351 ], [ 351, 352 ], [ 352, 353 ], [ 352, 354 ], [ 350, 355 ], [ 347, 356 ], [ 356, 357 ], [ 562, 358 ], [ 358, 359 ], [ 358, 360 ], [ 360, 361 ], [ 361, 362 ], [ 362, 363 ], [ 363, 364 ], [ 363, 365 ], [ 361, 366 ], [ 358, 367 ], [ 367, 368 ], [ 562, 369 ], [ 369, 370 ], [ 369, 371 ], [ 371, 372 ], [ 372, 373 ], [ 372, 374 ], [ 371, 375 ], [ 375, 376 ], [ 375, 377 ], [ 371, 378 ], [ 378, 379 ], [ 378, 380 ], [ 369, 381 ], [ 381, 382 ], [ 369, 383 ], [ 383, 384 ], [ 562, 385 ], [ 385, 386 ], [ 385, 387 ], [ 387, 388 ], [ 388, 389 ], [ 389, 390 ], [ 390, 391 ], [ 389, 392 ], [ 389, 393 ], [ 385, 394 ], [ 394, 395 ], [ 385, 396 ], [ 396, 397 ], [ 562, 398 ], [ 398, 399 ], [ 398, 400 ], [ 400, 401 ], [ 401, 402 ], [ 402, 403 ], [ 403, 404 ], [ 402, 405 ], [ 402, 406 ], [ 398, 407 ], [ 407, 408 ], [ 398, 409 ], [ 409, 410 ], [ 562, 411 ], [ 411, 412 ], [ 411, 413 ], [ 413, 414 ], [ 414, 415 ], [ 415, 416 ], [ 416, 417 ], [ 415, 418 ], [ 418, 419 ], [ 419, 420 ], [ 562, 421 ], [ 421, 422 ], [ 421, 423 ], [ 423, 424 ], [ 424, 425 ], [ 425, 426 ], [ 426, 427 ], [ 425, 428 ], [ 428, 429 ], [ 429, 430 ], [ 562, 431 ], [ 431, 432 ], [ 431, 433 ], [ 433, 434 ], [ 434, 435 ], [ 435, 436 ], [ 436, 437 ], [ 435, 438 ], [ 438, 439 ], [ 439, 440 ], [ 562, 441 ], [ 441, 442 ], [ 441, 443 ], [ 443, 444 ], [ 444, 445 ], [ 445, 446 ], [ 446, 447 ], [ 562, 448 ], [ 448, 449 ], [ 448, 450 ], [ 450, 451 ], [ 451, 452 ], [ 452, 453 ], [ 453, 454 ], [ 452, 455 ], [ 448, 456 ], [ 456, 457 ], [ 562, 458 ], [ 458, 459 ], [ 458, 460 ], [ 460, 461 ], [ 458, 462 ], [ 462, 463 ], [ 458, 464 ], [ 464, 465 ], [ 464, 466 ], [ 466, 467 ], [ 467, 468 ], [ 467, 469 ], [ 464, 470 ], [ 470, 471 ], [ 458, 472 ], [ 472, 473 ], [ 472, 474 ], [ 474, 475 ], [ 475, 476 ], [ 476, 477 ], [ 477, 478 ], [ 477, 479 ], [ 476, 480 ], [ 480, 481 ], [ 481, 482 ], [ 482, 483 ], [ 475, 484 ], [ 484, 485 ], [ 485, 486 ], [ 485, 487 ], [ 474, 488 ], [ 488, 489 ], [ 489, 490 ], [ 490, 491 ], [ 458, 492 ], [ 492, 493 ], [ 492, 494 ], [ 494, 495 ], [ 495, 496 ], [ 496, 497 ], [ 497, 498 ], [ 496, 499 ], [ 499, 500 ], [ 458, 501 ], [ 501, 502 ], [ 501, 503 ], [ 503, 504 ], [ 504, 505 ], [ 505, 506 ], [ 506, 507 ], [ 505, 508 ], [ 508, 509 ], [ 458, 510 ], [ 510, 511 ], [ 510, 512 ], [ 512, 513 ], [ 513, 514 ], [ 514, 515 ], [ 515, 516 ], [ 458, 517 ], [ 517, 518 ], [ 517, 519 ], [ 519, 520 ], [ 520, 521 ], [ 521, 522 ], [ 522, 523 ], [ 0, 524 ], [ 524, 525 ], [ 524, 526 ], [ 526, 527 ], [ 524, 528 ], [ 528, 529 ], [ 524, 530 ], [ 530, 531 ], [ 530, 532 ], [ 532, 533 ], [ 533, 534 ], [ 534, 535 ], [ 534, 536 ], [ 533, 537 ], [ 532, 538 ], [ 538, 539 ], [ 539, 540 ], [ 539, 541 ], [ 538, 542 ], [ 530, 543 ], [ 543, 544 ], [ 530, 545 ], [ 545, 546 ], [ 524, 547 ], [ 547, 548 ], [ 547, 549 ], [ 549, 550 ], [ 550, 551 ], [ 551, 552 ], [ 552, 553 ], [ 552, 554 ], [ 551, 555 ], [ 555, 556 ], [ 555, 557 ], [ 547, 558 ], [ 558, 559 ], [ 524, 560 ], [ 0, 561 ], [ 561, 562 ], [ 561, 563 ] ]
[ "import java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.BufferedReader;\nimport java.util.*;\nimport java.math.*;\nimport java.io.*;\nimport java.text.*;\nimport java.math.BigInteger;\n\npublic class Main\n{ \n\n //Life's a bitch\n public static boolean[] sieve(long n)\n {\n boolean[] prime = new boolean[(int)n+1];\n Arrays.fill(prime,true);\n prime[0] = false;\n prime[1] = false;\n long m = (long)Math.sqrt(n);\n for(int i=2;i<=m;i++)\n {\n if(prime[i])\n {\n for(int k=i*i;k<=n;k+=i)\n {\n prime[k] = false;\n }\n }\n }\n return prime;\n } \n\n \n static long GCD(long a,long b)\n {\n if(b==0)\n {\n return a;\n }\n return GCD(b,a%b);\n }\n\n static long CountCoPrimes(long n)\n {\n long res = n;\n for(int i=2;i*i<=n;i++)\n {\n if(n%i==0)\n {\n while(n%i==0)\n {\n n/=i;\n }\n res-=res/i;\n }\n }\n if(n>1)\n {\n res-=res/n;\n }\n return res;\n }\n\n\n \n\n \n\n static boolean prime(int n)\n {\n for(int i=2;i*i<=n;i++)\n {\n if(i%2==0 ||i%3==0)\n {\n return false;\n }\n }\n return true;\n }\n\n \n\n\n \n \n \n public static void main(String[] args) throws IOException\n {\n \n new Main().run();\n \n }\n\n\n \n\n static void reverse(char[] a)\n {\n // char[] a = c.toCharArray();\n int start=0;\n int end = a.length-1;\n while(start!=end)\n {\n char temp = a[start];\n a[start] = a[end];\n a[end] = temp;\n start++;\n end--;\n }\n }\n\n \n\n\n \n \n Scanner in = new Scanner(System.in);\n void run() throws IOException\n {\n long n = nl();\n printL((1000-n%1000)%1000);\n\n }\n\n\n \n\n\n\n \n\n \n\n //xor range query\n static long xor(long n)\n {\n\n if(n%4==0)\n {\n return n;\n }\n if(n%4==1)\n {\n return 1;\n }\n if(n%4==2)\n {\n return n+1;\n }\n return 0;\n }\n\n static long xor(long a,long b)\n {\n return xor(b)^xor(a-1);\n }\n\n\n \n\n \n \n \n\n \n \n \n\n \n \n \n\n\n\n \n\n void printL(long a)\n {\n System.out.println(a);\n }\n void printS(String s)\n {\n System.out.println(s);\n }\n\n void printD(Double d)\n {\n System.out.println(d);\n }\n \n \n \n static void swap(char c,char p)\n {\n char t = c;\n c = p;\n p = t;\n }\n\n static long max(long n,long m)\n {\n return Math.max(n,m);\n }\n static long min(long n,long m)\n {\n return Math.min(n,m);\n }\n\n double nd() throws IOException\n {\n return Double.parseDouble(in.next());\n }\n int ni() throws IOException\n {\n return Integer.parseInt(in.next());\n }\n\n long nl() throws IOException\n {\n return Long.parseLong(in.next());\n }\n\n String si() throws IOException\n {\n return in.next();\n }\n\n\n \n \n static int abs(int n)\n {\n return Math.abs(n);\n }\n\n static class Scanner \n {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s){ br = new BufferedReader(new InputStreamReader(s));}\n\n public String next() throws IOException \n {\n while (st == null || !st.hasMoreTokens()) \n {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {return Integer.parseInt(next());}\n \n public long nextLong() throws IOException {return Long.parseLong(next());}\n\n public String nextLine() throws IOException {return br.readLine();}\n\n public boolean ready() throws IOException {return br.ready();}\n\n\n }\n\n \n}\n\n\n\nclass Pair implements Comparable<Pair>\n{\n int x,y;\n public Pair(int x,int y)\n {\n this.x = x;\n this.y = y;\n }\n public int compareTo(Pair o)\n {\n return this.y-o.y;\n }\n}", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.util.*;", "util.*", "java", "import java.math.*;", "math.*", "java", "import java.io.*;", "io.*", "java", "import java.text.*;", "text.*", "java", "import java.math.BigInteger;", "BigInteger", "java.math", "public class Main\n{ \n\n //Life's a bitch\n public static boolean[] sieve(long n)\n {\n boolean[] prime = new boolean[(int)n+1];\n Arrays.fill(prime,true);\n prime[0] = false;\n prime[1] = false;\n long m = (long)Math.sqrt(n);\n for(int i=2;i<=m;i++)\n {\n if(prime[i])\n {\n for(int k=i*i;k<=n;k+=i)\n {\n prime[k] = false;\n }\n }\n }\n return prime;\n } \n\n \n static long GCD(long a,long b)\n {\n if(b==0)\n {\n return a;\n }\n return GCD(b,a%b);\n }\n\n static long CountCoPrimes(long n)\n {\n long res = n;\n for(int i=2;i*i<=n;i++)\n {\n if(n%i==0)\n {\n while(n%i==0)\n {\n n/=i;\n }\n res-=res/i;\n }\n }\n if(n>1)\n {\n res-=res/n;\n }\n return res;\n }\n\n\n \n\n \n\n static boolean prime(int n)\n {\n for(int i=2;i*i<=n;i++)\n {\n if(i%2==0 ||i%3==0)\n {\n return false;\n }\n }\n return true;\n }\n\n \n\n\n \n \n \n public static void main(String[] args) throws IOException\n {\n \n new Main().run();\n \n }\n\n\n \n\n static void reverse(char[] a)\n {\n // char[] a = c.toCharArray();\n int start=0;\n int end = a.length-1;\n while(start!=end)\n {\n char temp = a[start];\n a[start] = a[end];\n a[end] = temp;\n start++;\n end--;\n }\n }\n\n \n\n\n \n \n Scanner in = new Scanner(System.in);\n void run() throws IOException\n {\n long n = nl();\n printL((1000-n%1000)%1000);\n\n }\n\n\n \n\n\n\n \n\n \n\n //xor range query\n static long xor(long n)\n {\n\n if(n%4==0)\n {\n return n;\n }\n if(n%4==1)\n {\n return 1;\n }\n if(n%4==2)\n {\n return n+1;\n }\n return 0;\n }\n\n static long xor(long a,long b)\n {\n return xor(b)^xor(a-1);\n }\n\n\n \n\n \n \n \n\n \n \n \n\n \n \n \n\n\n\n \n\n void printL(long a)\n {\n System.out.println(a);\n }\n void printS(String s)\n {\n System.out.println(s);\n }\n\n void printD(Double d)\n {\n System.out.println(d);\n }\n \n \n \n static void swap(char c,char p)\n {\n char t = c;\n c = p;\n p = t;\n }\n\n static long max(long n,long m)\n {\n return Math.max(n,m);\n }\n static long min(long n,long m)\n {\n return Math.min(n,m);\n }\n\n double nd() throws IOException\n {\n return Double.parseDouble(in.next());\n }\n int ni() throws IOException\n {\n return Integer.parseInt(in.next());\n }\n\n long nl() throws IOException\n {\n return Long.parseLong(in.next());\n }\n\n String si() throws IOException\n {\n return in.next();\n }\n\n\n \n \n static int abs(int n)\n {\n return Math.abs(n);\n }\n\n static class Scanner \n {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s){ br = new BufferedReader(new InputStreamReader(s));}\n\n public String next() throws IOException \n {\n while (st == null || !st.hasMoreTokens()) \n {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {return Integer.parseInt(next());}\n \n public long nextLong() throws IOException {return Long.parseLong(next());}\n\n public String nextLine() throws IOException {return br.readLine();}\n\n public boolean ready() throws IOException {return br.ready();}\n\n\n }\n\n \n}", "Main", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "//Life's a bitch\n public static boolean[] sieve(long n)\n {\n boolean[] prime = new boolean[(int)n+1];\n Arrays.fill(prime,true);\n prime[0] = false;\n prime[1] = false;\n long m = (long)Math.sqrt(n);\n for(int i=2;i<=m;i++)\n {\n if(prime[i])\n {\n for(int k=i*i;k<=n;k+=i)\n {\n prime[k] = false;\n }\n }\n }\n return prime;\n }", "sieve", "{\n boolean[] prime = new boolean[(int)n+1];\n Arrays.fill(prime,true);\n prime[0] = false;\n prime[1] = false;\n long m = (long)Math.sqrt(n);\n for(int i=2;i<=m;i++)\n {\n if(prime[i])\n {\n for(int k=i*i;k<=n;k+=i)\n {\n prime[k] = false;\n }\n }\n }\n return prime;\n }", "boolean[] prime = new boolean[(int)n+1];", "prime", "new boolean[(int)n+1]", "(int)n+1", "(int)n", "1", "Arrays.fill(prime,true)", "Arrays.fill", "Arrays", "prime", "true", "prime[0] = false", "prime[0]", "prime", "0", "false", "prime[1] = false", "prime[1]", "prime", "1", "false", "long m = (long)Math.sqrt(n);", "m", "(long)Math.sqrt(n)", "Math.sqrt", "Math", "n", "for(int i=2;i<=m;i++)\n {\n if(prime[i])\n {\n for(int k=i*i;k<=n;k+=i)\n {\n prime[k] = false;\n }\n }\n }", "int i=2;", "int i=2;", "i", "2", "i<=m", "i", "m", "i++", "i++", "i", "{\n if(prime[i])\n {\n for(int k=i*i;k<=n;k+=i)\n {\n prime[k] = false;\n }\n }\n }", "{\n if(prime[i])\n {\n for(int k=i*i;k<=n;k+=i)\n {\n prime[k] = false;\n }\n }\n }", "if(prime[i])\n {\n for(int k=i*i;k<=n;k+=i)\n {\n prime[k] = false;\n }\n }", "prime[i]", "prime", "i", "{\n for(int k=i*i;k<=n;k+=i)\n {\n prime[k] = false;\n }\n }", "for(int k=i*i;k<=n;k+=i)\n {\n prime[k] = false;\n }", "int k=i*i;", "int k=i*i;", "k", "i*i", "i", "i", "k<=n", "k", "n", "k+=i", "k+=i", "k", "i", "{\n prime[k] = false;\n }", "{\n prime[k] = false;\n }", "prime[k] = false", "prime[k]", "prime", "k", "false", "return prime;", "prime", "long n", "n", "static long GCD(long a,long b)\n {\n if(b==0)\n {\n return a;\n }\n return GCD(b,a%b);\n }", "GCD", "{\n if(b==0)\n {\n return a;\n }\n return GCD(b,a%b);\n }", "if(b==0)\n {\n return a;\n }", "b==0", "b", "0", "{\n return a;\n }", "return a;", "a", "return GCD(b,a%b);", "GCD(b,a%b)", "GCD", "b", "a%b", "a", "b", "long a", "a", "long b", "b", "static long CountCoPrimes(long n)\n {\n long res = n;\n for(int i=2;i*i<=n;i++)\n {\n if(n%i==0)\n {\n while(n%i==0)\n {\n n/=i;\n }\n res-=res/i;\n }\n }\n if(n>1)\n {\n res-=res/n;\n }\n return res;\n }", "CountCoPrimes", "{\n long res = n;\n for(int i=2;i*i<=n;i++)\n {\n if(n%i==0)\n {\n while(n%i==0)\n {\n n/=i;\n }\n res-=res/i;\n }\n }\n if(n>1)\n {\n res-=res/n;\n }\n return res;\n }", "long res = n;", "res", "n", "for(int i=2;i*i<=n;i++)\n {\n if(n%i==0)\n {\n while(n%i==0)\n {\n n/=i;\n }\n res-=res/i;\n }\n }", "int i=2;", "int i=2;", "i", "2", "i*i<=n", "i*i", "i", "i", "n", "i++", "i++", "i", "{\n if(n%i==0)\n {\n while(n%i==0)\n {\n n/=i;\n }\n res-=res/i;\n }\n }", "{\n if(n%i==0)\n {\n while(n%i==0)\n {\n n/=i;\n }\n res-=res/i;\n }\n }", "if(n%i==0)\n {\n while(n%i==0)\n {\n n/=i;\n }\n res-=res/i;\n }", "n%i==0", "n%i", "n", "i", "0", "{\n while(n%i==0)\n {\n n/=i;\n }\n res-=res/i;\n }", "while(n%i==0)\n {\n n/=i;\n }", "n%i==0", "n%i", "n", "i", "0", "{\n n/=i;\n }", "n/=i", "n", "i", "res-=res/i", "res", "res/i", "res", "i", "if(n>1)\n {\n res-=res/n;\n }", "n>1", "n", "1", "{\n res-=res/n;\n }", "res-=res/n", "res", "res/n", "res", "n", "return res;", "res", "long n", "n", "static boolean prime(int n)\n {\n for(int i=2;i*i<=n;i++)\n {\n if(i%2==0 ||i%3==0)\n {\n return false;\n }\n }\n return true;\n }", "prime", "{\n for(int i=2;i*i<=n;i++)\n {\n if(i%2==0 ||i%3==0)\n {\n return false;\n }\n }\n return true;\n }", "for(int i=2;i*i<=n;i++)\n {\n if(i%2==0 ||i%3==0)\n {\n return false;\n }\n }", "int i=2;", "int i=2;", "i", "2", "i*i<=n", "i*i", "i", "i", "n", "i++", "i++", "i", "{\n if(i%2==0 ||i%3==0)\n {\n return false;\n }\n }", "{\n if(i%2==0 ||i%3==0)\n {\n return false;\n }\n }", "if(i%2==0 ||i%3==0)\n {\n return false;\n }", "i%2==0 ||i%3==0", "i%2==0", "i%2", "i", "2", "0", "i%3==0", "i%3", "i", "3", "0", "{\n return false;\n }", "return false;", "false", "return true;", "true", "int n", "n", "public static void main(String[] args) throws IOException\n {\n \n new Main().run();\n \n }", "main", "{\n \n new Main().run();\n \n }", "new Main().run()", "new Main().run", "new Main()", "String[] args", "args", "static void reverse(char[] a)\n {\n // char[] a = c.toCharArray();\n int start=0;\n int end = a.length-1;\n while(start!=end)\n {\n char temp = a[start];\n a[start] = a[end];\n a[end] = temp;\n start++;\n end--;\n }\n }", "reverse", "{\n // char[] a = c.toCharArray();\n int start=0;\n int end = a.length-1;\n while(start!=end)\n {\n char temp = a[start];\n a[start] = a[end];\n a[end] = temp;\n start++;\n end--;\n }\n }", "int start=0;", "start", "0", "int end = a.length-1;", "end", "a.length-1", "a.length", "a", "a.length", "1", "while(start!=end)\n {\n char temp = a[start];\n a[start] = a[end];\n a[end] = temp;\n start++;\n end--;\n }", "start!=end", "start", "end", "{\n char temp = a[start];\n a[start] = a[end];\n a[end] = temp;\n start++;\n end--;\n }", "char temp = a[start];", "temp", "a[start]", "a", "start", "a[start] = a[end]", "a[start]", "a", "start", "a[end]", "a", "end", "a[end] = temp", "a[end]", "a", "end", "temp", "start++", "start", "end--", "end", "char[] a", "a", "void run() throws IOException\n {\n long n = nl();\n printL((1000-n%1000)%1000);\n\n }", "run", "{\n long n = nl();\n printL((1000-n%1000)%1000);\n\n }", "long n = nl();", "n", "nl()", "nl", "printL((1000-n%1000)%1000)", "printL", "(1000-n%1000)%1000", "(1000-n%1000)", "1000", "n%1000", "n", "1000", "1000", "//xor range query\n static long xor(long n)\n {\n\n if(n%4==0)\n {\n return n;\n }\n if(n%4==1)\n {\n return 1;\n }\n if(n%4==2)\n {\n return n+1;\n }\n return 0;\n }", "xor", "{\n\n if(n%4==0)\n {\n return n;\n }\n if(n%4==1)\n {\n return 1;\n }\n if(n%4==2)\n {\n return n+1;\n }\n return 0;\n }", "if(n%4==0)\n {\n return n;\n }", "n%4==0", "n%4", "n", "4", "0", "{\n return n;\n }", "return n;", "n", "if(n%4==1)\n {\n return 1;\n }", "n%4==1", "n%4", "n", "4", "1", "{\n return 1;\n }", "return 1;", "1", "if(n%4==2)\n {\n return n+1;\n }", "n%4==2", "n%4", "n", "4", "2", "{\n return n+1;\n }", "return n+1;", "n+1", "n", "1", "return 0;", "0", "long n", "n", "static long xor(long a,long b)\n {\n return xor(b)^xor(a-1);\n }", "xor", "{\n return xor(b)^xor(a-1);\n }", "return xor(b)^xor(a-1);", "xor(b)^xor(a-1)", "xor(b)", "xor", "b", "xor(a-1)", "xor", "a-1", "a", "1", "long a", "a", "long b", "b", "void printL(long a)\n {\n System.out.println(a);\n }", "printL", "{\n System.out.println(a);\n }", "System.out.println(a)", "System.out.println", "System.out", "System", "System.out", "a", "long a", "a", "void printS(String s)\n {\n System.out.println(s);\n }", "printS", "{\n System.out.println(s);\n }", "System.out.println(s)", "System.out.println", "System.out", "System", "System.out", "s", "String s", "s", "void printD(Double d)\n {\n System.out.println(d);\n }", "printD", "{\n System.out.println(d);\n }", "System.out.println(d)", "System.out.println", "System.out", "System", "System.out", "d", "Double d", "d", "static void swap(char c,char p)\n {\n char t = c;\n c = p;\n p = t;\n }", "swap", "{\n char t = c;\n c = p;\n p = t;\n }", "char t = c;", "t", "c", "c = p", "c", "p", "p = t", "p", "t", "char c", "c", "char p", "p", "static long max(long n,long m)\n {\n return Math.max(n,m);\n }", "max", "{\n return Math.max(n,m);\n }", "return Math.max(n,m);", "Math.max(n,m)", "Math.max", "Math", "n", "m", "long n", "n", "long m", "m", "static long min(long n,long m)\n {\n return Math.min(n,m);\n }", "min", "{\n return Math.min(n,m);\n }", "return Math.min(n,m);", "Math.min(n,m)", "Math.min", "Math", "n", "m", "long n", "n", "long m", "m", "double nd() throws IOException\n {\n return Double.parseDouble(in.next());\n }", "nd", "{\n return Double.parseDouble(in.next());\n }", "return Double.parseDouble(in.next());", "Double.parseDouble(in.next())", "Double.parseDouble", "Double", "in.next()", "in.next", "in", "int ni() throws IOException\n {\n return Integer.parseInt(in.next());\n }", "ni", "{\n return Integer.parseInt(in.next());\n }", "return Integer.parseInt(in.next());", "Integer.parseInt(in.next())", "Integer.parseInt", "Integer", "in.next()", "in.next", "in", "long nl() throws IOException\n {\n return Long.parseLong(in.next());\n }", "nl", "{\n return Long.parseLong(in.next());\n }", "return Long.parseLong(in.next());", "Long.parseLong(in.next())", "Long.parseLong", "Long", "in.next()", "in.next", "in", "String si() throws IOException\n {\n return in.next();\n }", "si", "{\n return in.next();\n }", "return in.next();", "in.next()", "in.next", "in", "static int abs(int n)\n {\n return Math.abs(n);\n }", "abs", "{\n return Math.abs(n);\n }", "return Math.abs(n);", "Math.abs(n)", "Math.abs", "Math", "n", "int n", "n", "static class Scanner \n {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s){ br = new BufferedReader(new InputStreamReader(s));}\n\n public String next() throws IOException \n {\n while (st == null || !st.hasMoreTokens()) \n {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {return Integer.parseInt(next());}\n \n public long nextLong() throws IOException {return Long.parseLong(next());}\n\n public String nextLine() throws IOException {return br.readLine();}\n\n public boolean ready() throws IOException {return br.ready();}\n\n\n }", "Scanner", "StringTokenizer st;", "st", "BufferedReader br;", "br", "public Scanner(InputStream s){ br = new BufferedReader(new InputStreamReader(s));}", "Scanner", "{ br = new BufferedReader(new InputStreamReader(s));}", "br = new BufferedReader(new InputStreamReader(s))", "br", "new BufferedReader(new InputStreamReader(s))", "InputStream s", "s", "public String next() throws IOException \n {\n while (st == null || !st.hasMoreTokens()) \n {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }", "next", "{\n while (st == null || !st.hasMoreTokens()) \n {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }", "while (st == null || !st.hasMoreTokens()) \n {\n st = new StringTokenizer(br.readLine());\n }", "st == null || !st.hasMoreTokens()", "st == null", "st", "null", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "{\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 int nextInt() throws IOException {return Integer.parseInt(next());}", "nextInt", "{return Integer.parseInt(next());}", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "public long nextLong() throws IOException {return Long.parseLong(next());}", "nextLong", "{return Long.parseLong(next());}", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "public String nextLine() throws IOException {return br.readLine();}", "nextLine", "{return br.readLine();}", "return br.readLine();", "br.readLine()", "br.readLine", "br", "public boolean ready() throws IOException {return br.ready();}", "ready", "{return br.ready();}", "return br.ready();", "br.ready()", "br.ready", "br", "class Pair implements Comparable<Pair>\n{\n int x,y;\n public Pair(int x,int y)\n {\n this.x = x;\n this.y = y;\n }\n public int compareTo(Pair o)\n {\n return this.y-o.y;\n }\n}", "Pair", "int x", "x", "y;", "y", "public Pair(int x,int y)\n {\n this.x = x;\n this.y = y;\n }", "Pair", "{\n this.x = x;\n this.y = y;\n }", "this.x = x", "this.x", "this", "this.x", "x", "this.y = y", "this.y", "this", "this.y", "y", "int x", "x", "int y", "y", "public int compareTo(Pair o)\n {\n return this.y-o.y;\n }", "compareTo", "{\n return this.y-o.y;\n }", "return this.y-o.y;", "this.y-o.y", "this.y", "this", "this.y", "o.y", "o", "o.y", "Pair o", "o", "Comparable", "public class Main\n{ \n\n //Life's a bitch\n public static boolean[] sieve(long n)\n {\n boolean[] prime = new boolean[(int)n+1];\n Arrays.fill(prime,true);\n prime[0] = false;\n prime[1] = false;\n long m = (long)Math.sqrt(n);\n for(int i=2;i<=m;i++)\n {\n if(prime[i])\n {\n for(int k=i*i;k<=n;k+=i)\n {\n prime[k] = false;\n }\n }\n }\n return prime;\n } \n\n \n static long GCD(long a,long b)\n {\n if(b==0)\n {\n return a;\n }\n return GCD(b,a%b);\n }\n\n static long CountCoPrimes(long n)\n {\n long res = n;\n for(int i=2;i*i<=n;i++)\n {\n if(n%i==0)\n {\n while(n%i==0)\n {\n n/=i;\n }\n res-=res/i;\n }\n }\n if(n>1)\n {\n res-=res/n;\n }\n return res;\n }\n\n\n \n\n \n\n static boolean prime(int n)\n {\n for(int i=2;i*i<=n;i++)\n {\n if(i%2==0 ||i%3==0)\n {\n return false;\n }\n }\n return true;\n }\n\n \n\n\n \n \n \n public static void main(String[] args) throws IOException\n {\n \n new Main().run();\n \n }\n\n\n \n\n static void reverse(char[] a)\n {\n // char[] a = c.toCharArray();\n int start=0;\n int end = a.length-1;\n while(start!=end)\n {\n char temp = a[start];\n a[start] = a[end];\n a[end] = temp;\n start++;\n end--;\n }\n }\n\n \n\n\n \n \n Scanner in = new Scanner(System.in);\n void run() throws IOException\n {\n long n = nl();\n printL((1000-n%1000)%1000);\n\n }\n\n\n \n\n\n\n \n\n \n\n //xor range query\n static long xor(long n)\n {\n\n if(n%4==0)\n {\n return n;\n }\n if(n%4==1)\n {\n return 1;\n }\n if(n%4==2)\n {\n return n+1;\n }\n return 0;\n }\n\n static long xor(long a,long b)\n {\n return xor(b)^xor(a-1);\n }\n\n\n \n\n \n \n \n\n \n \n \n\n \n \n \n\n\n\n \n\n void printL(long a)\n {\n System.out.println(a);\n }\n void printS(String s)\n {\n System.out.println(s);\n }\n\n void printD(Double d)\n {\n System.out.println(d);\n }\n \n \n \n static void swap(char c,char p)\n {\n char t = c;\n c = p;\n p = t;\n }\n\n static long max(long n,long m)\n {\n return Math.max(n,m);\n }\n static long min(long n,long m)\n {\n return Math.min(n,m);\n }\n\n double nd() throws IOException\n {\n return Double.parseDouble(in.next());\n }\n int ni() throws IOException\n {\n return Integer.parseInt(in.next());\n }\n\n long nl() throws IOException\n {\n return Long.parseLong(in.next());\n }\n\n String si() throws IOException\n {\n return in.next();\n }\n\n\n \n \n static int abs(int n)\n {\n return Math.abs(n);\n }\n\n static class Scanner \n {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s){ br = new BufferedReader(new InputStreamReader(s));}\n\n public String next() throws IOException \n {\n while (st == null || !st.hasMoreTokens()) \n {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {return Integer.parseInt(next());}\n \n public long nextLong() throws IOException {return Long.parseLong(next());}\n\n public String nextLine() throws IOException {return br.readLine();}\n\n public boolean ready() throws IOException {return br.ready();}\n\n\n }\n\n \n}", "public class Main\n{ \n\n //Life's a bitch\n public static boolean[] sieve(long n)\n {\n boolean[] prime = new boolean[(int)n+1];\n Arrays.fill(prime,true);\n prime[0] = false;\n prime[1] = false;\n long m = (long)Math.sqrt(n);\n for(int i=2;i<=m;i++)\n {\n if(prime[i])\n {\n for(int k=i*i;k<=n;k+=i)\n {\n prime[k] = false;\n }\n }\n }\n return prime;\n } \n\n \n static long GCD(long a,long b)\n {\n if(b==0)\n {\n return a;\n }\n return GCD(b,a%b);\n }\n\n static long CountCoPrimes(long n)\n {\n long res = n;\n for(int i=2;i*i<=n;i++)\n {\n if(n%i==0)\n {\n while(n%i==0)\n {\n n/=i;\n }\n res-=res/i;\n }\n }\n if(n>1)\n {\n res-=res/n;\n }\n return res;\n }\n\n\n \n\n \n\n static boolean prime(int n)\n {\n for(int i=2;i*i<=n;i++)\n {\n if(i%2==0 ||i%3==0)\n {\n return false;\n }\n }\n return true;\n }\n\n \n\n\n \n \n \n public static void main(String[] args) throws IOException\n {\n \n new Main().run();\n \n }\n\n\n \n\n static void reverse(char[] a)\n {\n // char[] a = c.toCharArray();\n int start=0;\n int end = a.length-1;\n while(start!=end)\n {\n char temp = a[start];\n a[start] = a[end];\n a[end] = temp;\n start++;\n end--;\n }\n }\n\n \n\n\n \n \n Scanner in = new Scanner(System.in);\n void run() throws IOException\n {\n long n = nl();\n printL((1000-n%1000)%1000);\n\n }\n\n\n \n\n\n\n \n\n \n\n //xor range query\n static long xor(long n)\n {\n\n if(n%4==0)\n {\n return n;\n }\n if(n%4==1)\n {\n return 1;\n }\n if(n%4==2)\n {\n return n+1;\n }\n return 0;\n }\n\n static long xor(long a,long b)\n {\n return xor(b)^xor(a-1);\n }\n\n\n \n\n \n \n \n\n \n \n \n\n \n \n \n\n\n\n \n\n void printL(long a)\n {\n System.out.println(a);\n }\n void printS(String s)\n {\n System.out.println(s);\n }\n\n void printD(Double d)\n {\n System.out.println(d);\n }\n \n \n \n static void swap(char c,char p)\n {\n char t = c;\n c = p;\n p = t;\n }\n\n static long max(long n,long m)\n {\n return Math.max(n,m);\n }\n static long min(long n,long m)\n {\n return Math.min(n,m);\n }\n\n double nd() throws IOException\n {\n return Double.parseDouble(in.next());\n }\n int ni() throws IOException\n {\n return Integer.parseInt(in.next());\n }\n\n long nl() throws IOException\n {\n return Long.parseLong(in.next());\n }\n\n String si() throws IOException\n {\n return in.next();\n }\n\n\n \n \n static int abs(int n)\n {\n return Math.abs(n);\n }\n\n static class Scanner \n {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s){ br = new BufferedReader(new InputStreamReader(s));}\n\n public String next() throws IOException \n {\n while (st == null || !st.hasMoreTokens()) \n {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {return Integer.parseInt(next());}\n \n public long nextLong() throws IOException {return Long.parseLong(next());}\n\n public String nextLine() throws IOException {return br.readLine();}\n\n public boolean ready() throws IOException {return br.ready();}\n\n\n }\n\n \n}", "Main" ]
import java.io.IOException; import java.io.InputStreamReader; import java.io.BufferedReader; import java.util.*; import java.math.*; import java.io.*; import java.text.*; import java.math.BigInteger; public class Main { //Life's a bitch public static boolean[] sieve(long n) { boolean[] prime = new boolean[(int)n+1]; Arrays.fill(prime,true); prime[0] = false; prime[1] = false; long m = (long)Math.sqrt(n); for(int i=2;i<=m;i++) { if(prime[i]) { for(int k=i*i;k<=n;k+=i) { prime[k] = false; } } } return prime; } static long GCD(long a,long b) { if(b==0) { return a; } return GCD(b,a%b); } static long CountCoPrimes(long n) { long res = n; for(int i=2;i*i<=n;i++) { if(n%i==0) { while(n%i==0) { n/=i; } res-=res/i; } } if(n>1) { res-=res/n; } return res; } static boolean prime(int n) { for(int i=2;i*i<=n;i++) { if(i%2==0 ||i%3==0) { return false; } } return true; } public static void main(String[] args) throws IOException { new Main().run(); } static void reverse(char[] a) { // char[] a = c.toCharArray(); int start=0; int end = a.length-1; while(start!=end) { char temp = a[start]; a[start] = a[end]; a[end] = temp; start++; end--; } } Scanner in = new Scanner(System.in); void run() throws IOException { long n = nl(); printL((1000-n%1000)%1000); } //xor range query static long xor(long n) { if(n%4==0) { return n; } if(n%4==1) { return 1; } if(n%4==2) { return n+1; } return 0; } static long xor(long a,long b) { return xor(b)^xor(a-1); } void printL(long a) { System.out.println(a); } void printS(String s) { System.out.println(s); } void printD(Double d) { System.out.println(d); } static void swap(char c,char p) { char t = c; c = p; p = t; } static long max(long n,long m) { return Math.max(n,m); } static long min(long n,long m) { return Math.min(n,m); } double nd() throws IOException { return Double.parseDouble(in.next()); } int ni() throws IOException { return Integer.parseInt(in.next()); } long nl() throws IOException { return Long.parseLong(in.next()); } String si() throws IOException { return in.next(); } static int abs(int n) { return Math.abs(n); } static class Scanner { StringTokenizer st; BufferedReader br; public Scanner(InputStream s){ br = new BufferedReader(new InputStreamReader(s));} public String next() throws IOException { while (st == null || !st.hasMoreTokens()) { st = new StringTokenizer(br.readLine()); } return st.nextToken(); } public int nextInt() throws IOException {return Integer.parseInt(next());} public long nextLong() throws IOException {return Long.parseLong(next());} public String nextLine() throws IOException {return br.readLine();} public boolean ready() throws IOException {return br.ready();} } } class Pair implements Comparable<Pair> { int x,y; public Pair(int x,int y) { this.x = x; this.y = y; } public int compareTo(Pair o) { return this.y-o.y; } }
[ 7, 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, 4, 18, 18, 13, 13, 2, 2, 17, 2, 13, 17, 17, 4, 18, 13, 23, 13, 6, 13, 41, 13, 41, 13, 20, 2, 17, 17, 41, 13, 17, 12, 13, 30, 0, 13, 20, 23, 13, 12, 13, 30, 0, 13, 13, 23, 13, 12, 13, 30, 41, 13, 17, 41, 13, 42, 2, 13, 17, 30, 0, 13, 4, 13, 41, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 0, 13, 4, 13, 42, 2, 2, 13, 17, 2, 13, 17, 30, 0, 13, 2, 2, 2, 17, 13, 13, 17, 0, 13, 4, 13, 29, 8, 13, 40, 13, 13, 12, 13, 30, 41, 13, 17, 41, 13, 42, 2, 13, 17, 30, 0, 13, 4, 13, 41, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 0, 13, 4, 13, 42, 2, 2, 13, 17, 2, 13, 17, 30, 0, 13, 2, 2, 2, 17, 13, 13, 17, 0, 13, 4, 13, 29, 8, 13, 40, 13, 13, 12, 13, 30, 14, 2, 13, 18, 13, 13, 30, 4, 18, 13, 13, 17, 18, 13, 13, 0, 13, 17, 29, 18, 13, 40, 13, 12, 13, 30, 41, 13, 20, 41, 13, 42, 2, 13, 17, 30, 0, 13, 4, 13, 42, 2, 13, 17, 30, 4, 18, 13, 13, 0, 13, 4, 13, 29, 4, 18, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 253, 11 ], [ 253, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 34, 36 ], [ 31, 37 ], [ 14, 38 ], [ 38, 39 ], [ 39, 40 ], [ 12, 41 ], [ 41, 42 ], [ 253, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 43, 47 ], [ 47, 48 ], [ 47, 49 ], [ 50, 51 ], [ 50, 52 ], [ 43, 53 ], [ 53, 54 ], [ 53, 55 ], [ 43, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 56, 62 ], [ 62, 63 ], [ 43, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 64, 70 ], [ 70, 71 ], [ 43, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 78, 79 ], [ 74, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 74, 89 ], [ 89, 90 ], [ 89, 91 ], [ 74, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 92, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 74, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 105, 109 ], [ 109, 110 ], [ 109, 111 ], [ 104, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 116, 120 ], [ 115, 121 ], [ 112, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 74, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 129, 130 ], [ 127, 131 ], [ 43, 132 ], [ 132, 133 ], [ 132, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 134, 138 ], [ 138, 139 ], [ 134, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 140, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 147, 148 ], [ 134, 149 ], [ 149, 150 ], [ 149, 151 ], [ 134, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 152, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 156, 160 ], [ 160, 161 ], [ 160, 162 ], [ 162, 163 ], [ 134, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 165, 169 ], [ 169, 170 ], [ 169, 171 ], [ 164, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 175, 176 ], [ 176, 177 ], [ 177, 178 ], [ 177, 179 ], [ 176, 180 ], [ 175, 181 ], [ 172, 182 ], [ 182, 183 ], [ 182, 184 ], [ 184, 185 ], [ 134, 186 ], [ 186, 187 ], [ 187, 188 ], [ 187, 189 ], [ 189, 190 ], [ 187, 191 ], [ 43, 192 ], [ 192, 193 ], [ 192, 194 ], [ 194, 195 ], [ 195, 196 ], [ 196, 197 ], [ 196, 198 ], [ 198, 199 ], [ 198, 200 ], [ 195, 201 ], [ 201, 202 ], [ 202, 203 ], [ 203, 204 ], [ 202, 205 ], [ 202, 206 ], [ 202, 207 ], [ 207, 208 ], [ 207, 209 ], [ 201, 210 ], [ 210, 211 ], [ 210, 212 ], [ 194, 213 ], [ 213, 214 ], [ 214, 215 ], [ 214, 216 ], [ 216, 217 ], [ 43, 218 ], [ 218, 219 ], [ 218, 220 ], [ 220, 221 ], [ 221, 222 ], [ 221, 223 ], [ 220, 224 ], [ 224, 225 ], [ 220, 226 ], [ 226, 227 ], [ 227, 228 ], [ 227, 229 ], [ 226, 230 ], [ 230, 231 ], [ 231, 232 ], [ 231, 233 ], [ 233, 234 ], [ 220, 235 ], [ 235, 236 ], [ 236, 237 ], [ 236, 238 ], [ 235, 239 ], [ 239, 240 ], [ 240, 241 ], [ 241, 242 ], [ 240, 243 ], [ 239, 244 ], [ 244, 245 ], [ 244, 246 ], [ 246, 247 ], [ 220, 248 ], [ 248, 249 ], [ 249, 250 ], [ 250, 251 ], [ 0, 252 ], [ 252, 253 ], [ 252, 254 ] ]
[ "import java.io.*;\nimport java.util.*;\nimport java.math.*;\npublic class Main {\n\tpublic static void main(String[] args)throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\tPrintWriter out = new PrintWriter(System.out);\n\t\tint n = sc.nextInt();\n\t\tSystem.out.println((1000-(n%1000))%1000);\n\t\tout.close();\n\t}\n\tstatic class FastIO {\n\t\tInputStream dis;\n\t\tbyte[] buffer = new byte[1 << 17];\n\t\tint pointer = 0;\n\t\tpublic FastIO(String fileName) throws IOException {\n\t\t\tdis = new FileInputStream(fileName);\n\t\t}\n\t\tpublic FastIO(InputStream is) throws IOException {\n\t\t\tdis = is;\n\t\t}\n\t\tint nextInt() throws IOException {\n\t\t\tint ret = 0;\n \n\t\t\tbyte b;\n\t\t\tdo {\n\t\t\t\tb = nextByte();\n\t\t\t} while (b <= ' ');\n\t\t\tboolean negative = false;\n\t\t\tif (b == '-') {\n\t\t\t\tnegative = true;\n\t\t\t\tb = nextByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tret = 10 * ret + b - '0';\n\t\t\t\tb = nextByte();\n\t\t\t}\n \n\t\t\treturn (negative) ? -ret : ret;\n\t\t}\n\t\tlong nextLong() throws IOException {\n\t\t\tlong ret = 0;\n \n\t\t\tbyte b;\n\t\t\tdo {\n\t\t\t\tb = nextByte();\n\t\t\t} while (b <= ' ');\n\t\t\tboolean negative = false;\n\t\t\tif (b == '-') {\n\t\t\t\tnegative = true;\n\t\t\t\tb = nextByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tret = 10 * ret + b - '0';\n\t\t\t\tb = nextByte();\n\t\t\t}\n\t\t\treturn (negative) ? -ret : ret;\n\t\t}\n\t\tbyte nextByte() throws IOException {\n\t\t\tif (pointer == buffer.length) {\n\t\t\t\tdis.read(buffer, 0, buffer.length);\n\t\t\t\tpointer = 0;\n\t\t\t}\n\t\t\treturn buffer[pointer++];\n\t\t}\n\t\tString next() throws IOException {\n\t\t\tStringBuffer ret = new StringBuffer();\n \n\t\t\tbyte b;\n\t\t\tdo {\n\t\t\t\tb = nextByte();\n\t\t\t} while (b <= ' ');\n\t\t\twhile (b > ' ') {\n\t\t\t\tret.appendCodePoint(b);\n\t\t\t\tb = nextByte();\n\t\t\t}\n \n\t\t\treturn ret.toString();\n\t\t}\n\t}\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "import java.math.*;", "math.*", "java", "public class Main {\n\tpublic static void main(String[] args)throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\tPrintWriter out = new PrintWriter(System.out);\n\t\tint n = sc.nextInt();\n\t\tSystem.out.println((1000-(n%1000))%1000);\n\t\tout.close();\n\t}\n\tstatic class FastIO {\n\t\tInputStream dis;\n\t\tbyte[] buffer = new byte[1 << 17];\n\t\tint pointer = 0;\n\t\tpublic FastIO(String fileName) throws IOException {\n\t\t\tdis = new FileInputStream(fileName);\n\t\t}\n\t\tpublic FastIO(InputStream is) throws IOException {\n\t\t\tdis = is;\n\t\t}\n\t\tint nextInt() throws IOException {\n\t\t\tint ret = 0;\n \n\t\t\tbyte b;\n\t\t\tdo {\n\t\t\t\tb = nextByte();\n\t\t\t} while (b <= ' ');\n\t\t\tboolean negative = false;\n\t\t\tif (b == '-') {\n\t\t\t\tnegative = true;\n\t\t\t\tb = nextByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tret = 10 * ret + b - '0';\n\t\t\t\tb = nextByte();\n\t\t\t}\n \n\t\t\treturn (negative) ? -ret : ret;\n\t\t}\n\t\tlong nextLong() throws IOException {\n\t\t\tlong ret = 0;\n \n\t\t\tbyte b;\n\t\t\tdo {\n\t\t\t\tb = nextByte();\n\t\t\t} while (b <= ' ');\n\t\t\tboolean negative = false;\n\t\t\tif (b == '-') {\n\t\t\t\tnegative = true;\n\t\t\t\tb = nextByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tret = 10 * ret + b - '0';\n\t\t\t\tb = nextByte();\n\t\t\t}\n\t\t\treturn (negative) ? -ret : ret;\n\t\t}\n\t\tbyte nextByte() throws IOException {\n\t\t\tif (pointer == buffer.length) {\n\t\t\t\tdis.read(buffer, 0, buffer.length);\n\t\t\t\tpointer = 0;\n\t\t\t}\n\t\t\treturn buffer[pointer++];\n\t\t}\n\t\tString next() throws IOException {\n\t\t\tStringBuffer ret = new StringBuffer();\n \n\t\t\tbyte b;\n\t\t\tdo {\n\t\t\t\tb = nextByte();\n\t\t\t} while (b <= ' ');\n\t\t\twhile (b > ' ') {\n\t\t\t\tret.appendCodePoint(b);\n\t\t\t\tb = nextByte();\n\t\t\t}\n \n\t\t\treturn ret.toString();\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args)throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\tPrintWriter out = new PrintWriter(System.out);\n\t\tint n = sc.nextInt();\n\t\tSystem.out.println((1000-(n%1000))%1000);\n\t\tout.close();\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tPrintWriter out = new PrintWriter(System.out);\n\t\tint n = sc.nextInt();\n\t\tSystem.out.println((1000-(n%1000))%1000);\n\t\tout.close();\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "PrintWriter out = new PrintWriter(System.out);", "out", "new PrintWriter(System.out)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "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", "out.close()", "out.close", "out", "String[] args", "args", "static class FastIO {\n\t\tInputStream dis;\n\t\tbyte[] buffer = new byte[1 << 17];\n\t\tint pointer = 0;\n\t\tpublic FastIO(String fileName) throws IOException {\n\t\t\tdis = new FileInputStream(fileName);\n\t\t}\n\t\tpublic FastIO(InputStream is) throws IOException {\n\t\t\tdis = is;\n\t\t}\n\t\tint nextInt() throws IOException {\n\t\t\tint ret = 0;\n \n\t\t\tbyte b;\n\t\t\tdo {\n\t\t\t\tb = nextByte();\n\t\t\t} while (b <= ' ');\n\t\t\tboolean negative = false;\n\t\t\tif (b == '-') {\n\t\t\t\tnegative = true;\n\t\t\t\tb = nextByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tret = 10 * ret + b - '0';\n\t\t\t\tb = nextByte();\n\t\t\t}\n \n\t\t\treturn (negative) ? -ret : ret;\n\t\t}\n\t\tlong nextLong() throws IOException {\n\t\t\tlong ret = 0;\n \n\t\t\tbyte b;\n\t\t\tdo {\n\t\t\t\tb = nextByte();\n\t\t\t} while (b <= ' ');\n\t\t\tboolean negative = false;\n\t\t\tif (b == '-') {\n\t\t\t\tnegative = true;\n\t\t\t\tb = nextByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tret = 10 * ret + b - '0';\n\t\t\t\tb = nextByte();\n\t\t\t}\n\t\t\treturn (negative) ? -ret : ret;\n\t\t}\n\t\tbyte nextByte() throws IOException {\n\t\t\tif (pointer == buffer.length) {\n\t\t\t\tdis.read(buffer, 0, buffer.length);\n\t\t\t\tpointer = 0;\n\t\t\t}\n\t\t\treturn buffer[pointer++];\n\t\t}\n\t\tString next() throws IOException {\n\t\t\tStringBuffer ret = new StringBuffer();\n \n\t\t\tbyte b;\n\t\t\tdo {\n\t\t\t\tb = nextByte();\n\t\t\t} while (b <= ' ');\n\t\t\twhile (b > ' ') {\n\t\t\t\tret.appendCodePoint(b);\n\t\t\t\tb = nextByte();\n\t\t\t}\n \n\t\t\treturn ret.toString();\n\t\t}\n\t}", "FastIO", "InputStream dis;", "dis", "byte[] buffer = new byte[1 << 17];", "buffer", "new byte[1 << 17]", "1 << 17", "1", "17", "int pointer = 0;", "pointer", "0", "public FastIO(String fileName) throws IOException {\n\t\t\tdis = new FileInputStream(fileName);\n\t\t}", "FastIO", "{\n\t\t\tdis = new FileInputStream(fileName);\n\t\t}", "dis = new FileInputStream(fileName)", "dis", "new FileInputStream(fileName)", "String fileName", "fileName", "public FastIO(InputStream is) throws IOException {\n\t\t\tdis = is;\n\t\t}", "FastIO", "{\n\t\t\tdis = is;\n\t\t}", "dis = is", "dis", "is", "InputStream is", "is", "int nextInt() throws IOException {\n\t\t\tint ret = 0;\n \n\t\t\tbyte b;\n\t\t\tdo {\n\t\t\t\tb = nextByte();\n\t\t\t} while (b <= ' ');\n\t\t\tboolean negative = false;\n\t\t\tif (b == '-') {\n\t\t\t\tnegative = true;\n\t\t\t\tb = nextByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tret = 10 * ret + b - '0';\n\t\t\t\tb = nextByte();\n\t\t\t}\n \n\t\t\treturn (negative) ? -ret : ret;\n\t\t}", "nextInt", "{\n\t\t\tint ret = 0;\n \n\t\t\tbyte b;\n\t\t\tdo {\n\t\t\t\tb = nextByte();\n\t\t\t} while (b <= ' ');\n\t\t\tboolean negative = false;\n\t\t\tif (b == '-') {\n\t\t\t\tnegative = true;\n\t\t\t\tb = nextByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tret = 10 * ret + b - '0';\n\t\t\t\tb = nextByte();\n\t\t\t}\n \n\t\t\treturn (negative) ? -ret : ret;\n\t\t}", "int ret = 0;", "ret", "0", "byte b;", "b", "do {\n\t\t\t\tb = nextByte();\n\t\t\t} while (b <= ' ');", "b <= ' '", "b", "' '", "{\n\t\t\t\tb = nextByte();\n\t\t\t}", "b = nextByte()", "b", "nextByte()", "nextByte", "boolean negative = false;", "negative", "false", "if (b == '-') {\n\t\t\t\tnegative = true;\n\t\t\t\tb = nextByte();\n\t\t\t}", "b == '-'", "b", "'-'", "{\n\t\t\t\tnegative = true;\n\t\t\t\tb = nextByte();\n\t\t\t}", "negative = true", "negative", "true", "b = nextByte()", "b", "nextByte()", "nextByte", "while (b >= '0' && b <= '9') {\n\t\t\t\tret = 10 * ret + b - '0';\n\t\t\t\tb = nextByte();\n\t\t\t}", "b >= '0' && b <= '9'", "b >= '0'", "b", "'0'", "b <= '9'", "b", "'9'", "{\n\t\t\t\tret = 10 * ret + b - '0';\n\t\t\t\tb = nextByte();\n\t\t\t}", "ret = 10 * ret + b - '0'", "ret", "10 * ret + b - '0'", "10 * ret + b", "10 * ret", "10", "ret", "b", "'0'", "b = nextByte()", "b", "nextByte()", "nextByte", "return (negative) ? -ret : ret;", "(negative) ? -ret : ret", "(negative)", "-ret", "ret", "ret", "long nextLong() throws IOException {\n\t\t\tlong ret = 0;\n \n\t\t\tbyte b;\n\t\t\tdo {\n\t\t\t\tb = nextByte();\n\t\t\t} while (b <= ' ');\n\t\t\tboolean negative = false;\n\t\t\tif (b == '-') {\n\t\t\t\tnegative = true;\n\t\t\t\tb = nextByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tret = 10 * ret + b - '0';\n\t\t\t\tb = nextByte();\n\t\t\t}\n\t\t\treturn (negative) ? -ret : ret;\n\t\t}", "nextLong", "{\n\t\t\tlong ret = 0;\n \n\t\t\tbyte b;\n\t\t\tdo {\n\t\t\t\tb = nextByte();\n\t\t\t} while (b <= ' ');\n\t\t\tboolean negative = false;\n\t\t\tif (b == '-') {\n\t\t\t\tnegative = true;\n\t\t\t\tb = nextByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tret = 10 * ret + b - '0';\n\t\t\t\tb = nextByte();\n\t\t\t}\n\t\t\treturn (negative) ? -ret : ret;\n\t\t}", "long ret = 0;", "ret", "0", "byte b;", "b", "do {\n\t\t\t\tb = nextByte();\n\t\t\t} while (b <= ' ');", "b <= ' '", "b", "' '", "{\n\t\t\t\tb = nextByte();\n\t\t\t}", "b = nextByte()", "b", "nextByte()", "nextByte", "boolean negative = false;", "negative", "false", "if (b == '-') {\n\t\t\t\tnegative = true;\n\t\t\t\tb = nextByte();\n\t\t\t}", "b == '-'", "b", "'-'", "{\n\t\t\t\tnegative = true;\n\t\t\t\tb = nextByte();\n\t\t\t}", "negative = true", "negative", "true", "b = nextByte()", "b", "nextByte()", "nextByte", "while (b >= '0' && b <= '9') {\n\t\t\t\tret = 10 * ret + b - '0';\n\t\t\t\tb = nextByte();\n\t\t\t}", "b >= '0' && b <= '9'", "b >= '0'", "b", "'0'", "b <= '9'", "b", "'9'", "{\n\t\t\t\tret = 10 * ret + b - '0';\n\t\t\t\tb = nextByte();\n\t\t\t}", "ret = 10 * ret + b - '0'", "ret", "10 * ret + b - '0'", "10 * ret + b", "10 * ret", "10", "ret", "b", "'0'", "b = nextByte()", "b", "nextByte()", "nextByte", "return (negative) ? -ret : ret;", "(negative) ? -ret : ret", "(negative)", "-ret", "ret", "ret", "byte nextByte() throws IOException {\n\t\t\tif (pointer == buffer.length) {\n\t\t\t\tdis.read(buffer, 0, buffer.length);\n\t\t\t\tpointer = 0;\n\t\t\t}\n\t\t\treturn buffer[pointer++];\n\t\t}", "nextByte", "{\n\t\t\tif (pointer == buffer.length) {\n\t\t\t\tdis.read(buffer, 0, buffer.length);\n\t\t\t\tpointer = 0;\n\t\t\t}\n\t\t\treturn buffer[pointer++];\n\t\t}", "if (pointer == buffer.length) {\n\t\t\t\tdis.read(buffer, 0, buffer.length);\n\t\t\t\tpointer = 0;\n\t\t\t}", "pointer == buffer.length", "pointer", "buffer.length", "buffer", "buffer.length", "{\n\t\t\t\tdis.read(buffer, 0, buffer.length);\n\t\t\t\tpointer = 0;\n\t\t\t}", "dis.read(buffer, 0, buffer.length)", "dis.read", "dis", "buffer", "0", "buffer.length", "buffer", "buffer.length", "pointer = 0", "pointer", "0", "return buffer[pointer++];", "buffer[pointer++]", "buffer", "pointer++", "pointer", "String next() throws IOException {\n\t\t\tStringBuffer ret = new StringBuffer();\n \n\t\t\tbyte b;\n\t\t\tdo {\n\t\t\t\tb = nextByte();\n\t\t\t} while (b <= ' ');\n\t\t\twhile (b > ' ') {\n\t\t\t\tret.appendCodePoint(b);\n\t\t\t\tb = nextByte();\n\t\t\t}\n \n\t\t\treturn ret.toString();\n\t\t}", "next", "{\n\t\t\tStringBuffer ret = new StringBuffer();\n \n\t\t\tbyte b;\n\t\t\tdo {\n\t\t\t\tb = nextByte();\n\t\t\t} while (b <= ' ');\n\t\t\twhile (b > ' ') {\n\t\t\t\tret.appendCodePoint(b);\n\t\t\t\tb = nextByte();\n\t\t\t}\n \n\t\t\treturn ret.toString();\n\t\t}", "StringBuffer ret = new StringBuffer();", "ret", "new StringBuffer()", "byte b;", "b", "do {\n\t\t\t\tb = nextByte();\n\t\t\t} while (b <= ' ');", "b <= ' '", "b", "' '", "{\n\t\t\t\tb = nextByte();\n\t\t\t}", "b = nextByte()", "b", "nextByte()", "nextByte", "while (b > ' ') {\n\t\t\t\tret.appendCodePoint(b);\n\t\t\t\tb = nextByte();\n\t\t\t}", "b > ' '", "b", "' '", "{\n\t\t\t\tret.appendCodePoint(b);\n\t\t\t\tb = nextByte();\n\t\t\t}", "ret.appendCodePoint(b)", "ret.appendCodePoint", "ret", "b", "b = nextByte()", "b", "nextByte()", "nextByte", "return ret.toString();", "ret.toString()", "ret.toString", "ret", "public class Main {\n\tpublic static void main(String[] args)throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\tPrintWriter out = new PrintWriter(System.out);\n\t\tint n = sc.nextInt();\n\t\tSystem.out.println((1000-(n%1000))%1000);\n\t\tout.close();\n\t}\n\tstatic class FastIO {\n\t\tInputStream dis;\n\t\tbyte[] buffer = new byte[1 << 17];\n\t\tint pointer = 0;\n\t\tpublic FastIO(String fileName) throws IOException {\n\t\t\tdis = new FileInputStream(fileName);\n\t\t}\n\t\tpublic FastIO(InputStream is) throws IOException {\n\t\t\tdis = is;\n\t\t}\n\t\tint nextInt() throws IOException {\n\t\t\tint ret = 0;\n \n\t\t\tbyte b;\n\t\t\tdo {\n\t\t\t\tb = nextByte();\n\t\t\t} while (b <= ' ');\n\t\t\tboolean negative = false;\n\t\t\tif (b == '-') {\n\t\t\t\tnegative = true;\n\t\t\t\tb = nextByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tret = 10 * ret + b - '0';\n\t\t\t\tb = nextByte();\n\t\t\t}\n \n\t\t\treturn (negative) ? -ret : ret;\n\t\t}\n\t\tlong nextLong() throws IOException {\n\t\t\tlong ret = 0;\n \n\t\t\tbyte b;\n\t\t\tdo {\n\t\t\t\tb = nextByte();\n\t\t\t} while (b <= ' ');\n\t\t\tboolean negative = false;\n\t\t\tif (b == '-') {\n\t\t\t\tnegative = true;\n\t\t\t\tb = nextByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tret = 10 * ret + b - '0';\n\t\t\t\tb = nextByte();\n\t\t\t}\n\t\t\treturn (negative) ? -ret : ret;\n\t\t}\n\t\tbyte nextByte() throws IOException {\n\t\t\tif (pointer == buffer.length) {\n\t\t\t\tdis.read(buffer, 0, buffer.length);\n\t\t\t\tpointer = 0;\n\t\t\t}\n\t\t\treturn buffer[pointer++];\n\t\t}\n\t\tString next() throws IOException {\n\t\t\tStringBuffer ret = new StringBuffer();\n \n\t\t\tbyte b;\n\t\t\tdo {\n\t\t\t\tb = nextByte();\n\t\t\t} while (b <= ' ');\n\t\t\twhile (b > ' ') {\n\t\t\t\tret.appendCodePoint(b);\n\t\t\t\tb = nextByte();\n\t\t\t}\n \n\t\t\treturn ret.toString();\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args)throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\tPrintWriter out = new PrintWriter(System.out);\n\t\tint n = sc.nextInt();\n\t\tSystem.out.println((1000-(n%1000))%1000);\n\t\tout.close();\n\t}\n\tstatic class FastIO {\n\t\tInputStream dis;\n\t\tbyte[] buffer = new byte[1 << 17];\n\t\tint pointer = 0;\n\t\tpublic FastIO(String fileName) throws IOException {\n\t\t\tdis = new FileInputStream(fileName);\n\t\t}\n\t\tpublic FastIO(InputStream is) throws IOException {\n\t\t\tdis = is;\n\t\t}\n\t\tint nextInt() throws IOException {\n\t\t\tint ret = 0;\n \n\t\t\tbyte b;\n\t\t\tdo {\n\t\t\t\tb = nextByte();\n\t\t\t} while (b <= ' ');\n\t\t\tboolean negative = false;\n\t\t\tif (b == '-') {\n\t\t\t\tnegative = true;\n\t\t\t\tb = nextByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tret = 10 * ret + b - '0';\n\t\t\t\tb = nextByte();\n\t\t\t}\n \n\t\t\treturn (negative) ? -ret : ret;\n\t\t}\n\t\tlong nextLong() throws IOException {\n\t\t\tlong ret = 0;\n \n\t\t\tbyte b;\n\t\t\tdo {\n\t\t\t\tb = nextByte();\n\t\t\t} while (b <= ' ');\n\t\t\tboolean negative = false;\n\t\t\tif (b == '-') {\n\t\t\t\tnegative = true;\n\t\t\t\tb = nextByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tret = 10 * ret + b - '0';\n\t\t\t\tb = nextByte();\n\t\t\t}\n\t\t\treturn (negative) ? -ret : ret;\n\t\t}\n\t\tbyte nextByte() throws IOException {\n\t\t\tif (pointer == buffer.length) {\n\t\t\t\tdis.read(buffer, 0, buffer.length);\n\t\t\t\tpointer = 0;\n\t\t\t}\n\t\t\treturn buffer[pointer++];\n\t\t}\n\t\tString next() throws IOException {\n\t\t\tStringBuffer ret = new StringBuffer();\n \n\t\t\tbyte b;\n\t\t\tdo {\n\t\t\t\tb = nextByte();\n\t\t\t} while (b <= ' ');\n\t\t\twhile (b > ' ') {\n\t\t\t\tret.appendCodePoint(b);\n\t\t\t\tb = nextByte();\n\t\t\t}\n \n\t\t\treturn ret.toString();\n\t\t}\n\t}\n}", "Main" ]
import java.io.*; import java.util.*; import java.math.*; public class Main { public static void main(String[] args)throws IOException { Scanner sc = new Scanner(System.in); PrintWriter out = new PrintWriter(System.out); int n = sc.nextInt(); System.out.println((1000-(n%1000))%1000); out.close(); } static class FastIO { InputStream dis; byte[] buffer = new byte[1 << 17]; int pointer = 0; public FastIO(String fileName) throws IOException { dis = new FileInputStream(fileName); } public FastIO(InputStream is) throws IOException { dis = is; } int nextInt() throws IOException { int ret = 0; byte b; do { b = nextByte(); } while (b <= ' '); boolean negative = false; if (b == '-') { negative = true; b = nextByte(); } while (b >= '0' && b <= '9') { ret = 10 * ret + b - '0'; b = nextByte(); } return (negative) ? -ret : ret; } long nextLong() throws IOException { long ret = 0; byte b; do { b = nextByte(); } while (b <= ' '); boolean negative = false; if (b == '-') { negative = true; b = nextByte(); } while (b >= '0' && b <= '9') { ret = 10 * ret + b - '0'; b = nextByte(); } return (negative) ? -ret : ret; } byte nextByte() throws IOException { if (pointer == buffer.length) { dis.read(buffer, 0, buffer.length); pointer = 0; } return buffer[pointer++]; } String next() throws IOException { StringBuffer ret = new StringBuffer(); byte b; do { b = nextByte(); } while (b <= ' '); while (b > ' ') { ret.appendCodePoint(b); b = nextByte(); } return ret.toString(); } } }
[ 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, 2, 13, 17, 42, 2, 13, 13, 30, 0, 13, 2, 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 ], [ 52, 5 ], [ 52, 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 ], [ 25, 27 ], [ 8, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 28, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 35, 37 ], [ 8, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 40, 42 ], [ 8, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 6, 49 ], [ 49, 50 ], [ 0, 51 ], [ 51, 52 ], [ 51, 53 ] ]
[ "import java.util.*;\npublic class Main{\n public static void main(String[] args){\n Scanner in=new Scanner(System.in);\n int n=in.nextInt();\n int sum=0,tk=1000;\n int mod=n%1000;\n while(tk<n){\n tk=tk+1000;\n }\n sum=tk-n;\n System.out.println(sum);\n }\n}", "import java.util.*;", "util.*", "java", "public class Main{\n public static void main(String[] args){\n Scanner in=new Scanner(System.in);\n int n=in.nextInt();\n int sum=0,tk=1000;\n int mod=n%1000;\n while(tk<n){\n tk=tk+1000;\n }\n sum=tk-n;\n System.out.println(sum);\n }\n}", "Main", "public static void main(String[] args){\n Scanner in=new Scanner(System.in);\n int n=in.nextInt();\n int sum=0,tk=1000;\n int mod=n%1000;\n while(tk<n){\n tk=tk+1000;\n }\n sum=tk-n;\n System.out.println(sum);\n }", "main", "{\n Scanner in=new Scanner(System.in);\n int n=in.nextInt();\n int sum=0,tk=1000;\n int mod=n%1000;\n while(tk<n){\n tk=tk+1000;\n }\n sum=tk-n;\n System.out.println(sum);\n }", "Scanner in=new Scanner(System.in);", "in", "new Scanner(System.in)", "int n=in.nextInt();", "n", "in.nextInt()", "in.nextInt", "in", "int sum=0", "sum", "0", "tk=1000;", "tk", "1000", "int mod=n%1000;", "mod", "n%1000", "n", "1000", "while(tk<n){\n tk=tk+1000;\n }", "tk<n", "tk", "n", "{\n tk=tk+1000;\n }", "tk=tk+1000", "tk", "tk+1000", "tk", "1000", "sum=tk-n", "sum", "tk-n", "tk", "n", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner in=new Scanner(System.in);\n int n=in.nextInt();\n int sum=0,tk=1000;\n int mod=n%1000;\n while(tk<n){\n tk=tk+1000;\n }\n sum=tk-n;\n System.out.println(sum);\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner in=new Scanner(System.in);\n int n=in.nextInt();\n int sum=0,tk=1000;\n int mod=n%1000;\n while(tk<n){\n tk=tk+1000;\n }\n sum=tk-n;\n System.out.println(sum);\n }\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 sum=0,tk=1000; int mod=n%1000; while(tk<n){ tk=tk+1000; } sum=tk-n; System.out.println(sum); } }
[ 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, 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 ], [ 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 ], [ 17, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 8, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 31, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 36, 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 sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int x = n / 1000;\n if(n % 1000 != 0){\n x++;\n }\n System.out.println(x * 1000 - n);\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\n int n = sc.nextInt();\n int x = n / 1000;\n if(n % 1000 != 0){\n x++;\n }\n System.out.println(x * 1000 - n);\n\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int x = n / 1000;\n if(n % 1000 != 0){\n x++;\n }\n System.out.println(x * 1000 - n);\n\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int x = n / 1000;\n if(n % 1000 != 0){\n x++;\n }\n System.out.println(x * 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", "int x = n / 1000;", "x", "n / 1000", "n", "1000", "if(n % 1000 != 0){\n x++;\n }", "n % 1000 != 0", "n % 1000", "n", "1000", "0", "{\n x++;\n }", "x++", "x", "System.out.println(x * 1000 - n)", "System.out.println", "System.out", "System", "System.out", "x * 1000 - n", "x * 1000", "x", "1000", "n", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int x = n / 1000;\n if(n % 1000 != 0){\n x++;\n }\n System.out.println(x * 1000 - n);\n\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int x = n / 1000;\n if(n % 1000 != 0){\n x++;\n }\n System.out.println(x * 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(); int x = n / 1000; if(n % 1000 != 0){ x++; } System.out.println(x * 1000 - n); } }
[ 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\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int x = in.nextInt();\n int bill = 0;\n while (bill < x) {\n bill += 1000;\n }\n System.out.println(bill - x);\n\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int x = in.nextInt();\n int bill = 0;\n while (bill < x) {\n bill += 1000;\n }\n System.out.println(bill - x);\n\n }\n}", "Main", "public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int x = in.nextInt();\n int bill = 0;\n while (bill < x) {\n bill += 1000;\n }\n System.out.println(bill - x);\n\n }", "main", "{\n Scanner in = new Scanner(System.in);\n int x = in.nextInt();\n int bill = 0;\n while (bill < x) {\n bill += 1000;\n }\n System.out.println(bill - x);\n\n }", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "int x = in.nextInt();", "x", "in.nextInt()", "in.nextInt", "in", "int bill = 0;", "bill", "0", "while (bill < x) {\n bill += 1000;\n }", "bill < x", "bill", "x", "{\n bill += 1000;\n }", "bill += 1000", "bill", "1000", "System.out.println(bill - x)", "System.out.println", "System.out", "System", "System.out", "bill - x", "bill", "x", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int x = in.nextInt();\n int bill = 0;\n while (bill < x) {\n bill += 1000;\n }\n System.out.println(bill - x);\n\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int x = in.nextInt();\n int bill = 0;\n while (bill < x) {\n bill += 1000;\n }\n System.out.println(bill - x);\n\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int x = in.nextInt(); int bill = 0; while (bill < x) { bill += 1000; } System.out.println(bill - x); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 41, 13, 17, 12, 13, 30, 41, 13, 4, 13, 41, 13, 2, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 2, 17, 13, 12, 13, 30, 0, 13, 20, 41, 13, 4, 18, 13, 17, 14, 2, 13, 17, 30, 38, 5, 13, 30, 37, 20, 30, 0, 13, 20, 41, 13, 17, 42, 13, 30, 4, 13, 38, 5, 13, 30, 37, 20, 30, 4, 18, 13, 17, 14, 2, 4, 18, 13, 17, 30, 4, 18, 13, 4, 18, 18, 13, 13, 17, 30, 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, 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, 29, 4, 18, 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, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 235, 8 ], [ 235, 9 ], [ 9, 10 ], [ 235, 11 ], [ 11, 12 ], [ 11, 13 ], [ 235, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 16, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 23, 25 ], [ 16, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 31, 36 ], [ 26, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 43, 44 ], [ 43, 45 ], [ 235, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 48, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 63, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 48, 73 ], [ 73, 74 ], [ 73, 75 ], [ 48, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 85, 86 ], [ 81, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 88, 91 ], [ 87, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 93, 97 ], [ 92, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 98, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 102, 107 ], [ 92, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 46, 112 ], [ 112, 113 ], [ 235, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 118, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 117, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 130, 131 ], [ 131, 132 ], [ 127, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 116, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 235, 141 ], [ 141, 142 ], [ 141, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 145, 148 ], [ 148, 149 ], [ 235, 150 ], [ 150, 151 ], [ 150, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 154, 157 ], [ 157, 158 ], [ 235, 159 ], [ 159, 160 ], [ 159, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 164, 165 ], [ 163, 166 ], [ 166, 167 ], [ 235, 168 ], [ 168, 169 ], [ 168, 170 ], [ 170, 171 ], [ 171, 172 ], [ 171, 173 ], [ 170, 175 ], [ 175, 176 ], [ 176, 177 ], [ 177, 178 ], [ 177, 179 ], [ 175, 180 ], [ 180, 181 ], [ 180, 182 ], [ 175, 183 ], [ 183, 184 ], [ 184, 185 ], [ 175, 186 ], [ 186, 187 ], [ 187, 188 ], [ 188, 189 ], [ 188, 190 ], [ 187, 191 ], [ 191, 192 ], [ 170, 193 ], [ 193, 194 ], [ 168, 195 ], [ 195, 196 ], [ 235, 197 ], [ 197, 198 ], [ 197, 199 ], [ 199, 200 ], [ 200, 201 ], [ 201, 202 ], [ 202, 203 ], [ 203, 204 ], [ 235, 205 ], [ 205, 206 ], [ 205, 207 ], [ 207, 208 ], [ 208, 209 ], [ 208, 210 ], [ 207, 212 ], [ 212, 213 ], [ 213, 214 ], [ 214, 215 ], [ 214, 216 ], [ 212, 217 ], [ 217, 218 ], [ 217, 219 ], [ 212, 220 ], [ 220, 221 ], [ 221, 222 ], [ 212, 223 ], [ 223, 224 ], [ 224, 225 ], [ 225, 226 ], [ 225, 227 ], [ 224, 228 ], [ 228, 229 ], [ 207, 230 ], [ 230, 231 ], [ 205, 232 ], [ 232, 233 ], [ 0, 234 ], [ 234, 235 ], [ 234, 236 ] ]
[ "import java.util.*;\nimport java.io.*;\n\npublic class Main {\t\n\n\tprivate static void solve(){\n\t\t//Implement solution here.\n\t\tint N = ni();\n\t\tint mod = N % 1000;\n\t\tif(mod == 0) {\n\t\t\tSystem.out.println(0);\n\t\t} else {\n\t\t\tSystem.out.println(1000 - mod);\n\t\t}\n\t\t\n\t}\n\n\t//Switch input source (stdin/file)\n\tprivate static BufferedReader br;\n\tpublic static void main(String[] args){\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\tString debugDataPath = System.getenv(\"DD_PATH\"); \n\t\tif(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tboolean hasNext = true;\n\t\twhile(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}\n\t}\n\n\t//Input read utility\n\tprivate static StringTokenizer tokenizer = null;\n\tpublic static String next() {\n\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\treturn tokenizer.nextToken();\n\t}\n\t//Get next single int\n\tprivate static int ni() {\n\t\treturn Integer.parseInt(next());\n\t}\n\t//Get next single long\n\tprivate static long nl() {\n\t\treturn Long.parseLong(next());\n\t}\n\t//Get next single double\n\tprivate static double nd() {\n\t\treturn Double.parseDouble(next());\n\t}\n\t//Get next int array from one line\n\tprivate static int[] na(int n) {\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();\n\t\treturn a;\n\t}\n\t//Get next char array from one line\n\tprivate static char[] ns() {\n\t\treturn next().toCharArray();\n\t}\n\t//Get next long array from one line\n\tprivate static long[] nal(int n) {\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();\n\t\treturn a;\n\t}\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "public class Main {\t\n\n\tprivate static void solve(){\n\t\t//Implement solution here.\n\t\tint N = ni();\n\t\tint mod = N % 1000;\n\t\tif(mod == 0) {\n\t\t\tSystem.out.println(0);\n\t\t} else {\n\t\t\tSystem.out.println(1000 - mod);\n\t\t}\n\t\t\n\t}\n\n\t//Switch input source (stdin/file)\n\tprivate static BufferedReader br;\n\tpublic static void main(String[] args){\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\tString debugDataPath = System.getenv(\"DD_PATH\"); \n\t\tif(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tboolean hasNext = true;\n\t\twhile(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}\n\t}\n\n\t//Input read utility\n\tprivate static StringTokenizer tokenizer = null;\n\tpublic static String next() {\n\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\treturn tokenizer.nextToken();\n\t}\n\t//Get next single int\n\tprivate static int ni() {\n\t\treturn Integer.parseInt(next());\n\t}\n\t//Get next single long\n\tprivate static long nl() {\n\t\treturn Long.parseLong(next());\n\t}\n\t//Get next single double\n\tprivate static double nd() {\n\t\treturn Double.parseDouble(next());\n\t}\n\t//Get next int array from one line\n\tprivate static int[] na(int n) {\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();\n\t\treturn a;\n\t}\n\t//Get next char array from one line\n\tprivate static char[] ns() {\n\t\treturn next().toCharArray();\n\t}\n\t//Get next long array from one line\n\tprivate static long[] nal(int n) {\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();\n\t\treturn a;\n\t}\n}", "Main", "//Switch input source (stdin/file)\n\tprivate static BufferedReader br;", "br", "//Input read utility\n\tprivate static StringTokenizer tokenizer = null;", "tokenizer", "null", "private static void solve(){\n\t\t//Implement solution here.\n\t\tint N = ni();\n\t\tint mod = N % 1000;\n\t\tif(mod == 0) {\n\t\t\tSystem.out.println(0);\n\t\t} else {\n\t\t\tSystem.out.println(1000 - mod);\n\t\t}\n\t\t\n\t}", "solve", "{\n\t\t//Implement solution here.\n\t\tint N = ni();\n\t\tint mod = N % 1000;\n\t\tif(mod == 0) {\n\t\t\tSystem.out.println(0);\n\t\t} else {\n\t\t\tSystem.out.println(1000 - mod);\n\t\t}\n\t\t\n\t}", "int N = ni();", "N", "ni()", "ni", "int mod = N % 1000;", "mod", "N % 1000", "N", "1000", "if(mod == 0) {\n\t\t\tSystem.out.println(0);\n\t\t} else {\n\t\t\tSystem.out.println(1000 - mod);\n\t\t}", "mod == 0", "mod", "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(1000 - mod);\n\t\t}", "System.out.println(1000 - mod)", "System.out.println", "System.out", "System", "System.out", "1000 - mod", "1000", "mod", "public static void main(String[] args){\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\tString debugDataPath = System.getenv(\"DD_PATH\"); \n\t\tif(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tboolean hasNext = true;\n\t\twhile(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}\n\t}", "main", "{\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\tString debugDataPath = System.getenv(\"DD_PATH\"); \n\t\tif(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tboolean hasNext = true;\n\t\twhile(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}\n\t}", "br = new BufferedReader(new InputStreamReader(System.in))", "br", "new BufferedReader(new InputStreamReader(System.in))", "String debugDataPath = System.getenv(\"DD_PATH\");", "debugDataPath", "System.getenv(\"DD_PATH\")", "System.getenv", "System", "\"DD_PATH\"", "if(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}", "debugDataPath != null", "debugDataPath", "null", "{\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}", "try{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}", "catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}", "Exception e", "{\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}", "throw new RuntimeException(e);", "new RuntimeException(e)", "{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}", "br = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))))", "br", "new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))))", "boolean hasNext = true;", "hasNext", "true", "while(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}", "hasNext", "{\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}", "solve()", "solve", "try{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}", "catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}", "Exception e", "{\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}", "throw new RuntimeException(e);", "new RuntimeException(e)", "{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}", "br.mark(1)", "br.mark", "br", "1", "if(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}", "br.read() > 0", "br.read()", "br.read", "br", "0", "{\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t}", "br.reset()", "br.reset", "br", "System.out.println(\"---\")", "System.out.println", "System.out", "System", "System.out", "\"---\"", "{\n\t\t\t\t\thasNext = false;\n\t\t\t\t}", "hasNext = false", "hasNext", "false", "String[] args", "args", "public static String next() {\n\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\treturn tokenizer.nextToken();\n\t}", "next", "{\n\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\treturn tokenizer.nextToken();\n\t}", "while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}", "tokenizer == null || !tokenizer.hasMoreTokens()", "tokenizer == null", "tokenizer", "null", "!tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens", "tokenizer", "{\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}", "try {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}", "catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}", "Exception e", "{\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}", "throw new RuntimeException(e);", "new RuntimeException(e)", "{\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t}", "tokenizer = new StringTokenizer(br.readLine())", "tokenizer", "new StringTokenizer(br.readLine())", "return tokenizer.nextToken();", "tokenizer.nextToken()", "tokenizer.nextToken", "tokenizer", "//Get next single int\n\tprivate static int ni() {\n\t\treturn Integer.parseInt(next());\n\t}", "ni", "{\n\t\treturn Integer.parseInt(next());\n\t}", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "//Get next single long\n\tprivate static long nl() {\n\t\treturn Long.parseLong(next());\n\t}", "nl", "{\n\t\treturn Long.parseLong(next());\n\t}", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "//Get next single double\n\tprivate static double nd() {\n\t\treturn Double.parseDouble(next());\n\t}", "nd", "{\n\t\treturn Double.parseDouble(next());\n\t}", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "//Get next int array from one line\n\tprivate static int[] na(int n) {\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();\n\t\treturn a;\n\t}", "na", "{\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();\n\t\treturn a;\n\t}", "int[] a = new int[n];", "a", "new int[n]", "n", "for (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "a[i] = ni();", "a[i] = ni()", "a[i]", "a", "i", "ni()", "ni", "return a;", "a", "int n", "n", "//Get next char array from one line\n\tprivate static char[] ns() {\n\t\treturn next().toCharArray();\n\t}", "ns", "{\n\t\treturn next().toCharArray();\n\t}", "return next().toCharArray();", "next().toCharArray()", "next().toCharArray", "next()", "next", "//Get next long array from one line\n\tprivate static long[] nal(int n) {\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();\n\t\treturn a;\n\t}", "nal", "{\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();\n\t\treturn a;\n\t}", "long[] a = new long[n];", "a", "new long[n]", "n", "for (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "a[i] = nl();", "a[i] = nl()", "a[i]", "a", "i", "nl()", "nl", "return a;", "a", "int n", "n", "public class Main {\t\n\n\tprivate static void solve(){\n\t\t//Implement solution here.\n\t\tint N = ni();\n\t\tint mod = N % 1000;\n\t\tif(mod == 0) {\n\t\t\tSystem.out.println(0);\n\t\t} else {\n\t\t\tSystem.out.println(1000 - mod);\n\t\t}\n\t\t\n\t}\n\n\t//Switch input source (stdin/file)\n\tprivate static BufferedReader br;\n\tpublic static void main(String[] args){\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\tString debugDataPath = System.getenv(\"DD_PATH\"); \n\t\tif(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tboolean hasNext = true;\n\t\twhile(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}\n\t}\n\n\t//Input read utility\n\tprivate static StringTokenizer tokenizer = null;\n\tpublic static String next() {\n\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\treturn tokenizer.nextToken();\n\t}\n\t//Get next single int\n\tprivate static int ni() {\n\t\treturn Integer.parseInt(next());\n\t}\n\t//Get next single long\n\tprivate static long nl() {\n\t\treturn Long.parseLong(next());\n\t}\n\t//Get next single double\n\tprivate static double nd() {\n\t\treturn Double.parseDouble(next());\n\t}\n\t//Get next int array from one line\n\tprivate static int[] na(int n) {\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();\n\t\treturn a;\n\t}\n\t//Get next char array from one line\n\tprivate static char[] ns() {\n\t\treturn next().toCharArray();\n\t}\n\t//Get next long array from one line\n\tprivate static long[] nal(int n) {\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();\n\t\treturn a;\n\t}\n}", "public class Main {\t\n\n\tprivate static void solve(){\n\t\t//Implement solution here.\n\t\tint N = ni();\n\t\tint mod = N % 1000;\n\t\tif(mod == 0) {\n\t\t\tSystem.out.println(0);\n\t\t} else {\n\t\t\tSystem.out.println(1000 - mod);\n\t\t}\n\t\t\n\t}\n\n\t//Switch input source (stdin/file)\n\tprivate static BufferedReader br;\n\tpublic static void main(String[] args){\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\tString debugDataPath = System.getenv(\"DD_PATH\"); \n\t\tif(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tboolean hasNext = true;\n\t\twhile(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}\n\t}\n\n\t//Input read utility\n\tprivate static StringTokenizer tokenizer = null;\n\tpublic static String next() {\n\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\treturn tokenizer.nextToken();\n\t}\n\t//Get next single int\n\tprivate static int ni() {\n\t\treturn Integer.parseInt(next());\n\t}\n\t//Get next single long\n\tprivate static long nl() {\n\t\treturn Long.parseLong(next());\n\t}\n\t//Get next single double\n\tprivate static double nd() {\n\t\treturn Double.parseDouble(next());\n\t}\n\t//Get next int array from one line\n\tprivate static int[] na(int n) {\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();\n\t\treturn a;\n\t}\n\t//Get next char array from one line\n\tprivate static char[] ns() {\n\t\treturn next().toCharArray();\n\t}\n\t//Get next long array from one line\n\tprivate static long[] nal(int n) {\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();\n\t\treturn a;\n\t}\n}", "Main" ]
import java.util.*; import java.io.*; public class Main { private static void solve(){ //Implement solution here. int N = ni(); int mod = N % 1000; if(mod == 0) { System.out.println(0); } else { System.out.println(1000 - mod); } } //Switch input source (stdin/file) private static BufferedReader br; public static void main(String[] args){ br = new BufferedReader(new InputStreamReader(System.in)); String debugDataPath = System.getenv("DD_PATH"); if(debugDataPath != null){ try{ br = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath)))); }catch(Exception e){ throw new RuntimeException(e); } } boolean hasNext = true; while(hasNext){ solve(); try{ br.mark(1); if(br.read() > 0){ br.reset(); System.out.println("---"); } else { hasNext = false; } }catch(Exception e){ throw new RuntimeException(e); } } } //Input read utility private static StringTokenizer tokenizer = null; public static String next() { while (tokenizer == null || !tokenizer.hasMoreTokens()) { try { tokenizer = new StringTokenizer(br.readLine()); } catch (Exception e) { throw new RuntimeException(e); } } return tokenizer.nextToken(); } //Get next single int private static int ni() { return Integer.parseInt(next()); } //Get next single long private static long nl() { return Long.parseLong(next()); } //Get next single double private static double nd() { return Double.parseDouble(next()); } //Get next int array from one line private static int[] na(int n) { int[] a = new int[n]; for (int i = 0; i < n; i++) a[i] = ni(); return a; } //Get next char array from one line private static char[] ns() { return next().toCharArray(); } //Get next long array from one line private static long[] nal(int n) { long[] a = new long[n]; for (int i = 0; i < n; i++) a[i] = nl(); return a; } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 41, 13, 41, 13, 40, 17, 41, 13, 2, 17, 17, 12, 13, 30, 0, 13, 20, 0, 13, 20, 41, 13, 2, 4, 18, 13, 17, 14, 2, 13, 17, 0, 13, 2, 17, 13, 4, 18, 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 ], [ 60, 11 ], [ 60, 12 ], [ 12, 13 ], [ 60, 14 ], [ 14, 15 ], [ 60, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 60, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 22, 24 ], [ 60, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 27, 31 ], [ 31, 32 ], [ 31, 33 ], [ 27, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 36, 40 ], [ 27, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 47, 49 ], [ 27, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 27, 54 ], [ 54, 55 ], [ 55, 56 ], [ 25, 57 ], [ 57, 58 ], [ 0, 59 ], [ 59, 60 ], [ 59, 61 ] ]
[ "import java.io.*;\nimport java.util.*;\nimport java.awt.Point;\npublic class Main {\n\tstatic Scanner sc;\n\tstatic PrintWriter out;\n\tstatic final int uncal = -1;\n\tstatic final int mod = (int) (1e9)+7;\n\tpublic static void main(String[] args) throws Exception{\n\t\t// TODO Auto-generated method stub\n\t\tsc = new Scanner(System.in); \n\t\tout = new PrintWriter(System.out);\n\t\tint n = sc.nextInt()%1000;\n\t\tif(n > 0)\n\t\t\tn = 1000-n;\n\t\tout.println(n);\n\t\tout.close();\n\t}\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "import java.awt.Point;", "Point", "java.awt", "public class Main {\n\tstatic Scanner sc;\n\tstatic PrintWriter out;\n\tstatic final int uncal = -1;\n\tstatic final int mod = (int) (1e9)+7;\n\tpublic static void main(String[] args) throws Exception{\n\t\t// TODO Auto-generated method stub\n\t\tsc = new Scanner(System.in); \n\t\tout = new PrintWriter(System.out);\n\t\tint n = sc.nextInt()%1000;\n\t\tif(n > 0)\n\t\t\tn = 1000-n;\n\t\tout.println(n);\n\t\tout.close();\n\t}\n}", "Main", "static Scanner sc;", "sc", "static PrintWriter out;", "out", "static final int uncal = -1;", "uncal", "-1", "1", "static final int mod = (int) (1e9)+7;", "mod", "(int) (1e9)+7", "(int) (1e9)", "7", "public static void main(String[] args) throws Exception{\n\t\t// TODO Auto-generated method stub\n\t\tsc = new Scanner(System.in); \n\t\tout = new PrintWriter(System.out);\n\t\tint n = sc.nextInt()%1000;\n\t\tif(n > 0)\n\t\t\tn = 1000-n;\n\t\tout.println(n);\n\t\tout.close();\n\t}", "main", "{\n\t\t// TODO Auto-generated method stub\n\t\tsc = new Scanner(System.in); \n\t\tout = new PrintWriter(System.out);\n\t\tint n = sc.nextInt()%1000;\n\t\tif(n > 0)\n\t\t\tn = 1000-n;\n\t\tout.println(n);\n\t\tout.close();\n\t}", "sc = new Scanner(System.in)", "sc", "new Scanner(System.in)", "out = new PrintWriter(System.out)", "out", "new PrintWriter(System.out)", "int n = sc.nextInt()%1000;", "n", "sc.nextInt()%1000", "sc.nextInt()", "sc.nextInt", "sc", "1000", "if(n > 0)\n\t\t\tn = 1000-n;", "n > 0", "n", "0", "n = 1000-n", "n", "1000-n", "1000", "n", "out.println(n)", "out.println", "out", "n", "out.close()", "out.close", "out", "String[] args", "args", "public class Main {\n\tstatic Scanner sc;\n\tstatic PrintWriter out;\n\tstatic final int uncal = -1;\n\tstatic final int mod = (int) (1e9)+7;\n\tpublic static void main(String[] args) throws Exception{\n\t\t// TODO Auto-generated method stub\n\t\tsc = new Scanner(System.in); \n\t\tout = new PrintWriter(System.out);\n\t\tint n = sc.nextInt()%1000;\n\t\tif(n > 0)\n\t\t\tn = 1000-n;\n\t\tout.println(n);\n\t\tout.close();\n\t}\n}", "public class Main {\n\tstatic Scanner sc;\n\tstatic PrintWriter out;\n\tstatic final int uncal = -1;\n\tstatic final int mod = (int) (1e9)+7;\n\tpublic static void main(String[] args) throws Exception{\n\t\t// TODO Auto-generated method stub\n\t\tsc = new Scanner(System.in); \n\t\tout = new PrintWriter(System.out);\n\t\tint n = sc.nextInt()%1000;\n\t\tif(n > 0)\n\t\t\tn = 1000-n;\n\t\tout.println(n);\n\t\tout.close();\n\t}\n}", "Main" ]
import java.io.*; import java.util.*; import java.awt.Point; public class Main { static Scanner sc; static PrintWriter out; static final int uncal = -1; static final int mod = (int) (1e9)+7; public static void main(String[] args) throws Exception{ // TODO Auto-generated method stub sc = new Scanner(System.in); out = new PrintWriter(System.out); int n = sc.nextInt()%1000; if(n > 0) n = 1000-n; out.println(n); out.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 2, 13, 17, 41, 13, 8, 2, 13, 17, 17, 2, 17, 13, 4, 18, 18, 13, 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 ], [ 14, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 27, 31 ], [ 27, 32 ], [ 32, 33 ], [ 32, 34 ], [ 8, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 6, 41 ], [ 41, 42 ], [ 0, 43 ], [ 43, 44 ], [ 43, 45 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t int input = Integer.parseInt(sc.nextLine());\n\t\tint amari = input % 1000;\n\t\tint result = amari == 0 ? 0 : 1000 - amari;\n\t System.out.println(result);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t int input = Integer.parseInt(sc.nextLine());\n\t\tint amari = input % 1000;\n\t\tint result = amari == 0 ? 0 : 1000 - amari;\n\t System.out.println(result);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t int input = Integer.parseInt(sc.nextLine());\n\t\tint amari = input % 1000;\n\t\tint result = amari == 0 ? 0 : 1000 - amari;\n\t System.out.println(result);\n\t}", "main", "{\n\t Scanner sc = new Scanner(System.in);\n\t int input = Integer.parseInt(sc.nextLine());\n\t\tint amari = input % 1000;\n\t\tint result = amari == 0 ? 0 : 1000 - amari;\n\t System.out.println(result);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int input = Integer.parseInt(sc.nextLine());", "input", "Integer.parseInt(sc.nextLine())", "Integer.parseInt", "Integer", "sc.nextLine()", "sc.nextLine", "sc", "int amari = input % 1000;", "amari", "input % 1000", "input", "1000", "int result = amari == 0 ? 0 : 1000 - amari;", "result", "amari == 0 ? 0 : 1000 - amari", "amari == 0", "amari", "0", "0", "1000 - amari", "1000", "amari", "System.out.println(result)", "System.out.println", "System.out", "System", "System.out", "result", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t int input = Integer.parseInt(sc.nextLine());\n\t\tint amari = input % 1000;\n\t\tint result = amari == 0 ? 0 : 1000 - amari;\n\t System.out.println(result);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t int input = Integer.parseInt(sc.nextLine());\n\t\tint amari = input % 1000;\n\t\tint result = amari == 0 ? 0 : 1000 - amari;\n\t System.out.println(result);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int input = Integer.parseInt(sc.nextLine()); int amari = input % 1000; int result = amari == 0 ? 0 : 1000 - amari; System.out.println(result); } }
[ 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, 2, 13, 13, 14, 2, 13, 17, 30, 4, 18, 18, 13, 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 ], [ 54, 5 ], [ 54, 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 ], [ 25, 27 ], [ 8, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 28, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 28, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 42, 44 ], [ 39, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 6, 51 ], [ 51, 52 ], [ 0, 53 ], [ 53, 54 ], [ 53, 55 ] ]
[ "import java.util.*;\npublic class Main{\npublic static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int r=0;;\nint low = 1000;\nint m = n%low;\nif(m==0){\n System.out.println(0);\n}else{\n r = 1000-m;\n System.out.println(r);\n}\n\n\n}\n}", "import java.util.*;", "util.*", "java", "public class Main{\npublic static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int r=0;;\nint low = 1000;\nint m = n%low;\nif(m==0){\n System.out.println(0);\n}else{\n r = 1000-m;\n System.out.println(r);\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 int r=0;;\nint low = 1000;\nint m = n%low;\nif(m==0){\n System.out.println(0);\n}else{\n r = 1000-m;\n System.out.println(r);\n}\n\n\n}", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int r=0;;\nint low = 1000;\nint m = n%low;\nif(m==0){\n System.out.println(0);\n}else{\n r = 1000-m;\n System.out.println(r);\n}\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 r=0;", "r", "0", "int low = 1000;", "low", "1000", "int m = n%low;", "m", "n%low", "n", "low", "if(m==0){\n System.out.println(0);\n}else{\n r = 1000-m;\n System.out.println(r);\n}", "m==0", "m", "0", "{\n System.out.println(0);\n}", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "{\n r = 1000-m;\n System.out.println(r);\n}", "r = 1000-m", "r", "1000-m", "1000", "m", "System.out.println(r)", "System.out.println", "System.out", "System", "System.out", "r", "String[] args", "args", "public class Main{\npublic static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int r=0;;\nint low = 1000;\nint m = n%low;\nif(m==0){\n System.out.println(0);\n}else{\n r = 1000-m;\n System.out.println(r);\n}\n\n\n}\n}", "public class Main{\npublic static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int r=0;;\nint low = 1000;\nint m = n%low;\nif(m==0){\n System.out.println(0);\n}else{\n r = 1000-m;\n System.out.println(r);\n}\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(); int r=0;; int low = 1000; int m = n%low; if(m==0){ System.out.println(0); }else{ r = 1000-m; System.out.println(r); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 2, 17, 2, 13, 17, 0, 13, 8, 2, 13, 17, 17, 13, 4, 18, 18, 13, 13, 13, 4, 18, 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 ], [ 17, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 26, 31 ], [ 8, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 8, 38 ], [ 38, 39 ], [ 39, 40 ], [ 6, 41 ], [ 41, 42 ], [ 0, 43 ], [ 43, 44 ], [ 43, 45 ] ]
[ "import java.util.Scanner;\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 ans = 1000 - (n % 1000);\n ans = ans == 1000 ? 0 : ans;\n System.out.println(ans);\n sc.close();\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 int n = sc.nextInt();\n int ans = 1000 - (n % 1000);\n ans = ans == 1000 ? 0 : ans;\n System.out.println(ans);\n sc.close();\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int ans = 1000 - (n % 1000);\n ans = ans == 1000 ? 0 : ans;\n System.out.println(ans);\n sc.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int ans = 1000 - (n % 1000);\n ans = ans == 1000 ? 0 : ans;\n System.out.println(ans);\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 ans = 1000 - (n % 1000);", "ans", "1000 - (n % 1000)", "1000", "(n % 1000)", "n", "1000", "ans = ans == 1000 ? 0 : ans", "ans", "ans == 1000 ? 0 : ans", "ans == 1000", "ans", "1000", "0", "ans", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "sc.close()", "sc.close", "sc", "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 ans = 1000 - (n % 1000);\n ans = ans == 1000 ? 0 : ans;\n System.out.println(ans);\n sc.close();\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 ans = 1000 - (n % 1000);\n ans = ans == 1000 ? 0 : ans;\n System.out.println(ans);\n sc.close();\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 ans = 1000 - (n % 1000); ans = ans == 1000 ? 0 : ans; System.out.println(ans); sc.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 2, 2, 17, 2, 13, 17, 17, 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 ], [ 127, 8 ], [ 127, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 11, 23 ], [ 23, 24 ], [ 24, 25 ], [ 23, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 29, 31 ], [ 26, 32 ], [ 11, 33 ], [ 33, 34 ], [ 34, 35 ], [ 9, 36 ], [ 36, 37 ], [ 127, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 38, 42 ], [ 42, 43 ], [ 38, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 38, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 53, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 63, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 52, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 38, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 85, 86 ], [ 38, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 91, 94 ], [ 94, 95 ], [ 38, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 103 ], [ 103, 104 ], [ 38, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 111, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 121, 122 ], [ 122, 123 ], [ 107, 124 ], [ 124, 125 ], [ 0, 126 ], [ 126, 127 ], [ 126, 128 ] ]
[ "import java.util.*;\nimport java.io.*;\n\npublic class Main {\n public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out));\n long n = sc.nextLong();\n out.println((1000 - n % 1000) % 1000);\n out.close();\n }\n\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\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "public class Main {\n public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out));\n long n = sc.nextLong();\n out.println((1000 - n % 1000) % 1000);\n out.close();\n }\n\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\n}", "Main", "public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out));\n long n = sc.nextLong();\n out.println((1000 - n % 1000) % 1000);\n out.close();\n }", "main", "{\n MyScanner sc = new MyScanner();\n PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out));\n long n = sc.nextLong();\n out.println((1000 - n % 1000) % 1000);\n out.close();\n }", "MyScanner sc = new MyScanner();", "sc", "new MyScanner()", "PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out));", "out", "new PrintWriter(new BufferedOutputStream(System.out))", "long n = sc.nextLong();", "n", "sc.nextLong()", "sc.nextLong", "sc", "out.println((1000 - n % 1000) % 1000)", "out.println", "out", "(1000 - n % 1000) % 1000", "(1000 - n % 1000)", "1000", "n % 1000", "n", "1000", "1000", "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\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 PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out));\n long n = sc.nextLong();\n out.println((1000 - n % 1000) % 1000);\n out.close();\n }\n\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\n}", "public class Main {\n public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out));\n long n = sc.nextLong();\n out.println((1000 - n % 1000) % 1000);\n out.close();\n }\n\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\n}", "Main" ]
import java.util.*; import java.io.*; public class Main { public static void main(String[] args) { MyScanner sc = new MyScanner(); PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out)); long n = sc.nextLong(); out.println((1000 - n % 1000) % 1000); out.close(); } //-----------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, 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, 14, 2, 2, 13, 17, 17, 30, 4, 18, 13, 17, 30, 41, 13, 2, 13, 17, 4, 18, 13, 2, 17, 13, 23, 13, 23, 13, 23, 13, 6, 13, 41, 13, 12, 13, 30, 0, 13, 20, 23, 13, 12, 13, 30, 0, 18, 36, 13, 20, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 17, 30, 4, 18, 13, 17, 4, 18, 13, 18, 13, 13, 23, 13, 12, 13, 30, 4, 13, 13, 4, 18, 13, 23, 13, 12, 13, 30, 4, 18, 13, 12, 13, 30, 4, 18, 13, 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, 30, 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, 30, 29, 40, 17, 29, 18, 13, 40, 13, 12, 13, 30, 41, 13, 4, 13, 42, 4, 13, 13, 30, 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, 30, 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, 30, 29, 4, 18, 13, 13, 29, 4, 13, 13, 23, 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, 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 ], [ 22, 23 ], [ 22, 24 ], [ 0, 25 ], [ 25, 26 ], [ 25, 27 ], [ 0, 28 ], [ 28, 29 ], [ 28, 30 ], [ 0, 31 ], [ 31, 32 ], [ 31, 33 ], [ 0, 34 ], [ 380, 35 ], [ 380, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 41, 43 ], [ 38, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 46, 48 ], [ 38, 49 ], [ 49, 50 ], [ 49, 51 ], [ 38, 52 ], [ 52, 53 ], [ 52, 54 ], [ 38, 55 ], [ 55, 56 ], [ 55, 57 ], [ 38, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 58, 62 ], [ 58, 63 ], [ 38, 64 ], [ 64, 65 ], [ 65, 66 ], [ 36, 67 ], [ 67, 68 ], [ 380, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 73, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 79, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 79, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 90, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 99, 100 ], [ 99, 101 ], [ 71, 102 ], [ 102, 103 ], [ 71, 104 ], [ 104, 105 ], [ 71, 106 ], [ 106, 107 ], [ 380, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 108, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 112, 118 ], [ 118, 119 ], [ 108, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 123, 127 ], [ 120, 128 ], [ 128, 129 ], [ 108, 130 ], [ 130, 131 ], [ 130, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 133, 138 ], [ 138, 139 ], [ 138, 140 ], [ 140, 141 ], [ 140, 142 ], [ 133, 143 ], [ 143, 144 ], [ 144, 145 ], [ 133, 146 ], [ 147, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 149, 151 ], [ 148, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 153, 156 ], [ 147, 157 ], [ 157, 158 ], [ 158, 159 ], [ 157, 160 ], [ 160, 161 ], [ 160, 162 ], [ 130, 163 ], [ 163, 164 ], [ 108, 165 ], [ 165, 166 ], [ 165, 167 ], [ 167, 168 ], [ 168, 169 ], [ 168, 170 ], [ 167, 171 ], [ 171, 172 ], [ 172, 173 ], [ 165, 174 ], [ 174, 175 ], [ 108, 176 ], [ 176, 177 ], [ 176, 178 ], [ 178, 179 ], [ 179, 180 ], [ 180, 181 ], [ 108, 182 ], [ 182, 183 ], [ 182, 184 ], [ 184, 185 ], [ 185, 186 ], [ 186, 187 ], [ 185, 188 ], [ 182, 189 ], [ 189, 190 ], [ 380, 191 ], [ 191, 192 ], [ 191, 193 ], [ 193, 194 ], [ 191, 195 ], [ 195, 196 ], [ 195, 197 ], [ 191, 199 ], [ 199, 200 ], [ 191, 201 ], [ 201, 202 ], [ 191, 203 ], [ 203, 204 ], [ 191, 205 ], [ 205, 206 ], [ 205, 207 ], [ 207, 208 ], [ 208, 209 ], [ 209, 210 ], [ 209, 211 ], [ 208, 212 ], [ 205, 213 ], [ 213, 214 ], [ 191, 215 ], [ 215, 216 ], [ 215, 217 ], [ 217, 218 ], [ 218, 219 ], [ 219, 220 ], [ 219, 221 ], [ 221, 222 ], [ 218, 223 ], [ 223, 224 ], [ 224, 225 ], [ 217, 226 ], [ 226, 227 ], [ 227, 228 ], [ 227, 229 ], [ 226, 230 ], [ 230, 231 ], [ 231, 232 ], [ 231, 233 ], [ 230, 234 ], [ 234, 235 ], [ 235, 236 ], [ 235, 237 ], [ 237, 238 ], [ 238, 239 ], [ 234, 240 ], [ 240, 241 ], [ 241, 242 ], [ 241, 243 ], [ 243, 244 ], [ 244, 245 ], [ 243, 246 ], [ 230, 247 ], [ 247, 248 ], [ 248, 249 ], [ 248, 250 ], [ 247, 251 ], [ 251, 252 ], [ 252, 253 ], [ 253, 254 ], [ 217, 255 ], [ 255, 256 ], [ 256, 257 ], [ 256, 258 ], [ 258, 259 ], [ 191, 260 ], [ 260, 261 ], [ 260, 262 ], [ 262, 263 ], [ 263, 264 ], [ 263, 265 ], [ 265, 266 ], [ 262, 267 ], [ 267, 268 ], [ 268, 269 ], [ 268, 270 ], [ 267, 271 ], [ 271, 272 ], [ 272, 273 ], [ 272, 274 ], [ 274, 275 ], [ 262, 276 ], [ 276, 277 ], [ 276, 278 ], [ 262, 279 ], [ 279, 280 ], [ 280, 281 ], [ 280, 282 ], [ 279, 283 ], [ 283, 284 ], [ 284, 285 ], [ 284, 286 ], [ 286, 287 ], [ 283, 288 ], [ 288, 289 ], [ 288, 290 ], [ 290, 291 ], [ 262, 292 ], [ 292, 293 ], [ 292, 294 ], [ 262, 295 ], [ 295, 296 ], [ 296, 297 ], [ 297, 298 ], [ 297, 299 ], [ 295, 300 ], [ 300, 301 ], [ 301, 302 ], [ 302, 303 ], [ 303, 304 ], [ 303, 305 ], [ 302, 306 ], [ 306, 307 ], [ 306, 308 ], [ 301, 309 ], [ 309, 310 ], [ 310, 311 ], [ 300, 312 ], [ 312, 313 ], [ 312, 314 ], [ 300, 315 ], [ 315, 316 ], [ 315, 317 ], [ 317, 318 ], [ 317, 319 ], [ 300, 320 ], [ 320, 321 ], [ 320, 322 ], [ 322, 323 ], [ 262, 324 ], [ 324, 325 ], [ 325, 326 ], [ 325, 327 ], [ 191, 328 ], [ 328, 329 ], [ 328, 330 ], [ 330, 331 ], [ 331, 332 ], [ 332, 333 ], [ 332, 334 ], [ 331, 335 ], [ 335, 336 ], [ 336, 337 ], [ 337, 338 ], [ 338, 339 ], [ 337, 340 ], [ 330, 341 ], [ 341, 342 ], [ 342, 343 ], [ 342, 344 ], [ 328, 345 ], [ 345, 346 ], [ 191, 347 ], [ 347, 348 ], [ 347, 349 ], [ 349, 350 ], [ 350, 351 ], [ 354, 352 ], [ 364, 353 ], [ 361, 354 ], [ 354, 355 ], [ 355, 356 ], [ 355, 357 ], [ 354, 358 ], [ 358, 359 ], [ 358, 360 ], [ 361, 361 ], [ 361, 362 ], [ 361, 363 ], [ 364, 364 ], [ 364, 365 ], [ 364, 366 ], [ 354, 367 ], [ 367, 368 ], [ 367, 369 ], [ 369, 370 ], [ 347, 371 ], [ 371, 372 ], [ 191, 373 ], [ 373, 374 ], [ 373, 375 ], [ 375, 376 ], [ 375, 377 ], [ 377, 378 ], [ 0, 379 ], [ 379, 380 ], [ 379, 381 ] ]
[ "import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.OutputStream;\nimport java.io.PrintWriter;\nimport java.io.BufferedWriter;\nimport java.io.Writer;\nimport java.io.OutputStreamWriter;\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 InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n APayment solver = new APayment();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class APayment {\n public void solve(int testNumber, InputReader in, OutputWriter out) {\n int n = in.nextInt();\n if (n % 1000 == 0) {\n out.println(\"0\");\n } else {\n int y = n % 1000;\n out.println(1000 - y);\n }\n }\n\n }\n\n static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void print(Object... objects) {\n for (int i = 0; i < objects.length; i++) {\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }\n }\n\n public void println(Object... objects) {\n print(objects);\n writer.println();\n }\n\n public void close() {\n writer.close();\n }\n\n public void println(int i) {\n writer.println(i);\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\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) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\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') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int 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.OutputStream;", "OutputStream", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.io.BufferedWriter;", "BufferedWriter", "java.io", "import java.io.Writer;", "Writer", "java.io", "import java.io.OutputStreamWriter;", "OutputStreamWriter", "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 InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n APayment solver = new APayment();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class APayment {\n public void solve(int testNumber, InputReader in, OutputWriter out) {\n int n = in.nextInt();\n if (n % 1000 == 0) {\n out.println(\"0\");\n } else {\n int y = n % 1000;\n out.println(1000 - y);\n }\n }\n\n }\n\n static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void print(Object... objects) {\n for (int i = 0; i < objects.length; i++) {\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }\n }\n\n public void println(Object... objects) {\n print(objects);\n writer.println();\n }\n\n public void close() {\n writer.close();\n }\n\n public void println(int i) {\n writer.println(i);\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\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) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\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') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int 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 InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n APayment solver = new APayment();\n solver.solve(1, in, out);\n out.close();\n }", "main", "{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n APayment solver = new APayment();\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", "InputReader in = new InputReader(inputStream);", "in", "new InputReader(inputStream)", "OutputWriter out = new OutputWriter(outputStream);", "out", "new OutputWriter(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 public void solve(int testNumber, InputReader in, OutputWriter out) {\n int n = in.nextInt();\n if (n % 1000 == 0) {\n out.println(\"0\");\n } else {\n int y = n % 1000;\n out.println(1000 - y);\n }\n }\n\n }", "APayment", "public void solve(int testNumber, InputReader in, OutputWriter out) {\n int n = in.nextInt();\n if (n % 1000 == 0) {\n out.println(\"0\");\n } else {\n int y = n % 1000;\n out.println(1000 - y);\n }\n }", "solve", "{\n int n = in.nextInt();\n if (n % 1000 == 0) {\n out.println(\"0\");\n } else {\n int y = n % 1000;\n out.println(1000 - y);\n }\n }", "int n = in.nextInt();", "n", "in.nextInt()", "in.nextInt", "in", "if (n % 1000 == 0) {\n out.println(\"0\");\n } else {\n int y = n % 1000;\n out.println(1000 - y);\n }", "n % 1000 == 0", "n % 1000", "n", "1000", "0", "{\n out.println(\"0\");\n }", "out.println(\"0\")", "out.println", "out", "\"0\"", "{\n int y = n % 1000;\n out.println(1000 - y);\n }", "int y = n % 1000;", "y", "n % 1000", "n", "1000", "out.println(1000 - y)", "out.println", "out", "1000 - y", "1000", "y", "int testNumber", "testNumber", "InputReader in", "in", "OutputWriter out", "out", "static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void print(Object... objects) {\n for (int i = 0; i < objects.length; i++) {\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }\n }\n\n public void println(Object... objects) {\n print(objects);\n writer.println();\n }\n\n public void close() {\n writer.close();\n }\n\n public void println(int i) {\n writer.println(i);\n }\n\n }", "OutputWriter", "private final PrintWriter writer;", "writer", "public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }", "OutputWriter", "{\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }", "writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)))", "writer", "new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)))", "OutputStream outputStream", "outputStream", "public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }", "OutputWriter", "{\n this.writer = new PrintWriter(writer);\n }", "this.writer = new PrintWriter(writer)", "this.writer", "this", "this.writer", "new PrintWriter(writer)", "Writer writer", "writer", "public void print(Object... objects) {\n for (int i = 0; i < objects.length; i++) {\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }\n }", "print", "{\n for (int i = 0; i < objects.length; i++) {\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }\n }", "for (int i = 0; i < objects.length; i++) {\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < objects.length", "i", "objects.length", "objects", "objects.length", "i++", "i++", "i", "{\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }", "{\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }", "if (i != 0) {\n writer.print(' ');\n }", "i != 0", "i", "0", "{\n writer.print(' ');\n }", "writer.print(' ')", "writer.print", "writer", "' '", "writer.print(objects[i])", "writer.print", "writer", "objects[i]", "objects", "i", "Object... objects", "objects", "public void println(Object... objects) {\n print(objects);\n writer.println();\n }", "println", "{\n print(objects);\n writer.println();\n }", "print(objects)", "print", "objects", "writer.println()", "writer.println", "writer", "Object... objects", "objects", "public void close() {\n writer.close();\n }", "close", "{\n writer.close();\n }", "writer.close()", "writer.close", "writer", "public void println(int i) {\n writer.println(i);\n }", "println", "{\n writer.println(i);\n }", "writer.println(i)", "writer.println", "writer", "i", "int i", "i", "static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\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) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\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') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int 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 }", "InputReader", "private InputStream stream;", "stream", "private byte[] buf = new byte[1024];", "buf", "new byte[1024]", "1024", "private int curChar;", "curChar", "private int numChars;", "numChars", "private InputReader.SpaceCharFilter filter;", "filter", "public InputReader(InputStream stream) {\n this.stream = stream;\n }", "InputReader", "{\n this.stream = stream;\n }", "this.stream = stream", "this.stream", "this", "this.stream", "stream", "InputStream stream", "stream", "public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\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) {\n return -1;\n }\n }\n return buf[curChar++];\n }", "read", "{\n if (numChars == -1) {\n throw new InputMismatchException();\n }\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) {\n return -1;\n }\n }\n return buf[curChar++];\n }", "if (numChars == -1) {\n throw new InputMismatchException();\n }", "numChars == -1", "numChars", "-1", "1", "{\n throw new InputMismatchException();\n }", "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) {\n return -1;\n }\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) {\n return -1;\n }\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) {\n return -1;\n }", "numChars <= 0", "numChars", "0", "{\n return -1;\n }", "return -1;", "-1", "1", "return buf[curChar++];", "buf[curChar++]", "buf", "curChar++", "curChar", "public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\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') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }", "nextInt", "{\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\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') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }", "int c = read();", "c", "read()", "read", "while (isSpaceChar(c)) {\n c = read();\n }", "isSpaceChar(c)", "isSpaceChar", "c", "{\n c = read();\n }", "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') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));", "!isSpaceChar(c)", "isSpaceChar(c)", "isSpaceChar", "c", "{\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n }", "if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }", "c < '0' || c > '9'", "c < '0'", "c", "'0'", "c > '9'", "c", "'9'", "{\n throw new InputMismatchException();\n }", "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) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }", "isSpaceChar", "{\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }", "if (filter != null) {\n return filter.isSpaceChar(c);\n }", "filter != null", "filter", "null", "{\n return filter.isSpaceChar(c);\n }", "return filter.isSpaceChar(c);", "filter.isSpaceChar(c)", "filter.isSpaceChar", "filter", "c", "return isWhitespace(c);", "isWhitespace(c)", "isWhitespace", "c", "int c", "c", "public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }", "isWhitespace", "{\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 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 InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n APayment solver = new APayment();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class APayment {\n public void solve(int testNumber, InputReader in, OutputWriter out) {\n int n = in.nextInt();\n if (n % 1000 == 0) {\n out.println(\"0\");\n } else {\n int y = n % 1000;\n out.println(1000 - y);\n }\n }\n\n }\n\n static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void print(Object... objects) {\n for (int i = 0; i < objects.length; i++) {\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }\n }\n\n public void println(Object... objects) {\n print(objects);\n writer.println();\n }\n\n public void close() {\n writer.close();\n }\n\n public void println(int i) {\n writer.println(i);\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\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) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\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') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int 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 InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n APayment solver = new APayment();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class APayment {\n public void solve(int testNumber, InputReader in, OutputWriter out) {\n int n = in.nextInt();\n if (n % 1000 == 0) {\n out.println(\"0\");\n } else {\n int y = n % 1000;\n out.println(1000 - y);\n }\n }\n\n }\n\n static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void print(Object... objects) {\n for (int i = 0; i < objects.length; i++) {\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }\n }\n\n public void println(Object... objects) {\n print(objects);\n writer.println();\n }\n\n public void close() {\n writer.close();\n }\n\n public void println(int i) {\n writer.println(i);\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\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) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\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') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int 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.OutputStream; import java.io.PrintWriter; import java.io.BufferedWriter; import java.io.Writer; import java.io.OutputStreamWriter; 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; InputReader in = new InputReader(inputStream); OutputWriter out = new OutputWriter(outputStream); APayment solver = new APayment(); solver.solve(1, in, out); out.close(); } static class APayment { public void solve(int testNumber, InputReader in, OutputWriter out) { int n = in.nextInt(); if (n % 1000 == 0) { out.println("0"); } else { int y = n % 1000; out.println(1000 - y); } } } static class OutputWriter { private final PrintWriter writer; public OutputWriter(OutputStream outputStream) { writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream))); } public OutputWriter(Writer writer) { this.writer = new PrintWriter(writer); } public void print(Object... objects) { for (int i = 0; i < objects.length; i++) { if (i != 0) { writer.print(' '); } writer.print(objects[i]); } } public void println(Object... objects) { print(objects); writer.println(); } public void close() { writer.close(); } public void println(int i) { writer.println(i); } } static class InputReader { private InputStream stream; private byte[] buf = new byte[1024]; private int curChar; private int numChars; private InputReader.SpaceCharFilter filter; public InputReader(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 isWhitespace(c); } public static boolean isWhitespace(int 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, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 42, 17, 30, 0, 13, 2, 13, 17, 14, 2, 13, 17, 30, 3, 4, 18, 18, 13, 13, 4, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 57, 5 ], [ 57, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 13, 18 ], [ 9, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 19, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 28, 29 ], [ 29, 30 ], [ 19, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 36, 38 ], [ 33, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 43, 44 ], [ 19, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 6, 54 ], [ 54, 55 ], [ 0, 56 ], [ 56, 57 ], [ 56, 58 ] ]
[ "import java.io.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n int N = Integer.parseInt(br.readLine());\n \n while(true){\n N = N - 1000;\n \n if(N <= 0){\n break;\n }\n }\n \n System.out.println(Math.abs(N));\n \n }catch(Exception e){\n System.out.println(e);\n }\n }\n}", "import java.io.*;", "io.*", "java", "public class Main {\n public static void main(String[] args) throws Exception {\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n int N = Integer.parseInt(br.readLine());\n \n while(true){\n N = N - 1000;\n \n if(N <= 0){\n break;\n }\n }\n \n System.out.println(Math.abs(N));\n \n }catch(Exception e){\n System.out.println(e);\n }\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n int N = Integer.parseInt(br.readLine());\n \n while(true){\n N = N - 1000;\n \n if(N <= 0){\n break;\n }\n }\n \n System.out.println(Math.abs(N));\n \n }catch(Exception e){\n System.out.println(e);\n }\n }", "main", "{\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n int N = Integer.parseInt(br.readLine());\n \n while(true){\n N = N - 1000;\n \n if(N <= 0){\n break;\n }\n }\n \n System.out.println(Math.abs(N));\n \n }catch(Exception e){\n System.out.println(e);\n }\n }", "try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n int N = Integer.parseInt(br.readLine());\n \n while(true){\n N = N - 1000;\n \n if(N <= 0){\n break;\n }\n }\n \n System.out.println(Math.abs(N));\n \n }catch(Exception e){\n System.out.println(e);\n }", "catch(Exception e){\n System.out.println(e);\n }", "Exception e", "{\n System.out.println(e);\n }", "System.out.println(e)", "System.out.println", "System.out", "System", "System.out", "e", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n int N = Integer.parseInt(br.readLine());\n \n while(true){\n N = N - 1000;\n \n if(N <= 0){\n break;\n }\n }\n \n System.out.println(Math.abs(N));\n \n }", "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", "while(true){\n N = N - 1000;\n \n if(N <= 0){\n break;\n }\n }", "true", "{\n N = N - 1000;\n \n if(N <= 0){\n break;\n }\n }", "N = N - 1000", "N", "N - 1000", "N", "1000", "if(N <= 0){\n break;\n }", "N <= 0", "N", "0", "{\n break;\n }", "break;", "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) throws Exception {\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n int N = Integer.parseInt(br.readLine());\n \n while(true){\n N = N - 1000;\n \n if(N <= 0){\n break;\n }\n }\n \n System.out.println(Math.abs(N));\n \n }catch(Exception e){\n System.out.println(e);\n }\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n int N = Integer.parseInt(br.readLine());\n \n while(true){\n N = N - 1000;\n \n if(N <= 0){\n break;\n }\n }\n \n System.out.println(Math.abs(N));\n \n }catch(Exception e){\n System.out.println(e);\n }\n }\n}", "Main" ]
import java.io.*; public class Main { public static void main(String[] args) throws Exception { try{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(br.readLine()); while(true){ N = N - 1000; if(N <= 0){ break; } } System.out.println(Math.abs(N)); }catch(Exception e){ System.out.println(e); } } }
[ 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, 41, 13, 2, 13, 17, 4, 18, 18, 13, 13, 2, 17, 13, 23, 13, 6, 13, 41, 13, 20, 41, 13, 20, 12, 13, 30, 42, 40, 4, 18, 13, 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, 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, 29, 4, 18, 13, 4, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 128, 8 ], [ 128, 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 ], [ 34, 36 ], [ 36, 37 ], [ 36, 38 ], [ 33, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 44, 45 ], [ 44, 46 ], [ 9, 47 ], [ 47, 48 ], [ 128, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 54, 55 ], [ 54, 56 ], [ 49, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 60, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 65, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 59, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 49, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 87, 88 ], [ 49, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 101, 102 ], [ 101, 103 ], [ 96, 104 ], [ 104, 105 ], [ 105, 106 ], [ 96, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 108, 112 ], [ 112, 113 ], [ 91, 114 ], [ 114, 115 ], [ 89, 116 ], [ 116, 117 ], [ 49, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 122, 125 ], [ 125, 126 ], [ 0, 127 ], [ 127, 128 ], [ 127, 129 ] ]
[ "\n\nimport java.util.*;\nimport java.io.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner();\n\t\tint n = sc.nextInt();\n\t\tif(n%1000==0) {\n\t\t\tSystem.out.println(\"0\");\n\t\t}\n\t\telse {\n\t\t\tint y = n%1000;\n\t\t\tSystem.out.println(1000-y);\n\t\t}\n \n \n \n\t}\n\n\tstatic class FastScanner {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st = new StringTokenizer(\"\");\n\n\t\tString next() {\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tint[] readArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t}\n\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner();\n\t\tint n = sc.nextInt();\n\t\tif(n%1000==0) {\n\t\t\tSystem.out.println(\"0\");\n\t\t}\n\t\telse {\n\t\t\tint y = n%1000;\n\t\t\tSystem.out.println(1000-y);\n\t\t}\n \n \n \n\t}\n\n\tstatic class FastScanner {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st = new StringTokenizer(\"\");\n\n\t\tString next() {\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tint[] readArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner();\n\t\tint n = sc.nextInt();\n\t\tif(n%1000==0) {\n\t\t\tSystem.out.println(\"0\");\n\t\t}\n\t\telse {\n\t\t\tint y = n%1000;\n\t\t\tSystem.out.println(1000-y);\n\t\t}\n \n \n \n\t}", "main", "{\n\t\tFastScanner sc = new FastScanner();\n\t\tint n = sc.nextInt();\n\t\tif(n%1000==0) {\n\t\t\tSystem.out.println(\"0\");\n\t\t}\n\t\telse {\n\t\t\tint y = n%1000;\n\t\t\tSystem.out.println(1000-y);\n\t\t}\n \n \n \n\t}", "FastScanner sc = new FastScanner();", "sc", "new FastScanner()", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "if(n%1000==0) {\n\t\t\tSystem.out.println(\"0\");\n\t\t}\n\t\telse {\n\t\t\tint y = n%1000;\n\t\t\tSystem.out.println(1000-y);\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\tint y = n%1000;\n\t\t\tSystem.out.println(1000-y);\n\t\t}", "int y = n%1000;", "y", "n%1000", "n", "1000", "System.out.println(1000-y)", "System.out.println", "System.out", "System", "System.out", "1000-y", "1000", "y", "String[] args", "args", "static class FastScanner {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st = new StringTokenizer(\"\");\n\n\t\tString next() {\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tint[] readArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t}", "FastScanner", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringTokenizer st = new StringTokenizer(\"\");", "st", "new StringTokenizer(\"\")", "String next() {\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}", "next", "{\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}", "while (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "try {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}", "catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}", "IOException e", "{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t}", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "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", "int[] readArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}", "readArray", "{\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}", "int[] a = new int[n];", "a", "new int[n]", "n", "for (int i = 0; i < n; i++)\n\t\t\t\ta[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", "long nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}", "nextLong", "{\n\t\t\treturn Long.parseLong(next());\n\t\t}", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner();\n\t\tint n = sc.nextInt();\n\t\tif(n%1000==0) {\n\t\t\tSystem.out.println(\"0\");\n\t\t}\n\t\telse {\n\t\t\tint y = n%1000;\n\t\t\tSystem.out.println(1000-y);\n\t\t}\n \n \n \n\t}\n\n\tstatic class FastScanner {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st = new StringTokenizer(\"\");\n\n\t\tString next() {\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tint[] readArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner();\n\t\tint n = sc.nextInt();\n\t\tif(n%1000==0) {\n\t\t\tSystem.out.println(\"0\");\n\t\t}\n\t\telse {\n\t\t\tint y = n%1000;\n\t\t\tSystem.out.println(1000-y);\n\t\t}\n \n \n \n\t}\n\n\tstatic class FastScanner {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st = new StringTokenizer(\"\");\n\n\t\tString next() {\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tint[] readArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t}\n\n}", "Main" ]
import java.util.*; import java.io.*; public class Main { public static void main(String[] args) { FastScanner sc = new FastScanner(); int n = sc.nextInt(); if(n%1000==0) { System.out.println("0"); } else { int y = n%1000; System.out.println(1000-y); } } static class FastScanner { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(""); String next() { while (!st.hasMoreTokens()) try { st = new StringTokenizer(br.readLine()); } catch (IOException e) { e.printStackTrace(); } return st.nextToken(); } int nextInt() { return Integer.parseInt(next()); } int[] readArray(int n) { int[] a = new int[n]; for (int i = 0; i < n; i++) a[i] = nextInt(); return a; } long nextLong() { return Long.parseLong(next()); } } }
[ 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, 30, 0, 13, 17, 30, 0, 13, 2, 17, 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 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 25, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 25, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 36, 38 ], [ 8, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 6, 45 ], [ 45, 46 ] ]
[ "import java.util.*; \n \nclass Main{\npublic static void main(String[] args){\n\tScanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int a=n%1000;\n int ans=0;\n if(a==0){\n ans=0;\n }else{\n \t\tans=1000-a;\n }\n \t\t\n \n \tSystem.out.println(ans);\n }\n}", "import java.util.*;", "util.*", "java", "class Main{\npublic static void main(String[] args){\n\tScanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int a=n%1000;\n int ans=0;\n if(a==0){\n ans=0;\n }else{\n \t\tans=1000-a;\n }\n \t\t\n \n \tSystem.out.println(ans);\n }\n}", "Main", "public static void main(String[] args){\n\tScanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int a=n%1000;\n int ans=0;\n if(a==0){\n ans=0;\n }else{\n \t\tans=1000-a;\n }\n \t\t\n \n \tSystem.out.println(ans);\n }", "main", "{\n\tScanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int a=n%1000;\n int ans=0;\n if(a==0){\n ans=0;\n }else{\n \t\tans=1000-a;\n }\n \t\t\n \n \tSystem.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 a=n%1000;", "a", "n%1000", "n", "1000", "int ans=0;", "ans", "0", "if(a==0){\n ans=0;\n }else{\n \t\tans=1000-a;\n }", "a==0", "a", "0", "{\n ans=0;\n }", "ans=0", "ans", "0", "{\n \t\tans=1000-a;\n }", "ans=1000-a", "ans", "1000-a", "1000", "a", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "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 a=n%1000; int ans=0; if(a==0){ ans=0; }else{ ans=1000-a; } System.out.println(ans); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 0, 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 ], [ 17, 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.*;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int res = 0;\n \n \n res = (1000 - N%1000)%1000; \n \n System.out.println(res);\n \n \n \n \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 int res = 0;\n \n \n res = (1000 - N%1000)%1000; \n \n System.out.println(res);\n \n \n \n \n \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 int res = 0;\n \n \n res = (1000 - N%1000)%1000; \n \n System.out.println(res);\n \n \n \n \n \n \n \n }", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int res = 0;\n \n \n res = (1000 - N%1000)%1000; \n \n System.out.println(res);\n \n \n \n \n \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 res = 0;", "res", "0", "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\t\tScanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int res = 0;\n \n \n res = (1000 - N%1000)%1000; \n \n System.out.println(res);\n \n \n \n \n \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 int res = 0;\n \n \n res = (1000 - N%1000)%1000; \n \n System.out.println(res);\n \n \n \n \n \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(); int res = 0; res = (1000 - N%1000)%1000; System.out.println(res); } }
[ 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, 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, 12, 13, 30, 41, 13, 20, 28, 13, 13, 30, 4, 18, 13, 13, 4, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 13, 23, 13, 6, 13, 41, 13, 20, 41, 13, 20, 12, 13, 30, 42, 40, 4, 18, 13, 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, 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, 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 ], [ 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 ], [ 197, 41 ], [ 197, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 44, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 61, 63 ], [ 58, 64 ], [ 42, 65 ], [ 65, 66 ], [ 197, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 73, 75 ], [ 73, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 69, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 69, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 92, 94 ], [ 85, 95 ], [ 95, 96 ], [ 96, 97 ], [ 85, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 103, 104 ], [ 104, 105 ], [ 103, 106 ], [ 67, 107 ], [ 107, 108 ], [ 197, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 111, 113 ], [ 109, 114 ], [ 114, 115 ], [ 114, 116 ], [ 109, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 120, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 125, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 119, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 109, 140 ], [ 140, 141 ], [ 140, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 144, 147 ], [ 147, 148 ], [ 109, 149 ], [ 149, 150 ], [ 149, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 151, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 156, 161 ], [ 161, 162 ], [ 161, 163 ], [ 156, 164 ], [ 164, 165 ], [ 165, 166 ], [ 156, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 169, 171 ], [ 168, 172 ], [ 172, 173 ], [ 151, 174 ], [ 174, 175 ], [ 149, 176 ], [ 176, 177 ], [ 109, 178 ], [ 178, 179 ], [ 178, 180 ], [ 180, 181 ], [ 181, 182 ], [ 182, 183 ], [ 183, 184 ], [ 182, 185 ], [ 185, 186 ], [ 109, 187 ], [ 187, 188 ], [ 187, 189 ], [ 189, 190 ], [ 190, 191 ], [ 191, 192 ], [ 192, 193 ], [ 191, 194 ], [ 194, 195 ], [ 0, 196 ], [ 196, 197 ], [ 196, 198 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\nimport java.util.ArrayDeque;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Comparator;\nimport java.util.Collections;\nimport java.util.HashMap;\nimport java.util.HashSet;\nimport java.util.StringTokenizer;\nimport static java.lang.Long.bitCount;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tFastScanner in = new FastScanner();\n\t\tint n=in.nextInt();\n\t\tSystem.out.println((1000-(n%1000))%1000);\n\t}\n\n\tstatic void sort(int[] a) {\n\t\tArrayList<Integer> l = new ArrayList<>();\n\t\tfor (int i : a)\n\t\t\tl.add(i);\n\t\tCollections.sort(l);\n\t\tfor (int i = 0; i < a.length; i++)\n\t\t\ta[i] = l.get(i);\n\t}\n\n\tstatic class FastScanner {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st = new StringTokenizer(\"\");\n\n\t\tString next() {\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tint[] readArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\t}\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.ArrayDeque;", "ArrayDeque", "java.util", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.Comparator;", "Comparator", "java.util", "import java.util.Collections;", "Collections", "java.util", "import java.util.HashMap;", "HashMap", "java.util", "import java.util.HashSet;", "HashSet", "java.util", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "import static java.lang.Long.bitCount;", "import static java.lang.Long.bitCount;", "import static java.lang.Long.bitCount;", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tFastScanner in = new FastScanner();\n\t\tint n=in.nextInt();\n\t\tSystem.out.println((1000-(n%1000))%1000);\n\t}\n\n\tstatic void sort(int[] a) {\n\t\tArrayList<Integer> l = new ArrayList<>();\n\t\tfor (int i : a)\n\t\t\tl.add(i);\n\t\tCollections.sort(l);\n\t\tfor (int i = 0; i < a.length; i++)\n\t\t\ta[i] = l.get(i);\n\t}\n\n\tstatic class FastScanner {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st = new StringTokenizer(\"\");\n\n\t\tString next() {\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tint[] readArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tFastScanner in = new FastScanner();\n\t\tint n=in.nextInt();\n\t\tSystem.out.println((1000-(n%1000))%1000);\n\t}", "main", "{\n\t\tFastScanner in = new FastScanner();\n\t\tint n=in.nextInt();\n\t\tSystem.out.println((1000-(n%1000))%1000);\n\t}", "FastScanner in = new FastScanner();", "in", "new FastScanner()", "int n=in.nextInt();", "n", "in.nextInt()", "in.nextInt", "in", "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", "static void sort(int[] a) {\n\t\tArrayList<Integer> l = new ArrayList<>();\n\t\tfor (int i : a)\n\t\t\tl.add(i);\n\t\tCollections.sort(l);\n\t\tfor (int i = 0; i < a.length; i++)\n\t\t\ta[i] = l.get(i);\n\t}", "sort", "{\n\t\tArrayList<Integer> l = new ArrayList<>();\n\t\tfor (int i : a)\n\t\t\tl.add(i);\n\t\tCollections.sort(l);\n\t\tfor (int i = 0; i < a.length; i++)\n\t\t\ta[i] = l.get(i);\n\t}", "ArrayList<Integer> l = new ArrayList<>();", "l", "new ArrayList<>()", "for (int i : a)\n\t\t\tl.add(i);", "int i", "a", "l.add(i);", "l.add(i)", "l.add", "l", "i", "Collections.sort(l)", "Collections.sort", "Collections", "l", "for (int i = 0; i < a.length; i++)\n\t\t\ta[i] = l.get(i);", "int i = 0;", "int i = 0;", "i", "0", "i < a.length", "i", "a.length", "a", "a.length", "i++", "i++", "i", "a[i] = l.get(i);", "a[i] = l.get(i)", "a[i]", "a", "i", "l.get(i)", "l.get", "l", "i", "int[] a", "a", "static class FastScanner {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st = new StringTokenizer(\"\");\n\n\t\tString next() {\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tint[] readArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\t}", "FastScanner", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringTokenizer st = new StringTokenizer(\"\");", "st", "new StringTokenizer(\"\")", "String next() {\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}", "next", "{\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}", "while (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "try {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}", "catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}", "IOException e", "{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t}", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "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", "int[] readArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}", "readArray", "{\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}", "int[] a = new int[n];", "a", "new int[n]", "n", "for (int i = 0; i < n; i++)\n\t\t\t\ta[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", "long nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}", "nextLong", "{\n\t\t\treturn Long.parseLong(next());\n\t\t}", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "double nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}", "nextDouble", "{\n\t\t\treturn Double.parseDouble(next());\n\t\t}", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tFastScanner in = new FastScanner();\n\t\tint n=in.nextInt();\n\t\tSystem.out.println((1000-(n%1000))%1000);\n\t}\n\n\tstatic void sort(int[] a) {\n\t\tArrayList<Integer> l = new ArrayList<>();\n\t\tfor (int i : a)\n\t\t\tl.add(i);\n\t\tCollections.sort(l);\n\t\tfor (int i = 0; i < a.length; i++)\n\t\t\ta[i] = l.get(i);\n\t}\n\n\tstatic class FastScanner {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st = new StringTokenizer(\"\");\n\n\t\tString next() {\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tint[] readArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tFastScanner in = new FastScanner();\n\t\tint n=in.nextInt();\n\t\tSystem.out.println((1000-(n%1000))%1000);\n\t}\n\n\tstatic void sort(int[] a) {\n\t\tArrayList<Integer> l = new ArrayList<>();\n\t\tfor (int i : a)\n\t\t\tl.add(i);\n\t\tCollections.sort(l);\n\t\tfor (int i = 0; i < a.length; i++)\n\t\t\ta[i] = l.get(i);\n\t}\n\n\tstatic class FastScanner {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st = new StringTokenizer(\"\");\n\n\t\tString next() {\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tint[] readArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Arrays; import java.util.Comparator; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.StringTokenizer; import static java.lang.Long.bitCount; public class Main { public static void main(String[] args) { FastScanner in = new FastScanner(); int n=in.nextInt(); System.out.println((1000-(n%1000))%1000); } static void sort(int[] a) { ArrayList<Integer> l = new ArrayList<>(); for (int i : a) l.add(i); Collections.sort(l); for (int i = 0; i < a.length; i++) a[i] = l.get(i); } static class FastScanner { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(""); String next() { while (!st.hasMoreTokens()) try { st = new StringTokenizer(br.readLine()); } catch (IOException e) { e.printStackTrace(); } return st.nextToken(); } int nextInt() { return Integer.parseInt(next()); } int[] readArray(int n) { int[] a = new int[n]; for (int i = 0; i < n; i++) a[i] = nextInt(); return a; } long nextLong() { return Long.parseLong(next()); } double nextDouble() { return Double.parseDouble(next()); } } }
[ 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, 4, 18, 13, 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 ], [ 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 ], [ 8, 45 ], [ 45, 46 ], [ 46, 47 ], [ 6, 48 ], [ 48, 49 ], [ 0, 50 ], [ 50, 51 ], [ 50, 52 ] ]
[ "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\n\t\tif (n % 1000 == 0) {\n\t\t\tSystem.out.println(0);\n\t\t} else {\n\t\t\tSystem.out.println((n / 1000 + 1) * 1000 - n);\n\t\t}\n\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\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tif (n % 1000 == 0) {\n\t\t\tSystem.out.println(0);\n\t\t} else {\n\t\t\tSystem.out.println((n / 1000 + 1) * 1000 - n);\n\t\t}\n\n\t\tsc.close();\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tif (n % 1000 == 0) {\n\t\t\tSystem.out.println(0);\n\t\t} else {\n\t\t\tSystem.out.println((n / 1000 + 1) * 1000 - n);\n\t\t}\n\n\t\tsc.close();\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tif (n % 1000 == 0) {\n\t\t\tSystem.out.println(0);\n\t\t} else {\n\t\t\tSystem.out.println((n / 1000 + 1) * 1000 - n);\n\t\t}\n\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", "if (n % 1000 == 0) {\n\t\t\tSystem.out.println(0);\n\t\t} else {\n\t\t\tSystem.out.println((n / 1000 + 1) * 1000 - n);\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((n / 1000 + 1) * 1000 - n);\n\t\t}", "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", "sc.close()", "sc.close", "sc", "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\n\t\tif (n % 1000 == 0) {\n\t\t\tSystem.out.println(0);\n\t\t} else {\n\t\t\tSystem.out.println((n / 1000 + 1) * 1000 - n);\n\t\t}\n\n\t\tsc.close();\n\t}\n\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\n\t\tif (n % 1000 == 0) {\n\t\t\tSystem.out.println(0);\n\t\t} else {\n\t\t\tSystem.out.println((n / 1000 + 1) * 1000 - n);\n\t\t}\n\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(); if (n % 1000 == 0) { System.out.println(0); } else { System.out.println((n / 1000 + 1) * 1000 - n); } sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 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 ], [ 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 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 22, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 27, 31 ], [ 6, 32 ], [ 32, 33 ], [ 0, 34 ], [ 34, 35 ], [ 34, 36 ] ]
[ "//package beg_173;\nimport java.util.*;\npublic class Main {\n public static void main(String[] args){\n Scanner s = new Scanner(System.in);\n int a = s.nextInt();\n int b = a%1000;\n System.out.println((1000-b)%1000);\n\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args){\n Scanner s = new Scanner(System.in);\n int a = s.nextInt();\n int b = a%1000;\n System.out.println((1000-b)%1000);\n\n }\n}", "Main", "public static void main(String[] args){\n Scanner s = new Scanner(System.in);\n int a = s.nextInt();\n int b = a%1000;\n System.out.println((1000-b)%1000);\n\n }", "main", "{\n Scanner s = new Scanner(System.in);\n int a = s.nextInt();\n int b = a%1000;\n System.out.println((1000-b)%1000);\n\n }", "Scanner s = new Scanner(System.in);", "s", "new Scanner(System.in)", "int a = s.nextInt();", "a", "s.nextInt()", "s.nextInt", "s", "int b = a%1000;", "b", "a%1000", "a", "1000", "System.out.println((1000-b)%1000)", "System.out.println", "System.out", "System", "System.out", "(1000-b)%1000", "(1000-b)", "1000", "b", "1000", "String[] args", "args", "public class Main {\n public static void main(String[] args){\n Scanner s = new Scanner(System.in);\n int a = s.nextInt();\n int b = a%1000;\n System.out.println((1000-b)%1000);\n\n }\n}", "public class Main {\n public static void main(String[] args){\n Scanner s = new Scanner(System.in);\n int a = s.nextInt();\n int b = a%1000;\n System.out.println((1000-b)%1000);\n\n }\n}", "Main" ]
//package beg_173; import java.util.*; public class Main { public static void main(String[] args){ Scanner s = new Scanner(System.in); int a = s.nextInt(); int b = a%1000; System.out.println((1000-b)%1000); } }
[ 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, 17, 2, 13, 17, 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 ], [ 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 ], [ 36, 38 ], [ 38, 39 ], [ 38, 40 ], [ 6, 41 ], [ 41, 42 ], [ 0, 43 ], [ 43, 44 ], [ 43, 45 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint A = sc.nextInt();\n\t\tif (A % 1000 == 0) {\n\t\t\tSystem.out.println(0);\n\t\t} else {\n\t\t\tSystem.out.println(1000 - (A % 1000));\n\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint A = sc.nextInt();\n\t\tif (A % 1000 == 0) {\n\t\t\tSystem.out.println(0);\n\t\t} else {\n\t\t\tSystem.out.println(1000 - (A % 1000));\n\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint A = sc.nextInt();\n\t\tif (A % 1000 == 0) {\n\t\t\tSystem.out.println(0);\n\t\t} else {\n\t\t\tSystem.out.println(1000 - (A % 1000));\n\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint A = sc.nextInt();\n\t\tif (A % 1000 == 0) {\n\t\t\tSystem.out.println(0);\n\t\t} else {\n\t\t\tSystem.out.println(1000 - (A % 1000));\n\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int A = sc.nextInt();", "A", "sc.nextInt()", "sc.nextInt", "sc", "if (A % 1000 == 0) {\n\t\t\tSystem.out.println(0);\n\t\t} else {\n\t\t\tSystem.out.println(1000 - (A % 1000));\n\n\t\t}", "A % 1000 == 0", "A % 1000", "A", "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(1000 - (A % 1000));\n\n\t\t}", "System.out.println(1000 - (A % 1000))", "System.out.println", "System.out", "System", "System.out", "1000 - (A % 1000)", "1000", "(A % 1000)", "A", "1000", "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 A = sc.nextInt();\n\t\tif (A % 1000 == 0) {\n\t\t\tSystem.out.println(0);\n\t\t} else {\n\t\t\tSystem.out.println(1000 - (A % 1000));\n\n\t\t}\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 A = sc.nextInt();\n\t\tif (A % 1000 == 0) {\n\t\t\tSystem.out.println(0);\n\t\t} else {\n\t\t\tSystem.out.println(1000 - (A % 1000));\n\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); if (A % 1000 == 0) { System.out.println(0); } else { System.out.println(1000 - (A % 1000)); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 42, 4, 18, 13, 30, 4, 18, 13, 4, 18, 13, 4, 18, 13, 41, 13, 2, 4, 18, 13, 17, 17, 14, 2, 2, 4, 18, 13, 17, 17, 17, 30, 41, 13, 2, 4, 18, 13, 13, 17, 4, 18, 18, 13, 13, 2, 2, 13, 17, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 81, 8 ], [ 81, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 18, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 23, 26 ], [ 26, 27 ], [ 27, 28 ], [ 26, 29 ], [ 29, 30 ], [ 30, 31 ], [ 11, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 34, 39 ], [ 11, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 42, 47 ], [ 41, 48 ], [ 40, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 52, 57 ], [ 49, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 40, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 9, 78 ], [ 78, 79 ], [ 0, 80 ], [ 80, 81 ], [ 80, 82 ] ]
[ "\nimport java.util.ArrayList;\nimport java.util.Scanner;\n\n\npublic class Main {\npublic static void main (String[] args){\n\n\n\tScanner sc =new Scanner(System.in);\n\tArrayList<Integer> list=new ArrayList<Integer>();\n\n\n\twhile(sc.hasNextLine()) {\n\t\tlist.add(Integer.parseInt(sc.nextLine()));\n\t}\n\t\n\tint thousand=list.get(0)/1000;\n\t\n\tif(list.get(0)%1000!=0) {\n\tint thousands=(int) Math.floor(thousand)+1;\n\n\tSystem.out.print(thousands*1000-list.get(0));\n\t}else {\n\t\tSystem.out.print(0);\n\t}\n}}\n\n", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\npublic static void main (String[] args){\n\n\n\tScanner sc =new Scanner(System.in);\n\tArrayList<Integer> list=new ArrayList<Integer>();\n\n\n\twhile(sc.hasNextLine()) {\n\t\tlist.add(Integer.parseInt(sc.nextLine()));\n\t}\n\t\n\tint thousand=list.get(0)/1000;\n\t\n\tif(list.get(0)%1000!=0) {\n\tint thousands=(int) Math.floor(thousand)+1;\n\n\tSystem.out.print(thousands*1000-list.get(0));\n\t}else {\n\t\tSystem.out.print(0);\n\t}\n}}", "Main", "public static void main (String[] args){\n\n\n\tScanner sc =new Scanner(System.in);\n\tArrayList<Integer> list=new ArrayList<Integer>();\n\n\n\twhile(sc.hasNextLine()) {\n\t\tlist.add(Integer.parseInt(sc.nextLine()));\n\t}\n\t\n\tint thousand=list.get(0)/1000;\n\t\n\tif(list.get(0)%1000!=0) {\n\tint thousands=(int) Math.floor(thousand)+1;\n\n\tSystem.out.print(thousands*1000-list.get(0));\n\t}else {\n\t\tSystem.out.print(0);\n\t}\n}", "main", "{\n\n\n\tScanner sc =new Scanner(System.in);\n\tArrayList<Integer> list=new ArrayList<Integer>();\n\n\n\twhile(sc.hasNextLine()) {\n\t\tlist.add(Integer.parseInt(sc.nextLine()));\n\t}\n\t\n\tint thousand=list.get(0)/1000;\n\t\n\tif(list.get(0)%1000!=0) {\n\tint thousands=(int) Math.floor(thousand)+1;\n\n\tSystem.out.print(thousands*1000-list.get(0));\n\t}else {\n\t\tSystem.out.print(0);\n\t}\n}", "Scanner sc =new Scanner(System.in);", "sc", "new Scanner(System.in)", "ArrayList<Integer> list=new ArrayList<Integer>();", "list", "new ArrayList<Integer>()", "while(sc.hasNextLine()) {\n\t\tlist.add(Integer.parseInt(sc.nextLine()));\n\t}", "sc.hasNextLine()", "sc.hasNextLine", "sc", "{\n\t\tlist.add(Integer.parseInt(sc.nextLine()));\n\t}", "list.add(Integer.parseInt(sc.nextLine()))", "list.add", "list", "Integer.parseInt(sc.nextLine())", "Integer.parseInt", "Integer", "sc.nextLine()", "sc.nextLine", "sc", "int thousand=list.get(0)/1000;", "thousand", "list.get(0)/1000", "list.get(0)", "list.get", "list", "0", "1000", "if(list.get(0)%1000!=0) {\n\tint thousands=(int) Math.floor(thousand)+1;\n\n\tSystem.out.print(thousands*1000-list.get(0));\n\t}else {\n\t\tSystem.out.print(0);\n\t}", "list.get(0)%1000!=0", "list.get(0)%1000", "list.get(0)", "list.get", "list", "0", "1000", "0", "{\n\tint thousands=(int) Math.floor(thousand)+1;\n\n\tSystem.out.print(thousands*1000-list.get(0));\n\t}", "int thousands=(int) Math.floor(thousand)+1;", "thousands", "(int) Math.floor(thousand)+1", "(int) Math.floor(thousand)", "Math.floor", "Math", "thousand", "1", "System.out.print(thousands*1000-list.get(0))", "System.out.print", "System.out", "System", "System.out", "thousands*1000-list.get(0)", "thousands*1000", "thousands", "1000", "list.get(0)", "list.get", "list", "0", "{\n\t\tSystem.out.print(0);\n\t}", "System.out.print(0)", "System.out.print", "System.out", "System", "System.out", "0", "String[] args", "args", "public class Main {\npublic static void main (String[] args){\n\n\n\tScanner sc =new Scanner(System.in);\n\tArrayList<Integer> list=new ArrayList<Integer>();\n\n\n\twhile(sc.hasNextLine()) {\n\t\tlist.add(Integer.parseInt(sc.nextLine()));\n\t}\n\t\n\tint thousand=list.get(0)/1000;\n\t\n\tif(list.get(0)%1000!=0) {\n\tint thousands=(int) Math.floor(thousand)+1;\n\n\tSystem.out.print(thousands*1000-list.get(0));\n\t}else {\n\t\tSystem.out.print(0);\n\t}\n}}", "public class Main {\npublic static void main (String[] args){\n\n\n\tScanner sc =new Scanner(System.in);\n\tArrayList<Integer> list=new ArrayList<Integer>();\n\n\n\twhile(sc.hasNextLine()) {\n\t\tlist.add(Integer.parseInt(sc.nextLine()));\n\t}\n\t\n\tint thousand=list.get(0)/1000;\n\t\n\tif(list.get(0)%1000!=0) {\n\tint thousands=(int) Math.floor(thousand)+1;\n\n\tSystem.out.print(thousands*1000-list.get(0));\n\t}else {\n\t\tSystem.out.print(0);\n\t}\n}}", "Main" ]
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main (String[] args){ Scanner sc =new Scanner(System.in); ArrayList<Integer> list=new ArrayList<Integer>(); while(sc.hasNextLine()) { list.add(Integer.parseInt(sc.nextLine())); } int thousand=list.get(0)/1000; if(list.get(0)%1000!=0) { int thousands=(int) Math.floor(thousand)+1; System.out.print(thousands*1000-list.get(0)); }else { System.out.print(0); } }}
[ 7, 15, 13, 17, 15, 13, 17, 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, 12, 13, 30, 41, 13, 20, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 41, 13, 20, 4, 18, 13, 23, 13, 6, 13, 41, 13, 41, 13, 20, 17, 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, 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, 29, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 40, 17, 23, 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, 4, 13, 42, 4, 13, 13, 0, 13, 4, 13, 41, 13, 20, 42, 40, 4, 13, 13, 30, 4, 18, 13, 13, 0, 13, 4, 13, 29, 4, 18, 13, 12, 13, 30, 41, 13, 4, 13, 42, 4, 13, 13, 0, 13, 4, 13, 41, 13, 20, 42, 40, 4, 13, 13, 30, 4, 18, 13, 13, 0, 13, 4, 13, 29, 4, 18, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 274, 8 ], [ 274, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 11, 17 ], [ 17, 18 ], [ 18, 19 ], [ 17, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 22, 26 ], [ 21, 27 ], [ 20, 28 ], [ 9, 29 ], [ 29, 30 ], [ 9, 31 ], [ 31, 32 ], [ 9, 33 ], [ 33, 34 ], [ 274, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 41, 42 ], [ 41, 43 ], [ 37, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 49, 50 ], [ 49, 51 ], [ 44, 52 ], [ 52, 53 ], [ 53, 54 ], [ 44, 55 ], [ 56, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 37, 60 ], [ 60, 61 ], [ 61, 62 ], [ 35, 63 ], [ 63, 64 ], [ 0, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 65, 69 ], [ 69, 70 ], [ 69, 71 ], [ 65, 73 ], [ 73, 74 ], [ 65, 75 ], [ 75, 76 ], [ 65, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 77, 85 ], [ 85, 86 ], [ 65, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 90, 95 ], [ 95, 96 ], [ 89, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 109, 110 ], [ 105, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 115, 116 ], [ 114, 117 ], [ 101, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 118, 122 ], [ 122, 123 ], [ 123, 124 ], [ 89, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 128, 129 ], [ 65, 130 ], [ 130, 131 ], [ 130, 132 ], [ 132, 133 ], [ 133, 134 ], [ 137, 135 ], [ 147, 136 ], [ 144, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 137, 141 ], [ 141, 142 ], [ 141, 143 ], [ 144, 144 ], [ 144, 145 ], [ 144, 146 ], [ 147, 147 ], [ 147, 148 ], [ 147, 149 ], [ 137, 150 ], [ 150, 151 ], [ 150, 152 ], [ 152, 153 ], [ 130, 154 ], [ 154, 155 ], [ 65, 156 ], [ 156, 157 ], [ 156, 158 ], [ 158, 159 ], [ 159, 160 ], [ 161, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 161, 165 ], [ 165, 166 ], [ 165, 167 ], [ 161, 168 ], [ 168, 169 ], [ 168, 170 ], [ 170, 171 ], [ 156, 172 ], [ 172, 173 ], [ 65, 174 ], [ 174, 175 ], [ 174, 176 ], [ 176, 177 ], [ 177, 178 ], [ 178, 179 ], [ 179, 180 ], [ 178, 181 ], [ 181, 182 ], [ 65, 183 ], [ 183, 184 ], [ 183, 185 ], [ 185, 186 ], [ 186, 187 ], [ 187, 188 ], [ 188, 189 ], [ 187, 190 ], [ 190, 191 ], [ 65, 192 ], [ 192, 193 ], [ 192, 194 ], [ 194, 195 ], [ 195, 196 ], [ 196, 197 ], [ 197, 198 ], [ 196, 199 ], [ 199, 200 ], [ 65, 201 ], [ 201, 202 ], [ 201, 203 ], [ 203, 204 ], [ 204, 205 ], [ 204, 206 ], [ 206, 207 ], [ 203, 208 ], [ 208, 209 ], [ 209, 210 ], [ 209, 211 ], [ 208, 212 ], [ 212, 213 ], [ 212, 214 ], [ 214, 215 ], [ 203, 216 ], [ 216, 217 ], [ 216, 218 ], [ 203, 219 ], [ 219, 220 ], [ 220, 221 ], [ 221, 222 ], [ 221, 223 ], [ 219, 224 ], [ 224, 225 ], [ 225, 226 ], [ 226, 227 ], [ 225, 228 ], [ 224, 229 ], [ 229, 230 ], [ 229, 231 ], [ 231, 232 ], [ 203, 233 ], [ 233, 234 ], [ 234, 235 ], [ 235, 236 ], [ 65, 237 ], [ 237, 238 ], [ 237, 239 ], [ 239, 240 ], [ 240, 241 ], [ 240, 242 ], [ 242, 243 ], [ 239, 244 ], [ 244, 245 ], [ 245, 246 ], [ 245, 247 ], [ 244, 248 ], [ 248, 249 ], [ 248, 250 ], [ 250, 251 ], [ 239, 252 ], [ 252, 253 ], [ 252, 254 ], [ 239, 255 ], [ 255, 256 ], [ 256, 257 ], [ 257, 258 ], [ 257, 259 ], [ 255, 260 ], [ 260, 261 ], [ 261, 262 ], [ 262, 263 ], [ 261, 264 ], [ 260, 265 ], [ 265, 266 ], [ 265, 267 ], [ 267, 268 ], [ 239, 269 ], [ 269, 270 ], [ 270, 271 ], [ 271, 272 ], [ 0, 273 ], [ 273, 274 ], [ 273, 275 ] ]
[ "import java.util.*;\nimport java.io.*;\n\npublic class Main {\n\n\n public Main(FastScanner in, PrintWriter out, int test) {\n int p = in.nextInt();\n out.println((p + 999) / 1000 * 1000 - p);\n }\n\n public static void main(String[] args) {\n PrintWriter out = new PrintWriter(System.out);\n // Scanner in = new Scanner(\n // new BufferedReader(new InputStreamReader(System.in)));\n FastScanner in = new FastScanner(System.in);\n\n // int T = in.nextInt();\n for (int t = 1; t <= 1; t++) {\n Main sol = new Main(in, out, t);\n }\n\n out.close();\n }\n}\n\n\nclass FastScanner{\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n\n public FastScanner(InputStream stream)\n {\n this.stream = stream;\n }\n\n int read()\n {\n if (numChars == -1)\n 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)\n return -1;\n }\n return buf[curChar++];\n }\n\n boolean isSpaceChar(int c)\n {\n return c==' '||c=='\\n'||c=='\\r'||c=='\\t'||c==-1;\n }\n\n boolean isEndline(int c)\n {\n return c=='\\n'||c=='\\r'||c==-1;\n }\n\n int nextInt()\n {\n return Integer.parseInt(next());\n }\n\n long nextLong()\n {\n return Long.parseLong(next());\n }\n\n double nextDouble()\n {\n return Double.parseDouble(next());\n }\n\n String next(){\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do{\n res.appendCodePoint(c);\n c = read();\n }while(!isSpaceChar(c));\n return res.toString();\n }\n\n String nextLine(){\n int c = read();\n while (isEndline(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do{\n res.appendCodePoint(c);\n c = read();\n }while(!isEndline(c));\n return res.toString();\n }\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "public class Main {\n\n\n public Main(FastScanner in, PrintWriter out, int test) {\n int p = in.nextInt();\n out.println((p + 999) / 1000 * 1000 - p);\n }\n\n public static void main(String[] args) {\n PrintWriter out = new PrintWriter(System.out);\n // Scanner in = new Scanner(\n // new BufferedReader(new InputStreamReader(System.in)));\n FastScanner in = new FastScanner(System.in);\n\n // int T = in.nextInt();\n for (int t = 1; t <= 1; t++) {\n Main sol = new Main(in, out, t);\n }\n\n out.close();\n }\n}", "Main", "public Main(FastScanner in, PrintWriter out, int test) {\n int p = in.nextInt();\n out.println((p + 999) / 1000 * 1000 - p);\n }", "Main", "{\n int p = in.nextInt();\n out.println((p + 999) / 1000 * 1000 - p);\n }", "int p = in.nextInt();", "p", "in.nextInt()", "in.nextInt", "in", "out.println((p + 999) / 1000 * 1000 - p)", "out.println", "out", "(p + 999) / 1000 * 1000 - p", "(p + 999) / 1000 * 1000", "(p + 999) / 1000", "(p + 999)", "p", "999", "1000", "1000", "p", "FastScanner in", "in", "PrintWriter out", "out", "int test", "test", "public static void main(String[] args) {\n PrintWriter out = new PrintWriter(System.out);\n // Scanner in = new Scanner(\n // new BufferedReader(new InputStreamReader(System.in)));\n FastScanner in = new FastScanner(System.in);\n\n // int T = in.nextInt();\n for (int t = 1; t <= 1; t++) {\n Main sol = new Main(in, out, t);\n }\n\n out.close();\n }", "main", "{\n PrintWriter out = new PrintWriter(System.out);\n // Scanner in = new Scanner(\n // new BufferedReader(new InputStreamReader(System.in)));\n FastScanner in = new FastScanner(System.in);\n\n // int T = in.nextInt();\n for (int t = 1; t <= 1; t++) {\n Main sol = new Main(in, out, t);\n }\n\n out.close();\n }", "PrintWriter out = new PrintWriter(System.out);", "out", "new PrintWriter(System.out)", "FastScanner in = new FastScanner(System.in);", "in", "new FastScanner(System.in)", "for (int t = 1; t <= 1; t++) {\n Main sol = new Main(in, out, t);\n }", "int t = 1;", "int t = 1;", "t", "1", "t <= 1", "t", "1", "t++", "t++", "t", "{\n Main sol = new Main(in, out, t);\n }", "{\n Main sol = new Main(in, out, t);\n }", "Main sol = new Main(in, out, t);", "sol", "new Main(in, out, t)", "out.close()", "out.close", "out", "String[] args", "args", "class FastScanner{\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n\n public FastScanner(InputStream stream)\n {\n this.stream = stream;\n }\n\n int read()\n {\n if (numChars == -1)\n 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)\n return -1;\n }\n return buf[curChar++];\n }\n\n boolean isSpaceChar(int c)\n {\n return c==' '||c=='\\n'||c=='\\r'||c=='\\t'||c==-1;\n }\n\n boolean isEndline(int c)\n {\n return c=='\\n'||c=='\\r'||c==-1;\n }\n\n int nextInt()\n {\n return Integer.parseInt(next());\n }\n\n long nextLong()\n {\n return Long.parseLong(next());\n }\n\n double nextDouble()\n {\n return Double.parseDouble(next());\n }\n\n String next(){\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do{\n res.appendCodePoint(c);\n c = read();\n }while(!isSpaceChar(c));\n return res.toString();\n }\n\n String nextLine(){\n int c = read();\n while (isEndline(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do{\n res.appendCodePoint(c);\n c = read();\n }while(!isEndline(c));\n return res.toString();\n }\n}", "FastScanner", "private InputStream stream;", "stream", "private byte[] buf = new byte[1024];", "buf", "new byte[1024]", "1024", "private int curChar;", "curChar", "private int numChars;", "numChars", "public FastScanner(InputStream stream)\n {\n this.stream = stream;\n }", "FastScanner", "{\n this.stream = stream;\n }", "this.stream = stream", "this.stream", "this", "this.stream", "stream", "InputStream stream", "stream", "int read()\n {\n if (numChars == -1)\n 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)\n return -1;\n }\n return buf[curChar++];\n }", "read", "{\n if (numChars == -1)\n 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)\n return -1;\n }\n return buf[curChar++];\n }", "if (numChars == -1)\n 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)\n 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)\n 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)\n return -1;", "numChars <= 0", "numChars", "0", "return -1;", "-1", "1", "return buf[curChar++];", "buf[curChar++]", "buf", "curChar++", "curChar", "boolean isSpaceChar(int c)\n {\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", "boolean isEndline(int c)\n {\n return c=='\\n'||c=='\\r'||c==-1;\n }", "isEndline", "{\n return c=='\\n'||c=='\\r'||c==-1;\n }", "return c=='\\n'||c=='\\r'||c==-1;", "c=='\\n'||c=='\\r'||c==-1", "c=='\\n'||c=='\\r'||c==-1", "c=='\\n'", "c", "'\\n'", "c=='\\r'", "c", "'\\r'", "c==-1", "c", "-1", "1", "int c", "c", "int nextInt()\n {\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 {\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 {\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 next(){\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do{\n res.appendCodePoint(c);\n c = read();\n }while(!isSpaceChar(c));\n return res.toString();\n }", "next", "{\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do{\n res.appendCodePoint(c);\n c = read();\n }while(!isSpaceChar(c));\n return res.toString();\n }", "int c = read();", "c", "read()", "read", "while (isSpaceChar(c))\n c = read();", "isSpaceChar(c)", "isSpaceChar", "c", "c = read()", "c", "read()", "read", "StringBuilder res = new StringBuilder();", "res", "new StringBuilder()", "do{\n res.appendCodePoint(c);\n c = read();\n }while(!isSpaceChar(c));", "!isSpaceChar(c)", "isSpaceChar(c)", "isSpaceChar", "c", "{\n res.appendCodePoint(c);\n c = read();\n }", "res.appendCodePoint(c)", "res.appendCodePoint", "res", "c", "c = read()", "c", "read()", "read", "return res.toString();", "res.toString()", "res.toString", "res", "String nextLine(){\n int c = read();\n while (isEndline(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do{\n res.appendCodePoint(c);\n c = read();\n }while(!isEndline(c));\n return res.toString();\n }", "nextLine", "{\n int c = read();\n while (isEndline(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do{\n res.appendCodePoint(c);\n c = read();\n }while(!isEndline(c));\n return res.toString();\n }", "int c = read();", "c", "read()", "read", "while (isEndline(c))\n c = read();", "isEndline(c)", "isEndline", "c", "c = read()", "c", "read()", "read", "StringBuilder res = new StringBuilder();", "res", "new StringBuilder()", "do{\n res.appendCodePoint(c);\n c = read();\n }while(!isEndline(c));", "!isEndline(c)", "isEndline(c)", "isEndline", "c", "{\n res.appendCodePoint(c);\n c = read();\n }", "res.appendCodePoint(c)", "res.appendCodePoint", "res", "c", "c = read()", "c", "read()", "read", "return res.toString();", "res.toString()", "res.toString", "res", "public class Main {\n\n\n public Main(FastScanner in, PrintWriter out, int test) {\n int p = in.nextInt();\n out.println((p + 999) / 1000 * 1000 - p);\n }\n\n public static void main(String[] args) {\n PrintWriter out = new PrintWriter(System.out);\n // Scanner in = new Scanner(\n // new BufferedReader(new InputStreamReader(System.in)));\n FastScanner in = new FastScanner(System.in);\n\n // int T = in.nextInt();\n for (int t = 1; t <= 1; t++) {\n Main sol = new Main(in, out, t);\n }\n\n out.close();\n }\n}", "public class Main {\n\n\n public Main(FastScanner in, PrintWriter out, int test) {\n int p = in.nextInt();\n out.println((p + 999) / 1000 * 1000 - p);\n }\n\n public static void main(String[] args) {\n PrintWriter out = new PrintWriter(System.out);\n // Scanner in = new Scanner(\n // new BufferedReader(new InputStreamReader(System.in)));\n FastScanner in = new FastScanner(System.in);\n\n // int T = in.nextInt();\n for (int t = 1; t <= 1; t++) {\n Main sol = new Main(in, out, t);\n }\n\n out.close();\n }\n}", "Main" ]
import java.util.*; import java.io.*; public class Main { public Main(FastScanner in, PrintWriter out, int test) { int p = in.nextInt(); out.println((p + 999) / 1000 * 1000 - p); } public static void main(String[] args) { PrintWriter out = new PrintWriter(System.out); // Scanner in = new Scanner( // new BufferedReader(new InputStreamReader(System.in))); FastScanner in = new FastScanner(System.in); // int T = in.nextInt(); for (int t = 1; t <= 1; t++) { Main sol = new Main(in, out, t); } out.close(); } } class FastScanner{ private InputStream stream; private byte[] buf = new byte[1024]; private int curChar; private int numChars; public FastScanner(InputStream stream) { this.stream = stream; } 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++]; } boolean isSpaceChar(int c) { return c==' '||c=='\n'||c=='\r'||c=='\t'||c==-1; } boolean isEndline(int c) { return c=='\n'||c=='\r'||c==-1; } int nextInt() { return Integer.parseInt(next()); } long nextLong() { return Long.parseLong(next()); } double nextDouble() { return Double.parseDouble(next()); } String next(){ int c = read(); while (isSpaceChar(c)) c = read(); StringBuilder res = new StringBuilder(); do{ res.appendCodePoint(c); c = read(); }while(!isSpaceChar(c)); return res.toString(); } String nextLine(){ int c = read(); while (isEndline(c)) c = read(); StringBuilder res = new StringBuilder(); do{ res.appendCodePoint(c); c = read(); }while(!isEndline(c)); return res.toString(); } }