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, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 17, 14, 2, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 0, 13, 17, 14, 2, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 0, 13, 17, 14, 2, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 0, 13, 17, 14, 2, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 0, 13, 17, 14, 2, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 0, 13, 17, 14, 2, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 0, 13, 17, 14, 2, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 0, 13, 17, 14, 2, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 29, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 290, 8 ], [ 290, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 11, 22 ], [ 22, 23 ], [ 22, 24 ], [ 11, 25 ], [ 25, 26 ], [ 27, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 28, 32 ], [ 27, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 33, 37 ], [ 27, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 25, 43 ], [ 43, 44 ], [ 43, 45 ], [ 25, 46 ], [ 46, 47 ], [ 48, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 48, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 48, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 46, 64 ], [ 64, 65 ], [ 64, 66 ], [ 46, 67 ], [ 67, 68 ], [ 69, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 69, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 69, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 67, 85 ], [ 85, 86 ], [ 85, 87 ], [ 67, 88 ], [ 88, 89 ], [ 90, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 90, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 90, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 88, 106 ], [ 106, 107 ], [ 106, 108 ], [ 88, 109 ], [ 109, 110 ], [ 111, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 112, 116 ], [ 111, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 117, 121 ], [ 111, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 122, 126 ], [ 109, 127 ], [ 127, 128 ], [ 127, 129 ], [ 109, 130 ], [ 130, 131 ], [ 132, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 133, 137 ], [ 132, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 138, 142 ], [ 132, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 143, 147 ], [ 130, 148 ], [ 148, 149 ], [ 148, 150 ], [ 130, 151 ], [ 151, 152 ], [ 153, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 154, 158 ], [ 153, 159 ], [ 159, 160 ], [ 160, 161 ], [ 160, 162 ], [ 159, 163 ], [ 153, 164 ], [ 164, 165 ], [ 165, 166 ], [ 165, 167 ], [ 164, 168 ], [ 151, 169 ], [ 169, 170 ], [ 169, 171 ], [ 151, 172 ], [ 172, 173 ], [ 174, 174 ], [ 174, 175 ], [ 175, 176 ], [ 176, 177 ], [ 176, 178 ], [ 175, 179 ], [ 174, 180 ], [ 180, 181 ], [ 181, 182 ], [ 181, 183 ], [ 180, 184 ], [ 174, 185 ], [ 185, 186 ], [ 186, 187 ], [ 186, 188 ], [ 185, 189 ], [ 172, 190 ], [ 190, 191 ], [ 190, 192 ], [ 11, 193 ], [ 193, 194 ], [ 194, 195 ], [ 195, 196 ], [ 195, 197 ], [ 193, 198 ], [ 9, 199 ], [ 199, 200 ], [ 290, 201 ], [ 201, 202 ], [ 201, 203 ], [ 203, 204 ], [ 201, 205 ], [ 205, 206 ], [ 201, 207 ], [ 207, 208 ], [ 207, 209 ], [ 209, 210 ], [ 210, 211 ], [ 210, 212 ], [ 201, 213 ], [ 213, 214 ], [ 213, 215 ], [ 215, 216 ], [ 216, 217 ], [ 217, 218 ], [ 218, 219 ], [ 218, 220 ], [ 217, 221 ], [ 221, 222 ], [ 222, 223 ], [ 223, 224 ], [ 216, 225 ], [ 225, 226 ], [ 226, 227 ], [ 227, 228 ], [ 227, 229 ], [ 229, 230 ], [ 230, 231 ], [ 231, 232 ], [ 226, 233 ], [ 233, 234 ], [ 234, 235 ], [ 234, 236 ], [ 215, 237 ], [ 237, 238 ], [ 238, 239 ], [ 239, 240 ], [ 201, 241 ], [ 241, 242 ], [ 241, 243 ], [ 243, 244 ], [ 244, 245 ], [ 245, 246 ], [ 246, 247 ], [ 245, 248 ], [ 248, 249 ], [ 201, 250 ], [ 250, 251 ], [ 250, 252 ], [ 252, 253 ], [ 253, 254 ], [ 254, 255 ], [ 255, 256 ], [ 254, 257 ], [ 257, 258 ], [ 201, 259 ], [ 259, 260 ], [ 259, 261 ], [ 261, 262 ], [ 262, 263 ], [ 263, 264 ], [ 264, 265 ], [ 263, 266 ], [ 266, 267 ], [ 201, 268 ], [ 268, 269 ], [ 268, 270 ], [ 270, 271 ], [ 271, 272 ], [ 271, 273 ], [ 270, 274 ], [ 274, 275 ], [ 275, 276 ], [ 275, 277 ], [ 277, 278 ], [ 278, 279 ], [ 279, 280 ], [ 274, 281 ], [ 281, 282 ], [ 282, 283 ], [ 282, 284 ], [ 284, 285 ], [ 285, 286 ], [ 270, 287 ], [ 287, 288 ], [ 0, 289 ], [ 289, 290 ], [ 289, 291 ] ]
[ "import java.util.*;\nimport java.io.*;\n\npublic class Main {\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n char[] a = sc.nextLine().toCharArray();\n int c = 0;\n if (a[0] == 'S' && a[1] == 'S' && a[2] == 'S')\n c = 0;\n else if (a[0] == 'S' && a[1] == 'S' && a[2] == 'R')\n c = 1;\n else if (a[0] == 'S' && a[1] == 'R' && a[2] == 'S')\n c = 1;\n else if (a[0] == 'R' && a[1] == 'S' && a[2] == 'S')\n c = 1;\n else if (a[0] == 'S' && a[1] == 'R' && a[2] == 'R')\n c = 2;\n else if (a[0] == 'R' && a[1] == 'R' && a[2] == 'S')\n c = 2;\n else if (a[0] == 'R' && a[1] == 'S' && a[2] == 'R')\n c = 1;\n else if (a[0] == 'R' && a[1] == 'R' && a[2] == 'R')\n c = 3;\n System.out.println(c);\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "public class Main {\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n char[] a = sc.nextLine().toCharArray();\n int c = 0;\n if (a[0] == 'S' && a[1] == 'S' && a[2] == 'S')\n c = 0;\n else if (a[0] == 'S' && a[1] == 'S' && a[2] == 'R')\n c = 1;\n else if (a[0] == 'S' && a[1] == 'R' && a[2] == 'S')\n c = 1;\n else if (a[0] == 'R' && a[1] == 'S' && a[2] == 'S')\n c = 1;\n else if (a[0] == 'S' && a[1] == 'R' && a[2] == 'R')\n c = 2;\n else if (a[0] == 'R' && a[1] == 'R' && a[2] == 'S')\n c = 2;\n else if (a[0] == 'R' && a[1] == 'S' && a[2] == 'R')\n c = 1;\n else if (a[0] == 'R' && a[1] == 'R' && a[2] == 'R')\n c = 3;\n System.out.println(c);\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}", "Main", "public static void main(String[] args) {\n FastReader sc = new FastReader();\n char[] a = sc.nextLine().toCharArray();\n int c = 0;\n if (a[0] == 'S' && a[1] == 'S' && a[2] == 'S')\n c = 0;\n else if (a[0] == 'S' && a[1] == 'S' && a[2] == 'R')\n c = 1;\n else if (a[0] == 'S' && a[1] == 'R' && a[2] == 'S')\n c = 1;\n else if (a[0] == 'R' && a[1] == 'S' && a[2] == 'S')\n c = 1;\n else if (a[0] == 'S' && a[1] == 'R' && a[2] == 'R')\n c = 2;\n else if (a[0] == 'R' && a[1] == 'R' && a[2] == 'S')\n c = 2;\n else if (a[0] == 'R' && a[1] == 'S' && a[2] == 'R')\n c = 1;\n else if (a[0] == 'R' && a[1] == 'R' && a[2] == 'R')\n c = 3;\n System.out.println(c);\n }", "main", "{\n FastReader sc = new FastReader();\n char[] a = sc.nextLine().toCharArray();\n int c = 0;\n if (a[0] == 'S' && a[1] == 'S' && a[2] == 'S')\n c = 0;\n else if (a[0] == 'S' && a[1] == 'S' && a[2] == 'R')\n c = 1;\n else if (a[0] == 'S' && a[1] == 'R' && a[2] == 'S')\n c = 1;\n else if (a[0] == 'R' && a[1] == 'S' && a[2] == 'S')\n c = 1;\n else if (a[0] == 'S' && a[1] == 'R' && a[2] == 'R')\n c = 2;\n else if (a[0] == 'R' && a[1] == 'R' && a[2] == 'S')\n c = 2;\n else if (a[0] == 'R' && a[1] == 'S' && a[2] == 'R')\n c = 1;\n else if (a[0] == 'R' && a[1] == 'R' && a[2] == 'R')\n c = 3;\n System.out.println(c);\n }", "FastReader sc = new FastReader();", "sc", "new FastReader()", "char[] a = sc.nextLine().toCharArray();", "a", "sc.nextLine().toCharArray()", "sc.nextLine().toCharArray", "sc.nextLine()", "sc.nextLine", "sc", "int c = 0;", "c", "0", "if (a[0] == 'S' && a[1] == 'S' && a[2] == 'S')\n c = 0;\n else if (a[0] == 'S' && a[1] == 'S' && a[2] == 'R')\n c = 1;\n else if (a[0] == 'S' && a[1] == 'R' && a[2] == 'S')\n c = 1;\n else if (a[0] == 'R' && a[1] == 'S' && a[2] == 'S')\n c = 1;\n else if (a[0] == 'S' && a[1] == 'R' && a[2] == 'R')\n c = 2;\n else if (a[0] == 'R' && a[1] == 'R' && a[2] == 'S')\n c = 2;\n else if (a[0] == 'R' && a[1] == 'S' && a[2] == 'R')\n c = 1;\n else if (a[0] == 'R' && a[1] == 'R' && a[2] == 'R')\n c = 3;", "a[0] == 'S' && a[1] == 'S' && a[2] == 'S'", "a[0] == 'S' && a[1] == 'S' && a[2] == 'S'", "a[0] == 'S'", "a[0]", "a", "0", "'S'", "a[1] == 'S'", "a[1]", "a", "1", "'S'", "a[2] == 'S'", "a[2]", "a", "2", "'S'", "c = 0", "c", "0", "if (a[0] == 'S' && a[1] == 'S' && a[2] == 'R')\n c = 1;\n else if (a[0] == 'S' && a[1] == 'R' && a[2] == 'S')\n c = 1;\n else if (a[0] == 'R' && a[1] == 'S' && a[2] == 'S')\n c = 1;\n else if (a[0] == 'S' && a[1] == 'R' && a[2] == 'R')\n c = 2;\n else if (a[0] == 'R' && a[1] == 'R' && a[2] == 'S')\n c = 2;\n else if (a[0] == 'R' && a[1] == 'S' && a[2] == 'R')\n c = 1;\n else if (a[0] == 'R' && a[1] == 'R' && a[2] == 'R')\n c = 3;", "a[0] == 'S' && a[1] == 'S' && a[2] == 'R'", "a[0] == 'S' && a[1] == 'S' && a[2] == 'R'", "a[0] == 'S'", "a[0]", "a", "0", "'S'", "a[1] == 'S'", "a[1]", "a", "1", "'S'", "a[2] == 'R'", "a[2]", "a", "2", "'R'", "c = 1", "c", "1", "if (a[0] == 'S' && a[1] == 'R' && a[2] == 'S')\n c = 1;\n else if (a[0] == 'R' && a[1] == 'S' && a[2] == 'S')\n c = 1;\n else if (a[0] == 'S' && a[1] == 'R' && a[2] == 'R')\n c = 2;\n else if (a[0] == 'R' && a[1] == 'R' && a[2] == 'S')\n c = 2;\n else if (a[0] == 'R' && a[1] == 'S' && a[2] == 'R')\n c = 1;\n else if (a[0] == 'R' && a[1] == 'R' && a[2] == 'R')\n c = 3;", "a[0] == 'S' && a[1] == 'R' && a[2] == 'S'", "a[0] == 'S' && a[1] == 'R' && a[2] == 'S'", "a[0] == 'S'", "a[0]", "a", "0", "'S'", "a[1] == 'R'", "a[1]", "a", "1", "'R'", "a[2] == 'S'", "a[2]", "a", "2", "'S'", "c = 1", "c", "1", "if (a[0] == 'R' && a[1] == 'S' && a[2] == 'S')\n c = 1;\n else if (a[0] == 'S' && a[1] == 'R' && a[2] == 'R')\n c = 2;\n else if (a[0] == 'R' && a[1] == 'R' && a[2] == 'S')\n c = 2;\n else if (a[0] == 'R' && a[1] == 'S' && a[2] == 'R')\n c = 1;\n else if (a[0] == 'R' && a[1] == 'R' && a[2] == 'R')\n c = 3;", "a[0] == 'R' && a[1] == 'S' && a[2] == 'S'", "a[0] == 'R' && a[1] == 'S' && a[2] == 'S'", "a[0] == 'R'", "a[0]", "a", "0", "'R'", "a[1] == 'S'", "a[1]", "a", "1", "'S'", "a[2] == 'S'", "a[2]", "a", "2", "'S'", "c = 1", "c", "1", "if (a[0] == 'S' && a[1] == 'R' && a[2] == 'R')\n c = 2;\n else if (a[0] == 'R' && a[1] == 'R' && a[2] == 'S')\n c = 2;\n else if (a[0] == 'R' && a[1] == 'S' && a[2] == 'R')\n c = 1;\n else if (a[0] == 'R' && a[1] == 'R' && a[2] == 'R')\n c = 3;", "a[0] == 'S' && a[1] == 'R' && a[2] == 'R'", "a[0] == 'S' && a[1] == 'R' && a[2] == 'R'", "a[0] == 'S'", "a[0]", "a", "0", "'S'", "a[1] == 'R'", "a[1]", "a", "1", "'R'", "a[2] == 'R'", "a[2]", "a", "2", "'R'", "c = 2", "c", "2", "if (a[0] == 'R' && a[1] == 'R' && a[2] == 'S')\n c = 2;\n else if (a[0] == 'R' && a[1] == 'S' && a[2] == 'R')\n c = 1;\n else if (a[0] == 'R' && a[1] == 'R' && a[2] == 'R')\n c = 3;", "a[0] == 'R' && a[1] == 'R' && a[2] == 'S'", "a[0] == 'R' && a[1] == 'R' && a[2] == 'S'", "a[0] == 'R'", "a[0]", "a", "0", "'R'", "a[1] == 'R'", "a[1]", "a", "1", "'R'", "a[2] == 'S'", "a[2]", "a", "2", "'S'", "c = 2", "c", "2", "if (a[0] == 'R' && a[1] == 'S' && a[2] == 'R')\n c = 1;\n else if (a[0] == 'R' && a[1] == 'R' && a[2] == 'R')\n c = 3;", "a[0] == 'R' && a[1] == 'S' && a[2] == 'R'", "a[0] == 'R' && a[1] == 'S' && a[2] == 'R'", "a[0] == 'R'", "a[0]", "a", "0", "'R'", "a[1] == 'S'", "a[1]", "a", "1", "'S'", "a[2] == 'R'", "a[2]", "a", "2", "'R'", "c = 1", "c", "1", "if (a[0] == 'R' && a[1] == 'R' && a[2] == 'R')\n c = 3;", "a[0] == 'R' && a[1] == 'R' && a[2] == 'R'", "a[0] == 'R' && a[1] == 'R' && a[2] == 'R'", "a[0] == 'R'", "a[0]", "a", "0", "'R'", "a[1] == 'R'", "a[1]", "a", "1", "'R'", "a[2] == 'R'", "a[2]", "a", "2", "'R'", "c = 3", "c", "3", "System.out.println(c)", "System.out.println", "System.out", "System", "System.out", "c", "String[] args", "args", "static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }", "FastReader", "BufferedReader br;", "br", "StringTokenizer st;", "st", "public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }", "FastReader", "{\n br = new BufferedReader(new InputStreamReader(System.in));\n }", "br = new BufferedReader(new InputStreamReader(System.in))", "br", "new BufferedReader(new InputStreamReader(System.in))", "String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }", "next", "{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }", "while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "st == null || !st.hasMoreElements()", "st == null", "st", "null", "!st.hasMoreElements()", "st.hasMoreElements()", "st.hasMoreElements", "st", "{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "int nextInt() {\n return Integer.parseInt(next());\n }", "nextInt", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "long nextLong() {\n return Long.parseLong(next());\n }", "nextLong", "{\n return Long.parseLong(next());\n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "double nextDouble() {\n return Double.parseDouble(next());\n }", "nextDouble", "{\n return Double.parseDouble(next());\n }", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }", "nextLine", "{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }", "String str = \"\";", "str", "\"\"", "try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n str = br.readLine();\n }", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "return str;", "str", "public class Main {\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n char[] a = sc.nextLine().toCharArray();\n int c = 0;\n if (a[0] == 'S' && a[1] == 'S' && a[2] == 'S')\n c = 0;\n else if (a[0] == 'S' && a[1] == 'S' && a[2] == 'R')\n c = 1;\n else if (a[0] == 'S' && a[1] == 'R' && a[2] == 'S')\n c = 1;\n else if (a[0] == 'R' && a[1] == 'S' && a[2] == 'S')\n c = 1;\n else if (a[0] == 'S' && a[1] == 'R' && a[2] == 'R')\n c = 2;\n else if (a[0] == 'R' && a[1] == 'R' && a[2] == 'S')\n c = 2;\n else if (a[0] == 'R' && a[1] == 'S' && a[2] == 'R')\n c = 1;\n else if (a[0] == 'R' && a[1] == 'R' && a[2] == 'R')\n c = 3;\n System.out.println(c);\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n char[] a = sc.nextLine().toCharArray();\n int c = 0;\n if (a[0] == 'S' && a[1] == 'S' && a[2] == 'S')\n c = 0;\n else if (a[0] == 'S' && a[1] == 'S' && a[2] == 'R')\n c = 1;\n else if (a[0] == 'S' && a[1] == 'R' && a[2] == 'S')\n c = 1;\n else if (a[0] == 'R' && a[1] == 'S' && a[2] == 'S')\n c = 1;\n else if (a[0] == 'S' && a[1] == 'R' && a[2] == 'R')\n c = 2;\n else if (a[0] == 'R' && a[1] == 'R' && a[2] == 'S')\n c = 2;\n else if (a[0] == 'R' && a[1] == 'S' && a[2] == 'R')\n c = 1;\n else if (a[0] == 'R' && a[1] == 'R' && a[2] == 'R')\n c = 3;\n System.out.println(c);\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}", "Main" ]
import java.util.*; import java.io.*; public class Main { public static void main(String[] args) { FastReader sc = new FastReader(); char[] a = sc.nextLine().toCharArray(); int c = 0; if (a[0] == 'S' && a[1] == 'S' && a[2] == 'S') c = 0; else if (a[0] == 'S' && a[1] == 'S' && a[2] == 'R') c = 1; else if (a[0] == 'S' && a[1] == 'R' && a[2] == 'S') c = 1; else if (a[0] == 'R' && a[1] == 'S' && a[2] == 'S') c = 1; else if (a[0] == 'S' && a[1] == 'R' && a[2] == 'R') c = 2; else if (a[0] == 'R' && a[1] == 'R' && a[2] == 'S') c = 2; else if (a[0] == 'R' && a[1] == 'S' && a[2] == 'R') c = 1; else if (a[0] == 'R' && a[1] == 'R' && a[2] == 'R') c = 3; System.out.println(c); } static class FastReader { BufferedReader br; StringTokenizer st; public FastReader() { br = new BufferedReader(new InputStreamReader(System.in)); } String next() { while (st == null || !st.hasMoreElements()) { try { st = new StringTokenizer(br.readLine()); } catch (IOException e) { e.printStackTrace(); } } return st.nextToken(); } int nextInt() { return Integer.parseInt(next()); } long nextLong() { return Long.parseLong(next()); } double nextDouble() { return Double.parseDouble(next()); } String nextLine() { String str = ""; try { str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } return str; } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 17, 30, 40, 13, 30, 14, 2, 13, 13, 30, 0, 13, 13, 0, 13, 17, 30, 0, 13, 17, 14, 2, 13, 13, 30, 4, 18, 18, 13, 13, 13, 30, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 89, 5 ], [ 89, 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 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 8, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 28, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 35, 37 ], [ 28, 38 ], [ 38, 39 ], [ 39, 40 ], [ 28, 41 ], [ 42, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 43, 49 ], [ 49, 50 ], [ 50, 51 ], [ 43, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 61, 63 ], [ 53, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 8, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 68, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 6, 86 ], [ 86, 87 ], [ 0, 88 ], [ 88, 89 ], [ 88, 90 ] ]
[ "import java.util.*;\npublic class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.nextLine();\n\t\tchar arr[] = S.toCharArray();\n\t\tint r = 0;//2\n\t\tint max = 0;\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tif(arr[i]=='R') {\n\t\t\t\tr++;\n\t\t\t}else {\n\t\t\t\tif (max<r) {\n\t\t\t\t\tmax = r;\n\t\t\t\t\tr = 0;\n\t\t\t\t}else {\n\t\t\t\t\tr = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (max<r) {\n\t\t\tSystem.out.println(r);\n\t\t}else {\n\t\tSystem.out.println(max);\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\tString S = sc.nextLine();\n\t\tchar arr[] = S.toCharArray();\n\t\tint r = 0;//2\n\t\tint max = 0;\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tif(arr[i]=='R') {\n\t\t\t\tr++;\n\t\t\t}else {\n\t\t\t\tif (max<r) {\n\t\t\t\t\tmax = r;\n\t\t\t\t\tr = 0;\n\t\t\t\t}else {\n\t\t\t\t\tr = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (max<r) {\n\t\t\tSystem.out.println(r);\n\t\t}else {\n\t\tSystem.out.println(max);\n\t\t}\n\t}\n}", "Main", "public static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.nextLine();\n\t\tchar arr[] = S.toCharArray();\n\t\tint r = 0;//2\n\t\tint max = 0;\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tif(arr[i]=='R') {\n\t\t\t\tr++;\n\t\t\t}else {\n\t\t\t\tif (max<r) {\n\t\t\t\t\tmax = r;\n\t\t\t\t\tr = 0;\n\t\t\t\t}else {\n\t\t\t\t\tr = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (max<r) {\n\t\t\tSystem.out.println(r);\n\t\t}else {\n\t\tSystem.out.println(max);\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.nextLine();\n\t\tchar arr[] = S.toCharArray();\n\t\tint r = 0;//2\n\t\tint max = 0;\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tif(arr[i]=='R') {\n\t\t\t\tr++;\n\t\t\t}else {\n\t\t\t\tif (max<r) {\n\t\t\t\t\tmax = r;\n\t\t\t\t\tr = 0;\n\t\t\t\t}else {\n\t\t\t\t\tr = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (max<r) {\n\t\t\tSystem.out.println(r);\n\t\t}else {\n\t\tSystem.out.println(max);\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String S = sc.nextLine();", "S", "sc.nextLine()", "sc.nextLine", "sc", "char arr[] = S.toCharArray();", "arr", "S.toCharArray()", "S.toCharArray", "S", "int r = 0;", "r", "0", "int max = 0;", "max", "0", "for (int i = 0; i < arr.length; i++) {\n\t\t\tif(arr[i]=='R') {\n\t\t\t\tr++;\n\t\t\t}else {\n\t\t\t\tif (max<r) {\n\t\t\t\t\tmax = r;\n\t\t\t\t\tr = 0;\n\t\t\t\t}else {\n\t\t\t\t\tr = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < arr.length", "i", "arr.length", "arr", "arr.length", "i++", "i++", "i", "{\n\t\t\tif(arr[i]=='R') {\n\t\t\t\tr++;\n\t\t\t}else {\n\t\t\t\tif (max<r) {\n\t\t\t\t\tmax = r;\n\t\t\t\t\tr = 0;\n\t\t\t\t}else {\n\t\t\t\t\tr = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "{\n\t\t\tif(arr[i]=='R') {\n\t\t\t\tr++;\n\t\t\t}else {\n\t\t\t\tif (max<r) {\n\t\t\t\t\tmax = r;\n\t\t\t\t\tr = 0;\n\t\t\t\t}else {\n\t\t\t\t\tr = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "if(arr[i]=='R') {\n\t\t\t\tr++;\n\t\t\t}else {\n\t\t\t\tif (max<r) {\n\t\t\t\t\tmax = r;\n\t\t\t\t\tr = 0;\n\t\t\t\t}else {\n\t\t\t\t\tr = 0;\n\t\t\t\t}\n\t\t\t}", "arr[i]=='R'", "arr[i]", "arr", "i", "'R'", "{\n\t\t\t\tr++;\n\t\t\t}", "r++", "r", "{\n\t\t\t\tif (max<r) {\n\t\t\t\t\tmax = r;\n\t\t\t\t\tr = 0;\n\t\t\t\t}else {\n\t\t\t\t\tr = 0;\n\t\t\t\t}\n\t\t\t}", "if (max<r) {\n\t\t\t\t\tmax = r;\n\t\t\t\t\tr = 0;\n\t\t\t\t}else {\n\t\t\t\t\tr = 0;\n\t\t\t\t}", "max<r", "max", "r", "{\n\t\t\t\t\tmax = r;\n\t\t\t\t\tr = 0;\n\t\t\t\t}", "max = r", "max", "r", "r = 0", "r", "0", "{\n\t\t\t\t\tr = 0;\n\t\t\t\t}", "r = 0", "r", "0", "if (max<r) {\n\t\t\tSystem.out.println(r);\n\t\t}else {\n\t\tSystem.out.println(max);\n\t\t}", "max<r", "max", "r", "{\n\t\t\tSystem.out.println(r);\n\t\t}", "System.out.println(r)", "System.out.println", "System.out", "System", "System.out", "r", "{\n\t\tSystem.out.println(max);\n\t\t}", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String args[]", "args", "public class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.nextLine();\n\t\tchar arr[] = S.toCharArray();\n\t\tint r = 0;//2\n\t\tint max = 0;\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tif(arr[i]=='R') {\n\t\t\t\tr++;\n\t\t\t}else {\n\t\t\t\tif (max<r) {\n\t\t\t\t\tmax = r;\n\t\t\t\t\tr = 0;\n\t\t\t\t}else {\n\t\t\t\t\tr = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (max<r) {\n\t\t\tSystem.out.println(r);\n\t\t}else {\n\t\tSystem.out.println(max);\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\tString S = sc.nextLine();\n\t\tchar arr[] = S.toCharArray();\n\t\tint r = 0;//2\n\t\tint max = 0;\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tif(arr[i]=='R') {\n\t\t\t\tr++;\n\t\t\t}else {\n\t\t\t\tif (max<r) {\n\t\t\t\t\tmax = r;\n\t\t\t\t\tr = 0;\n\t\t\t\t}else {\n\t\t\t\t\tr = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (max<r) {\n\t\t\tSystem.out.println(r);\n\t\t}else {\n\t\tSystem.out.println(max);\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); String S = sc.nextLine(); char arr[] = S.toCharArray(); int r = 0;//2 int max = 0; for (int i = 0; i < arr.length; i++) { if(arr[i]=='R') { r++; }else { if (max<r) { max = r; r = 0; }else { r = 0; } } } if (max<r) { System.out.println(r); }else { System.out.println(max); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 17, 28, 13, 4, 18, 4, 18, 13, 30, 30, 0, 13, 8, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 17, 13, 14, 2, 2, 13, 17, 2, 13, 17, 40, 13, 0, 13, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 12, 13, 30, 4, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 73, 5 ], [ 73, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 18, 25 ], [ 26, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 31, 35 ], [ 35, 36 ], [ 35, 37 ], [ 30, 38 ], [ 38, 39 ], [ 38, 40 ], [ 29, 41 ], [ 29, 42 ], [ 26, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 48, 49 ], [ 48, 50 ], [ 43, 51 ], [ 51, 52 ], [ 26, 53 ], [ 53, 54 ], [ 53, 55 ], [ 8, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 8, 62 ], [ 62, 63 ], [ 63, 64 ], [ 73, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 65, 70 ], [ 70, 71 ], [ 0, 72 ], [ 72, 73 ], [ 72, 74 ] ]
[ "import java.util.*;\n// warm-up\npublic class Main {\n\n\tstatic void solve() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n=0;\n\t\tchar p='.';\n\t\tfor (char ch : sc.next().toCharArray()) {\n\t\t\tn=((p=='.'||p=='S') && ch=='R') ? 1 : n;\n\t\t\tif (ch=='R' && p=='R') n++;\n\t\t\tp=ch;\n\t\t}\n\t\tSystem.out.println(n);\n\t\tsc.close();\t\n\t}\n\n\tpublic static void main(String args[]) {\n\t\tsolve();\n\t}\n\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\n\tstatic void solve() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n=0;\n\t\tchar p='.';\n\t\tfor (char ch : sc.next().toCharArray()) {\n\t\t\tn=((p=='.'||p=='S') && ch=='R') ? 1 : n;\n\t\t\tif (ch=='R' && p=='R') n++;\n\t\t\tp=ch;\n\t\t}\n\t\tSystem.out.println(n);\n\t\tsc.close();\t\n\t}\n\n\tpublic static void main(String args[]) {\n\t\tsolve();\n\t}\n\n}", "Main", "static void solve() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n=0;\n\t\tchar p='.';\n\t\tfor (char ch : sc.next().toCharArray()) {\n\t\t\tn=((p=='.'||p=='S') && ch=='R') ? 1 : n;\n\t\t\tif (ch=='R' && p=='R') n++;\n\t\t\tp=ch;\n\t\t}\n\t\tSystem.out.println(n);\n\t\tsc.close();\t\n\t}", "solve", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n=0;\n\t\tchar p='.';\n\t\tfor (char ch : sc.next().toCharArray()) {\n\t\t\tn=((p=='.'||p=='S') && ch=='R') ? 1 : n;\n\t\t\tif (ch=='R' && p=='R') n++;\n\t\t\tp=ch;\n\t\t}\n\t\tSystem.out.println(n);\n\t\tsc.close();\t\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n=0;", "n", "0", "char p='.';", "p", "'.'", "for (char ch : sc.next().toCharArray()) {\n\t\t\tn=((p=='.'||p=='S') && ch=='R') ? 1 : n;\n\t\t\tif (ch=='R' && p=='R') n++;\n\t\t\tp=ch;\n\t\t}", "char ch", "sc.next().toCharArray()", "sc.next().toCharArray", "sc.next()", "sc.next", "sc", "{\n\t\t\tn=((p=='.'||p=='S') && ch=='R') ? 1 : n;\n\t\t\tif (ch=='R' && p=='R') n++;\n\t\t\tp=ch;\n\t\t}", "{\n\t\t\tn=((p=='.'||p=='S') && ch=='R') ? 1 : n;\n\t\t\tif (ch=='R' && p=='R') n++;\n\t\t\tp=ch;\n\t\t}", "n=((p=='.'||p=='S') && ch=='R') ? 1 : n", "n", "((p=='.'||p=='S') && ch=='R') ? 1 : n", "((p=='.'||p=='S') && ch=='R')", "(p=='.'||p=='S')", "p=='.'", "p", "'.'", "p=='S'", "p", "'S'", "ch=='R'", "ch", "'R'", "1", "n", "if (ch=='R' && p=='R') n++;", "ch=='R' && p=='R'", "ch=='R'", "ch", "'R'", "p=='R'", "p", "'R'", "n++", "n", "p=ch", "p", "ch", "System.out.println(n)", "System.out.println", "System.out", "System", "System.out", "n", "sc.close()", "sc.close", "sc", "public static void main(String args[]) {\n\t\tsolve();\n\t}", "main", "{\n\t\tsolve();\n\t}", "solve()", "solve", "String args[]", "args", "public class Main {\n\n\tstatic void solve() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n=0;\n\t\tchar p='.';\n\t\tfor (char ch : sc.next().toCharArray()) {\n\t\t\tn=((p=='.'||p=='S') && ch=='R') ? 1 : n;\n\t\t\tif (ch=='R' && p=='R') n++;\n\t\t\tp=ch;\n\t\t}\n\t\tSystem.out.println(n);\n\t\tsc.close();\t\n\t}\n\n\tpublic static void main(String args[]) {\n\t\tsolve();\n\t}\n\n}", "public class Main {\n\n\tstatic void solve() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n=0;\n\t\tchar p='.';\n\t\tfor (char ch : sc.next().toCharArray()) {\n\t\t\tn=((p=='.'||p=='S') && ch=='R') ? 1 : n;\n\t\t\tif (ch=='R' && p=='R') n++;\n\t\t\tp=ch;\n\t\t}\n\t\tSystem.out.println(n);\n\t\tsc.close();\t\n\t}\n\n\tpublic static void main(String args[]) {\n\t\tsolve();\n\t}\n\n}", "Main" ]
import java.util.*; // warm-up public class Main { static void solve() { Scanner sc = new Scanner(System.in); int n=0; char p='.'; for (char ch : sc.next().toCharArray()) { n=((p=='.'||p=='S') && ch=='R') ? 1 : n; if (ch=='R' && p=='R') n++; p=ch; } System.out.println(n); sc.close(); } public static void main(String args[]) { solve(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 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 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 20, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 32, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 32, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 44, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 50, 55 ], [ 44, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 6, 63 ], [ 63, 64 ] ]
[ "import java.util.Scanner;\n\nclass Main{\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n String str = sc.next();\n sc.close();\n\n if(str.equals(\"RRR\")){\n System.out.println(\"3\");\n }\n else if(str.contains(\"RR\")){\n System.out.println(\"2\");\n }\n else if(str.contains(\"R\")){\n System.out.println(\"1\");\n }\n else{\n System.out.println(\"0\");\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n String str = sc.next();\n sc.close();\n\n if(str.equals(\"RRR\")){\n System.out.println(\"3\");\n }\n else if(str.contains(\"RR\")){\n System.out.println(\"2\");\n }\n else if(str.contains(\"R\")){\n System.out.println(\"1\");\n }\n else{\n System.out.println(\"0\");\n }\n }\n}", "Main", "public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n String str = sc.next();\n sc.close();\n\n if(str.equals(\"RRR\")){\n System.out.println(\"3\");\n }\n else if(str.contains(\"RR\")){\n System.out.println(\"2\");\n }\n else if(str.contains(\"R\")){\n System.out.println(\"1\");\n }\n else{\n System.out.println(\"0\");\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String str = sc.next();\n sc.close();\n\n if(str.equals(\"RRR\")){\n System.out.println(\"3\");\n }\n else if(str.contains(\"RR\")){\n System.out.println(\"2\");\n }\n else if(str.contains(\"R\")){\n System.out.println(\"1\");\n }\n else{\n System.out.println(\"0\");\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String str = sc.next();", "str", "sc.next()", "sc.next", "sc", "sc.close()", "sc.close", "sc", "if(str.equals(\"RRR\")){\n System.out.println(\"3\");\n }\n else if(str.contains(\"RR\")){\n System.out.println(\"2\");\n }\n else if(str.contains(\"R\")){\n System.out.println(\"1\");\n }\n else{\n System.out.println(\"0\");\n }", "str.equals(\"RRR\")", "str.equals", "str", "\"RRR\"", "{\n System.out.println(\"3\");\n }", "System.out.println(\"3\")", "System.out.println", "System.out", "System", "System.out", "\"3\"", "if(str.contains(\"RR\")){\n System.out.println(\"2\");\n }\n else if(str.contains(\"R\")){\n System.out.println(\"1\");\n }\n else{\n System.out.println(\"0\");\n }", "str.contains(\"RR\")", "str.contains", "str", "\"RR\"", "{\n System.out.println(\"2\");\n }", "System.out.println(\"2\")", "System.out.println", "System.out", "System", "System.out", "\"2\"", "if(str.contains(\"R\")){\n System.out.println(\"1\");\n }\n else{\n System.out.println(\"0\");\n }", "str.contains(\"R\")", "str.contains", "str", "\"R\"", "{\n System.out.println(\"1\");\n }", "System.out.println(\"1\")", "System.out.println", "System.out", "System", "System.out", "\"1\"", "{\n System.out.println(\"0\");\n }", "System.out.println(\"0\")", "System.out.println", "System.out", "System", "System.out", "\"0\"", "String args[]", "args" ]
import java.util.Scanner; class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); String str = sc.next(); sc.close(); if(str.equals("RRR")){ System.out.println("3"); } else if(str.contains("RR")){ System.out.println("2"); } else if(str.contains("R")){ System.out.println("1"); } else{ System.out.println("0"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 17, 30, 40, 13, 14, 2, 13, 13, 30, 0, 13, 13, 30, 14, 2, 13, 13, 30, 0, 13, 13, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 78, 5 ], [ 78, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 27, 28 ], [ 27, 29 ], [ 22, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 32, 34 ], [ 22, 35 ], [ 35, 36 ], [ 36, 37 ], [ 22, 38 ], [ 39, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 40, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 40, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 57, 66 ], [ 66, 67 ], [ 66, 68 ], [ 8, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 6, 75 ], [ 75, 76 ], [ 0, 77 ], [ 77, 78 ], [ 77, 79 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String... args) {\n Scanner scanner = new Scanner(System.in);\n\n char[] S = scanner.next().toCharArray();\n\n // 真面目に書く\n int maxCount = 0;\n for (int i = 0, currentCnt = 0; i < S.length; i++) {\n if (S[i] == 'R') {\n currentCnt++;\n\n if (maxCount < currentCnt) {\n maxCount = currentCnt;\n }\n } else {\n if (maxCount < currentCnt) {\n maxCount = currentCnt;\n }\n currentCnt = 0;\n }\n }\n\n System.out.println(maxCount);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String... args) {\n Scanner scanner = new Scanner(System.in);\n\n char[] S = scanner.next().toCharArray();\n\n // 真面目に書く\n int maxCount = 0;\n for (int i = 0, currentCnt = 0; i < S.length; i++) {\n if (S[i] == 'R') {\n currentCnt++;\n\n if (maxCount < currentCnt) {\n maxCount = currentCnt;\n }\n } else {\n if (maxCount < currentCnt) {\n maxCount = currentCnt;\n }\n currentCnt = 0;\n }\n }\n\n System.out.println(maxCount);\n }\n}", "Main", "public static void main(String... args) {\n Scanner scanner = new Scanner(System.in);\n\n char[] S = scanner.next().toCharArray();\n\n // 真面目に書く\n int maxCount = 0;\n for (int i = 0, currentCnt = 0; i < S.length; i++) {\n if (S[i] == 'R') {\n currentCnt++;\n\n if (maxCount < currentCnt) {\n maxCount = currentCnt;\n }\n } else {\n if (maxCount < currentCnt) {\n maxCount = currentCnt;\n }\n currentCnt = 0;\n }\n }\n\n System.out.println(maxCount);\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n\n char[] S = scanner.next().toCharArray();\n\n // 真面目に書く\n int maxCount = 0;\n for (int i = 0, currentCnt = 0; i < S.length; i++) {\n if (S[i] == 'R') {\n currentCnt++;\n\n if (maxCount < currentCnt) {\n maxCount = currentCnt;\n }\n } else {\n if (maxCount < currentCnt) {\n maxCount = currentCnt;\n }\n currentCnt = 0;\n }\n }\n\n System.out.println(maxCount);\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "char[] S = scanner.next().toCharArray();", "S", "scanner.next().toCharArray()", "scanner.next().toCharArray", "scanner.next()", "scanner.next", "scanner", "int maxCount = 0;", "maxCount", "0", "for (int i = 0, currentCnt = 0; i < S.length; i++) {\n if (S[i] == 'R') {\n currentCnt++;\n\n if (maxCount < currentCnt) {\n maxCount = currentCnt;\n }\n } else {\n if (maxCount < currentCnt) {\n maxCount = currentCnt;\n }\n currentCnt = 0;\n }\n }", "int i = 0, currentCnt = 0;", "int i = 0", "i", "0", "currentCnt = 0;", "currentCnt", "0", "i < S.length", "i", "S.length", "S", "S.length", "i++", "i++", "i", "{\n if (S[i] == 'R') {\n currentCnt++;\n\n if (maxCount < currentCnt) {\n maxCount = currentCnt;\n }\n } else {\n if (maxCount < currentCnt) {\n maxCount = currentCnt;\n }\n currentCnt = 0;\n }\n }", "{\n if (S[i] == 'R') {\n currentCnt++;\n\n if (maxCount < currentCnt) {\n maxCount = currentCnt;\n }\n } else {\n if (maxCount < currentCnt) {\n maxCount = currentCnt;\n }\n currentCnt = 0;\n }\n }", "if (S[i] == 'R') {\n currentCnt++;\n\n if (maxCount < currentCnt) {\n maxCount = currentCnt;\n }\n } else {\n if (maxCount < currentCnt) {\n maxCount = currentCnt;\n }\n currentCnt = 0;\n }", "S[i] == 'R'", "S[i]", "S", "i", "'R'", "{\n currentCnt++;\n\n if (maxCount < currentCnt) {\n maxCount = currentCnt;\n }\n }", "currentCnt++", "currentCnt", "if (maxCount < currentCnt) {\n maxCount = currentCnt;\n }", "maxCount < currentCnt", "maxCount", "currentCnt", "{\n maxCount = currentCnt;\n }", "maxCount = currentCnt", "maxCount", "currentCnt", "{\n if (maxCount < currentCnt) {\n maxCount = currentCnt;\n }\n currentCnt = 0;\n }", "if (maxCount < currentCnt) {\n maxCount = currentCnt;\n }", "maxCount < currentCnt", "maxCount", "currentCnt", "{\n maxCount = currentCnt;\n }", "maxCount = currentCnt", "maxCount", "currentCnt", "currentCnt = 0", "currentCnt", "0", "System.out.println(maxCount)", "System.out.println", "System.out", "System", "System.out", "maxCount", "String... args", "args", "public class Main {\n public static void main(String... args) {\n Scanner scanner = new Scanner(System.in);\n\n char[] S = scanner.next().toCharArray();\n\n // 真面目に書く\n int maxCount = 0;\n for (int i = 0, currentCnt = 0; i < S.length; i++) {\n if (S[i] == 'R') {\n currentCnt++;\n\n if (maxCount < currentCnt) {\n maxCount = currentCnt;\n }\n } else {\n if (maxCount < currentCnt) {\n maxCount = currentCnt;\n }\n currentCnt = 0;\n }\n }\n\n System.out.println(maxCount);\n }\n}", "public class Main {\n public static void main(String... args) {\n Scanner scanner = new Scanner(System.in);\n\n char[] S = scanner.next().toCharArray();\n\n // 真面目に書く\n int maxCount = 0;\n for (int i = 0, currentCnt = 0; i < S.length; i++) {\n if (S[i] == 'R') {\n currentCnt++;\n\n if (maxCount < currentCnt) {\n maxCount = currentCnt;\n }\n } else {\n if (maxCount < currentCnt) {\n maxCount = currentCnt;\n }\n currentCnt = 0;\n }\n }\n\n System.out.println(maxCount);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String... args) { Scanner scanner = new Scanner(System.in); char[] S = scanner.next().toCharArray(); // 真面目に書く int maxCount = 0; for (int i = 0, currentCnt = 0; i < S.length; i++) { if (S[i] == 'R') { currentCnt++; if (maxCount < currentCnt) { maxCount = currentCnt; } } else { if (maxCount < currentCnt) { maxCount = currentCnt; } currentCnt = 0; } } System.out.println(maxCount); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 0, 13, 4, 18, 13, 14, 2, 2, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 2, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 4, 18, 18, 13, 13, 17, 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 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 128, 11 ], [ 128, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 14, 22 ], [ 22, 23 ], [ 14, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 14, 31 ], [ 31, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 34, 39 ], [ 33, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 40, 45 ], [ 33, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 46, 51 ], [ 31, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 31, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 61, 66 ], [ 60, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 67, 72 ], [ 59, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 74, 79 ], [ 73, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 80, 85 ], [ 58, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 58, 92 ], [ 92, 93 ], [ 94, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 95, 100 ], [ 94, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 102, 105 ], [ 101, 106 ], [ 94, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 108, 111 ], [ 107, 112 ], [ 92, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 113, 118 ], [ 92, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 119, 124 ], [ 12, 125 ], [ 125, 126 ], [ 0, 127 ], [ 127, 128 ], [ 127, 129 ] ]
[ "import java.util.Scanner;\nimport java.math.BigInteger;\nimport java.util.Arrays;\n\n\npublic class Main {\n\t\n\t\n\n\tpublic static void main(String[] args) {\n\t\t//Scanner myObj = new Scanner(System.in);\n\t\tScanner ret = new Scanner(System.in);\n\t\t\n\t\tint a,b,t;\n\t\tString s;\n\t\n\t\ts=ret.nextLine();\n\t\t if((s.charAt(0)=='R')&&(s.charAt(1)=='R')&&(s.charAt(2)=='R'))\n\t\t\tSystem.out.println(\"3\");\n\t\t else if((s.charAt(0)=='R')&&(s.charAt(1)=='R')||(s.charAt(1)=='R')&&(s.charAt(2)=='R'))\n\t\t System.out.println(\"2\");\n\t\t\n\t\telse if((s.charAt(0)=='S')&&(s.charAt(1)=='S')&&(s.charAt(2)=='S'))\n\t\t\tSystem.out.println(\"0\");\n\t\telse\n\t\t\tSystem.out.println(\"1\");\n\t\t\t\n\t\t\n\t\t\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "import java.math.BigInteger;", "BigInteger", "java.math", "import java.util.Arrays;", "Arrays", "java.util", "public class Main {\n\t\n\t\n\n\tpublic static void main(String[] args) {\n\t\t//Scanner myObj = new Scanner(System.in);\n\t\tScanner ret = new Scanner(System.in);\n\t\t\n\t\tint a,b,t;\n\t\tString s;\n\t\n\t\ts=ret.nextLine();\n\t\t if((s.charAt(0)=='R')&&(s.charAt(1)=='R')&&(s.charAt(2)=='R'))\n\t\t\tSystem.out.println(\"3\");\n\t\t else if((s.charAt(0)=='R')&&(s.charAt(1)=='R')||(s.charAt(1)=='R')&&(s.charAt(2)=='R'))\n\t\t System.out.println(\"2\");\n\t\t\n\t\telse if((s.charAt(0)=='S')&&(s.charAt(1)=='S')&&(s.charAt(2)=='S'))\n\t\t\tSystem.out.println(\"0\");\n\t\telse\n\t\t\tSystem.out.println(\"1\");\n\t\t\t\n\t\t\n\t\t\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t//Scanner myObj = new Scanner(System.in);\n\t\tScanner ret = new Scanner(System.in);\n\t\t\n\t\tint a,b,t;\n\t\tString s;\n\t\n\t\ts=ret.nextLine();\n\t\t if((s.charAt(0)=='R')&&(s.charAt(1)=='R')&&(s.charAt(2)=='R'))\n\t\t\tSystem.out.println(\"3\");\n\t\t else if((s.charAt(0)=='R')&&(s.charAt(1)=='R')||(s.charAt(1)=='R')&&(s.charAt(2)=='R'))\n\t\t System.out.println(\"2\");\n\t\t\n\t\telse if((s.charAt(0)=='S')&&(s.charAt(1)=='S')&&(s.charAt(2)=='S'))\n\t\t\tSystem.out.println(\"0\");\n\t\telse\n\t\t\tSystem.out.println(\"1\");\n\t\t\t\n\t\t\n\t\t\n\t}", "main", "{\n\t\t//Scanner myObj = new Scanner(System.in);\n\t\tScanner ret = new Scanner(System.in);\n\t\t\n\t\tint a,b,t;\n\t\tString s;\n\t\n\t\ts=ret.nextLine();\n\t\t if((s.charAt(0)=='R')&&(s.charAt(1)=='R')&&(s.charAt(2)=='R'))\n\t\t\tSystem.out.println(\"3\");\n\t\t else if((s.charAt(0)=='R')&&(s.charAt(1)=='R')||(s.charAt(1)=='R')&&(s.charAt(2)=='R'))\n\t\t System.out.println(\"2\");\n\t\t\n\t\telse if((s.charAt(0)=='S')&&(s.charAt(1)=='S')&&(s.charAt(2)=='S'))\n\t\t\tSystem.out.println(\"0\");\n\t\telse\n\t\t\tSystem.out.println(\"1\");\n\t\t\t\n\t\t\n\t\t\n\t}", "Scanner ret = new Scanner(System.in);", "ret", "new Scanner(System.in)", "int a", "a", "b", "b", "t;", "t", "String s;", "s", "s=ret.nextLine()", "s", "ret.nextLine()", "ret.nextLine", "ret", "if((s.charAt(0)=='R')&&(s.charAt(1)=='R')&&(s.charAt(2)=='R'))\n\t\t\tSystem.out.println(\"3\");\n\t\t else if((s.charAt(0)=='R')&&(s.charAt(1)=='R')||(s.charAt(1)=='R')&&(s.charAt(2)=='R'))\n\t\t System.out.println(\"2\");\n\t\t\n\t\telse if((s.charAt(0)=='S')&&(s.charAt(1)=='S')&&(s.charAt(2)=='S'))\n\t\t\tSystem.out.println(\"0\");\n\t\telse\n\t\t\tSystem.out.println(\"1\");", "(s.charAt(0)=='R')&&(s.charAt(1)=='R')&&(s.charAt(2)=='R')", "(s.charAt(0)=='R')&&(s.charAt(1)=='R')&&(s.charAt(2)=='R')", "(s.charAt(0)=='R')", "s.charAt(0)", "s.charAt", "s", "0", "'R'", "(s.charAt(1)=='R')", "s.charAt(1)", "s.charAt", "s", "1", "'R'", "(s.charAt(2)=='R')", "s.charAt(2)", "s.charAt", "s", "2", "'R'", "System.out.println(\"3\")", "System.out.println", "System.out", "System", "System.out", "\"3\"", "if((s.charAt(0)=='R')&&(s.charAt(1)=='R')||(s.charAt(1)=='R')&&(s.charAt(2)=='R'))\n\t\t System.out.println(\"2\");\n\t\t\n\t\telse if((s.charAt(0)=='S')&&(s.charAt(1)=='S')&&(s.charAt(2)=='S'))\n\t\t\tSystem.out.println(\"0\");\n\t\telse\n\t\t\tSystem.out.println(\"1\");", "(s.charAt(0)=='R')&&(s.charAt(1)=='R')||(s.charAt(1)=='R')&&(s.charAt(2)=='R')", "(s.charAt(0)=='R')&&(s.charAt(1)=='R')", "(s.charAt(0)=='R')", "s.charAt(0)", "s.charAt", "s", "0", "'R'", "(s.charAt(1)=='R')", "s.charAt(1)", "s.charAt", "s", "1", "'R'", "(s.charAt(1)=='R')&&(s.charAt(2)=='R')", "(s.charAt(1)=='R')", "s.charAt(1)", "s.charAt", "s", "1", "'R'", "(s.charAt(2)=='R')", "s.charAt(2)", "s.charAt", "s", "2", "'R'", "System.out.println(\"2\")", "System.out.println", "System.out", "System", "System.out", "\"2\"", "if((s.charAt(0)=='S')&&(s.charAt(1)=='S')&&(s.charAt(2)=='S'))\n\t\t\tSystem.out.println(\"0\");\n\t\telse\n\t\t\tSystem.out.println(\"1\");", "(s.charAt(0)=='S')&&(s.charAt(1)=='S')&&(s.charAt(2)=='S')", "(s.charAt(0)=='S')&&(s.charAt(1)=='S')&&(s.charAt(2)=='S')", "(s.charAt(0)=='S')", "s.charAt(0)", "s.charAt", "s", "0", "'S'", "(s.charAt(1)=='S')", "s.charAt(1)", "s.charAt", "s", "1", "'S'", "(s.charAt(2)=='S')", "s.charAt(2)", "s.charAt", "s", "2", "'S'", "System.out.println(\"0\")", "System.out.println", "System.out", "System", "System.out", "\"0\"", "System.out.println(\"1\")", "System.out.println", "System.out", "System", "System.out", "\"1\"", "String[] args", "args", "public class Main {\n\t\n\t\n\n\tpublic static void main(String[] args) {\n\t\t//Scanner myObj = new Scanner(System.in);\n\t\tScanner ret = new Scanner(System.in);\n\t\t\n\t\tint a,b,t;\n\t\tString s;\n\t\n\t\ts=ret.nextLine();\n\t\t if((s.charAt(0)=='R')&&(s.charAt(1)=='R')&&(s.charAt(2)=='R'))\n\t\t\tSystem.out.println(\"3\");\n\t\t else if((s.charAt(0)=='R')&&(s.charAt(1)=='R')||(s.charAt(1)=='R')&&(s.charAt(2)=='R'))\n\t\t System.out.println(\"2\");\n\t\t\n\t\telse if((s.charAt(0)=='S')&&(s.charAt(1)=='S')&&(s.charAt(2)=='S'))\n\t\t\tSystem.out.println(\"0\");\n\t\telse\n\t\t\tSystem.out.println(\"1\");\n\t\t\t\n\t\t\n\t\t\n\t}\n\n}", "public class Main {\n\t\n\t\n\n\tpublic static void main(String[] args) {\n\t\t//Scanner myObj = new Scanner(System.in);\n\t\tScanner ret = new Scanner(System.in);\n\t\t\n\t\tint a,b,t;\n\t\tString s;\n\t\n\t\ts=ret.nextLine();\n\t\t if((s.charAt(0)=='R')&&(s.charAt(1)=='R')&&(s.charAt(2)=='R'))\n\t\t\tSystem.out.println(\"3\");\n\t\t else if((s.charAt(0)=='R')&&(s.charAt(1)=='R')||(s.charAt(1)=='R')&&(s.charAt(2)=='R'))\n\t\t System.out.println(\"2\");\n\t\t\n\t\telse if((s.charAt(0)=='S')&&(s.charAt(1)=='S')&&(s.charAt(2)=='S'))\n\t\t\tSystem.out.println(\"0\");\n\t\telse\n\t\t\tSystem.out.println(\"1\");\n\t\t\t\n\t\t\n\t\t\n\t}\n\n}", "Main" ]
import java.util.Scanner; import java.math.BigInteger; import java.util.Arrays; public class Main { public static void main(String[] args) { //Scanner myObj = new Scanner(System.in); Scanner ret = new Scanner(System.in); int a,b,t; String s; s=ret.nextLine(); if((s.charAt(0)=='R')&&(s.charAt(1)=='R')&&(s.charAt(2)=='R')) System.out.println("3"); else if((s.charAt(0)=='R')&&(s.charAt(1)=='R')||(s.charAt(1)=='R')&&(s.charAt(2)=='R')) System.out.println("2"); else if((s.charAt(0)=='S')&&(s.charAt(1)=='S')&&(s.charAt(2)=='S')) System.out.println("0"); else System.out.println("1"); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 17, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 4, 18, 13, 4, 18, 13, 13, 14, 2, 4, 18, 13, 17, 17, 30, 14, 2, 4, 18, 13, 17, 17, 30, 14, 2, 4, 18, 13, 17, 17, 30, 0, 13, 17, 30, 0, 13, 17, 30, 0, 13, 17, 30, 14, 2, 4, 18, 13, 17, 17, 30, 14, 2, 4, 18, 13, 17, 17, 30, 0, 13, 17, 30, 0, 13, 17, 30, 14, 2, 4, 18, 13, 17, 17, 30, 0, 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 ], [ 131, 8 ], [ 131, 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 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 11, 26 ], [ 26, 27 ], [ 26, 28 ], [ 11, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 29, 39 ], [ 39, 40 ], [ 40, 41 ], [ 29, 42 ], [ 43, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 11, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 52, 57 ], [ 51, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 60, 65 ], [ 59, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 68, 73 ], [ 67, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 67, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 59, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 51, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 88, 93 ], [ 87, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 96, 101 ], [ 95, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 95, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 87, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 113, 116 ], [ 112, 117 ], [ 111, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 11, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 122, 127 ], [ 9, 128 ], [ 128, 129 ], [ 0, 130 ], [ 130, 131 ], [ 130, 132 ] ]
[ "import java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\t//数取得\n\t\tString S = sc.next();\n\t\tsc.close();\n\t\t\n\t\tint answer = 0; \n\t\tArrayList<Character> charList = new ArrayList<>();\n\t\t\n\t\tfor(int i = 0; i < S.length(); i++) {\n\t\t\tcharList.add(S.charAt(i));\n\t\t}\n\t\t\n\t\tif(charList.get(0) == 'R') {\n\t\t\tif(charList.get(1) == 'R') {\n\t\t\t\tif(charList.get(2) == 'R') {\n\t\t\t\t\tanswer = 3;\n\t\t\t\t}else {\n\t\t\t\t\tanswer = 2;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tanswer = 1;\n\t\t\t}\n\t\t}else {\n\t\t\t//最初がS\n\t\t\tif(charList.get(1) == 'R') {\n\t\t\t\tif(charList.get(2) == 'R') {\n\t\t\t\t\tanswer = 2;\n\t\t\t\t}else {\n\t\t\t\t\tanswer = 1;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tif(charList.get(2) == 'R') {\n\t\t\t\t\tanswer = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(answer);\n\t}\n\n}", "import java.util.ArrayList;", "ArrayList", "java.util", "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 sc = new Scanner(System.in);\n\t\t//数取得\n\t\tString S = sc.next();\n\t\tsc.close();\n\t\t\n\t\tint answer = 0; \n\t\tArrayList<Character> charList = new ArrayList<>();\n\t\t\n\t\tfor(int i = 0; i < S.length(); i++) {\n\t\t\tcharList.add(S.charAt(i));\n\t\t}\n\t\t\n\t\tif(charList.get(0) == 'R') {\n\t\t\tif(charList.get(1) == 'R') {\n\t\t\t\tif(charList.get(2) == 'R') {\n\t\t\t\t\tanswer = 3;\n\t\t\t\t}else {\n\t\t\t\t\tanswer = 2;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tanswer = 1;\n\t\t\t}\n\t\t}else {\n\t\t\t//最初がS\n\t\t\tif(charList.get(1) == 'R') {\n\t\t\t\tif(charList.get(2) == 'R') {\n\t\t\t\t\tanswer = 2;\n\t\t\t\t}else {\n\t\t\t\t\tanswer = 1;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tif(charList.get(2) == 'R') {\n\t\t\t\t\tanswer = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(answer);\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\t//数取得\n\t\tString S = sc.next();\n\t\tsc.close();\n\t\t\n\t\tint answer = 0; \n\t\tArrayList<Character> charList = new ArrayList<>();\n\t\t\n\t\tfor(int i = 0; i < S.length(); i++) {\n\t\t\tcharList.add(S.charAt(i));\n\t\t}\n\t\t\n\t\tif(charList.get(0) == 'R') {\n\t\t\tif(charList.get(1) == 'R') {\n\t\t\t\tif(charList.get(2) == 'R') {\n\t\t\t\t\tanswer = 3;\n\t\t\t\t}else {\n\t\t\t\t\tanswer = 2;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tanswer = 1;\n\t\t\t}\n\t\t}else {\n\t\t\t//最初がS\n\t\t\tif(charList.get(1) == 'R') {\n\t\t\t\tif(charList.get(2) == 'R') {\n\t\t\t\t\tanswer = 2;\n\t\t\t\t}else {\n\t\t\t\t\tanswer = 1;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tif(charList.get(2) == 'R') {\n\t\t\t\t\tanswer = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(answer);\n\t}", "main", "{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\t//数取得\n\t\tString S = sc.next();\n\t\tsc.close();\n\t\t\n\t\tint answer = 0; \n\t\tArrayList<Character> charList = new ArrayList<>();\n\t\t\n\t\tfor(int i = 0; i < S.length(); i++) {\n\t\t\tcharList.add(S.charAt(i));\n\t\t}\n\t\t\n\t\tif(charList.get(0) == 'R') {\n\t\t\tif(charList.get(1) == 'R') {\n\t\t\t\tif(charList.get(2) == 'R') {\n\t\t\t\t\tanswer = 3;\n\t\t\t\t}else {\n\t\t\t\t\tanswer = 2;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tanswer = 1;\n\t\t\t}\n\t\t}else {\n\t\t\t//最初がS\n\t\t\tif(charList.get(1) == 'R') {\n\t\t\t\tif(charList.get(2) == 'R') {\n\t\t\t\t\tanswer = 2;\n\t\t\t\t}else {\n\t\t\t\t\tanswer = 1;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tif(charList.get(2) == 'R') {\n\t\t\t\t\tanswer = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(answer);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String S = sc.next();", "S", "sc.next()", "sc.next", "sc", "sc.close()", "sc.close", "sc", "int answer = 0;", "answer", "0", "ArrayList<Character> charList = new ArrayList<>();", "charList", "new ArrayList<>()", "for(int i = 0; i < S.length(); i++) {\n\t\t\tcharList.add(S.charAt(i));\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < S.length()", "i", "S.length()", "S.length", "S", "i++", "i++", "i", "{\n\t\t\tcharList.add(S.charAt(i));\n\t\t}", "{\n\t\t\tcharList.add(S.charAt(i));\n\t\t}", "charList.add(S.charAt(i))", "charList.add", "charList", "S.charAt(i)", "S.charAt", "S", "i", "if(charList.get(0) == 'R') {\n\t\t\tif(charList.get(1) == 'R') {\n\t\t\t\tif(charList.get(2) == 'R') {\n\t\t\t\t\tanswer = 3;\n\t\t\t\t}else {\n\t\t\t\t\tanswer = 2;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tanswer = 1;\n\t\t\t}\n\t\t}else {\n\t\t\t//最初がS\n\t\t\tif(charList.get(1) == 'R') {\n\t\t\t\tif(charList.get(2) == 'R') {\n\t\t\t\t\tanswer = 2;\n\t\t\t\t}else {\n\t\t\t\t\tanswer = 1;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tif(charList.get(2) == 'R') {\n\t\t\t\t\tanswer = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "charList.get(0) == 'R'", "charList.get(0)", "charList.get", "charList", "0", "'R'", "{\n\t\t\tif(charList.get(1) == 'R') {\n\t\t\t\tif(charList.get(2) == 'R') {\n\t\t\t\t\tanswer = 3;\n\t\t\t\t}else {\n\t\t\t\t\tanswer = 2;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tanswer = 1;\n\t\t\t}\n\t\t}", "if(charList.get(1) == 'R') {\n\t\t\t\tif(charList.get(2) == 'R') {\n\t\t\t\t\tanswer = 3;\n\t\t\t\t}else {\n\t\t\t\t\tanswer = 2;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tanswer = 1;\n\t\t\t}", "charList.get(1) == 'R'", "charList.get(1)", "charList.get", "charList", "1", "'R'", "{\n\t\t\t\tif(charList.get(2) == 'R') {\n\t\t\t\t\tanswer = 3;\n\t\t\t\t}else {\n\t\t\t\t\tanswer = 2;\n\t\t\t\t}\n\t\t\t}", "if(charList.get(2) == 'R') {\n\t\t\t\t\tanswer = 3;\n\t\t\t\t}else {\n\t\t\t\t\tanswer = 2;\n\t\t\t\t}", "charList.get(2) == 'R'", "charList.get(2)", "charList.get", "charList", "2", "'R'", "{\n\t\t\t\t\tanswer = 3;\n\t\t\t\t}", "answer = 3", "answer", "3", "{\n\t\t\t\t\tanswer = 2;\n\t\t\t\t}", "answer = 2", "answer", "2", "{\n\t\t\t\tanswer = 1;\n\t\t\t}", "answer = 1", "answer", "1", "{\n\t\t\t//最初がS\n\t\t\tif(charList.get(1) == 'R') {\n\t\t\t\tif(charList.get(2) == 'R') {\n\t\t\t\t\tanswer = 2;\n\t\t\t\t}else {\n\t\t\t\t\tanswer = 1;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tif(charList.get(2) == 'R') {\n\t\t\t\t\tanswer = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "if(charList.get(1) == 'R') {\n\t\t\t\tif(charList.get(2) == 'R') {\n\t\t\t\t\tanswer = 2;\n\t\t\t\t}else {\n\t\t\t\t\tanswer = 1;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tif(charList.get(2) == 'R') {\n\t\t\t\t\tanswer = 1;\n\t\t\t\t}\n\t\t\t}", "charList.get(1) == 'R'", "charList.get(1)", "charList.get", "charList", "1", "'R'", "{\n\t\t\t\tif(charList.get(2) == 'R') {\n\t\t\t\t\tanswer = 2;\n\t\t\t\t}else {\n\t\t\t\t\tanswer = 1;\n\t\t\t\t}\n\t\t\t}", "if(charList.get(2) == 'R') {\n\t\t\t\t\tanswer = 2;\n\t\t\t\t}else {\n\t\t\t\t\tanswer = 1;\n\t\t\t\t}", "charList.get(2) == 'R'", "charList.get(2)", "charList.get", "charList", "2", "'R'", "{\n\t\t\t\t\tanswer = 2;\n\t\t\t\t}", "answer = 2", "answer", "2", "{\n\t\t\t\t\tanswer = 1;\n\t\t\t\t}", "answer = 1", "answer", "1", "{\n\t\t\t\tif(charList.get(2) == 'R') {\n\t\t\t\t\tanswer = 1;\n\t\t\t\t}\n\t\t\t}", "if(charList.get(2) == 'R') {\n\t\t\t\t\tanswer = 1;\n\t\t\t\t}", "charList.get(2) == 'R'", "charList.get(2)", "charList.get", "charList", "2", "'R'", "{\n\t\t\t\t\tanswer = 1;\n\t\t\t\t}", "answer = 1", "answer", "1", "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\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\t//数取得\n\t\tString S = sc.next();\n\t\tsc.close();\n\t\t\n\t\tint answer = 0; \n\t\tArrayList<Character> charList = new ArrayList<>();\n\t\t\n\t\tfor(int i = 0; i < S.length(); i++) {\n\t\t\tcharList.add(S.charAt(i));\n\t\t}\n\t\t\n\t\tif(charList.get(0) == 'R') {\n\t\t\tif(charList.get(1) == 'R') {\n\t\t\t\tif(charList.get(2) == 'R') {\n\t\t\t\t\tanswer = 3;\n\t\t\t\t}else {\n\t\t\t\t\tanswer = 2;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tanswer = 1;\n\t\t\t}\n\t\t}else {\n\t\t\t//最初がS\n\t\t\tif(charList.get(1) == 'R') {\n\t\t\t\tif(charList.get(2) == 'R') {\n\t\t\t\t\tanswer = 2;\n\t\t\t\t}else {\n\t\t\t\t\tanswer = 1;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tif(charList.get(2) == 'R') {\n\t\t\t\t\tanswer = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(answer);\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\t//数取得\n\t\tString S = sc.next();\n\t\tsc.close();\n\t\t\n\t\tint answer = 0; \n\t\tArrayList<Character> charList = new ArrayList<>();\n\t\t\n\t\tfor(int i = 0; i < S.length(); i++) {\n\t\t\tcharList.add(S.charAt(i));\n\t\t}\n\t\t\n\t\tif(charList.get(0) == 'R') {\n\t\t\tif(charList.get(1) == 'R') {\n\t\t\t\tif(charList.get(2) == 'R') {\n\t\t\t\t\tanswer = 3;\n\t\t\t\t}else {\n\t\t\t\t\tanswer = 2;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tanswer = 1;\n\t\t\t}\n\t\t}else {\n\t\t\t//最初がS\n\t\t\tif(charList.get(1) == 'R') {\n\t\t\t\tif(charList.get(2) == 'R') {\n\t\t\t\t\tanswer = 2;\n\t\t\t\t}else {\n\t\t\t\t\tanswer = 1;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tif(charList.get(2) == 'R') {\n\t\t\t\t\tanswer = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(answer);\n\t}\n\n}", "Main" ]
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner(System.in); //数取得 String S = sc.next(); sc.close(); int answer = 0; ArrayList<Character> charList = new ArrayList<>(); for(int i = 0; i < S.length(); i++) { charList.add(S.charAt(i)); } if(charList.get(0) == 'R') { if(charList.get(1) == 'R') { if(charList.get(2) == 'R') { answer = 3; }else { answer = 2; } }else { answer = 1; } }else { //最初がS if(charList.get(1) == 'R') { if(charList.get(2) == 'R') { answer = 2; }else { answer = 1; } }else { if(charList.get(2) == 'R') { answer = 1; } } } System.out.println(answer); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 4, 18, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 17, 30, 4, 18, 13, 13, 2, 4, 18, 13, 13, 17, 14, 2, 4, 18, 13, 13, 17, 30, 40, 13, 4, 18, 13, 17, 4, 18, 18, 13, 13, 4, 18, 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 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 23, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 8, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 35, 37 ], [ 30, 38 ], [ 38, 39 ], [ 39, 40 ], [ 30, 41 ], [ 42, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 44, 49 ], [ 43, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 51, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 55, 60 ], [ 42, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 62, 67 ], [ 61, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 8, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 6, 84 ], [ 84, 85 ] ]
[ "import java.util.*;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString str = sc.next();\n\t\tsc.close();\n\t\tArrayList<Integer> c = new ArrayList<>();\n\t\tc.add(0);\n\t\tint j=0;\n\t\tfor(int i=0;i<3;++i){\n\t\t\tif(str.charAt(i)=='R'){\n\t\t\t\tc.set(j, c.get(j)+1);\n\t\t\t}\n\t\t\tif(str.charAt(i)=='S'){\n\t\t\t\tj++;\n\t\t\t\tc.add(0);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(Collections.max(c));\n\t}\n}\n", "import java.util.*;", "util.*", "java", "class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString str = sc.next();\n\t\tsc.close();\n\t\tArrayList<Integer> c = new ArrayList<>();\n\t\tc.add(0);\n\t\tint j=0;\n\t\tfor(int i=0;i<3;++i){\n\t\t\tif(str.charAt(i)=='R'){\n\t\t\t\tc.set(j, c.get(j)+1);\n\t\t\t}\n\t\t\tif(str.charAt(i)=='S'){\n\t\t\t\tj++;\n\t\t\t\tc.add(0);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(Collections.max(c));\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString str = sc.next();\n\t\tsc.close();\n\t\tArrayList<Integer> c = new ArrayList<>();\n\t\tc.add(0);\n\t\tint j=0;\n\t\tfor(int i=0;i<3;++i){\n\t\t\tif(str.charAt(i)=='R'){\n\t\t\t\tc.set(j, c.get(j)+1);\n\t\t\t}\n\t\t\tif(str.charAt(i)=='S'){\n\t\t\t\tj++;\n\t\t\t\tc.add(0);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(Collections.max(c));\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString str = sc.next();\n\t\tsc.close();\n\t\tArrayList<Integer> c = new ArrayList<>();\n\t\tc.add(0);\n\t\tint j=0;\n\t\tfor(int i=0;i<3;++i){\n\t\t\tif(str.charAt(i)=='R'){\n\t\t\t\tc.set(j, c.get(j)+1);\n\t\t\t}\n\t\t\tif(str.charAt(i)=='S'){\n\t\t\t\tj++;\n\t\t\t\tc.add(0);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(Collections.max(c));\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String str = sc.next();", "str", "sc.next()", "sc.next", "sc", "sc.close()", "sc.close", "sc", "ArrayList<Integer> c = new ArrayList<>();", "c", "new ArrayList<>()", "c.add(0)", "c.add", "c", "0", "int j=0;", "j", "0", "for(int i=0;i<3;++i){\n\t\t\tif(str.charAt(i)=='R'){\n\t\t\t\tc.set(j, c.get(j)+1);\n\t\t\t}\n\t\t\tif(str.charAt(i)=='S'){\n\t\t\t\tj++;\n\t\t\t\tc.add(0);\n\t\t\t}\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<3", "i", "3", "++i", "++i", "i", "{\n\t\t\tif(str.charAt(i)=='R'){\n\t\t\t\tc.set(j, c.get(j)+1);\n\t\t\t}\n\t\t\tif(str.charAt(i)=='S'){\n\t\t\t\tj++;\n\t\t\t\tc.add(0);\n\t\t\t}\n\t\t}", "{\n\t\t\tif(str.charAt(i)=='R'){\n\t\t\t\tc.set(j, c.get(j)+1);\n\t\t\t}\n\t\t\tif(str.charAt(i)=='S'){\n\t\t\t\tj++;\n\t\t\t\tc.add(0);\n\t\t\t}\n\t\t}", "if(str.charAt(i)=='R'){\n\t\t\t\tc.set(j, c.get(j)+1);\n\t\t\t}", "str.charAt(i)=='R'", "str.charAt(i)", "str.charAt", "str", "i", "'R'", "{\n\t\t\t\tc.set(j, c.get(j)+1);\n\t\t\t}", "c.set(j, c.get(j)+1)", "c.set", "c", "j", "c.get(j)+1", "c.get(j)", "c.get", "c", "j", "1", "if(str.charAt(i)=='S'){\n\t\t\t\tj++;\n\t\t\t\tc.add(0);\n\t\t\t}", "str.charAt(i)=='S'", "str.charAt(i)", "str.charAt", "str", "i", "'S'", "{\n\t\t\t\tj++;\n\t\t\t\tc.add(0);\n\t\t\t}", "j++", "j", "c.add(0)", "c.add", "c", "0", "System.out.println(Collections.max(c))", "System.out.println", "System.out", "System", "System.out", "Collections.max(c)", "Collections.max", "Collections", "c", "String[] args", "args" ]
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str = sc.next(); sc.close(); ArrayList<Integer> c = new ArrayList<>(); c.add(0); int j=0; for(int i=0;i<3;++i){ if(str.charAt(i)=='R'){ c.set(j, c.get(j)+1); } if(str.charAt(i)=='S'){ j++; c.add(0); } } System.out.println(Collections.max(c)); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 4, 18, 13, 14, 2, 4, 18, 13, 17, 17, 30, 4, 18, 13, 17, 30, 14, 4, 18, 13, 17, 30, 4, 18, 13, 17, 14, 2, 4, 18, 13, 17, 4, 18, 13, 17, 30, 4, 18, 13, 17, 30, 4, 18, 13, 17, 4, 18, 13, 23, 13, 6, 13, 41, 13, 20, 41, 13, 41, 13, 41, 13, 20, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 41, 13, 20, 14, 4, 18, 13, 30, 4, 18, 13, 20, 0, 13, 20, 23, 13, 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, 4, 18, 18, 13, 13, 4, 18, 13, 4, 18, 13, 17, 12, 13, 30, 4, 18, 13, 13, 23, 13, 12, 13, 30, 4, 18, 13, 13, 4, 18, 13, 17, 23, 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 ], [ 222, 8 ], [ 222, 9 ], [ 9, 10 ], [ 9, 11 ], [ 222, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 25 ], [ 21, 26 ], [ 20, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 20, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 33, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 33, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 44, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 43, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 43, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 14, 63 ], [ 63, 64 ], [ 64, 65 ], [ 12, 66 ], [ 66, 67 ], [ 222, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 73, 74 ], [ 68, 75 ], [ 75, 76 ], [ 68, 77 ], [ 77, 78 ], [ 77, 79 ], [ 68, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 83, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 90, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 94, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 82, 103 ], [ 103, 104 ], [ 103, 105 ], [ 80, 106 ], [ 106, 107 ], [ 68, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 112, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 111, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 121, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 110, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 68, 136 ], [ 136, 137 ], [ 136, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 140, 143 ], [ 143, 144 ], [ 68, 145 ], [ 145, 146 ], [ 145, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 149, 152 ], [ 152, 153 ], [ 68, 154 ], [ 154, 155 ], [ 154, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 158, 161 ], [ 161, 162 ], [ 68, 163 ], [ 163, 164 ], [ 163, 165 ], [ 165, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 168, 170 ], [ 166, 171 ], [ 171, 172 ], [ 172, 173 ], [ 165, 174 ], [ 174, 175 ], [ 175, 176 ], [ 174, 177 ], [ 68, 178 ], [ 178, 179 ], [ 178, 180 ], [ 180, 181 ], [ 181, 182 ], [ 182, 183 ], [ 181, 184 ], [ 178, 185 ], [ 185, 186 ], [ 68, 187 ], [ 187, 188 ], [ 187, 189 ], [ 189, 190 ], [ 190, 191 ], [ 191, 192 ], [ 190, 193 ], [ 189, 194 ], [ 194, 195 ], [ 195, 196 ], [ 194, 197 ], [ 187, 198 ], [ 198, 199 ], [ 68, 200 ], [ 200, 201 ], [ 200, 202 ], [ 202, 203 ], [ 203, 204 ], [ 203, 205 ], [ 202, 206 ], [ 206, 207 ], [ 207, 208 ], [ 207, 209 ], [ 209, 210 ], [ 210, 211 ], [ 211, 212 ], [ 206, 213 ], [ 213, 214 ], [ 214, 215 ], [ 214, 216 ], [ 216, 217 ], [ 217, 218 ], [ 202, 219 ], [ 219, 220 ], [ 0, 221 ], [ 221, 222 ], [ 221, 223 ] ]
[ "import java.io.*;\nimport java.util.StringTokenizer;\n\npublic class Main {\n static FastIO io = new FastIO(\"in.txt\");\n\n public static void main(String[] args) throws Exception {\n\n String s = io.next();\n if(s.indexOf('R') < 0){\n io.println(0);\n }else{\n if(s.equals(\"RRR\")){\n io.println(3);\n }else if(s.equals(\"RRS\") || s.equals(\"SRR\")){\n io.println(2);\n }else{\n io.println(1);\n }\n }\n io.flush();\n }\n\n static class FastIO {\n static StringBuilder sb = new StringBuilder();\n static BufferedReader br;\n static StringTokenizer st;\n static PrintStream ps = new PrintStream(System.out);\n\n public FastIO(String fname) {\n try {\n File input = new File(fname);\n if (input.exists()) {\n System.setIn(new FileInputStream(fname));\n }\n }catch (Exception e){\n e.printStackTrace();\n }\n\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 void flush(){\n System.out.print(sb.toString());\n sb.setLength(0);\n }\n\n void print(Object o){\n sb.append(o);\n }\n\n void println(Object o){\n sb.append(o);\n sb.append('\\n');\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "public class Main {\n static FastIO io = new FastIO(\"in.txt\");\n\n public static void main(String[] args) throws Exception {\n\n String s = io.next();\n if(s.indexOf('R') < 0){\n io.println(0);\n }else{\n if(s.equals(\"RRR\")){\n io.println(3);\n }else if(s.equals(\"RRS\") || s.equals(\"SRR\")){\n io.println(2);\n }else{\n io.println(1);\n }\n }\n io.flush();\n }\n\n static class FastIO {\n static StringBuilder sb = new StringBuilder();\n static BufferedReader br;\n static StringTokenizer st;\n static PrintStream ps = new PrintStream(System.out);\n\n public FastIO(String fname) {\n try {\n File input = new File(fname);\n if (input.exists()) {\n System.setIn(new FileInputStream(fname));\n }\n }catch (Exception e){\n e.printStackTrace();\n }\n\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 void flush(){\n System.out.print(sb.toString());\n sb.setLength(0);\n }\n\n void print(Object o){\n sb.append(o);\n }\n\n void println(Object o){\n sb.append(o);\n sb.append('\\n');\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}", "Main", "static FastIO io = new FastIO(\"in.txt\");", "io", "new FastIO(\"in.txt\")", "public static void main(String[] args) throws Exception {\n\n String s = io.next();\n if(s.indexOf('R') < 0){\n io.println(0);\n }else{\n if(s.equals(\"RRR\")){\n io.println(3);\n }else if(s.equals(\"RRS\") || s.equals(\"SRR\")){\n io.println(2);\n }else{\n io.println(1);\n }\n }\n io.flush();\n }", "main", "{\n\n String s = io.next();\n if(s.indexOf('R') < 0){\n io.println(0);\n }else{\n if(s.equals(\"RRR\")){\n io.println(3);\n }else if(s.equals(\"RRS\") || s.equals(\"SRR\")){\n io.println(2);\n }else{\n io.println(1);\n }\n }\n io.flush();\n }", "String s = io.next();", "s", "io.next()", "io.next", "io", "if(s.indexOf('R') < 0){\n io.println(0);\n }else{\n if(s.equals(\"RRR\")){\n io.println(3);\n }else if(s.equals(\"RRS\") || s.equals(\"SRR\")){\n io.println(2);\n }else{\n io.println(1);\n }\n }", "s.indexOf('R') < 0", "s.indexOf('R')", "s.indexOf", "s", "'R'", "0", "{\n io.println(0);\n }", "io.println(0)", "io.println", "io", "0", "{\n if(s.equals(\"RRR\")){\n io.println(3);\n }else if(s.equals(\"RRS\") || s.equals(\"SRR\")){\n io.println(2);\n }else{\n io.println(1);\n }\n }", "if(s.equals(\"RRR\")){\n io.println(3);\n }else if(s.equals(\"RRS\") || s.equals(\"SRR\")){\n io.println(2);\n }else{\n io.println(1);\n }", "s.equals(\"RRR\")", "s.equals", "s", "\"RRR\"", "{\n io.println(3);\n }", "io.println(3)", "io.println", "io", "3", "if(s.equals(\"RRS\") || s.equals(\"SRR\")){\n io.println(2);\n }else{\n io.println(1);\n }", "s.equals(\"RRS\") || s.equals(\"SRR\")", "s.equals(\"RRS\")", "s.equals", "s", "\"RRS\"", "s.equals(\"SRR\")", "s.equals", "s", "\"SRR\"", "{\n io.println(2);\n }", "io.println(2)", "io.println", "io", "2", "{\n io.println(1);\n }", "io.println(1)", "io.println", "io", "1", "io.flush()", "io.flush", "io", "String[] args", "args", "static class FastIO {\n static StringBuilder sb = new StringBuilder();\n static BufferedReader br;\n static StringTokenizer st;\n static PrintStream ps = new PrintStream(System.out);\n\n public FastIO(String fname) {\n try {\n File input = new File(fname);\n if (input.exists()) {\n System.setIn(new FileInputStream(fname));\n }\n }catch (Exception e){\n e.printStackTrace();\n }\n\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 void flush(){\n System.out.print(sb.toString());\n sb.setLength(0);\n }\n\n void print(Object o){\n sb.append(o);\n }\n\n void println(Object o){\n sb.append(o);\n sb.append('\\n');\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 }", "FastIO", "static StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "static BufferedReader br;", "br", "static StringTokenizer st;", "st", "static PrintStream ps = new PrintStream(System.out);", "ps", "new PrintStream(System.out)", "public FastIO(String fname) {\n try {\n File input = new File(fname);\n if (input.exists()) {\n System.setIn(new FileInputStream(fname));\n }\n }catch (Exception e){\n e.printStackTrace();\n }\n\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }", "FastIO", "{\n try {\n File input = new File(fname);\n if (input.exists()) {\n System.setIn(new FileInputStream(fname));\n }\n }catch (Exception e){\n e.printStackTrace();\n }\n\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }", "try {\n File input = new File(fname);\n if (input.exists()) {\n System.setIn(new FileInputStream(fname));\n }\n }catch (Exception e){\n e.printStackTrace();\n }", "catch (Exception e){\n e.printStackTrace();\n }", "Exception e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n File input = new File(fname);\n if (input.exists()) {\n System.setIn(new FileInputStream(fname));\n }\n }", "File input = new File(fname);", "input", "new File(fname)", "if (input.exists()) {\n System.setIn(new FileInputStream(fname));\n }", "input.exists()", "input.exists", "input", "{\n System.setIn(new FileInputStream(fname));\n }", "System.setIn(new FileInputStream(fname))", "System.setIn", "System", "new FileInputStream(fname)", "br = new BufferedReader(new\n InputStreamReader(System.in))", "br", "new BufferedReader(new\n InputStreamReader(System.in))", "String fname", "fname", "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", "void flush(){\n System.out.print(sb.toString());\n sb.setLength(0);\n }", "flush", "{\n System.out.print(sb.toString());\n sb.setLength(0);\n }", "System.out.print(sb.toString())", "System.out.print", "System.out", "System", "System.out", "sb.toString()", "sb.toString", "sb", "sb.setLength(0)", "sb.setLength", "sb", "0", "void print(Object o){\n sb.append(o);\n }", "print", "{\n sb.append(o);\n }", "sb.append(o)", "sb.append", "sb", "o", "Object o", "o", "void println(Object o){\n sb.append(o);\n sb.append('\\n');\n }", "println", "{\n sb.append(o);\n sb.append('\\n');\n }", "sb.append(o)", "sb.append", "sb", "o", "sb.append('\\n')", "sb.append", "sb", "'\\n'", "Object o", "o", "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 FastIO io = new FastIO(\"in.txt\");\n\n public static void main(String[] args) throws Exception {\n\n String s = io.next();\n if(s.indexOf('R') < 0){\n io.println(0);\n }else{\n if(s.equals(\"RRR\")){\n io.println(3);\n }else if(s.equals(\"RRS\") || s.equals(\"SRR\")){\n io.println(2);\n }else{\n io.println(1);\n }\n }\n io.flush();\n }\n\n static class FastIO {\n static StringBuilder sb = new StringBuilder();\n static BufferedReader br;\n static StringTokenizer st;\n static PrintStream ps = new PrintStream(System.out);\n\n public FastIO(String fname) {\n try {\n File input = new File(fname);\n if (input.exists()) {\n System.setIn(new FileInputStream(fname));\n }\n }catch (Exception e){\n e.printStackTrace();\n }\n\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 void flush(){\n System.out.print(sb.toString());\n sb.setLength(0);\n }\n\n void print(Object o){\n sb.append(o);\n }\n\n void println(Object o){\n sb.append(o);\n sb.append('\\n');\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}", "public class Main {\n static FastIO io = new FastIO(\"in.txt\");\n\n public static void main(String[] args) throws Exception {\n\n String s = io.next();\n if(s.indexOf('R') < 0){\n io.println(0);\n }else{\n if(s.equals(\"RRR\")){\n io.println(3);\n }else if(s.equals(\"RRS\") || s.equals(\"SRR\")){\n io.println(2);\n }else{\n io.println(1);\n }\n }\n io.flush();\n }\n\n static class FastIO {\n static StringBuilder sb = new StringBuilder();\n static BufferedReader br;\n static StringTokenizer st;\n static PrintStream ps = new PrintStream(System.out);\n\n public FastIO(String fname) {\n try {\n File input = new File(fname);\n if (input.exists()) {\n System.setIn(new FileInputStream(fname));\n }\n }catch (Exception e){\n e.printStackTrace();\n }\n\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 void flush(){\n System.out.print(sb.toString());\n sb.setLength(0);\n }\n\n void print(Object o){\n sb.append(o);\n }\n\n void println(Object o){\n sb.append(o);\n sb.append('\\n');\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}", "Main" ]
import java.io.*; import java.util.StringTokenizer; public class Main { static FastIO io = new FastIO("in.txt"); public static void main(String[] args) throws Exception { String s = io.next(); if(s.indexOf('R') < 0){ io.println(0); }else{ if(s.equals("RRR")){ io.println(3); }else if(s.equals("RRS") || s.equals("SRR")){ io.println(2); }else{ io.println(1); } } io.flush(); } static class FastIO { static StringBuilder sb = new StringBuilder(); static BufferedReader br; static StringTokenizer st; static PrintStream ps = new PrintStream(System.out); public FastIO(String fname) { try { File input = new File(fname); if (input.exists()) { System.setIn(new FileInputStream(fname)); } }catch (Exception e){ e.printStackTrace(); } 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()); } void flush(){ System.out.print(sb.toString()); sb.setLength(0); } void print(Object o){ sb.append(o); } void println(Object o){ sb.append(o); sb.append('\n'); } 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, 6, 13, 12, 13, 30, 4, 13, 18, 13, 13, 18, 13, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 41, 13, 17, 14, 2, 4, 18, 13, 13, 17, 30, 0, 13, 17, 14, 13, 40, 13, 0, 13, 17, 0, 13, 17, 0, 13, 13, 0, 13, 4, 18, 13, 13, 13, 4, 18, 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 ], [ 101, 11 ], [ 101, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 17, 19 ], [ 15, 20 ], [ 20, 21 ], [ 20, 22 ], [ 12, 23 ], [ 23, 24 ], [ 101, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 27, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 27, 36 ], [ 36, 37 ], [ 36, 38 ], [ 27, 39 ], [ 39, 40 ], [ 39, 41 ], [ 27, 42 ], [ 42, 43 ], [ 42, 44 ], [ 27, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 50, 51 ], [ 50, 52 ], [ 45, 53 ], [ 53, 54 ], [ 54, 55 ], [ 45, 56 ], [ 57, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 62, 67 ], [ 61, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 72, 76 ], [ 76, 77 ], [ 76, 78 ], [ 61, 79 ], [ 79, 80 ], [ 79, 81 ], [ 57, 82 ], [ 82, 83 ], [ 82, 84 ], [ 57, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 87, 91 ], [ 27, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 25, 96 ], [ 96, 97 ], [ 25, 98 ], [ 98, 99 ], [ 0, 100 ], [ 100, 101 ], [ 100, 102 ] ]
[ "\nimport java.io.InputStream;\nimport java.io.PrintStream;\nimport java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n solve(System.in, System.out);\n }\n\n static void solve(InputStream is, PrintStream os) {\n // Your code here!\n Scanner scan = new Scanner(is);\n String S = scan.next();\n boolean wasR = false;\n int ans = 0;\n int temp = 0;\n for(int i = 0; i <3; i++) {\n boolean isR = false;\n if(S.charAt(i) == 'R') {\n isR = true;\n if(wasR)\n temp++;\n else\n temp = 1;\n } else\n temp = 0;\n\n wasR = isR;\n ans = Math.max(ans, temp);\n }\n os.println(ans);\n }\n}", "import java.io.InputStream;", "InputStream", "java.io", "import java.io.PrintStream;", "PrintStream", "java.io", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) throws Exception {\n solve(System.in, System.out);\n }\n\n static void solve(InputStream is, PrintStream os) {\n // Your code here!\n Scanner scan = new Scanner(is);\n String S = scan.next();\n boolean wasR = false;\n int ans = 0;\n int temp = 0;\n for(int i = 0; i <3; i++) {\n boolean isR = false;\n if(S.charAt(i) == 'R') {\n isR = true;\n if(wasR)\n temp++;\n else\n temp = 1;\n } else\n temp = 0;\n\n wasR = isR;\n ans = Math.max(ans, temp);\n }\n os.println(ans);\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n solve(System.in, System.out);\n }", "main", "{\n solve(System.in, System.out);\n }", "solve(System.in, System.out)", "solve", "System.in", "System", "System.in", "System.out", "System", "System.out", "String[] args", "args", "static void solve(InputStream is, PrintStream os) {\n // Your code here!\n Scanner scan = new Scanner(is);\n String S = scan.next();\n boolean wasR = false;\n int ans = 0;\n int temp = 0;\n for(int i = 0; i <3; i++) {\n boolean isR = false;\n if(S.charAt(i) == 'R') {\n isR = true;\n if(wasR)\n temp++;\n else\n temp = 1;\n } else\n temp = 0;\n\n wasR = isR;\n ans = Math.max(ans, temp);\n }\n os.println(ans);\n }", "solve", "{\n // Your code here!\n Scanner scan = new Scanner(is);\n String S = scan.next();\n boolean wasR = false;\n int ans = 0;\n int temp = 0;\n for(int i = 0; i <3; i++) {\n boolean isR = false;\n if(S.charAt(i) == 'R') {\n isR = true;\n if(wasR)\n temp++;\n else\n temp = 1;\n } else\n temp = 0;\n\n wasR = isR;\n ans = Math.max(ans, temp);\n }\n os.println(ans);\n }", "Scanner scan = new Scanner(is);", "scan", "new Scanner(is)", "String S = scan.next();", "S", "scan.next()", "scan.next", "scan", "boolean wasR = false;", "wasR", "false", "int ans = 0;", "ans", "0", "int temp = 0;", "temp", "0", "for(int i = 0; i <3; i++) {\n boolean isR = false;\n if(S.charAt(i) == 'R') {\n isR = true;\n if(wasR)\n temp++;\n else\n temp = 1;\n } else\n temp = 0;\n\n wasR = isR;\n ans = Math.max(ans, temp);\n }", "int i = 0;", "int i = 0;", "i", "0", "i <3", "i", "3", "i++", "i++", "i", "{\n boolean isR = false;\n if(S.charAt(i) == 'R') {\n isR = true;\n if(wasR)\n temp++;\n else\n temp = 1;\n } else\n temp = 0;\n\n wasR = isR;\n ans = Math.max(ans, temp);\n }", "{\n boolean isR = false;\n if(S.charAt(i) == 'R') {\n isR = true;\n if(wasR)\n temp++;\n else\n temp = 1;\n } else\n temp = 0;\n\n wasR = isR;\n ans = Math.max(ans, temp);\n }", "boolean isR = false;", "isR", "false", "if(S.charAt(i) == 'R') {\n isR = true;\n if(wasR)\n temp++;\n else\n temp = 1;\n } else\n temp = 0;", "S.charAt(i) == 'R'", "S.charAt(i)", "S.charAt", "S", "i", "'R'", "{\n isR = true;\n if(wasR)\n temp++;\n else\n temp = 1;\n }", "isR = true", "isR", "true", "if(wasR)\n temp++;\n else\n temp = 1;", "wasR", "temp++", "temp", "temp = 1", "temp", "1", "temp = 0", "temp", "0", "wasR = isR", "wasR", "isR", "ans = Math.max(ans, temp)", "ans", "Math.max(ans, temp)", "Math.max", "Math", "ans", "temp", "os.println(ans)", "os.println", "os", "ans", "InputStream is", "is", "PrintStream os", "os", "public class Main {\n public static void main(String[] args) throws Exception {\n solve(System.in, System.out);\n }\n\n static void solve(InputStream is, PrintStream os) {\n // Your code here!\n Scanner scan = new Scanner(is);\n String S = scan.next();\n boolean wasR = false;\n int ans = 0;\n int temp = 0;\n for(int i = 0; i <3; i++) {\n boolean isR = false;\n if(S.charAt(i) == 'R') {\n isR = true;\n if(wasR)\n temp++;\n else\n temp = 1;\n } else\n temp = 0;\n\n wasR = isR;\n ans = Math.max(ans, temp);\n }\n os.println(ans);\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n solve(System.in, System.out);\n }\n\n static void solve(InputStream is, PrintStream os) {\n // Your code here!\n Scanner scan = new Scanner(is);\n String S = scan.next();\n boolean wasR = false;\n int ans = 0;\n int temp = 0;\n for(int i = 0; i <3; i++) {\n boolean isR = false;\n if(S.charAt(i) == 'R') {\n isR = true;\n if(wasR)\n temp++;\n else\n temp = 1;\n } else\n temp = 0;\n\n wasR = isR;\n ans = Math.max(ans, temp);\n }\n os.println(ans);\n }\n}", "Main" ]
import java.io.InputStream; import java.io.PrintStream; import java.util.*; public class Main { public static void main(String[] args) throws Exception { solve(System.in, System.out); } static void solve(InputStream is, PrintStream os) { // Your code here! Scanner scan = new Scanner(is); String S = scan.next(); boolean wasR = false; int ans = 0; int temp = 0; for(int i = 0; i <3; i++) { boolean isR = false; if(S.charAt(i) == 'R') { isR = true; if(wasR) temp++; else temp = 1; } else temp = 0; wasR = isR; ans = Math.max(ans, temp); } os.println(ans); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 4, 18, 4, 18, 13, 13, 2, 13, 17, 13, 2, 13, 17, 30, 14, 4, 18, 4, 18, 13, 13, 2, 13, 17, 17, 30, 40, 13, 0, 13, 4, 18, 13, 13, 2, 13, 17, 4, 13, 4, 18, 13, 13, 23, 13, 12, 13, 30, 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 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 104, 14 ], [ 104, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 17, 26 ], [ 26, 27 ], [ 26, 28 ], [ 17, 29 ], [ 29, 30 ], [ 29, 31 ], [ 17, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 32, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 49, 53 ], [ 53, 54 ], [ 53, 55 ], [ 47, 56 ], [ 46, 57 ], [ 57, 58 ], [ 57, 59 ], [ 45, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 64, 68 ], [ 68, 69 ], [ 68, 70 ], [ 62, 71 ], [ 61, 72 ], [ 72, 73 ], [ 73, 74 ], [ 44, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 77, 81 ], [ 81, 82 ], [ 81, 83 ], [ 17, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 15, 90 ], [ 90, 91 ], [ 104, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 92, 101 ], [ 101, 102 ], [ 0, 103 ], [ 103, 104 ], [ 103, 105 ] ]
[ "\nimport org.w3c.dom.ls.LSInput;\n\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\n\npublic class Main {\n\n public static void main(String[] args) {\n\n\n Scanner sc = new Scanner(System.in);\n String n1 = sc.next();\n\n int count = 0;\n String s = null;\n for (int i = 0; i < 3; i++) {\n if (n1.substring(i, i + 1).equals(s) || count == 0) {\n if(n1.substring(i, i + 1).equals(\"R\")) {\n count++;\n }\n }\n s = n1.substring(i, i + 1);\n }\n\n p(String.valueOf(count));\n }\n\n static void p(String s) { System.out.println(s); }\n}", "import org.w3c.dom.ls.LSInput;", "LSInput", "org.w3c.dom.ls", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.List;", "List", "java.util", "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 String n1 = sc.next();\n\n int count = 0;\n String s = null;\n for (int i = 0; i < 3; i++) {\n if (n1.substring(i, i + 1).equals(s) || count == 0) {\n if(n1.substring(i, i + 1).equals(\"R\")) {\n count++;\n }\n }\n s = n1.substring(i, i + 1);\n }\n\n p(String.valueOf(count));\n }\n\n static void p(String s) { System.out.println(s); }\n}", "Main", "public static void main(String[] args) {\n\n\n Scanner sc = new Scanner(System.in);\n String n1 = sc.next();\n\n int count = 0;\n String s = null;\n for (int i = 0; i < 3; i++) {\n if (n1.substring(i, i + 1).equals(s) || count == 0) {\n if(n1.substring(i, i + 1).equals(\"R\")) {\n count++;\n }\n }\n s = n1.substring(i, i + 1);\n }\n\n p(String.valueOf(count));\n }", "main", "{\n\n\n Scanner sc = new Scanner(System.in);\n String n1 = sc.next();\n\n int count = 0;\n String s = null;\n for (int i = 0; i < 3; i++) {\n if (n1.substring(i, i + 1).equals(s) || count == 0) {\n if(n1.substring(i, i + 1).equals(\"R\")) {\n count++;\n }\n }\n s = n1.substring(i, i + 1);\n }\n\n p(String.valueOf(count));\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String n1 = sc.next();", "n1", "sc.next()", "sc.next", "sc", "int count = 0;", "count", "0", "String s = null;", "s", "null", "for (int i = 0; i < 3; i++) {\n if (n1.substring(i, i + 1).equals(s) || count == 0) {\n if(n1.substring(i, i + 1).equals(\"R\")) {\n count++;\n }\n }\n s = n1.substring(i, i + 1);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < 3", "i", "3", "i++", "i++", "i", "{\n if (n1.substring(i, i + 1).equals(s) || count == 0) {\n if(n1.substring(i, i + 1).equals(\"R\")) {\n count++;\n }\n }\n s = n1.substring(i, i + 1);\n }", "{\n if (n1.substring(i, i + 1).equals(s) || count == 0) {\n if(n1.substring(i, i + 1).equals(\"R\")) {\n count++;\n }\n }\n s = n1.substring(i, i + 1);\n }", "if (n1.substring(i, i + 1).equals(s) || count == 0) {\n if(n1.substring(i, i + 1).equals(\"R\")) {\n count++;\n }\n }", "n1.substring(i, i + 1).equals(s) || count == 0", "n1.substring(i, i + 1).equals(s)", "n1.substring(i, i + 1).equals", "n1.substring(i, i + 1)", "n1.substring", "n1", "i", "i + 1", "i", "1", "s", "count == 0", "count", "0", "{\n if(n1.substring(i, i + 1).equals(\"R\")) {\n count++;\n }\n }", "if(n1.substring(i, i + 1).equals(\"R\")) {\n count++;\n }", "n1.substring(i, i + 1).equals(\"R\")", "n1.substring(i, i + 1).equals", "n1.substring(i, i + 1)", "n1.substring", "n1", "i", "i + 1", "i", "1", "\"R\"", "{\n count++;\n }", "count++", "count", "s = n1.substring(i, i + 1)", "s", "n1.substring(i, i + 1)", "n1.substring", "n1", "i", "i + 1", "i", "1", "p(String.valueOf(count))", "p", "String.valueOf(count)", "String.valueOf", "String", "count", "String[] args", "args", "static void p(String s) { System.out.println(s); }", "p", "{ System.out.println(s); }", "System.out.println(s)", "System.out.println", "System.out", "System", "System.out", "s", "String s", "s", "public class Main {\n\n public static void main(String[] args) {\n\n\n Scanner sc = new Scanner(System.in);\n String n1 = sc.next();\n\n int count = 0;\n String s = null;\n for (int i = 0; i < 3; i++) {\n if (n1.substring(i, i + 1).equals(s) || count == 0) {\n if(n1.substring(i, i + 1).equals(\"R\")) {\n count++;\n }\n }\n s = n1.substring(i, i + 1);\n }\n\n p(String.valueOf(count));\n }\n\n static void p(String s) { System.out.println(s); }\n}", "public class Main {\n\n public static void main(String[] args) {\n\n\n Scanner sc = new Scanner(System.in);\n String n1 = sc.next();\n\n int count = 0;\n String s = null;\n for (int i = 0; i < 3; i++) {\n if (n1.substring(i, i + 1).equals(s) || count == 0) {\n if(n1.substring(i, i + 1).equals(\"R\")) {\n count++;\n }\n }\n s = n1.substring(i, i + 1);\n }\n\n p(String.valueOf(count));\n }\n\n static void p(String s) { System.out.println(s); }\n}", "Main" ]
import org.w3c.dom.ls.LSInput; import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String n1 = sc.next(); int count = 0; String s = null; for (int i = 0; i < 3; i++) { if (n1.substring(i, i + 1).equals(s) || count == 0) { if(n1.substring(i, i + 1).equals("R")) { count++; } } s = n1.substring(i, i + 1); } p(String.valueOf(count)); } static void p(String s) { System.out.println(s); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 4, 18, 13, 23, 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, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 17, 30, 40, 13, 0, 13, 4, 18, 13, 13, 13, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 17, 0, 13, 20, 12, 13, 30, 14, 2, 2, 13, 17, 40, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 0, 13, 17, 41, 13, 17, 0, 13, 4, 18, 13, 29, 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, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 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 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 221, 14 ], [ 221, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 22, 23 ], [ 15, 24 ], [ 24, 25 ], [ 221, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 28, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 28, 37 ], [ 37, 38 ], [ 37, 39 ], [ 28, 40 ], [ 40, 41 ], [ 40, 42 ], [ 28, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 43, 53 ], [ 53, 54 ], [ 54, 55 ], [ 43, 56 ], [ 57, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 59, 64 ], [ 58, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 70, 74 ], [ 58, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 28, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 221, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 85, 89 ], [ 89, 90 ], [ 85, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 97, 99 ], [ 85, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 104, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 103, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 102, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 85, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 122, 126 ], [ 126, 127 ], [ 126, 128 ], [ 122, 129 ], [ 129, 130 ], [ 129, 131 ], [ 131, 132 ], [ 132, 133 ], [ 122, 134 ], [ 134, 135 ], [ 85, 136 ], [ 136, 137 ], [ 136, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 140, 143 ], [ 143, 144 ], [ 85, 145 ], [ 145, 146 ], [ 145, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 149, 152 ], [ 152, 153 ], [ 85, 154 ], [ 154, 155 ], [ 154, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 156, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 163, 165 ], [ 161, 166 ], [ 166, 167 ], [ 166, 168 ], [ 161, 169 ], [ 169, 170 ], [ 170, 171 ], [ 161, 172 ], [ 173, 173 ], [ 173, 174 ], [ 174, 175 ], [ 175, 176 ], [ 175, 177 ], [ 174, 178 ], [ 178, 179 ], [ 156, 180 ], [ 180, 181 ], [ 154, 182 ], [ 182, 183 ], [ 85, 184 ], [ 184, 185 ], [ 184, 186 ], [ 186, 187 ], [ 187, 188 ], [ 187, 189 ], [ 186, 191 ], [ 191, 192 ], [ 192, 193 ], [ 193, 194 ], [ 193, 195 ], [ 191, 196 ], [ 196, 197 ], [ 196, 198 ], [ 191, 199 ], [ 199, 200 ], [ 200, 201 ], [ 191, 202 ], [ 203, 203 ], [ 203, 204 ], [ 204, 205 ], [ 205, 206 ], [ 205, 207 ], [ 204, 208 ], [ 208, 209 ], [ 186, 210 ], [ 210, 211 ], [ 184, 212 ], [ 212, 213 ], [ 85, 214 ], [ 214, 215 ], [ 214, 216 ], [ 216, 217 ], [ 217, 218 ], [ 218, 219 ], [ 0, 220 ], [ 220, 221 ], [ 220, 222 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tMain mainObj = new Main();\n\t\tmainObj.solve();\n\t}\n\n\tpublic void solve() throws IOException {\n\t\tFastScanner fs = new FastScanner();\n\t\t\n\t\tString s = fs.next();\n\t\t\n\t\tint maxSeq = 0;\n\t\tint nowSeq = 0;\n\t\t\n\t\tfor(int i = 0; i < s.length(); i++) {\n\t\t\t\n\t\t\tif(s.charAt(i) == 'R') {\n\t\t\t\tnowSeq++;\n\t\t\t\tmaxSeq = Math.max(maxSeq, nowSeq);\n\t\t\t}else {\n\t\t\t\tnowSeq= 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(maxSeq);\n\t}\n\n\t\n\n\tpublic class FastScanner {\n\n\t\tBufferedReader reader;\n\t\tprivate StringTokenizer st;\n\n\t\tpublic FastScanner() {\n\t\t\tst = null;\n\t\t\treader = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\n\t\tpublic String next() throws IOException {\n\t\t\tif (st == null || !st.hasMoreElements()) {\n\t\t\t\tst = new StringTokenizer(reader.readLine());\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic String nextLine() throws IOException {\n\t\t\tst = null;\n\t\t\tString readLine = null;\n\t\t\treadLine = reader.readLine();\n\t\t\treturn readLine;\n\t\t}\n\n\t\tpublic int nextInt() throws NumberFormatException, IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic long nextLong() throws NumberFormatException, IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic int[] nextIntArr(int n) throws NumberFormatException, IOException {\n\t\t\tint[] retArr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tretArr[i] = nextInt();\n\t\t\t}\n\t\t\treturn retArr;\n\t\t}\n\n\t\tpublic long[] nextLongArr(int n) throws NumberFormatException, IOException {\n\t\t\tlong[] retArr = new long[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tretArr[i] = nextLong();\n\t\t\t}\n\t\t\treturn retArr;\n\t\t}\n\n\t\tpublic void close() throws IOException {\n\t\t\treader.close();\n\t\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", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tMain mainObj = new Main();\n\t\tmainObj.solve();\n\t}\n\n\tpublic void solve() throws IOException {\n\t\tFastScanner fs = new FastScanner();\n\t\t\n\t\tString s = fs.next();\n\t\t\n\t\tint maxSeq = 0;\n\t\tint nowSeq = 0;\n\t\t\n\t\tfor(int i = 0; i < s.length(); i++) {\n\t\t\t\n\t\t\tif(s.charAt(i) == 'R') {\n\t\t\t\tnowSeq++;\n\t\t\t\tmaxSeq = Math.max(maxSeq, nowSeq);\n\t\t\t}else {\n\t\t\t\tnowSeq= 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(maxSeq);\n\t}\n\n\t\n\n\tpublic class FastScanner {\n\n\t\tBufferedReader reader;\n\t\tprivate StringTokenizer st;\n\n\t\tpublic FastScanner() {\n\t\t\tst = null;\n\t\t\treader = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\n\t\tpublic String next() throws IOException {\n\t\t\tif (st == null || !st.hasMoreElements()) {\n\t\t\t\tst = new StringTokenizer(reader.readLine());\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic String nextLine() throws IOException {\n\t\t\tst = null;\n\t\t\tString readLine = null;\n\t\t\treadLine = reader.readLine();\n\t\t\treturn readLine;\n\t\t}\n\n\t\tpublic int nextInt() throws NumberFormatException, IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic long nextLong() throws NumberFormatException, IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic int[] nextIntArr(int n) throws NumberFormatException, IOException {\n\t\t\tint[] retArr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tretArr[i] = nextInt();\n\t\t\t}\n\t\t\treturn retArr;\n\t\t}\n\n\t\tpublic long[] nextLongArr(int n) throws NumberFormatException, IOException {\n\t\t\tlong[] retArr = new long[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tretArr[i] = nextLong();\n\t\t\t}\n\t\t\treturn retArr;\n\t\t}\n\n\t\tpublic void close() throws IOException {\n\t\t\treader.close();\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tMain mainObj = new Main();\n\t\tmainObj.solve();\n\t}", "main", "{\n\t\tMain mainObj = new Main();\n\t\tmainObj.solve();\n\t}", "Main mainObj = new Main();", "mainObj", "new Main()", "mainObj.solve()", "mainObj.solve", "mainObj", "String[] args", "args", "public void solve() throws IOException {\n\t\tFastScanner fs = new FastScanner();\n\t\t\n\t\tString s = fs.next();\n\t\t\n\t\tint maxSeq = 0;\n\t\tint nowSeq = 0;\n\t\t\n\t\tfor(int i = 0; i < s.length(); i++) {\n\t\t\t\n\t\t\tif(s.charAt(i) == 'R') {\n\t\t\t\tnowSeq++;\n\t\t\t\tmaxSeq = Math.max(maxSeq, nowSeq);\n\t\t\t}else {\n\t\t\t\tnowSeq= 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(maxSeq);\n\t}", "solve", "{\n\t\tFastScanner fs = new FastScanner();\n\t\t\n\t\tString s = fs.next();\n\t\t\n\t\tint maxSeq = 0;\n\t\tint nowSeq = 0;\n\t\t\n\t\tfor(int i = 0; i < s.length(); i++) {\n\t\t\t\n\t\t\tif(s.charAt(i) == 'R') {\n\t\t\t\tnowSeq++;\n\t\t\t\tmaxSeq = Math.max(maxSeq, nowSeq);\n\t\t\t}else {\n\t\t\t\tnowSeq= 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(maxSeq);\n\t}", "FastScanner fs = new FastScanner();", "fs", "new FastScanner()", "String s = fs.next();", "s", "fs.next()", "fs.next", "fs", "int maxSeq = 0;", "maxSeq", "0", "int nowSeq = 0;", "nowSeq", "0", "for(int i = 0; i < s.length(); i++) {\n\t\t\t\n\t\t\tif(s.charAt(i) == 'R') {\n\t\t\t\tnowSeq++;\n\t\t\t\tmaxSeq = Math.max(maxSeq, nowSeq);\n\t\t\t}else {\n\t\t\t\tnowSeq= 0;\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < s.length()", "i", "s.length()", "s.length", "s", "i++", "i++", "i", "{\n\t\t\t\n\t\t\tif(s.charAt(i) == 'R') {\n\t\t\t\tnowSeq++;\n\t\t\t\tmaxSeq = Math.max(maxSeq, nowSeq);\n\t\t\t}else {\n\t\t\t\tnowSeq= 0;\n\t\t\t}\n\t\t}", "{\n\t\t\t\n\t\t\tif(s.charAt(i) == 'R') {\n\t\t\t\tnowSeq++;\n\t\t\t\tmaxSeq = Math.max(maxSeq, nowSeq);\n\t\t\t}else {\n\t\t\t\tnowSeq= 0;\n\t\t\t}\n\t\t}", "if(s.charAt(i) == 'R') {\n\t\t\t\tnowSeq++;\n\t\t\t\tmaxSeq = Math.max(maxSeq, nowSeq);\n\t\t\t}else {\n\t\t\t\tnowSeq= 0;\n\t\t\t}", "s.charAt(i) == 'R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "{\n\t\t\t\tnowSeq++;\n\t\t\t\tmaxSeq = Math.max(maxSeq, nowSeq);\n\t\t\t}", "nowSeq++", "nowSeq", "maxSeq = Math.max(maxSeq, nowSeq)", "maxSeq", "Math.max(maxSeq, nowSeq)", "Math.max", "Math", "maxSeq", "nowSeq", "{\n\t\t\t\tnowSeq= 0;\n\t\t\t}", "nowSeq= 0", "nowSeq", "0", "System.out.println(maxSeq)", "System.out.println", "System.out", "System", "System.out", "maxSeq", "public class FastScanner {\n\n\t\tBufferedReader reader;\n\t\tprivate StringTokenizer st;\n\n\t\tpublic FastScanner() {\n\t\t\tst = null;\n\t\t\treader = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\n\t\tpublic String next() throws IOException {\n\t\t\tif (st == null || !st.hasMoreElements()) {\n\t\t\t\tst = new StringTokenizer(reader.readLine());\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic String nextLine() throws IOException {\n\t\t\tst = null;\n\t\t\tString readLine = null;\n\t\t\treadLine = reader.readLine();\n\t\t\treturn readLine;\n\t\t}\n\n\t\tpublic int nextInt() throws NumberFormatException, IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic long nextLong() throws NumberFormatException, IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic int[] nextIntArr(int n) throws NumberFormatException, IOException {\n\t\t\tint[] retArr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tretArr[i] = nextInt();\n\t\t\t}\n\t\t\treturn retArr;\n\t\t}\n\n\t\tpublic long[] nextLongArr(int n) throws NumberFormatException, IOException {\n\t\t\tlong[] retArr = new long[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tretArr[i] = nextLong();\n\t\t\t}\n\t\t\treturn retArr;\n\t\t}\n\n\t\tpublic void close() throws IOException {\n\t\t\treader.close();\n\t\t}\n\t}", "FastScanner", "BufferedReader reader;", "reader", "private StringTokenizer st;", "st", "public FastScanner() {\n\t\t\tst = null;\n\t\t\treader = new BufferedReader(new InputStreamReader(System.in));\n\t\t}", "FastScanner", "{\n\t\t\tst = null;\n\t\t\treader = new BufferedReader(new InputStreamReader(System.in));\n\t\t}", "st = null", "st", "null", "reader = new BufferedReader(new InputStreamReader(System.in))", "reader", "new BufferedReader(new InputStreamReader(System.in))", "public String next() throws IOException {\n\t\t\tif (st == null || !st.hasMoreElements()) {\n\t\t\t\tst = new StringTokenizer(reader.readLine());\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}", "next", "{\n\t\t\tif (st == null || !st.hasMoreElements()) {\n\t\t\t\tst = new StringTokenizer(reader.readLine());\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}", "if (st == null || !st.hasMoreElements()) {\n\t\t\t\tst = new StringTokenizer(reader.readLine());\n\t\t\t}", "st == null || !st.hasMoreElements()", "st == null", "st", "null", "!st.hasMoreElements()", "st.hasMoreElements()", "st.hasMoreElements", "st", "{\n\t\t\t\tst = new StringTokenizer(reader.readLine());\n\t\t\t}", "st = new StringTokenizer(reader.readLine())", "st", "new StringTokenizer(reader.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "public String nextLine() throws IOException {\n\t\t\tst = null;\n\t\t\tString readLine = null;\n\t\t\treadLine = reader.readLine();\n\t\t\treturn readLine;\n\t\t}", "nextLine", "{\n\t\t\tst = null;\n\t\t\tString readLine = null;\n\t\t\treadLine = reader.readLine();\n\t\t\treturn readLine;\n\t\t}", "st = null", "st", "null", "String readLine = null;", "readLine", "null", "readLine = reader.readLine()", "readLine", "reader.readLine()", "reader.readLine", "reader", "return readLine;", "readLine", "public int nextInt() throws NumberFormatException, IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}", "nextInt", "{\n\t\t\treturn Integer.parseInt(next());\n\t\t}", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "public long nextLong() throws NumberFormatException, IOException {\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 int[] nextIntArr(int n) throws NumberFormatException, IOException {\n\t\t\tint[] retArr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tretArr[i] = nextInt();\n\t\t\t}\n\t\t\treturn retArr;\n\t\t}", "nextIntArr", "{\n\t\t\tint[] retArr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tretArr[i] = nextInt();\n\t\t\t}\n\t\t\treturn retArr;\n\t\t}", "int[] retArr = new int[n];", "retArr", "new int[n]", "n", "for (int i = 0; i < n; i++) {\n\t\t\t\tretArr[i] = nextInt();\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tretArr[i] = nextInt();\n\t\t\t}", "{\n\t\t\t\tretArr[i] = nextInt();\n\t\t\t}", "retArr[i] = nextInt()", "retArr[i]", "retArr", "i", "nextInt()", "nextInt", "return retArr;", "retArr", "int n", "n", "public long[] nextLongArr(int n) throws NumberFormatException, IOException {\n\t\t\tlong[] retArr = new long[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tretArr[i] = nextLong();\n\t\t\t}\n\t\t\treturn retArr;\n\t\t}", "nextLongArr", "{\n\t\t\tlong[] retArr = new long[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tretArr[i] = nextLong();\n\t\t\t}\n\t\t\treturn retArr;\n\t\t}", "long[] retArr = new long[n];", "retArr", "new long[n]", "n", "for (int i = 0; i < n; i++) {\n\t\t\t\tretArr[i] = nextLong();\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tretArr[i] = nextLong();\n\t\t\t}", "{\n\t\t\t\tretArr[i] = nextLong();\n\t\t\t}", "retArr[i] = nextLong()", "retArr[i]", "retArr", "i", "nextLong()", "nextLong", "return retArr;", "retArr", "int n", "n", "public void close() throws IOException {\n\t\t\treader.close();\n\t\t}", "close", "{\n\t\t\treader.close();\n\t\t}", "reader.close()", "reader.close", "reader", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tMain mainObj = new Main();\n\t\tmainObj.solve();\n\t}\n\n\tpublic void solve() throws IOException {\n\t\tFastScanner fs = new FastScanner();\n\t\t\n\t\tString s = fs.next();\n\t\t\n\t\tint maxSeq = 0;\n\t\tint nowSeq = 0;\n\t\t\n\t\tfor(int i = 0; i < s.length(); i++) {\n\t\t\t\n\t\t\tif(s.charAt(i) == 'R') {\n\t\t\t\tnowSeq++;\n\t\t\t\tmaxSeq = Math.max(maxSeq, nowSeq);\n\t\t\t}else {\n\t\t\t\tnowSeq= 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(maxSeq);\n\t}\n\n\t\n\n\tpublic class FastScanner {\n\n\t\tBufferedReader reader;\n\t\tprivate StringTokenizer st;\n\n\t\tpublic FastScanner() {\n\t\t\tst = null;\n\t\t\treader = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\n\t\tpublic String next() throws IOException {\n\t\t\tif (st == null || !st.hasMoreElements()) {\n\t\t\t\tst = new StringTokenizer(reader.readLine());\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic String nextLine() throws IOException {\n\t\t\tst = null;\n\t\t\tString readLine = null;\n\t\t\treadLine = reader.readLine();\n\t\t\treturn readLine;\n\t\t}\n\n\t\tpublic int nextInt() throws NumberFormatException, IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic long nextLong() throws NumberFormatException, IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic int[] nextIntArr(int n) throws NumberFormatException, IOException {\n\t\t\tint[] retArr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tretArr[i] = nextInt();\n\t\t\t}\n\t\t\treturn retArr;\n\t\t}\n\n\t\tpublic long[] nextLongArr(int n) throws NumberFormatException, IOException {\n\t\t\tlong[] retArr = new long[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tretArr[i] = nextLong();\n\t\t\t}\n\t\t\treturn retArr;\n\t\t}\n\n\t\tpublic void close() throws IOException {\n\t\t\treader.close();\n\t\t}\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tMain mainObj = new Main();\n\t\tmainObj.solve();\n\t}\n\n\tpublic void solve() throws IOException {\n\t\tFastScanner fs = new FastScanner();\n\t\t\n\t\tString s = fs.next();\n\t\t\n\t\tint maxSeq = 0;\n\t\tint nowSeq = 0;\n\t\t\n\t\tfor(int i = 0; i < s.length(); i++) {\n\t\t\t\n\t\t\tif(s.charAt(i) == 'R') {\n\t\t\t\tnowSeq++;\n\t\t\t\tmaxSeq = Math.max(maxSeq, nowSeq);\n\t\t\t}else {\n\t\t\t\tnowSeq= 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(maxSeq);\n\t}\n\n\t\n\n\tpublic class FastScanner {\n\n\t\tBufferedReader reader;\n\t\tprivate StringTokenizer st;\n\n\t\tpublic FastScanner() {\n\t\t\tst = null;\n\t\t\treader = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\n\t\tpublic String next() throws IOException {\n\t\t\tif (st == null || !st.hasMoreElements()) {\n\t\t\t\tst = new StringTokenizer(reader.readLine());\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic String nextLine() throws IOException {\n\t\t\tst = null;\n\t\t\tString readLine = null;\n\t\t\treadLine = reader.readLine();\n\t\t\treturn readLine;\n\t\t}\n\n\t\tpublic int nextInt() throws NumberFormatException, IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic long nextLong() throws NumberFormatException, IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic int[] nextIntArr(int n) throws NumberFormatException, IOException {\n\t\t\tint[] retArr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tretArr[i] = nextInt();\n\t\t\t}\n\t\t\treturn retArr;\n\t\t}\n\n\t\tpublic long[] nextLongArr(int n) throws NumberFormatException, IOException {\n\t\t\tlong[] retArr = new long[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tretArr[i] = nextLong();\n\t\t\t}\n\t\t\treturn retArr;\n\t\t}\n\n\t\tpublic void close() throws IOException {\n\t\t\treader.close();\n\t\t}\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { public static void main(String[] args) throws IOException { Main mainObj = new Main(); mainObj.solve(); } public void solve() throws IOException { FastScanner fs = new FastScanner(); String s = fs.next(); int maxSeq = 0; int nowSeq = 0; for(int i = 0; i < s.length(); i++) { if(s.charAt(i) == 'R') { nowSeq++; maxSeq = Math.max(maxSeq, nowSeq); }else { nowSeq= 0; } } System.out.println(maxSeq); } public class FastScanner { BufferedReader reader; private StringTokenizer st; public FastScanner() { st = null; reader = new BufferedReader(new InputStreamReader(System.in)); } public String next() throws IOException { if (st == null || !st.hasMoreElements()) { st = new StringTokenizer(reader.readLine()); } return st.nextToken(); } public String nextLine() throws IOException { st = null; String readLine = null; readLine = reader.readLine(); return readLine; } public int nextInt() throws NumberFormatException, IOException { return Integer.parseInt(next()); } public long nextLong() throws NumberFormatException, IOException { return Long.parseLong(next()); } public int[] nextIntArr(int n) throws NumberFormatException, IOException { int[] retArr = new int[n]; for (int i = 0; i < n; i++) { retArr[i] = nextInt(); } return retArr; } public long[] nextLongArr(int n) throws NumberFormatException, IOException { long[] retArr = new long[n]; for (int i = 0; i < n; i++) { retArr[i] = nextLong(); } return retArr; } public void close() throws IOException { reader.close(); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 20, 41, 13, 41, 13, 20, 2, 17, 17, 41, 13, 41, 13, 18, 13, 13, 41, 13, 41, 13, 20, 17, 12, 13, 30, 41, 13, 20, 41, 13, 4, 13, 42, 4, 13, 13, 0, 13, 4, 13, 42, 40, 4, 13, 13, 30, 4, 18, 13, 13, 0, 13, 4, 13, 29, 4, 18, 13, 12, 13, 30, 14, 2, 13, 17, 37, 20, 14, 2, 13, 13, 30, 0, 13, 17, 0, 13, 4, 18, 13, 13, 14, 2, 13, 17, 29, 40, 17, 29, 18, 13, 40, 13, 12, 13, 30, 41, 13, 17, 41, 13, 4, 13, 42, 4, 13, 13, 0, 13, 4, 13, 41, 13, 17, 14, 2, 13, 17, 30, 0, 13, 40, 17, 0, 13, 4, 13, 42, 40, 4, 13, 13, 30, 14, 2, 2, 13, 17, 2, 13, 17, 30, 0, 13, 17, 0, 13, 2, 13, 17, 0, 13, 4, 13, 37, 20, 29, 2, 13, 13, 12, 13, 30, 41, 13, 17, 41, 13, 4, 13, 42, 4, 13, 13, 0, 13, 4, 13, 41, 13, 17, 14, 2, 13, 17, 30, 0, 13, 40, 17, 0, 13, 4, 13, 42, 40, 4, 13, 13, 30, 14, 2, 2, 13, 17, 2, 13, 17, 30, 0, 13, 17, 0, 13, 2, 13, 17, 0, 13, 4, 13, 37, 20, 29, 2, 13, 13, 12, 13, 30, 41, 13, 17, 41, 13, 4, 13, 42, 4, 13, 13, 0, 13, 4, 13, 41, 13, 17, 14, 2, 13, 17, 30, 0, 13, 40, 17, 0, 13, 4, 13, 42, 2, 40, 4, 13, 13, 2, 13, 17, 30, 14, 2, 2, 13, 17, 2, 13, 17, 30, 0, 13, 17, 0, 13, 2, 13, 17, 0, 13, 4, 13, 37, 20, 14, 2, 13, 17, 30, 0, 13, 4, 13, 41, 13, 17, 42, 40, 4, 13, 13, 30, 14, 2, 2, 13, 17, 2, 13, 17, 30, 0, 13, 17, 0, 13, 2, 2, 13, 17, 13, 0, 13, 4, 13, 37, 20, 29, 2, 13, 13, 12, 13, 30, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 29, 13, 12, 13, 30, 14, 2, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 40, 17, 29, 17, 29, 17, 23, 13, 12, 13, 30, 4, 18, 13, 13, 23, 13, 12, 13, 30, 4, 13, 13, 4, 18, 13, 17, 23, 13, 12, 13, 30, 4, 18, 13, 12, 13, 30, 4, 18, 13, 12, 13, 30, 41, 13, 17, 11, 1, 41, 13, 17, 2, 2, 13, 13, 13, 1, 40, 13, 30, 30, 14, 40, 18, 13, 13, 30, 11, 1, 41, 13, 2, 13, 17, 2, 13, 13, 1, 0, 13, 13, 30, 30, 0, 18, 13, 13, 17, 12, 13, 30, 41, 13, 4, 13, 14, 2, 4, 18, 13, 17, 17, 30, 14, 2, 4, 18, 13, 17, 17, 30, 14, 2, 4, 18, 13, 17, 17, 4, 13, 17, 14, 2, 4, 18, 13, 17, 17, 4, 13, 17, 14, 2, 4, 18, 13, 17, 17, 30, 14, 2, 4, 18, 13, 17, 17, 4, 13, 17, 14, 2, 4, 18, 13, 17, 17, 4, 13, 17, 14, 2, 4, 18, 13, 17, 17, 30, 14, 2, 4, 18, 13, 17, 17, 30, 14, 2, 4, 18, 13, 17, 17, 4, 13, 17, 14, 2, 4, 18, 13, 17, 17, 4, 13, 17, 14, 2, 4, 18, 13, 17, 17, 30, 14, 2, 4, 18, 13, 17, 17, 4, 13, 17, 14, 2, 4, 18, 13, 17, 17, 4, 13, 17, 4, 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, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 650, 8 ], [ 650, 9 ], [ 9, 10 ], [ 9, 11 ], [ 650, 12 ], [ 12, 13 ], [ 12, 14 ], [ 650, 15 ], [ 15, 16 ], [ 650, 17 ], [ 17, 18 ], [ 17, 19 ], [ 20, 21 ], [ 20, 22 ], [ 650, 23 ], [ 23, 24 ], [ 650, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 27, 29 ], [ 650, 30 ], [ 30, 31 ], [ 650, 32 ], [ 32, 33 ], [ 32, 34 ], [ 650, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 38, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 38, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 59, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 38, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 650, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 79, 80 ], [ 74, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 92, 93 ], [ 91, 94 ], [ 85, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 99, 100 ], [ 100, 101 ], [ 74, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 650, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 109, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 109, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 117, 121 ], [ 121, 122 ], [ 121, 123 ], [ 123, 124 ], [ 109, 125 ], [ 125, 126 ], [ 125, 127 ], [ 109, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 128, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 135, 136 ], [ 132, 137 ], [ 137, 138 ], [ 137, 139 ], [ 139, 140 ], [ 109, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 141, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 149, 151 ], [ 148, 152 ], [ 152, 153 ], [ 152, 154 ], [ 147, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 155, 159 ], [ 159, 160 ], [ 159, 161 ], [ 161, 162 ], [ 161, 163 ], [ 155, 164 ], [ 164, 165 ], [ 164, 166 ], [ 166, 167 ], [ 147, 168 ], [ 168, 169 ], [ 109, 170 ], [ 170, 171 ], [ 171, 172 ], [ 171, 173 ], [ 650, 174 ], [ 174, 175 ], [ 174, 176 ], [ 176, 177 ], [ 177, 178 ], [ 177, 179 ], [ 176, 180 ], [ 180, 181 ], [ 180, 182 ], [ 182, 183 ], [ 176, 184 ], [ 184, 185 ], [ 185, 186 ], [ 185, 187 ], [ 184, 188 ], [ 188, 189 ], [ 188, 190 ], [ 190, 191 ], [ 176, 192 ], [ 192, 193 ], [ 192, 194 ], [ 176, 195 ], [ 195, 196 ], [ 196, 197 ], [ 196, 198 ], [ 195, 199 ], [ 199, 200 ], [ 200, 201 ], [ 200, 202 ], [ 202, 203 ], [ 199, 204 ], [ 204, 205 ], [ 204, 206 ], [ 206, 207 ], [ 176, 208 ], [ 208, 209 ], [ 209, 210 ], [ 210, 211 ], [ 210, 212 ], [ 208, 213 ], [ 213, 214 ], [ 214, 215 ], [ 215, 216 ], [ 216, 217 ], [ 216, 218 ], [ 215, 219 ], [ 219, 220 ], [ 219, 221 ], [ 214, 222 ], [ 222, 223 ], [ 223, 224 ], [ 223, 225 ], [ 222, 226 ], [ 226, 227 ], [ 226, 228 ], [ 228, 229 ], [ 228, 230 ], [ 222, 231 ], [ 231, 232 ], [ 231, 233 ], [ 233, 234 ], [ 214, 235 ], [ 235, 236 ], [ 176, 237 ], [ 237, 238 ], [ 238, 239 ], [ 238, 240 ], [ 650, 241 ], [ 241, 242 ], [ 241, 243 ], [ 243, 244 ], [ 244, 245 ], [ 244, 246 ], [ 243, 247 ], [ 247, 248 ], [ 247, 249 ], [ 249, 250 ], [ 243, 251 ], [ 251, 252 ], [ 252, 253 ], [ 252, 254 ], [ 251, 255 ], [ 255, 256 ], [ 255, 257 ], [ 257, 258 ], [ 243, 259 ], [ 259, 260 ], [ 259, 261 ], [ 243, 262 ], [ 262, 263 ], [ 263, 264 ], [ 263, 265 ], [ 262, 266 ], [ 266, 267 ], [ 267, 268 ], [ 267, 269 ], [ 269, 270 ], [ 266, 271 ], [ 271, 272 ], [ 271, 273 ], [ 273, 274 ], [ 243, 275 ], [ 275, 276 ], [ 276, 277 ], [ 277, 278 ], [ 278, 279 ], [ 278, 280 ], [ 276, 281 ], [ 281, 282 ], [ 281, 283 ], [ 275, 284 ], [ 284, 285 ], [ 285, 286 ], [ 286, 287 ], [ 287, 288 ], [ 287, 289 ], [ 286, 290 ], [ 290, 291 ], [ 290, 292 ], [ 285, 293 ], [ 293, 294 ], [ 294, 295 ], [ 294, 296 ], [ 293, 297 ], [ 297, 298 ], [ 297, 299 ], [ 299, 300 ], [ 299, 301 ], [ 293, 302 ], [ 302, 303 ], [ 302, 304 ], [ 304, 305 ], [ 285, 306 ], [ 306, 307 ], [ 243, 308 ], [ 308, 309 ], [ 309, 310 ], [ 309, 311 ], [ 308, 312 ], [ 312, 313 ], [ 313, 314 ], [ 313, 315 ], [ 315, 316 ], [ 312, 317 ], [ 317, 318 ], [ 317, 319 ], [ 312, 320 ], [ 320, 321 ], [ 321, 322 ], [ 322, 323 ], [ 322, 324 ], [ 320, 325 ], [ 325, 326 ], [ 326, 327 ], [ 327, 328 ], [ 328, 329 ], [ 328, 330 ], [ 327, 331 ], [ 331, 332 ], [ 331, 333 ], [ 326, 334 ], [ 334, 335 ], [ 335, 336 ], [ 335, 337 ], [ 334, 338 ], [ 338, 339 ], [ 338, 340 ], [ 340, 341 ], [ 341, 342 ], [ 341, 343 ], [ 340, 344 ], [ 334, 345 ], [ 345, 346 ], [ 345, 347 ], [ 347, 348 ], [ 326, 349 ], [ 349, 350 ], [ 243, 351 ], [ 351, 352 ], [ 352, 353 ], [ 352, 354 ], [ 650, 355 ], [ 355, 356 ], [ 355, 357 ], [ 357, 358 ], [ 358, 359 ], [ 358, 360 ], [ 357, 361 ], [ 361, 362 ], [ 362, 363 ], [ 362, 364 ], [ 364, 365 ], [ 365, 366 ], [ 366, 367 ], [ 361, 368 ], [ 368, 369 ], [ 369, 370 ], [ 369, 371 ], [ 371, 372 ], [ 372, 373 ], [ 357, 374 ], [ 374, 375 ], [ 650, 376 ], [ 376, 377 ], [ 376, 378 ], [ 378, 379 ], [ 379, 380 ], [ 383, 381 ], [ 393, 382 ], [ 390, 383 ], [ 383, 384 ], [ 384, 385 ], [ 384, 386 ], [ 383, 387 ], [ 387, 388 ], [ 387, 389 ], [ 390, 390 ], [ 390, 391 ], [ 390, 392 ], [ 393, 393 ], [ 393, 394 ], [ 393, 395 ], [ 383, 396 ], [ 396, 397 ], [ 396, 398 ], [ 398, 399 ], [ 379, 400 ], [ 400, 401 ], [ 378, 402 ], [ 402, 403 ], [ 376, 404 ], [ 404, 405 ], [ 650, 406 ], [ 406, 407 ], [ 406, 408 ], [ 408, 409 ], [ 409, 410 ], [ 410, 411 ], [ 409, 412 ], [ 406, 413 ], [ 413, 414 ], [ 650, 415 ], [ 415, 416 ], [ 415, 417 ], [ 417, 418 ], [ 418, 419 ], [ 418, 420 ], [ 417, 421 ], [ 421, 422 ], [ 422, 423 ], [ 421, 424 ], [ 415, 425 ], [ 425, 426 ], [ 650, 427 ], [ 427, 428 ], [ 427, 429 ], [ 429, 430 ], [ 430, 431 ], [ 431, 432 ], [ 650, 433 ], [ 433, 434 ], [ 433, 435 ], [ 435, 436 ], [ 436, 437 ], [ 437, 438 ], [ 650, 439 ], [ 439, 440 ], [ 439, 441 ], [ 441, 442 ], [ 442, 443 ], [ 442, 444 ], [ 441, 445 ], [ 445, 446 ], [ 446, 447 ], [ 447, 448 ], [ 447, 449 ], [ 445, 450 ], [ 450, 451 ], [ 451, 452 ], [ 451, 453 ], [ 450, 454 ], [ 445, 455 ], [ 455, 456 ], [ 456, 457 ], [ 445, 458 ], [ 459, 459 ], [ 459, 460 ], [ 460, 461 ], [ 461, 462 ], [ 462, 463 ], [ 462, 464 ], [ 460, 465 ], [ 465, 466 ], [ 466, 467 ], [ 467, 468 ], [ 468, 469 ], [ 468, 470 ], [ 470, 471 ], [ 470, 472 ], [ 466, 473 ], [ 473, 474 ], [ 473, 475 ], [ 466, 476 ], [ 476, 477 ], [ 477, 478 ], [ 477, 479 ], [ 466, 480 ], [ 481, 481 ], [ 481, 482 ], [ 482, 483 ], [ 483, 484 ], [ 483, 485 ], [ 482, 486 ], [ 650, 487 ], [ 487, 488 ], [ 487, 489 ], [ 489, 490 ], [ 490, 491 ], [ 490, 492 ], [ 492, 493 ], [ 489, 494 ], [ 494, 495 ], [ 495, 496 ], [ 496, 497 ], [ 497, 498 ], [ 496, 499 ], [ 495, 500 ], [ 494, 501 ], [ 501, 502 ], [ 502, 503 ], [ 503, 504 ], [ 504, 505 ], [ 505, 506 ], [ 504, 507 ], [ 503, 508 ], [ 502, 509 ], [ 509, 510 ], [ 510, 511 ], [ 511, 512 ], [ 512, 513 ], [ 513, 514 ], [ 512, 515 ], [ 511, 516 ], [ 510, 517 ], [ 517, 518 ], [ 517, 519 ], [ 510, 520 ], [ 520, 521 ], [ 521, 522 ], [ 522, 523 ], [ 523, 524 ], [ 522, 525 ], [ 521, 526 ], [ 520, 527 ], [ 527, 528 ], [ 527, 529 ], [ 501, 530 ], [ 530, 531 ], [ 531, 532 ], [ 532, 533 ], [ 533, 534 ], [ 532, 535 ], [ 531, 536 ], [ 530, 537 ], [ 537, 538 ], [ 538, 539 ], [ 539, 540 ], [ 540, 541 ], [ 541, 542 ], [ 540, 543 ], [ 539, 544 ], [ 538, 545 ], [ 545, 546 ], [ 545, 547 ], [ 538, 548 ], [ 548, 549 ], [ 549, 550 ], [ 550, 551 ], [ 551, 552 ], [ 550, 553 ], [ 549, 554 ], [ 548, 555 ], [ 555, 556 ], [ 555, 557 ], [ 489, 558 ], [ 558, 559 ], [ 559, 560 ], [ 560, 561 ], [ 561, 562 ], [ 560, 563 ], [ 559, 564 ], [ 558, 565 ], [ 565, 566 ], [ 566, 567 ], [ 567, 568 ], [ 568, 569 ], [ 569, 570 ], [ 568, 571 ], [ 567, 572 ], [ 566, 573 ], [ 573, 574 ], [ 574, 575 ], [ 575, 576 ], [ 576, 577 ], [ 577, 578 ], [ 576, 579 ], [ 575, 580 ], [ 574, 581 ], [ 581, 582 ], [ 581, 583 ], [ 574, 584 ], [ 584, 585 ], [ 585, 586 ], [ 586, 587 ], [ 587, 588 ], [ 586, 589 ], [ 585, 590 ], [ 584, 591 ], [ 591, 592 ], [ 591, 593 ], [ 565, 594 ], [ 594, 595 ], [ 595, 596 ], [ 596, 597 ], [ 597, 598 ], [ 596, 599 ], [ 595, 600 ], [ 594, 601 ], [ 601, 602 ], [ 602, 603 ], [ 603, 604 ], [ 604, 605 ], [ 605, 606 ], [ 604, 607 ], [ 603, 608 ], [ 602, 609 ], [ 609, 610 ], [ 609, 611 ], [ 602, 612 ], [ 612, 613 ], [ 613, 614 ], [ 614, 615 ], [ 615, 616 ], [ 614, 617 ], [ 613, 618 ], [ 612, 619 ], [ 619, 620 ], [ 619, 621 ], [ 489, 622 ], [ 622, 623 ], [ 487, 624 ], [ 624, 625 ], [ 650, 626 ], [ 626, 627 ], [ 626, 628 ], [ 628, 629 ], [ 626, 630 ], [ 630, 631 ], [ 626, 632 ], [ 632, 633 ], [ 632, 634 ], [ 634, 635 ], [ 635, 636 ], [ 636, 637 ], [ 636, 638 ], [ 635, 639 ], [ 634, 640 ], [ 640, 641 ], [ 641, 642 ], [ 641, 643 ], [ 640, 644 ], [ 632, 645 ], [ 645, 646 ], [ 632, 647 ], [ 647, 648 ], [ 0, 649 ], [ 649, 650 ], [ 649, 651 ] ]
[ "import java.util.*;\nimport java.io.*;\npublic class Main {\n///////----------------input----------------//////\n\tstatic BufferedReader br= new BufferedReader(new\n InputStreamReader(System.in)); \n\tstatic BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\tstatic StringTokenizer st; \n\tstatic byte[] buffer =new byte[10*1024];\n\tstatic int index;\n static InputStream input_stream= System.in;\n static int total;\n\t\n\tstatic String ns() throws IOException\n { \n\t\t StringBuilder sb = new StringBuilder();\n int n = read();\n while (isWhiteSpace(n))\n n = read();\n while (!isWhiteSpace(n)) {\n sb.append((char)n);\n n = read();\n }\n return sb.toString();\n } \n\t\n\tstatic int read() throws IOException\n\t{\n\t\tif(total<0)\n throw new InputMismatchException();\n if(index>=total) {\n index=0;\n total= input_stream.read(buffer);\n if(total<=0)\n return -1;\n }\n return buffer[index++];\n\t}\n\tstatic int ni() throws IOException\n { \n\t\tint integer=0;\n int n= read();\n while(isWhiteSpace(n))\n n= read();\n int neg=1;\n if(n=='-') {\n neg=-1;\n n= read();\n }\n while(!isWhiteSpace(n)) {\n if(n>='0'&&n<='9') {\n integer*=10;\n integer+=n-'0';\n n= read();\n }\n else throw new InputMismatchException();\n }\n return neg*integer;\n } \n\n\tstatic long nl() throws IOException\n { \n\t\tlong number=0;\n int n= read();\n while(isWhiteSpace(n))\n n= read();\n long neg=1l;\n if(n=='-') {\n neg=-1l;\n n= read();\n }\n while(!isWhiteSpace(n)) {\n if(n>='0'&&n<='9') {\n number*=10l;\n number+=(long)(n-'0');\n n= read();\n }\n else throw new InputMismatchException();\n }\n return neg*number;\n } \n\n\tstatic double nd() throws IOException\n { \n\t\tdouble doub=0;\n int n= read();\n while(isWhiteSpace(n))\n n= read();\n int neg=1;\n if(n=='-') {\n neg=-1;\n n= read();\n }\n while(!isWhiteSpace(n)&&n!='.') {\n if(n>='0'&&n<='9') {\n doub*=10;\n doub+=n-'0';\n n= read();\n }\n else throw new InputMismatchException();\n }\n\n if(n=='.') {\n n= read();\n double temp=1;\n while(!isWhiteSpace(n)) {\n if(n>='0'&&n<='9') {\n temp/=10;\n doub+=(n-'0')*temp;\n n= read();\n }\n else throw new InputMismatchException();\n }\n }\n return doub*neg;\n } \n\n\tstatic String nsl() throws IOException\n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n }\n\tstatic boolean isWhiteSpace(int n) {\n if(n==' '|| n=='\\n'|| n=='\\r'|| n=='\\t'|| n==-1)\n return true;\n return false;\n }\n\t\n\t///////-------------output-----------------//////\n\tstatic public void p(String str) throws IOException {\n bw.append(str);\n }\n\tstatic public void pn(String str) throws IOException {\n p(str);\n bw.append(\"\\n\");\n }\n\tstatic public void close()throws IOException {\n bw.close();\n }\n\tstatic public void flush()throws IOException {\n bw.flush();\n }\n\t\n\t///////----------THE FAST I/O METHODS ENDS HERE -----------/////////////\n\tstatic class Node{\n\t\tint h;\n\t\tint w;\n\t\tNode(int h,int w)\n\t\t{\n\t\t\tthis.h=h;\n\t\t\tthis.w=w;\n\t\t}\n\t}\n\t\n\tstatic boolean al[]=new boolean[1100000];\n\t public static void prime()\n\t {\n\t int n=1000000;\n\t \n\t for(int i=2;i*i<=n;i++)\n\t {\n\t if(!al[i]){\n\t for(int j=i*2;j<=n;j+=i)\n\t {\n\t al[j]=true;\n\t }\n\t \n\t }\n\t }\n\t }\n\t public static void main(String args[]) throws IOException {\n\t \n\t //write your code here\n\t \n\t String str=ns();\n\t if(str.charAt(0)=='R')\n\t {\n\t\t if(str.charAt(1)=='R')\n\t\t {\n\t\t\t if(str.charAt(2)=='R')\n\t\t\t\t pn(\"3\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"2\");\n\t\t }\n\t\t if(str.charAt(1)=='S')\n\t\t {\n\t\t\t if(str.charAt(2)=='R')\n\t\t\t\t pn(\"1\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"1\");\n\t\t }\n\t }\n\t if(str.charAt(0)=='S')\n\t {\n\t\t if(str.charAt(1)=='R')\n\t\t {\n\t\t\t if(str.charAt(2)=='R')\n\t\t\t\t pn(\"2\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"1\");\n\t\t }\n\t\t if(str.charAt(1)=='S')\n\t\t {\n\t\t\t if(str.charAt(2)=='R')\n\t\t\t\t pn(\"1\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"0\");\n\t\t }\n\t }\n\t flush();\n\t \n\t \n\t \n\t }\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "public class Main {\n///////----------------input----------------//////\n\tstatic BufferedReader br= new BufferedReader(new\n InputStreamReader(System.in)); \n\tstatic BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\tstatic StringTokenizer st; \n\tstatic byte[] buffer =new byte[10*1024];\n\tstatic int index;\n static InputStream input_stream= System.in;\n static int total;\n\t\n\tstatic String ns() throws IOException\n { \n\t\t StringBuilder sb = new StringBuilder();\n int n = read();\n while (isWhiteSpace(n))\n n = read();\n while (!isWhiteSpace(n)) {\n sb.append((char)n);\n n = read();\n }\n return sb.toString();\n } \n\t\n\tstatic int read() throws IOException\n\t{\n\t\tif(total<0)\n throw new InputMismatchException();\n if(index>=total) {\n index=0;\n total= input_stream.read(buffer);\n if(total<=0)\n return -1;\n }\n return buffer[index++];\n\t}\n\tstatic int ni() throws IOException\n { \n\t\tint integer=0;\n int n= read();\n while(isWhiteSpace(n))\n n= read();\n int neg=1;\n if(n=='-') {\n neg=-1;\n n= read();\n }\n while(!isWhiteSpace(n)) {\n if(n>='0'&&n<='9') {\n integer*=10;\n integer+=n-'0';\n n= read();\n }\n else throw new InputMismatchException();\n }\n return neg*integer;\n } \n\n\tstatic long nl() throws IOException\n { \n\t\tlong number=0;\n int n= read();\n while(isWhiteSpace(n))\n n= read();\n long neg=1l;\n if(n=='-') {\n neg=-1l;\n n= read();\n }\n while(!isWhiteSpace(n)) {\n if(n>='0'&&n<='9') {\n number*=10l;\n number+=(long)(n-'0');\n n= read();\n }\n else throw new InputMismatchException();\n }\n return neg*number;\n } \n\n\tstatic double nd() throws IOException\n { \n\t\tdouble doub=0;\n int n= read();\n while(isWhiteSpace(n))\n n= read();\n int neg=1;\n if(n=='-') {\n neg=-1;\n n= read();\n }\n while(!isWhiteSpace(n)&&n!='.') {\n if(n>='0'&&n<='9') {\n doub*=10;\n doub+=n-'0';\n n= read();\n }\n else throw new InputMismatchException();\n }\n\n if(n=='.') {\n n= read();\n double temp=1;\n while(!isWhiteSpace(n)) {\n if(n>='0'&&n<='9') {\n temp/=10;\n doub+=(n-'0')*temp;\n n= read();\n }\n else throw new InputMismatchException();\n }\n }\n return doub*neg;\n } \n\n\tstatic String nsl() throws IOException\n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n }\n\tstatic boolean isWhiteSpace(int n) {\n if(n==' '|| n=='\\n'|| n=='\\r'|| n=='\\t'|| n==-1)\n return true;\n return false;\n }\n\t\n\t///////-------------output-----------------//////\n\tstatic public void p(String str) throws IOException {\n bw.append(str);\n }\n\tstatic public void pn(String str) throws IOException {\n p(str);\n bw.append(\"\\n\");\n }\n\tstatic public void close()throws IOException {\n bw.close();\n }\n\tstatic public void flush()throws IOException {\n bw.flush();\n }\n\t\n\t///////----------THE FAST I/O METHODS ENDS HERE -----------/////////////\n\tstatic class Node{\n\t\tint h;\n\t\tint w;\n\t\tNode(int h,int w)\n\t\t{\n\t\t\tthis.h=h;\n\t\t\tthis.w=w;\n\t\t}\n\t}\n\t\n\tstatic boolean al[]=new boolean[1100000];\n\t public static void prime()\n\t {\n\t int n=1000000;\n\t \n\t for(int i=2;i*i<=n;i++)\n\t {\n\t if(!al[i]){\n\t for(int j=i*2;j<=n;j+=i)\n\t {\n\t al[j]=true;\n\t }\n\t \n\t }\n\t }\n\t }\n\t public static void main(String args[]) throws IOException {\n\t \n\t //write your code here\n\t \n\t String str=ns();\n\t if(str.charAt(0)=='R')\n\t {\n\t\t if(str.charAt(1)=='R')\n\t\t {\n\t\t\t if(str.charAt(2)=='R')\n\t\t\t\t pn(\"3\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"2\");\n\t\t }\n\t\t if(str.charAt(1)=='S')\n\t\t {\n\t\t\t if(str.charAt(2)=='R')\n\t\t\t\t pn(\"1\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"1\");\n\t\t }\n\t }\n\t if(str.charAt(0)=='S')\n\t {\n\t\t if(str.charAt(1)=='R')\n\t\t {\n\t\t\t if(str.charAt(2)=='R')\n\t\t\t\t pn(\"2\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"1\");\n\t\t }\n\t\t if(str.charAt(1)=='S')\n\t\t {\n\t\t\t if(str.charAt(2)=='R')\n\t\t\t\t pn(\"1\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"0\");\n\t\t }\n\t }\n\t flush();\n\t \n\t \n\t \n\t }\n}", "Main", "///////----------------input----------------//////\n\tstatic BufferedReader br= new BufferedReader(new\n InputStreamReader(System.in));", "br", "new BufferedReader(new\n InputStreamReader(System.in))", "static BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));", "bw", "new BufferedWriter(new OutputStreamWriter(System.out))", "static StringTokenizer st;", "st", "static byte[] buffer =new byte[10*1024];", "buffer", "new byte[10*1024]", "10*1024", "10", "1024", "static int index;", "index", "static InputStream input_stream= System.in;", "input_stream", "System.in", "System", "System.in", "static int total;", "total", "static boolean al[]=new boolean[1100000];", "al", "new boolean[1100000]", "1100000", "static String ns() throws IOException\n { \n\t\t StringBuilder sb = new StringBuilder();\n int n = read();\n while (isWhiteSpace(n))\n n = read();\n while (!isWhiteSpace(n)) {\n sb.append((char)n);\n n = read();\n }\n return sb.toString();\n }", "ns", "{ \n\t\t StringBuilder sb = new StringBuilder();\n int n = read();\n while (isWhiteSpace(n))\n n = read();\n while (!isWhiteSpace(n)) {\n sb.append((char)n);\n n = read();\n }\n return sb.toString();\n }", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "int n = read();", "n", "read()", "read", "while (isWhiteSpace(n))\n n = read();", "isWhiteSpace(n)", "isWhiteSpace", "n", "n = read()", "n", "read()", "read", "while (!isWhiteSpace(n)) {\n sb.append((char)n);\n n = read();\n }", "!isWhiteSpace(n)", "isWhiteSpace(n)", "isWhiteSpace", "n", "{\n sb.append((char)n);\n n = read();\n }", "sb.append((char)n)", "sb.append", "sb", "(char)n", "n = read()", "n", "read()", "read", "return sb.toString();", "sb.toString()", "sb.toString", "sb", "static int read() throws IOException\n\t{\n\t\tif(total<0)\n throw new InputMismatchException();\n if(index>=total) {\n index=0;\n total= input_stream.read(buffer);\n if(total<=0)\n return -1;\n }\n return buffer[index++];\n\t}", "read", "{\n\t\tif(total<0)\n throw new InputMismatchException();\n if(index>=total) {\n index=0;\n total= input_stream.read(buffer);\n if(total<=0)\n return -1;\n }\n return buffer[index++];\n\t}", "if(total<0)\n throw new InputMismatchException();", "total<0", "total", "0", "throw new InputMismatchException();", "new InputMismatchException()", "if(index>=total) {\n index=0;\n total= input_stream.read(buffer);\n if(total<=0)\n return -1;\n }", "index>=total", "index", "total", "{\n index=0;\n total= input_stream.read(buffer);\n if(total<=0)\n return -1;\n }", "index=0", "index", "0", "total= input_stream.read(buffer)", "total", "input_stream.read(buffer)", "input_stream.read", "input_stream", "buffer", "if(total<=0)\n return -1;", "total<=0", "total", "0", "return -1;", "-1", "1", "return buffer[index++];", "buffer[index++]", "buffer", "index++", "index", "static int ni() throws IOException\n { \n\t\tint integer=0;\n int n= read();\n while(isWhiteSpace(n))\n n= read();\n int neg=1;\n if(n=='-') {\n neg=-1;\n n= read();\n }\n while(!isWhiteSpace(n)) {\n if(n>='0'&&n<='9') {\n integer*=10;\n integer+=n-'0';\n n= read();\n }\n else throw new InputMismatchException();\n }\n return neg*integer;\n }", "ni", "{ \n\t\tint integer=0;\n int n= read();\n while(isWhiteSpace(n))\n n= read();\n int neg=1;\n if(n=='-') {\n neg=-1;\n n= read();\n }\n while(!isWhiteSpace(n)) {\n if(n>='0'&&n<='9') {\n integer*=10;\n integer+=n-'0';\n n= read();\n }\n else throw new InputMismatchException();\n }\n return neg*integer;\n }", "int integer=0;", "integer", "0", "int n= read();", "n", "read()", "read", "while(isWhiteSpace(n))\n n= read();", "isWhiteSpace(n)", "isWhiteSpace", "n", "n= read()", "n", "read()", "read", "int neg=1;", "neg", "1", "if(n=='-') {\n neg=-1;\n n= read();\n }", "n=='-'", "n", "'-'", "{\n neg=-1;\n n= read();\n }", "neg=-1", "neg", "-1", "1", "n= read()", "n", "read()", "read", "while(!isWhiteSpace(n)) {\n if(n>='0'&&n<='9') {\n integer*=10;\n integer+=n-'0';\n n= read();\n }\n else throw new InputMismatchException();\n }", "!isWhiteSpace(n)", "isWhiteSpace(n)", "isWhiteSpace", "n", "{\n if(n>='0'&&n<='9') {\n integer*=10;\n integer+=n-'0';\n n= read();\n }\n else throw new InputMismatchException();\n }", "if(n>='0'&&n<='9') {\n integer*=10;\n integer+=n-'0';\n n= read();\n }\n else throw new InputMismatchException();", "n>='0'&&n<='9'", "n>='0'", "n", "'0'", "n<='9'", "n", "'9'", "{\n integer*=10;\n integer+=n-'0';\n n= read();\n }", "integer*=10", "integer", "10", "integer+=n-'0'", "integer", "n-'0'", "n", "'0'", "n= read()", "n", "read()", "read", "throw new InputMismatchException();", "new InputMismatchException()", "return neg*integer;", "neg*integer", "neg", "integer", "static long nl() throws IOException\n { \n\t\tlong number=0;\n int n= read();\n while(isWhiteSpace(n))\n n= read();\n long neg=1l;\n if(n=='-') {\n neg=-1l;\n n= read();\n }\n while(!isWhiteSpace(n)) {\n if(n>='0'&&n<='9') {\n number*=10l;\n number+=(long)(n-'0');\n n= read();\n }\n else throw new InputMismatchException();\n }\n return neg*number;\n }", "nl", "{ \n\t\tlong number=0;\n int n= read();\n while(isWhiteSpace(n))\n n= read();\n long neg=1l;\n if(n=='-') {\n neg=-1l;\n n= read();\n }\n while(!isWhiteSpace(n)) {\n if(n>='0'&&n<='9') {\n number*=10l;\n number+=(long)(n-'0');\n n= read();\n }\n else throw new InputMismatchException();\n }\n return neg*number;\n }", "long number=0;", "number", "0", "int n= read();", "n", "read()", "read", "while(isWhiteSpace(n))\n n= read();", "isWhiteSpace(n)", "isWhiteSpace", "n", "n= read()", "n", "read()", "read", "long neg=1l;", "neg", "1l", "if(n=='-') {\n neg=-1l;\n n= read();\n }", "n=='-'", "n", "'-'", "{\n neg=-1l;\n n= read();\n }", "neg=-1l", "neg", "-1l", "1l", "n= read()", "n", "read()", "read", "while(!isWhiteSpace(n)) {\n if(n>='0'&&n<='9') {\n number*=10l;\n number+=(long)(n-'0');\n n= read();\n }\n else throw new InputMismatchException();\n }", "!isWhiteSpace(n)", "isWhiteSpace(n)", "isWhiteSpace", "n", "{\n if(n>='0'&&n<='9') {\n number*=10l;\n number+=(long)(n-'0');\n n= read();\n }\n else throw new InputMismatchException();\n }", "if(n>='0'&&n<='9') {\n number*=10l;\n number+=(long)(n-'0');\n n= read();\n }\n else throw new InputMismatchException();", "n>='0'&&n<='9'", "n>='0'", "n", "'0'", "n<='9'", "n", "'9'", "{\n number*=10l;\n number+=(long)(n-'0');\n n= read();\n }", "number*=10l", "number", "10l", "number+=(long)(n-'0')", "number", "(long)(n-'0')", "n", "'0'", "n= read()", "n", "read()", "read", "throw new InputMismatchException();", "new InputMismatchException()", "return neg*number;", "neg*number", "neg", "number", "static double nd() throws IOException\n { \n\t\tdouble doub=0;\n int n= read();\n while(isWhiteSpace(n))\n n= read();\n int neg=1;\n if(n=='-') {\n neg=-1;\n n= read();\n }\n while(!isWhiteSpace(n)&&n!='.') {\n if(n>='0'&&n<='9') {\n doub*=10;\n doub+=n-'0';\n n= read();\n }\n else throw new InputMismatchException();\n }\n\n if(n=='.') {\n n= read();\n double temp=1;\n while(!isWhiteSpace(n)) {\n if(n>='0'&&n<='9') {\n temp/=10;\n doub+=(n-'0')*temp;\n n= read();\n }\n else throw new InputMismatchException();\n }\n }\n return doub*neg;\n }", "nd", "{ \n\t\tdouble doub=0;\n int n= read();\n while(isWhiteSpace(n))\n n= read();\n int neg=1;\n if(n=='-') {\n neg=-1;\n n= read();\n }\n while(!isWhiteSpace(n)&&n!='.') {\n if(n>='0'&&n<='9') {\n doub*=10;\n doub+=n-'0';\n n= read();\n }\n else throw new InputMismatchException();\n }\n\n if(n=='.') {\n n= read();\n double temp=1;\n while(!isWhiteSpace(n)) {\n if(n>='0'&&n<='9') {\n temp/=10;\n doub+=(n-'0')*temp;\n n= read();\n }\n else throw new InputMismatchException();\n }\n }\n return doub*neg;\n }", "double doub=0;", "doub", "0", "int n= read();", "n", "read()", "read", "while(isWhiteSpace(n))\n n= read();", "isWhiteSpace(n)", "isWhiteSpace", "n", "n= read()", "n", "read()", "read", "int neg=1;", "neg", "1", "if(n=='-') {\n neg=-1;\n n= read();\n }", "n=='-'", "n", "'-'", "{\n neg=-1;\n n= read();\n }", "neg=-1", "neg", "-1", "1", "n= read()", "n", "read()", "read", "while(!isWhiteSpace(n)&&n!='.') {\n if(n>='0'&&n<='9') {\n doub*=10;\n doub+=n-'0';\n n= read();\n }\n else throw new InputMismatchException();\n }", "!isWhiteSpace(n)&&n!='.'", "!isWhiteSpace(n)", "isWhiteSpace(n)", "isWhiteSpace", "n", "n!='.'", "n", "'.'", "{\n if(n>='0'&&n<='9') {\n doub*=10;\n doub+=n-'0';\n n= read();\n }\n else throw new InputMismatchException();\n }", "if(n>='0'&&n<='9') {\n doub*=10;\n doub+=n-'0';\n n= read();\n }\n else throw new InputMismatchException();", "n>='0'&&n<='9'", "n>='0'", "n", "'0'", "n<='9'", "n", "'9'", "{\n doub*=10;\n doub+=n-'0';\n n= read();\n }", "doub*=10", "doub", "10", "doub+=n-'0'", "doub", "n-'0'", "n", "'0'", "n= read()", "n", "read()", "read", "throw new InputMismatchException();", "new InputMismatchException()", "if(n=='.') {\n n= read();\n double temp=1;\n while(!isWhiteSpace(n)) {\n if(n>='0'&&n<='9') {\n temp/=10;\n doub+=(n-'0')*temp;\n n= read();\n }\n else throw new InputMismatchException();\n }\n }", "n=='.'", "n", "'.'", "{\n n= read();\n double temp=1;\n while(!isWhiteSpace(n)) {\n if(n>='0'&&n<='9') {\n temp/=10;\n doub+=(n-'0')*temp;\n n= read();\n }\n else throw new InputMismatchException();\n }\n }", "n= read()", "n", "read()", "read", "double temp=1;", "temp", "1", "while(!isWhiteSpace(n)) {\n if(n>='0'&&n<='9') {\n temp/=10;\n doub+=(n-'0')*temp;\n n= read();\n }\n else throw new InputMismatchException();\n }", "!isWhiteSpace(n)", "isWhiteSpace(n)", "isWhiteSpace", "n", "{\n if(n>='0'&&n<='9') {\n temp/=10;\n doub+=(n-'0')*temp;\n n= read();\n }\n else throw new InputMismatchException();\n }", "if(n>='0'&&n<='9') {\n temp/=10;\n doub+=(n-'0')*temp;\n n= read();\n }\n else throw new InputMismatchException();", "n>='0'&&n<='9'", "n>='0'", "n", "'0'", "n<='9'", "n", "'9'", "{\n temp/=10;\n doub+=(n-'0')*temp;\n n= read();\n }", "temp/=10", "temp", "10", "doub+=(n-'0')*temp", "doub", "(n-'0')*temp", "(n-'0')", "n", "'0'", "temp", "n= read()", "n", "read()", "read", "throw new InputMismatchException();", "new InputMismatchException()", "return doub*neg;", "doub*neg", "doub", "neg", "static String nsl() throws IOException\n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n }", "nsl", "{ \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n }", "String str = \"\";", "str", "\"\"", "try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n }", "catch (IOException e) \n { \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", "static boolean isWhiteSpace(int n) {\n if(n==' '|| n=='\\n'|| n=='\\r'|| n=='\\t'|| n==-1)\n return true;\n return false;\n }", "isWhiteSpace", "{\n if(n==' '|| n=='\\n'|| n=='\\r'|| n=='\\t'|| n==-1)\n return true;\n return false;\n }", "if(n==' '|| n=='\\n'|| n=='\\r'|| n=='\\t'|| n==-1)\n return true;", "n==' '|| n=='\\n'|| n=='\\r'|| n=='\\t'|| n==-1", "n=='\\t'", "n=='\\r'", "n==' '|| n=='\\n'|| n=='\\r'|| n=='\\t'|| n==-1", "n==' '", "n", "' '", "n=='\\n'", "n", "'\\n'", "n=='\\r'", "n", "'\\r'", "n=='\\t'", "n", "'\\t'", "n==-1", "n", "-1", "1", "return true;", "true", "return false;", "false", "int n", "n", "///////-------------output-----------------//////\n\tstatic public void p(String str) throws IOException {\n bw.append(str);\n }", "p", "{\n bw.append(str);\n }", "bw.append(str)", "bw.append", "bw", "str", "String str", "str", "static public void pn(String str) throws IOException {\n p(str);\n bw.append(\"\\n\");\n }", "pn", "{\n p(str);\n bw.append(\"\\n\");\n }", "p(str)", "p", "str", "bw.append(\"\\n\")", "bw.append", "bw", "\"\\n\"", "String str", "str", "static public void close()throws IOException {\n bw.close();\n }", "close", "{\n bw.close();\n }", "bw.close()", "bw.close", "bw", "static public void flush()throws IOException {\n bw.flush();\n }", "flush", "{\n bw.flush();\n }", "bw.flush()", "bw.flush", "bw", "public static void prime()\n\t {\n\t int n=1000000;\n\t \n\t for(int i=2;i*i<=n;i++)\n\t {\n\t if(!al[i]){\n\t for(int j=i*2;j<=n;j+=i)\n\t {\n\t al[j]=true;\n\t }\n\t \n\t }\n\t }\n\t }", "prime", "{\n\t int n=1000000;\n\t \n\t for(int i=2;i*i<=n;i++)\n\t {\n\t if(!al[i]){\n\t for(int j=i*2;j<=n;j+=i)\n\t {\n\t al[j]=true;\n\t }\n\t \n\t }\n\t }\n\t }", "int n=1000000;", "n", "1000000", "for(int i=2;i*i<=n;i++)\n\t {\n\t if(!al[i]){\n\t for(int j=i*2;j<=n;j+=i)\n\t {\n\t al[j]=true;\n\t }\n\t \n\t }\n\t }", "int i=2;", "int i=2;", "i", "2", "i*i<=n", "i*i", "i", "i", "n", "i++", "i++", "i", "{\n\t if(!al[i]){\n\t for(int j=i*2;j<=n;j+=i)\n\t {\n\t al[j]=true;\n\t }\n\t \n\t }\n\t }", "{\n\t if(!al[i]){\n\t for(int j=i*2;j<=n;j+=i)\n\t {\n\t al[j]=true;\n\t }\n\t \n\t }\n\t }", "if(!al[i]){\n\t for(int j=i*2;j<=n;j+=i)\n\t {\n\t al[j]=true;\n\t }\n\t \n\t }", "!al[i]", "al[i]", "al", "i", "{\n\t for(int j=i*2;j<=n;j+=i)\n\t {\n\t al[j]=true;\n\t }\n\t \n\t }", "for(int j=i*2;j<=n;j+=i)\n\t {\n\t al[j]=true;\n\t }", "int j=i*2;", "int j=i*2;", "j", "i*2", "i", "2", "j<=n", "j", "n", "j+=i", "j+=i", "j", "i", "{\n\t al[j]=true;\n\t }", "{\n\t al[j]=true;\n\t }", "al[j]=true", "al[j]", "al", "j", "true", "public static void main(String args[]) throws IOException {\n\t \n\t //write your code here\n\t \n\t String str=ns();\n\t if(str.charAt(0)=='R')\n\t {\n\t\t if(str.charAt(1)=='R')\n\t\t {\n\t\t\t if(str.charAt(2)=='R')\n\t\t\t\t pn(\"3\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"2\");\n\t\t }\n\t\t if(str.charAt(1)=='S')\n\t\t {\n\t\t\t if(str.charAt(2)=='R')\n\t\t\t\t pn(\"1\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"1\");\n\t\t }\n\t }\n\t if(str.charAt(0)=='S')\n\t {\n\t\t if(str.charAt(1)=='R')\n\t\t {\n\t\t\t if(str.charAt(2)=='R')\n\t\t\t\t pn(\"2\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"1\");\n\t\t }\n\t\t if(str.charAt(1)=='S')\n\t\t {\n\t\t\t if(str.charAt(2)=='R')\n\t\t\t\t pn(\"1\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"0\");\n\t\t }\n\t }\n\t flush();\n\t \n\t \n\t \n\t }", "main", "{\n\t \n\t //write your code here\n\t \n\t String str=ns();\n\t if(str.charAt(0)=='R')\n\t {\n\t\t if(str.charAt(1)=='R')\n\t\t {\n\t\t\t if(str.charAt(2)=='R')\n\t\t\t\t pn(\"3\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"2\");\n\t\t }\n\t\t if(str.charAt(1)=='S')\n\t\t {\n\t\t\t if(str.charAt(2)=='R')\n\t\t\t\t pn(\"1\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"1\");\n\t\t }\n\t }\n\t if(str.charAt(0)=='S')\n\t {\n\t\t if(str.charAt(1)=='R')\n\t\t {\n\t\t\t if(str.charAt(2)=='R')\n\t\t\t\t pn(\"2\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"1\");\n\t\t }\n\t\t if(str.charAt(1)=='S')\n\t\t {\n\t\t\t if(str.charAt(2)=='R')\n\t\t\t\t pn(\"1\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"0\");\n\t\t }\n\t }\n\t flush();\n\t \n\t \n\t \n\t }", "String str=ns();", "str", "ns()", "ns", "if(str.charAt(0)=='R')\n\t {\n\t\t if(str.charAt(1)=='R')\n\t\t {\n\t\t\t if(str.charAt(2)=='R')\n\t\t\t\t pn(\"3\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"2\");\n\t\t }\n\t\t if(str.charAt(1)=='S')\n\t\t {\n\t\t\t if(str.charAt(2)=='R')\n\t\t\t\t pn(\"1\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"1\");\n\t\t }\n\t }", "str.charAt(0)=='R'", "str.charAt(0)", "str.charAt", "str", "0", "'R'", "{\n\t\t if(str.charAt(1)=='R')\n\t\t {\n\t\t\t if(str.charAt(2)=='R')\n\t\t\t\t pn(\"3\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"2\");\n\t\t }\n\t\t if(str.charAt(1)=='S')\n\t\t {\n\t\t\t if(str.charAt(2)=='R')\n\t\t\t\t pn(\"1\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"1\");\n\t\t }\n\t }", "if(str.charAt(1)=='R')\n\t\t {\n\t\t\t if(str.charAt(2)=='R')\n\t\t\t\t pn(\"3\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"2\");\n\t\t }", "str.charAt(1)=='R'", "str.charAt(1)", "str.charAt", "str", "1", "'R'", "{\n\t\t\t if(str.charAt(2)=='R')\n\t\t\t\t pn(\"3\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"2\");\n\t\t }", "if(str.charAt(2)=='R')\n\t\t\t\t pn(\"3\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"2\");", "str.charAt(2)=='R'", "str.charAt(2)", "str.charAt", "str", "2", "'R'", "pn(\"3\")", "pn", "\"3\"", "if(str.charAt(2)=='S')\n\t\t\t\t pn(\"2\");", "str.charAt(2)=='S'", "str.charAt(2)", "str.charAt", "str", "2", "'S'", "pn(\"2\")", "pn", "\"2\"", "if(str.charAt(1)=='S')\n\t\t {\n\t\t\t if(str.charAt(2)=='R')\n\t\t\t\t pn(\"1\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"1\");\n\t\t }", "str.charAt(1)=='S'", "str.charAt(1)", "str.charAt", "str", "1", "'S'", "{\n\t\t\t if(str.charAt(2)=='R')\n\t\t\t\t pn(\"1\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"1\");\n\t\t }", "if(str.charAt(2)=='R')\n\t\t\t\t pn(\"1\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"1\");", "str.charAt(2)=='R'", "str.charAt(2)", "str.charAt", "str", "2", "'R'", "pn(\"1\")", "pn", "\"1\"", "if(str.charAt(2)=='S')\n\t\t\t\t pn(\"1\");", "str.charAt(2)=='S'", "str.charAt(2)", "str.charAt", "str", "2", "'S'", "pn(\"1\")", "pn", "\"1\"", "if(str.charAt(0)=='S')\n\t {\n\t\t if(str.charAt(1)=='R')\n\t\t {\n\t\t\t if(str.charAt(2)=='R')\n\t\t\t\t pn(\"2\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"1\");\n\t\t }\n\t\t if(str.charAt(1)=='S')\n\t\t {\n\t\t\t if(str.charAt(2)=='R')\n\t\t\t\t pn(\"1\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"0\");\n\t\t }\n\t }", "str.charAt(0)=='S'", "str.charAt(0)", "str.charAt", "str", "0", "'S'", "{\n\t\t if(str.charAt(1)=='R')\n\t\t {\n\t\t\t if(str.charAt(2)=='R')\n\t\t\t\t pn(\"2\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"1\");\n\t\t }\n\t\t if(str.charAt(1)=='S')\n\t\t {\n\t\t\t if(str.charAt(2)=='R')\n\t\t\t\t pn(\"1\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"0\");\n\t\t }\n\t }", "if(str.charAt(1)=='R')\n\t\t {\n\t\t\t if(str.charAt(2)=='R')\n\t\t\t\t pn(\"2\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"1\");\n\t\t }", "str.charAt(1)=='R'", "str.charAt(1)", "str.charAt", "str", "1", "'R'", "{\n\t\t\t if(str.charAt(2)=='R')\n\t\t\t\t pn(\"2\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"1\");\n\t\t }", "if(str.charAt(2)=='R')\n\t\t\t\t pn(\"2\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"1\");", "str.charAt(2)=='R'", "str.charAt(2)", "str.charAt", "str", "2", "'R'", "pn(\"2\")", "pn", "\"2\"", "if(str.charAt(2)=='S')\n\t\t\t\t pn(\"1\");", "str.charAt(2)=='S'", "str.charAt(2)", "str.charAt", "str", "2", "'S'", "pn(\"1\")", "pn", "\"1\"", "if(str.charAt(1)=='S')\n\t\t {\n\t\t\t if(str.charAt(2)=='R')\n\t\t\t\t pn(\"1\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"0\");\n\t\t }", "str.charAt(1)=='S'", "str.charAt(1)", "str.charAt", "str", "1", "'S'", "{\n\t\t\t if(str.charAt(2)=='R')\n\t\t\t\t pn(\"1\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"0\");\n\t\t }", "if(str.charAt(2)=='R')\n\t\t\t\t pn(\"1\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"0\");", "str.charAt(2)=='R'", "str.charAt(2)", "str.charAt", "str", "2", "'R'", "pn(\"1\")", "pn", "\"1\"", "if(str.charAt(2)=='S')\n\t\t\t\t pn(\"0\");", "str.charAt(2)=='S'", "str.charAt(2)", "str.charAt", "str", "2", "'S'", "pn(\"0\")", "pn", "\"0\"", "flush()", "flush", "String args[]", "args", "static class Node{\n\t\tint h;\n\t\tint w;\n\t\tNode(int h,int w)\n\t\t{\n\t\t\tthis.h=h;\n\t\t\tthis.w=w;\n\t\t}\n\t}", "Node", "int h;", "h", "int w;", "w", "Node(int h,int w)\n\t\t{\n\t\t\tthis.h=h;\n\t\t\tthis.w=w;\n\t\t}", "Node", "{\n\t\t\tthis.h=h;\n\t\t\tthis.w=w;\n\t\t}", "this.h=h", "this.h", "this", "this.h", "h", "this.w=w", "this.w", "this", "this.w", "w", "int h", "h", "int w", "w", "public class Main {\n///////----------------input----------------//////\n\tstatic BufferedReader br= new BufferedReader(new\n InputStreamReader(System.in)); \n\tstatic BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\tstatic StringTokenizer st; \n\tstatic byte[] buffer =new byte[10*1024];\n\tstatic int index;\n static InputStream input_stream= System.in;\n static int total;\n\t\n\tstatic String ns() throws IOException\n { \n\t\t StringBuilder sb = new StringBuilder();\n int n = read();\n while (isWhiteSpace(n))\n n = read();\n while (!isWhiteSpace(n)) {\n sb.append((char)n);\n n = read();\n }\n return sb.toString();\n } \n\t\n\tstatic int read() throws IOException\n\t{\n\t\tif(total<0)\n throw new InputMismatchException();\n if(index>=total) {\n index=0;\n total= input_stream.read(buffer);\n if(total<=0)\n return -1;\n }\n return buffer[index++];\n\t}\n\tstatic int ni() throws IOException\n { \n\t\tint integer=0;\n int n= read();\n while(isWhiteSpace(n))\n n= read();\n int neg=1;\n if(n=='-') {\n neg=-1;\n n= read();\n }\n while(!isWhiteSpace(n)) {\n if(n>='0'&&n<='9') {\n integer*=10;\n integer+=n-'0';\n n= read();\n }\n else throw new InputMismatchException();\n }\n return neg*integer;\n } \n\n\tstatic long nl() throws IOException\n { \n\t\tlong number=0;\n int n= read();\n while(isWhiteSpace(n))\n n= read();\n long neg=1l;\n if(n=='-') {\n neg=-1l;\n n= read();\n }\n while(!isWhiteSpace(n)) {\n if(n>='0'&&n<='9') {\n number*=10l;\n number+=(long)(n-'0');\n n= read();\n }\n else throw new InputMismatchException();\n }\n return neg*number;\n } \n\n\tstatic double nd() throws IOException\n { \n\t\tdouble doub=0;\n int n= read();\n while(isWhiteSpace(n))\n n= read();\n int neg=1;\n if(n=='-') {\n neg=-1;\n n= read();\n }\n while(!isWhiteSpace(n)&&n!='.') {\n if(n>='0'&&n<='9') {\n doub*=10;\n doub+=n-'0';\n n= read();\n }\n else throw new InputMismatchException();\n }\n\n if(n=='.') {\n n= read();\n double temp=1;\n while(!isWhiteSpace(n)) {\n if(n>='0'&&n<='9') {\n temp/=10;\n doub+=(n-'0')*temp;\n n= read();\n }\n else throw new InputMismatchException();\n }\n }\n return doub*neg;\n } \n\n\tstatic String nsl() throws IOException\n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n }\n\tstatic boolean isWhiteSpace(int n) {\n if(n==' '|| n=='\\n'|| n=='\\r'|| n=='\\t'|| n==-1)\n return true;\n return false;\n }\n\t\n\t///////-------------output-----------------//////\n\tstatic public void p(String str) throws IOException {\n bw.append(str);\n }\n\tstatic public void pn(String str) throws IOException {\n p(str);\n bw.append(\"\\n\");\n }\n\tstatic public void close()throws IOException {\n bw.close();\n }\n\tstatic public void flush()throws IOException {\n bw.flush();\n }\n\t\n\t///////----------THE FAST I/O METHODS ENDS HERE -----------/////////////\n\tstatic class Node{\n\t\tint h;\n\t\tint w;\n\t\tNode(int h,int w)\n\t\t{\n\t\t\tthis.h=h;\n\t\t\tthis.w=w;\n\t\t}\n\t}\n\t\n\tstatic boolean al[]=new boolean[1100000];\n\t public static void prime()\n\t {\n\t int n=1000000;\n\t \n\t for(int i=2;i*i<=n;i++)\n\t {\n\t if(!al[i]){\n\t for(int j=i*2;j<=n;j+=i)\n\t {\n\t al[j]=true;\n\t }\n\t \n\t }\n\t }\n\t }\n\t public static void main(String args[]) throws IOException {\n\t \n\t //write your code here\n\t \n\t String str=ns();\n\t if(str.charAt(0)=='R')\n\t {\n\t\t if(str.charAt(1)=='R')\n\t\t {\n\t\t\t if(str.charAt(2)=='R')\n\t\t\t\t pn(\"3\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"2\");\n\t\t }\n\t\t if(str.charAt(1)=='S')\n\t\t {\n\t\t\t if(str.charAt(2)=='R')\n\t\t\t\t pn(\"1\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"1\");\n\t\t }\n\t }\n\t if(str.charAt(0)=='S')\n\t {\n\t\t if(str.charAt(1)=='R')\n\t\t {\n\t\t\t if(str.charAt(2)=='R')\n\t\t\t\t pn(\"2\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"1\");\n\t\t }\n\t\t if(str.charAt(1)=='S')\n\t\t {\n\t\t\t if(str.charAt(2)=='R')\n\t\t\t\t pn(\"1\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"0\");\n\t\t }\n\t }\n\t flush();\n\t \n\t \n\t \n\t }\n}", "public class Main {\n///////----------------input----------------//////\n\tstatic BufferedReader br= new BufferedReader(new\n InputStreamReader(System.in)); \n\tstatic BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\tstatic StringTokenizer st; \n\tstatic byte[] buffer =new byte[10*1024];\n\tstatic int index;\n static InputStream input_stream= System.in;\n static int total;\n\t\n\tstatic String ns() throws IOException\n { \n\t\t StringBuilder sb = new StringBuilder();\n int n = read();\n while (isWhiteSpace(n))\n n = read();\n while (!isWhiteSpace(n)) {\n sb.append((char)n);\n n = read();\n }\n return sb.toString();\n } \n\t\n\tstatic int read() throws IOException\n\t{\n\t\tif(total<0)\n throw new InputMismatchException();\n if(index>=total) {\n index=0;\n total= input_stream.read(buffer);\n if(total<=0)\n return -1;\n }\n return buffer[index++];\n\t}\n\tstatic int ni() throws IOException\n { \n\t\tint integer=0;\n int n= read();\n while(isWhiteSpace(n))\n n= read();\n int neg=1;\n if(n=='-') {\n neg=-1;\n n= read();\n }\n while(!isWhiteSpace(n)) {\n if(n>='0'&&n<='9') {\n integer*=10;\n integer+=n-'0';\n n= read();\n }\n else throw new InputMismatchException();\n }\n return neg*integer;\n } \n\n\tstatic long nl() throws IOException\n { \n\t\tlong number=0;\n int n= read();\n while(isWhiteSpace(n))\n n= read();\n long neg=1l;\n if(n=='-') {\n neg=-1l;\n n= read();\n }\n while(!isWhiteSpace(n)) {\n if(n>='0'&&n<='9') {\n number*=10l;\n number+=(long)(n-'0');\n n= read();\n }\n else throw new InputMismatchException();\n }\n return neg*number;\n } \n\n\tstatic double nd() throws IOException\n { \n\t\tdouble doub=0;\n int n= read();\n while(isWhiteSpace(n))\n n= read();\n int neg=1;\n if(n=='-') {\n neg=-1;\n n= read();\n }\n while(!isWhiteSpace(n)&&n!='.') {\n if(n>='0'&&n<='9') {\n doub*=10;\n doub+=n-'0';\n n= read();\n }\n else throw new InputMismatchException();\n }\n\n if(n=='.') {\n n= read();\n double temp=1;\n while(!isWhiteSpace(n)) {\n if(n>='0'&&n<='9') {\n temp/=10;\n doub+=(n-'0')*temp;\n n= read();\n }\n else throw new InputMismatchException();\n }\n }\n return doub*neg;\n } \n\n\tstatic String nsl() throws IOException\n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n }\n\tstatic boolean isWhiteSpace(int n) {\n if(n==' '|| n=='\\n'|| n=='\\r'|| n=='\\t'|| n==-1)\n return true;\n return false;\n }\n\t\n\t///////-------------output-----------------//////\n\tstatic public void p(String str) throws IOException {\n bw.append(str);\n }\n\tstatic public void pn(String str) throws IOException {\n p(str);\n bw.append(\"\\n\");\n }\n\tstatic public void close()throws IOException {\n bw.close();\n }\n\tstatic public void flush()throws IOException {\n bw.flush();\n }\n\t\n\t///////----------THE FAST I/O METHODS ENDS HERE -----------/////////////\n\tstatic class Node{\n\t\tint h;\n\t\tint w;\n\t\tNode(int h,int w)\n\t\t{\n\t\t\tthis.h=h;\n\t\t\tthis.w=w;\n\t\t}\n\t}\n\t\n\tstatic boolean al[]=new boolean[1100000];\n\t public static void prime()\n\t {\n\t int n=1000000;\n\t \n\t for(int i=2;i*i<=n;i++)\n\t {\n\t if(!al[i]){\n\t for(int j=i*2;j<=n;j+=i)\n\t {\n\t al[j]=true;\n\t }\n\t \n\t }\n\t }\n\t }\n\t public static void main(String args[]) throws IOException {\n\t \n\t //write your code here\n\t \n\t String str=ns();\n\t if(str.charAt(0)=='R')\n\t {\n\t\t if(str.charAt(1)=='R')\n\t\t {\n\t\t\t if(str.charAt(2)=='R')\n\t\t\t\t pn(\"3\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"2\");\n\t\t }\n\t\t if(str.charAt(1)=='S')\n\t\t {\n\t\t\t if(str.charAt(2)=='R')\n\t\t\t\t pn(\"1\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"1\");\n\t\t }\n\t }\n\t if(str.charAt(0)=='S')\n\t {\n\t\t if(str.charAt(1)=='R')\n\t\t {\n\t\t\t if(str.charAt(2)=='R')\n\t\t\t\t pn(\"2\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"1\");\n\t\t }\n\t\t if(str.charAt(1)=='S')\n\t\t {\n\t\t\t if(str.charAt(2)=='R')\n\t\t\t\t pn(\"1\");\n\t\t\t else if(str.charAt(2)=='S')\n\t\t\t\t pn(\"0\");\n\t\t }\n\t }\n\t flush();\n\t \n\t \n\t \n\t }\n}", "Main" ]
import java.util.*; import java.io.*; public class Main { ///////----------------input----------------////// static BufferedReader br= new BufferedReader(new InputStreamReader(System.in)); static BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); static StringTokenizer st; static byte[] buffer =new byte[10*1024]; static int index; static InputStream input_stream= System.in; static int total; static String ns() throws IOException { StringBuilder sb = new StringBuilder(); int n = read(); while (isWhiteSpace(n)) n = read(); while (!isWhiteSpace(n)) { sb.append((char)n); n = read(); } return sb.toString(); } static int read() throws IOException { if(total<0) throw new InputMismatchException(); if(index>=total) { index=0; total= input_stream.read(buffer); if(total<=0) return -1; } return buffer[index++]; } static int ni() throws IOException { int integer=0; int n= read(); while(isWhiteSpace(n)) n= read(); int neg=1; if(n=='-') { neg=-1; n= read(); } while(!isWhiteSpace(n)) { if(n>='0'&&n<='9') { integer*=10; integer+=n-'0'; n= read(); } else throw new InputMismatchException(); } return neg*integer; } static long nl() throws IOException { long number=0; int n= read(); while(isWhiteSpace(n)) n= read(); long neg=1l; if(n=='-') { neg=-1l; n= read(); } while(!isWhiteSpace(n)) { if(n>='0'&&n<='9') { number*=10l; number+=(long)(n-'0'); n= read(); } else throw new InputMismatchException(); } return neg*number; } static double nd() throws IOException { double doub=0; int n= read(); while(isWhiteSpace(n)) n= read(); int neg=1; if(n=='-') { neg=-1; n= read(); } while(!isWhiteSpace(n)&&n!='.') { if(n>='0'&&n<='9') { doub*=10; doub+=n-'0'; n= read(); } else throw new InputMismatchException(); } if(n=='.') { n= read(); double temp=1; while(!isWhiteSpace(n)) { if(n>='0'&&n<='9') { temp/=10; doub+=(n-'0')*temp; n= read(); } else throw new InputMismatchException(); } } return doub*neg; } static String nsl() throws IOException { String str = ""; try { str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } return str; } static boolean isWhiteSpace(int n) { if(n==' '|| n=='\n'|| n=='\r'|| n=='\t'|| n==-1) return true; return false; } ///////-------------output-----------------////// static public void p(String str) throws IOException { bw.append(str); } static public void pn(String str) throws IOException { p(str); bw.append("\n"); } static public void close()throws IOException { bw.close(); } static public void flush()throws IOException { bw.flush(); } ///////----------THE FAST I/O METHODS ENDS HERE -----------///////////// static class Node{ int h; int w; Node(int h,int w) { this.h=h; this.w=w; } } static boolean al[]=new boolean[1100000]; public static void prime() { int n=1000000; for(int i=2;i*i<=n;i++) { if(!al[i]){ for(int j=i*2;j<=n;j+=i) { al[j]=true; } } } } public static void main(String args[]) throws IOException { //write your code here String str=ns(); if(str.charAt(0)=='R') { if(str.charAt(1)=='R') { if(str.charAt(2)=='R') pn("3"); else if(str.charAt(2)=='S') pn("2"); } if(str.charAt(1)=='S') { if(str.charAt(2)=='R') pn("1"); else if(str.charAt(2)=='S') pn("1"); } } if(str.charAt(0)=='S') { if(str.charAt(1)=='R') { if(str.charAt(2)=='R') pn("2"); else if(str.charAt(2)=='S') pn("1"); } if(str.charAt(1)=='S') { if(str.charAt(2)=='R') pn("1"); else if(str.charAt(2)=='S') pn("0"); } } flush(); } }
[ 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, 14, 2, 4, 18, 13, 13, 17, 30, 40, 13, 0, 13, 17, 30, 14, 13, 30, 3, 4, 18, 18, 13, 13, 13, 4, 18, 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 ], [ 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 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 37, 42 ], [ 36, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 46, 47 ], [ 46, 48 ], [ 36, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 8, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 8, 60 ], [ 60, 61 ], [ 61, 62 ], [ 6, 63 ], [ 63, 64 ], [ 0, 65 ], [ 65, 66 ], [ 65, 67 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n boolean rainflg = false;\n int answer = 0;\n for (int i = 0; i < 3; i++) {\n if (s.charAt(i) == 'R') {\n answer++;\n rainflg = true;\n } else {\n if (rainflg) {\n break;\n }\n }\n }\n System.out.println(answer);\n sc.close();\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 String s = sc.next();\n boolean rainflg = false;\n int answer = 0;\n for (int i = 0; i < 3; i++) {\n if (s.charAt(i) == 'R') {\n answer++;\n rainflg = true;\n } else {\n if (rainflg) {\n break;\n }\n }\n }\n System.out.println(answer);\n sc.close();\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n boolean rainflg = false;\n int answer = 0;\n for (int i = 0; i < 3; i++) {\n if (s.charAt(i) == 'R') {\n answer++;\n rainflg = true;\n } else {\n if (rainflg) {\n break;\n }\n }\n }\n System.out.println(answer);\n sc.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n boolean rainflg = false;\n int answer = 0;\n for (int i = 0; i < 3; i++) {\n if (s.charAt(i) == 'R') {\n answer++;\n rainflg = true;\n } else {\n if (rainflg) {\n break;\n }\n }\n }\n System.out.println(answer);\n sc.close();\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "boolean rainflg = false;", "rainflg", "false", "int answer = 0;", "answer", "0", "for (int i = 0; i < 3; i++) {\n if (s.charAt(i) == 'R') {\n answer++;\n rainflg = true;\n } else {\n if (rainflg) {\n break;\n }\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < 3", "i", "3", "i++", "i++", "i", "{\n if (s.charAt(i) == 'R') {\n answer++;\n rainflg = true;\n } else {\n if (rainflg) {\n break;\n }\n }\n }", "{\n if (s.charAt(i) == 'R') {\n answer++;\n rainflg = true;\n } else {\n if (rainflg) {\n break;\n }\n }\n }", "if (s.charAt(i) == 'R') {\n answer++;\n rainflg = true;\n } else {\n if (rainflg) {\n break;\n }\n }", "s.charAt(i) == 'R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "{\n answer++;\n rainflg = true;\n }", "answer++", "answer", "rainflg = true", "rainflg", "true", "{\n if (rainflg) {\n break;\n }\n }", "if (rainflg) {\n break;\n }", "rainflg", "{\n break;\n }", "break;", "System.out.println(answer)", "System.out.println", "System.out", "System", "System.out", "answer", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n boolean rainflg = false;\n int answer = 0;\n for (int i = 0; i < 3; i++) {\n if (s.charAt(i) == 'R') {\n answer++;\n rainflg = true;\n } else {\n if (rainflg) {\n break;\n }\n }\n }\n System.out.println(answer);\n sc.close();\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n boolean rainflg = false;\n int answer = 0;\n for (int i = 0; i < 3; i++) {\n if (s.charAt(i) == 'R') {\n answer++;\n rainflg = true;\n } else {\n if (rainflg) {\n break;\n }\n }\n }\n System.out.println(answer);\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); String s = sc.next(); boolean rainflg = false; int answer = 0; for (int i = 0; i < 3; i++) { if (s.charAt(i) == 'R') { answer++; rainflg = true; } else { if (rainflg) { break; } } } System.out.println(answer); sc.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 41, 13, 41, 13, 12, 13, 30, 4, 13, 41, 13, 4, 18, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 17, 30, 41, 13, 13, 42, 2, 2, 13, 17, 2, 18, 13, 2, 13, 17, 17, 30, 40, 13, 0, 13, 4, 18, 13, 13, 2, 2, 13, 13, 17, 4, 18, 13, 13, 4, 18, 13, 4, 18, 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, 2, 2, 2, 13, 2, 17, 13, 13, 17, 29, 13, 23, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 18, 13, 13, 18, 13, 13, 2, 18, 18, 13, 13, 13, 17, 40, 13, 29, 2, 13, 17, 23, 13, 23, 13, 23, 13, 23, 13, 12, 13, 30, 29, 4, 18, 13, 4, 18, 13, 23, 13, 12, 13, 30, 29, 4, 18, 13, 4, 18, 13, 12, 13, 30, 29, 20, 12, 13, 30, 41, 13, 4, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 13, 29, 13, 23, 13, 12, 13, 30, 0, 13, 20, 23, 13, 12, 13, 30, 0, 13, 20, 23, 13, 12, 13, 30, 0, 13, 20, 12, 13, 30, 0, 13, 20, 12, 13, 30, 4, 13, 2, 13, 17, 4, 13, 2, 13, 17, 23, 13, 12, 13, 30, 4, 13, 4, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 7, 11 ], [ 11, 12 ], [ 7, 13 ], [ 13, 14 ], [ 7, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 17, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 17, 27 ], [ 27, 28 ], [ 27, 29 ], [ 17, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 35, 37 ], [ 30, 38 ], [ 38, 39 ], [ 39, 40 ], [ 30, 41 ], [ 42, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 43, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 61, 63 ], [ 58, 64 ], [ 53, 65 ], [ 65, 66 ], [ 66, 67 ], [ 49, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 70, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 17, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 17, 83 ], [ 83, 84 ], [ 84, 85 ], [ 17, 86 ], [ 86, 87 ], [ 87, 88 ], [ 15, 89 ], [ 89, 90 ], [ 7, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 103, 104 ], [ 103, 105 ], [ 98, 106 ], [ 106, 107 ], [ 107, 108 ], [ 98, 109 ], [ 110, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 119, 121 ], [ 116, 122 ], [ 115, 123 ], [ 93, 124 ], [ 124, 125 ], [ 91, 126 ], [ 126, 127 ], [ 91, 128 ], [ 128, 129 ], [ 7, 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 ], [ 150, 151 ], [ 150, 152 ], [ 148, 153 ], [ 153, 154 ], [ 153, 155 ], [ 155, 156 ], [ 155, 157 ], [ 148, 158 ], [ 158, 159 ], [ 159, 160 ], [ 148, 161 ], [ 162, 162 ], [ 162, 163 ], [ 163, 164 ], [ 165, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 165, 169 ], [ 169, 170 ], [ 169, 171 ], [ 165, 172 ], [ 172, 173 ], [ 173, 174 ], [ 174, 175 ], [ 174, 176 ], [ 173, 177 ], [ 172, 178 ], [ 163, 179 ], [ 179, 180 ], [ 132, 181 ], [ 181, 182 ], [ 182, 183 ], [ 182, 184 ], [ 130, 185 ], [ 185, 186 ], [ 130, 187 ], [ 187, 188 ], [ 130, 189 ], [ 189, 190 ], [ 130, 191 ], [ 191, 192 ], [ 7, 193 ], [ 193, 194 ], [ 193, 195 ], [ 195, 196 ], [ 196, 197 ], [ 197, 198 ], [ 198, 199 ], [ 197, 200 ], [ 200, 201 ], [ 201, 202 ], [ 193, 203 ], [ 203, 204 ], [ 7, 205 ], [ 205, 206 ], [ 205, 207 ], [ 207, 208 ], [ 208, 209 ], [ 209, 210 ], [ 210, 211 ], [ 209, 212 ], [ 212, 213 ], [ 213, 214 ], [ 7, 215 ], [ 215, 216 ], [ 215, 217 ], [ 217, 218 ], [ 218, 219 ], [ 7, 220 ], [ 220, 221 ], [ 220, 222 ], [ 222, 223 ], [ 223, 224 ], [ 223, 225 ], [ 225, 226 ], [ 222, 227 ], [ 227, 228 ], [ 227, 229 ], [ 222, 231 ], [ 231, 232 ], [ 232, 233 ], [ 233, 234 ], [ 233, 235 ], [ 231, 236 ], [ 236, 237 ], [ 236, 238 ], [ 231, 239 ], [ 239, 240 ], [ 240, 241 ], [ 231, 242 ], [ 242, 243 ], [ 243, 244 ], [ 244, 245 ], [ 244, 246 ], [ 243, 247 ], [ 247, 248 ], [ 247, 249 ], [ 222, 250 ], [ 250, 251 ], [ 220, 252 ], [ 252, 253 ], [ 7, 254 ], [ 254, 255 ], [ 254, 256 ], [ 256, 257 ], [ 257, 258 ], [ 257, 259 ], [ 254, 260 ], [ 260, 261 ], [ 7, 262 ], [ 262, 263 ], [ 262, 264 ], [ 264, 265 ], [ 265, 266 ], [ 265, 267 ], [ 262, 268 ], [ 268, 269 ], [ 7, 270 ], [ 270, 271 ], [ 270, 272 ], [ 272, 273 ], [ 273, 274 ], [ 273, 275 ], [ 7, 276 ], [ 276, 277 ], [ 276, 278 ], [ 278, 279 ], [ 279, 280 ], [ 279, 281 ], [ 7, 282 ], [ 282, 283 ], [ 282, 284 ], [ 284, 285 ], [ 285, 286 ], [ 285, 287 ], [ 287, 288 ], [ 287, 289 ], [ 284, 290 ], [ 290, 291 ], [ 290, 292 ], [ 292, 293 ], [ 292, 294 ], [ 282, 295 ], [ 295, 296 ], [ 7, 297 ], [ 297, 298 ], [ 297, 299 ], [ 299, 300 ], [ 300, 301 ], [ 299, 302 ], [ 302, 303 ] ]
[ "import java.util.*;\nimport java.io.*;\n\nclass Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tsetIO();\n\n\t\tchar[] s = f.readLine().toCharArray();\n\t\t\n\t\tint ans = 0;\n\t\t\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tif (s[i] == 'R') {\n\t\t\t\tint j = i;\n\t\t\t\twhile (j < 2 && s[j+1] == 'R') {\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t\tans = Math.max(ans, j - i + 1);\n\t\t\t}\n\t\t}\n\t\t\n\t\tout.println(ans);\n\t\t\n\t\tf.close();\n\t\tout.close();\n\t}\n\t\n\tstatic boolean[] generate(int x, int n) {\n\t\tboolean[] s = new boolean[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ts[i] = (x & (1 << i)) >> i == 1;\n\t\t}\n\t\treturn s;\n\t}\n\t\n\tstatic boolean valid(int K, char[][] A, boolean[] h, boolean[] v) {\n\t\tfor (int i = 0; i < h.length; i++) {\n\t\t\tfor (int j = 0; j < v.length; j++) {\n\t\t\t\tif (h[i] && v[i] && A[i][j] == '#') K--;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn K == 0;\n\t}\n\n\tstatic BufferedReader f;\n\tstatic PrintWriter out;\n\tstatic StringTokenizer st;\n\n\tstatic int ni(StringTokenizer st) {\n\t\treturn Integer.parseInt(st.nextToken());\n\t}\n\n\tstatic int ni() throws IOException {\n\t\treturn Integer.parseInt(f.readLine());\n\t}\n\n\tstatic StringTokenizer nl() throws IOException {\n\t\treturn new StringTokenizer(f.readLine());\n\t}\n\n\tstatic int[] nia(int N) throws IOException {\n\t\tStringTokenizer st = nl();\n\t\tint[] A = new int[N];\n\t\tfor (int i = 0; i < N; i++)\n\t\t\tA[i] = ni(st);\n\t\treturn A;\n\t}\n\n\tstatic void setIn(String s) throws IOException {\n\t\tf = new BufferedReader(new FileReader(s));\n\t}\n\n\tstatic void setOut(String s) throws IOException {\n\t\tout = new PrintWriter(new FileWriter(s));\n\t}\n\n\tstatic void setIn() {\n\t\tf = new BufferedReader(new InputStreamReader(System.in));\n\t}\n\n\tstatic void setOut() {\n\t\tout = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n\t}\n\n\tstatic void setIO(String s) throws IOException {\n\t\tsetIn(s + \".in\");\n\t\tsetOut(s + \".out\");\n\t}\n\n\tstatic void setIO() {\n\t\tsetIn();\n\t\tsetOut();\n\t}\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tsetIO();\n\n\t\tchar[] s = f.readLine().toCharArray();\n\t\t\n\t\tint ans = 0;\n\t\t\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tif (s[i] == 'R') {\n\t\t\t\tint j = i;\n\t\t\t\twhile (j < 2 && s[j+1] == 'R') {\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t\tans = Math.max(ans, j - i + 1);\n\t\t\t}\n\t\t}\n\t\t\n\t\tout.println(ans);\n\t\t\n\t\tf.close();\n\t\tout.close();\n\t}\n\t\n\tstatic boolean[] generate(int x, int n) {\n\t\tboolean[] s = new boolean[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ts[i] = (x & (1 << i)) >> i == 1;\n\t\t}\n\t\treturn s;\n\t}\n\t\n\tstatic boolean valid(int K, char[][] A, boolean[] h, boolean[] v) {\n\t\tfor (int i = 0; i < h.length; i++) {\n\t\t\tfor (int j = 0; j < v.length; j++) {\n\t\t\t\tif (h[i] && v[i] && A[i][j] == '#') K--;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn K == 0;\n\t}\n\n\tstatic BufferedReader f;\n\tstatic PrintWriter out;\n\tstatic StringTokenizer st;\n\n\tstatic int ni(StringTokenizer st) {\n\t\treturn Integer.parseInt(st.nextToken());\n\t}\n\n\tstatic int ni() throws IOException {\n\t\treturn Integer.parseInt(f.readLine());\n\t}\n\n\tstatic StringTokenizer nl() throws IOException {\n\t\treturn new StringTokenizer(f.readLine());\n\t}\n\n\tstatic int[] nia(int N) throws IOException {\n\t\tStringTokenizer st = nl();\n\t\tint[] A = new int[N];\n\t\tfor (int i = 0; i < N; i++)\n\t\t\tA[i] = ni(st);\n\t\treturn A;\n\t}\n\n\tstatic void setIn(String s) throws IOException {\n\t\tf = new BufferedReader(new FileReader(s));\n\t}\n\n\tstatic void setOut(String s) throws IOException {\n\t\tout = new PrintWriter(new FileWriter(s));\n\t}\n\n\tstatic void setIn() {\n\t\tf = new BufferedReader(new InputStreamReader(System.in));\n\t}\n\n\tstatic void setOut() {\n\t\tout = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n\t}\n\n\tstatic void setIO(String s) throws IOException {\n\t\tsetIn(s + \".in\");\n\t\tsetOut(s + \".out\");\n\t}\n\n\tstatic void setIO() {\n\t\tsetIn();\n\t\tsetOut();\n\t}\n}", "Main", "static BufferedReader f;", "f", "static PrintWriter out;", "out", "static StringTokenizer st;", "st", "public static void main(String[] args) throws IOException {\n\t\tsetIO();\n\n\t\tchar[] s = f.readLine().toCharArray();\n\t\t\n\t\tint ans = 0;\n\t\t\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tif (s[i] == 'R') {\n\t\t\t\tint j = i;\n\t\t\t\twhile (j < 2 && s[j+1] == 'R') {\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t\tans = Math.max(ans, j - i + 1);\n\t\t\t}\n\t\t}\n\t\t\n\t\tout.println(ans);\n\t\t\n\t\tf.close();\n\t\tout.close();\n\t}", "main", "{\n\t\tsetIO();\n\n\t\tchar[] s = f.readLine().toCharArray();\n\t\t\n\t\tint ans = 0;\n\t\t\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tif (s[i] == 'R') {\n\t\t\t\tint j = i;\n\t\t\t\twhile (j < 2 && s[j+1] == 'R') {\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t\tans = Math.max(ans, j - i + 1);\n\t\t\t}\n\t\t}\n\t\t\n\t\tout.println(ans);\n\t\t\n\t\tf.close();\n\t\tout.close();\n\t}", "setIO()", "setIO", "char[] s = f.readLine().toCharArray();", "s", "f.readLine().toCharArray()", "f.readLine().toCharArray", "f.readLine()", "f.readLine", "f", "int ans = 0;", "ans", "0", "for (int i = 0; i < 3; i++) {\n\t\t\tif (s[i] == 'R') {\n\t\t\t\tint j = i;\n\t\t\t\twhile (j < 2 && s[j+1] == 'R') {\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t\tans = Math.max(ans, j - i + 1);\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < 3", "i", "3", "i++", "i++", "i", "{\n\t\t\tif (s[i] == 'R') {\n\t\t\t\tint j = i;\n\t\t\t\twhile (j < 2 && s[j+1] == 'R') {\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t\tans = Math.max(ans, j - i + 1);\n\t\t\t}\n\t\t}", "{\n\t\t\tif (s[i] == 'R') {\n\t\t\t\tint j = i;\n\t\t\t\twhile (j < 2 && s[j+1] == 'R') {\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t\tans = Math.max(ans, j - i + 1);\n\t\t\t}\n\t\t}", "if (s[i] == 'R') {\n\t\t\t\tint j = i;\n\t\t\t\twhile (j < 2 && s[j+1] == 'R') {\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t\tans = Math.max(ans, j - i + 1);\n\t\t\t}", "s[i] == 'R'", "s[i]", "s", "i", "'R'", "{\n\t\t\t\tint j = i;\n\t\t\t\twhile (j < 2 && s[j+1] == 'R') {\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t\tans = Math.max(ans, j - i + 1);\n\t\t\t}", "int j = i;", "j", "i", "while (j < 2 && s[j+1] == 'R') {\n\t\t\t\t\tj++;\n\t\t\t\t}", "j < 2 && s[j+1] == 'R'", "j < 2", "j", "2", "s[j+1] == 'R'", "s[j+1]", "s", "j+1", "j", "1", "'R'", "{\n\t\t\t\t\tj++;\n\t\t\t\t}", "j++", "j", "ans = Math.max(ans, j - i + 1)", "ans", "Math.max(ans, j - i + 1)", "Math.max", "Math", "ans", "j - i + 1", "j - i", "j", "i", "1", "out.println(ans)", "out.println", "out", "ans", "f.close()", "f.close", "f", "out.close()", "out.close", "out", "String[] args", "args", "static boolean[] generate(int x, int n) {\n\t\tboolean[] s = new boolean[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ts[i] = (x & (1 << i)) >> i == 1;\n\t\t}\n\t\treturn s;\n\t}", "generate", "{\n\t\tboolean[] s = new boolean[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ts[i] = (x & (1 << i)) >> i == 1;\n\t\t}\n\t\treturn s;\n\t}", "boolean[] s = new boolean[n];", "s", "new boolean[n]", "n", "for (int i = 0; i < n; i++) {\n\t\t\ts[i] = (x & (1 << i)) >> i == 1;\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\ts[i] = (x & (1 << i)) >> i == 1;\n\t\t}", "{\n\t\t\ts[i] = (x & (1 << i)) >> i == 1;\n\t\t}", "s[i] = (x & (1 << i)) >> i == 1", "s[i]", "s", "i", "(x & (1 << i)) >> i == 1", "(x & (1 << i)) >> i", "(x & (1 << i))", "x", "(1 << i)", "1", "i", "i", "1", "return s;", "s", "int x", "x", "int n", "n", "static boolean valid(int K, char[][] A, boolean[] h, boolean[] v) {\n\t\tfor (int i = 0; i < h.length; i++) {\n\t\t\tfor (int j = 0; j < v.length; j++) {\n\t\t\t\tif (h[i] && v[i] && A[i][j] == '#') K--;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn K == 0;\n\t}", "valid", "{\n\t\tfor (int i = 0; i < h.length; i++) {\n\t\t\tfor (int j = 0; j < v.length; j++) {\n\t\t\t\tif (h[i] && v[i] && A[i][j] == '#') K--;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn K == 0;\n\t}", "for (int i = 0; i < h.length; i++) {\n\t\t\tfor (int j = 0; j < v.length; j++) {\n\t\t\t\tif (h[i] && v[i] && A[i][j] == '#') K--;\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < h.length", "i", "h.length", "h", "h.length", "i++", "i++", "i", "{\n\t\t\tfor (int j = 0; j < v.length; j++) {\n\t\t\t\tif (h[i] && v[i] && A[i][j] == '#') K--;\n\t\t\t}\n\t\t}", "{\n\t\t\tfor (int j = 0; j < v.length; j++) {\n\t\t\t\tif (h[i] && v[i] && A[i][j] == '#') K--;\n\t\t\t}\n\t\t}", "for (int j = 0; j < v.length; j++) {\n\t\t\t\tif (h[i] && v[i] && A[i][j] == '#') K--;\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < v.length", "j", "v.length", "v", "v.length", "j++", "j++", "j", "{\n\t\t\t\tif (h[i] && v[i] && A[i][j] == '#') K--;\n\t\t\t}", "{\n\t\t\t\tif (h[i] && v[i] && A[i][j] == '#') K--;\n\t\t\t}", "if (h[i] && v[i] && A[i][j] == '#') K--;", "h[i] && v[i] && A[i][j] == '#'", "h[i] && v[i] && A[i][j] == '#'", "h[i]", "h", "i", "v[i]", "v", "i", "A[i][j] == '#'", "A[i][j]", "A[i]", "A", "i", "j", "'#'", "K--", "K", "return K == 0;", "K == 0", "K", "0", "int K", "K", "char[][] A", "A", "boolean[] h", "h", "boolean[] v", "v", "static int ni(StringTokenizer st) {\n\t\treturn Integer.parseInt(st.nextToken());\n\t}", "ni", "{\n\t\treturn Integer.parseInt(st.nextToken());\n\t}", "return Integer.parseInt(st.nextToken());", "Integer.parseInt(st.nextToken())", "Integer.parseInt", "Integer", "st.nextToken()", "st.nextToken", "st", "StringTokenizer st", "st", "static int ni() throws IOException {\n\t\treturn Integer.parseInt(f.readLine());\n\t}", "ni", "{\n\t\treturn Integer.parseInt(f.readLine());\n\t}", "return Integer.parseInt(f.readLine());", "Integer.parseInt(f.readLine())", "Integer.parseInt", "Integer", "f.readLine()", "f.readLine", "f", "static StringTokenizer nl() throws IOException {\n\t\treturn new StringTokenizer(f.readLine());\n\t}", "nl", "{\n\t\treturn new StringTokenizer(f.readLine());\n\t}", "return new StringTokenizer(f.readLine());", "new StringTokenizer(f.readLine())", "static int[] nia(int N) throws IOException {\n\t\tStringTokenizer st = nl();\n\t\tint[] A = new int[N];\n\t\tfor (int i = 0; i < N; i++)\n\t\t\tA[i] = ni(st);\n\t\treturn A;\n\t}", "nia", "{\n\t\tStringTokenizer st = nl();\n\t\tint[] A = new int[N];\n\t\tfor (int i = 0; i < N; i++)\n\t\t\tA[i] = ni(st);\n\t\treturn A;\n\t}", "StringTokenizer st = nl();", "st", "nl()", "nl", "int[] A = new int[N];", "A", "new int[N]", "N", "for (int i = 0; i < N; i++)\n\t\t\tA[i] = ni(st);", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "A[i] = ni(st);", "A[i] = ni(st)", "A[i]", "A", "i", "ni(st)", "ni", "st", "return A;", "A", "int N", "N", "static void setIn(String s) throws IOException {\n\t\tf = new BufferedReader(new FileReader(s));\n\t}", "setIn", "{\n\t\tf = new BufferedReader(new FileReader(s));\n\t}", "f = new BufferedReader(new FileReader(s))", "f", "new BufferedReader(new FileReader(s))", "String s", "s", "static void setOut(String s) throws IOException {\n\t\tout = new PrintWriter(new FileWriter(s));\n\t}", "setOut", "{\n\t\tout = new PrintWriter(new FileWriter(s));\n\t}", "out = new PrintWriter(new FileWriter(s))", "out", "new PrintWriter(new FileWriter(s))", "String s", "s", "static void setIn() {\n\t\tf = new BufferedReader(new InputStreamReader(System.in));\n\t}", "setIn", "{\n\t\tf = new BufferedReader(new InputStreamReader(System.in));\n\t}", "f = new BufferedReader(new InputStreamReader(System.in))", "f", "new BufferedReader(new InputStreamReader(System.in))", "static void setOut() {\n\t\tout = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n\t}", "setOut", "{\n\t\tout = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n\t}", "out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)))", "out", "new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)))", "static void setIO(String s) throws IOException {\n\t\tsetIn(s + \".in\");\n\t\tsetOut(s + \".out\");\n\t}", "setIO", "{\n\t\tsetIn(s + \".in\");\n\t\tsetOut(s + \".out\");\n\t}", "setIn(s + \".in\")", "setIn", "s + \".in\"", "s", "\".in\"", "setOut(s + \".out\")", "setOut", "s + \".out\"", "s", "\".out\"", "String s", "s", "static void setIO() {\n\t\tsetIn();\n\t\tsetOut();\n\t}", "setIO", "{\n\t\tsetIn();\n\t\tsetOut();\n\t}", "setIn()", "setIn", "setOut()", "setOut" ]
import java.util.*; import java.io.*; class Main { public static void main(String[] args) throws IOException { setIO(); char[] s = f.readLine().toCharArray(); int ans = 0; for (int i = 0; i < 3; i++) { if (s[i] == 'R') { int j = i; while (j < 2 && s[j+1] == 'R') { j++; } ans = Math.max(ans, j - i + 1); } } out.println(ans); f.close(); out.close(); } static boolean[] generate(int x, int n) { boolean[] s = new boolean[n]; for (int i = 0; i < n; i++) { s[i] = (x & (1 << i)) >> i == 1; } return s; } static boolean valid(int K, char[][] A, boolean[] h, boolean[] v) { for (int i = 0; i < h.length; i++) { for (int j = 0; j < v.length; j++) { if (h[i] && v[i] && A[i][j] == '#') K--; } } return K == 0; } static BufferedReader f; static PrintWriter out; static StringTokenizer st; static int ni(StringTokenizer st) { return Integer.parseInt(st.nextToken()); } static int ni() throws IOException { return Integer.parseInt(f.readLine()); } static StringTokenizer nl() throws IOException { return new StringTokenizer(f.readLine()); } static int[] nia(int N) throws IOException { StringTokenizer st = nl(); int[] A = new int[N]; for (int i = 0; i < N; i++) A[i] = ni(st); return A; } static void setIn(String s) throws IOException { f = new BufferedReader(new FileReader(s)); } static void setOut(String s) throws IOException { out = new PrintWriter(new FileWriter(s)); } static void setIn() { f = new BufferedReader(new InputStreamReader(System.in)); } static void setOut() { out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out))); } static void setIO(String s) throws IOException { setIn(s + ".in"); setOut(s + ".out"); } static void setIO() { setIn(); setOut(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 14, 2, 2, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 30, 0, 13, 17, 14, 2, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 30, 0, 13, 17, 14, 2, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 30, 0, 13, 17, 14, 2, 2, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 30, 0, 13, 17, 30, 0, 13, 17, 4, 18, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 123, 5 ], [ 123, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 25, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 27, 30 ], [ 26, 31 ], [ 25, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 32, 37 ], [ 25, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 38, 43 ], [ 23, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 23, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 50, 55 ], [ 49, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 56, 61 ], [ 48, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 48, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 68, 73 ], [ 67, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 74, 79 ], [ 66, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 66, 84 ], [ 84, 85 ], [ 86, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 88, 91 ], [ 87, 92 ], [ 86, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 94, 97 ], [ 93, 98 ], [ 86, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 103 ], [ 99, 104 ], [ 84, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 84, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 8, 113 ], [ 113, 114 ], [ 114, 115 ], [ 113, 116 ], [ 8, 117 ], [ 117, 118 ], [ 118, 119 ], [ 6, 120 ], [ 120, 121 ], [ 0, 122 ], [ 122, 123 ], [ 122, 124 ] ]
[ "import java.io.*;\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n PrintWriter prnt = new PrintWriter(System.out);\n BufferedReader read = new BufferedReader(new InputStreamReader(System.in));\n\n String s = read.readLine();\n int res = 0;\n if (s.charAt(0) == 'R' && s.charAt(1) == 'R' && s.charAt(2) == 'R') {\n res = 3;\n } else if (s.charAt(0) == 'R' && s.charAt(1) == 'R') {\n res = 2;\n } else if (s.charAt(1) == 'R' && s.charAt(2) == 'R') {\n res = 2;\n } else if (s.charAt(0) == 'S' && s.charAt(1) == 'S' && s.charAt(2) == 'S') {\n res = 0;\n } else {\n res = 1;\n }\n\n prnt.println(res);\n prnt.close();\n }\n}", "import java.io.*;", "io.*", "java", "public class Main {\n\n public static void main(String[] args) throws IOException {\n PrintWriter prnt = new PrintWriter(System.out);\n BufferedReader read = new BufferedReader(new InputStreamReader(System.in));\n\n String s = read.readLine();\n int res = 0;\n if (s.charAt(0) == 'R' && s.charAt(1) == 'R' && s.charAt(2) == 'R') {\n res = 3;\n } else if (s.charAt(0) == 'R' && s.charAt(1) == 'R') {\n res = 2;\n } else if (s.charAt(1) == 'R' && s.charAt(2) == 'R') {\n res = 2;\n } else if (s.charAt(0) == 'S' && s.charAt(1) == 'S' && s.charAt(2) == 'S') {\n res = 0;\n } else {\n res = 1;\n }\n\n prnt.println(res);\n prnt.close();\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n PrintWriter prnt = new PrintWriter(System.out);\n BufferedReader read = new BufferedReader(new InputStreamReader(System.in));\n\n String s = read.readLine();\n int res = 0;\n if (s.charAt(0) == 'R' && s.charAt(1) == 'R' && s.charAt(2) == 'R') {\n res = 3;\n } else if (s.charAt(0) == 'R' && s.charAt(1) == 'R') {\n res = 2;\n } else if (s.charAt(1) == 'R' && s.charAt(2) == 'R') {\n res = 2;\n } else if (s.charAt(0) == 'S' && s.charAt(1) == 'S' && s.charAt(2) == 'S') {\n res = 0;\n } else {\n res = 1;\n }\n\n prnt.println(res);\n prnt.close();\n }", "main", "{\n PrintWriter prnt = new PrintWriter(System.out);\n BufferedReader read = new BufferedReader(new InputStreamReader(System.in));\n\n String s = read.readLine();\n int res = 0;\n if (s.charAt(0) == 'R' && s.charAt(1) == 'R' && s.charAt(2) == 'R') {\n res = 3;\n } else if (s.charAt(0) == 'R' && s.charAt(1) == 'R') {\n res = 2;\n } else if (s.charAt(1) == 'R' && s.charAt(2) == 'R') {\n res = 2;\n } else if (s.charAt(0) == 'S' && s.charAt(1) == 'S' && s.charAt(2) == 'S') {\n res = 0;\n } else {\n res = 1;\n }\n\n prnt.println(res);\n prnt.close();\n }", "PrintWriter prnt = new PrintWriter(System.out);", "prnt", "new PrintWriter(System.out)", "BufferedReader read = new BufferedReader(new InputStreamReader(System.in));", "read", "new BufferedReader(new InputStreamReader(System.in))", "String s = read.readLine();", "s", "read.readLine()", "read.readLine", "read", "int res = 0;", "res", "0", "if (s.charAt(0) == 'R' && s.charAt(1) == 'R' && s.charAt(2) == 'R') {\n res = 3;\n } else if (s.charAt(0) == 'R' && s.charAt(1) == 'R') {\n res = 2;\n } else if (s.charAt(1) == 'R' && s.charAt(2) == 'R') {\n res = 2;\n } else if (s.charAt(0) == 'S' && s.charAt(1) == 'S' && s.charAt(2) == 'S') {\n res = 0;\n } else {\n res = 1;\n }", "s.charAt(0) == 'R' && s.charAt(1) == 'R' && s.charAt(2) == 'R'", "s.charAt(0) == 'R' && s.charAt(1) == 'R' && s.charAt(2) == 'R'", "s.charAt(0) == 'R'", "s.charAt(0)", "s.charAt", "s", "0", "'R'", "s.charAt(1) == 'R'", "s.charAt(1)", "s.charAt", "s", "1", "'R'", "s.charAt(2) == 'R'", "s.charAt(2)", "s.charAt", "s", "2", "'R'", "{\n res = 3;\n }", "res = 3", "res", "3", "if (s.charAt(0) == 'R' && s.charAt(1) == 'R') {\n res = 2;\n } else if (s.charAt(1) == 'R' && s.charAt(2) == 'R') {\n res = 2;\n } else if (s.charAt(0) == 'S' && s.charAt(1) == 'S' && s.charAt(2) == 'S') {\n res = 0;\n } else {\n res = 1;\n }", "s.charAt(0) == 'R' && s.charAt(1) == 'R'", "s.charAt(0) == 'R'", "s.charAt(0)", "s.charAt", "s", "0", "'R'", "s.charAt(1) == 'R'", "s.charAt(1)", "s.charAt", "s", "1", "'R'", "{\n res = 2;\n }", "res = 2", "res", "2", "if (s.charAt(1) == 'R' && s.charAt(2) == 'R') {\n res = 2;\n } else if (s.charAt(0) == 'S' && s.charAt(1) == 'S' && s.charAt(2) == 'S') {\n res = 0;\n } else {\n res = 1;\n }", "s.charAt(1) == 'R' && s.charAt(2) == 'R'", "s.charAt(1) == 'R'", "s.charAt(1)", "s.charAt", "s", "1", "'R'", "s.charAt(2) == 'R'", "s.charAt(2)", "s.charAt", "s", "2", "'R'", "{\n res = 2;\n }", "res = 2", "res", "2", "if (s.charAt(0) == 'S' && s.charAt(1) == 'S' && s.charAt(2) == 'S') {\n res = 0;\n } else {\n res = 1;\n }", "s.charAt(0) == 'S' && s.charAt(1) == 'S' && s.charAt(2) == 'S'", "s.charAt(0) == 'S' && s.charAt(1) == 'S' && s.charAt(2) == 'S'", "s.charAt(0) == 'S'", "s.charAt(0)", "s.charAt", "s", "0", "'S'", "s.charAt(1) == 'S'", "s.charAt(1)", "s.charAt", "s", "1", "'S'", "s.charAt(2) == 'S'", "s.charAt(2)", "s.charAt", "s", "2", "'S'", "{\n res = 0;\n }", "res = 0", "res", "0", "{\n res = 1;\n }", "res = 1", "res", "1", "prnt.println(res)", "prnt.println", "prnt", "res", "prnt.close()", "prnt.close", "prnt", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) throws IOException {\n PrintWriter prnt = new PrintWriter(System.out);\n BufferedReader read = new BufferedReader(new InputStreamReader(System.in));\n\n String s = read.readLine();\n int res = 0;\n if (s.charAt(0) == 'R' && s.charAt(1) == 'R' && s.charAt(2) == 'R') {\n res = 3;\n } else if (s.charAt(0) == 'R' && s.charAt(1) == 'R') {\n res = 2;\n } else if (s.charAt(1) == 'R' && s.charAt(2) == 'R') {\n res = 2;\n } else if (s.charAt(0) == 'S' && s.charAt(1) == 'S' && s.charAt(2) == 'S') {\n res = 0;\n } else {\n res = 1;\n }\n\n prnt.println(res);\n prnt.close();\n }\n}", "public class Main {\n\n public static void main(String[] args) throws IOException {\n PrintWriter prnt = new PrintWriter(System.out);\n BufferedReader read = new BufferedReader(new InputStreamReader(System.in));\n\n String s = read.readLine();\n int res = 0;\n if (s.charAt(0) == 'R' && s.charAt(1) == 'R' && s.charAt(2) == 'R') {\n res = 3;\n } else if (s.charAt(0) == 'R' && s.charAt(1) == 'R') {\n res = 2;\n } else if (s.charAt(1) == 'R' && s.charAt(2) == 'R') {\n res = 2;\n } else if (s.charAt(0) == 'S' && s.charAt(1) == 'S' && s.charAt(2) == 'S') {\n res = 0;\n } else {\n res = 1;\n }\n\n prnt.println(res);\n prnt.close();\n }\n}", "Main" ]
import java.io.*; public class Main { public static void main(String[] args) throws IOException { PrintWriter prnt = new PrintWriter(System.out); BufferedReader read = new BufferedReader(new InputStreamReader(System.in)); String s = read.readLine(); int res = 0; if (s.charAt(0) == 'R' && s.charAt(1) == 'R' && s.charAt(2) == 'R') { res = 3; } else if (s.charAt(0) == 'R' && s.charAt(1) == 'R') { res = 2; } else if (s.charAt(1) == 'R' && s.charAt(2) == 'R') { res = 2; } else if (s.charAt(0) == 'S' && s.charAt(1) == 'S' && s.charAt(2) == 'S') { res = 0; } else { res = 1; } prnt.println(res); prnt.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 4, 18, 18, 13, 13, 17, 30, 0, 13, 17, 14, 4, 18, 18, 13, 13, 17, 30, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 84, 5 ], [ 84, 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 ], [ 23, 25 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 8, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 29, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 42, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 42, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 53, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 66, 67 ], [ 66, 68 ], [ 61, 69 ], [ 69, 70 ], [ 61, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 8, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 6, 81 ], [ 81, 82 ], [ 0, 83 ], [ 83, 84 ], [ 83, 85 ] ]
[ "import java.util.*;\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s3 = sc.next();\n String[] split = s3.split(\"\");\n int rain=0;\n int a=0;\n for(int i=0; i<3; i++) {\n if(split[i].equals(\"R\")) {\n rain += 1;\n }else if(split[i].equals(\"S\")){\n if(rain == 2||rain == 1) {\n break;\n }else {\n rain = 0;\n }\n }\n }\n System.out.println(rain);\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 String s3 = sc.next();\n String[] split = s3.split(\"\");\n int rain=0;\n int a=0;\n for(int i=0; i<3; i++) {\n if(split[i].equals(\"R\")) {\n rain += 1;\n }else if(split[i].equals(\"S\")){\n if(rain == 2||rain == 1) {\n break;\n }else {\n rain = 0;\n }\n }\n }\n System.out.println(rain);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s3 = sc.next();\n String[] split = s3.split(\"\");\n int rain=0;\n int a=0;\n for(int i=0; i<3; i++) {\n if(split[i].equals(\"R\")) {\n rain += 1;\n }else if(split[i].equals(\"S\")){\n if(rain == 2||rain == 1) {\n break;\n }else {\n rain = 0;\n }\n }\n }\n System.out.println(rain);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String s3 = sc.next();\n String[] split = s3.split(\"\");\n int rain=0;\n int a=0;\n for(int i=0; i<3; i++) {\n if(split[i].equals(\"R\")) {\n rain += 1;\n }else if(split[i].equals(\"S\")){\n if(rain == 2||rain == 1) {\n break;\n }else {\n rain = 0;\n }\n }\n }\n System.out.println(rain);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s3 = sc.next();", "s3", "sc.next()", "sc.next", "sc", "String[] split = s3.split(\"\");", "split", "s3.split(\"\")", "s3.split", "s3", "\"\"", "int rain=0;", "rain", "0", "int a=0;", "a", "0", "for(int i=0; i<3; i++) {\n if(split[i].equals(\"R\")) {\n rain += 1;\n }else if(split[i].equals(\"S\")){\n if(rain == 2||rain == 1) {\n break;\n }else {\n rain = 0;\n }\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<3", "i", "3", "i++", "i++", "i", "{\n if(split[i].equals(\"R\")) {\n rain += 1;\n }else if(split[i].equals(\"S\")){\n if(rain == 2||rain == 1) {\n break;\n }else {\n rain = 0;\n }\n }\n }", "{\n if(split[i].equals(\"R\")) {\n rain += 1;\n }else if(split[i].equals(\"S\")){\n if(rain == 2||rain == 1) {\n break;\n }else {\n rain = 0;\n }\n }\n }", "if(split[i].equals(\"R\")) {\n rain += 1;\n }else if(split[i].equals(\"S\")){\n if(rain == 2||rain == 1) {\n break;\n }else {\n rain = 0;\n }\n }", "split[i].equals(\"R\")", "split[i].equals", "split[i]", "split", "i", "\"R\"", "{\n rain += 1;\n }", "rain += 1", "rain", "1", "if(split[i].equals(\"S\")){\n if(rain == 2||rain == 1) {\n break;\n }else {\n rain = 0;\n }\n }", "split[i].equals(\"S\")", "split[i].equals", "split[i]", "split", "i", "\"S\"", "{\n if(rain == 2||rain == 1) {\n break;\n }else {\n rain = 0;\n }\n }", "if(rain == 2||rain == 1) {\n break;\n }else {\n rain = 0;\n }", "rain == 2||rain == 1", "rain == 2", "rain", "2", "rain == 1", "rain", "1", "{\n break;\n }", "break;", "{\n rain = 0;\n }", "rain = 0", "rain", "0", "System.out.println(rain)", "System.out.println", "System.out", "System", "System.out", "rain", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s3 = sc.next();\n String[] split = s3.split(\"\");\n int rain=0;\n int a=0;\n for(int i=0; i<3; i++) {\n if(split[i].equals(\"R\")) {\n rain += 1;\n }else if(split[i].equals(\"S\")){\n if(rain == 2||rain == 1) {\n break;\n }else {\n rain = 0;\n }\n }\n }\n System.out.println(rain);\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s3 = sc.next();\n String[] split = s3.split(\"\");\n int rain=0;\n int a=0;\n for(int i=0; i<3; i++) {\n if(split[i].equals(\"R\")) {\n rain += 1;\n }else if(split[i].equals(\"S\")){\n if(rain == 2||rain == 1) {\n break;\n }else {\n rain = 0;\n }\n }\n }\n System.out.println(rain);\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s3 = sc.next(); String[] split = s3.split(""); int rain=0; int a=0; for(int i=0; i<3; i++) { if(split[i].equals("R")) { rain += 1; }else if(split[i].equals("S")){ if(rain == 2||rain == 1) { break; }else { rain = 0; } } } System.out.println(rain); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 41, 13, 12, 13, 30, 41, 13, 20, 4, 18, 13, 4, 18, 13, 4, 18, 13, 23, 13, 12, 13, 30, 41, 13, 20, 0, 13, 4, 18, 13, 0, 13, 17, 12, 13, 30, 14, 4, 18, 13, 17, 30, 0, 13, 17, 14, 2, 4, 18, 13, 17, 4, 18, 13, 17, 30, 0, 13, 17, 14, 4, 18, 13, 17, 30, 0, 13, 17, 30, 0, 13, 17, 12, 13, 30, 4, 18, 18, 13, 13, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 90, 5 ], [ 90, 6 ], [ 6, 7 ], [ 90, 8 ], [ 8, 9 ], [ 90, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 13, 14 ], [ 13, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 12, 19 ], [ 19, 20 ], [ 20, 21 ], [ 12, 22 ], [ 22, 23 ], [ 23, 24 ], [ 10, 25 ], [ 25, 26 ], [ 90, 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 ], [ 38, 40 ], [ 90, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 44, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 44, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 54, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 53, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 53, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 67, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 67, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 90, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 0, 89 ], [ 89, 90 ], [ 89, 91 ] ]
[ "import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args){\n Main main = new Main();\n main.input();\n main.solve();\n main.output();\n }\n\n String f;\n int result;\n\n private void input() {\n Scanner sc = new Scanner(System.in);\n f = sc.next();\n result = 0;\n }\n\n private void solve() {\n if (f.equals(\"RRR\")) {\n result = 3;\n } else if (f.equals(\"SRR\") || f.equals(\"RRS\")) {\n result = 2;\n } else if (f.contains(\"R\")) {\n result = 1;\n } else {\n result = 0;\n }\n }\n\n private void output() {\n System.out.println(result);\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main(String[] args){\n Main main = new Main();\n main.input();\n main.solve();\n main.output();\n }\n\n String f;\n int result;\n\n private void input() {\n Scanner sc = new Scanner(System.in);\n f = sc.next();\n result = 0;\n }\n\n private void solve() {\n if (f.equals(\"RRR\")) {\n result = 3;\n } else if (f.equals(\"SRR\") || f.equals(\"RRS\")) {\n result = 2;\n } else if (f.contains(\"R\")) {\n result = 1;\n } else {\n result = 0;\n }\n }\n\n private void output() {\n System.out.println(result);\n }\n}", "Main", "String f;", "f", "int result;", "result", "public static void main(String[] args){\n Main main = new Main();\n main.input();\n main.solve();\n main.output();\n }", "main", "{\n Main main = new Main();\n main.input();\n main.solve();\n main.output();\n }", "Main main = new Main();", "main", "new Main()", "main.input()", "main.input", "main", "main.solve()", "main.solve", "main", "main.output()", "main.output", "main", "String[] args", "args", "private void input() {\n Scanner sc = new Scanner(System.in);\n f = sc.next();\n result = 0;\n }", "input", "{\n Scanner sc = new Scanner(System.in);\n f = sc.next();\n result = 0;\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "f = sc.next()", "f", "sc.next()", "sc.next", "sc", "result = 0", "result", "0", "private void solve() {\n if (f.equals(\"RRR\")) {\n result = 3;\n } else if (f.equals(\"SRR\") || f.equals(\"RRS\")) {\n result = 2;\n } else if (f.contains(\"R\")) {\n result = 1;\n } else {\n result = 0;\n }\n }", "solve", "{\n if (f.equals(\"RRR\")) {\n result = 3;\n } else if (f.equals(\"SRR\") || f.equals(\"RRS\")) {\n result = 2;\n } else if (f.contains(\"R\")) {\n result = 1;\n } else {\n result = 0;\n }\n }", "if (f.equals(\"RRR\")) {\n result = 3;\n } else if (f.equals(\"SRR\") || f.equals(\"RRS\")) {\n result = 2;\n } else if (f.contains(\"R\")) {\n result = 1;\n } else {\n result = 0;\n }", "f.equals(\"RRR\")", "f.equals", "f", "\"RRR\"", "{\n result = 3;\n }", "result = 3", "result", "3", "if (f.equals(\"SRR\") || f.equals(\"RRS\")) {\n result = 2;\n } else if (f.contains(\"R\")) {\n result = 1;\n } else {\n result = 0;\n }", "f.equals(\"SRR\") || f.equals(\"RRS\")", "f.equals(\"SRR\")", "f.equals", "f", "\"SRR\"", "f.equals(\"RRS\")", "f.equals", "f", "\"RRS\"", "{\n result = 2;\n }", "result = 2", "result", "2", "if (f.contains(\"R\")) {\n result = 1;\n } else {\n result = 0;\n }", "f.contains(\"R\")", "f.contains", "f", "\"R\"", "{\n result = 1;\n }", "result = 1", "result", "1", "{\n result = 0;\n }", "result = 0", "result", "0", "private void output() {\n System.out.println(result);\n }", "output", "{\n System.out.println(result);\n }", "System.out.println(result)", "System.out.println", "System.out", "System", "System.out", "result", "public class Main {\n\tpublic static void main(String[] args){\n Main main = new Main();\n main.input();\n main.solve();\n main.output();\n }\n\n String f;\n int result;\n\n private void input() {\n Scanner sc = new Scanner(System.in);\n f = sc.next();\n result = 0;\n }\n\n private void solve() {\n if (f.equals(\"RRR\")) {\n result = 3;\n } else if (f.equals(\"SRR\") || f.equals(\"RRS\")) {\n result = 2;\n } else if (f.contains(\"R\")) {\n result = 1;\n } else {\n result = 0;\n }\n }\n\n private void output() {\n System.out.println(result);\n }\n}", "public class Main {\n\tpublic static void main(String[] args){\n Main main = new Main();\n main.input();\n main.solve();\n main.output();\n }\n\n String f;\n int result;\n\n private void input() {\n Scanner sc = new Scanner(System.in);\n f = sc.next();\n result = 0;\n }\n\n private void solve() {\n if (f.equals(\"RRR\")) {\n result = 3;\n } else if (f.equals(\"SRR\") || f.equals(\"RRS\")) {\n result = 2;\n } else if (f.contains(\"R\")) {\n result = 1;\n } else {\n result = 0;\n }\n }\n\n private void output() {\n System.out.println(result);\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args){ Main main = new Main(); main.input(); main.solve(); main.output(); } String f; int result; private void input() { Scanner sc = new Scanner(System.in); f = sc.next(); result = 0; } private void solve() { if (f.equals("RRR")) { result = 3; } else if (f.equals("SRR") || f.equals("RRS")) { result = 2; } else if (f.contains("R")) { result = 1; } else { result = 0; } } private void output() { System.out.println(result); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 35, 13, 34, 17, 1, 4, 18, 18, 13, 13, 17, 3, 34, 17, 1, 4, 18, 18, 13, 13, 17, 3, 34, 17, 1, 4, 18, 18, 13, 13, 17, 3, 34, 17, 1, 4, 18, 18, 13, 13, 17, 3, 34, 17, 1, 4, 18, 18, 13, 13, 17, 3, 34, 17, 1, 4, 18, 18, 13, 13, 17, 3, 34, 17, 1, 4, 18, 18, 13, 13, 17, 3, 34, 17, 1, 4, 18, 18, 13, 13, 17, 3, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 102, 5 ], [ 102, 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 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 22, 27 ], [ 21, 28 ], [ 17, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 31, 38 ], [ 17, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 42, 47 ], [ 41, 48 ], [ 17, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 51, 58 ], [ 17, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 61, 68 ], [ 17, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 71, 78 ], [ 17, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 81, 88 ], [ 17, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 91, 98 ], [ 6, 99 ], [ 99, 100 ], [ 0, 101 ], [ 101, 102 ], [ 101, 103 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String str = scan.nextLine();\n \n switch (str){\n case \"SSS\":\n System.out.println(\"0\");\n break;\n case \"SSR\":\n System.out.println(\"1\");\n break;\n case \"SRR\":\n System.out.println(\"2\");\n break;\n case \"RRR\":\n System.out.println(\"3\");\n break;\n case \"RRS\":\n System.out.println(\"2\");\n break;\n case \"RSS\":\n System.out.println(\"1\");\n break;\n case \"RSR\":\n System.out.println(\"1\");\n break;\n case \"SRS\":\n System.out.println(\"1\");\n break;\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String str = scan.nextLine();\n \n switch (str){\n case \"SSS\":\n System.out.println(\"0\");\n break;\n case \"SSR\":\n System.out.println(\"1\");\n break;\n case \"SRR\":\n System.out.println(\"2\");\n break;\n case \"RRR\":\n System.out.println(\"3\");\n break;\n case \"RRS\":\n System.out.println(\"2\");\n break;\n case \"RSS\":\n System.out.println(\"1\");\n break;\n case \"RSR\":\n System.out.println(\"1\");\n break;\n case \"SRS\":\n System.out.println(\"1\");\n break;\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String str = scan.nextLine();\n \n switch (str){\n case \"SSS\":\n System.out.println(\"0\");\n break;\n case \"SSR\":\n System.out.println(\"1\");\n break;\n case \"SRR\":\n System.out.println(\"2\");\n break;\n case \"RRR\":\n System.out.println(\"3\");\n break;\n case \"RRS\":\n System.out.println(\"2\");\n break;\n case \"RSS\":\n System.out.println(\"1\");\n break;\n case \"RSR\":\n System.out.println(\"1\");\n break;\n case \"SRS\":\n System.out.println(\"1\");\n break;\n }\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n String str = scan.nextLine();\n \n switch (str){\n case \"SSS\":\n System.out.println(\"0\");\n break;\n case \"SSR\":\n System.out.println(\"1\");\n break;\n case \"SRR\":\n System.out.println(\"2\");\n break;\n case \"RRR\":\n System.out.println(\"3\");\n break;\n case \"RRS\":\n System.out.println(\"2\");\n break;\n case \"RSS\":\n System.out.println(\"1\");\n break;\n case \"RSR\":\n System.out.println(\"1\");\n break;\n case \"SRS\":\n System.out.println(\"1\");\n break;\n }\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String str = scan.nextLine();", "str", "scan.nextLine()", "scan.nextLine", "scan", "switch (str){\n case \"SSS\":\n System.out.println(\"0\");\n break;\n case \"SSR\":\n System.out.println(\"1\");\n break;\n case \"SRR\":\n System.out.println(\"2\");\n break;\n case \"RRR\":\n System.out.println(\"3\");\n break;\n case \"RRS\":\n System.out.println(\"2\");\n break;\n case \"RSS\":\n System.out.println(\"1\");\n break;\n case \"RSR\":\n System.out.println(\"1\");\n break;\n case \"SRS\":\n System.out.println(\"1\");\n break;\n }", "str", "case \"SSS\":", "\"SSS\"", "case \"SSS\":", "System.out.println(\"0\")", "System.out.println", "System.out", "System", "System.out", "\"0\"", "break;", "case \"SSR\":", "\"SSR\"", "case \"SSR\":", "System.out.println(\"1\")", "System.out.println", "System.out", "System", "System.out", "\"1\"", "break;", "case \"SRR\":", "\"SRR\"", "case \"SRR\":", "System.out.println(\"2\")", "System.out.println", "System.out", "System", "System.out", "\"2\"", "break;", "case \"RRR\":", "\"RRR\"", "case \"RRR\":", "System.out.println(\"3\")", "System.out.println", "System.out", "System", "System.out", "\"3\"", "break;", "case \"RRS\":", "\"RRS\"", "case \"RRS\":", "System.out.println(\"2\")", "System.out.println", "System.out", "System", "System.out", "\"2\"", "break;", "case \"RSS\":", "\"RSS\"", "case \"RSS\":", "System.out.println(\"1\")", "System.out.println", "System.out", "System", "System.out", "\"1\"", "break;", "case \"RSR\":", "\"RSR\"", "case \"RSR\":", "System.out.println(\"1\")", "System.out.println", "System.out", "System", "System.out", "\"1\"", "break;", "case \"SRS\":", "\"SRS\"", "case \"SRS\":", "System.out.println(\"1\")", "System.out.println", "System.out", "System", "System.out", "\"1\"", "break;", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String str = scan.nextLine();\n \n switch (str){\n case \"SSS\":\n System.out.println(\"0\");\n break;\n case \"SSR\":\n System.out.println(\"1\");\n break;\n case \"SRR\":\n System.out.println(\"2\");\n break;\n case \"RRR\":\n System.out.println(\"3\");\n break;\n case \"RRS\":\n System.out.println(\"2\");\n break;\n case \"RSS\":\n System.out.println(\"1\");\n break;\n case \"RSR\":\n System.out.println(\"1\");\n break;\n case \"SRS\":\n System.out.println(\"1\");\n break;\n }\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String str = scan.nextLine();\n \n switch (str){\n case \"SSS\":\n System.out.println(\"0\");\n break;\n case \"SSR\":\n System.out.println(\"1\");\n break;\n case \"SRR\":\n System.out.println(\"2\");\n break;\n case \"RRR\":\n System.out.println(\"3\");\n break;\n case \"RRS\":\n System.out.println(\"2\");\n break;\n case \"RSS\":\n System.out.println(\"1\");\n break;\n case \"RSR\":\n System.out.println(\"1\");\n break;\n case \"SRS\":\n System.out.println(\"1\");\n break;\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String str = scan.nextLine(); switch (str){ case "SSS": System.out.println("0"); break; case "SSR": System.out.println("1"); break; case "SRR": System.out.println("2"); break; case "RRR": System.out.println("3"); break; case "RRS": System.out.println("2"); break; case "RSS": System.out.println("1"); break; case "RSR": System.out.println("1"); break; case "SRS": System.out.println("1"); break; } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 17, 14, 4, 18, 18, 13, 17, 17, 30, 14, 4, 18, 18, 13, 17, 17, 30, 14, 4, 18, 18, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 14, 4, 18, 18, 13, 17, 17, 30, 14, 4, 18, 18, 13, 17, 17, 30, 14, 4, 18, 18, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 14, 4, 18, 18, 13, 17, 17, 30, 14, 4, 18, 18, 13, 17, 17, 30, 14, 4, 18, 18, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 14, 4, 18, 18, 13, 17, 17, 30, 14, 4, 18, 18, 13, 17, 17, 30, 14, 4, 18, 18, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 14, 4, 18, 18, 13, 17, 17, 30, 14, 4, 18, 18, 13, 17, 17, 30, 14, 4, 18, 18, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 14, 4, 18, 18, 13, 17, 17, 30, 14, 4, 18, 18, 13, 17, 17, 30, 14, 4, 18, 18, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 14, 4, 18, 18, 13, 17, 17, 30, 14, 4, 18, 18, 13, 17, 17, 30, 14, 4, 18, 18, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 14, 4, 18, 18, 13, 17, 17, 30, 14, 4, 18, 18, 13, 17, 17, 30, 14, 4, 18, 18, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 263, 5 ], [ 263, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 14, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 20, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 28, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 36, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 8, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 51, 56 ], [ 50, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 58, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 66, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 8, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 80, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 88, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 96, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 8, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 111, 116 ], [ 110, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 119, 124 ], [ 118, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 127, 132 ], [ 126, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 134, 139 ], [ 8, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 141, 146 ], [ 140, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 149, 154 ], [ 148, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 157, 162 ], [ 156, 163 ], [ 163, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 164, 169 ], [ 8, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 171, 176 ], [ 170, 177 ], [ 177, 178 ], [ 178, 179 ], [ 179, 180 ], [ 180, 181 ], [ 181, 182 ], [ 181, 183 ], [ 179, 184 ], [ 178, 185 ], [ 185, 186 ], [ 186, 187 ], [ 187, 188 ], [ 188, 189 ], [ 189, 190 ], [ 189, 191 ], [ 187, 192 ], [ 186, 193 ], [ 193, 194 ], [ 194, 195 ], [ 195, 196 ], [ 196, 197 ], [ 196, 198 ], [ 194, 199 ], [ 8, 200 ], [ 200, 201 ], [ 201, 202 ], [ 202, 203 ], [ 203, 204 ], [ 203, 205 ], [ 201, 206 ], [ 200, 207 ], [ 207, 208 ], [ 208, 209 ], [ 209, 210 ], [ 210, 211 ], [ 211, 212 ], [ 211, 213 ], [ 209, 214 ], [ 208, 215 ], [ 215, 216 ], [ 216, 217 ], [ 217, 218 ], [ 218, 219 ], [ 219, 220 ], [ 219, 221 ], [ 217, 222 ], [ 216, 223 ], [ 223, 224 ], [ 224, 225 ], [ 225, 226 ], [ 226, 227 ], [ 226, 228 ], [ 224, 229 ], [ 8, 230 ], [ 230, 231 ], [ 231, 232 ], [ 232, 233 ], [ 233, 234 ], [ 233, 235 ], [ 231, 236 ], [ 230, 237 ], [ 237, 238 ], [ 238, 239 ], [ 239, 240 ], [ 240, 241 ], [ 241, 242 ], [ 241, 243 ], [ 239, 244 ], [ 238, 245 ], [ 245, 246 ], [ 246, 247 ], [ 247, 248 ], [ 248, 249 ], [ 249, 250 ], [ 249, 251 ], [ 247, 252 ], [ 246, 253 ], [ 253, 254 ], [ 254, 255 ], [ 255, 256 ], [ 256, 257 ], [ 256, 258 ], [ 254, 259 ], [ 6, 260 ], [ 260, 261 ], [ 0, 262 ], [ 262, 263 ], [ 262, 264 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n \n // とんでもないコードになってしまったゾォ...\n\n Scanner sc = new Scanner(System.in);\n String[] string = sc.next().split(\"\");\n\n // RRR\n if(string[0].equals(\"R\")){\n if(string[1].equals(\"R\")){\n if(string[2].equals(\"R\")){\n System.out.println(3);\n }\n }\n }\n // RRS\n if(string[0].equals(\"R\")){\n if(string[1].equals(\"R\")){\n if(string[2].equals(\"S\")){\n System.out.println(2);\n }\n }\n }\n // RSS\n if(string[0].equals(\"R\")){\n if(string[1].equals(\"S\")){\n if(string[2].equals(\"S\")){\n System.out.println(1);\n }\n }\n }\n // RSR\n if(string[0].equals(\"R\")){\n if(string[1].equals(\"S\")){\n if(string[2].equals(\"R\")){\n System.out.println(1);\n }\n }\n }\n // SSS\n if(string[0].equals(\"S\")){\n if(string[1].equals(\"S\")){\n if(string[2].equals(\"S\")){\n System.out.println(0);\n }\n }\n }\n // SSR\n if(string[0].equals(\"S\")){\n if(string[1].equals(\"S\")){\n if(string[2].equals(\"R\")){\n System.out.println(1);\n }\n }\n }\n // SRR\n if(string[0].equals(\"S\")){\n if(string[1].equals(\"R\")){\n if(string[2].equals(\"R\")){\n System.out.println(2);\n }\n }\n }\n // SRS\n if(string[0].equals(\"S\")){\n if(string[1].equals(\"R\")){\n if(string[2].equals(\"S\")){\n System.out.println(1);\n }\n }\n }\n\n\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) {\n \n // とんでもないコードになってしまったゾォ...\n\n Scanner sc = new Scanner(System.in);\n String[] string = sc.next().split(\"\");\n\n // RRR\n if(string[0].equals(\"R\")){\n if(string[1].equals(\"R\")){\n if(string[2].equals(\"R\")){\n System.out.println(3);\n }\n }\n }\n // RRS\n if(string[0].equals(\"R\")){\n if(string[1].equals(\"R\")){\n if(string[2].equals(\"S\")){\n System.out.println(2);\n }\n }\n }\n // RSS\n if(string[0].equals(\"R\")){\n if(string[1].equals(\"S\")){\n if(string[2].equals(\"S\")){\n System.out.println(1);\n }\n }\n }\n // RSR\n if(string[0].equals(\"R\")){\n if(string[1].equals(\"S\")){\n if(string[2].equals(\"R\")){\n System.out.println(1);\n }\n }\n }\n // SSS\n if(string[0].equals(\"S\")){\n if(string[1].equals(\"S\")){\n if(string[2].equals(\"S\")){\n System.out.println(0);\n }\n }\n }\n // SSR\n if(string[0].equals(\"S\")){\n if(string[1].equals(\"S\")){\n if(string[2].equals(\"R\")){\n System.out.println(1);\n }\n }\n }\n // SRR\n if(string[0].equals(\"S\")){\n if(string[1].equals(\"R\")){\n if(string[2].equals(\"R\")){\n System.out.println(2);\n }\n }\n }\n // SRS\n if(string[0].equals(\"S\")){\n if(string[1].equals(\"R\")){\n if(string[2].equals(\"S\")){\n System.out.println(1);\n }\n }\n }\n\n\n }\n}", "Main", "public static void main(String[] args) {\n \n // とんでもないコードになってしまったゾォ...\n\n Scanner sc = new Scanner(System.in);\n String[] string = sc.next().split(\"\");\n\n // RRR\n if(string[0].equals(\"R\")){\n if(string[1].equals(\"R\")){\n if(string[2].equals(\"R\")){\n System.out.println(3);\n }\n }\n }\n // RRS\n if(string[0].equals(\"R\")){\n if(string[1].equals(\"R\")){\n if(string[2].equals(\"S\")){\n System.out.println(2);\n }\n }\n }\n // RSS\n if(string[0].equals(\"R\")){\n if(string[1].equals(\"S\")){\n if(string[2].equals(\"S\")){\n System.out.println(1);\n }\n }\n }\n // RSR\n if(string[0].equals(\"R\")){\n if(string[1].equals(\"S\")){\n if(string[2].equals(\"R\")){\n System.out.println(1);\n }\n }\n }\n // SSS\n if(string[0].equals(\"S\")){\n if(string[1].equals(\"S\")){\n if(string[2].equals(\"S\")){\n System.out.println(0);\n }\n }\n }\n // SSR\n if(string[0].equals(\"S\")){\n if(string[1].equals(\"S\")){\n if(string[2].equals(\"R\")){\n System.out.println(1);\n }\n }\n }\n // SRR\n if(string[0].equals(\"S\")){\n if(string[1].equals(\"R\")){\n if(string[2].equals(\"R\")){\n System.out.println(2);\n }\n }\n }\n // SRS\n if(string[0].equals(\"S\")){\n if(string[1].equals(\"R\")){\n if(string[2].equals(\"S\")){\n System.out.println(1);\n }\n }\n }\n\n\n }", "main", "{\n \n // とんでもないコードになってしまったゾォ...\n\n Scanner sc = new Scanner(System.in);\n String[] string = sc.next().split(\"\");\n\n // RRR\n if(string[0].equals(\"R\")){\n if(string[1].equals(\"R\")){\n if(string[2].equals(\"R\")){\n System.out.println(3);\n }\n }\n }\n // RRS\n if(string[0].equals(\"R\")){\n if(string[1].equals(\"R\")){\n if(string[2].equals(\"S\")){\n System.out.println(2);\n }\n }\n }\n // RSS\n if(string[0].equals(\"R\")){\n if(string[1].equals(\"S\")){\n if(string[2].equals(\"S\")){\n System.out.println(1);\n }\n }\n }\n // RSR\n if(string[0].equals(\"R\")){\n if(string[1].equals(\"S\")){\n if(string[2].equals(\"R\")){\n System.out.println(1);\n }\n }\n }\n // SSS\n if(string[0].equals(\"S\")){\n if(string[1].equals(\"S\")){\n if(string[2].equals(\"S\")){\n System.out.println(0);\n }\n }\n }\n // SSR\n if(string[0].equals(\"S\")){\n if(string[1].equals(\"S\")){\n if(string[2].equals(\"R\")){\n System.out.println(1);\n }\n }\n }\n // SRR\n if(string[0].equals(\"S\")){\n if(string[1].equals(\"R\")){\n if(string[2].equals(\"R\")){\n System.out.println(2);\n }\n }\n }\n // SRS\n if(string[0].equals(\"S\")){\n if(string[1].equals(\"R\")){\n if(string[2].equals(\"S\")){\n System.out.println(1);\n }\n }\n }\n\n\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String[] string = sc.next().split(\"\");", "string", "sc.next().split(\"\")", "sc.next().split", "sc.next()", "sc.next", "sc", "\"\"", "if(string[0].equals(\"R\")){\n if(string[1].equals(\"R\")){\n if(string[2].equals(\"R\")){\n System.out.println(3);\n }\n }\n }", "string[0].equals(\"R\")", "string[0].equals", "string[0]", "string", "0", "\"R\"", "{\n if(string[1].equals(\"R\")){\n if(string[2].equals(\"R\")){\n System.out.println(3);\n }\n }\n }", "if(string[1].equals(\"R\")){\n if(string[2].equals(\"R\")){\n System.out.println(3);\n }\n }", "string[1].equals(\"R\")", "string[1].equals", "string[1]", "string", "1", "\"R\"", "{\n if(string[2].equals(\"R\")){\n System.out.println(3);\n }\n }", "if(string[2].equals(\"R\")){\n System.out.println(3);\n }", "string[2].equals(\"R\")", "string[2].equals", "string[2]", "string", "2", "\"R\"", "{\n System.out.println(3);\n }", "System.out.println(3)", "System.out.println", "System.out", "System", "System.out", "3", "if(string[0].equals(\"R\")){\n if(string[1].equals(\"R\")){\n if(string[2].equals(\"S\")){\n System.out.println(2);\n }\n }\n }", "string[0].equals(\"R\")", "string[0].equals", "string[0]", "string", "0", "\"R\"", "{\n if(string[1].equals(\"R\")){\n if(string[2].equals(\"S\")){\n System.out.println(2);\n }\n }\n }", "if(string[1].equals(\"R\")){\n if(string[2].equals(\"S\")){\n System.out.println(2);\n }\n }", "string[1].equals(\"R\")", "string[1].equals", "string[1]", "string", "1", "\"R\"", "{\n if(string[2].equals(\"S\")){\n System.out.println(2);\n }\n }", "if(string[2].equals(\"S\")){\n System.out.println(2);\n }", "string[2].equals(\"S\")", "string[2].equals", "string[2]", "string", "2", "\"S\"", "{\n System.out.println(2);\n }", "System.out.println(2)", "System.out.println", "System.out", "System", "System.out", "2", "if(string[0].equals(\"R\")){\n if(string[1].equals(\"S\")){\n if(string[2].equals(\"S\")){\n System.out.println(1);\n }\n }\n }", "string[0].equals(\"R\")", "string[0].equals", "string[0]", "string", "0", "\"R\"", "{\n if(string[1].equals(\"S\")){\n if(string[2].equals(\"S\")){\n System.out.println(1);\n }\n }\n }", "if(string[1].equals(\"S\")){\n if(string[2].equals(\"S\")){\n System.out.println(1);\n }\n }", "string[1].equals(\"S\")", "string[1].equals", "string[1]", "string", "1", "\"S\"", "{\n if(string[2].equals(\"S\")){\n System.out.println(1);\n }\n }", "if(string[2].equals(\"S\")){\n System.out.println(1);\n }", "string[2].equals(\"S\")", "string[2].equals", "string[2]", "string", "2", "\"S\"", "{\n System.out.println(1);\n }", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "if(string[0].equals(\"R\")){\n if(string[1].equals(\"S\")){\n if(string[2].equals(\"R\")){\n System.out.println(1);\n }\n }\n }", "string[0].equals(\"R\")", "string[0].equals", "string[0]", "string", "0", "\"R\"", "{\n if(string[1].equals(\"S\")){\n if(string[2].equals(\"R\")){\n System.out.println(1);\n }\n }\n }", "if(string[1].equals(\"S\")){\n if(string[2].equals(\"R\")){\n System.out.println(1);\n }\n }", "string[1].equals(\"S\")", "string[1].equals", "string[1]", "string", "1", "\"S\"", "{\n if(string[2].equals(\"R\")){\n System.out.println(1);\n }\n }", "if(string[2].equals(\"R\")){\n System.out.println(1);\n }", "string[2].equals(\"R\")", "string[2].equals", "string[2]", "string", "2", "\"R\"", "{\n System.out.println(1);\n }", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "if(string[0].equals(\"S\")){\n if(string[1].equals(\"S\")){\n if(string[2].equals(\"S\")){\n System.out.println(0);\n }\n }\n }", "string[0].equals(\"S\")", "string[0].equals", "string[0]", "string", "0", "\"S\"", "{\n if(string[1].equals(\"S\")){\n if(string[2].equals(\"S\")){\n System.out.println(0);\n }\n }\n }", "if(string[1].equals(\"S\")){\n if(string[2].equals(\"S\")){\n System.out.println(0);\n }\n }", "string[1].equals(\"S\")", "string[1].equals", "string[1]", "string", "1", "\"S\"", "{\n if(string[2].equals(\"S\")){\n System.out.println(0);\n }\n }", "if(string[2].equals(\"S\")){\n System.out.println(0);\n }", "string[2].equals(\"S\")", "string[2].equals", "string[2]", "string", "2", "\"S\"", "{\n System.out.println(0);\n }", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "if(string[0].equals(\"S\")){\n if(string[1].equals(\"S\")){\n if(string[2].equals(\"R\")){\n System.out.println(1);\n }\n }\n }", "string[0].equals(\"S\")", "string[0].equals", "string[0]", "string", "0", "\"S\"", "{\n if(string[1].equals(\"S\")){\n if(string[2].equals(\"R\")){\n System.out.println(1);\n }\n }\n }", "if(string[1].equals(\"S\")){\n if(string[2].equals(\"R\")){\n System.out.println(1);\n }\n }", "string[1].equals(\"S\")", "string[1].equals", "string[1]", "string", "1", "\"S\"", "{\n if(string[2].equals(\"R\")){\n System.out.println(1);\n }\n }", "if(string[2].equals(\"R\")){\n System.out.println(1);\n }", "string[2].equals(\"R\")", "string[2].equals", "string[2]", "string", "2", "\"R\"", "{\n System.out.println(1);\n }", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "if(string[0].equals(\"S\")){\n if(string[1].equals(\"R\")){\n if(string[2].equals(\"R\")){\n System.out.println(2);\n }\n }\n }", "string[0].equals(\"S\")", "string[0].equals", "string[0]", "string", "0", "\"S\"", "{\n if(string[1].equals(\"R\")){\n if(string[2].equals(\"R\")){\n System.out.println(2);\n }\n }\n }", "if(string[1].equals(\"R\")){\n if(string[2].equals(\"R\")){\n System.out.println(2);\n }\n }", "string[1].equals(\"R\")", "string[1].equals", "string[1]", "string", "1", "\"R\"", "{\n if(string[2].equals(\"R\")){\n System.out.println(2);\n }\n }", "if(string[2].equals(\"R\")){\n System.out.println(2);\n }", "string[2].equals(\"R\")", "string[2].equals", "string[2]", "string", "2", "\"R\"", "{\n System.out.println(2);\n }", "System.out.println(2)", "System.out.println", "System.out", "System", "System.out", "2", "if(string[0].equals(\"S\")){\n if(string[1].equals(\"R\")){\n if(string[2].equals(\"S\")){\n System.out.println(1);\n }\n }\n }", "string[0].equals(\"S\")", "string[0].equals", "string[0]", "string", "0", "\"S\"", "{\n if(string[1].equals(\"R\")){\n if(string[2].equals(\"S\")){\n System.out.println(1);\n }\n }\n }", "if(string[1].equals(\"R\")){\n if(string[2].equals(\"S\")){\n System.out.println(1);\n }\n }", "string[1].equals(\"R\")", "string[1].equals", "string[1]", "string", "1", "\"R\"", "{\n if(string[2].equals(\"S\")){\n System.out.println(1);\n }\n }", "if(string[2].equals(\"S\")){\n System.out.println(1);\n }", "string[2].equals(\"S\")", "string[2].equals", "string[2]", "string", "2", "\"S\"", "{\n System.out.println(1);\n }", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n \n // とんでもないコードになってしまったゾォ...\n\n Scanner sc = new Scanner(System.in);\n String[] string = sc.next().split(\"\");\n\n // RRR\n if(string[0].equals(\"R\")){\n if(string[1].equals(\"R\")){\n if(string[2].equals(\"R\")){\n System.out.println(3);\n }\n }\n }\n // RRS\n if(string[0].equals(\"R\")){\n if(string[1].equals(\"R\")){\n if(string[2].equals(\"S\")){\n System.out.println(2);\n }\n }\n }\n // RSS\n if(string[0].equals(\"R\")){\n if(string[1].equals(\"S\")){\n if(string[2].equals(\"S\")){\n System.out.println(1);\n }\n }\n }\n // RSR\n if(string[0].equals(\"R\")){\n if(string[1].equals(\"S\")){\n if(string[2].equals(\"R\")){\n System.out.println(1);\n }\n }\n }\n // SSS\n if(string[0].equals(\"S\")){\n if(string[1].equals(\"S\")){\n if(string[2].equals(\"S\")){\n System.out.println(0);\n }\n }\n }\n // SSR\n if(string[0].equals(\"S\")){\n if(string[1].equals(\"S\")){\n if(string[2].equals(\"R\")){\n System.out.println(1);\n }\n }\n }\n // SRR\n if(string[0].equals(\"S\")){\n if(string[1].equals(\"R\")){\n if(string[2].equals(\"R\")){\n System.out.println(2);\n }\n }\n }\n // SRS\n if(string[0].equals(\"S\")){\n if(string[1].equals(\"R\")){\n if(string[2].equals(\"S\")){\n System.out.println(1);\n }\n }\n }\n\n\n }\n}", "public class Main {\n public static void main(String[] args) {\n \n // とんでもないコードになってしまったゾォ...\n\n Scanner sc = new Scanner(System.in);\n String[] string = sc.next().split(\"\");\n\n // RRR\n if(string[0].equals(\"R\")){\n if(string[1].equals(\"R\")){\n if(string[2].equals(\"R\")){\n System.out.println(3);\n }\n }\n }\n // RRS\n if(string[0].equals(\"R\")){\n if(string[1].equals(\"R\")){\n if(string[2].equals(\"S\")){\n System.out.println(2);\n }\n }\n }\n // RSS\n if(string[0].equals(\"R\")){\n if(string[1].equals(\"S\")){\n if(string[2].equals(\"S\")){\n System.out.println(1);\n }\n }\n }\n // RSR\n if(string[0].equals(\"R\")){\n if(string[1].equals(\"S\")){\n if(string[2].equals(\"R\")){\n System.out.println(1);\n }\n }\n }\n // SSS\n if(string[0].equals(\"S\")){\n if(string[1].equals(\"S\")){\n if(string[2].equals(\"S\")){\n System.out.println(0);\n }\n }\n }\n // SSR\n if(string[0].equals(\"S\")){\n if(string[1].equals(\"S\")){\n if(string[2].equals(\"R\")){\n System.out.println(1);\n }\n }\n }\n // SRR\n if(string[0].equals(\"S\")){\n if(string[1].equals(\"R\")){\n if(string[2].equals(\"R\")){\n System.out.println(2);\n }\n }\n }\n // SRS\n if(string[0].equals(\"S\")){\n if(string[1].equals(\"R\")){\n if(string[2].equals(\"S\")){\n System.out.println(1);\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); String[] string = sc.next().split(""); // RRR if(string[0].equals("R")){ if(string[1].equals("R")){ if(string[2].equals("R")){ System.out.println(3); } } } // RRS if(string[0].equals("R")){ if(string[1].equals("R")){ if(string[2].equals("S")){ System.out.println(2); } } } // RSS if(string[0].equals("R")){ if(string[1].equals("S")){ if(string[2].equals("S")){ System.out.println(1); } } } // RSR if(string[0].equals("R")){ if(string[1].equals("S")){ if(string[2].equals("R")){ System.out.println(1); } } } // SSS if(string[0].equals("S")){ if(string[1].equals("S")){ if(string[2].equals("S")){ System.out.println(0); } } } // SSR if(string[0].equals("S")){ if(string[1].equals("S")){ if(string[2].equals("R")){ System.out.println(1); } } } // SRR if(string[0].equals("S")){ if(string[1].equals("R")){ if(string[2].equals("R")){ System.out.println(2); } } } // SRS if(string[0].equals("S")){ if(string[1].equals("R")){ if(string[2].equals("S")){ System.out.println(1); } } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 13, 4, 18, 18, 13, 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 ], [ 20, 21 ], [ 19, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 33, 35 ], [ 26, 36 ], [ 36, 37 ], [ 37, 38 ], [ 26, 39 ], [ 40, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 43, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 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;\n\npublic class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString S = stdIn.next();\n\t\tString[] s = S.split(\"S\");\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < s.length; i ++) {\n\t\t\tans = Math.max(ans, s[i].length());\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\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\tString S = stdIn.next();\n\t\tString[] s = S.split(\"S\");\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < s.length; i ++) {\n\t\t\tans = Math.max(ans, s[i].length());\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t}\n}", "Main", "public static void main(String args[]) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString S = stdIn.next();\n\t\tString[] s = S.split(\"S\");\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < s.length; i ++) {\n\t\t\tans = Math.max(ans, s[i].length());\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t}", "main", "{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString S = stdIn.next();\n\t\tString[] s = S.split(\"S\");\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < s.length; i ++) {\n\t\t\tans = Math.max(ans, s[i].length());\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t}", "Scanner stdIn = new Scanner(System.in);", "stdIn", "new Scanner(System.in)", "String S = stdIn.next();", "S", "stdIn.next()", "stdIn.next", "stdIn", "String[] s = S.split(\"S\");", "s", "S.split(\"S\")", "S.split", "S", "\"S\"", "int ans = 0;", "ans", "0", "for(int i = 0; i < s.length; i ++) {\n\t\t\tans = Math.max(ans, s[i].length());\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < s.length", "i", "s.length", "s", "s.length", "i ++", "i ++", "i", "{\n\t\t\tans = Math.max(ans, s[i].length());\n\t\t}", "{\n\t\t\tans = Math.max(ans, s[i].length());\n\t\t}", "ans = Math.max(ans, s[i].length())", "ans", "Math.max(ans, s[i].length())", "Math.max", "Math", "ans", "s[i].length()", "s[i].length", "s[i]", "s", "i", "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 stdIn = new Scanner(System.in);\n\t\tString S = stdIn.next();\n\t\tString[] s = S.split(\"S\");\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < s.length; i ++) {\n\t\t\tans = Math.max(ans, s[i].length());\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t}\n}", "public class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString S = stdIn.next();\n\t\tString[] s = S.split(\"S\");\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < s.length; i ++) {\n\t\t\tans = Math.max(ans, s[i].length());\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner stdIn = new Scanner(System.in); String S = stdIn.next(); String[] s = S.split("S"); int ans = 0; for(int i = 0; i < s.length; i ++) { ans = Math.max(ans, s[i].length()); } System.out.println(ans); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 17, 30, 40, 13, 30, 0, 13, 17, 14, 2, 13, 13, 30, 0, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 69, 5 ], [ 69, 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 ], [ 30, 31 ], [ 31, 32 ], [ 23, 33 ], [ 33, 34 ], [ 34, 35 ], [ 23, 36 ], [ 37, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 39, 44 ], [ 38, 45 ], [ 45, 46 ], [ 46, 47 ], [ 38, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 37, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 8, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 6, 66 ], [ 66, 67 ], [ 0, 68 ], [ 68, 69 ], [ 68, 70 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String text = sc.next();\n int numR = 0;\n int maxR = 0;\n for (int i = 0; i < text.length(); i++){\n if (text.charAt(i) == 'R'){\n numR++;\n } else {\n numR = 0;\n }\n\n if (numR >= maxR){\n maxR = numR;\n }\n }\n System.out.println(maxR);\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 String text = sc.next();\n int numR = 0;\n int maxR = 0;\n for (int i = 0; i < text.length(); i++){\n if (text.charAt(i) == 'R'){\n numR++;\n } else {\n numR = 0;\n }\n\n if (numR >= maxR){\n maxR = numR;\n }\n }\n System.out.println(maxR);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String text = sc.next();\n int numR = 0;\n int maxR = 0;\n for (int i = 0; i < text.length(); i++){\n if (text.charAt(i) == 'R'){\n numR++;\n } else {\n numR = 0;\n }\n\n if (numR >= maxR){\n maxR = numR;\n }\n }\n System.out.println(maxR);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String text = sc.next();\n int numR = 0;\n int maxR = 0;\n for (int i = 0; i < text.length(); i++){\n if (text.charAt(i) == 'R'){\n numR++;\n } else {\n numR = 0;\n }\n\n if (numR >= maxR){\n maxR = numR;\n }\n }\n System.out.println(maxR);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String text = sc.next();", "text", "sc.next()", "sc.next", "sc", "int numR = 0;", "numR", "0", "int maxR = 0;", "maxR", "0", "for (int i = 0; i < text.length(); i++){\n if (text.charAt(i) == 'R'){\n numR++;\n } else {\n numR = 0;\n }\n\n if (numR >= maxR){\n maxR = numR;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < text.length()", "i", "text.length()", "text.length", "text", "i++", "i++", "i", "{\n if (text.charAt(i) == 'R'){\n numR++;\n } else {\n numR = 0;\n }\n\n if (numR >= maxR){\n maxR = numR;\n }\n }", "{\n if (text.charAt(i) == 'R'){\n numR++;\n } else {\n numR = 0;\n }\n\n if (numR >= maxR){\n maxR = numR;\n }\n }", "if (text.charAt(i) == 'R'){\n numR++;\n } else {\n numR = 0;\n }", "text.charAt(i) == 'R'", "text.charAt(i)", "text.charAt", "text", "i", "'R'", "{\n numR++;\n }", "numR++", "numR", "{\n numR = 0;\n }", "numR = 0", "numR", "0", "if (numR >= maxR){\n maxR = numR;\n }", "numR >= maxR", "numR", "maxR", "{\n maxR = numR;\n }", "maxR = numR", "maxR", "numR", "System.out.println(maxR)", "System.out.println", "System.out", "System", "System.out", "maxR", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String text = sc.next();\n int numR = 0;\n int maxR = 0;\n for (int i = 0; i < text.length(); i++){\n if (text.charAt(i) == 'R'){\n numR++;\n } else {\n numR = 0;\n }\n\n if (numR >= maxR){\n maxR = numR;\n }\n }\n System.out.println(maxR);\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String text = sc.next();\n int numR = 0;\n int maxR = 0;\n for (int i = 0; i < text.length(); i++){\n if (text.charAt(i) == 'R'){\n numR++;\n } else {\n numR = 0;\n }\n\n if (numR >= maxR){\n maxR = numR;\n }\n }\n System.out.println(maxR);\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String text = sc.next(); int numR = 0; int maxR = 0; for (int i = 0; i < text.length(); i++){ if (text.charAt(i) == 'R'){ numR++; } else { numR = 0; } if (numR >= maxR){ maxR = numR; } } System.out.println(maxR); } }
[ 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, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 17, 30, 40, 13, 30, 0, 13, 17, 0, 13, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 68, 5 ], [ 68, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 23, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 23, 33 ], [ 33, 34 ], [ 34, 35 ], [ 23, 36 ], [ 37, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 39, 44 ], [ 38, 45 ], [ 45, 46 ], [ 46, 47 ], [ 38, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 37, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 54, 58 ], [ 8, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 6, 65 ], [ 65, 66 ], [ 0, 67 ], [ 67, 68 ], [ 67, 69 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString S = scan.next();\n\t\tint day = 0;\n\t\tint daymax = 0;\n\t\tfor (int d=0;d < S.length() ;d++ ) {\n\t\t\tif (S.charAt(d) == 'R') {\n\t\t\t\tday++;\n\t\t\t} else {\n\t\t\t\tday = 0;\n\t\t\t}\n\t\t\tdaymax = Math.max(daymax,day);\n\t\t}\n\t\tSystem.out.println(daymax);\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\tString S = scan.next();\n\t\tint day = 0;\n\t\tint daymax = 0;\n\t\tfor (int d=0;d < S.length() ;d++ ) {\n\t\t\tif (S.charAt(d) == 'R') {\n\t\t\t\tday++;\n\t\t\t} else {\n\t\t\t\tday = 0;\n\t\t\t}\n\t\t\tdaymax = Math.max(daymax,day);\n\t\t}\n\t\tSystem.out.println(daymax);\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString S = scan.next();\n\t\tint day = 0;\n\t\tint daymax = 0;\n\t\tfor (int d=0;d < S.length() ;d++ ) {\n\t\t\tif (S.charAt(d) == 'R') {\n\t\t\t\tday++;\n\t\t\t} else {\n\t\t\t\tday = 0;\n\t\t\t}\n\t\t\tdaymax = Math.max(daymax,day);\n\t\t}\n\t\tSystem.out.println(daymax);\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tString S = scan.next();\n\t\tint day = 0;\n\t\tint daymax = 0;\n\t\tfor (int d=0;d < S.length() ;d++ ) {\n\t\t\tif (S.charAt(d) == 'R') {\n\t\t\t\tday++;\n\t\t\t} else {\n\t\t\t\tday = 0;\n\t\t\t}\n\t\t\tdaymax = Math.max(daymax,day);\n\t\t}\n\t\tSystem.out.println(daymax);\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String S = scan.next();", "S", "scan.next()", "scan.next", "scan", "int day = 0;", "day", "0", "int daymax = 0;", "daymax", "0", "for (int d=0;d < S.length() ;d++ ) {\n\t\t\tif (S.charAt(d) == 'R') {\n\t\t\t\tday++;\n\t\t\t} else {\n\t\t\t\tday = 0;\n\t\t\t}\n\t\t\tdaymax = Math.max(daymax,day);\n\t\t}", "int d=0;", "int d=0;", "d", "0", "d < S.length()", "d", "S.length()", "S.length", "S", "d++", "d++", "d", "{\n\t\t\tif (S.charAt(d) == 'R') {\n\t\t\t\tday++;\n\t\t\t} else {\n\t\t\t\tday = 0;\n\t\t\t}\n\t\t\tdaymax = Math.max(daymax,day);\n\t\t}", "{\n\t\t\tif (S.charAt(d) == 'R') {\n\t\t\t\tday++;\n\t\t\t} else {\n\t\t\t\tday = 0;\n\t\t\t}\n\t\t\tdaymax = Math.max(daymax,day);\n\t\t}", "if (S.charAt(d) == 'R') {\n\t\t\t\tday++;\n\t\t\t} else {\n\t\t\t\tday = 0;\n\t\t\t}", "S.charAt(d) == 'R'", "S.charAt(d)", "S.charAt", "S", "d", "'R'", "{\n\t\t\t\tday++;\n\t\t\t}", "day++", "day", "{\n\t\t\t\tday = 0;\n\t\t\t}", "day = 0", "day", "0", "daymax = Math.max(daymax,day)", "daymax", "Math.max(daymax,day)", "Math.max", "Math", "daymax", "day", "System.out.println(daymax)", "System.out.println", "System.out", "System", "System.out", "daymax", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString S = scan.next();\n\t\tint day = 0;\n\t\tint daymax = 0;\n\t\tfor (int d=0;d < S.length() ;d++ ) {\n\t\t\tif (S.charAt(d) == 'R') {\n\t\t\t\tday++;\n\t\t\t} else {\n\t\t\t\tday = 0;\n\t\t\t}\n\t\t\tdaymax = Math.max(daymax,day);\n\t\t}\n\t\tSystem.out.println(daymax);\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString S = scan.next();\n\t\tint day = 0;\n\t\tint daymax = 0;\n\t\tfor (int d=0;d < S.length() ;d++ ) {\n\t\t\tif (S.charAt(d) == 'R') {\n\t\t\t\tday++;\n\t\t\t} else {\n\t\t\t\tday = 0;\n\t\t\t}\n\t\t\tdaymax = Math.max(daymax,day);\n\t\t}\n\t\tSystem.out.println(daymax);\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String S = scan.next(); int day = 0; int daymax = 0; for (int d=0;d < S.length() ;d++ ) { if (S.charAt(d) == 'R') { day++; } else { day = 0; } daymax = Math.max(daymax,day); } System.out.println(daymax); } }
[ 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, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 17, 30, 0, 13, 17, 30, 0, 13, 17, 14, 2, 13, 13, 30, 0, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 70, 5 ], [ 70, 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 ], [ 30, 31 ], [ 31, 32 ], [ 23, 33 ], [ 33, 34 ], [ 34, 35 ], [ 23, 36 ], [ 37, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 39, 44 ], [ 38, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 38, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 37, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 8, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 6, 67 ], [ 67, 68 ], [ 0, 69 ], [ 69, 70 ], [ 69, 71 ] ]
[ "import java.util.Scanner;\n \npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n // 天気\n String s = sc.next();\n\t\t//連続最大日数\n int max=0;\n \t//現在何連続目か\n \tint now=0;\n \n \tfor(int i=0;i<s.length();i++){\n if(s.charAt(i)=='R'){\n now+=1;\n }else{\n now=0;\n }\n if(now>=max){\n max=now;\n }\n }\n System.out.println(max);\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 // 天気\n String s = sc.next();\n\t\t//連続最大日数\n int max=0;\n \t//現在何連続目か\n \tint now=0;\n \n \tfor(int i=0;i<s.length();i++){\n if(s.charAt(i)=='R'){\n now+=1;\n }else{\n now=0;\n }\n if(now>=max){\n max=now;\n }\n }\n System.out.println(max);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n // 天気\n String s = sc.next();\n\t\t//連続最大日数\n int max=0;\n \t//現在何連続目か\n \tint now=0;\n \n \tfor(int i=0;i<s.length();i++){\n if(s.charAt(i)=='R'){\n now+=1;\n }else{\n now=0;\n }\n if(now>=max){\n max=now;\n }\n }\n System.out.println(max);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n \n // 天気\n String s = sc.next();\n\t\t//連続最大日数\n int max=0;\n \t//現在何連続目か\n \tint now=0;\n \n \tfor(int i=0;i<s.length();i++){\n if(s.charAt(i)=='R'){\n now+=1;\n }else{\n now=0;\n }\n if(now>=max){\n max=now;\n }\n }\n System.out.println(max);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "int max=0;", "max", "0", "int now=0;", "now", "0", "for(int i=0;i<s.length();i++){\n if(s.charAt(i)=='R'){\n now+=1;\n }else{\n now=0;\n }\n if(now>=max){\n max=now;\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<s.length()", "i", "s.length()", "s.length", "s", "i++", "i++", "i", "{\n if(s.charAt(i)=='R'){\n now+=1;\n }else{\n now=0;\n }\n if(now>=max){\n max=now;\n }\n }", "{\n if(s.charAt(i)=='R'){\n now+=1;\n }else{\n now=0;\n }\n if(now>=max){\n max=now;\n }\n }", "if(s.charAt(i)=='R'){\n now+=1;\n }else{\n now=0;\n }", "s.charAt(i)=='R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "{\n now+=1;\n }", "now+=1", "now", "1", "{\n now=0;\n }", "now=0", "now", "0", "if(now>=max){\n max=now;\n }", "now>=max", "now", "max", "{\n max=now;\n }", "max=now", "max", "now", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n // 天気\n String s = sc.next();\n\t\t//連続最大日数\n int max=0;\n \t//現在何連続目か\n \tint now=0;\n \n \tfor(int i=0;i<s.length();i++){\n if(s.charAt(i)=='R'){\n now+=1;\n }else{\n now=0;\n }\n if(now>=max){\n max=now;\n }\n }\n System.out.println(max);\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n // 天気\n String s = sc.next();\n\t\t//連続最大日数\n int max=0;\n \t//現在何連続目か\n \tint now=0;\n \n \tfor(int i=0;i<s.length();i++){\n if(s.charAt(i)=='R'){\n now+=1;\n }else{\n now=0;\n }\n if(now>=max){\n max=now;\n }\n }\n System.out.println(max);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); // 天気 String s = sc.next(); //連続最大日数 int max=0; //現在何連続目か int now=0; for(int i=0;i<s.length();i++){ if(s.charAt(i)=='R'){ now+=1; }else{ now=0; } if(now>=max){ max=now; } } System.out.println(max); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 4, 18, 18, 13, 13, 4, 18, 13, 13, 23, 13, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 13, 14, 2, 13, 17, 30, 0, 13, 4, 18, 13, 13, 2, 2, 13, 13, 17, 30, 0, 13, 2, 13, 17, 29, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 90, 5 ], [ 90, 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 ], [ 26, 27 ], [ 25, 28 ], [ 6, 29 ], [ 29, 30 ], [ 0, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 35, 39 ], [ 39, 40 ], [ 39, 41 ], [ 35, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 42, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 42, 52 ], [ 52, 53 ], [ 53, 54 ], [ 42, 55 ], [ 56, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 56, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 70, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 63, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 82, 84 ], [ 35, 85 ], [ 85, 86 ], [ 33, 87 ], [ 87, 88 ], [ 0, 89 ], [ 89, 90 ], [ 89, 91 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n Solver solverObj = new Solver();\n System.out.println(solverObj.solve(s));\n }\n}\n\nclass Solver {\n public int solve(String s){\n int max = 0;\n\n int left = 0;\n for(int i=0;i<s.length();i++){\n char c = s.charAt(i);\n if(c == 'R'){\n max = Math.max(max, i - left + 1);\n } else {\n left = i + 1;\n }\n }\n return max;\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 String s = sc.next();\n Solver solverObj = new Solver();\n System.out.println(solverObj.solve(s));\n }\n}", "Main", "public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n Solver solverObj = new Solver();\n System.out.println(solverObj.solve(s));\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n Solver solverObj = new Solver();\n System.out.println(solverObj.solve(s));\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "Solver solverObj = new Solver();", "solverObj", "new Solver()", "System.out.println(solverObj.solve(s))", "System.out.println", "System.out", "System", "System.out", "solverObj.solve(s)", "solverObj.solve", "solverObj", "s", "String args[]", "args", "class Solver {\n public int solve(String s){\n int max = 0;\n\n int left = 0;\n for(int i=0;i<s.length();i++){\n char c = s.charAt(i);\n if(c == 'R'){\n max = Math.max(max, i - left + 1);\n } else {\n left = i + 1;\n }\n }\n return max;\n }\n}", "Solver", "public int solve(String s){\n int max = 0;\n\n int left = 0;\n for(int i=0;i<s.length();i++){\n char c = s.charAt(i);\n if(c == 'R'){\n max = Math.max(max, i - left + 1);\n } else {\n left = i + 1;\n }\n }\n return max;\n }", "solve", "{\n int max = 0;\n\n int left = 0;\n for(int i=0;i<s.length();i++){\n char c = s.charAt(i);\n if(c == 'R'){\n max = Math.max(max, i - left + 1);\n } else {\n left = i + 1;\n }\n }\n return max;\n }", "int max = 0;", "max", "0", "int left = 0;", "left", "0", "for(int i=0;i<s.length();i++){\n char c = s.charAt(i);\n if(c == 'R'){\n max = Math.max(max, i - left + 1);\n } else {\n left = i + 1;\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<s.length()", "i", "s.length()", "s.length", "s", "i++", "i++", "i", "{\n char c = s.charAt(i);\n if(c == 'R'){\n max = Math.max(max, i - left + 1);\n } else {\n left = i + 1;\n }\n }", "{\n char c = s.charAt(i);\n if(c == 'R'){\n max = Math.max(max, i - left + 1);\n } else {\n left = i + 1;\n }\n }", "char c = s.charAt(i);", "c", "s.charAt(i)", "s.charAt", "s", "i", "if(c == 'R'){\n max = Math.max(max, i - left + 1);\n } else {\n left = i + 1;\n }", "c == 'R'", "c", "'R'", "{\n max = Math.max(max, i - left + 1);\n }", "max = Math.max(max, i - left + 1)", "max", "Math.max(max, i - left + 1)", "Math.max", "Math", "max", "i - left + 1", "i - left", "i", "left", "1", "{\n left = i + 1;\n }", "left = i + 1", "left", "i + 1", "i", "1", "return max;", "max", "String s", "s", "public class Main {\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n Solver solverObj = new Solver();\n System.out.println(solverObj.solve(s));\n }\n}", "public class Main {\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n Solver solverObj = new Solver();\n System.out.println(solverObj.solve(s));\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String args[]){ Scanner sc = new Scanner(System.in); String s = sc.next(); Solver solverObj = new Solver(); System.out.println(solverObj.solve(s)); } } class Solver { public int solve(String s){ int max = 0; int left = 0; for(int i=0;i<s.length();i++){ char c = s.charAt(i); if(c == 'R'){ max = Math.max(max, i - left + 1); } else { left = i + 1; } } return max; } }
[ 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, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 17, 30, 40, 13, 30, 0, 13, 4, 18, 13, 13, 13, 0, 13, 17, 0, 13, 4, 18, 13, 13, 13, 4, 18, 13, 13, 4, 18, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 29, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 168, 8 ], [ 168, 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 ], [ 34, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 29, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 43, 48 ], [ 42, 49 ], [ 49, 50 ], [ 50, 51 ], [ 42, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 55, 59 ], [ 52, 60 ], [ 60, 61 ], [ 60, 62 ], [ 11, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 65, 69 ], [ 11, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 11, 74 ], [ 74, 75 ], [ 75, 76 ], [ 9, 77 ], [ 77, 78 ], [ 168, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 79, 83 ], [ 83, 84 ], [ 79, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 79, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 94, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 104, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 93, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 79, 119 ], [ 119, 120 ], [ 119, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 123, 126 ], [ 126, 127 ], [ 79, 128 ], [ 128, 129 ], [ 128, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 132, 135 ], [ 135, 136 ], [ 79, 137 ], [ 137, 138 ], [ 137, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 141, 144 ], [ 144, 145 ], [ 79, 146 ], [ 146, 147 ], [ 146, 148 ], [ 148, 149 ], [ 149, 150 ], [ 149, 151 ], [ 148, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 152, 159 ], [ 159, 160 ], [ 160, 161 ], [ 160, 162 ], [ 162, 163 ], [ 163, 164 ], [ 148, 165 ], [ 165, 166 ], [ 0, 167 ], [ 167, 168 ], [ 167, 169 ] ]
[ "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 String s = sc.next();\n int ans = 0; int run = 0;\n for (int i = 0; i < 3; i++) {\n if (s.charAt(i) == 'R') {\n run++;\n } else {\n ans = Math.max(ans, run);\n \trun = 0;\n }\n }\n ans = Math.max(ans, run);\n out.println(ans);\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 String s = sc.next();\n int ans = 0; int run = 0;\n for (int i = 0; i < 3; i++) {\n if (s.charAt(i) == 'R') {\n run++;\n } else {\n ans = Math.max(ans, run);\n \trun = 0;\n }\n }\n ans = Math.max(ans, run);\n out.println(ans);\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 String s = sc.next();\n int ans = 0; int run = 0;\n for (int i = 0; i < 3; i++) {\n if (s.charAt(i) == 'R') {\n run++;\n } else {\n ans = Math.max(ans, run);\n \trun = 0;\n }\n }\n ans = Math.max(ans, run);\n out.println(ans);\n out.close();\n }", "main", "{\n MyScanner sc = new MyScanner();\n PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out));\n String s = sc.next();\n int ans = 0; int run = 0;\n for (int i = 0; i < 3; i++) {\n if (s.charAt(i) == 'R') {\n run++;\n } else {\n ans = Math.max(ans, run);\n \trun = 0;\n }\n }\n ans = Math.max(ans, run);\n out.println(ans);\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))", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "int ans = 0;", "ans", "0", "int run = 0;", "run", "0", "for (int i = 0; i < 3; i++) {\n if (s.charAt(i) == 'R') {\n run++;\n } else {\n ans = Math.max(ans, run);\n \trun = 0;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < 3", "i", "3", "i++", "i++", "i", "{\n if (s.charAt(i) == 'R') {\n run++;\n } else {\n ans = Math.max(ans, run);\n \trun = 0;\n }\n }", "{\n if (s.charAt(i) == 'R') {\n run++;\n } else {\n ans = Math.max(ans, run);\n \trun = 0;\n }\n }", "if (s.charAt(i) == 'R') {\n run++;\n } else {\n ans = Math.max(ans, run);\n \trun = 0;\n }", "s.charAt(i) == 'R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "{\n run++;\n }", "run++", "run", "{\n ans = Math.max(ans, run);\n \trun = 0;\n }", "ans = Math.max(ans, run)", "ans", "Math.max(ans, run)", "Math.max", "Math", "ans", "run", "run = 0", "run", "0", "ans = Math.max(ans, run)", "ans", "Math.max(ans, run)", "Math.max", "Math", "ans", "run", "out.println(ans)", "out.println", "out", "ans", "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 String s = sc.next();\n int ans = 0; int run = 0;\n for (int i = 0; i < 3; i++) {\n if (s.charAt(i) == 'R') {\n run++;\n } else {\n ans = Math.max(ans, run);\n \trun = 0;\n }\n }\n ans = Math.max(ans, run);\n out.println(ans);\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 String s = sc.next();\n int ans = 0; int run = 0;\n for (int i = 0; i < 3; i++) {\n if (s.charAt(i) == 'R') {\n run++;\n } else {\n ans = Math.max(ans, run);\n \trun = 0;\n }\n }\n ans = Math.max(ans, run);\n out.println(ans);\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)); String s = sc.next(); int ans = 0; int run = 0; for (int i = 0; i < 3; i++) { if (s.charAt(i) == 'R') { run++; } else { ans = Math.max(ans, run); run = 0; } } ans = Math.max(ans, run); out.println(ans); 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, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 29, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 29, 14, 2, 4, 18, 13, 17, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 29, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 70, 5 ], [ 70, 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 ], [ 18, 21 ], [ 17, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 23, 28 ], [ 22, 29 ], [ 8, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 30, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 35, 42 ], [ 8, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 44, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 43, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 53, 60 ], [ 8, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 6, 67 ], [ 67, 68 ], [ 0, 69 ], [ 69, 70 ], [ 69, 71 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString weather = sc.next();\n\t\t\n\t\tif(weather.equals(\"SSS\")) {\n\t\t\tSystem.out.println(0);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(weather.equals(\"RRR\")) {\n\t\t\tSystem.out.println(3);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(weather.equals(\"RRS\")||weather.equals(\"SRR\")) {\n\t\t\tSystem.out.println(2);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tSystem.out.println(1);\n\n\n\t\t\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString weather = sc.next();\n\t\t\n\t\tif(weather.equals(\"SSS\")) {\n\t\t\tSystem.out.println(0);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(weather.equals(\"RRR\")) {\n\t\t\tSystem.out.println(3);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(weather.equals(\"RRS\")||weather.equals(\"SRR\")) {\n\t\t\tSystem.out.println(2);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tSystem.out.println(1);\n\n\n\t\t\n\t}\n}", "Main", "public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString weather = sc.next();\n\t\t\n\t\tif(weather.equals(\"SSS\")) {\n\t\t\tSystem.out.println(0);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(weather.equals(\"RRR\")) {\n\t\t\tSystem.out.println(3);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(weather.equals(\"RRS\")||weather.equals(\"SRR\")) {\n\t\t\tSystem.out.println(2);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tSystem.out.println(1);\n\n\n\t\t\n\t}", "main", "{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString weather = sc.next();\n\t\t\n\t\tif(weather.equals(\"SSS\")) {\n\t\t\tSystem.out.println(0);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(weather.equals(\"RRR\")) {\n\t\t\tSystem.out.println(3);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(weather.equals(\"RRS\")||weather.equals(\"SRR\")) {\n\t\t\tSystem.out.println(2);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tSystem.out.println(1);\n\n\n\t\t\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String weather = sc.next();", "weather", "sc.next()", "sc.next", "sc", "if(weather.equals(\"SSS\")) {\n\t\t\tSystem.out.println(0);\n\t\t\treturn;\n\t\t}", "weather.equals(\"SSS\")", "weather.equals", "weather", "\"SSS\"", "{\n\t\t\tSystem.out.println(0);\n\t\t\treturn;\n\t\t}", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "return;", "if(weather.equals(\"RRR\")) {\n\t\t\tSystem.out.println(3);\n\t\t\treturn;\n\t\t}", "weather.equals(\"RRR\")", "weather.equals", "weather", "\"RRR\"", "{\n\t\t\tSystem.out.println(3);\n\t\t\treturn;\n\t\t}", "System.out.println(3)", "System.out.println", "System.out", "System", "System.out", "3", "return;", "if(weather.equals(\"RRS\")||weather.equals(\"SRR\")) {\n\t\t\tSystem.out.println(2);\n\t\t\treturn;\n\t\t}", "weather.equals(\"RRS\")||weather.equals(\"SRR\")", "weather.equals(\"RRS\")", "weather.equals", "weather", "\"RRS\"", "weather.equals(\"SRR\")", "weather.equals", "weather", "\"SRR\"", "{\n\t\t\tSystem.out.println(2);\n\t\t\treturn;\n\t\t}", "System.out.println(2)", "System.out.println", "System.out", "System", "System.out", "2", "return;", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString weather = sc.next();\n\t\t\n\t\tif(weather.equals(\"SSS\")) {\n\t\t\tSystem.out.println(0);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(weather.equals(\"RRR\")) {\n\t\t\tSystem.out.println(3);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(weather.equals(\"RRS\")||weather.equals(\"SRR\")) {\n\t\t\tSystem.out.println(2);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tSystem.out.println(1);\n\n\n\t\t\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString weather = sc.next();\n\t\t\n\t\tif(weather.equals(\"SSS\")) {\n\t\t\tSystem.out.println(0);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(weather.equals(\"RRR\")) {\n\t\t\tSystem.out.println(3);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(weather.equals(\"RRS\")||weather.equals(\"SRR\")) {\n\t\t\tSystem.out.println(2);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tSystem.out.println(1);\n\n\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); String weather = sc.next(); if(weather.equals("SSS")) { System.out.println(0); return; } if(weather.equals("RRR")) { System.out.println(3); return; } if(weather.equals("RRS")||weather.equals("SRR")) { System.out.println(2); return; } System.out.println(1); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 14, 4, 18, 13, 17, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 18, 13, 13, 17, 14, 2, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 18, 13, 13, 17, 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 ], [ 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 ], [ 102, 23 ], [ 102, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 26, 35 ], [ 35, 36 ], [ 35, 37 ], [ 26, 38 ], [ 38, 39 ], [ 26, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 40, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 40, 51 ], [ 51, 52 ], [ 54, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 54, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 53, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 54, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 51, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 51, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 78, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 77, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 77, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 24, 99 ], [ 99, 100 ], [ 0, 101 ], [ 101, 102 ], [ 101, 103 ] ]
[ "import java.io.*;\nimport java.math.*;\nimport java.security.*;\nimport java.text.*;\nimport java.util.*;\nimport java.util.concurrent.*;\nimport java.util.regex.*;\n\n\n\n public class Main\n {\n public static void main(String[] args) {\n \n Scanner sc = new Scanner(System.in);\n \n String str = sc.next();\n int rain = 0;\n char ch;\n \n if(str.equals(\"RRR\")) \n System.out.println(3);\n \n else if(str.equals(\"RSS\") || str.equals(\"RSR\") || str.equals(\"SRS\") || str.equals(\"SSR\"))\n System.out.println(1);\n \n else if(str.equals(\"RRS\") || str.equals(\"SRR\"))\n System.out.println(2);\n \n else\n System.out.println(0);\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.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 Scanner sc = new Scanner(System.in);\n \n String str = sc.next();\n int rain = 0;\n char ch;\n \n if(str.equals(\"RRR\")) \n System.out.println(3);\n \n else if(str.equals(\"RSS\") || str.equals(\"RSR\") || str.equals(\"SRS\") || str.equals(\"SSR\"))\n System.out.println(1);\n \n else if(str.equals(\"RRS\") || str.equals(\"SRR\"))\n System.out.println(2);\n \n else\n System.out.println(0);\n \n }\n }", "Main", "public static void main(String[] args) {\n \n Scanner sc = new Scanner(System.in);\n \n String str = sc.next();\n int rain = 0;\n char ch;\n \n if(str.equals(\"RRR\")) \n System.out.println(3);\n \n else if(str.equals(\"RSS\") || str.equals(\"RSR\") || str.equals(\"SRS\") || str.equals(\"SSR\"))\n System.out.println(1);\n \n else if(str.equals(\"RRS\") || str.equals(\"SRR\"))\n System.out.println(2);\n \n else\n System.out.println(0);\n \n }", "main", "{\n \n Scanner sc = new Scanner(System.in);\n \n String str = sc.next();\n int rain = 0;\n char ch;\n \n if(str.equals(\"RRR\")) \n System.out.println(3);\n \n else if(str.equals(\"RSS\") || str.equals(\"RSR\") || str.equals(\"SRS\") || str.equals(\"SSR\"))\n System.out.println(1);\n \n else if(str.equals(\"RRS\") || str.equals(\"SRR\"))\n System.out.println(2);\n \n else\n System.out.println(0);\n \n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String str = sc.next();", "str", "sc.next()", "sc.next", "sc", "int rain = 0;", "rain", "0", "char ch;", "ch", "if(str.equals(\"RRR\")) \n System.out.println(3);\n \n else if(str.equals(\"RSS\") || str.equals(\"RSR\") || str.equals(\"SRS\") || str.equals(\"SSR\"))\n System.out.println(1);\n \n else if(str.equals(\"RRS\") || str.equals(\"SRR\"))\n System.out.println(2);\n \n else\n System.out.println(0);", "str.equals(\"RRR\")", "str.equals", "str", "\"RRR\"", "System.out.println(3)", "System.out.println", "System.out", "System", "System.out", "3", "if(str.equals(\"RSS\") || str.equals(\"RSR\") || str.equals(\"SRS\") || str.equals(\"SSR\"))\n System.out.println(1);\n \n else if(str.equals(\"RRS\") || str.equals(\"SRR\"))\n System.out.println(2);\n \n else\n System.out.println(0);", "str.equals(\"RSS\") || str.equals(\"RSR\") || str.equals(\"SRS\") || str.equals(\"SSR\")", "str.equals(\"SRS\")", "str.equals(\"RSS\") || str.equals(\"RSR\") || str.equals(\"SRS\") || str.equals(\"SSR\")", "str.equals(\"RSS\")", "str.equals", "str", "\"RSS\"", "str.equals(\"RSR\")", "str.equals", "str", "\"RSR\"", "str.equals(\"SRS\")", "str.equals", "str", "\"SRS\"", "str.equals(\"SSR\")", "str.equals", "str", "\"SSR\"", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "if(str.equals(\"RRS\") || str.equals(\"SRR\"))\n System.out.println(2);\n \n else\n System.out.println(0);", "str.equals(\"RRS\") || str.equals(\"SRR\")", "str.equals(\"RRS\")", "str.equals", "str", "\"RRS\"", "str.equals(\"SRR\")", "str.equals", "str", "\"SRR\"", "System.out.println(2)", "System.out.println", "System.out", "System", "System.out", "2", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "String[] args", "args", "public class Main\n {\n public static void main(String[] args) {\n \n Scanner sc = new Scanner(System.in);\n \n String str = sc.next();\n int rain = 0;\n char ch;\n \n if(str.equals(\"RRR\")) \n System.out.println(3);\n \n else if(str.equals(\"RSS\") || str.equals(\"RSR\") || str.equals(\"SRS\") || str.equals(\"SSR\"))\n System.out.println(1);\n \n else if(str.equals(\"RRS\") || str.equals(\"SRR\"))\n System.out.println(2);\n \n else\n System.out.println(0);\n \n }\n }", "public class Main\n {\n public static void main(String[] args) {\n \n Scanner sc = new Scanner(System.in);\n \n String str = sc.next();\n int rain = 0;\n char ch;\n \n if(str.equals(\"RRR\")) \n System.out.println(3);\n \n else if(str.equals(\"RSS\") || str.equals(\"RSR\") || str.equals(\"SRS\") || str.equals(\"SSR\"))\n System.out.println(1);\n \n else if(str.equals(\"RRS\") || str.equals(\"SRR\"))\n System.out.println(2);\n \n else\n System.out.println(0);\n \n }\n }", "Main" ]
import java.io.*; import java.math.*; import java.security.*; import java.text.*; import java.util.*; import java.util.concurrent.*; import java.util.regex.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str = sc.next(); int rain = 0; char ch; if(str.equals("RRR")) System.out.println(3); else if(str.equals("RSS") || str.equals("RSR") || str.equals("SRS") || str.equals("SSR")) System.out.println(1); else if(str.equals("RRS") || str.equals("SRR")) System.out.println(2); 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, 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, 17, 14, 4, 18, 13, 17, 30, 4, 18, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 2, 4, 18, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 4, 18, 13, 13, 17, 2, 4, 18, 13, 2, 13, 17, 17, 30, 40, 13, 4, 18, 13, 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, 20, 42, 40, 4, 13, 13, 30, 14, 4, 18, 13, 13, 30, 4, 18, 13, 13, 0, 13, 4, 13, 29, 4, 18, 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, 12, 13, 30, 29, 4, 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 ], [ 297, 23 ], [ 297, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 29, 31 ], [ 26, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 34, 36 ], [ 26, 37 ], [ 37, 38 ], [ 37, 39 ], [ 26, 40 ], [ 40, 41 ], [ 40, 42 ], [ 26, 43 ], [ 43, 44 ], [ 43, 45 ], [ 26, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 46, 50 ], [ 46, 51 ], [ 26, 52 ], [ 52, 53 ], [ 53, 54 ], [ 24, 55 ], [ 55, 56 ], [ 297, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 61, 67 ], [ 67, 68 ], [ 67, 69 ], [ 61, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 70, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 70, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 88, 92 ], [ 81, 93 ], [ 93, 94 ], [ 94, 95 ], [ 81, 96 ], [ 97, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 101, 104 ], [ 100, 105 ], [ 99, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 107, 110 ], [ 110, 111 ], [ 110, 112 ], [ 106, 113 ], [ 98, 114 ], [ 114, 115 ], [ 115, 116 ], [ 80, 117 ], [ 117, 118 ], [ 118, 119 ], [ 117, 120 ], [ 59, 121 ], [ 121, 122 ], [ 59, 123 ], [ 123, 124 ], [ 59, 125 ], [ 125, 126 ], [ 297, 127 ], [ 127, 128 ], [ 127, 129 ], [ 129, 130 ], [ 127, 131 ], [ 131, 132 ], [ 131, 133 ], [ 127, 135 ], [ 135, 136 ], [ 127, 137 ], [ 137, 138 ], [ 127, 139 ], [ 139, 140 ], [ 127, 141 ], [ 141, 142 ], [ 141, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 144, 148 ], [ 141, 149 ], [ 149, 150 ], [ 127, 151 ], [ 151, 152 ], [ 151, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 157, 158 ], [ 154, 159 ], [ 159, 160 ], [ 160, 161 ], [ 153, 162 ], [ 162, 163 ], [ 163, 164 ], [ 163, 165 ], [ 162, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 166, 170 ], [ 170, 171 ], [ 171, 172 ], [ 171, 173 ], [ 173, 174 ], [ 174, 175 ], [ 170, 176 ], [ 176, 177 ], [ 177, 178 ], [ 177, 179 ], [ 179, 180 ], [ 180, 181 ], [ 179, 182 ], [ 166, 183 ], [ 183, 184 ], [ 184, 185 ], [ 184, 186 ], [ 183, 187 ], [ 187, 188 ], [ 188, 189 ], [ 189, 190 ], [ 153, 191 ], [ 191, 192 ], [ 192, 193 ], [ 192, 194 ], [ 194, 195 ], [ 127, 196 ], [ 196, 197 ], [ 196, 198 ], [ 198, 199 ], [ 199, 200 ], [ 199, 201 ], [ 201, 202 ], [ 198, 203 ], [ 203, 204 ], [ 204, 205 ], [ 204, 206 ], [ 203, 207 ], [ 207, 208 ], [ 208, 209 ], [ 208, 210 ], [ 210, 211 ], [ 198, 212 ], [ 212, 213 ], [ 212, 214 ], [ 198, 215 ], [ 215, 216 ], [ 216, 217 ], [ 217, 218 ], [ 217, 219 ], [ 215, 220 ], [ 220, 221 ], [ 221, 222 ], [ 222, 223 ], [ 223, 224 ], [ 222, 225 ], [ 221, 226 ], [ 226, 227 ], [ 227, 228 ], [ 228, 229 ], [ 227, 230 ], [ 220, 231 ], [ 231, 232 ], [ 231, 233 ], [ 233, 234 ], [ 198, 235 ], [ 235, 236 ], [ 236, 237 ], [ 237, 238 ], [ 127, 239 ], [ 239, 240 ], [ 239, 241 ], [ 241, 242 ], [ 242, 243 ], [ 243, 244 ], [ 243, 245 ], [ 242, 246 ], [ 246, 247 ], [ 247, 248 ], [ 248, 249 ], [ 249, 250 ], [ 248, 251 ], [ 241, 252 ], [ 252, 253 ], [ 253, 254 ], [ 253, 255 ], [ 239, 256 ], [ 256, 257 ], [ 127, 258 ], [ 258, 259 ], [ 258, 260 ], [ 260, 261 ], [ 261, 262 ], [ 265, 263 ], [ 275, 264 ], [ 272, 265 ], [ 265, 266 ], [ 266, 267 ], [ 266, 268 ], [ 265, 269 ], [ 269, 270 ], [ 269, 271 ], [ 272, 272 ], [ 272, 273 ], [ 272, 274 ], [ 275, 275 ], [ 275, 276 ], [ 275, 277 ], [ 265, 278 ], [ 278, 279 ], [ 278, 280 ], [ 280, 281 ], [ 258, 282 ], [ 282, 283 ], [ 127, 284 ], [ 284, 285 ], [ 284, 286 ], [ 286, 287 ], [ 287, 288 ], [ 288, 289 ], [ 127, 290 ], [ 290, 291 ], [ 290, 292 ], [ 292, 293 ], [ 292, 294 ], [ 294, 295 ], [ 0, 296 ], [ 296, 297 ], [ 296, 298 ] ]
[ "import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.InputMismatchException;\nimport java.io.IOException;\nimport java.io.InputStream;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n *\n * @author DJ\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 ARainySeason solver = new ARainySeason();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ARainySeason {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n String s = in.next();\n int cnt = 1;\n if (s.contains(\"SSS\")) {\n out.println(\"0\");\n } else {\n for (int i = 0; i < s.length() - 1; ++i) {\n if (s.charAt(i) == 'R' && s.charAt(i + 1) == 'R') {\n cnt++;\n }\n }\n out.println(cnt);\n }\n }\n\n }\n\n static class InputReader {\n private final InputStream stream;\n private final 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 String nextString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n if (Character.isValidCodePoint(c)) {\n res.appendCodePoint(c);\n }\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\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 String next() {\n return nextString();\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}\n", "import java.io.OutputStream;", "OutputStream", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.util.InputMismatchException;", "InputMismatchException", "java.util", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n ARainySeason solver = new ARainySeason();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ARainySeason {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n String s = in.next();\n int cnt = 1;\n if (s.contains(\"SSS\")) {\n out.println(\"0\");\n } else {\n for (int i = 0; i < s.length() - 1; ++i) {\n if (s.charAt(i) == 'R' && s.charAt(i + 1) == 'R') {\n cnt++;\n }\n }\n out.println(cnt);\n }\n }\n\n }\n\n static class InputReader {\n private final InputStream stream;\n private final 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 String nextString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n if (Character.isValidCodePoint(c)) {\n res.appendCodePoint(c);\n }\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\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 String next() {\n return nextString();\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 PrintWriter out = new PrintWriter(outputStream);\n ARainySeason solver = new ARainySeason();\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 ARainySeason solver = new ARainySeason();\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)", "ARainySeason solver = new ARainySeason();", "solver", "new ARainySeason()", "solver.solve(1, in, out)", "solver.solve", "solver", "1", "in", "out", "out.close()", "out.close", "out", "String[] args", "args", "static class ARainySeason {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n String s = in.next();\n int cnt = 1;\n if (s.contains(\"SSS\")) {\n out.println(\"0\");\n } else {\n for (int i = 0; i < s.length() - 1; ++i) {\n if (s.charAt(i) == 'R' && s.charAt(i + 1) == 'R') {\n cnt++;\n }\n }\n out.println(cnt);\n }\n }\n\n }", "ARainySeason", "public void solve(int testNumber, InputReader in, PrintWriter out) {\n String s = in.next();\n int cnt = 1;\n if (s.contains(\"SSS\")) {\n out.println(\"0\");\n } else {\n for (int i = 0; i < s.length() - 1; ++i) {\n if (s.charAt(i) == 'R' && s.charAt(i + 1) == 'R') {\n cnt++;\n }\n }\n out.println(cnt);\n }\n }", "solve", "{\n String s = in.next();\n int cnt = 1;\n if (s.contains(\"SSS\")) {\n out.println(\"0\");\n } else {\n for (int i = 0; i < s.length() - 1; ++i) {\n if (s.charAt(i) == 'R' && s.charAt(i + 1) == 'R') {\n cnt++;\n }\n }\n out.println(cnt);\n }\n }", "String s = in.next();", "s", "in.next()", "in.next", "in", "int cnt = 1;", "cnt", "1", "if (s.contains(\"SSS\")) {\n out.println(\"0\");\n } else {\n for (int i = 0; i < s.length() - 1; ++i) {\n if (s.charAt(i) == 'R' && s.charAt(i + 1) == 'R') {\n cnt++;\n }\n }\n out.println(cnt);\n }", "s.contains(\"SSS\")", "s.contains", "s", "\"SSS\"", "{\n out.println(\"0\");\n }", "out.println(\"0\")", "out.println", "out", "\"0\"", "{\n for (int i = 0; i < s.length() - 1; ++i) {\n if (s.charAt(i) == 'R' && s.charAt(i + 1) == 'R') {\n cnt++;\n }\n }\n out.println(cnt);\n }", "for (int i = 0; i < s.length() - 1; ++i) {\n if (s.charAt(i) == 'R' && s.charAt(i + 1) == 'R') {\n cnt++;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < s.length() - 1", "i", "s.length() - 1", "s.length()", "s.length", "s", "1", "++i", "++i", "i", "{\n if (s.charAt(i) == 'R' && s.charAt(i + 1) == 'R') {\n cnt++;\n }\n }", "{\n if (s.charAt(i) == 'R' && s.charAt(i + 1) == 'R') {\n cnt++;\n }\n }", "if (s.charAt(i) == 'R' && s.charAt(i + 1) == 'R') {\n cnt++;\n }", "s.charAt(i) == 'R' && s.charAt(i + 1) == 'R'", "s.charAt(i) == 'R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "s.charAt(i + 1) == 'R'", "s.charAt(i + 1)", "s.charAt", "s", "i + 1", "i", "1", "'R'", "{\n cnt++;\n }", "cnt++", "cnt", "out.println(cnt)", "out.println", "out", "cnt", "int testNumber", "testNumber", "InputReader in", "in", "PrintWriter out", "out", "static class InputReader {\n private final InputStream stream;\n private final 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 String nextString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n if (Character.isValidCodePoint(c)) {\n res.appendCodePoint(c);\n }\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\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 String next() {\n return nextString();\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }", "InputReader", "private final InputStream stream;", "stream", "private final 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 String nextString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n if (Character.isValidCodePoint(c)) {\n res.appendCodePoint(c);\n }\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }", "nextString", "{\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n if (Character.isValidCodePoint(c)) {\n res.appendCodePoint(c);\n }\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 if (Character.isValidCodePoint(c)) {\n res.appendCodePoint(c);\n }\n c = read();\n } while (!isSpaceChar(c));", "!isSpaceChar(c)", "isSpaceChar(c)", "isSpaceChar", "c", "{\n if (Character.isValidCodePoint(c)) {\n res.appendCodePoint(c);\n }\n c = read();\n }", "if (Character.isValidCodePoint(c)) {\n res.appendCodePoint(c);\n }", "Character.isValidCodePoint(c)", "Character.isValidCodePoint", "Character", "c", "{\n res.appendCodePoint(c);\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 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 String next() {\n return nextString();\n }", "next", "{\n return nextString();\n }", "return nextString();", "nextString()", "nextString", "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 PrintWriter out = new PrintWriter(outputStream);\n ARainySeason solver = new ARainySeason();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ARainySeason {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n String s = in.next();\n int cnt = 1;\n if (s.contains(\"SSS\")) {\n out.println(\"0\");\n } else {\n for (int i = 0; i < s.length() - 1; ++i) {\n if (s.charAt(i) == 'R' && s.charAt(i + 1) == 'R') {\n cnt++;\n }\n }\n out.println(cnt);\n }\n }\n\n }\n\n static class InputReader {\n private final InputStream stream;\n private final 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 String nextString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n if (Character.isValidCodePoint(c)) {\n res.appendCodePoint(c);\n }\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\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 String next() {\n return nextString();\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 PrintWriter out = new PrintWriter(outputStream);\n ARainySeason solver = new ARainySeason();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ARainySeason {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n String s = in.next();\n int cnt = 1;\n if (s.contains(\"SSS\")) {\n out.println(\"0\");\n } else {\n for (int i = 0; i < s.length() - 1; ++i) {\n if (s.charAt(i) == 'R' && s.charAt(i + 1) == 'R') {\n cnt++;\n }\n }\n out.println(cnt);\n }\n }\n\n }\n\n static class InputReader {\n private final InputStream stream;\n private final 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 String nextString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n if (Character.isValidCodePoint(c)) {\n res.appendCodePoint(c);\n }\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\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 String next() {\n return nextString();\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}", "Main" ]
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.InputMismatchException; import java.io.IOException; import java.io.InputStream; /** * Built using CHelper plug-in * Actual solution is at the top * * @author DJ */ 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); ARainySeason solver = new ARainySeason(); solver.solve(1, in, out); out.close(); } static class ARainySeason { public void solve(int testNumber, InputReader in, PrintWriter out) { String s = in.next(); int cnt = 1; if (s.contains("SSS")) { out.println("0"); } else { for (int i = 0; i < s.length() - 1; ++i) { if (s.charAt(i) == 'R' && s.charAt(i + 1) == 'R') { cnt++; } } out.println(cnt); } } } static class InputReader { private final InputStream stream; private final 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 String nextString() { int c = read(); while (isSpaceChar(c)) { c = read(); } StringBuilder res = new StringBuilder(); do { if (Character.isValidCodePoint(c)) { res.appendCodePoint(c); } c = read(); } while (!isSpaceChar(c)); return res.toString(); } 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 String next() { return nextString(); } public interface SpaceCharFilter { public boolean isSpaceChar(int ch); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 17, 40, 13, 30, 0, 13, 4, 18, 13, 13, 13, 0, 13, 17, 0, 13, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 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, 4, 13, 42, 4, 18, 13, 13, 30, 0, 13, 4, 13, 41, 13, 20, 4, 18, 13, 13, 0, 13, 4, 13, 42, 40, 4, 18, 13, 13, 30, 4, 18, 13, 13, 0, 13, 4, 13, 29, 4, 18, 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, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 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, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 4, 13, 42, 4, 18, 13, 13, 30, 0, 13, 4, 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, 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, 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 ], [ 566, 11 ], [ 566, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 14, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 29, 39 ], [ 39, 40 ], [ 40, 41 ], [ 29, 42 ], [ 43, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 45, 50 ], [ 44, 51 ], [ 51, 52 ], [ 44, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 56, 60 ], [ 53, 61 ], [ 61, 62 ], [ 61, 63 ], [ 14, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 66, 70 ], [ 14, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 12, 77 ], [ 77, 78 ], [ 0, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 83, 85 ], [ 79, 86 ], [ 86, 87 ], [ 79, 88 ], [ 88, 89 ], [ 79, 90 ], [ 90, 91 ], [ 79, 92 ], [ 92, 93 ], [ 79, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 100, 101 ], [ 100, 102 ], [ 96, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 106, 108 ], [ 79, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 115, 116 ], [ 115, 117 ], [ 111, 119 ], [ 119, 120 ], [ 119, 121 ], [ 121, 122 ], [ 121, 123 ], [ 109, 124 ], [ 124, 125 ], [ 79, 126 ], [ 126, 127 ], [ 126, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 128, 133 ], [ 133, 134 ], [ 133, 135 ], [ 128, 136 ], [ 136, 137 ], [ 128, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 142, 143 ], [ 139, 144 ], [ 144, 145 ], [ 138, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 147, 151 ], [ 146, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 155, 156 ], [ 152, 157 ], [ 128, 158 ], [ 158, 159 ], [ 79, 160 ], [ 160, 161 ], [ 160, 162 ], [ 162, 163 ], [ 163, 164 ], [ 163, 165 ], [ 165, 166 ], [ 162, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 168, 171 ], [ 167, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 175, 176 ], [ 162, 177 ], [ 177, 178 ], [ 177, 179 ], [ 162, 180 ], [ 180, 181 ], [ 181, 182 ], [ 180, 183 ], [ 162, 184 ], [ 184, 185 ], [ 184, 186 ], [ 186, 187 ], [ 162, 188 ], [ 188, 189 ], [ 189, 190 ], [ 190, 191 ], [ 191, 192 ], [ 190, 193 ], [ 188, 194 ], [ 194, 195 ], [ 195, 196 ], [ 196, 197 ], [ 195, 198 ], [ 194, 199 ], [ 199, 200 ], [ 199, 201 ], [ 201, 202 ], [ 162, 203 ], [ 203, 204 ], [ 204, 205 ], [ 205, 206 ], [ 79, 207 ], [ 207, 208 ], [ 207, 209 ], [ 209, 210 ], [ 210, 211 ], [ 210, 212 ], [ 209, 213 ], [ 213, 214 ], [ 213, 215 ], [ 215, 216 ], [ 209, 217 ], [ 217, 218 ], [ 218, 219 ], [ 218, 220 ], [ 217, 221 ], [ 221, 222 ], [ 221, 223 ], [ 223, 224 ], [ 209, 225 ], [ 225, 226 ], [ 225, 227 ], [ 227, 228 ], [ 227, 229 ], [ 209, 230 ], [ 230, 231 ], [ 230, 232 ], [ 232, 233 ], [ 232, 234 ], [ 234, 235 ], [ 209, 236 ], [ 236, 237 ], [ 237, 238 ], [ 238, 239 ], [ 239, 240 ], [ 239, 241 ], [ 241, 242 ], [ 238, 243 ], [ 237, 244 ], [ 244, 245 ], [ 244, 246 ], [ 236, 247 ], [ 247, 248 ], [ 248, 249 ], [ 248, 250 ], [ 250, 251 ], [ 251, 252 ], [ 252, 253 ], [ 252, 254 ], [ 251, 255 ], [ 250, 256 ], [ 209, 257 ], [ 257, 258 ], [ 257, 259 ], [ 259, 260 ], [ 260, 261 ], [ 209, 262 ], [ 262, 263 ], [ 79, 264 ], [ 264, 265 ], [ 264, 266 ], [ 266, 267 ], [ 267, 268 ], [ 267, 269 ], [ 266, 271 ], [ 271, 272 ], [ 272, 273 ], [ 273, 274 ], [ 273, 275 ], [ 271, 276 ], [ 276, 277 ], [ 276, 278 ], [ 271, 279 ], [ 279, 280 ], [ 280, 281 ], [ 271, 282 ], [ 283, 283 ], [ 283, 284 ], [ 284, 285 ], [ 285, 286 ], [ 285, 287 ], [ 284, 288 ], [ 288, 289 ], [ 266, 290 ], [ 290, 291 ], [ 264, 292 ], [ 292, 293 ], [ 79, 294 ], [ 294, 295 ], [ 294, 296 ], [ 296, 297 ], [ 297, 298 ], [ 297, 299 ], [ 296, 300 ], [ 300, 301 ], [ 300, 302 ], [ 302, 303 ], [ 296, 304 ], [ 304, 305 ], [ 305, 306 ], [ 305, 307 ], [ 304, 308 ], [ 308, 309 ], [ 308, 310 ], [ 310, 311 ], [ 296, 312 ], [ 312, 313 ], [ 312, 314 ], [ 314, 315 ], [ 314, 316 ], [ 296, 317 ], [ 317, 318 ], [ 317, 319 ], [ 319, 320 ], [ 319, 321 ], [ 321, 322 ], [ 296, 323 ], [ 323, 324 ], [ 324, 325 ], [ 325, 326 ], [ 326, 327 ], [ 326, 328 ], [ 328, 329 ], [ 325, 330 ], [ 324, 331 ], [ 331, 332 ], [ 331, 333 ], [ 323, 334 ], [ 334, 335 ], [ 335, 336 ], [ 335, 337 ], [ 337, 338 ], [ 338, 339 ], [ 339, 340 ], [ 339, 341 ], [ 338, 342 ], [ 337, 343 ], [ 296, 344 ], [ 344, 345 ], [ 344, 346 ], [ 346, 347 ], [ 347, 348 ], [ 296, 349 ], [ 349, 350 ], [ 79, 351 ], [ 351, 352 ], [ 351, 353 ], [ 353, 354 ], [ 354, 355 ], [ 354, 356 ], [ 353, 358 ], [ 358, 359 ], [ 359, 360 ], [ 360, 361 ], [ 360, 362 ], [ 358, 363 ], [ 363, 364 ], [ 363, 365 ], [ 358, 366 ], [ 366, 367 ], [ 367, 368 ], [ 358, 369 ], [ 370, 370 ], [ 370, 371 ], [ 371, 372 ], [ 372, 373 ], [ 372, 374 ], [ 371, 375 ], [ 375, 376 ], [ 353, 377 ], [ 377, 378 ], [ 351, 379 ], [ 379, 380 ], [ 79, 381 ], [ 381, 382 ], [ 381, 383 ], [ 383, 384 ], [ 384, 385 ], [ 384, 386 ], [ 386, 387 ], [ 383, 388 ], [ 388, 389 ], [ 389, 390 ], [ 390, 391 ], [ 389, 392 ], [ 388, 393 ], [ 393, 394 ], [ 394, 395 ], [ 394, 396 ], [ 396, 397 ], [ 383, 398 ], [ 398, 399 ], [ 79, 400 ], [ 400, 401 ], [ 400, 402 ], [ 402, 403 ], [ 403, 404 ], [ 403, 405 ], [ 402, 406 ], [ 406, 407 ], [ 406, 408 ], [ 402, 409 ], [ 409, 410 ], [ 409, 411 ], [ 411, 412 ], [ 402, 413 ], [ 413, 414 ], [ 414, 415 ], [ 414, 416 ], [ 413, 417 ], [ 417, 418 ], [ 417, 419 ], [ 419, 420 ], [ 402, 421 ], [ 421, 422 ], [ 421, 423 ], [ 423, 424 ], [ 423, 425 ], [ 402, 426 ], [ 426, 427 ], [ 426, 428 ], [ 428, 429 ], [ 428, 430 ], [ 430, 431 ], [ 402, 432 ], [ 432, 433 ], [ 433, 434 ], [ 434, 435 ], [ 435, 436 ], [ 435, 437 ], [ 437, 438 ], [ 434, 439 ], [ 433, 440 ], [ 440, 441 ], [ 440, 442 ], [ 432, 443 ], [ 443, 444 ], [ 444, 445 ], [ 444, 446 ], [ 446, 447 ], [ 447, 448 ], [ 448, 449 ], [ 448, 450 ], [ 447, 451 ], [ 446, 452 ], [ 402, 453 ], [ 453, 454 ], [ 454, 455 ], [ 454, 456 ], [ 453, 457 ], [ 457, 458 ], [ 458, 459 ], [ 459, 460 ], [ 460, 461 ], [ 461, 462 ], [ 461, 463 ], [ 463, 464 ], [ 460, 465 ], [ 459, 466 ], [ 466, 467 ], [ 466, 468 ], [ 458, 469 ], [ 469, 470 ], [ 470, 471 ], [ 470, 472 ], [ 472, 473 ], [ 473, 474 ], [ 473, 475 ], [ 472, 476 ], [ 476, 477 ], [ 476, 478 ], [ 402, 479 ], [ 479, 480 ], [ 479, 481 ], [ 481, 482 ], [ 482, 483 ], [ 402, 484 ], [ 484, 485 ], [ 79, 486 ], [ 486, 487 ], [ 486, 488 ], [ 488, 489 ], [ 489, 490 ], [ 489, 491 ], [ 488, 493 ], [ 493, 494 ], [ 494, 495 ], [ 495, 496 ], [ 495, 497 ], [ 493, 498 ], [ 498, 499 ], [ 498, 500 ], [ 493, 501 ], [ 501, 502 ], [ 502, 503 ], [ 493, 504 ], [ 505, 505 ], [ 505, 506 ], [ 506, 507 ], [ 507, 508 ], [ 507, 509 ], [ 506, 510 ], [ 510, 511 ], [ 488, 512 ], [ 512, 513 ], [ 486, 514 ], [ 514, 515 ], [ 79, 516 ], [ 516, 517 ], [ 516, 518 ], [ 518, 519 ], [ 519, 520 ], [ 519, 521 ], [ 521, 522 ], [ 522, 523 ], [ 521, 524 ], [ 521, 525 ], [ 525, 526 ], [ 525, 527 ], [ 521, 528 ], [ 518, 529 ], [ 529, 530 ], [ 530, 531 ], [ 530, 532 ], [ 532, 533 ], [ 529, 534 ], [ 534, 535 ], [ 535, 536 ], [ 535, 537 ], [ 534, 538 ], [ 538, 539 ], [ 79, 540 ], [ 540, 541 ], [ 540, 542 ], [ 542, 543 ], [ 543, 544 ], [ 544, 545 ], [ 544, 546 ], [ 543, 547 ], [ 547, 548 ], [ 542, 549 ], [ 549, 550 ], [ 550, 551 ], [ 550, 552 ], [ 552, 553 ], [ 79, 554 ], [ 554, 555 ], [ 554, 556 ], [ 556, 557 ], [ 557, 558 ], [ 558, 559 ], [ 558, 560 ], [ 557, 561 ], [ 556, 562 ], [ 562, 563 ], [ 563, 564 ], [ 0, 565 ], [ 565, 566 ], [ 565, 567 ] ]
[ "import java.util.*;\nimport java.io.*;\nimport java.math.*;\npublic class Main{\n\tpublic static void main( String [] args) throws IOException{\n\t\tFastScanner sc=new FastScanner();\n\t\tString s=sc.next();\n\t\tint len=0,cnt=0;\n\t\tfor(int i=0;i<s.length();i++){\n\t\t\tif(s.charAt(i)=='R')cnt++;\n\t\t\telse {\n\t\t\t\tlen=Math.max(cnt,len);\n\t\t\t\tcnt=0;\n\t\t\t}\n\t\t}\n\t\tlen=Math.max(cnt,len);\n\t\tSystem.out.println(len);\n\t}\t\n\t\n }\n\n\n \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nclass FastScanner{\t\n\t private int BUFFER_SIZE = 1 << 16;\n\t\n\tprivate DataInputStream din;\n\t\n\tprivate byte[] buffer;\n\t\n\tprivate int bufferPointer, bytesRead;\n\t\n\tpublic FastScanner() {\n\t\tdin = new DataInputStream(System.in);\n\t\tbuffer = new byte[BUFFER_SIZE];\n\t\tbufferPointer = bytesRead = 0;\n\t}\n\n\tpublic FastScanner( String file_name) throws IOException {\n\t\tdin = new DataInputStream(new FileInputStream(file_name));\n\t\tbuffer = new byte[BUFFER_SIZE];\n\t\tbufferPointer = bytesRead = 0;\n }\n \n\tpublic String readLine() throws IOException {\n\t\t byte[] buf = new byte[64];\n\t\tint cnt = 0, c;\n\t\twhile ((c = read()) != -1) {\n\t\t\tif (c == '\\n')\n\t\t\t\tbreak;\n\t\t\tbuf[cnt++] = (byte) c;\n\t\t}\n\t\treturn new String(buf, 0, cnt);\n\t}\n \n public String next() throws IOException{\n\n\t\tbyte c = read();\n\t\twhile(Character.isWhitespace(c)){\n\t\t\tc = read();\n\t\t}\n\t\t\n\t\t StringBuilder builder = new StringBuilder();\n\t\tbuilder.append((char)c);\n\t\tc = read();\n\t\twhile(!Character.isWhitespace(c)){\n\t\t\tbuilder.append((char)c);\n\t\t\tc = read();\n\t\t}\n\t\t\n\t\treturn builder.toString();\n\t}\n\n\tpublic int nextInt() throws IOException {\n\t\tint ret = 0;\n\t\tbyte c = read();\n\t\twhile (c <= ' ')\n\t\t\tc = read();\n\t\t boolean neg = (c == '-');\n\t\tif (neg)\n\t\t\tc = read();\n\t\tdo {\n\t\t\tret = ret * 10 + c - '0';\n\t\t} while ((c = read()) >= '0' && c <= '9');\n\n\t\tif (neg)\n\t\t\treturn -ret;\n\t\treturn ret;\n\t}\n\t\n\tpublic int[] nextIntArray( int n) throws IOException {\n\t\t int arr[] = new int[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tarr[i] = nextInt();\n\t\t}\n\t\treturn arr;\n\t}\n\n\tpublic long nextLong() throws IOException {\n\t\tlong ret = 0;\n\t\tbyte c = read();\n\t\twhile (c <= ' ')\n\t\t\tc = read();\n\t\t boolean neg = (c == '-');\n\t\tif (neg)\n\t\t\tc = read();\n\t\tdo {\n\t\t\tret = ret * 10 + c - '0';\n\t\t} while ((c = read()) >= '0' && c <= '9');\n\t\tif (neg)\n\t\t\treturn -ret;\n\t\treturn ret;\n\t}\n\t\n\tpublic long[] nextLongArray( int n) throws IOException {\n\t\t long arr[] = new long[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tarr[i] = nextLong();\n\t\t}\n\t\treturn arr;\n\t}\n\n\tpublic char nextChar() throws IOException{\n\t\tbyte c = read();\n\t\twhile(Character.isWhitespace(c)){\n\t\t\tc = read();\n\t\t}\n\t\treturn (char) c;\t\n\t}\n\t\n\tpublic double nextDouble() throws IOException {\n\t\tdouble ret = 0, div = 1;\n\t\tbyte c = read();\n\t\twhile (c <= ' ')\n\t\t\tc = read();\n\t\t boolean neg = (c == '-');\n\t\tif (neg)\n\t\t\tc = read();\n\n\t\tdo {\n\t\t\tret = ret * 10 + c - '0';\n\t\t} while ((c = read()) >= '0' && c <= '9');\n\n\t\tif (c == '.') {\n\t\t\twhile ((c = read()) >= '0' && c <= '9') {\n\t\t\t\tret += (c - '0') / (div *= 10);\n\t\t\t}\n\t\t}\n\n\t\tif (neg)\n\t\t\treturn -ret;\n\t\treturn ret;\n }\n \n\tpublic double[] nextDoubleArray( int n) throws IOException {\n\t\t double arr[] = new double[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tarr[i] = nextDouble();\n\t\t}\n\t\treturn arr;\n\t}\n\n\tprivate void fillBuffer() throws IOException {\n\t\tbytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);\n\t\tif (bytesRead == -1)\n\t\t\tbuffer[0] = -1;\n\t}\n\n\tprivate byte read() throws IOException {\n\t\tif (bufferPointer == bytesRead)\n\t\t\tfillBuffer();\n\t\treturn buffer[bufferPointer++];\n\t}\n\n\tpublic void close() throws IOException {\n\t\tif (din == null)\n\t\t\treturn;\n\t\tdin.close();\n\t}\n\n}\n\n", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "import java.math.*;", "math.*", "java", "public class Main{\n\tpublic static void main( String [] args) throws IOException{\n\t\tFastScanner sc=new FastScanner();\n\t\tString s=sc.next();\n\t\tint len=0,cnt=0;\n\t\tfor(int i=0;i<s.length();i++){\n\t\t\tif(s.charAt(i)=='R')cnt++;\n\t\t\telse {\n\t\t\t\tlen=Math.max(cnt,len);\n\t\t\t\tcnt=0;\n\t\t\t}\n\t\t}\n\t\tlen=Math.max(cnt,len);\n\t\tSystem.out.println(len);\n\t}\t\n\t\n }", "Main", "public static void main( String [] args) throws IOException{\n\t\tFastScanner sc=new FastScanner();\n\t\tString s=sc.next();\n\t\tint len=0,cnt=0;\n\t\tfor(int i=0;i<s.length();i++){\n\t\t\tif(s.charAt(i)=='R')cnt++;\n\t\t\telse {\n\t\t\t\tlen=Math.max(cnt,len);\n\t\t\t\tcnt=0;\n\t\t\t}\n\t\t}\n\t\tlen=Math.max(cnt,len);\n\t\tSystem.out.println(len);\n\t}", "main", "{\n\t\tFastScanner sc=new FastScanner();\n\t\tString s=sc.next();\n\t\tint len=0,cnt=0;\n\t\tfor(int i=0;i<s.length();i++){\n\t\t\tif(s.charAt(i)=='R')cnt++;\n\t\t\telse {\n\t\t\t\tlen=Math.max(cnt,len);\n\t\t\t\tcnt=0;\n\t\t\t}\n\t\t}\n\t\tlen=Math.max(cnt,len);\n\t\tSystem.out.println(len);\n\t}", "FastScanner sc=new FastScanner();", "sc", "new FastScanner()", "String s=sc.next();", "s", "sc.next()", "sc.next", "sc", "int len=0", "len", "0", "cnt=0;", "cnt", "0", "for(int i=0;i<s.length();i++){\n\t\t\tif(s.charAt(i)=='R')cnt++;\n\t\t\telse {\n\t\t\t\tlen=Math.max(cnt,len);\n\t\t\t\tcnt=0;\n\t\t\t}\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<s.length()", "i", "s.length()", "s.length", "s", "i++", "i++", "i", "{\n\t\t\tif(s.charAt(i)=='R')cnt++;\n\t\t\telse {\n\t\t\t\tlen=Math.max(cnt,len);\n\t\t\t\tcnt=0;\n\t\t\t}\n\t\t}", "{\n\t\t\tif(s.charAt(i)=='R')cnt++;\n\t\t\telse {\n\t\t\t\tlen=Math.max(cnt,len);\n\t\t\t\tcnt=0;\n\t\t\t}\n\t\t}", "if(s.charAt(i)=='R')cnt++;\n\t\t\telse {\n\t\t\t\tlen=Math.max(cnt,len);\n\t\t\t\tcnt=0;\n\t\t\t}", "s.charAt(i)=='R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "cnt++", "cnt", "{\n\t\t\t\tlen=Math.max(cnt,len);\n\t\t\t\tcnt=0;\n\t\t\t}", "len=Math.max(cnt,len)", "len", "Math.max(cnt,len)", "Math.max", "Math", "cnt", "len", "cnt=0", "cnt", "0", "len=Math.max(cnt,len)", "len", "Math.max(cnt,len)", "Math.max", "Math", "cnt", "len", "System.out.println(len)", "System.out.println", "System.out", "System", "System.out", "len", "String [] args", "args", "class FastScanner{\t\n\t private int BUFFER_SIZE = 1 << 16;\n\t\n\tprivate DataInputStream din;\n\t\n\tprivate byte[] buffer;\n\t\n\tprivate int bufferPointer, bytesRead;\n\t\n\tpublic FastScanner() {\n\t\tdin = new DataInputStream(System.in);\n\t\tbuffer = new byte[BUFFER_SIZE];\n\t\tbufferPointer = bytesRead = 0;\n\t}\n\n\tpublic FastScanner( String file_name) throws IOException {\n\t\tdin = new DataInputStream(new FileInputStream(file_name));\n\t\tbuffer = new byte[BUFFER_SIZE];\n\t\tbufferPointer = bytesRead = 0;\n }\n \n\tpublic String readLine() throws IOException {\n\t\t byte[] buf = new byte[64];\n\t\tint cnt = 0, c;\n\t\twhile ((c = read()) != -1) {\n\t\t\tif (c == '\\n')\n\t\t\t\tbreak;\n\t\t\tbuf[cnt++] = (byte) c;\n\t\t}\n\t\treturn new String(buf, 0, cnt);\n\t}\n \n public String next() throws IOException{\n\n\t\tbyte c = read();\n\t\twhile(Character.isWhitespace(c)){\n\t\t\tc = read();\n\t\t}\n\t\t\n\t\t StringBuilder builder = new StringBuilder();\n\t\tbuilder.append((char)c);\n\t\tc = read();\n\t\twhile(!Character.isWhitespace(c)){\n\t\t\tbuilder.append((char)c);\n\t\t\tc = read();\n\t\t}\n\t\t\n\t\treturn builder.toString();\n\t}\n\n\tpublic int nextInt() throws IOException {\n\t\tint ret = 0;\n\t\tbyte c = read();\n\t\twhile (c <= ' ')\n\t\t\tc = read();\n\t\t boolean neg = (c == '-');\n\t\tif (neg)\n\t\t\tc = read();\n\t\tdo {\n\t\t\tret = ret * 10 + c - '0';\n\t\t} while ((c = read()) >= '0' && c <= '9');\n\n\t\tif (neg)\n\t\t\treturn -ret;\n\t\treturn ret;\n\t}\n\t\n\tpublic int[] nextIntArray( int n) throws IOException {\n\t\t int arr[] = new int[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tarr[i] = nextInt();\n\t\t}\n\t\treturn arr;\n\t}\n\n\tpublic long nextLong() throws IOException {\n\t\tlong ret = 0;\n\t\tbyte c = read();\n\t\twhile (c <= ' ')\n\t\t\tc = read();\n\t\t boolean neg = (c == '-');\n\t\tif (neg)\n\t\t\tc = read();\n\t\tdo {\n\t\t\tret = ret * 10 + c - '0';\n\t\t} while ((c = read()) >= '0' && c <= '9');\n\t\tif (neg)\n\t\t\treturn -ret;\n\t\treturn ret;\n\t}\n\t\n\tpublic long[] nextLongArray( int n) throws IOException {\n\t\t long arr[] = new long[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tarr[i] = nextLong();\n\t\t}\n\t\treturn arr;\n\t}\n\n\tpublic char nextChar() throws IOException{\n\t\tbyte c = read();\n\t\twhile(Character.isWhitespace(c)){\n\t\t\tc = read();\n\t\t}\n\t\treturn (char) c;\t\n\t}\n\t\n\tpublic double nextDouble() throws IOException {\n\t\tdouble ret = 0, div = 1;\n\t\tbyte c = read();\n\t\twhile (c <= ' ')\n\t\t\tc = read();\n\t\t boolean neg = (c == '-');\n\t\tif (neg)\n\t\t\tc = read();\n\n\t\tdo {\n\t\t\tret = ret * 10 + c - '0';\n\t\t} while ((c = read()) >= '0' && c <= '9');\n\n\t\tif (c == '.') {\n\t\t\twhile ((c = read()) >= '0' && c <= '9') {\n\t\t\t\tret += (c - '0') / (div *= 10);\n\t\t\t}\n\t\t}\n\n\t\tif (neg)\n\t\t\treturn -ret;\n\t\treturn ret;\n }\n \n\tpublic double[] nextDoubleArray( int n) throws IOException {\n\t\t double arr[] = new double[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tarr[i] = nextDouble();\n\t\t}\n\t\treturn arr;\n\t}\n\n\tprivate void fillBuffer() throws IOException {\n\t\tbytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);\n\t\tif (bytesRead == -1)\n\t\t\tbuffer[0] = -1;\n\t}\n\n\tprivate byte read() throws IOException {\n\t\tif (bufferPointer == bytesRead)\n\t\t\tfillBuffer();\n\t\treturn buffer[bufferPointer++];\n\t}\n\n\tpublic void close() throws IOException {\n\t\tif (din == null)\n\t\t\treturn;\n\t\tdin.close();\n\t}\n\n}", "FastScanner", "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 FastScanner() {\n\t\tdin = new DataInputStream(System.in);\n\t\tbuffer = new byte[BUFFER_SIZE];\n\t\tbufferPointer = bytesRead = 0;\n\t}", "FastScanner", "{\n\t\tdin = new DataInputStream(System.in);\n\t\tbuffer = new byte[BUFFER_SIZE];\n\t\tbufferPointer = bytesRead = 0;\n\t}", "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 FastScanner( String file_name) throws IOException {\n\t\tdin = new DataInputStream(new FileInputStream(file_name));\n\t\tbuffer = new byte[BUFFER_SIZE];\n\t\tbufferPointer = bytesRead = 0;\n }", "FastScanner", "{\n\t\tdin = new DataInputStream(new FileInputStream(file_name));\n\t\tbuffer = new byte[BUFFER_SIZE];\n\t\tbufferPointer = 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\t\t byte[] buf = new byte[64];\n\t\tint cnt = 0, c;\n\t\twhile ((c = read()) != -1) {\n\t\t\tif (c == '\\n')\n\t\t\t\tbreak;\n\t\t\tbuf[cnt++] = (byte) c;\n\t\t}\n\t\treturn new String(buf, 0, cnt);\n\t}", "readLine", "{\n\t\t byte[] buf = new byte[64];\n\t\tint cnt = 0, c;\n\t\twhile ((c = read()) != -1) {\n\t\t\tif (c == '\\n')\n\t\t\t\tbreak;\n\t\t\tbuf[cnt++] = (byte) c;\n\t\t}\n\t\treturn new String(buf, 0, cnt);\n\t}", "byte[] buf = new byte[64];", "buf", "new byte[64]", "64", "int cnt = 0", "cnt", "0", "c;", "c", "while ((c = read()) != -1) {\n\t\t\tif (c == '\\n')\n\t\t\t\tbreak;\n\t\t\tbuf[cnt++] = (byte) c;\n\t\t}", "(c = read()) != -1", "(c = read())", "c", "read()", "read", "-1", "1", "{\n\t\t\tif (c == '\\n')\n\t\t\t\tbreak;\n\t\t\tbuf[cnt++] = (byte) c;\n\t\t}", "if (c == '\\n')\n\t\t\t\tbreak;", "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 String next() throws IOException{\n\n\t\tbyte c = read();\n\t\twhile(Character.isWhitespace(c)){\n\t\t\tc = read();\n\t\t}\n\t\t\n\t\t StringBuilder builder = new StringBuilder();\n\t\tbuilder.append((char)c);\n\t\tc = read();\n\t\twhile(!Character.isWhitespace(c)){\n\t\t\tbuilder.append((char)c);\n\t\t\tc = read();\n\t\t}\n\t\t\n\t\treturn builder.toString();\n\t}", "next", "{\n\n\t\tbyte c = read();\n\t\twhile(Character.isWhitespace(c)){\n\t\t\tc = read();\n\t\t}\n\t\t\n\t\t StringBuilder builder = new StringBuilder();\n\t\tbuilder.append((char)c);\n\t\tc = read();\n\t\twhile(!Character.isWhitespace(c)){\n\t\t\tbuilder.append((char)c);\n\t\t\tc = read();\n\t\t}\n\t\t\n\t\treturn builder.toString();\n\t}", "byte c = read();", "c", "read()", "read", "while(Character.isWhitespace(c)){\n\t\t\tc = read();\n\t\t}", "Character.isWhitespace(c)", "Character.isWhitespace", "Character", "c", "{\n\t\t\tc = read();\n\t\t}", "c = read()", "c", "read()", "read", "StringBuilder builder = new StringBuilder();", "builder", "new StringBuilder()", "builder.append((char)c)", "builder.append", "builder", "(char)c", "c = read()", "c", "read()", "read", "while(!Character.isWhitespace(c)){\n\t\t\tbuilder.append((char)c);\n\t\t\tc = read();\n\t\t}", "!Character.isWhitespace(c)", "Character.isWhitespace(c)", "Character.isWhitespace", "Character", "c", "{\n\t\t\tbuilder.append((char)c);\n\t\t\tc = read();\n\t\t}", "builder.append((char)c)", "builder.append", "builder", "(char)c", "c = read()", "c", "read()", "read", "return builder.toString();", "builder.toString()", "builder.toString", "builder", "public int nextInt() throws IOException {\n\t\tint ret = 0;\n\t\tbyte c = read();\n\t\twhile (c <= ' ')\n\t\t\tc = read();\n\t\t boolean neg = (c == '-');\n\t\tif (neg)\n\t\t\tc = read();\n\t\tdo {\n\t\t\tret = ret * 10 + c - '0';\n\t\t} while ((c = read()) >= '0' && c <= '9');\n\n\t\tif (neg)\n\t\t\treturn -ret;\n\t\treturn ret;\n\t}", "nextInt", "{\n\t\tint ret = 0;\n\t\tbyte c = read();\n\t\twhile (c <= ' ')\n\t\t\tc = read();\n\t\t boolean neg = (c == '-');\n\t\tif (neg)\n\t\t\tc = read();\n\t\tdo {\n\t\t\tret = ret * 10 + c - '0';\n\t\t} while ((c = read()) >= '0' && c <= '9');\n\n\t\tif (neg)\n\t\t\treturn -ret;\n\t\treturn ret;\n\t}", "int ret = 0;", "ret", "0", "byte c = read();", "c", "read()", "read", "while (c <= ' ')\n\t\t\tc = read();", "c <= ' '", "c", "' '", "c = read()", "c", "read()", "read", "boolean neg = (c == '-');", "neg", "(c == '-')", "c", "'-'", "if (neg)\n\t\t\tc = read();", "neg", "c = read()", "c", "read()", "read", "do {\n\t\t\tret = ret * 10 + c - '0';\n\t\t} 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\t\t\tret = ret * 10 + c - '0';\n\t\t}", "ret = ret * 10 + c - '0'", "ret", "ret * 10 + c - '0'", "ret * 10 + c", "ret * 10", "ret", "10", "c", "'0'", "if (neg)\n\t\t\treturn -ret;", "neg", "return -ret;", "-ret", "ret", "return ret;", "ret", "public int[] nextIntArray( int n) throws IOException {\n\t\t int arr[] = new int[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tarr[i] = nextInt();\n\t\t}\n\t\treturn arr;\n\t}", "nextIntArray", "{\n\t\t int arr[] = new int[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tarr[i] = nextInt();\n\t\t}\n\t\treturn arr;\n\t}", "int arr[] = new int[n];", "arr", "new int[n]", "n", "for(int i = 0; i < n; i++){\n\t\t\tarr[i] = nextInt();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tarr[i] = nextInt();\n\t\t}", "{\n\t\t\tarr[i] = nextInt();\n\t\t}", "arr[i] = nextInt()", "arr[i]", "arr", "i", "nextInt()", "nextInt", "return arr;", "arr", "int n", "n", "public long nextLong() throws IOException {\n\t\tlong ret = 0;\n\t\tbyte c = read();\n\t\twhile (c <= ' ')\n\t\t\tc = read();\n\t\t boolean neg = (c == '-');\n\t\tif (neg)\n\t\t\tc = read();\n\t\tdo {\n\t\t\tret = ret * 10 + c - '0';\n\t\t} while ((c = read()) >= '0' && c <= '9');\n\t\tif (neg)\n\t\t\treturn -ret;\n\t\treturn ret;\n\t}", "nextLong", "{\n\t\tlong ret = 0;\n\t\tbyte c = read();\n\t\twhile (c <= ' ')\n\t\t\tc = read();\n\t\t boolean neg = (c == '-');\n\t\tif (neg)\n\t\t\tc = read();\n\t\tdo {\n\t\t\tret = ret * 10 + c - '0';\n\t\t} while ((c = read()) >= '0' && c <= '9');\n\t\tif (neg)\n\t\t\treturn -ret;\n\t\treturn ret;\n\t}", "long ret = 0;", "ret", "0", "byte c = read();", "c", "read()", "read", "while (c <= ' ')\n\t\t\tc = read();", "c <= ' '", "c", "' '", "c = read()", "c", "read()", "read", "boolean neg = (c == '-');", "neg", "(c == '-')", "c", "'-'", "if (neg)\n\t\t\tc = read();", "neg", "c = read()", "c", "read()", "read", "do {\n\t\t\tret = ret * 10 + c - '0';\n\t\t} 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\t\t\tret = ret * 10 + c - '0';\n\t\t}", "ret = ret * 10 + c - '0'", "ret", "ret * 10 + c - '0'", "ret * 10 + c", "ret * 10", "ret", "10", "c", "'0'", "if (neg)\n\t\t\treturn -ret;", "neg", "return -ret;", "-ret", "ret", "return ret;", "ret", "public long[] nextLongArray( int n) throws IOException {\n\t\t long arr[] = new long[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tarr[i] = nextLong();\n\t\t}\n\t\treturn arr;\n\t}", "nextLongArray", "{\n\t\t long arr[] = new long[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tarr[i] = nextLong();\n\t\t}\n\t\treturn arr;\n\t}", "long arr[] = new long[n];", "arr", "new long[n]", "n", "for(int i = 0; i < n; i++){\n\t\t\tarr[i] = nextLong();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tarr[i] = nextLong();\n\t\t}", "{\n\t\t\tarr[i] = nextLong();\n\t\t}", "arr[i] = nextLong()", "arr[i]", "arr", "i", "nextLong()", "nextLong", "return arr;", "arr", "int n", "n", "public char nextChar() throws IOException{\n\t\tbyte c = read();\n\t\twhile(Character.isWhitespace(c)){\n\t\t\tc = read();\n\t\t}\n\t\treturn (char) c;\t\n\t}", "nextChar", "{\n\t\tbyte c = read();\n\t\twhile(Character.isWhitespace(c)){\n\t\t\tc = read();\n\t\t}\n\t\treturn (char) c;\t\n\t}", "byte c = read();", "c", "read()", "read", "while(Character.isWhitespace(c)){\n\t\t\tc = read();\n\t\t}", "Character.isWhitespace(c)", "Character.isWhitespace", "Character", "c", "{\n\t\t\tc = read();\n\t\t}", "c = read()", "c", "read()", "read", "return (char) c;", "(char) c", "public double nextDouble() throws IOException {\n\t\tdouble ret = 0, div = 1;\n\t\tbyte c = read();\n\t\twhile (c <= ' ')\n\t\t\tc = read();\n\t\t boolean neg = (c == '-');\n\t\tif (neg)\n\t\t\tc = read();\n\n\t\tdo {\n\t\t\tret = ret * 10 + c - '0';\n\t\t} while ((c = read()) >= '0' && c <= '9');\n\n\t\tif (c == '.') {\n\t\t\twhile ((c = read()) >= '0' && c <= '9') {\n\t\t\t\tret += (c - '0') / (div *= 10);\n\t\t\t}\n\t\t}\n\n\t\tif (neg)\n\t\t\treturn -ret;\n\t\treturn ret;\n }", "nextDouble", "{\n\t\tdouble ret = 0, div = 1;\n\t\tbyte c = read();\n\t\twhile (c <= ' ')\n\t\t\tc = read();\n\t\t boolean neg = (c == '-');\n\t\tif (neg)\n\t\t\tc = read();\n\n\t\tdo {\n\t\t\tret = ret * 10 + c - '0';\n\t\t} while ((c = read()) >= '0' && c <= '9');\n\n\t\tif (c == '.') {\n\t\t\twhile ((c = read()) >= '0' && c <= '9') {\n\t\t\t\tret += (c - '0') / (div *= 10);\n\t\t\t}\n\t\t}\n\n\t\tif (neg)\n\t\t\treturn -ret;\n\t\treturn ret;\n }", "double ret = 0", "ret", "0", "div = 1;", "div", "1", "byte c = read();", "c", "read()", "read", "while (c <= ' ')\n\t\t\tc = read();", "c <= ' '", "c", "' '", "c = read()", "c", "read()", "read", "boolean neg = (c == '-');", "neg", "(c == '-')", "c", "'-'", "if (neg)\n\t\t\tc = read();", "neg", "c = read()", "c", "read()", "read", "do {\n\t\t\tret = ret * 10 + c - '0';\n\t\t} 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\t\t\tret = ret * 10 + c - '0';\n\t\t}", "ret = ret * 10 + c - '0'", "ret", "ret * 10 + c - '0'", "ret * 10 + c", "ret * 10", "ret", "10", "c", "'0'", "if (c == '.') {\n\t\t\twhile ((c = read()) >= '0' && c <= '9') {\n\t\t\t\tret += (c - '0') / (div *= 10);\n\t\t\t}\n\t\t}", "c == '.'", "c", "'.'", "{\n\t\t\twhile ((c = read()) >= '0' && c <= '9') {\n\t\t\t\tret += (c - '0') / (div *= 10);\n\t\t\t}\n\t\t}", "while ((c = read()) >= '0' && c <= '9') {\n\t\t\t\tret += (c - '0') / (div *= 10);\n\t\t\t}", "(c = read()) >= '0' && c <= '9'", "(c = read()) >= '0'", "(c = read())", "c", "read()", "read", "'0'", "c <= '9'", "c", "'9'", "{\n\t\t\t\tret += (c - '0') / (div *= 10);\n\t\t\t}", "ret += (c - '0') / (div *= 10)", "ret", "(c - '0') / (div *= 10)", "(c - '0')", "c", "'0'", "(div *= 10)", "div", "10", "if (neg)\n\t\t\treturn -ret;", "neg", "return -ret;", "-ret", "ret", "return ret;", "ret", "public double[] nextDoubleArray( int n) throws IOException {\n\t\t double arr[] = new double[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tarr[i] = nextDouble();\n\t\t}\n\t\treturn arr;\n\t}", "nextDoubleArray", "{\n\t\t double arr[] = new double[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tarr[i] = nextDouble();\n\t\t}\n\t\treturn arr;\n\t}", "double arr[] = new double[n];", "arr", "new double[n]", "n", "for(int i = 0; i < n; i++){\n\t\t\tarr[i] = nextDouble();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tarr[i] = nextDouble();\n\t\t}", "{\n\t\t\tarr[i] = nextDouble();\n\t\t}", "arr[i] = nextDouble()", "arr[i]", "arr", "i", "nextDouble()", "nextDouble", "return arr;", "arr", "int n", "n", "private void fillBuffer() throws IOException {\n\t\tbytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);\n\t\tif (bytesRead == -1)\n\t\t\tbuffer[0] = -1;\n\t}", "fillBuffer", "{\n\t\tbytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);\n\t\tif (bytesRead == -1)\n\t\t\tbuffer[0] = -1;\n\t}", "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\t\t\tbuffer[0] = -1;", "bytesRead == -1", "bytesRead", "-1", "1", "buffer[0] = -1", "buffer[0]", "buffer", "0", "-1", "1", "private byte read() throws IOException {\n\t\tif (bufferPointer == bytesRead)\n\t\t\tfillBuffer();\n\t\treturn buffer[bufferPointer++];\n\t}", "read", "{\n\t\tif (bufferPointer == bytesRead)\n\t\t\tfillBuffer();\n\t\treturn buffer[bufferPointer++];\n\t}", "if (bufferPointer == bytesRead)\n\t\t\tfillBuffer();", "bufferPointer == bytesRead", "bufferPointer", "bytesRead", "fillBuffer()", "fillBuffer", "return buffer[bufferPointer++];", "buffer[bufferPointer++]", "buffer", "bufferPointer++", "bufferPointer", "public void close() throws IOException {\n\t\tif (din == null)\n\t\t\treturn;\n\t\tdin.close();\n\t}", "close", "{\n\t\tif (din == null)\n\t\t\treturn;\n\t\tdin.close();\n\t}", "if (din == null)\n\t\t\treturn;", "din == null", "din", "null", "return;", "din.close()", "din.close", "din", "public class Main{\n\tpublic static void main( String [] args) throws IOException{\n\t\tFastScanner sc=new FastScanner();\n\t\tString s=sc.next();\n\t\tint len=0,cnt=0;\n\t\tfor(int i=0;i<s.length();i++){\n\t\t\tif(s.charAt(i)=='R')cnt++;\n\t\t\telse {\n\t\t\t\tlen=Math.max(cnt,len);\n\t\t\t\tcnt=0;\n\t\t\t}\n\t\t}\n\t\tlen=Math.max(cnt,len);\n\t\tSystem.out.println(len);\n\t}\t\n\t\n }", "public class Main{\n\tpublic static void main( String [] args) throws IOException{\n\t\tFastScanner sc=new FastScanner();\n\t\tString s=sc.next();\n\t\tint len=0,cnt=0;\n\t\tfor(int i=0;i<s.length();i++){\n\t\t\tif(s.charAt(i)=='R')cnt++;\n\t\t\telse {\n\t\t\t\tlen=Math.max(cnt,len);\n\t\t\t\tcnt=0;\n\t\t\t}\n\t\t}\n\t\tlen=Math.max(cnt,len);\n\t\tSystem.out.println(len);\n\t}\t\n\t\n }", "Main" ]
import java.util.*; import java.io.*; import java.math.*; public class Main{ public static void main( String [] args) throws IOException{ FastScanner sc=new FastScanner(); String s=sc.next(); int len=0,cnt=0; for(int i=0;i<s.length();i++){ if(s.charAt(i)=='R')cnt++; else { len=Math.max(cnt,len); cnt=0; } } len=Math.max(cnt,len); System.out.println(len); } } class FastScanner{ private int BUFFER_SIZE = 1 << 16; private DataInputStream din; private byte[] buffer; private int bufferPointer, bytesRead; public FastScanner() { din = new DataInputStream(System.in); buffer = new byte[BUFFER_SIZE]; bufferPointer = bytesRead = 0; } public FastScanner( 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]; int cnt = 0, c; while ((c = read()) != -1) { if (c == '\n') break; buf[cnt++] = (byte) c; } return new String(buf, 0, cnt); } public String next() throws IOException{ byte c = read(); while(Character.isWhitespace(c)){ c = read(); } StringBuilder builder = new StringBuilder(); builder.append((char)c); c = read(); while(!Character.isWhitespace(c)){ builder.append((char)c); c = read(); } return builder.toString(); } 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 int[] nextIntArray( int n) throws IOException { int arr[] = new int[n]; for(int i = 0; i < n; i++){ arr[i] = nextInt(); } return arr; } 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 long[] nextLongArray( int n) throws IOException { long arr[] = new long[n]; for(int i = 0; i < n; i++){ arr[i] = nextLong(); } return arr; } public char nextChar() throws IOException{ byte c = read(); while(Character.isWhitespace(c)){ c = read(); } return (char) c; } 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; } public double[] nextDoubleArray( int n) throws IOException { double arr[] = new double[n]; for(int i = 0; i < n; i++){ arr[i] = nextDouble(); } return arr; } 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(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 4, 13, 41, 13, 4, 13, 41, 13, 4, 13, 14, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 30, 4, 13, 17, 14, 2, 2, 2, 13, 17, 2, 13, 17, 2, 2, 13, 17, 2, 13, 17, 30, 4, 13, 17, 14, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 30, 4, 13, 17, 30, 4, 13, 17, 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, 38, 5, 13, 30, 4, 18, 13, 29, 17, 30, 29, 4, 13, 4, 18, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 29, 40, 17, 30, 29, 4, 18, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 29, 17, 30, 29, 4, 18, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 38, 5, 13, 30, 4, 18, 13, 30, 41, 13, 4, 18, 13, 14, 2, 2, 2, 13, 40, 17, 2, 13, 17, 2, 13, 17, 30, 3, 4, 18, 13, 13, 29, 4, 18, 13, 12, 13, 30, 29, 4, 13, 4, 13, 12, 13, 30, 29, 4, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 13, 23, 13, 12, 13, 30, 29, 4, 18, 4, 13, 17, 12, 13, 30, 29, 4, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 13, 23, 13, 12, 13, 30, 41, 13, 20, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 13, 18, 13, 13, 29, 13, 23, 13, 12, 13, 30, 29, 4, 18, 13, 13, 23, 13, 12, 13, 30, 41, 13, 20, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 13, 18, 13, 13, 29, 13, 23, 13, 12, 13, 30, 29, 4, 18, 13, 13, 23, 13, 12, 13, 30, 29, 20, 23, 13, 12, 13, 30, 29, 4, 18, 13, 17, 23, 13, 12, 13, 30, 29, 4, 18, 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 ], [ 7, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 14, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 14, 27 ], [ 27, 28 ], [ 29, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 29, 33 ], [ 33, 34 ], [ 33, 35 ], [ 29, 36 ], [ 36, 37 ], [ 36, 38 ], [ 27, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 27, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 49, 51 ], [ 44, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 56, 58 ], [ 43, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 43, 63 ], [ 63, 64 ], [ 65, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 69, 71 ], [ 65, 72 ], [ 72, 73 ], [ 72, 74 ], [ 63, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 63, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 12, 83 ], [ 83, 84 ], [ 7, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 85, 94 ], [ 94, 95 ], [ 7, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 99, 104 ], [ 96, 105 ], [ 105, 106 ], [ 7, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 113, 117 ], [ 117, 118 ], [ 110, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 123, 124 ], [ 124, 125 ], [ 7, 126 ], [ 126, 127 ], [ 126, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 132, 136 ], [ 136, 137 ], [ 137, 138 ], [ 129, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 7, 144 ], [ 144, 145 ], [ 144, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 150, 154 ], [ 154, 155 ], [ 147, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 7, 161 ], [ 161, 162 ], [ 161, 163 ], [ 163, 164 ], [ 164, 165 ], [ 164, 166 ], [ 163, 167 ], [ 167, 168 ], [ 167, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 171, 173 ], [ 173, 174 ], [ 174, 175 ], [ 175, 176 ], [ 170, 177 ], [ 177, 178 ], [ 178, 179 ], [ 178, 180 ], [ 180, 181 ], [ 181, 182 ], [ 177, 183 ], [ 183, 184 ], [ 185, 185 ], [ 185, 186 ], [ 186, 187 ], [ 186, 188 ], [ 188, 189 ], [ 185, 190 ], [ 190, 191 ], [ 190, 192 ], [ 185, 193 ], [ 193, 194 ], [ 193, 195 ], [ 183, 196 ], [ 196, 197 ], [ 177, 198 ], [ 198, 199 ], [ 199, 200 ], [ 198, 201 ], [ 163, 202 ], [ 202, 203 ], [ 203, 204 ], [ 204, 205 ], [ 7, 206 ], [ 206, 207 ], [ 206, 208 ], [ 208, 209 ], [ 209, 210 ], [ 210, 211 ], [ 210, 212 ], [ 212, 213 ], [ 7, 214 ], [ 214, 215 ], [ 214, 216 ], [ 216, 217 ], [ 217, 218 ], [ 218, 219 ], [ 218, 220 ], [ 220, 221 ], [ 7, 222 ], [ 222, 223 ], [ 222, 224 ], [ 224, 225 ], [ 225, 226 ], [ 226, 227 ], [ 227, 228 ], [ 226, 229 ], [ 222, 230 ], [ 230, 231 ], [ 7, 232 ], [ 232, 233 ], [ 232, 234 ], [ 234, 235 ], [ 235, 236 ], [ 236, 237 ], [ 237, 238 ], [ 238, 239 ], [ 236, 240 ], [ 7, 241 ], [ 241, 242 ], [ 241, 243 ], [ 243, 244 ], [ 244, 245 ], [ 245, 246 ], [ 245, 247 ], [ 247, 248 ], [ 7, 249 ], [ 249, 250 ], [ 249, 251 ], [ 251, 252 ], [ 252, 253 ], [ 253, 254 ], [ 254, 255 ], [ 253, 256 ], [ 249, 257 ], [ 257, 258 ], [ 7, 259 ], [ 259, 260 ], [ 259, 261 ], [ 261, 262 ], [ 262, 263 ], [ 262, 264 ], [ 265, 266 ], [ 265, 267 ], [ 261, 268 ], [ 268, 269 ], [ 269, 270 ], [ 270, 271 ], [ 270, 272 ], [ 268, 273 ], [ 273, 274 ], [ 273, 275 ], [ 275, 276 ], [ 275, 277 ], [ 268, 278 ], [ 278, 279 ], [ 279, 280 ], [ 268, 281 ], [ 282, 282 ], [ 282, 283 ], [ 283, 284 ], [ 284, 285 ], [ 284, 286 ], [ 283, 287 ], [ 287, 288 ], [ 287, 289 ], [ 289, 290 ], [ 289, 291 ], [ 261, 292 ], [ 292, 293 ], [ 259, 294 ], [ 294, 295 ], [ 7, 296 ], [ 296, 297 ], [ 296, 298 ], [ 298, 299 ], [ 299, 300 ], [ 300, 301 ], [ 301, 302 ], [ 300, 303 ], [ 296, 304 ], [ 304, 305 ], [ 7, 306 ], [ 306, 307 ], [ 306, 308 ], [ 308, 309 ], [ 309, 310 ], [ 309, 311 ], [ 312, 313 ], [ 312, 314 ], [ 308, 315 ], [ 315, 316 ], [ 316, 317 ], [ 317, 318 ], [ 317, 319 ], [ 315, 320 ], [ 320, 321 ], [ 320, 322 ], [ 322, 323 ], [ 322, 324 ], [ 315, 325 ], [ 325, 326 ], [ 326, 327 ], [ 315, 328 ], [ 329, 329 ], [ 329, 330 ], [ 330, 331 ], [ 331, 332 ], [ 331, 333 ], [ 330, 334 ], [ 334, 335 ], [ 334, 336 ], [ 336, 337 ], [ 336, 338 ], [ 308, 339 ], [ 339, 340 ], [ 306, 341 ], [ 341, 342 ], [ 7, 343 ], [ 343, 344 ], [ 343, 345 ], [ 345, 346 ], [ 346, 347 ], [ 347, 348 ], [ 348, 349 ], [ 347, 350 ], [ 343, 351 ], [ 351, 352 ], [ 7, 353 ], [ 353, 354 ], [ 353, 355 ], [ 355, 356 ], [ 356, 357 ], [ 353, 358 ], [ 358, 359 ], [ 7, 360 ], [ 360, 361 ], [ 360, 362 ], [ 362, 363 ], [ 363, 364 ], [ 364, 365 ], [ 365, 366 ], [ 364, 367 ], [ 360, 368 ], [ 368, 369 ], [ 7, 370 ], [ 370, 371 ], [ 370, 372 ], [ 372, 373 ], [ 373, 374 ], [ 374, 375 ], [ 375, 376 ], [ 370, 377 ], [ 377, 378 ] ]
[ "import java.util.*;\nimport java.io.*;\nclass Main{\n public static void main(String args[])throws IOException{\n char c1=readC(),c2=readC(),c3=readC();\n if(c1=='R'&&c2=='R'&&c3=='R'){\n pl(\"3\");\n }else if((c1=='R'&&c2=='R')||(c3=='R'&&c2=='R')){\n pl(\"2\");\n }else if(c1=='R'||c2=='R'||c3=='R'){\n pl(\"1\");\n }else{\n pl(\"0\");\n }\n }\n\n static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n public static void pr(String str){\n System.out.print(str);\n }\n public static void pl(String str){\n System.out.println(str);\n }\n public static String read(){\n try{\n return ctos((char)br.read());\n }catch(IOException e){\n e.printStackTrace();\n return \"\";\n }\n }\n public static char readC(){\n try{\n return (char)br.read();\n }catch(IOException e){\n e.printStackTrace();\n return (char)-1;\n }\n }\n public static String readL(){\n try{\n return br.readLine();\n }catch(IOException e){\n e.printStackTrace();\n return \"\";\n }\n }\n public static String readS(){\n StringBuilder sb = new StringBuilder();\n while(true){\n try{\n int k = br.read();\n if(k==-1||(char)k==' '||(char)k=='\\n'){break;}\n sb.append((char)k);\n }catch(IOException e){\n e.printStackTrace();\n }\n }\n return sb.toString();\n }\n public static int readI(){\n return stoi(readS());\n }\n public static long readLong(){\n return stol(readS());\n }\n public static long stol(String s){\n return Long.parseLong(s);\n }\n public static String[] readSs(){\n return readL().split(\" \");\n }\n public static int[] readIs(){\n return stoi(readSs());\n }\n public static int stoi(String s){\n return Integer.parseInt(s);\n }\n public static int[] stoi(String s[]){\n int a[]=new int[s.length];\n for(int i=0;i<s.length;i++){\n a[i]=stoi(s[i]);\n }\n return a;\n }\n public static String itos(int i){\n return String.valueOf(i);\n }\n public static String[] itos(int[] a){\n String s[]=new String[a.length];\n for(int i=0;i<a.length;i++){\n s[i]=itos(a[i]);\n }\n return s;\n }\n public static String ctos(char c){\n return String.valueOf(c);\n }\n public static String cstos(char[] c){\n return new String(c);\n }\n public static char stoc(String s){\n return s.charAt(0);\n }\n public static char[] stocs(String s){\n return s.toCharArray();\n }\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "class Main{\n public static void main(String args[])throws IOException{\n char c1=readC(),c2=readC(),c3=readC();\n if(c1=='R'&&c2=='R'&&c3=='R'){\n pl(\"3\");\n }else if((c1=='R'&&c2=='R')||(c3=='R'&&c2=='R')){\n pl(\"2\");\n }else if(c1=='R'||c2=='R'||c3=='R'){\n pl(\"1\");\n }else{\n pl(\"0\");\n }\n }\n\n static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n public static void pr(String str){\n System.out.print(str);\n }\n public static void pl(String str){\n System.out.println(str);\n }\n public static String read(){\n try{\n return ctos((char)br.read());\n }catch(IOException e){\n e.printStackTrace();\n return \"\";\n }\n }\n public static char readC(){\n try{\n return (char)br.read();\n }catch(IOException e){\n e.printStackTrace();\n return (char)-1;\n }\n }\n public static String readL(){\n try{\n return br.readLine();\n }catch(IOException e){\n e.printStackTrace();\n return \"\";\n }\n }\n public static String readS(){\n StringBuilder sb = new StringBuilder();\n while(true){\n try{\n int k = br.read();\n if(k==-1||(char)k==' '||(char)k=='\\n'){break;}\n sb.append((char)k);\n }catch(IOException e){\n e.printStackTrace();\n }\n }\n return sb.toString();\n }\n public static int readI(){\n return stoi(readS());\n }\n public static long readLong(){\n return stol(readS());\n }\n public static long stol(String s){\n return Long.parseLong(s);\n }\n public static String[] readSs(){\n return readL().split(\" \");\n }\n public static int[] readIs(){\n return stoi(readSs());\n }\n public static int stoi(String s){\n return Integer.parseInt(s);\n }\n public static int[] stoi(String s[]){\n int a[]=new int[s.length];\n for(int i=0;i<s.length;i++){\n a[i]=stoi(s[i]);\n }\n return a;\n }\n public static String itos(int i){\n return String.valueOf(i);\n }\n public static String[] itos(int[] a){\n String s[]=new String[a.length];\n for(int i=0;i<a.length;i++){\n s[i]=itos(a[i]);\n }\n return s;\n }\n public static String ctos(char c){\n return String.valueOf(c);\n }\n public static String cstos(char[] c){\n return new String(c);\n }\n public static char stoc(String s){\n return s.charAt(0);\n }\n public static char[] stocs(String s){\n return s.toCharArray();\n }\n}", "Main", "static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "public static void main(String args[])throws IOException{\n char c1=readC(),c2=readC(),c3=readC();\n if(c1=='R'&&c2=='R'&&c3=='R'){\n pl(\"3\");\n }else if((c1=='R'&&c2=='R')||(c3=='R'&&c2=='R')){\n pl(\"2\");\n }else if(c1=='R'||c2=='R'||c3=='R'){\n pl(\"1\");\n }else{\n pl(\"0\");\n }\n }", "main", "{\n char c1=readC(),c2=readC(),c3=readC();\n if(c1=='R'&&c2=='R'&&c3=='R'){\n pl(\"3\");\n }else if((c1=='R'&&c2=='R')||(c3=='R'&&c2=='R')){\n pl(\"2\");\n }else if(c1=='R'||c2=='R'||c3=='R'){\n pl(\"1\");\n }else{\n pl(\"0\");\n }\n }", "char c1=readC()", "c1", "readC()", "readC", "c2=readC()", "c2", "readC()", "readC", "c3=readC();", "c3", "readC()", "readC", "if(c1=='R'&&c2=='R'&&c3=='R'){\n pl(\"3\");\n }else if((c1=='R'&&c2=='R')||(c3=='R'&&c2=='R')){\n pl(\"2\");\n }else if(c1=='R'||c2=='R'||c3=='R'){\n pl(\"1\");\n }else{\n pl(\"0\");\n }", "c1=='R'&&c2=='R'&&c3=='R'", "c1=='R'&&c2=='R'&&c3=='R'", "c1=='R'", "c1", "'R'", "c2=='R'", "c2", "'R'", "c3=='R'", "c3", "'R'", "{\n pl(\"3\");\n }", "pl(\"3\")", "pl", "\"3\"", "if((c1=='R'&&c2=='R')||(c3=='R'&&c2=='R')){\n pl(\"2\");\n }else if(c1=='R'||c2=='R'||c3=='R'){\n pl(\"1\");\n }else{\n pl(\"0\");\n }", "(c1=='R'&&c2=='R')||(c3=='R'&&c2=='R')", "(c1=='R'&&c2=='R')", "c1=='R'", "c1", "'R'", "c2=='R'", "c2", "'R'", "(c3=='R'&&c2=='R')", "c3=='R'", "c3", "'R'", "c2=='R'", "c2", "'R'", "{\n pl(\"2\");\n }", "pl(\"2\")", "pl", "\"2\"", "if(c1=='R'||c2=='R'||c3=='R'){\n pl(\"1\");\n }else{\n pl(\"0\");\n }", "c1=='R'||c2=='R'||c3=='R'", "c1=='R'||c2=='R'||c3=='R'", "c1=='R'", "c1", "'R'", "c2=='R'", "c2", "'R'", "c3=='R'", "c3", "'R'", "{\n pl(\"1\");\n }", "pl(\"1\")", "pl", "\"1\"", "{\n pl(\"0\");\n }", "pl(\"0\")", "pl", "\"0\"", "String args[]", "args", "public static void pr(String str){\n System.out.print(str);\n }", "pr", "{\n System.out.print(str);\n }", "System.out.print(str)", "System.out.print", "System.out", "System", "System.out", "str", "String str", "str", "public static void pl(String str){\n System.out.println(str);\n }", "pl", "{\n System.out.println(str);\n }", "System.out.println(str)", "System.out.println", "System.out", "System", "System.out", "str", "String str", "str", "public static String read(){\n try{\n return ctos((char)br.read());\n }catch(IOException e){\n e.printStackTrace();\n return \"\";\n }\n }", "read", "{\n try{\n return ctos((char)br.read());\n }catch(IOException e){\n e.printStackTrace();\n return \"\";\n }\n }", "try{\n return ctos((char)br.read());\n }catch(IOException e){\n e.printStackTrace();\n return \"\";\n }", "catch(IOException e){\n e.printStackTrace();\n return \"\";\n }", "IOException e", "{\n e.printStackTrace();\n return \"\";\n }", "e.printStackTrace()", "e.printStackTrace", "e", "return \"\";", "\"\"", "{\n return ctos((char)br.read());\n }", "return ctos((char)br.read());", "ctos((char)br.read())", "ctos", "(char)br.read()", "br.read", "br", "public static char readC(){\n try{\n return (char)br.read();\n }catch(IOException e){\n e.printStackTrace();\n return (char)-1;\n }\n }", "readC", "{\n try{\n return (char)br.read();\n }catch(IOException e){\n e.printStackTrace();\n return (char)-1;\n }\n }", "try{\n return (char)br.read();\n }catch(IOException e){\n e.printStackTrace();\n return (char)-1;\n }", "catch(IOException e){\n e.printStackTrace();\n return (char)-1;\n }", "IOException e", "{\n e.printStackTrace();\n return (char)-1;\n }", "e.printStackTrace()", "e.printStackTrace", "e", "return (char)-1;", "(char)-1", "1", "{\n return (char)br.read();\n }", "return (char)br.read();", "(char)br.read()", "br.read", "br", "public static String readL(){\n try{\n return br.readLine();\n }catch(IOException e){\n e.printStackTrace();\n return \"\";\n }\n }", "readL", "{\n try{\n return br.readLine();\n }catch(IOException e){\n e.printStackTrace();\n return \"\";\n }\n }", "try{\n return br.readLine();\n }catch(IOException e){\n e.printStackTrace();\n return \"\";\n }", "catch(IOException e){\n e.printStackTrace();\n return \"\";\n }", "IOException e", "{\n e.printStackTrace();\n return \"\";\n }", "e.printStackTrace()", "e.printStackTrace", "e", "return \"\";", "\"\"", "{\n return br.readLine();\n }", "return br.readLine();", "br.readLine()", "br.readLine", "br", "public static String readS(){\n StringBuilder sb = new StringBuilder();\n while(true){\n try{\n int k = br.read();\n if(k==-1||(char)k==' '||(char)k=='\\n'){break;}\n sb.append((char)k);\n }catch(IOException e){\n e.printStackTrace();\n }\n }\n return sb.toString();\n }", "readS", "{\n StringBuilder sb = new StringBuilder();\n while(true){\n try{\n int k = br.read();\n if(k==-1||(char)k==' '||(char)k=='\\n'){break;}\n sb.append((char)k);\n }catch(IOException e){\n e.printStackTrace();\n }\n }\n return sb.toString();\n }", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "while(true){\n try{\n int k = br.read();\n if(k==-1||(char)k==' '||(char)k=='\\n'){break;}\n sb.append((char)k);\n }catch(IOException e){\n e.printStackTrace();\n }\n }", "true", "{\n try{\n int k = br.read();\n if(k==-1||(char)k==' '||(char)k=='\\n'){break;}\n sb.append((char)k);\n }catch(IOException e){\n e.printStackTrace();\n }\n }", "try{\n int k = br.read();\n if(k==-1||(char)k==' '||(char)k=='\\n'){break;}\n sb.append((char)k);\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 int k = br.read();\n if(k==-1||(char)k==' '||(char)k=='\\n'){break;}\n sb.append((char)k);\n }", "int k = br.read();", "k", "br.read()", "br.read", "br", "if(k==-1||(char)k==' '||(char)k=='\\n'){break;}", "k==-1||(char)k==' '||(char)k=='\\n'", "k==-1||(char)k==' '||(char)k=='\\n'", "k==-1", "k", "-1", "1", "(char)k==' '", "(char)k", "' '", "(char)k=='\\n'", "(char)k", "'\\n'", "{break;}", "break;", "sb.append((char)k)", "sb.append", "sb", "(char)k", "return sb.toString();", "sb.toString()", "sb.toString", "sb", "public static int readI(){\n return stoi(readS());\n }", "readI", "{\n return stoi(readS());\n }", "return stoi(readS());", "stoi(readS())", "stoi", "readS()", "readS", "public static long readLong(){\n return stol(readS());\n }", "readLong", "{\n return stol(readS());\n }", "return stol(readS());", "stol(readS())", "stol", "readS()", "readS", "public static long stol(String s){\n return Long.parseLong(s);\n }", "stol", "{\n return Long.parseLong(s);\n }", "return Long.parseLong(s);", "Long.parseLong(s)", "Long.parseLong", "Long", "s", "String s", "s", "public static String[] readSs(){\n return readL().split(\" \");\n }", "readSs", "{\n return readL().split(\" \");\n }", "return readL().split(\" \");", "readL().split(\" \")", "readL().split", "readL()", "readL", "\" \"", "public static int[] readIs(){\n return stoi(readSs());\n }", "readIs", "{\n return stoi(readSs());\n }", "return stoi(readSs());", "stoi(readSs())", "stoi", "readSs()", "readSs", "public static int stoi(String s){\n return Integer.parseInt(s);\n }", "stoi", "{\n return Integer.parseInt(s);\n }", "return Integer.parseInt(s);", "Integer.parseInt(s)", "Integer.parseInt", "Integer", "s", "String s", "s", "public static int[] stoi(String s[]){\n int a[]=new int[s.length];\n for(int i=0;i<s.length;i++){\n a[i]=stoi(s[i]);\n }\n return a;\n }", "stoi", "{\n int a[]=new int[s.length];\n for(int i=0;i<s.length;i++){\n a[i]=stoi(s[i]);\n }\n return a;\n }", "int a[]=new int[s.length];", "a", "new int[s.length]", "s.length", "s", "s.length", "for(int i=0;i<s.length;i++){\n a[i]=stoi(s[i]);\n }", "int i=0;", "int i=0;", "i", "0", "i<s.length", "i", "s.length", "s", "s.length", "i++", "i++", "i", "{\n a[i]=stoi(s[i]);\n }", "{\n a[i]=stoi(s[i]);\n }", "a[i]=stoi(s[i])", "a[i]", "a", "i", "stoi(s[i])", "stoi", "s[i]", "s", "i", "return a;", "a", "String s[]", "s", "public static String itos(int i){\n return String.valueOf(i);\n }", "itos", "{\n return String.valueOf(i);\n }", "return String.valueOf(i);", "String.valueOf(i)", "String.valueOf", "String", "i", "int i", "i", "public static String[] itos(int[] a){\n String s[]=new String[a.length];\n for(int i=0;i<a.length;i++){\n s[i]=itos(a[i]);\n }\n return s;\n }", "itos", "{\n String s[]=new String[a.length];\n for(int i=0;i<a.length;i++){\n s[i]=itos(a[i]);\n }\n return s;\n }", "String s[]=new String[a.length];", "s", "new String[a.length]", "a.length", "a", "a.length", "for(int i=0;i<a.length;i++){\n s[i]=itos(a[i]);\n }", "int i=0;", "int i=0;", "i", "0", "i<a.length", "i", "a.length", "a", "a.length", "i++", "i++", "i", "{\n s[i]=itos(a[i]);\n }", "{\n s[i]=itos(a[i]);\n }", "s[i]=itos(a[i])", "s[i]", "s", "i", "itos(a[i])", "itos", "a[i]", "a", "i", "return s;", "s", "int[] a", "a", "public static String ctos(char c){\n return String.valueOf(c);\n }", "ctos", "{\n return String.valueOf(c);\n }", "return String.valueOf(c);", "String.valueOf(c)", "String.valueOf", "String", "c", "char c", "c", "public static String cstos(char[] c){\n return new String(c);\n }", "cstos", "{\n return new String(c);\n }", "return new String(c);", "new String(c)", "char[] c", "c", "public static char stoc(String s){\n return s.charAt(0);\n }", "stoc", "{\n return s.charAt(0);\n }", "return s.charAt(0);", "s.charAt(0)", "s.charAt", "s", "0", "String s", "s", "public static char[] stocs(String s){\n return s.toCharArray();\n }", "stocs", "{\n return s.toCharArray();\n }", "return s.toCharArray();", "s.toCharArray()", "s.toCharArray", "s", "String s", "s" ]
import java.util.*; import java.io.*; class Main{ public static void main(String args[])throws IOException{ char c1=readC(),c2=readC(),c3=readC(); if(c1=='R'&&c2=='R'&&c3=='R'){ pl("3"); }else if((c1=='R'&&c2=='R')||(c3=='R'&&c2=='R')){ pl("2"); }else if(c1=='R'||c2=='R'||c3=='R'){ pl("1"); }else{ pl("0"); } } static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); public static void pr(String str){ System.out.print(str); } public static void pl(String str){ System.out.println(str); } public static String read(){ try{ return ctos((char)br.read()); }catch(IOException e){ e.printStackTrace(); return ""; } } public static char readC(){ try{ return (char)br.read(); }catch(IOException e){ e.printStackTrace(); return (char)-1; } } public static String readL(){ try{ return br.readLine(); }catch(IOException e){ e.printStackTrace(); return ""; } } public static String readS(){ StringBuilder sb = new StringBuilder(); while(true){ try{ int k = br.read(); if(k==-1||(char)k==' '||(char)k=='\n'){break;} sb.append((char)k); }catch(IOException e){ e.printStackTrace(); } } return sb.toString(); } public static int readI(){ return stoi(readS()); } public static long readLong(){ return stol(readS()); } public static long stol(String s){ return Long.parseLong(s); } public static String[] readSs(){ return readL().split(" "); } public static int[] readIs(){ return stoi(readSs()); } public static int stoi(String s){ return Integer.parseInt(s); } public static int[] stoi(String s[]){ int a[]=new int[s.length]; for(int i=0;i<s.length;i++){ a[i]=stoi(s[i]); } return a; } public static String itos(int i){ return String.valueOf(i); } public static String[] itos(int[] a){ String s[]=new String[a.length]; for(int i=0;i<a.length;i++){ s[i]=itos(a[i]); } return s; } public static String ctos(char c){ return String.valueOf(c); } public static String cstos(char[] c){ return new String(c); } public static char stoc(String s){ return s.charAt(0); } public static char[] stocs(String s){ return s.toCharArray(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 4, 18, 13, 4, 13, 13, 23, 13, 12, 13, 30, 41, 13, 4, 18, 13, 17, 41, 13, 40, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 18, 13, 13, 17, 40, 13, 30, 0, 13, 4, 18, 13, 13, 13, 0, 13, 17, 0, 13, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 29, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 180, 8 ], [ 180, 9 ], [ 9, 10 ], [ 9, 11 ], [ 180, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 12, 23 ], [ 23, 24 ], [ 180, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 27, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 27, 38 ], [ 38, 39 ], [ 38, 40 ], [ 27, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 48, 50 ], [ 41, 51 ], [ 51, 52 ], [ 52, 53 ], [ 41, 54 ], [ 55, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 56, 63 ], [ 63, 64 ], [ 56, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 68, 72 ], [ 65, 73 ], [ 73, 74 ], [ 73, 75 ], [ 27, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 78, 82 ], [ 27, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 25, 89 ], [ 89, 90 ], [ 180, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 91, 95 ], [ 95, 96 ], [ 91, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 91, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 106, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 116, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 105, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 91, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 135, 138 ], [ 138, 139 ], [ 91, 140 ], [ 140, 141 ], [ 140, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 144, 147 ], [ 147, 148 ], [ 91, 149 ], [ 149, 150 ], [ 149, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 153, 156 ], [ 156, 157 ], [ 91, 158 ], [ 158, 159 ], [ 158, 160 ], [ 160, 161 ], [ 161, 162 ], [ 161, 163 ], [ 160, 164 ], [ 164, 165 ], [ 165, 166 ], [ 165, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 164, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 174, 175 ], [ 175, 176 ], [ 160, 177 ], [ 177, 178 ], [ 0, 179 ], [ 179, 180 ], [ 179, 181 ] ]
[ "\n\nimport java.util.*;\nimport java.io.*;\n\npublic class Main {\n\tstatic FastReader in = new FastReader();\n\n\tpublic static void main(String[] args) \n\t{\n\t\tString s = in.nextLine();\n\t\tsolve(s);\n\t}\n\t\n\tstatic void solve(String ss)\n\t{\n\t\tString [] s = ss.split(\"\");\n\t\tint largest = -1;\n\t\tint curr = 0;\n\t\tfor(int i = 0; i < s.length; i++)\n\t\t{\n\t\t\tif(s[i].equals(\"R\"))\n\t\t\t\tcurr++;\n\t\t\telse\n\t\t\t{\n\t\t\t\tlargest = Math.max(largest, curr);\n\t\t\t\tcurr = 0;\n\t\t\t}\n\t\t}\n\t\tlargest = Math.max(largest, curr);\n\t\tSystem.out.println(largest);\n\t}\n\t\n\t\n\n\tstatic class FastReader {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\n\t\tpublic FastReader() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\n\t\tString next() {\n\t\t\twhile (st == null || !st.hasMoreElements()) {\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\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\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\n\t\tString nextLine() {\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\t}\n}\n\n\n", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "public class Main {\n\tstatic FastReader in = new FastReader();\n\n\tpublic static void main(String[] args) \n\t{\n\t\tString s = in.nextLine();\n\t\tsolve(s);\n\t}\n\t\n\tstatic void solve(String ss)\n\t{\n\t\tString [] s = ss.split(\"\");\n\t\tint largest = -1;\n\t\tint curr = 0;\n\t\tfor(int i = 0; i < s.length; i++)\n\t\t{\n\t\t\tif(s[i].equals(\"R\"))\n\t\t\t\tcurr++;\n\t\t\telse\n\t\t\t{\n\t\t\t\tlargest = Math.max(largest, curr);\n\t\t\t\tcurr = 0;\n\t\t\t}\n\t\t}\n\t\tlargest = Math.max(largest, curr);\n\t\tSystem.out.println(largest);\n\t}\n\t\n\t\n\n\tstatic class FastReader {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\n\t\tpublic FastReader() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\n\t\tString next() {\n\t\t\twhile (st == null || !st.hasMoreElements()) {\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\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\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\n\t\tString nextLine() {\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\t}\n}", "Main", "static FastReader in = new FastReader();", "in", "new FastReader()", "public static void main(String[] args) \n\t{\n\t\tString s = in.nextLine();\n\t\tsolve(s);\n\t}", "main", "{\n\t\tString s = in.nextLine();\n\t\tsolve(s);\n\t}", "String s = in.nextLine();", "s", "in.nextLine()", "in.nextLine", "in", "solve(s)", "solve", "s", "String[] args", "args", "static void solve(String ss)\n\t{\n\t\tString [] s = ss.split(\"\");\n\t\tint largest = -1;\n\t\tint curr = 0;\n\t\tfor(int i = 0; i < s.length; i++)\n\t\t{\n\t\t\tif(s[i].equals(\"R\"))\n\t\t\t\tcurr++;\n\t\t\telse\n\t\t\t{\n\t\t\t\tlargest = Math.max(largest, curr);\n\t\t\t\tcurr = 0;\n\t\t\t}\n\t\t}\n\t\tlargest = Math.max(largest, curr);\n\t\tSystem.out.println(largest);\n\t}", "solve", "{\n\t\tString [] s = ss.split(\"\");\n\t\tint largest = -1;\n\t\tint curr = 0;\n\t\tfor(int i = 0; i < s.length; i++)\n\t\t{\n\t\t\tif(s[i].equals(\"R\"))\n\t\t\t\tcurr++;\n\t\t\telse\n\t\t\t{\n\t\t\t\tlargest = Math.max(largest, curr);\n\t\t\t\tcurr = 0;\n\t\t\t}\n\t\t}\n\t\tlargest = Math.max(largest, curr);\n\t\tSystem.out.println(largest);\n\t}", "String [] s = ss.split(\"\");", "s", "ss.split(\"\")", "ss.split", "ss", "\"\"", "int largest = -1;", "largest", "-1", "1", "int curr = 0;", "curr", "0", "for(int i = 0; i < s.length; i++)\n\t\t{\n\t\t\tif(s[i].equals(\"R\"))\n\t\t\t\tcurr++;\n\t\t\telse\n\t\t\t{\n\t\t\t\tlargest = Math.max(largest, curr);\n\t\t\t\tcurr = 0;\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < s.length", "i", "s.length", "s", "s.length", "i++", "i++", "i", "{\n\t\t\tif(s[i].equals(\"R\"))\n\t\t\t\tcurr++;\n\t\t\telse\n\t\t\t{\n\t\t\t\tlargest = Math.max(largest, curr);\n\t\t\t\tcurr = 0;\n\t\t\t}\n\t\t}", "{\n\t\t\tif(s[i].equals(\"R\"))\n\t\t\t\tcurr++;\n\t\t\telse\n\t\t\t{\n\t\t\t\tlargest = Math.max(largest, curr);\n\t\t\t\tcurr = 0;\n\t\t\t}\n\t\t}", "if(s[i].equals(\"R\"))\n\t\t\t\tcurr++;\n\t\t\telse\n\t\t\t{\n\t\t\t\tlargest = Math.max(largest, curr);\n\t\t\t\tcurr = 0;\n\t\t\t}", "s[i].equals(\"R\")", "s[i].equals", "s[i]", "s", "i", "\"R\"", "curr++", "curr", "{\n\t\t\t\tlargest = Math.max(largest, curr);\n\t\t\t\tcurr = 0;\n\t\t\t}", "largest = Math.max(largest, curr)", "largest", "Math.max(largest, curr)", "Math.max", "Math", "largest", "curr", "curr = 0", "curr", "0", "largest = Math.max(largest, curr)", "largest", "Math.max(largest, curr)", "Math.max", "Math", "largest", "curr", "System.out.println(largest)", "System.out.println", "System.out", "System", "System.out", "largest", "String ss", "ss", "static class FastReader {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\n\t\tpublic FastReader() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\n\t\tString next() {\n\t\t\twhile (st == null || !st.hasMoreElements()) {\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\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\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\n\t\tString nextLine() {\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\t}", "FastReader", "BufferedReader br;", "br", "StringTokenizer st;", "st", "public FastReader() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}", "FastReader", "{\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}", "br = new BufferedReader(new InputStreamReader(System.in))", "br", "new BufferedReader(new InputStreamReader(System.in))", "String next() {\n\t\t\twhile (st == null || !st.hasMoreElements()) {\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\t}\n\t\t\treturn st.nextToken();\n\t\t}", "next", "{\n\t\t\twhile (st == null || !st.hasMoreElements()) {\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\t}\n\t\t\treturn st.nextToken();\n\t\t}", "while (st == null || !st.hasMoreElements()) {\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\t}", "st == null || !st.hasMoreElements()", "st == null", "st", "null", "!st.hasMoreElements()", "st.hasMoreElements()", "st.hasMoreElements", "st", "{\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\t}", "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", "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", "String nextLine() {\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}", "nextLine", "{\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}", "String str = \"\";", "str", "\"\"", "try {\n\t\t\t\tstr = 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\tstr = br.readLine();\n\t\t\t}", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "return str;", "str", "public class Main {\n\tstatic FastReader in = new FastReader();\n\n\tpublic static void main(String[] args) \n\t{\n\t\tString s = in.nextLine();\n\t\tsolve(s);\n\t}\n\t\n\tstatic void solve(String ss)\n\t{\n\t\tString [] s = ss.split(\"\");\n\t\tint largest = -1;\n\t\tint curr = 0;\n\t\tfor(int i = 0; i < s.length; i++)\n\t\t{\n\t\t\tif(s[i].equals(\"R\"))\n\t\t\t\tcurr++;\n\t\t\telse\n\t\t\t{\n\t\t\t\tlargest = Math.max(largest, curr);\n\t\t\t\tcurr = 0;\n\t\t\t}\n\t\t}\n\t\tlargest = Math.max(largest, curr);\n\t\tSystem.out.println(largest);\n\t}\n\t\n\t\n\n\tstatic class FastReader {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\n\t\tpublic FastReader() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\n\t\tString next() {\n\t\t\twhile (st == null || !st.hasMoreElements()) {\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\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\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\n\t\tString nextLine() {\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\t}\n}", "public class Main {\n\tstatic FastReader in = new FastReader();\n\n\tpublic static void main(String[] args) \n\t{\n\t\tString s = in.nextLine();\n\t\tsolve(s);\n\t}\n\t\n\tstatic void solve(String ss)\n\t{\n\t\tString [] s = ss.split(\"\");\n\t\tint largest = -1;\n\t\tint curr = 0;\n\t\tfor(int i = 0; i < s.length; i++)\n\t\t{\n\t\t\tif(s[i].equals(\"R\"))\n\t\t\t\tcurr++;\n\t\t\telse\n\t\t\t{\n\t\t\t\tlargest = Math.max(largest, curr);\n\t\t\t\tcurr = 0;\n\t\t\t}\n\t\t}\n\t\tlargest = Math.max(largest, curr);\n\t\tSystem.out.println(largest);\n\t}\n\t\n\t\n\n\tstatic class FastReader {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\n\t\tpublic FastReader() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\n\t\tString next() {\n\t\t\twhile (st == null || !st.hasMoreElements()) {\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\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\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\n\t\tString nextLine() {\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\t}\n}", "Main" ]
import java.util.*; import java.io.*; public class Main { static FastReader in = new FastReader(); public static void main(String[] args) { String s = in.nextLine(); solve(s); } static void solve(String ss) { String [] s = ss.split(""); int largest = -1; int curr = 0; for(int i = 0; i < s.length; i++) { if(s[i].equals("R")) curr++; else { largest = Math.max(largest, curr); curr = 0; } } largest = Math.max(largest, curr); System.out.println(largest); } static class FastReader { BufferedReader br; StringTokenizer st; public FastReader() { br = new BufferedReader(new InputStreamReader(System.in)); } String next() { while (st == null || !st.hasMoreElements()) { try { st = new StringTokenizer(br.readLine()); } catch (IOException e) { e.printStackTrace(); } } return st.nextToken(); } int nextInt() { return Integer.parseInt(next()); } long nextLong() { return Long.parseLong(next()); } double nextDouble() { return Double.parseDouble(next()); } String nextLine() { String str = ""; try { str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } return str; } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 20, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 17, 14, 2, 4, 18, 13, 17, 17, 0, 13, 2, 2, 17, 8, 2, 4, 18, 13, 17, 17, 17, 17, 8, 2, 4, 18, 13, 17, 17, 17, 17, 0, 13, 2, 8, 2, 4, 18, 13, 17, 17, 17, 17, 8, 2, 4, 18, 13, 17, 17, 17, 17, 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 ], [ 87, 8 ], [ 87, 9 ], [ 9, 10 ], [ 9, 11 ], [ 87, 12 ], [ 12, 13 ], [ 12, 14 ], [ 87, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 17, 23 ], [ 23, 24 ], [ 23, 25 ], [ 17, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 27, 32 ], [ 26, 33 ], [ 33, 34 ], [ 33, 35 ], [ 36, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 39, 44 ], [ 38, 45 ], [ 38, 46 ], [ 36, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 48, 53 ], [ 47, 54 ], [ 47, 55 ], [ 26, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 60, 65 ], [ 59, 66 ], [ 59, 67 ], [ 58, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 69, 74 ], [ 68, 75 ], [ 68, 76 ], [ 17, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 17, 81 ], [ 81, 82 ], [ 82, 83 ], [ 15, 84 ], [ 84, 85 ], [ 0, 86 ], [ 86, 87 ], [ 86, 88 ] ]
[ "import java.io.*;\nimport java.util.*;\n\npublic class Main {\n private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n private static final PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n\n public static void main(String[] args) throws IOException {\n String s = br.readLine();\n\n int count = 0;\n if (s.charAt(1) == 'R')\n count = 1 + ((s.charAt(0) == 'R' ? 1 : 0)) + ((s.charAt(2) == 'R' ? 1 : 0));\n else\n count = ((s.charAt(0) == 'R' ? 1 : 0)) | ((s.charAt(2) == 'R' ? 1 : 0));\n\n pw.println(count);\n pw.close();\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "public class Main {\n private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n private static final PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n\n public static void main(String[] args) throws IOException {\n String s = br.readLine();\n\n int count = 0;\n if (s.charAt(1) == 'R')\n count = 1 + ((s.charAt(0) == 'R' ? 1 : 0)) + ((s.charAt(2) == 'R' ? 1 : 0));\n else\n count = ((s.charAt(0) == 'R' ? 1 : 0)) | ((s.charAt(2) == 'R' ? 1 : 0));\n\n pw.println(count);\n pw.close();\n }\n}", "Main", "private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "private static final PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));", "pw", "new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)))", "public static void main(String[] args) throws IOException {\n String s = br.readLine();\n\n int count = 0;\n if (s.charAt(1) == 'R')\n count = 1 + ((s.charAt(0) == 'R' ? 1 : 0)) + ((s.charAt(2) == 'R' ? 1 : 0));\n else\n count = ((s.charAt(0) == 'R' ? 1 : 0)) | ((s.charAt(2) == 'R' ? 1 : 0));\n\n pw.println(count);\n pw.close();\n }", "main", "{\n String s = br.readLine();\n\n int count = 0;\n if (s.charAt(1) == 'R')\n count = 1 + ((s.charAt(0) == 'R' ? 1 : 0)) + ((s.charAt(2) == 'R' ? 1 : 0));\n else\n count = ((s.charAt(0) == 'R' ? 1 : 0)) | ((s.charAt(2) == 'R' ? 1 : 0));\n\n pw.println(count);\n pw.close();\n }", "String s = br.readLine();", "s", "br.readLine()", "br.readLine", "br", "int count = 0;", "count", "0", "if (s.charAt(1) == 'R')\n count = 1 + ((s.charAt(0) == 'R' ? 1 : 0)) + ((s.charAt(2) == 'R' ? 1 : 0));\n else\n count = ((s.charAt(0) == 'R' ? 1 : 0)) | ((s.charAt(2) == 'R' ? 1 : 0));", "s.charAt(1) == 'R'", "s.charAt(1)", "s.charAt", "s", "1", "'R'", "count = 1 + ((s.charAt(0) == 'R' ? 1 : 0)) + ((s.charAt(2) == 'R' ? 1 : 0))", "count", "1 + ((s.charAt(0) == 'R' ? 1 : 0)) + ((s.charAt(2) == 'R' ? 1 : 0))", "1 + ((s.charAt(0) == 'R' ? 1 : 0)) + ((s.charAt(2) == 'R' ? 1 : 0))", "1", "((s.charAt(0) == 'R' ? 1 : 0))", "s.charAt(0) == 'R'", "s.charAt(0)", "s.charAt", "s", "0", "'R'", "1", "0", "((s.charAt(2) == 'R' ? 1 : 0))", "s.charAt(2) == 'R'", "s.charAt(2)", "s.charAt", "s", "2", "'R'", "1", "0", "count = ((s.charAt(0) == 'R' ? 1 : 0)) | ((s.charAt(2) == 'R' ? 1 : 0))", "count", "((s.charAt(0) == 'R' ? 1 : 0)) | ((s.charAt(2) == 'R' ? 1 : 0))", "((s.charAt(0) == 'R' ? 1 : 0))", "s.charAt(0) == 'R'", "s.charAt(0)", "s.charAt", "s", "0", "'R'", "1", "0", "((s.charAt(2) == 'R' ? 1 : 0))", "s.charAt(2) == 'R'", "s.charAt(2)", "s.charAt", "s", "2", "'R'", "1", "0", "pw.println(count)", "pw.println", "pw", "count", "pw.close()", "pw.close", "pw", "String[] args", "args", "public class Main {\n private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n private static final PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n\n public static void main(String[] args) throws IOException {\n String s = br.readLine();\n\n int count = 0;\n if (s.charAt(1) == 'R')\n count = 1 + ((s.charAt(0) == 'R' ? 1 : 0)) + ((s.charAt(2) == 'R' ? 1 : 0));\n else\n count = ((s.charAt(0) == 'R' ? 1 : 0)) | ((s.charAt(2) == 'R' ? 1 : 0));\n\n pw.println(count);\n pw.close();\n }\n}", "public class Main {\n private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n private static final PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n\n public static void main(String[] args) throws IOException {\n String s = br.readLine();\n\n int count = 0;\n if (s.charAt(1) == 'R')\n count = 1 + ((s.charAt(0) == 'R' ? 1 : 0)) + ((s.charAt(2) == 'R' ? 1 : 0));\n else\n count = ((s.charAt(0) == 'R' ? 1 : 0)) | ((s.charAt(2) == 'R' ? 1 : 0));\n\n pw.println(count);\n pw.close();\n }\n}", "Main" ]
import java.io.*; import java.util.*; public class Main { private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); private static final PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out))); public static void main(String[] args) throws IOException { String s = br.readLine(); int count = 0; if (s.charAt(1) == 'R') count = 1 + ((s.charAt(0) == 'R' ? 1 : 0)) + ((s.charAt(2) == 'R' ? 1 : 0)); else count = ((s.charAt(0) == 'R' ? 1 : 0)) | ((s.charAt(2) == 'R' ? 1 : 0)); pw.println(count); pw.close(); } }
[ 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, 41, 13, 17, 14, 4, 18, 13, 17, 30, 0, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 13, 4, 18, 13, 13, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 4, 18, 4, 18, 13, 13, 17, 30, 0, 13, 17, 30, 0, 13, 17, 3, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 4, 18, 4, 18, 13, 13, 17, 30, 40, 13, 14, 4, 18, 4, 18, 13, 13, 17, 30, 14, 2, 13, 13, 30, 0, 13, 13, 0, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 13, 13, 30, 4, 18, 18, 13, 13, 13, 30, 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 ], [ 171, 8 ], [ 171, 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 ], [ 29, 31 ], [ 11, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 32, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 32, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 42, 47 ], [ 47, 48 ], [ 47, 49 ], [ 42, 50 ], [ 50, 51 ], [ 51, 52 ], [ 42, 53 ], [ 54, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 58, 62 ], [ 62, 63 ], [ 62, 64 ], [ 41, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 70, 71 ], [ 70, 72 ], [ 65, 73 ], [ 73, 74 ], [ 74, 75 ], [ 65, 76 ], [ 77, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 79, 85 ], [ 78, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 78, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 90, 94 ], [ 41, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 100, 101 ], [ 100, 102 ], [ 95, 103 ], [ 103, 104 ], [ 104, 105 ], [ 95, 106 ], [ 107, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 111, 114 ], [ 109, 115 ], [ 108, 116 ], [ 116, 117 ], [ 117, 118 ], [ 108, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 122, 125 ], [ 120, 126 ], [ 119, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 128, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 132, 136 ], [ 136, 137 ], [ 136, 138 ], [ 11, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 139, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 144, 149 ], [ 139, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 150, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 155, 160 ], [ 150, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 164, 165 ], [ 164, 166 ], [ 162, 167 ], [ 9, 168 ], [ 168, 169 ], [ 0, 170 ], [ 170, 171 ], [ 170, 172 ] ]
[ "import java.util.ArrayList;\nimport java.util.Scanner;\npublic class Main {\npublic static void main(String[] args) {\n\tScanner sc = new Scanner (System.in);\n\tArrayList<String> slist = new ArrayList<>();\n\n\tString s = sc.next();\n\tboolean three = false;\n\tint count = 0;\n\tint max = 0;\n\n\tif(s.equals(\"RRR\")) {\n\t\tmax = 3;\n\t}else {\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tslist.add(s.substring(i, i+1));\n\t\t}\n\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tif(slist.get(i).equals(\"R\")) {\n\t\t\t\tthree = true;\n\t\t\t}else {\n\t\t\t\tthree = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tif(slist.get(i).equals(\"R\")) {\n\t\t\t\tcount++;\n\t\t\t}else if(slist.get(i).equals(\"S\")) {\n\t\t\t\tif(max < count) {\n\t\t\t\t\tmax = count;\n\t\t\t\t\tcount = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tif(three == true) {\n\t\tSystem.out.println(\"3\");\n\t}else if(count > max) {\n\t\tSystem.out.println(count);\n\t}else {\n\t\tSystem.out.println(max);\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\tScanner sc = new Scanner (System.in);\n\tArrayList<String> slist = new ArrayList<>();\n\n\tString s = sc.next();\n\tboolean three = false;\n\tint count = 0;\n\tint max = 0;\n\n\tif(s.equals(\"RRR\")) {\n\t\tmax = 3;\n\t}else {\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tslist.add(s.substring(i, i+1));\n\t\t}\n\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tif(slist.get(i).equals(\"R\")) {\n\t\t\t\tthree = true;\n\t\t\t}else {\n\t\t\t\tthree = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tif(slist.get(i).equals(\"R\")) {\n\t\t\t\tcount++;\n\t\t\t}else if(slist.get(i).equals(\"S\")) {\n\t\t\t\tif(max < count) {\n\t\t\t\t\tmax = count;\n\t\t\t\t\tcount = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tif(three == true) {\n\t\tSystem.out.println(\"3\");\n\t}else if(count > max) {\n\t\tSystem.out.println(count);\n\t}else {\n\t\tSystem.out.println(max);\n\t}\n\n}\n}", "Main", "public static void main(String[] args) {\n\tScanner sc = new Scanner (System.in);\n\tArrayList<String> slist = new ArrayList<>();\n\n\tString s = sc.next();\n\tboolean three = false;\n\tint count = 0;\n\tint max = 0;\n\n\tif(s.equals(\"RRR\")) {\n\t\tmax = 3;\n\t}else {\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tslist.add(s.substring(i, i+1));\n\t\t}\n\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tif(slist.get(i).equals(\"R\")) {\n\t\t\t\tthree = true;\n\t\t\t}else {\n\t\t\t\tthree = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tif(slist.get(i).equals(\"R\")) {\n\t\t\t\tcount++;\n\t\t\t}else if(slist.get(i).equals(\"S\")) {\n\t\t\t\tif(max < count) {\n\t\t\t\t\tmax = count;\n\t\t\t\t\tcount = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tif(three == true) {\n\t\tSystem.out.println(\"3\");\n\t}else if(count > max) {\n\t\tSystem.out.println(count);\n\t}else {\n\t\tSystem.out.println(max);\n\t}\n\n}", "main", "{\n\tScanner sc = new Scanner (System.in);\n\tArrayList<String> slist = new ArrayList<>();\n\n\tString s = sc.next();\n\tboolean three = false;\n\tint count = 0;\n\tint max = 0;\n\n\tif(s.equals(\"RRR\")) {\n\t\tmax = 3;\n\t}else {\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tslist.add(s.substring(i, i+1));\n\t\t}\n\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tif(slist.get(i).equals(\"R\")) {\n\t\t\t\tthree = true;\n\t\t\t}else {\n\t\t\t\tthree = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tif(slist.get(i).equals(\"R\")) {\n\t\t\t\tcount++;\n\t\t\t}else if(slist.get(i).equals(\"S\")) {\n\t\t\t\tif(max < count) {\n\t\t\t\t\tmax = count;\n\t\t\t\t\tcount = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tif(three == true) {\n\t\tSystem.out.println(\"3\");\n\t}else if(count > max) {\n\t\tSystem.out.println(count);\n\t}else {\n\t\tSystem.out.println(max);\n\t}\n\n}", "Scanner sc = new Scanner (System.in);", "sc", "new Scanner (System.in)", "ArrayList<String> slist = new ArrayList<>();", "slist", "new ArrayList<>()", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "boolean three = false;", "three", "false", "int count = 0;", "count", "0", "int max = 0;", "max", "0", "if(s.equals(\"RRR\")) {\n\t\tmax = 3;\n\t}else {\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tslist.add(s.substring(i, i+1));\n\t\t}\n\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tif(slist.get(i).equals(\"R\")) {\n\t\t\t\tthree = true;\n\t\t\t}else {\n\t\t\t\tthree = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tif(slist.get(i).equals(\"R\")) {\n\t\t\t\tcount++;\n\t\t\t}else if(slist.get(i).equals(\"S\")) {\n\t\t\t\tif(max < count) {\n\t\t\t\t\tmax = count;\n\t\t\t\t\tcount = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "s.equals(\"RRR\")", "s.equals", "s", "\"RRR\"", "{\n\t\tmax = 3;\n\t}", "max = 3", "max", "3", "{\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tslist.add(s.substring(i, i+1));\n\t\t}\n\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tif(slist.get(i).equals(\"R\")) {\n\t\t\t\tthree = true;\n\t\t\t}else {\n\t\t\t\tthree = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tif(slist.get(i).equals(\"R\")) {\n\t\t\t\tcount++;\n\t\t\t}else if(slist.get(i).equals(\"S\")) {\n\t\t\t\tif(max < count) {\n\t\t\t\t\tmax = count;\n\t\t\t\t\tcount = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "for(int i = 0; i < 3; i++) {\n\t\t\tslist.add(s.substring(i, i+1));\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < 3", "i", "3", "i++", "i++", "i", "{\n\t\t\tslist.add(s.substring(i, i+1));\n\t\t}", "{\n\t\t\tslist.add(s.substring(i, i+1));\n\t\t}", "slist.add(s.substring(i, i+1))", "slist.add", "slist", "s.substring(i, i+1)", "s.substring", "s", "i", "i+1", "i", "1", "for(int i = 0; i < 3; i++) {\n\t\t\tif(slist.get(i).equals(\"R\")) {\n\t\t\t\tthree = true;\n\t\t\t}else {\n\t\t\t\tthree = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < 3", "i", "3", "i++", "i++", "i", "{\n\t\t\tif(slist.get(i).equals(\"R\")) {\n\t\t\t\tthree = true;\n\t\t\t}else {\n\t\t\t\tthree = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "{\n\t\t\tif(slist.get(i).equals(\"R\")) {\n\t\t\t\tthree = true;\n\t\t\t}else {\n\t\t\t\tthree = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "if(slist.get(i).equals(\"R\")) {\n\t\t\t\tthree = true;\n\t\t\t}else {\n\t\t\t\tthree = false;\n\t\t\t\tbreak;\n\t\t\t}", "slist.get(i).equals(\"R\")", "slist.get(i).equals", "slist.get(i)", "slist.get", "slist", "i", "\"R\"", "{\n\t\t\t\tthree = true;\n\t\t\t}", "three = true", "three", "true", "{\n\t\t\t\tthree = false;\n\t\t\t\tbreak;\n\t\t\t}", "three = false", "three", "false", "break;", "for(int i = 0; i < 3; i++) {\n\t\t\tif(slist.get(i).equals(\"R\")) {\n\t\t\t\tcount++;\n\t\t\t}else if(slist.get(i).equals(\"S\")) {\n\t\t\t\tif(max < count) {\n\t\t\t\t\tmax = count;\n\t\t\t\t\tcount = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < 3", "i", "3", "i++", "i++", "i", "{\n\t\t\tif(slist.get(i).equals(\"R\")) {\n\t\t\t\tcount++;\n\t\t\t}else if(slist.get(i).equals(\"S\")) {\n\t\t\t\tif(max < count) {\n\t\t\t\t\tmax = count;\n\t\t\t\t\tcount = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "{\n\t\t\tif(slist.get(i).equals(\"R\")) {\n\t\t\t\tcount++;\n\t\t\t}else if(slist.get(i).equals(\"S\")) {\n\t\t\t\tif(max < count) {\n\t\t\t\t\tmax = count;\n\t\t\t\t\tcount = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "if(slist.get(i).equals(\"R\")) {\n\t\t\t\tcount++;\n\t\t\t}else if(slist.get(i).equals(\"S\")) {\n\t\t\t\tif(max < count) {\n\t\t\t\t\tmax = count;\n\t\t\t\t\tcount = 0;\n\t\t\t\t}\n\t\t\t}", "slist.get(i).equals(\"R\")", "slist.get(i).equals", "slist.get(i)", "slist.get", "slist", "i", "\"R\"", "{\n\t\t\t\tcount++;\n\t\t\t}", "count++", "count", "if(slist.get(i).equals(\"S\")) {\n\t\t\t\tif(max < count) {\n\t\t\t\t\tmax = count;\n\t\t\t\t\tcount = 0;\n\t\t\t\t}\n\t\t\t}", "slist.get(i).equals(\"S\")", "slist.get(i).equals", "slist.get(i)", "slist.get", "slist", "i", "\"S\"", "{\n\t\t\t\tif(max < count) {\n\t\t\t\t\tmax = count;\n\t\t\t\t\tcount = 0;\n\t\t\t\t}\n\t\t\t}", "if(max < count) {\n\t\t\t\t\tmax = count;\n\t\t\t\t\tcount = 0;\n\t\t\t\t}", "max < count", "max", "count", "{\n\t\t\t\t\tmax = count;\n\t\t\t\t\tcount = 0;\n\t\t\t\t}", "max = count", "max", "count", "count = 0", "count", "0", "if(three == true) {\n\t\tSystem.out.println(\"3\");\n\t}else if(count > max) {\n\t\tSystem.out.println(count);\n\t}else {\n\t\tSystem.out.println(max);\n\t}", "three == true", "three", "true", "{\n\t\tSystem.out.println(\"3\");\n\t}", "System.out.println(\"3\")", "System.out.println", "System.out", "System", "System.out", "\"3\"", "if(count > max) {\n\t\tSystem.out.println(count);\n\t}else {\n\t\tSystem.out.println(max);\n\t}", "count > max", "count", "max", "{\n\t\tSystem.out.println(count);\n\t}", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "{\n\t\tSystem.out.println(max);\n\t}", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args", "public class Main {\npublic static void main(String[] args) {\n\tScanner sc = new Scanner (System.in);\n\tArrayList<String> slist = new ArrayList<>();\n\n\tString s = sc.next();\n\tboolean three = false;\n\tint count = 0;\n\tint max = 0;\n\n\tif(s.equals(\"RRR\")) {\n\t\tmax = 3;\n\t}else {\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tslist.add(s.substring(i, i+1));\n\t\t}\n\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tif(slist.get(i).equals(\"R\")) {\n\t\t\t\tthree = true;\n\t\t\t}else {\n\t\t\t\tthree = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tif(slist.get(i).equals(\"R\")) {\n\t\t\t\tcount++;\n\t\t\t}else if(slist.get(i).equals(\"S\")) {\n\t\t\t\tif(max < count) {\n\t\t\t\t\tmax = count;\n\t\t\t\t\tcount = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tif(three == true) {\n\t\tSystem.out.println(\"3\");\n\t}else if(count > max) {\n\t\tSystem.out.println(count);\n\t}else {\n\t\tSystem.out.println(max);\n\t}\n\n}\n}", "public class Main {\npublic static void main(String[] args) {\n\tScanner sc = new Scanner (System.in);\n\tArrayList<String> slist = new ArrayList<>();\n\n\tString s = sc.next();\n\tboolean three = false;\n\tint count = 0;\n\tint max = 0;\n\n\tif(s.equals(\"RRR\")) {\n\t\tmax = 3;\n\t}else {\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tslist.add(s.substring(i, i+1));\n\t\t}\n\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tif(slist.get(i).equals(\"R\")) {\n\t\t\t\tthree = true;\n\t\t\t}else {\n\t\t\t\tthree = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tif(slist.get(i).equals(\"R\")) {\n\t\t\t\tcount++;\n\t\t\t}else if(slist.get(i).equals(\"S\")) {\n\t\t\t\tif(max < count) {\n\t\t\t\t\tmax = count;\n\t\t\t\t\tcount = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tif(three == true) {\n\t\tSystem.out.println(\"3\");\n\t}else if(count > max) {\n\t\tSystem.out.println(count);\n\t}else {\n\t\tSystem.out.println(max);\n\t}\n\n}\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<String> slist = new ArrayList<>(); String s = sc.next(); boolean three = false; int count = 0; int max = 0; if(s.equals("RRR")) { max = 3; }else { for(int i = 0; i < 3; i++) { slist.add(s.substring(i, i+1)); } for(int i = 0; i < 3; i++) { if(slist.get(i).equals("R")) { three = true; }else { three = false; break; } } for(int i = 0; i < 3; i++) { if(slist.get(i).equals("R")) { count++; }else if(slist.get(i).equals("S")) { if(max < count) { max = count; count = 0; } } } } if(three == true) { System.out.println("3"); }else if(count > max) { System.out.println(count); }else { System.out.println(max); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 17, 30, 40, 13, 14, 2, 2, 18, 13, 17, 17, 2, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 6, 13, 41, 13, 17, 41, 13, 17, 12, 13, 30, 0, 13, 20, 0, 13, 17, 23, 13, 12, 13, 30, 14, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 37, 20, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 14, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 37, 20, 30, 29, 4, 18, 13, 29, 4, 18, 13, 17, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 239, 17 ], [ 239, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 20, 31 ], [ 31, 32 ], [ 31, 33 ], [ 20, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 39, 40 ], [ 39, 41 ], [ 34, 42 ], [ 42, 43 ], [ 43, 44 ], [ 34, 45 ], [ 46, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 47, 53 ], [ 53, 54 ], [ 54, 55 ], [ 20, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 57, 63 ], [ 63, 64 ], [ 63, 65 ], [ 56, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 20, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 18, 76 ], [ 76, 77 ], [ 239, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 80, 82 ], [ 78, 83 ], [ 83, 84 ], [ 83, 85 ], [ 78, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 92, 93 ], [ 92, 94 ], [ 86, 95 ], [ 95, 96 ], [ 78, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 100, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 114, 115 ], [ 110, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 99, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 78, 124 ], [ 124, 125 ], [ 124, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 128, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 127, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 140, 141 ], [ 141, 142 ], [ 137, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 126, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 149, 152 ], [ 78, 153 ], [ 153, 154 ], [ 153, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 157, 160 ], [ 160, 161 ], [ 78, 162 ], [ 162, 163 ], [ 162, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 167, 168 ], [ 166, 169 ], [ 169, 170 ], [ 78, 171 ], [ 171, 172 ], [ 171, 173 ], [ 173, 174 ], [ 174, 175 ], [ 175, 176 ], [ 176, 177 ], [ 175, 178 ], [ 178, 179 ], [ 78, 180 ], [ 180, 181 ], [ 180, 182 ], [ 182, 183 ], [ 183, 184 ], [ 183, 185 ], [ 182, 187 ], [ 187, 188 ], [ 188, 189 ], [ 189, 190 ], [ 189, 191 ], [ 187, 192 ], [ 192, 193 ], [ 192, 194 ], [ 187, 195 ], [ 195, 196 ], [ 196, 197 ], [ 187, 198 ], [ 198, 199 ], [ 199, 200 ], [ 200, 201 ], [ 200, 202 ], [ 199, 203 ], [ 203, 204 ], [ 182, 205 ], [ 205, 206 ], [ 180, 207 ], [ 207, 208 ], [ 78, 209 ], [ 209, 210 ], [ 209, 211 ], [ 211, 212 ], [ 212, 213 ], [ 212, 214 ], [ 211, 216 ], [ 216, 217 ], [ 217, 218 ], [ 218, 219 ], [ 218, 220 ], [ 216, 221 ], [ 221, 222 ], [ 221, 223 ], [ 216, 224 ], [ 224, 225 ], [ 225, 226 ], [ 216, 227 ], [ 227, 228 ], [ 228, 229 ], [ 229, 230 ], [ 229, 231 ], [ 228, 232 ], [ 232, 233 ], [ 211, 234 ], [ 234, 235 ], [ 209, 236 ], [ 236, 237 ], [ 0, 238 ], [ 238, 239 ], [ 238, 240 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner(System.in);\n\t\tchar[] s = sc.next().toCharArray();\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tif(s[i] == 'R') {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tif(s[1] == 'S' && ans == 2) {\n\t\t\tans = 1;\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n\n\tstatic class FastScanner {\n\t\tprivate BufferedReader reader = null;\n\t private StringTokenizer tokenizer = null;\n\t public FastScanner(InputStream in) {\n\t reader = new BufferedReader(new InputStreamReader(in));\n\t tokenizer = null;\n\t }\n\n\t public String next() {\n\t if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t try {\n\t tokenizer = new StringTokenizer(reader.readLine());\n\t } catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }\n\t }\n\t return tokenizer.nextToken();\n\t }\n\n\t public String nextLine() {\n\t if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t try {\n\t return reader.readLine();\n\t } catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }\n\t }\n\n\t return tokenizer.nextToken(\"\\n\");\n\t }\n\n\t public long nextLong() {\n\t return Long.parseLong(next());\n\t }\n\n\t public int nextInt() {\n\t return Integer.parseInt(next());\n\t }\n\n\t public double nextDouble() {\n\t return Double.parseDouble(next());\n\t }\n\n\t public int[] nextIntArray(int n) {\n\t int[] a = new int[n];\n\t for (int i = 0; i < n; i++)\n\t a[i] = nextInt();\n\t return a;\n\t }\n\n\t public long[] nextLongArray(int n) {\n\t long[] a = new long[n];\n\t for (int i = 0; i < n; i++)\n\t a[i] = nextLong();\n\t return a;\n\t }\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner(System.in);\n\t\tchar[] s = sc.next().toCharArray();\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tif(s[i] == 'R') {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tif(s[1] == 'S' && ans == 2) {\n\t\t\tans = 1;\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n\n\tstatic class FastScanner {\n\t\tprivate BufferedReader reader = null;\n\t private StringTokenizer tokenizer = null;\n\t public FastScanner(InputStream in) {\n\t reader = new BufferedReader(new InputStreamReader(in));\n\t tokenizer = null;\n\t }\n\n\t public String next() {\n\t if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t try {\n\t tokenizer = new StringTokenizer(reader.readLine());\n\t } catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }\n\t }\n\t return tokenizer.nextToken();\n\t }\n\n\t public String nextLine() {\n\t if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t try {\n\t return reader.readLine();\n\t } catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }\n\t }\n\n\t return tokenizer.nextToken(\"\\n\");\n\t }\n\n\t public long nextLong() {\n\t return Long.parseLong(next());\n\t }\n\n\t public int nextInt() {\n\t return Integer.parseInt(next());\n\t }\n\n\t public double nextDouble() {\n\t return Double.parseDouble(next());\n\t }\n\n\t public int[] nextIntArray(int n) {\n\t int[] a = new int[n];\n\t for (int i = 0; i < n; i++)\n\t a[i] = nextInt();\n\t return a;\n\t }\n\n\t public long[] nextLongArray(int n) {\n\t long[] a = new long[n];\n\t for (int i = 0; i < n; i++)\n\t a[i] = nextLong();\n\t return a;\n\t }\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner(System.in);\n\t\tchar[] s = sc.next().toCharArray();\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tif(s[i] == 'R') {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tif(s[1] == 'S' && ans == 2) {\n\t\t\tans = 1;\n\t\t}\n\t\tSystem.out.println(ans);\n\t}", "main", "{\n\t\tFastScanner sc = new FastScanner(System.in);\n\t\tchar[] s = sc.next().toCharArray();\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tif(s[i] == 'R') {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tif(s[1] == 'S' && ans == 2) {\n\t\t\tans = 1;\n\t\t}\n\t\tSystem.out.println(ans);\n\t}", "FastScanner sc = new FastScanner(System.in);", "sc", "new FastScanner(System.in)", "char[] s = sc.next().toCharArray();", "s", "sc.next().toCharArray()", "sc.next().toCharArray", "sc.next()", "sc.next", "sc", "int ans = 0;", "ans", "0", "for(int i = 0; i < 3; i++) {\n\t\t\tif(s[i] == 'R') {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < 3", "i", "3", "i++", "i++", "i", "{\n\t\t\tif(s[i] == 'R') {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}", "{\n\t\t\tif(s[i] == 'R') {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}", "if(s[i] == 'R') {\n\t\t\t\tans++;\n\t\t\t}", "s[i] == 'R'", "s[i]", "s", "i", "'R'", "{\n\t\t\t\tans++;\n\t\t\t}", "ans++", "ans", "if(s[1] == 'S' && ans == 2) {\n\t\t\tans = 1;\n\t\t}", "s[1] == 'S' && ans == 2", "s[1] == 'S'", "s[1]", "s", "1", "'S'", "ans == 2", "ans", "2", "{\n\t\t\tans = 1;\n\t\t}", "ans = 1", "ans", "1", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "static class FastScanner {\n\t\tprivate BufferedReader reader = null;\n\t private StringTokenizer tokenizer = null;\n\t public FastScanner(InputStream in) {\n\t reader = new BufferedReader(new InputStreamReader(in));\n\t tokenizer = null;\n\t }\n\n\t public String next() {\n\t if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t try {\n\t tokenizer = new StringTokenizer(reader.readLine());\n\t } catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }\n\t }\n\t return tokenizer.nextToken();\n\t }\n\n\t public String nextLine() {\n\t if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t try {\n\t return reader.readLine();\n\t } catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }\n\t }\n\n\t return tokenizer.nextToken(\"\\n\");\n\t }\n\n\t public long nextLong() {\n\t return Long.parseLong(next());\n\t }\n\n\t public int nextInt() {\n\t return Integer.parseInt(next());\n\t }\n\n\t public double nextDouble() {\n\t return Double.parseDouble(next());\n\t }\n\n\t public int[] nextIntArray(int n) {\n\t int[] a = new int[n];\n\t for (int i = 0; i < n; i++)\n\t a[i] = nextInt();\n\t return a;\n\t }\n\n\t public long[] nextLongArray(int n) {\n\t long[] a = new long[n];\n\t for (int i = 0; i < n; i++)\n\t a[i] = nextLong();\n\t return a;\n\t }\n\t}", "FastScanner", "private BufferedReader reader = null;", "reader", "null", "private StringTokenizer tokenizer = null;", "tokenizer", "null", "public FastScanner(InputStream in) {\n\t reader = new BufferedReader(new InputStreamReader(in));\n\t tokenizer = null;\n\t }", "FastScanner", "{\n\t reader = new BufferedReader(new InputStreamReader(in));\n\t tokenizer = null;\n\t }", "reader = new BufferedReader(new InputStreamReader(in))", "reader", "new BufferedReader(new InputStreamReader(in))", "tokenizer = null", "tokenizer", "null", "InputStream in", "in", "public String next() {\n\t if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t try {\n\t tokenizer = new StringTokenizer(reader.readLine());\n\t } catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }\n\t }\n\t return tokenizer.nextToken();\n\t }", "next", "{\n\t if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t try {\n\t tokenizer = new StringTokenizer(reader.readLine());\n\t } catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }\n\t }\n\t return tokenizer.nextToken();\n\t }", "if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t try {\n\t tokenizer = new StringTokenizer(reader.readLine());\n\t } catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }\n\t }", "tokenizer == null || !tokenizer.hasMoreTokens()", "tokenizer == null", "tokenizer", "null", "!tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens", "tokenizer", "{\n\t try {\n\t tokenizer = new StringTokenizer(reader.readLine());\n\t } catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }\n\t }", "try {\n\t tokenizer = new StringTokenizer(reader.readLine());\n\t } catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }", "catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }", "IOException e", "{\n\t throw new RuntimeException(e);\n\t }", "throw new RuntimeException(e);", "new RuntimeException(e)", "{\n\t tokenizer = new StringTokenizer(reader.readLine());\n\t }", "tokenizer = new StringTokenizer(reader.readLine())", "tokenizer", "new StringTokenizer(reader.readLine())", "return tokenizer.nextToken();", "tokenizer.nextToken()", "tokenizer.nextToken", "tokenizer", "public String nextLine() {\n\t if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t try {\n\t return reader.readLine();\n\t } catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }\n\t }\n\n\t return tokenizer.nextToken(\"\\n\");\n\t }", "nextLine", "{\n\t if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t try {\n\t return reader.readLine();\n\t } catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }\n\t }\n\n\t return tokenizer.nextToken(\"\\n\");\n\t }", "if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t try {\n\t return reader.readLine();\n\t } catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }\n\t }", "tokenizer == null || !tokenizer.hasMoreTokens()", "tokenizer == null", "tokenizer", "null", "!tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens", "tokenizer", "{\n\t try {\n\t return reader.readLine();\n\t } catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }\n\t }", "try {\n\t return reader.readLine();\n\t } catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }", "catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }", "IOException e", "{\n\t throw new RuntimeException(e);\n\t }", "throw new RuntimeException(e);", "new RuntimeException(e)", "{\n\t return reader.readLine();\n\t }", "return reader.readLine();", "reader.readLine()", "reader.readLine", "reader", "return tokenizer.nextToken(\"\\n\");", "tokenizer.nextToken(\"\\n\")", "tokenizer.nextToken", "tokenizer", "\"\\n\"", "public long nextLong() {\n\t return Long.parseLong(next());\n\t }", "nextLong", "{\n\t return Long.parseLong(next());\n\t }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "public int nextInt() {\n\t return Integer.parseInt(next());\n\t }", "nextInt", "{\n\t return Integer.parseInt(next());\n\t }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "public double nextDouble() {\n\t return Double.parseDouble(next());\n\t }", "nextDouble", "{\n\t return Double.parseDouble(next());\n\t }", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "public int[] nextIntArray(int n) {\n\t int[] a = new int[n];\n\t for (int i = 0; i < n; i++)\n\t a[i] = nextInt();\n\t return a;\n\t }", "nextIntArray", "{\n\t int[] a = new int[n];\n\t for (int i = 0; i < n; i++)\n\t a[i] = nextInt();\n\t return a;\n\t }", "int[] a = new int[n];", "a", "new int[n]", "n", "for (int i = 0; i < n; i++)\n\t a[i] = nextInt();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "a[i] = nextInt();", "a[i] = nextInt()", "a[i]", "a", "i", "nextInt()", "nextInt", "return a;", "a", "int n", "n", "public long[] nextLongArray(int n) {\n\t long[] a = new long[n];\n\t for (int i = 0; i < n; i++)\n\t a[i] = nextLong();\n\t return a;\n\t }", "nextLongArray", "{\n\t long[] a = new long[n];\n\t for (int i = 0; i < n; i++)\n\t a[i] = nextLong();\n\t return a;\n\t }", "long[] a = new long[n];", "a", "new long[n]", "n", "for (int i = 0; i < n; i++)\n\t 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\tpublic static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner(System.in);\n\t\tchar[] s = sc.next().toCharArray();\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tif(s[i] == 'R') {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tif(s[1] == 'S' && ans == 2) {\n\t\t\tans = 1;\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n\n\tstatic class FastScanner {\n\t\tprivate BufferedReader reader = null;\n\t private StringTokenizer tokenizer = null;\n\t public FastScanner(InputStream in) {\n\t reader = new BufferedReader(new InputStreamReader(in));\n\t tokenizer = null;\n\t }\n\n\t public String next() {\n\t if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t try {\n\t tokenizer = new StringTokenizer(reader.readLine());\n\t } catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }\n\t }\n\t return tokenizer.nextToken();\n\t }\n\n\t public String nextLine() {\n\t if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t try {\n\t return reader.readLine();\n\t } catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }\n\t }\n\n\t return tokenizer.nextToken(\"\\n\");\n\t }\n\n\t public long nextLong() {\n\t return Long.parseLong(next());\n\t }\n\n\t public int nextInt() {\n\t return Integer.parseInt(next());\n\t }\n\n\t public double nextDouble() {\n\t return Double.parseDouble(next());\n\t }\n\n\t public int[] nextIntArray(int n) {\n\t int[] a = new int[n];\n\t for (int i = 0; i < n; i++)\n\t a[i] = nextInt();\n\t return a;\n\t }\n\n\t public long[] nextLongArray(int n) {\n\t long[] a = new long[n];\n\t for (int i = 0; i < n; i++)\n\t a[i] = nextLong();\n\t return a;\n\t }\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner(System.in);\n\t\tchar[] s = sc.next().toCharArray();\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tif(s[i] == 'R') {\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tif(s[1] == 'S' && ans == 2) {\n\t\t\tans = 1;\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n\n\tstatic class FastScanner {\n\t\tprivate BufferedReader reader = null;\n\t private StringTokenizer tokenizer = null;\n\t public FastScanner(InputStream in) {\n\t reader = new BufferedReader(new InputStreamReader(in));\n\t tokenizer = null;\n\t }\n\n\t public String next() {\n\t if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t try {\n\t tokenizer = new StringTokenizer(reader.readLine());\n\t } catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }\n\t }\n\t return tokenizer.nextToken();\n\t }\n\n\t public String nextLine() {\n\t if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t try {\n\t return reader.readLine();\n\t } catch (IOException e) {\n\t throw new RuntimeException(e);\n\t }\n\t }\n\n\t return tokenizer.nextToken(\"\\n\");\n\t }\n\n\t public long nextLong() {\n\t return Long.parseLong(next());\n\t }\n\n\t public int nextInt() {\n\t return Integer.parseInt(next());\n\t }\n\n\t public double nextDouble() {\n\t return Double.parseDouble(next());\n\t }\n\n\t public int[] nextIntArray(int n) {\n\t int[] a = new int[n];\n\t for (int i = 0; i < n; i++)\n\t a[i] = nextInt();\n\t return a;\n\t }\n\n\t public long[] nextLongArray(int n) {\n\t long[] a = new long[n];\n\t for (int i = 0; i < n; i++)\n\t a[i] = nextLong();\n\t return a;\n\t }\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { public static void main(String[] args) { FastScanner sc = new FastScanner(System.in); char[] s = sc.next().toCharArray(); int ans = 0; for(int i = 0; i < 3; i++) { if(s[i] == 'R') { ans++; } } if(s[1] == 'S' && ans == 2) { ans = 1; } System.out.println(ans); } static class FastScanner { private BufferedReader reader = null; private StringTokenizer tokenizer = null; public FastScanner(InputStream in) { reader = new BufferedReader(new InputStreamReader(in)); tokenizer = null; } public String next() { if (tokenizer == null || !tokenizer.hasMoreTokens()) { try { tokenizer = new StringTokenizer(reader.readLine()); } catch (IOException e) { throw new RuntimeException(e); } } return tokenizer.nextToken(); } public String nextLine() { if (tokenizer == null || !tokenizer.hasMoreTokens()) { try { return reader.readLine(); } catch (IOException e) { throw new RuntimeException(e); } } return tokenizer.nextToken("\n"); } public long nextLong() { return Long.parseLong(next()); } public int nextInt() { return Integer.parseInt(next()); } public double nextDouble() { return Double.parseDouble(next()); } public int[] nextIntArray(int n) { int[] a = new int[n]; for (int i = 0; i < n; i++) a[i] = nextInt(); return a; } public long[] nextLongArray(int n) { long[] a = new long[n]; for (int i = 0; i < n; i++) a[i] = nextLong(); return a; } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 20, 12, 13, 30, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 17, 41, 13, 17, 41, 13, 20, 41, 13, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 0, 13, 17, 0, 13, 17, 28, 13, 13, 30, 30, 14, 2, 13, 17, 40, 13, 0, 13, 17, 0, 13, 4, 18, 13, 13, 13, 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 ], [ 107, 14 ], [ 107, 15 ], [ 15, 16 ], [ 15, 17 ], [ 107, 18 ], [ 18, 19 ], [ 18, 20 ], [ 107, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 23, 26 ], [ 26, 27 ], [ 23, 28 ], [ 28, 29 ], [ 23, 30 ], [ 30, 31 ], [ 23, 32 ], [ 32, 33 ], [ 23, 34 ], [ 34, 35 ], [ 23, 36 ], [ 36, 37 ], [ 23, 38 ], [ 38, 39 ], [ 23, 40 ], [ 40, 41 ], [ 23, 42 ], [ 42, 43 ], [ 23, 44 ], [ 44, 45 ], [ 23, 46 ], [ 46, 47 ], [ 23, 48 ], [ 48, 49 ], [ 23, 50 ], [ 50, 51 ], [ 23, 52 ], [ 52, 53 ], [ 52, 54 ], [ 23, 55 ], [ 55, 56 ], [ 55, 57 ], [ 23, 58 ], [ 58, 59 ], [ 58, 60 ], [ 23, 61 ], [ 61, 62 ], [ 23, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 23, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 23, 73 ], [ 73, 74 ], [ 73, 75 ], [ 23, 76 ], [ 76, 77 ], [ 76, 78 ], [ 23, 79 ], [ 79, 80 ], [ 79, 81 ], [ 79, 82 ], [ 83, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 88, 89 ], [ 84, 90 ], [ 90, 91 ], [ 90, 92 ], [ 83, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 95, 99 ], [ 23, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 103 ], [ 21, 104 ], [ 104, 105 ], [ 0, 106 ], [ 106, 107 ], [ 106, 108 ] ]
[ "// ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿>\n// ⣿ \n// ⣿ Author - midu_01C\n// ⣿ \n// ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿>\n\nimport java.io.*;\nimport java.util.*;\nimport java.math.*;\nimport java.lang.*;\n\npublic class Main\n{\n static Scanner cin = new Scanner(System.in);\n static PrintStream cout = new PrintStream\n (new FileOutputStream(FileDescriptor.out));\n \n public static void main(String args[])\n {\n int t,n,m,a,b,c,d,e,i,j,k,x,y,z,cnt=0;\n boolean flag = false; Vector v = new Vector();\n \n String s;\n s=cin.next();\n char[] ch=s.toCharArray();\n x=0;\n cnt=0;\n for(char c1:ch)\n {\n if(c1=='R') cnt++;\n else cnt=0;\n x=Math.max(x,cnt);\n }\n cout.println(x);\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "import java.math.*;", "math.*", "java", "import java.lang.*;", "lang.*", "java", "public class Main\n{\n static Scanner cin = new Scanner(System.in);\n static PrintStream cout = new PrintStream\n (new FileOutputStream(FileDescriptor.out));\n \n public static void main(String args[])\n {\n int t,n,m,a,b,c,d,e,i,j,k,x,y,z,cnt=0;\n boolean flag = false; Vector v = new Vector();\n \n String s;\n s=cin.next();\n char[] ch=s.toCharArray();\n x=0;\n cnt=0;\n for(char c1:ch)\n {\n if(c1=='R') cnt++;\n else cnt=0;\n x=Math.max(x,cnt);\n }\n cout.println(x);\n }\n}", "Main", "static Scanner cin = new Scanner(System.in);", "cin", "new Scanner(System.in)", "static PrintStream cout = new PrintStream\n (new FileOutputStream(FileDescriptor.out));", "cout", "new PrintStream\n (new FileOutputStream(FileDescriptor.out))", "public static void main(String args[])\n {\n int t,n,m,a,b,c,d,e,i,j,k,x,y,z,cnt=0;\n boolean flag = false; Vector v = new Vector();\n \n String s;\n s=cin.next();\n char[] ch=s.toCharArray();\n x=0;\n cnt=0;\n for(char c1:ch)\n {\n if(c1=='R') cnt++;\n else cnt=0;\n x=Math.max(x,cnt);\n }\n cout.println(x);\n }", "main", "{\n int t,n,m,a,b,c,d,e,i,j,k,x,y,z,cnt=0;\n boolean flag = false; Vector v = new Vector();\n \n String s;\n s=cin.next();\n char[] ch=s.toCharArray();\n x=0;\n cnt=0;\n for(char c1:ch)\n {\n if(c1=='R') cnt++;\n else cnt=0;\n x=Math.max(x,cnt);\n }\n cout.println(x);\n }", "int t", "t", "n", "n", "m", "m", "a", "a", "b", "b", "c", "c", "d", "d", "e", "e", "i", "i", "j", "j", "k", "k", "x", "x", "y", "y", "z", "z", "cnt=0;", "cnt", "0", "boolean flag = false;", "flag", "false", "Vector v = new Vector();", "v", "new Vector()", "String s;", "s", "s=cin.next()", "s", "cin.next()", "cin.next", "cin", "char[] ch=s.toCharArray();", "ch", "s.toCharArray()", "s.toCharArray", "s", "x=0", "x", "0", "cnt=0", "cnt", "0", "for(char c1:ch)\n {\n if(c1=='R') cnt++;\n else cnt=0;\n x=Math.max(x,cnt);\n }", "char c1", "ch", "{\n if(c1=='R') cnt++;\n else cnt=0;\n x=Math.max(x,cnt);\n }", "{\n if(c1=='R') cnt++;\n else cnt=0;\n x=Math.max(x,cnt);\n }", "if(c1=='R') cnt++;\n else cnt=0;", "c1=='R'", "c1", "'R'", "cnt++", "cnt", "cnt=0", "cnt", "0", "x=Math.max(x,cnt)", "x", "Math.max(x,cnt)", "Math.max", "Math", "x", "cnt", "cout.println(x)", "cout.println", "cout", "x", "String args[]", "args", "public class Main\n{\n static Scanner cin = new Scanner(System.in);\n static PrintStream cout = new PrintStream\n (new FileOutputStream(FileDescriptor.out));\n \n public static void main(String args[])\n {\n int t,n,m,a,b,c,d,e,i,j,k,x,y,z,cnt=0;\n boolean flag = false; Vector v = new Vector();\n \n String s;\n s=cin.next();\n char[] ch=s.toCharArray();\n x=0;\n cnt=0;\n for(char c1:ch)\n {\n if(c1=='R') cnt++;\n else cnt=0;\n x=Math.max(x,cnt);\n }\n cout.println(x);\n }\n}", "public class Main\n{\n static Scanner cin = new Scanner(System.in);\n static PrintStream cout = new PrintStream\n (new FileOutputStream(FileDescriptor.out));\n \n public static void main(String args[])\n {\n int t,n,m,a,b,c,d,e,i,j,k,x,y,z,cnt=0;\n boolean flag = false; Vector v = new Vector();\n \n String s;\n s=cin.next();\n char[] ch=s.toCharArray();\n x=0;\n cnt=0;\n for(char c1:ch)\n {\n if(c1=='R') cnt++;\n else cnt=0;\n x=Math.max(x,cnt);\n }\n cout.println(x);\n }\n}", "Main" ]
// ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿> // ⣿ // ⣿ Author - midu_01C // ⣿ // ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿> import java.io.*; import java.util.*; import java.math.*; import java.lang.*; public class Main { static Scanner cin = new Scanner(System.in); static PrintStream cout = new PrintStream (new FileOutputStream(FileDescriptor.out)); public static void main(String args[]) { int t,n,m,a,b,c,d,e,i,j,k,x,y,z,cnt=0; boolean flag = false; Vector v = new Vector(); String s; s=cin.next(); char[] ch=s.toCharArray(); x=0; cnt=0; for(char c1:ch) { if(c1=='R') cnt++; else cnt=0; x=Math.max(x,cnt); } cout.println(x); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 13, 2, 13, 17, 14, 2, 4, 18, 13, 17, 13, 30, 40, 13, 14, 2, 4, 18, 13, 17, 40, 13, 30, 0, 13, 17, 0, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 83, 5 ], [ 83, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 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 ], [ 39, 40 ], [ 38, 41 ], [ 38, 42 ], [ 42, 43 ], [ 42, 44 ], [ 35, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 46, 51 ], [ 45, 52 ], [ 52, 53 ], [ 53, 54 ], [ 45, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 56, 61 ], [ 61, 62 ], [ 55, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 67, 68 ], [ 67, 69 ], [ 55, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 8, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 6, 80 ], [ 80, 81 ], [ 0, 82 ], [ 82, 83 ], [ 82, 84 ] ]
[ "import java.util.*;\npublic class Main{\n public static void main (String args[]){\n Scanner sc = new Scanner(System.in);\n \n int ans = 0;\n String a = sc.next();\n boolean flg = true;\n \n for (int i = 0; i < 3; i++){\n String n = a.substring(i, i+1);\n if (n.equals(\"R\") && flg){\n ans++;\n } else if (n.equals(\"R\") && !flg){\n ans = 1;\n flg = true;\n } else {\n flg = false;\n }\n }\n \n System.out.println(ans);\n }\n}", "import java.util.*;", "util.*", "java", "public class Main{\n public static void main (String args[]){\n Scanner sc = new Scanner(System.in);\n \n int ans = 0;\n String a = sc.next();\n boolean flg = true;\n \n for (int i = 0; i < 3; i++){\n String n = a.substring(i, i+1);\n if (n.equals(\"R\") && flg){\n ans++;\n } else if (n.equals(\"R\") && !flg){\n ans = 1;\n flg = true;\n } else {\n flg = false;\n }\n }\n \n System.out.println(ans);\n }\n}", "Main", "public static void main (String args[]){\n Scanner sc = new Scanner(System.in);\n \n int ans = 0;\n String a = sc.next();\n boolean flg = true;\n \n for (int i = 0; i < 3; i++){\n String n = a.substring(i, i+1);\n if (n.equals(\"R\") && flg){\n ans++;\n } else if (n.equals(\"R\") && !flg){\n ans = 1;\n flg = true;\n } else {\n flg = false;\n }\n }\n \n System.out.println(ans);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n \n int ans = 0;\n String a = sc.next();\n boolean flg = true;\n \n for (int i = 0; i < 3; i++){\n String n = a.substring(i, i+1);\n if (n.equals(\"R\") && flg){\n ans++;\n } else if (n.equals(\"R\") && !flg){\n ans = 1;\n flg = true;\n } else {\n flg = false;\n }\n }\n \n System.out.println(ans);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int ans = 0;", "ans", "0", "String a = sc.next();", "a", "sc.next()", "sc.next", "sc", "boolean flg = true;", "flg", "true", "for (int i = 0; i < 3; i++){\n String n = a.substring(i, i+1);\n if (n.equals(\"R\") && flg){\n ans++;\n } else if (n.equals(\"R\") && !flg){\n ans = 1;\n flg = true;\n } else {\n flg = false;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < 3", "i", "3", "i++", "i++", "i", "{\n String n = a.substring(i, i+1);\n if (n.equals(\"R\") && flg){\n ans++;\n } else if (n.equals(\"R\") && !flg){\n ans = 1;\n flg = true;\n } else {\n flg = false;\n }\n }", "{\n String n = a.substring(i, i+1);\n if (n.equals(\"R\") && flg){\n ans++;\n } else if (n.equals(\"R\") && !flg){\n ans = 1;\n flg = true;\n } else {\n flg = false;\n }\n }", "String n = a.substring(i, i+1);", "n", "a.substring(i, i+1)", "a.substring", "a", "i", "i+1", "i", "1", "if (n.equals(\"R\") && flg){\n ans++;\n } else if (n.equals(\"R\") && !flg){\n ans = 1;\n flg = true;\n } else {\n flg = false;\n }", "n.equals(\"R\") && flg", "n.equals(\"R\")", "n.equals", "n", "\"R\"", "flg", "{\n ans++;\n }", "ans++", "ans", "if (n.equals(\"R\") && !flg){\n ans = 1;\n flg = true;\n } else {\n flg = false;\n }", "n.equals(\"R\") && !flg", "n.equals(\"R\")", "n.equals", "n", "\"R\"", "!flg", "flg", "{\n ans = 1;\n flg = true;\n }", "ans = 1", "ans", "1", "flg = true", "flg", "true", "{\n flg = false;\n }", "flg = false", "flg", "false", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String args[]", "args", "public class Main{\n public static void main (String args[]){\n Scanner sc = new Scanner(System.in);\n \n int ans = 0;\n String a = sc.next();\n boolean flg = true;\n \n for (int i = 0; i < 3; i++){\n String n = a.substring(i, i+1);\n if (n.equals(\"R\") && flg){\n ans++;\n } else if (n.equals(\"R\") && !flg){\n ans = 1;\n flg = true;\n } else {\n flg = false;\n }\n }\n \n System.out.println(ans);\n }\n}", "public class Main{\n public static void main (String args[]){\n Scanner sc = new Scanner(System.in);\n \n int ans = 0;\n String a = sc.next();\n boolean flg = true;\n \n for (int i = 0; i < 3; i++){\n String n = a.substring(i, i+1);\n if (n.equals(\"R\") && flg){\n ans++;\n } else if (n.equals(\"R\") && !flg){\n ans = 1;\n flg = true;\n } else {\n flg = false;\n }\n }\n \n System.out.println(ans);\n }\n}", "Main" ]
import java.util.*; public class Main{ public static void main (String args[]){ Scanner sc = new Scanner(System.in); int ans = 0; String a = sc.next(); boolean flg = true; for (int i = 0; i < 3; i++){ String n = a.substring(i, i+1); if (n.equals("R") && flg){ ans++; } else if (n.equals("R") && !flg){ ans = 1; flg = true; } else { flg = false; } } System.out.println(ans); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 17, 40, 13, 30, 0, 13, 4, 18, 13, 13, 13, 0, 13, 17, 0, 13, 4, 18, 13, 13, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 23, 13, 12, 13, 30, 29, 4, 18, 13, 4, 18, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 29, 13, 23, 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, 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 ], [ 166, 14 ], [ 166, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 17, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 17, 29 ], [ 29, 30 ], [ 29, 31 ], [ 17, 32 ], [ 32, 33 ], [ 32, 34 ], [ 17, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 35, 45 ], [ 45, 46 ], [ 46, 47 ], [ 35, 48 ], [ 49, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 51, 56 ], [ 50, 57 ], [ 57, 58 ], [ 50, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 62, 66 ], [ 59, 67 ], [ 67, 68 ], [ 67, 69 ], [ 17, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 72, 76 ], [ 17, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 17, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 86, 87 ], [ 87, 88 ], [ 15, 89 ], [ 89, 90 ], [ 166, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 98, 99 ], [ 99, 100 ], [ 91, 101 ], [ 101, 102 ], [ 166, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 105, 109 ], [ 109, 110 ], [ 109, 111 ], [ 105, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 113, 118 ], [ 118, 119 ], [ 118, 120 ], [ 113, 121 ], [ 121, 122 ], [ 122, 123 ], [ 113, 124 ], [ 125, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 126, 130 ], [ 130, 131 ], [ 131, 132 ], [ 130, 133 ], [ 133, 134 ], [ 134, 135 ], [ 105, 136 ], [ 136, 137 ], [ 103, 138 ], [ 138, 139 ], [ 103, 140 ], [ 140, 141 ], [ 166, 142 ], [ 142, 143 ], [ 142, 144 ], [ 144, 145 ], [ 142, 146 ], [ 146, 147 ], [ 142, 148 ], [ 148, 149 ], [ 148, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 151, 155 ], [ 150, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 156, 160 ], [ 148, 161 ], [ 161, 162 ], [ 148, 163 ], [ 163, 164 ], [ 0, 165 ], [ 165, 166 ], [ 165, 167 ] ]
[ "\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n // code goes here\n String s = br.readLine();\n int ans = 0;\n int count = 0;\n for(int i = 0; i < s.length(); i++){\n if(s.charAt(i) == 'R') count++;\n else {\n ans = Math.max(ans, count);\n count = 0;\n }\n }\n ans = Math.max(ans, count);\n sb.append(ans);\n System.out.print(sb.toString());\n }\n\n private static int nextInt(BufferedReader br) throws IOException{\n return Integer.parseInt(br.readLine());\n }\n\n private static int[] nextIntArray(BufferedReader br, int n) throws IOException{\n StringTokenizer st = new StringTokenizer(br.readLine());\n int[] arr = new int[n];\n for(int i = 0; i < n; i++){\n arr[i] = Integer.parseInt(st.nextToken());\n }\n return arr;\n }\n\n static class Pair<A, B>{\n A first;\n B second;\n public Pair(A first, B second){\n this.first = first;\n this.second = second;\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.util.StringTokenizer;", "StringTokenizer", "java.util", "public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n // code goes here\n String s = br.readLine();\n int ans = 0;\n int count = 0;\n for(int i = 0; i < s.length(); i++){\n if(s.charAt(i) == 'R') count++;\n else {\n ans = Math.max(ans, count);\n count = 0;\n }\n }\n ans = Math.max(ans, count);\n sb.append(ans);\n System.out.print(sb.toString());\n }\n\n private static int nextInt(BufferedReader br) throws IOException{\n return Integer.parseInt(br.readLine());\n }\n\n private static int[] nextIntArray(BufferedReader br, int n) throws IOException{\n StringTokenizer st = new StringTokenizer(br.readLine());\n int[] arr = new int[n];\n for(int i = 0; i < n; i++){\n arr[i] = Integer.parseInt(st.nextToken());\n }\n return arr;\n }\n\n static class Pair<A, B>{\n A first;\n B second;\n public Pair(A first, B second){\n this.first = first;\n this.second = second;\n }\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n // code goes here\n String s = br.readLine();\n int ans = 0;\n int count = 0;\n for(int i = 0; i < s.length(); i++){\n if(s.charAt(i) == 'R') count++;\n else {\n ans = Math.max(ans, count);\n count = 0;\n }\n }\n ans = Math.max(ans, count);\n sb.append(ans);\n System.out.print(sb.toString());\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n // code goes here\n String s = br.readLine();\n int ans = 0;\n int count = 0;\n for(int i = 0; i < s.length(); i++){\n if(s.charAt(i) == 'R') count++;\n else {\n ans = Math.max(ans, count);\n count = 0;\n }\n }\n ans = Math.max(ans, count);\n sb.append(ans);\n System.out.print(sb.toString());\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "String s = br.readLine();", "s", "br.readLine()", "br.readLine", "br", "int ans = 0;", "ans", "0", "int count = 0;", "count", "0", "for(int i = 0; i < s.length(); i++){\n if(s.charAt(i) == 'R') count++;\n else {\n ans = Math.max(ans, count);\n count = 0;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < s.length()", "i", "s.length()", "s.length", "s", "i++", "i++", "i", "{\n if(s.charAt(i) == 'R') count++;\n else {\n ans = Math.max(ans, count);\n count = 0;\n }\n }", "{\n if(s.charAt(i) == 'R') count++;\n else {\n ans = Math.max(ans, count);\n count = 0;\n }\n }", "if(s.charAt(i) == 'R') count++;\n else {\n ans = Math.max(ans, count);\n count = 0;\n }", "s.charAt(i) == 'R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "count++", "count", "{\n ans = Math.max(ans, count);\n count = 0;\n }", "ans = Math.max(ans, count)", "ans", "Math.max(ans, count)", "Math.max", "Math", "ans", "count", "count = 0", "count", "0", "ans = Math.max(ans, count)", "ans", "Math.max(ans, count)", "Math.max", "Math", "ans", "count", "sb.append(ans)", "sb.append", "sb", "ans", "System.out.print(sb.toString())", "System.out.print", "System.out", "System", "System.out", "sb.toString()", "sb.toString", "sb", "String[] args", "args", "private static int nextInt(BufferedReader br) throws IOException{\n return Integer.parseInt(br.readLine());\n }", "nextInt", "{\n return Integer.parseInt(br.readLine());\n }", "return Integer.parseInt(br.readLine());", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "BufferedReader br", "br", "private static int[] nextIntArray(BufferedReader br, int n) throws IOException{\n StringTokenizer st = new StringTokenizer(br.readLine());\n int[] arr = new int[n];\n for(int i = 0; i < n; i++){\n arr[i] = Integer.parseInt(st.nextToken());\n }\n return arr;\n }", "nextIntArray", "{\n StringTokenizer st = new StringTokenizer(br.readLine());\n int[] arr = new int[n];\n for(int i = 0; i < n; i++){\n arr[i] = Integer.parseInt(st.nextToken());\n }\n return arr;\n }", "StringTokenizer st = new StringTokenizer(br.readLine());", "st", "new StringTokenizer(br.readLine())", "int[] arr = new int[n];", "arr", "new int[n]", "n", "for(int i = 0; i < n; i++){\n arr[i] = Integer.parseInt(st.nextToken());\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n arr[i] = Integer.parseInt(st.nextToken());\n }", "{\n arr[i] = Integer.parseInt(st.nextToken());\n }", "arr[i] = Integer.parseInt(st.nextToken())", "arr[i]", "arr", "i", "Integer.parseInt(st.nextToken())", "Integer.parseInt", "Integer", "st.nextToken()", "st.nextToken", "st", "return arr;", "arr", "BufferedReader br", "br", "int n", "n", "static class Pair<A, B>{\n A first;\n B second;\n public Pair(A first, B second){\n this.first = first;\n this.second = second;\n }\n }", "Pair", "A first;", "first", "B second;", "second", "public Pair(A first, B second){\n this.first = first;\n this.second = second;\n }", "Pair", "{\n this.first = first;\n this.second = second;\n }", "this.first = first", "this.first", "this", "this.first", "first", "this.second = second", "this.second", "this", "this.second", "second", "A first", "first", "B second", "second", "public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n // code goes here\n String s = br.readLine();\n int ans = 0;\n int count = 0;\n for(int i = 0; i < s.length(); i++){\n if(s.charAt(i) == 'R') count++;\n else {\n ans = Math.max(ans, count);\n count = 0;\n }\n }\n ans = Math.max(ans, count);\n sb.append(ans);\n System.out.print(sb.toString());\n }\n\n private static int nextInt(BufferedReader br) throws IOException{\n return Integer.parseInt(br.readLine());\n }\n\n private static int[] nextIntArray(BufferedReader br, int n) throws IOException{\n StringTokenizer st = new StringTokenizer(br.readLine());\n int[] arr = new int[n];\n for(int i = 0; i < n; i++){\n arr[i] = Integer.parseInt(st.nextToken());\n }\n return arr;\n }\n\n static class Pair<A, B>{\n A first;\n B second;\n public Pair(A first, B second){\n this.first = first;\n this.second = second;\n }\n }\n}", "public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n // code goes here\n String s = br.readLine();\n int ans = 0;\n int count = 0;\n for(int i = 0; i < s.length(); i++){\n if(s.charAt(i) == 'R') count++;\n else {\n ans = Math.max(ans, count);\n count = 0;\n }\n }\n ans = Math.max(ans, count);\n sb.append(ans);\n System.out.print(sb.toString());\n }\n\n private static int nextInt(BufferedReader br) throws IOException{\n return Integer.parseInt(br.readLine());\n }\n\n private static int[] nextIntArray(BufferedReader br, int n) throws IOException{\n StringTokenizer st = new StringTokenizer(br.readLine());\n int[] arr = new int[n];\n for(int i = 0; i < n; i++){\n arr[i] = Integer.parseInt(st.nextToken());\n }\n return arr;\n }\n\n static class Pair<A, B>{\n A first;\n B second;\n public Pair(A first, B second){\n this.first = first;\n this.second = second;\n }\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); // code goes here String s = br.readLine(); int ans = 0; int count = 0; for(int i = 0; i < s.length(); i++){ if(s.charAt(i) == 'R') count++; else { ans = Math.max(ans, count); count = 0; } } ans = Math.max(ans, count); sb.append(ans); System.out.print(sb.toString()); } private static int nextInt(BufferedReader br) throws IOException{ return Integer.parseInt(br.readLine()); } private static int[] nextIntArray(BufferedReader br, int n) throws IOException{ StringTokenizer st = new StringTokenizer(br.readLine()); int[] arr = new int[n]; for(int i = 0; i < n; i++){ arr[i] = Integer.parseInt(st.nextToken()); } return arr; } static class Pair<A, B>{ A first; B second; public Pair(A first, B second){ this.first = first; this.second = second; } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 41, 13, 41, 13, 41, 13, 12, 13, 30, 29, 2, 2, 2, 13, 13, 17, 13, 23, 13, 23, 13, 12, 13, 30, 29, 2, 2, 2, 13, 13, 13, 13, 23, 13, 23, 13, 12, 13, 30, 14, 4, 18, 13, 13, 4, 18, 13, 13, 2, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 23, 13, 23, 13, 12, 13, 30, 14, 2, 4, 18, 13, 13, 17, 4, 18, 13, 13, 4, 18, 13, 13, 2, 4, 18, 13, 13, 17, 23, 13, 23, 13, 12, 13, 30, 29, 8, 2, 13, 17, 13, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 29, 8, 13, 17, 17, 23, 13, 12, 13, 30, 0, 13, 20, 0, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 30, 30, 41, 13, 17, 42, 2, 2, 13, 17, 2, 4, 18, 13, 13, 17, 30, 40, 13, 40, 13, 0, 13, 4, 18, 13, 13, 13, 14, 2, 13, 17, 40, 13, 4, 18, 13, 13, 4, 18, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 2, 18, 13, 13, 17, 1, 40, 13, 30, 4, 18, 13, 2, 18, 13, 13, 17, 4, 18, 13, 18, 13, 2, 18, 13, 13, 17, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 2, 18, 13, 13, 17, 1, 40, 13, 30, 4, 18, 13, 2, 18, 13, 13, 17, 4, 18, 13, 18, 13, 2, 18, 13, 13, 17, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 4, 18, 13, 2, 18, 13, 13, 17, 4, 18, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 4, 18, 13, 8, 2, 18, 13, 13, 17, 17, 18, 13, 13, 4, 18, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 4, 18, 13, 2, 4, 18, 13, 13, 17, 4, 18, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 23, 13, 12, 13, 30, 0, 13, 20, 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, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 18, 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, 20, 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, 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, 2, 18, 36, 13, 17, 18, 36, 13, 12, 13, 30, 41, 13, 4, 18, 13, 13, 13, 41, 13, 4, 18, 13, 18, 13, 13, 18, 13, 13, 14, 2, 13, 13, 29, 2, 13, 13, 14, 2, 13, 18, 13, 13, 29, 2, 13, 18, 13, 13, 29, 2, 13, 18, 13, 13, 23, 13, 12, 13, 30, 14, 2, 13, 17, 30, 29, 17, 14, 2, 4, 18, 36, 4, 18, 13, 30, 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, 20, 12, 13, 30, 29, 2, 2, 18, 36, 13, 17, 18, 36, 13, 12, 13, 30, 0, 13, 18, 13, 13, 0, 13, 18, 13, 13, 23, 13, 13, 6, 13, 41, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 13, 0, 13, 20, 13, 0, 13, 13, 4, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 4, 13, 13, 41, 13, 4, 13, 13, 14, 2, 13, 13, 29, 40, 13, 14, 2, 18, 13, 13, 18, 13, 13, 30, 0, 18, 13, 13, 13, 0, 18, 13, 13, 18, 13, 13, 30, 0, 18, 13, 13, 13, 0, 18, 13, 13, 18, 13, 13, 23, 13, 23, 13, 12, 13, 30, 14, 2, 18, 13, 13, 13, 29, 13, 29, 0, 18, 13, 13, 4, 13, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 838, 8 ], [ 838, 9 ], [ 9, 10 ], [ 838, 11 ], [ 11, 12 ], [ 838, 13 ], [ 13, 14 ], [ 838, 15 ], [ 15, 16 ], [ 838, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 22, 26 ], [ 21, 27 ], [ 17, 28 ], [ 28, 29 ], [ 17, 30 ], [ 30, 31 ], [ 838, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 36, 42 ], [ 32, 43 ], [ 43, 44 ], [ 32, 45 ], [ 45, 46 ], [ 838, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 50, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 55, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 59, 64 ], [ 50, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 65, 69 ], [ 47, 70 ], [ 70, 71 ], [ 47, 72 ], [ 72, 73 ], [ 838, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 78, 83 ], [ 77, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 77, 88 ], [ 88, 89 ], [ 89, 90 ], [ 88, 91 ], [ 88, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 92, 97 ], [ 74, 98 ], [ 98, 99 ], [ 74, 100 ], [ 100, 101 ], [ 838, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 106, 111 ], [ 111, 112 ], [ 111, 113 ], [ 111, 114 ], [ 114, 115 ], [ 114, 116 ], [ 102, 117 ], [ 117, 118 ], [ 102, 119 ], [ 119, 120 ], [ 838, 121 ], [ 121, 122 ], [ 121, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 125, 128 ], [ 121, 129 ], [ 129, 130 ], [ 838, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 133, 137 ], [ 137, 138 ], [ 137, 139 ], [ 133, 140 ], [ 140, 141 ], [ 140, 142 ], [ 142, 143 ], [ 143, 144 ], [ 133, 145 ], [ 145, 146 ], [ 145, 147 ], [ 133, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 148, 153 ], [ 153, 154 ], [ 153, 155 ], [ 148, 156 ], [ 157, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 157, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 163, 165 ], [ 162, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 167, 170 ], [ 166, 171 ], [ 161, 172 ], [ 172, 173 ], [ 173, 174 ], [ 172, 175 ], [ 175, 176 ], [ 157, 177 ], [ 177, 178 ], [ 177, 179 ], [ 179, 180 ], [ 180, 181 ], [ 179, 182 ], [ 179, 183 ], [ 157, 184 ], [ 184, 185 ], [ 185, 186 ], [ 185, 187 ], [ 184, 188 ], [ 188, 189 ], [ 133, 190 ], [ 190, 191 ], [ 191, 192 ], [ 190, 193 ], [ 133, 194 ], [ 194, 195 ], [ 195, 196 ], [ 131, 197 ], [ 197, 198 ], [ 838, 199 ], [ 199, 200 ], [ 199, 201 ], [ 201, 202 ], [ 202, 203 ], [ 203, 204 ], [ 204, 205 ], [ 204, 206 ], [ 202, 207 ], [ 207, 208 ], [ 207, 209 ], [ 209, 210 ], [ 210, 211 ], [ 210, 212 ], [ 209, 213 ], [ 202, 214 ], [ 214, 215 ], [ 215, 216 ], [ 202, 217 ], [ 217, 218 ], [ 218, 219 ], [ 219, 220 ], [ 218, 221 ], [ 221, 222 ], [ 222, 223 ], [ 222, 224 ], [ 221, 225 ], [ 201, 226 ], [ 226, 227 ], [ 227, 228 ], [ 226, 229 ], [ 229, 230 ], [ 229, 231 ], [ 231, 232 ], [ 232, 233 ], [ 232, 234 ], [ 231, 235 ], [ 199, 236 ], [ 236, 237 ], [ 838, 238 ], [ 238, 239 ], [ 238, 240 ], [ 240, 241 ], [ 241, 242 ], [ 242, 243 ], [ 243, 244 ], [ 243, 245 ], [ 241, 246 ], [ 246, 247 ], [ 246, 248 ], [ 248, 249 ], [ 249, 250 ], [ 249, 251 ], [ 248, 252 ], [ 241, 253 ], [ 253, 254 ], [ 254, 255 ], [ 241, 256 ], [ 256, 257 ], [ 257, 258 ], [ 258, 259 ], [ 257, 260 ], [ 260, 261 ], [ 261, 262 ], [ 261, 263 ], [ 260, 264 ], [ 240, 265 ], [ 265, 266 ], [ 266, 267 ], [ 265, 268 ], [ 268, 269 ], [ 268, 270 ], [ 270, 271 ], [ 271, 272 ], [ 271, 273 ], [ 270, 274 ], [ 238, 275 ], [ 275, 276 ], [ 838, 277 ], [ 277, 278 ], [ 277, 279 ], [ 279, 280 ], [ 280, 281 ], [ 281, 282 ], [ 282, 283 ], [ 282, 284 ], [ 280, 285 ], [ 285, 286 ], [ 285, 287 ], [ 287, 288 ], [ 287, 289 ], [ 280, 290 ], [ 290, 291 ], [ 291, 292 ], [ 280, 293 ], [ 293, 294 ], [ 294, 295 ], [ 295, 296 ], [ 294, 297 ], [ 297, 298 ], [ 298, 299 ], [ 298, 300 ], [ 297, 301 ], [ 279, 302 ], [ 302, 303 ], [ 303, 304 ], [ 277, 305 ], [ 305, 306 ], [ 838, 307 ], [ 307, 308 ], [ 307, 309 ], [ 309, 310 ], [ 310, 311 ], [ 311, 312 ], [ 312, 313 ], [ 312, 314 ], [ 310, 315 ], [ 315, 316 ], [ 315, 317 ], [ 317, 318 ], [ 317, 319 ], [ 310, 320 ], [ 320, 321 ], [ 321, 322 ], [ 310, 323 ], [ 323, 324 ], [ 324, 325 ], [ 325, 326 ], [ 324, 327 ], [ 327, 328 ], [ 328, 329 ], [ 329, 330 ], [ 329, 331 ], [ 328, 332 ], [ 327, 333 ], [ 327, 334 ], [ 334, 335 ], [ 334, 336 ], [ 309, 337 ], [ 337, 338 ], [ 338, 339 ], [ 307, 340 ], [ 340, 341 ], [ 838, 342 ], [ 342, 343 ], [ 342, 344 ], [ 344, 345 ], [ 345, 346 ], [ 346, 347 ], [ 347, 348 ], [ 347, 349 ], [ 345, 350 ], [ 350, 351 ], [ 350, 352 ], [ 352, 353 ], [ 353, 354 ], [ 345, 355 ], [ 355, 356 ], [ 356, 357 ], [ 345, 358 ], [ 358, 359 ], [ 359, 360 ], [ 360, 361 ], [ 359, 362 ], [ 362, 363 ], [ 363, 364 ], [ 364, 365 ], [ 363, 366 ], [ 362, 367 ], [ 344, 368 ], [ 368, 369 ], [ 369, 370 ], [ 342, 371 ], [ 371, 372 ], [ 838, 373 ], [ 373, 374 ], [ 373, 375 ], [ 375, 376 ], [ 373, 377 ], [ 377, 378 ], [ 373, 379 ], [ 379, 380 ], [ 379, 381 ], [ 381, 382 ], [ 382, 383 ], [ 382, 384 ], [ 379, 385 ], [ 385, 386 ], [ 373, 387 ], [ 387, 388 ], [ 387, 389 ], [ 389, 390 ], [ 390, 391 ], [ 390, 392 ], [ 387, 393 ], [ 393, 394 ], [ 373, 395 ], [ 395, 396 ], [ 395, 397 ], [ 397, 398 ], [ 398, 399 ], [ 399, 400 ], [ 400, 401 ], [ 400, 402 ], [ 399, 403 ], [ 403, 404 ], [ 404, 405 ], [ 405, 406 ], [ 398, 407 ], [ 407, 408 ], [ 407, 409 ], [ 397, 410 ], [ 410, 411 ], [ 411, 412 ], [ 412, 413 ], [ 373, 414 ], [ 414, 415 ], [ 414, 416 ], [ 416, 417 ], [ 417, 418 ], [ 418, 419 ], [ 419, 420 ], [ 418, 421 ], [ 421, 422 ], [ 373, 423 ], [ 423, 424 ], [ 423, 425 ], [ 425, 426 ], [ 426, 427 ], [ 427, 428 ], [ 428, 429 ], [ 427, 430 ], [ 430, 431 ], [ 373, 432 ], [ 432, 433 ], [ 432, 434 ], [ 434, 435 ], [ 435, 436 ], [ 436, 437 ], [ 437, 438 ], [ 373, 439 ], [ 439, 440 ], [ 439, 441 ], [ 441, 442 ], [ 442, 443 ], [ 443, 444 ], [ 444, 445 ], [ 443, 446 ], [ 446, 447 ], [ 373, 448 ], [ 448, 449 ], [ 448, 450 ], [ 450, 451 ], [ 451, 452 ], [ 451, 453 ], [ 450, 455 ], [ 455, 456 ], [ 456, 457 ], [ 457, 458 ], [ 457, 459 ], [ 455, 460 ], [ 460, 461 ], [ 460, 462 ], [ 462, 463 ], [ 462, 464 ], [ 455, 465 ], [ 465, 466 ], [ 466, 467 ], [ 455, 468 ], [ 468, 469 ], [ 469, 470 ], [ 470, 471 ], [ 470, 472 ], [ 469, 473 ], [ 473, 474 ], [ 450, 475 ], [ 475, 476 ], [ 448, 477 ], [ 477, 478 ], [ 373, 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 ], [ 373, 508 ], [ 508, 509 ], [ 508, 510 ], [ 510, 511 ], [ 511, 512 ], [ 373, 513 ], [ 513, 514 ], [ 513, 515 ], [ 515, 516 ], [ 516, 517 ], [ 516, 518 ], [ 515, 520 ], [ 520, 521 ], [ 521, 522 ], [ 522, 523 ], [ 522, 524 ], [ 520, 525 ], [ 525, 526 ], [ 525, 527 ], [ 520, 528 ], [ 528, 529 ], [ 529, 530 ], [ 520, 531 ], [ 531, 532 ], [ 532, 533 ], [ 533, 534 ], [ 533, 535 ], [ 532, 536 ], [ 536, 537 ], [ 515, 538 ], [ 538, 539 ], [ 513, 540 ], [ 540, 541 ], [ 373, 542 ], [ 542, 543 ], [ 542, 544 ], [ 544, 545 ], [ 545, 546 ], [ 546, 547 ], [ 547, 548 ], [ 838, 549 ], [ 549, 550 ], [ 549, 551 ], [ 551, 552 ], [ 549, 553 ], [ 553, 554 ], [ 549, 555 ], [ 555, 556 ], [ 555, 557 ], [ 557, 558 ], [ 558, 559 ], [ 559, 560 ], [ 559, 561 ], [ 558, 562 ], [ 557, 563 ], [ 563, 564 ], [ 564, 565 ], [ 564, 566 ], [ 563, 567 ], [ 555, 568 ], [ 568, 569 ], [ 555, 570 ], [ 570, 571 ], [ 549, 572 ], [ 572, 573 ], [ 572, 574 ], [ 574, 575 ], [ 575, 576 ], [ 576, 577 ], [ 577, 578 ], [ 578, 579 ], [ 578, 580 ], [ 577, 581 ], [ 576, 582 ], [ 582, 583 ], [ 582, 584 ], [ 549, 585 ], [ 585, 586 ], [ 585, 587 ], [ 587, 588 ], [ 588, 589 ], [ 588, 590 ], [ 590, 591 ], [ 591, 592 ], [ 590, 593 ], [ 590, 594 ], [ 587, 595 ], [ 595, 596 ], [ 595, 597 ], [ 597, 598 ], [ 598, 599 ], [ 597, 600 ], [ 600, 601 ], [ 600, 602 ], [ 597, 603 ], [ 603, 604 ], [ 603, 605 ], [ 587, 606 ], [ 606, 607 ], [ 607, 608 ], [ 607, 609 ], [ 606, 610 ], [ 610, 611 ], [ 611, 612 ], [ 611, 613 ], [ 587, 614 ], [ 614, 615 ], [ 615, 616 ], [ 615, 617 ], [ 617, 618 ], [ 617, 619 ], [ 614, 620 ], [ 620, 621 ], [ 621, 622 ], [ 621, 623 ], [ 623, 624 ], [ 623, 625 ], [ 587, 626 ], [ 626, 627 ], [ 627, 628 ], [ 627, 629 ], [ 629, 630 ], [ 629, 631 ], [ 585, 632 ], [ 632, 633 ], [ 549, 634 ], [ 634, 635 ], [ 634, 636 ], [ 636, 637 ], [ 637, 638 ], [ 638, 639 ], [ 638, 640 ], [ 637, 641 ], [ 641, 642 ], [ 642, 643 ], [ 636, 644 ], [ 644, 645 ], [ 645, 646 ], [ 646, 647 ], [ 647, 648 ], [ 645, 649 ], [ 649, 650 ], [ 650, 651 ], [ 644, 652 ], [ 652, 653 ], [ 653, 654 ], [ 636, 655 ], [ 655, 656 ], [ 655, 657 ], [ 636, 658 ], [ 658, 659 ], [ 659, 660 ], [ 660, 661 ], [ 661, 662 ], [ 661, 663 ], [ 660, 664 ], [ 664, 665 ], [ 664, 666 ], [ 659, 667 ], [ 667, 668 ], [ 668, 669 ], [ 668, 670 ], [ 667, 671 ], [ 671, 672 ], [ 671, 673 ], [ 634, 674 ], [ 674, 675 ], [ 549, 676 ], [ 676, 677 ], [ 676, 678 ], [ 678, 679 ], [ 679, 680 ], [ 549, 681 ], [ 681, 682 ], [ 681, 683 ], [ 683, 684 ], [ 684, 685 ], [ 686, 686 ], [ 686, 687 ], [ 687, 688 ], [ 687, 689 ], [ 686, 690 ], [ 686, 691 ], [ 691, 692 ], [ 691, 693 ], [ 549, 694 ], [ 694, 695 ], [ 694, 696 ], [ 696, 697 ], [ 697, 698 ], [ 697, 699 ], [ 699, 700 ], [ 699, 701 ], [ 696, 702 ], [ 702, 703 ], [ 702, 704 ], [ 704, 705 ], [ 704, 706 ], [ 694, 707 ], [ 707, 708 ], [ 549, 709 ], [ 838, 710 ], [ 710, 711 ], [ 710, 712 ], [ 712, 713 ], [ 710, 714 ], [ 714, 715 ], [ 710, 716 ], [ 716, 717 ], [ 710, 718 ], [ 718, 719 ], [ 718, 720 ], [ 720, 721 ], [ 721, 722 ], [ 721, 723 ], [ 720, 725 ], [ 725, 726 ], [ 725, 727 ], [ 720, 729 ], [ 729, 730 ], [ 729, 731 ], [ 720, 732 ], [ 732, 733 ], [ 733, 734 ], [ 732, 735 ], [ 732, 736 ], [ 720, 737 ], [ 737, 738 ], [ 738, 739 ], [ 739, 740 ], [ 739, 741 ], [ 737, 742 ], [ 742, 743 ], [ 742, 744 ], [ 737, 745 ], [ 745, 746 ], [ 746, 747 ], [ 737, 748 ], [ 748, 749 ], [ 749, 750 ], [ 750, 751 ], [ 750, 752 ], [ 749, 753 ], [ 718, 754 ], [ 754, 755 ], [ 710, 756 ], [ 756, 757 ], [ 756, 758 ], [ 758, 759 ], [ 759, 760 ], [ 759, 761 ], [ 761, 762 ], [ 761, 763 ], [ 758, 764 ], [ 764, 765 ], [ 764, 766 ], [ 766, 767 ], [ 766, 768 ], [ 758, 769 ], [ 769, 770 ], [ 770, 771 ], [ 770, 772 ], [ 769, 773 ], [ 758, 774 ], [ 774, 775 ], [ 758, 776 ], [ 776, 777 ], [ 777, 778 ], [ 778, 779 ], [ 778, 780 ], [ 777, 781 ], [ 781, 782 ], [ 781, 783 ], [ 776, 784 ], [ 784, 785 ], [ 785, 786 ], [ 786, 787 ], [ 786, 788 ], [ 785, 789 ], [ 784, 790 ], [ 790, 791 ], [ 791, 792 ], [ 791, 793 ], [ 790, 794 ], [ 794, 795 ], [ 794, 796 ], [ 776, 797 ], [ 797, 798 ], [ 798, 799 ], [ 799, 800 ], [ 799, 801 ], [ 798, 802 ], [ 797, 803 ], [ 803, 804 ], [ 804, 805 ], [ 804, 806 ], [ 803, 807 ], [ 807, 808 ], [ 807, 809 ], [ 756, 810 ], [ 810, 811 ], [ 756, 812 ], [ 812, 813 ], [ 710, 814 ], [ 814, 815 ], [ 814, 816 ], [ 816, 817 ], [ 817, 818 ], [ 818, 819 ], [ 819, 820 ], [ 819, 821 ], [ 818, 822 ], [ 817, 823 ], [ 823, 824 ], [ 816, 825 ], [ 825, 826 ], [ 826, 827 ], [ 827, 828 ], [ 827, 829 ], [ 826, 830 ], [ 830, 831 ], [ 830, 832 ], [ 832, 833 ], [ 832, 834 ], [ 814, 835 ], [ 835, 836 ], [ 0, 837 ], [ 837, 838 ], [ 837, 839 ] ]
[ "import java.io.*;\nimport java.util.*;\n\npublic class Main {\n static PrintWriter pw;\n static Scanner sc;\n static char[] arr;\n static int[][] dp;\n static long ceildiv(long x, long y) { return (x+y-1)/y; }\n static int mod(long x, int m) { return (int)((x%m+m)%m); }\n static void put(TreeMap<Integer, Integer> map, Integer p){if(map.containsKey(p)) map.replace(p, map.get(p)+1); else map.put(p, 1); }\n static void rem(TreeMap<Integer, Integer> map, Integer p){ if(map.get(p)==1) map.remove(p);else map.replace(p, map.get(p)-1); }\n static long gcd(long x, long y) {return y==0?x:gcd(y, x%y);}\n static int Int(boolean x){ return x?1:0; }\n public static void main(String[] args) throws Exception {\n sc = new Scanner(System.in);\n pw=new PrintWriter(System.out);\n String s=sc.nextLine();\n int max=0;\n for(int i=0; i<3;){\n int x=0;\n while(i<3 && s.charAt(i)=='R'){\n x++;\n i++;\n }\n max=Math.max(x, max);\n if(x==0)\n i++;\n }\n pw.println(max);\n pw.close();\n }\n static void printArr(int[] arr) {\n for (int i = 0; i < arr.length - 1; i++)\n pw.print(arr[i] + \" \");\n pw.println(arr[arr.length - 1]);\n }\n static void printArr(long[] arr) {\n for (int i = 0; i < arr.length - 1; i++)\n pw.print(arr[i] + \" \");\n pw.println(arr[arr.length - 1]);\n }\n static void printArr(Integer[] arr) {\n for (int i = 0; i < arr.length; i++)\n pw.print(arr[i] + \" \");\n pw.println();\n }\n static void printArr(char[] arr) {\n for (int i = 0; i < arr.length; i++)\n pw.print(arr[i]==0? '1': arr[i]);\n pw.println();\n }\n static void printArr(ArrayList<Integer> list) {\n for (int i = 0; i < list.size(); i++)\n pw.print(list.get(i)+\" \");\n pw.println();\n }\n static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public Scanner(FileReader r) {\n br = new BufferedReader(r);\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public String nextLine() throws IOException {\n return br.readLine();\n }\n\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n public int[] nextArr(int n) throws IOException {\n int[] arr = new int[n];\n for (int i = 0; i < arr.length; i++)\n arr[i] = nextInt();\n return arr;\n }\n public Integer[] nextsort(int n) throws IOException{\n Integer[] arr=new Integer[n];\n for(int i=0; i<n; i++)\n arr[i]=nextInt();\n return arr;\n }\n public Pair nextPair() throws IOException{\n return new Pair(nextInt(), nextInt());\n }\n public Pair[] nextPairArr(int n) throws IOException{\n Pair[] arr=new Pair[n];\n for(int i=0; i<n; i++)\n arr[i]=nextPair();\n return arr;\n }\n public boolean ready() throws IOException {\n return br.ready();\n }\n }\n static class Pair implements Comparable<Pair>{\n int x;\n int y;\n public Pair(int x, int y) {\n this.x=x;\n this.y=y;\n }\n public int hashCode() {\n return (this.x*1000+this.y);\n }\n public int compareTo(Pair p){\n int min1=Math.min(x, y), min2=Math.min(p.x, p.y);\n if(min1!=min2)\n return min1-min2;\n if(x==p.x)\n return y-p.y;\n return x-p.x;\n }\n public boolean equals(Object obj) {\n if (obj == null) {\n return false;\n }\n if (this.getClass() != obj.getClass()) {\n return false;\n }\n Pair p = (Pair) obj;\n return this.x==p.x && this.y==p.y;\n }\n public Pair clone(){\n return new Pair(x, y);\n }\n public String toString(){\n return this.x+\" \"+this.y;\n }\n public void add(Pair p){\n x+=p.x;\n y+=p.y;\n }\n }\n static class Union{\n int[] rep, size;\n int sets;\n public Union(int n){\n rep=new int[n];\n size=new int[n];\n sets=n;\n Arrays.fill(size, 1);\n for(int i=0; i<n; i++)\n rep[i]=i;\n }\n public void join(int x, int y){\n int a=getSet(x), b=getSet(y);\n if(a==b) return;\n sets--;\n if(size[a]>size[b]){\n rep[b]=a;\n size[a]+=size[b];\n }else{\n rep[a]=b;\n size[b]+=size[a];\n }\n }\n public int getSet(int x){\n if(rep[x]==x)\n return x;\n return rep[x]=getSet(rep[x]);\n }\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "public class Main {\n static PrintWriter pw;\n static Scanner sc;\n static char[] arr;\n static int[][] dp;\n static long ceildiv(long x, long y) { return (x+y-1)/y; }\n static int mod(long x, int m) { return (int)((x%m+m)%m); }\n static void put(TreeMap<Integer, Integer> map, Integer p){if(map.containsKey(p)) map.replace(p, map.get(p)+1); else map.put(p, 1); }\n static void rem(TreeMap<Integer, Integer> map, Integer p){ if(map.get(p)==1) map.remove(p);else map.replace(p, map.get(p)-1); }\n static long gcd(long x, long y) {return y==0?x:gcd(y, x%y);}\n static int Int(boolean x){ return x?1:0; }\n public static void main(String[] args) throws Exception {\n sc = new Scanner(System.in);\n pw=new PrintWriter(System.out);\n String s=sc.nextLine();\n int max=0;\n for(int i=0; i<3;){\n int x=0;\n while(i<3 && s.charAt(i)=='R'){\n x++;\n i++;\n }\n max=Math.max(x, max);\n if(x==0)\n i++;\n }\n pw.println(max);\n pw.close();\n }\n static void printArr(int[] arr) {\n for (int i = 0; i < arr.length - 1; i++)\n pw.print(arr[i] + \" \");\n pw.println(arr[arr.length - 1]);\n }\n static void printArr(long[] arr) {\n for (int i = 0; i < arr.length - 1; i++)\n pw.print(arr[i] + \" \");\n pw.println(arr[arr.length - 1]);\n }\n static void printArr(Integer[] arr) {\n for (int i = 0; i < arr.length; i++)\n pw.print(arr[i] + \" \");\n pw.println();\n }\n static void printArr(char[] arr) {\n for (int i = 0; i < arr.length; i++)\n pw.print(arr[i]==0? '1': arr[i]);\n pw.println();\n }\n static void printArr(ArrayList<Integer> list) {\n for (int i = 0; i < list.size(); i++)\n pw.print(list.get(i)+\" \");\n pw.println();\n }\n static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public Scanner(FileReader r) {\n br = new BufferedReader(r);\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public String nextLine() throws IOException {\n return br.readLine();\n }\n\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n public int[] nextArr(int n) throws IOException {\n int[] arr = new int[n];\n for (int i = 0; i < arr.length; i++)\n arr[i] = nextInt();\n return arr;\n }\n public Integer[] nextsort(int n) throws IOException{\n Integer[] arr=new Integer[n];\n for(int i=0; i<n; i++)\n arr[i]=nextInt();\n return arr;\n }\n public Pair nextPair() throws IOException{\n return new Pair(nextInt(), nextInt());\n }\n public Pair[] nextPairArr(int n) throws IOException{\n Pair[] arr=new Pair[n];\n for(int i=0; i<n; i++)\n arr[i]=nextPair();\n return arr;\n }\n public boolean ready() throws IOException {\n return br.ready();\n }\n }\n static class Pair implements Comparable<Pair>{\n int x;\n int y;\n public Pair(int x, int y) {\n this.x=x;\n this.y=y;\n }\n public int hashCode() {\n return (this.x*1000+this.y);\n }\n public int compareTo(Pair p){\n int min1=Math.min(x, y), min2=Math.min(p.x, p.y);\n if(min1!=min2)\n return min1-min2;\n if(x==p.x)\n return y-p.y;\n return x-p.x;\n }\n public boolean equals(Object obj) {\n if (obj == null) {\n return false;\n }\n if (this.getClass() != obj.getClass()) {\n return false;\n }\n Pair p = (Pair) obj;\n return this.x==p.x && this.y==p.y;\n }\n public Pair clone(){\n return new Pair(x, y);\n }\n public String toString(){\n return this.x+\" \"+this.y;\n }\n public void add(Pair p){\n x+=p.x;\n y+=p.y;\n }\n }\n static class Union{\n int[] rep, size;\n int sets;\n public Union(int n){\n rep=new int[n];\n size=new int[n];\n sets=n;\n Arrays.fill(size, 1);\n for(int i=0; i<n; i++)\n rep[i]=i;\n }\n public void join(int x, int y){\n int a=getSet(x), b=getSet(y);\n if(a==b) return;\n sets--;\n if(size[a]>size[b]){\n rep[b]=a;\n size[a]+=size[b];\n }else{\n rep[a]=b;\n size[b]+=size[a];\n }\n }\n public int getSet(int x){\n if(rep[x]==x)\n return x;\n return rep[x]=getSet(rep[x]);\n }\n }\n}", "Main", "static PrintWriter pw;", "pw", "static Scanner sc;", "sc", "static char[] arr;", "arr", "static int[][] dp;", "dp", "static long ceildiv(long x, long y) { return (x+y-1)/y; }", "ceildiv", "{ return (x+y-1)/y; }", "return (x+y-1)/y;", "(x+y-1)/y", "(x+y-1)", "x+y", "x", "y", "1", "y", "long x", "x", "long y", "y", "static int mod(long x, int m) { return (int)((x%m+m)%m); }", "mod", "{ return (int)((x%m+m)%m); }", "return (int)((x%m+m)%m);", "(int)((x%m+m)%m)", "(x%m+m)", "x%m", "x", "m", "m", "m", "long x", "x", "int m", "m", "static void put(TreeMap<Integer, Integer> map, Integer p){if(map.containsKey(p)) map.replace(p, map.get(p)+1); else map.put(p, 1); }", "put", "{if(map.containsKey(p)) map.replace(p, map.get(p)+1); else map.put(p, 1); }", "if(map.containsKey(p)) map.replace(p, map.get(p)+1); else map.put(p, 1);", "map.containsKey(p)", "map.containsKey", "map", "p", "map.replace(p, map.get(p)+1)", "map.replace", "map", "p", "map.get(p)+1", "map.get(p)", "map.get", "map", "p", "1", "map.put(p, 1)", "map.put", "map", "p", "1", "TreeMap<Integer, Integer> map", "map", "Integer p", "p", "static void rem(TreeMap<Integer, Integer> map, Integer p){ if(map.get(p)==1) map.remove(p);else map.replace(p, map.get(p)-1); }", "rem", "{ if(map.get(p)==1) map.remove(p);else map.replace(p, map.get(p)-1); }", "if(map.get(p)==1) map.remove(p);else map.replace(p, map.get(p)-1);", "map.get(p)==1", "map.get(p)", "map.get", "map", "p", "1", "map.remove(p)", "map.remove", "map", "p", "map.replace(p, map.get(p)-1)", "map.replace", "map", "p", "map.get(p)-1", "map.get(p)", "map.get", "map", "p", "1", "TreeMap<Integer, Integer> map", "map", "Integer p", "p", "static long gcd(long x, long y) {return y==0?x:gcd(y, x%y);}", "gcd", "{return y==0?x:gcd(y, x%y);}", "return y==0?x:gcd(y, x%y);", "y==0?x:gcd(y, x%y)", "y==0", "y", "0", "x", "gcd(y, x%y)", "gcd", "y", "x%y", "x", "y", "long x", "x", "long y", "y", "static int Int(boolean x){ return x?1:0; }", "Int", "{ return x?1:0; }", "return x?1:0;", "x?1:0", "x", "1", "0", "boolean x", "x", "public static void main(String[] args) throws Exception {\n sc = new Scanner(System.in);\n pw=new PrintWriter(System.out);\n String s=sc.nextLine();\n int max=0;\n for(int i=0; i<3;){\n int x=0;\n while(i<3 && s.charAt(i)=='R'){\n x++;\n i++;\n }\n max=Math.max(x, max);\n if(x==0)\n i++;\n }\n pw.println(max);\n pw.close();\n }", "main", "{\n sc = new Scanner(System.in);\n pw=new PrintWriter(System.out);\n String s=sc.nextLine();\n int max=0;\n for(int i=0; i<3;){\n int x=0;\n while(i<3 && s.charAt(i)=='R'){\n x++;\n i++;\n }\n max=Math.max(x, max);\n if(x==0)\n i++;\n }\n pw.println(max);\n pw.close();\n }", "sc = new Scanner(System.in)", "sc", "new Scanner(System.in)", "pw=new PrintWriter(System.out)", "pw", "new PrintWriter(System.out)", "String s=sc.nextLine();", "s", "sc.nextLine()", "sc.nextLine", "sc", "int max=0;", "max", "0", "for(int i=0; i<3;){\n int x=0;\n while(i<3 && s.charAt(i)=='R'){\n x++;\n i++;\n }\n max=Math.max(x, max);\n if(x==0)\n i++;\n }", "int i=0;", "int i=0;", "i", "0", "i<3", "i", "3", "{\n int x=0;\n while(i<3 && s.charAt(i)=='R'){\n x++;\n i++;\n }\n max=Math.max(x, max);\n if(x==0)\n i++;\n }", "{\n int x=0;\n while(i<3 && s.charAt(i)=='R'){\n x++;\n i++;\n }\n max=Math.max(x, max);\n if(x==0)\n i++;\n }", "int x=0;", "x", "0", "while(i<3 && s.charAt(i)=='R'){\n x++;\n i++;\n }", "i<3 && s.charAt(i)=='R'", "i<3", "i", "3", "s.charAt(i)=='R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "{\n x++;\n i++;\n }", "x++", "x", "i++", "i", "max=Math.max(x, max)", "max", "Math.max(x, max)", "Math.max", "Math", "x", "max", "if(x==0)\n i++;", "x==0", "x", "0", "i++", "i", "pw.println(max)", "pw.println", "pw", "max", "pw.close()", "pw.close", "pw", "String[] args", "args", "static void printArr(int[] arr) {\n for (int i = 0; i < arr.length - 1; i++)\n pw.print(arr[i] + \" \");\n pw.println(arr[arr.length - 1]);\n }", "printArr", "{\n for (int i = 0; i < arr.length - 1; i++)\n pw.print(arr[i] + \" \");\n pw.println(arr[arr.length - 1]);\n }", "for (int i = 0; i < arr.length - 1; i++)\n pw.print(arr[i] + \" \");", "int i = 0;", "int i = 0;", "i", "0", "i < arr.length - 1", "i", "arr.length - 1", "arr.length", "arr", "arr.length", "1", "i++", "i++", "i", "pw.print(arr[i] + \" \");", "pw.print(arr[i] + \" \")", "pw.print", "pw", "arr[i] + \" \"", "arr[i]", "arr", "i", "\" \"", "pw.println(arr[arr.length - 1])", "pw.println", "pw", "arr[arr.length - 1]", "arr", "arr.length - 1", "arr.length", "arr", "arr.length", "1", "int[] arr", "arr", "static void printArr(long[] arr) {\n for (int i = 0; i < arr.length - 1; i++)\n pw.print(arr[i] + \" \");\n pw.println(arr[arr.length - 1]);\n }", "printArr", "{\n for (int i = 0; i < arr.length - 1; i++)\n pw.print(arr[i] + \" \");\n pw.println(arr[arr.length - 1]);\n }", "for (int i = 0; i < arr.length - 1; i++)\n pw.print(arr[i] + \" \");", "int i = 0;", "int i = 0;", "i", "0", "i < arr.length - 1", "i", "arr.length - 1", "arr.length", "arr", "arr.length", "1", "i++", "i++", "i", "pw.print(arr[i] + \" \");", "pw.print(arr[i] + \" \")", "pw.print", "pw", "arr[i] + \" \"", "arr[i]", "arr", "i", "\" \"", "pw.println(arr[arr.length - 1])", "pw.println", "pw", "arr[arr.length - 1]", "arr", "arr.length - 1", "arr.length", "arr", "arr.length", "1", "long[] arr", "arr", "static void printArr(Integer[] arr) {\n for (int i = 0; i < arr.length; i++)\n pw.print(arr[i] + \" \");\n pw.println();\n }", "printArr", "{\n for (int i = 0; i < arr.length; i++)\n pw.print(arr[i] + \" \");\n pw.println();\n }", "for (int i = 0; i < arr.length; i++)\n pw.print(arr[i] + \" \");", "int i = 0;", "int i = 0;", "i", "0", "i < arr.length", "i", "arr.length", "arr", "arr.length", "i++", "i++", "i", "pw.print(arr[i] + \" \");", "pw.print(arr[i] + \" \")", "pw.print", "pw", "arr[i] + \" \"", "arr[i]", "arr", "i", "\" \"", "pw.println()", "pw.println", "pw", "Integer[] arr", "arr", "static void printArr(char[] arr) {\n for (int i = 0; i < arr.length; i++)\n pw.print(arr[i]==0? '1': arr[i]);\n pw.println();\n }", "printArr", "{\n for (int i = 0; i < arr.length; i++)\n pw.print(arr[i]==0? '1': arr[i]);\n pw.println();\n }", "for (int i = 0; i < arr.length; i++)\n pw.print(arr[i]==0? '1': arr[i]);", "int i = 0;", "int i = 0;", "i", "0", "i < arr.length", "i", "arr.length", "arr", "arr.length", "i++", "i++", "i", "pw.print(arr[i]==0? '1': arr[i]);", "pw.print(arr[i]==0? '1': arr[i])", "pw.print", "pw", "arr[i]==0? '1': arr[i]", "arr[i]==0", "arr[i]", "arr", "i", "0", "'1'", "arr[i]", "arr", "i", "pw.println()", "pw.println", "pw", "char[] arr", "arr", "static void printArr(ArrayList<Integer> list) {\n for (int i = 0; i < list.size(); i++)\n pw.print(list.get(i)+\" \");\n pw.println();\n }", "printArr", "{\n for (int i = 0; i < list.size(); i++)\n pw.print(list.get(i)+\" \");\n pw.println();\n }", "for (int i = 0; i < list.size(); i++)\n pw.print(list.get(i)+\" \");", "int i = 0;", "int i = 0;", "i", "0", "i < list.size()", "i", "list.size()", "list.size", "list", "i++", "i++", "i", "pw.print(list.get(i)+\" \");", "pw.print(list.get(i)+\" \")", "pw.print", "pw", "list.get(i)+\" \"", "list.get(i)", "list.get", "list", "i", "\" \"", "pw.println()", "pw.println", "pw", "ArrayList<Integer> list", "list", "static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public Scanner(FileReader r) {\n br = new BufferedReader(r);\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public String nextLine() throws IOException {\n return br.readLine();\n }\n\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n public int[] nextArr(int n) throws IOException {\n int[] arr = new int[n];\n for (int i = 0; i < arr.length; i++)\n arr[i] = nextInt();\n return arr;\n }\n public Integer[] nextsort(int n) throws IOException{\n Integer[] arr=new Integer[n];\n for(int i=0; i<n; i++)\n arr[i]=nextInt();\n return arr;\n }\n public Pair nextPair() throws IOException{\n return new Pair(nextInt(), nextInt());\n }\n public Pair[] nextPairArr(int n) throws IOException{\n Pair[] arr=new Pair[n];\n for(int i=0; i<n; i++)\n arr[i]=nextPair();\n return arr;\n }\n public boolean ready() throws IOException {\n return br.ready();\n }\n }", "Scanner", "StringTokenizer st;", "st", "BufferedReader br;", "br", "public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }", "Scanner", "{\n br = new BufferedReader(new InputStreamReader(s));\n }", "br = new BufferedReader(new InputStreamReader(s))", "br", "new BufferedReader(new InputStreamReader(s))", "InputStream s", "s", "public Scanner(FileReader r) {\n br = new BufferedReader(r);\n }", "Scanner", "{\n br = new BufferedReader(r);\n }", "br = new BufferedReader(r)", "br", "new BufferedReader(r)", "FileReader r", "r", "public String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }", "next", "{\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }", "while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());", "st == null || !st.hasMoreTokens()", "st == null", "st", "null", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }", "nextInt", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "public long nextLong() throws IOException {\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 String nextLine() throws IOException {\n return br.readLine();\n }", "nextLine", "{\n return br.readLine();\n }", "return br.readLine();", "br.readLine()", "br.readLine", "br", "public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }", "nextDouble", "{\n return Double.parseDouble(next());\n }", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "public int[] nextArr(int n) throws IOException {\n int[] arr = new int[n];\n for (int i = 0; i < arr.length; i++)\n arr[i] = nextInt();\n return arr;\n }", "nextArr", "{\n int[] arr = new int[n];\n for (int i = 0; i < arr.length; i++)\n arr[i] = nextInt();\n return arr;\n }", "int[] arr = new int[n];", "arr", "new int[n]", "n", "for (int i = 0; i < arr.length; i++)\n arr[i] = nextInt();", "int i = 0;", "int i = 0;", "i", "0", "i < arr.length", "i", "arr.length", "arr", "arr.length", "i++", "i++", "i", "arr[i] = nextInt();", "arr[i] = nextInt()", "arr[i]", "arr", "i", "nextInt()", "nextInt", "return arr;", "arr", "int n", "n", "public Integer[] nextsort(int n) throws IOException{\n Integer[] arr=new Integer[n];\n for(int i=0; i<n; i++)\n arr[i]=nextInt();\n return arr;\n }", "nextsort", "{\n Integer[] arr=new Integer[n];\n for(int i=0; i<n; i++)\n arr[i]=nextInt();\n return arr;\n }", "Integer[] arr=new Integer[n];", "arr", "new Integer[n]", "n", "for(int i=0; i<n; i++)\n arr[i]=nextInt();", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "arr[i]=nextInt();", "arr[i]=nextInt()", "arr[i]", "arr", "i", "nextInt()", "nextInt", "return arr;", "arr", "int n", "n", "public Pair nextPair() throws IOException{\n return new Pair(nextInt(), nextInt());\n }", "nextPair", "{\n return new Pair(nextInt(), nextInt());\n }", "return new Pair(nextInt(), nextInt());", "new Pair(nextInt(), nextInt())", "public Pair[] nextPairArr(int n) throws IOException{\n Pair[] arr=new Pair[n];\n for(int i=0; i<n; i++)\n arr[i]=nextPair();\n return arr;\n }", "nextPairArr", "{\n Pair[] arr=new Pair[n];\n for(int i=0; i<n; i++)\n arr[i]=nextPair();\n return arr;\n }", "Pair[] arr=new Pair[n];", "arr", "new Pair[n]", "n", "for(int i=0; i<n; i++)\n arr[i]=nextPair();", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "arr[i]=nextPair();", "arr[i]=nextPair()", "arr[i]", "arr", "i", "nextPair()", "nextPair", "return arr;", "arr", "int n", "n", "public boolean ready() throws IOException {\n return br.ready();\n }", "ready", "{\n return br.ready();\n }", "return br.ready();", "br.ready()", "br.ready", "br", "static class Pair implements Comparable<Pair>{\n int x;\n int y;\n public Pair(int x, int y) {\n this.x=x;\n this.y=y;\n }\n public int hashCode() {\n return (this.x*1000+this.y);\n }\n public int compareTo(Pair p){\n int min1=Math.min(x, y), min2=Math.min(p.x, p.y);\n if(min1!=min2)\n return min1-min2;\n if(x==p.x)\n return y-p.y;\n return x-p.x;\n }\n public boolean equals(Object obj) {\n if (obj == null) {\n return false;\n }\n if (this.getClass() != obj.getClass()) {\n return false;\n }\n Pair p = (Pair) obj;\n return this.x==p.x && this.y==p.y;\n }\n public Pair clone(){\n return new Pair(x, y);\n }\n public String toString(){\n return this.x+\" \"+this.y;\n }\n public void add(Pair p){\n x+=p.x;\n y+=p.y;\n }\n }", "Pair", "int x;", "x", "int y;", "y", "public Pair(int x, int y) {\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 hashCode() {\n return (this.x*1000+this.y);\n }", "hashCode", "{\n return (this.x*1000+this.y);\n }", "return (this.x*1000+this.y);", "(this.x*1000+this.y)", "this.x*1000", "this.x", "this", "this.x", "1000", "this.y", "this", "this.y", "public int compareTo(Pair p){\n int min1=Math.min(x, y), min2=Math.min(p.x, p.y);\n if(min1!=min2)\n return min1-min2;\n if(x==p.x)\n return y-p.y;\n return x-p.x;\n }", "compareTo", "{\n int min1=Math.min(x, y), min2=Math.min(p.x, p.y);\n if(min1!=min2)\n return min1-min2;\n if(x==p.x)\n return y-p.y;\n return x-p.x;\n }", "int min1=Math.min(x, y)", "min1", "Math.min(x, y)", "Math.min", "Math", "x", "y", "min2=Math.min(p.x, p.y);", "min2", "Math.min(p.x, p.y)", "Math.min", "Math", "p.x", "p", "p.x", "p.y", "p", "p.y", "if(min1!=min2)\n return min1-min2;", "min1!=min2", "min1", "min2", "return min1-min2;", "min1-min2", "min1", "min2", "if(x==p.x)\n return y-p.y;", "x==p.x", "x", "p.x", "p", "p.x", "return y-p.y;", "y-p.y", "y", "p.y", "p", "p.y", "return x-p.x;", "x-p.x", "x", "p.x", "p", "p.x", "Pair p", "p", "public boolean equals(Object obj) {\n if (obj == null) {\n return false;\n }\n if (this.getClass() != obj.getClass()) {\n return false;\n }\n Pair p = (Pair) obj;\n return this.x==p.x && this.y==p.y;\n }", "equals", "{\n if (obj == null) {\n return false;\n }\n if (this.getClass() != obj.getClass()) {\n return false;\n }\n Pair p = (Pair) obj;\n return this.x==p.x && this.y==p.y;\n }", "if (obj == null) {\n return false;\n }", "obj == null", "obj", "null", "{\n return false;\n }", "return false;", "false", "if (this.getClass() != obj.getClass()) {\n return false;\n }", "this.getClass() != obj.getClass()", "this.getClass()", "this.getClass", "this", "obj.getClass()", "obj.getClass", "obj", "{\n return false;\n }", "return false;", "false", "Pair p = (Pair) obj;", "p", "(Pair) obj", "return this.x==p.x && this.y==p.y;", "this.x==p.x && this.y==p.y", "this.x==p.x", "this.x", "this", "this.x", "p.x", "p", "p.x", "this.y==p.y", "this.y", "this", "this.y", "p.y", "p", "p.y", "Object obj", "obj", "public Pair clone(){\n return new Pair(x, y);\n }", "clone", "{\n return new Pair(x, y);\n }", "return new Pair(x, y);", "new Pair(x, y)", "public String toString(){\n return this.x+\" \"+this.y;\n }", "toString", "{\n return this.x+\" \"+this.y;\n }", "return this.x+\" \"+this.y;", "this.x+\" \"+this.y", "this.x+\" \"+this.y", "this.x", "this", "this.x", "\" \"", "this.y", "this", "this.y", "public void add(Pair p){\n x+=p.x;\n y+=p.y;\n }", "add", "{\n x+=p.x;\n y+=p.y;\n }", "x+=p.x", "x", "p.x", "p", "p.x", "y+=p.y", "y", "p.y", "p", "p.y", "Pair p", "p", "Comparable", "static class Union{\n int[] rep, size;\n int sets;\n public Union(int n){\n rep=new int[n];\n size=new int[n];\n sets=n;\n Arrays.fill(size, 1);\n for(int i=0; i<n; i++)\n rep[i]=i;\n }\n public void join(int x, int y){\n int a=getSet(x), b=getSet(y);\n if(a==b) return;\n sets--;\n if(size[a]>size[b]){\n rep[b]=a;\n size[a]+=size[b];\n }else{\n rep[a]=b;\n size[b]+=size[a];\n }\n }\n public int getSet(int x){\n if(rep[x]==x)\n return x;\n return rep[x]=getSet(rep[x]);\n }\n }", "Union", "int[] rep", "rep", "size;", "size", "int sets;", "sets", "public Union(int n){\n rep=new int[n];\n size=new int[n];\n sets=n;\n Arrays.fill(size, 1);\n for(int i=0; i<n; i++)\n rep[i]=i;\n }", "Union", "{\n rep=new int[n];\n size=new int[n];\n sets=n;\n Arrays.fill(size, 1);\n for(int i=0; i<n; i++)\n rep[i]=i;\n }", "rep=new int[n]", "rep", "new int[n]", "n", "size=new int[n]", "size", "new int[n]", "n", "sets=n", "sets", "n", "Arrays.fill(size, 1)", "Arrays.fill", "Arrays", "size", "1", "for(int i=0; i<n; i++)\n rep[i]=i;", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "rep[i]=i;", "rep[i]=i", "rep[i]", "rep", "i", "i", "int n", "n", "public void join(int x, int y){\n int a=getSet(x), b=getSet(y);\n if(a==b) return;\n sets--;\n if(size[a]>size[b]){\n rep[b]=a;\n size[a]+=size[b];\n }else{\n rep[a]=b;\n size[b]+=size[a];\n }\n }", "join", "{\n int a=getSet(x), b=getSet(y);\n if(a==b) return;\n sets--;\n if(size[a]>size[b]){\n rep[b]=a;\n size[a]+=size[b];\n }else{\n rep[a]=b;\n size[b]+=size[a];\n }\n }", "int a=getSet(x)", "a", "getSet(x)", "getSet", "x", "b=getSet(y);", "b", "getSet(y)", "getSet", "y", "if(a==b) return;", "a==b", "a", "b", "return;", "sets--", "sets", "if(size[a]>size[b]){\n rep[b]=a;\n size[a]+=size[b];\n }else{\n rep[a]=b;\n size[b]+=size[a];\n }", "size[a]>size[b]", "size[a]", "size", "a", "size[b]", "size", "b", "{\n rep[b]=a;\n size[a]+=size[b];\n }", "rep[b]=a", "rep[b]", "rep", "b", "a", "size[a]+=size[b]", "size[a]", "size", "a", "size[b]", "size", "b", "{\n rep[a]=b;\n size[b]+=size[a];\n }", "rep[a]=b", "rep[a]", "rep", "a", "b", "size[b]+=size[a]", "size[b]", "size", "b", "size[a]", "size", "a", "int x", "x", "int y", "y", "public int getSet(int x){\n if(rep[x]==x)\n return x;\n return rep[x]=getSet(rep[x]);\n }", "getSet", "{\n if(rep[x]==x)\n return x;\n return rep[x]=getSet(rep[x]);\n }", "if(rep[x]==x)\n return x;", "rep[x]==x", "rep[x]", "rep", "x", "x", "return x;", "x", "return rep[x]=getSet(rep[x]);", "rep[x]=getSet(rep[x])", "rep[x]", "rep", "x", "getSet(rep[x])", "getSet", "rep[x]", "rep", "x", "int x", "x", "public class Main {\n static PrintWriter pw;\n static Scanner sc;\n static char[] arr;\n static int[][] dp;\n static long ceildiv(long x, long y) { return (x+y-1)/y; }\n static int mod(long x, int m) { return (int)((x%m+m)%m); }\n static void put(TreeMap<Integer, Integer> map, Integer p){if(map.containsKey(p)) map.replace(p, map.get(p)+1); else map.put(p, 1); }\n static void rem(TreeMap<Integer, Integer> map, Integer p){ if(map.get(p)==1) map.remove(p);else map.replace(p, map.get(p)-1); }\n static long gcd(long x, long y) {return y==0?x:gcd(y, x%y);}\n static int Int(boolean x){ return x?1:0; }\n public static void main(String[] args) throws Exception {\n sc = new Scanner(System.in);\n pw=new PrintWriter(System.out);\n String s=sc.nextLine();\n int max=0;\n for(int i=0; i<3;){\n int x=0;\n while(i<3 && s.charAt(i)=='R'){\n x++;\n i++;\n }\n max=Math.max(x, max);\n if(x==0)\n i++;\n }\n pw.println(max);\n pw.close();\n }\n static void printArr(int[] arr) {\n for (int i = 0; i < arr.length - 1; i++)\n pw.print(arr[i] + \" \");\n pw.println(arr[arr.length - 1]);\n }\n static void printArr(long[] arr) {\n for (int i = 0; i < arr.length - 1; i++)\n pw.print(arr[i] + \" \");\n pw.println(arr[arr.length - 1]);\n }\n static void printArr(Integer[] arr) {\n for (int i = 0; i < arr.length; i++)\n pw.print(arr[i] + \" \");\n pw.println();\n }\n static void printArr(char[] arr) {\n for (int i = 0; i < arr.length; i++)\n pw.print(arr[i]==0? '1': arr[i]);\n pw.println();\n }\n static void printArr(ArrayList<Integer> list) {\n for (int i = 0; i < list.size(); i++)\n pw.print(list.get(i)+\" \");\n pw.println();\n }\n static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public Scanner(FileReader r) {\n br = new BufferedReader(r);\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public String nextLine() throws IOException {\n return br.readLine();\n }\n\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n public int[] nextArr(int n) throws IOException {\n int[] arr = new int[n];\n for (int i = 0; i < arr.length; i++)\n arr[i] = nextInt();\n return arr;\n }\n public Integer[] nextsort(int n) throws IOException{\n Integer[] arr=new Integer[n];\n for(int i=0; i<n; i++)\n arr[i]=nextInt();\n return arr;\n }\n public Pair nextPair() throws IOException{\n return new Pair(nextInt(), nextInt());\n }\n public Pair[] nextPairArr(int n) throws IOException{\n Pair[] arr=new Pair[n];\n for(int i=0; i<n; i++)\n arr[i]=nextPair();\n return arr;\n }\n public boolean ready() throws IOException {\n return br.ready();\n }\n }\n static class Pair implements Comparable<Pair>{\n int x;\n int y;\n public Pair(int x, int y) {\n this.x=x;\n this.y=y;\n }\n public int hashCode() {\n return (this.x*1000+this.y);\n }\n public int compareTo(Pair p){\n int min1=Math.min(x, y), min2=Math.min(p.x, p.y);\n if(min1!=min2)\n return min1-min2;\n if(x==p.x)\n return y-p.y;\n return x-p.x;\n }\n public boolean equals(Object obj) {\n if (obj == null) {\n return false;\n }\n if (this.getClass() != obj.getClass()) {\n return false;\n }\n Pair p = (Pair) obj;\n return this.x==p.x && this.y==p.y;\n }\n public Pair clone(){\n return new Pair(x, y);\n }\n public String toString(){\n return this.x+\" \"+this.y;\n }\n public void add(Pair p){\n x+=p.x;\n y+=p.y;\n }\n }\n static class Union{\n int[] rep, size;\n int sets;\n public Union(int n){\n rep=new int[n];\n size=new int[n];\n sets=n;\n Arrays.fill(size, 1);\n for(int i=0; i<n; i++)\n rep[i]=i;\n }\n public void join(int x, int y){\n int a=getSet(x), b=getSet(y);\n if(a==b) return;\n sets--;\n if(size[a]>size[b]){\n rep[b]=a;\n size[a]+=size[b];\n }else{\n rep[a]=b;\n size[b]+=size[a];\n }\n }\n public int getSet(int x){\n if(rep[x]==x)\n return x;\n return rep[x]=getSet(rep[x]);\n }\n }\n}", "public class Main {\n static PrintWriter pw;\n static Scanner sc;\n static char[] arr;\n static int[][] dp;\n static long ceildiv(long x, long y) { return (x+y-1)/y; }\n static int mod(long x, int m) { return (int)((x%m+m)%m); }\n static void put(TreeMap<Integer, Integer> map, Integer p){if(map.containsKey(p)) map.replace(p, map.get(p)+1); else map.put(p, 1); }\n static void rem(TreeMap<Integer, Integer> map, Integer p){ if(map.get(p)==1) map.remove(p);else map.replace(p, map.get(p)-1); }\n static long gcd(long x, long y) {return y==0?x:gcd(y, x%y);}\n static int Int(boolean x){ return x?1:0; }\n public static void main(String[] args) throws Exception {\n sc = new Scanner(System.in);\n pw=new PrintWriter(System.out);\n String s=sc.nextLine();\n int max=0;\n for(int i=0; i<3;){\n int x=0;\n while(i<3 && s.charAt(i)=='R'){\n x++;\n i++;\n }\n max=Math.max(x, max);\n if(x==0)\n i++;\n }\n pw.println(max);\n pw.close();\n }\n static void printArr(int[] arr) {\n for (int i = 0; i < arr.length - 1; i++)\n pw.print(arr[i] + \" \");\n pw.println(arr[arr.length - 1]);\n }\n static void printArr(long[] arr) {\n for (int i = 0; i < arr.length - 1; i++)\n pw.print(arr[i] + \" \");\n pw.println(arr[arr.length - 1]);\n }\n static void printArr(Integer[] arr) {\n for (int i = 0; i < arr.length; i++)\n pw.print(arr[i] + \" \");\n pw.println();\n }\n static void printArr(char[] arr) {\n for (int i = 0; i < arr.length; i++)\n pw.print(arr[i]==0? '1': arr[i]);\n pw.println();\n }\n static void printArr(ArrayList<Integer> list) {\n for (int i = 0; i < list.size(); i++)\n pw.print(list.get(i)+\" \");\n pw.println();\n }\n static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public Scanner(FileReader r) {\n br = new BufferedReader(r);\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public String nextLine() throws IOException {\n return br.readLine();\n }\n\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n public int[] nextArr(int n) throws IOException {\n int[] arr = new int[n];\n for (int i = 0; i < arr.length; i++)\n arr[i] = nextInt();\n return arr;\n }\n public Integer[] nextsort(int n) throws IOException{\n Integer[] arr=new Integer[n];\n for(int i=0; i<n; i++)\n arr[i]=nextInt();\n return arr;\n }\n public Pair nextPair() throws IOException{\n return new Pair(nextInt(), nextInt());\n }\n public Pair[] nextPairArr(int n) throws IOException{\n Pair[] arr=new Pair[n];\n for(int i=0; i<n; i++)\n arr[i]=nextPair();\n return arr;\n }\n public boolean ready() throws IOException {\n return br.ready();\n }\n }\n static class Pair implements Comparable<Pair>{\n int x;\n int y;\n public Pair(int x, int y) {\n this.x=x;\n this.y=y;\n }\n public int hashCode() {\n return (this.x*1000+this.y);\n }\n public int compareTo(Pair p){\n int min1=Math.min(x, y), min2=Math.min(p.x, p.y);\n if(min1!=min2)\n return min1-min2;\n if(x==p.x)\n return y-p.y;\n return x-p.x;\n }\n public boolean equals(Object obj) {\n if (obj == null) {\n return false;\n }\n if (this.getClass() != obj.getClass()) {\n return false;\n }\n Pair p = (Pair) obj;\n return this.x==p.x && this.y==p.y;\n }\n public Pair clone(){\n return new Pair(x, y);\n }\n public String toString(){\n return this.x+\" \"+this.y;\n }\n public void add(Pair p){\n x+=p.x;\n y+=p.y;\n }\n }\n static class Union{\n int[] rep, size;\n int sets;\n public Union(int n){\n rep=new int[n];\n size=new int[n];\n sets=n;\n Arrays.fill(size, 1);\n for(int i=0; i<n; i++)\n rep[i]=i;\n }\n public void join(int x, int y){\n int a=getSet(x), b=getSet(y);\n if(a==b) return;\n sets--;\n if(size[a]>size[b]){\n rep[b]=a;\n size[a]+=size[b];\n }else{\n rep[a]=b;\n size[b]+=size[a];\n }\n }\n public int getSet(int x){\n if(rep[x]==x)\n return x;\n return rep[x]=getSet(rep[x]);\n }\n }\n}", "Main" ]
import java.io.*; import java.util.*; public class Main { static PrintWriter pw; static Scanner sc; static char[] arr; static int[][] dp; static long ceildiv(long x, long y) { return (x+y-1)/y; } static int mod(long x, int m) { return (int)((x%m+m)%m); } static void put(TreeMap<Integer, Integer> map, Integer p){if(map.containsKey(p)) map.replace(p, map.get(p)+1); else map.put(p, 1); } static void rem(TreeMap<Integer, Integer> map, Integer p){ if(map.get(p)==1) map.remove(p);else map.replace(p, map.get(p)-1); } static long gcd(long x, long y) {return y==0?x:gcd(y, x%y);} static int Int(boolean x){ return x?1:0; } public static void main(String[] args) throws Exception { sc = new Scanner(System.in); pw=new PrintWriter(System.out); String s=sc.nextLine(); int max=0; for(int i=0; i<3;){ int x=0; while(i<3 && s.charAt(i)=='R'){ x++; i++; } max=Math.max(x, max); if(x==0) i++; } pw.println(max); pw.close(); } static void printArr(int[] arr) { for (int i = 0; i < arr.length - 1; i++) pw.print(arr[i] + " "); pw.println(arr[arr.length - 1]); } static void printArr(long[] arr) { for (int i = 0; i < arr.length - 1; i++) pw.print(arr[i] + " "); pw.println(arr[arr.length - 1]); } static void printArr(Integer[] arr) { for (int i = 0; i < arr.length; i++) pw.print(arr[i] + " "); pw.println(); } static void printArr(char[] arr) { for (int i = 0; i < arr.length; i++) pw.print(arr[i]==0? '1': arr[i]); pw.println(); } static void printArr(ArrayList<Integer> list) { for (int i = 0; i < list.size(); i++) pw.print(list.get(i)+" "); pw.println(); } static class Scanner { StringTokenizer st; BufferedReader br; public Scanner(InputStream s) { br = new BufferedReader(new InputStreamReader(s)); } public Scanner(FileReader r) { br = new BufferedReader(r); } 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 double nextDouble() throws IOException { return Double.parseDouble(next()); } public int[] nextArr(int n) throws IOException { int[] arr = new int[n]; for (int i = 0; i < arr.length; i++) arr[i] = nextInt(); return arr; } public Integer[] nextsort(int n) throws IOException{ Integer[] arr=new Integer[n]; for(int i=0; i<n; i++) arr[i]=nextInt(); return arr; } public Pair nextPair() throws IOException{ return new Pair(nextInt(), nextInt()); } public Pair[] nextPairArr(int n) throws IOException{ Pair[] arr=new Pair[n]; for(int i=0; i<n; i++) arr[i]=nextPair(); return arr; } public boolean ready() throws IOException { return br.ready(); } } static class Pair implements Comparable<Pair>{ int x; int y; public Pair(int x, int y) { this.x=x; this.y=y; } public int hashCode() { return (this.x*1000+this.y); } public int compareTo(Pair p){ int min1=Math.min(x, y), min2=Math.min(p.x, p.y); if(min1!=min2) return min1-min2; if(x==p.x) return y-p.y; return x-p.x; } public boolean equals(Object obj) { if (obj == null) { return false; } if (this.getClass() != obj.getClass()) { return false; } Pair p = (Pair) obj; return this.x==p.x && this.y==p.y; } public Pair clone(){ return new Pair(x, y); } public String toString(){ return this.x+" "+this.y; } public void add(Pair p){ x+=p.x; y+=p.y; } } static class Union{ int[] rep, size; int sets; public Union(int n){ rep=new int[n]; size=new int[n]; sets=n; Arrays.fill(size, 1); for(int i=0; i<n; i++) rep[i]=i; } public void join(int x, int y){ int a=getSet(x), b=getSet(y); if(a==b) return; sets--; if(size[a]>size[b]){ rep[b]=a; size[a]+=size[b]; }else{ rep[a]=b; size[b]+=size[a]; } } public int getSet(int x){ if(rep[x]==x) return x; return rep[x]=getSet(rep[x]); } } }
[ 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, 28, 13, 4, 18, 13, 30, 30, 14, 2, 13, 17, 30, 0, 13, 4, 18, 13, 13, 13, 0, 13, 17, 30, 40, 13, 0, 13, 4, 18, 13, 13, 13, 4, 18, 18, 13, 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 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 11, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 26, 31 ], [ 32, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 33, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 40, 44 ], [ 37, 45 ], [ 45, 46 ], [ 45, 47 ], [ 33, 48 ], [ 48, 49 ], [ 49, 50 ], [ 11, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 53, 57 ], [ 11, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 9, 64 ], [ 64, 65 ] ]
[ "import java.util.*;\nimport java.io.*;\nclass Main{\n public static void main(String args[]){\n Scanner sc=new Scanner(System.in);\n String record=sc.next();\n int cnt=0;\n int mval=0;\n for(char ch:record.toCharArray()){\n if(ch=='S'){\n mval=Math.max(mval,cnt);\n cnt=0;\n }else{\n cnt++;\n }\n }\n mval=Math.max(mval,cnt);\n System.out.println(mval);\n }\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "class Main{\n public static void main(String args[]){\n Scanner sc=new Scanner(System.in);\n String record=sc.next();\n int cnt=0;\n int mval=0;\n for(char ch:record.toCharArray()){\n if(ch=='S'){\n mval=Math.max(mval,cnt);\n cnt=0;\n }else{\n cnt++;\n }\n }\n mval=Math.max(mval,cnt);\n System.out.println(mval);\n }\n}", "Main", "public static void main(String args[]){\n Scanner sc=new Scanner(System.in);\n String record=sc.next();\n int cnt=0;\n int mval=0;\n for(char ch:record.toCharArray()){\n if(ch=='S'){\n mval=Math.max(mval,cnt);\n cnt=0;\n }else{\n cnt++;\n }\n }\n mval=Math.max(mval,cnt);\n System.out.println(mval);\n }", "main", "{\n Scanner sc=new Scanner(System.in);\n String record=sc.next();\n int cnt=0;\n int mval=0;\n for(char ch:record.toCharArray()){\n if(ch=='S'){\n mval=Math.max(mval,cnt);\n cnt=0;\n }else{\n cnt++;\n }\n }\n mval=Math.max(mval,cnt);\n System.out.println(mval);\n }", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "String record=sc.next();", "record", "sc.next()", "sc.next", "sc", "int cnt=0;", "cnt", "0", "int mval=0;", "mval", "0", "for(char ch:record.toCharArray()){\n if(ch=='S'){\n mval=Math.max(mval,cnt);\n cnt=0;\n }else{\n cnt++;\n }\n }", "char ch", "record.toCharArray()", "record.toCharArray", "record", "{\n if(ch=='S'){\n mval=Math.max(mval,cnt);\n cnt=0;\n }else{\n cnt++;\n }\n }", "{\n if(ch=='S'){\n mval=Math.max(mval,cnt);\n cnt=0;\n }else{\n cnt++;\n }\n }", "if(ch=='S'){\n mval=Math.max(mval,cnt);\n cnt=0;\n }else{\n cnt++;\n }", "ch=='S'", "ch", "'S'", "{\n mval=Math.max(mval,cnt);\n cnt=0;\n }", "mval=Math.max(mval,cnt)", "mval", "Math.max(mval,cnt)", "Math.max", "Math", "mval", "cnt", "cnt=0", "cnt", "0", "{\n cnt++;\n }", "cnt++", "cnt", "mval=Math.max(mval,cnt)", "mval", "Math.max(mval,cnt)", "Math.max", "Math", "mval", "cnt", "System.out.println(mval)", "System.out.println", "System.out", "System", "System.out", "mval", "String args[]", "args" ]
import java.util.*; import java.io.*; class Main{ public static void main(String args[]){ Scanner sc=new Scanner(System.in); String record=sc.next(); int cnt=0; int mval=0; for(char ch:record.toCharArray()){ if(ch=='S'){ mval=Math.max(mval,cnt); cnt=0; }else{ cnt++; } } mval=Math.max(mval,cnt); System.out.println(mval); } }
[ 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, 14, 2, 4, 18, 13, 17, 4, 18, 13, 17, 30, 0, 13, 17, 14, 4, 18, 13, 17, 0, 13, 17, 14, 4, 18, 13, 17, 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 ], [ 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 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 27, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 26, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 26, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 40, 45 ], [ 45, 46 ], [ 45, 47 ], [ 40, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 48, 53 ], [ 53, 54 ], [ 53, 55 ], [ 11, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 11, 60 ], [ 60, 61 ], [ 61, 62 ], [ 9, 63 ], [ 63, 64 ] ]
[ "import java.util.*;\nimport java.io.*;\n\nclass Main\n{\n public static void main(String[] args) throws IOException{\n PrintWriter out = new PrintWriter(System.out);\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n // StringTokenizer st = new StringTokenizer(br.readLine());\n\n String S = br.readLine();\n int ans = 0;\n if (S.equals(\"RRS\") || S.equals(\"SRR\")) {\n ans = 2;\n }\n else if(S.equals(\"RRR\"))\n ans = 3;\n else if(S.contains(\"R\"))\n ans = 1;\n\n out.println(ans);\n \n\n \n out.close();\n }\n\n \n\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "class Main\n{\n public static void main(String[] args) throws IOException{\n PrintWriter out = new PrintWriter(System.out);\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n // StringTokenizer st = new StringTokenizer(br.readLine());\n\n String S = br.readLine();\n int ans = 0;\n if (S.equals(\"RRS\") || S.equals(\"SRR\")) {\n ans = 2;\n }\n else if(S.equals(\"RRR\"))\n ans = 3;\n else if(S.contains(\"R\"))\n ans = 1;\n\n out.println(ans);\n \n\n \n out.close();\n }\n\n \n\n}", "Main", "public static void main(String[] args) throws IOException{\n PrintWriter out = new PrintWriter(System.out);\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n // StringTokenizer st = new StringTokenizer(br.readLine());\n\n String S = br.readLine();\n int ans = 0;\n if (S.equals(\"RRS\") || S.equals(\"SRR\")) {\n ans = 2;\n }\n else if(S.equals(\"RRR\"))\n ans = 3;\n else if(S.contains(\"R\"))\n ans = 1;\n\n out.println(ans);\n \n\n \n out.close();\n }", "main", "{\n PrintWriter out = new PrintWriter(System.out);\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n // StringTokenizer st = new StringTokenizer(br.readLine());\n\n String S = br.readLine();\n int ans = 0;\n if (S.equals(\"RRS\") || S.equals(\"SRR\")) {\n ans = 2;\n }\n else if(S.equals(\"RRR\"))\n ans = 3;\n else if(S.contains(\"R\"))\n ans = 1;\n\n out.println(ans);\n \n\n \n out.close();\n }", "PrintWriter out = new PrintWriter(System.out);", "out", "new PrintWriter(System.out)", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String S = br.readLine();", "S", "br.readLine()", "br.readLine", "br", "int ans = 0;", "ans", "0", "if (S.equals(\"RRS\") || S.equals(\"SRR\")) {\n ans = 2;\n }\n else if(S.equals(\"RRR\"))\n ans = 3;\n else if(S.contains(\"R\"))\n ans = 1;", "S.equals(\"RRS\") || S.equals(\"SRR\")", "S.equals(\"RRS\")", "S.equals", "S", "\"RRS\"", "S.equals(\"SRR\")", "S.equals", "S", "\"SRR\"", "{\n ans = 2;\n }", "ans = 2", "ans", "2", "if(S.equals(\"RRR\"))\n ans = 3;\n else if(S.contains(\"R\"))\n ans = 1;", "S.equals(\"RRR\")", "S.equals", "S", "\"RRR\"", "ans = 3", "ans", "3", "if(S.contains(\"R\"))\n ans = 1;", "S.contains(\"R\")", "S.contains", "S", "\"R\"", "ans = 1", "ans", "1", "out.println(ans)", "out.println", "out", "ans", "out.close()", "out.close", "out", "String[] args", "args" ]
import java.util.*; import java.io.*; class Main { public static void main(String[] args) throws IOException{ PrintWriter out = new PrintWriter(System.out); BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); // StringTokenizer st = new StringTokenizer(br.readLine()); String S = br.readLine(); int ans = 0; if (S.equals("RRS") || S.equals("SRR")) { ans = 2; } else if(S.equals("RRR")) ans = 3; else if(S.contains("R")) ans = 1; out.println(ans); out.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 20, 41, 13, 20, 12, 13, 30, 4, 18, 13, 12, 13, 30, 4, 18, 13, 13, 23, 13, 12, 13, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 13, 4, 13, 17, 12, 13, 30, 29, 4, 13, 4, 13, 17, 12, 13, 30, 41, 13, 4, 13, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 4, 18, 13, 4, 18, 13, 4, 18, 13, 13, 29, 13, 12, 13, 30, 41, 13, 4, 13, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 4, 18, 13, 4, 18, 13, 4, 18, 13, 13, 29, 13, 12, 13, 30, 41, 13, 4, 18, 13, 13, 14, 2, 13, 13, 30, 29, 4, 18, 13, 13, 13, 14, 2, 13, 13, 30, 29, 4, 18, 13, 13, 13, 30, 37, 20, 23, 13, 23, 13, 12, 13, 30, 41, 13, 4, 18, 13, 13, 29, 20, 23, 13, 23, 13, 12, 13, 30, 4, 18, 13, 17, 17, 4, 18, 13, 17, 17, 4, 18, 13, 17, 17, 4, 13, 4, 13, 23, 13, 12, 13, 30, 41, 13, 4, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 4, 18, 4, 18, 13, 13, 17, 30, 40, 13, 30, 0, 13, 4, 18, 13, 13, 13, 0, 13, 17, 0, 13, 4, 18, 13, 13, 13, 4, 13, 13, 6, 13, 41, 13, 20, 41, 13, 17, 41, 13, 41, 13, 12, 13, 30, 41, 13, 20, 38, 5, 13, 30, 30, 42, 2, 0, 13, 4, 18, 13, 17, 30, 4, 18, 13, 13, 0, 13, 4, 18, 13, 12, 13, 30, 29, 2, 13, 13, 12, 13, 30, 14, 4, 13, 30, 29, 4, 18, 13, 40, 13, 30, 37, 20, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 388, 11 ], [ 388, 12 ], [ 12, 13 ], [ 12, 14 ], [ 388, 15 ], [ 15, 16 ], [ 15, 17 ], [ 388, 18 ], [ 18, 19 ], [ 18, 20 ], [ 388, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 388, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 27, 34 ], [ 34, 35 ], [ 388, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 38, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 36, 51 ], [ 51, 52 ], [ 388, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 388, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 388, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 74, 75 ], [ 388, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 83, 84 ], [ 388, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 92, 93 ], [ 388, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 98, 102 ], [ 388, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 107, 111 ], [ 388, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 117, 118 ], [ 114, 119 ], [ 119, 120 ], [ 119, 121 ], [ 114, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 122, 127 ], [ 127, 128 ], [ 127, 129 ], [ 129, 130 ], [ 130, 131 ], [ 122, 132 ], [ 132, 133 ], [ 133, 134 ], [ 122, 135 ], [ 136, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 137, 140 ], [ 140, 141 ], [ 141, 142 ], [ 140, 143 ], [ 143, 144 ], [ 144, 145 ], [ 143, 146 ], [ 114, 147 ], [ 147, 148 ], [ 388, 149 ], [ 149, 150 ], [ 149, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 154, 155 ], [ 151, 156 ], [ 156, 157 ], [ 156, 158 ], [ 151, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 161, 163 ], [ 159, 164 ], [ 164, 165 ], [ 164, 166 ], [ 166, 167 ], [ 167, 168 ], [ 159, 169 ], [ 169, 170 ], [ 170, 171 ], [ 159, 172 ], [ 173, 173 ], [ 173, 174 ], [ 174, 175 ], [ 175, 176 ], [ 174, 177 ], [ 177, 178 ], [ 178, 179 ], [ 177, 180 ], [ 180, 181 ], [ 181, 182 ], [ 180, 183 ], [ 151, 184 ], [ 184, 185 ], [ 388, 186 ], [ 186, 187 ], [ 186, 188 ], [ 188, 189 ], [ 189, 190 ], [ 189, 191 ], [ 191, 192 ], [ 192, 193 ], [ 191, 194 ], [ 188, 195 ], [ 195, 196 ], [ 196, 197 ], [ 196, 198 ], [ 195, 199 ], [ 199, 200 ], [ 200, 201 ], [ 201, 202 ], [ 202, 203 ], [ 201, 204 ], [ 201, 205 ], [ 195, 206 ], [ 206, 207 ], [ 207, 208 ], [ 207, 209 ], [ 206, 210 ], [ 210, 211 ], [ 211, 212 ], [ 212, 213 ], [ 213, 214 ], [ 212, 215 ], [ 212, 216 ], [ 206, 217 ], [ 217, 218 ], [ 218, 219 ], [ 186, 220 ], [ 220, 221 ], [ 186, 222 ], [ 222, 223 ], [ 388, 224 ], [ 224, 225 ], [ 224, 226 ], [ 226, 227 ], [ 227, 228 ], [ 227, 229 ], [ 229, 230 ], [ 230, 231 ], [ 229, 232 ], [ 226, 233 ], [ 233, 234 ], [ 224, 235 ], [ 235, 236 ], [ 224, 237 ], [ 237, 238 ], [ 388, 239 ], [ 239, 240 ], [ 239, 241 ], [ 241, 242 ], [ 242, 243 ], [ 243, 244 ], [ 242, 245 ], [ 242, 246 ], [ 241, 247 ], [ 247, 248 ], [ 248, 249 ], [ 247, 250 ], [ 247, 251 ], [ 241, 252 ], [ 252, 253 ], [ 253, 254 ], [ 252, 255 ], [ 252, 256 ], [ 241, 257 ], [ 257, 258 ], [ 241, 259 ], [ 259, 260 ], [ 239, 261 ], [ 261, 262 ], [ 388, 263 ], [ 263, 264 ], [ 263, 265 ], [ 265, 266 ], [ 266, 267 ], [ 266, 268 ], [ 268, 269 ], [ 265, 270 ], [ 270, 271 ], [ 270, 272 ], [ 265, 273 ], [ 273, 274 ], [ 273, 275 ], [ 265, 276 ], [ 276, 277 ], [ 277, 278 ], [ 278, 279 ], [ 278, 280 ], [ 276, 281 ], [ 281, 282 ], [ 281, 283 ], [ 283, 284 ], [ 284, 285 ], [ 276, 286 ], [ 286, 287 ], [ 287, 288 ], [ 276, 289 ], [ 290, 290 ], [ 290, 291 ], [ 291, 292 ], [ 292, 293 ], [ 293, 294 ], [ 294, 295 ], [ 295, 296 ], [ 294, 297 ], [ 292, 298 ], [ 291, 299 ], [ 299, 300 ], [ 300, 301 ], [ 291, 302 ], [ 302, 303 ], [ 303, 304 ], [ 303, 305 ], [ 305, 306 ], [ 306, 307 ], [ 305, 308 ], [ 305, 309 ], [ 302, 310 ], [ 310, 311 ], [ 310, 312 ], [ 265, 313 ], [ 313, 314 ], [ 313, 315 ], [ 315, 316 ], [ 316, 317 ], [ 315, 318 ], [ 315, 319 ], [ 265, 320 ], [ 320, 321 ], [ 320, 322 ], [ 388, 323 ], [ 323, 324 ], [ 323, 325 ], [ 325, 326 ], [ 325, 327 ], [ 323, 328 ], [ 328, 329 ], [ 328, 330 ], [ 323, 331 ], [ 331, 332 ], [ 323, 333 ], [ 333, 334 ], [ 323, 335 ], [ 335, 336 ], [ 335, 337 ], [ 337, 338 ], [ 338, 339 ], [ 338, 340 ], [ 337, 341 ], [ 341, 342 ], [ 342, 343 ], [ 342, 344 ], [ 341, 345 ], [ 345, 346 ], [ 346, 347 ], [ 347, 348 ], [ 348, 349 ], [ 348, 350 ], [ 350, 351 ], [ 351, 352 ], [ 347, 353 ], [ 346, 354 ], [ 354, 355 ], [ 355, 356 ], [ 356, 357 ], [ 355, 358 ], [ 337, 359 ], [ 359, 360 ], [ 359, 361 ], [ 361, 362 ], [ 362, 363 ], [ 323, 364 ], [ 364, 365 ], [ 364, 366 ], [ 366, 367 ], [ 367, 368 ], [ 368, 369 ], [ 368, 370 ], [ 323, 371 ], [ 371, 372 ], [ 371, 373 ], [ 373, 374 ], [ 374, 375 ], [ 375, 376 ], [ 374, 377 ], [ 377, 378 ], [ 378, 379 ], [ 379, 380 ], [ 380, 381 ], [ 379, 382 ], [ 382, 383 ], [ 374, 384 ], [ 384, 385 ], [ 385, 386 ], [ 0, 387 ], [ 387, 388 ], [ 387, 389 ] ]
[ "import java.util.*; import java.io.*; import java.math.*;\npublic class Main{\n\t//Don't have to see. start------------------------------------------\n\tstatic class InputIterator{\n\t\tArrayList<String> inputLine = new ArrayList<String>(1024);\n\t\tint index = 0; int max; String read;\n\t\tInputIterator(){\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\ttry{\n\t\t\t\twhile((read = br.readLine()) != null){\n\t\t\t\t\tinputLine.add(read);\n\t\t\t\t}\n\t\t\t}catch(IOException e){}\n\t\t\tmax = inputLine.size();\n\t\t}\n\t\tboolean hasNext(){return (index < max);}\n\t\tString next(){\n\t\t\tif(hasNext()){\n\t\t\t\treturn inputLine.get(index++);\n\t\t\t}else{\n\t\t\t\tthrow new IndexOutOfBoundsException(\"There is no more input\");\n\t\t\t}\n\t\t}\n\t}\n\tstatic HashMap<Integer, String> CONVSTR = new HashMap<Integer, String>();\n\tstatic InputIterator ii = new InputIterator();//This class cannot be used in reactive problem.\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\tstatic void flush(){out.flush();}\n\tstatic void myout(Object t){out.println(t);}\n\tstatic void myerr(Object t){System.err.print(\"debug:\");System.err.println(t);}\n\tstatic String next(){return ii.next();}\n\tstatic boolean hasNext(){return ii.hasNext();}\n\tstatic int nextInt(){return Integer.parseInt(next());}\n\tstatic long nextLong(){return Long.parseLong(next());}\n\tstatic double nextDouble(){return Double.parseDouble(next());}\n\tstatic ArrayList<String> nextStrArray(){return myconv(next(), 8);}\n\tstatic ArrayList<String> nextCharArray(){return myconv(next(), 0);}\n\tstatic ArrayList<Integer> nextIntArray(){\n\t\tArrayList<String> input = nextStrArray(); ArrayList<Integer> ret = new ArrayList<Integer>(input.size());\n\t\tfor(int i = 0; i < input.size(); i++){\n\t\t\tret.add(Integer.parseInt(input.get(i)));\n\t\t}\n\t\treturn ret;\n\t}\n\tstatic ArrayList<Long> nextLongArray(){\n\t\tArrayList<String> input = nextStrArray(); ArrayList<Long> ret = new ArrayList<Long>(input.size());\n\t\tfor(int i = 0; i < input.size(); i++){\n\t\t\tret.add(Long.parseLong(input.get(i)));\n\t\t}\n\t\treturn ret;\n\t}\n\tstatic String myconv(Object list, int no){//only join\n\t\tString joinString = CONVSTR.get(no);\n\t\tif(list instanceof String[]){\n\t\t\treturn String.join(joinString, (String[])list);\n\t\t}else if(list instanceof ArrayList){\n\t\t\treturn String.join(joinString, (ArrayList)list);\n\t\t}else{\n\t\t\tthrow new ClassCastException(\"Don't join\");\n\t\t}\n\t}\n\tstatic ArrayList<String> myconv(String str, int no){//only split\n\t\tString splitString = CONVSTR.get(no);\n\t\treturn new ArrayList<String>(Arrays.asList(str.split(splitString)));\n\t}\n\tpublic static void main(String[] args){\n\t\tCONVSTR.put(8, \" \"); CONVSTR.put(9, \"\\n\"); CONVSTR.put(0, \"\");\n\t\tsolve();flush();\n\t}\n\t//Don't have to see. end------------------------------------------\n\tstatic void solve(){//Here is the main function\n ArrayList<String> s = nextCharArray();\n int max = 0;\n int count = 0;\n for(int i = 0; i < s.size(); i++){\n \tif(s.get(i).equals(\"R\")){\n \t\tcount++;\n \t}else{\n \t\tmax = Math.max(max, count);\n \t\tcount = 0;\n \t}\n }\n max = Math.max(max, count);\n myout(max);\n\t}\n\t//Method addition frame start\n\n\n\n\t//Method addition frame end\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "import java.math.*;", "math.*", "java", "public class Main{\n\t//Don't have to see. start------------------------------------------\n\tstatic class InputIterator{\n\t\tArrayList<String> inputLine = new ArrayList<String>(1024);\n\t\tint index = 0; int max; String read;\n\t\tInputIterator(){\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\ttry{\n\t\t\t\twhile((read = br.readLine()) != null){\n\t\t\t\t\tinputLine.add(read);\n\t\t\t\t}\n\t\t\t}catch(IOException e){}\n\t\t\tmax = inputLine.size();\n\t\t}\n\t\tboolean hasNext(){return (index < max);}\n\t\tString next(){\n\t\t\tif(hasNext()){\n\t\t\t\treturn inputLine.get(index++);\n\t\t\t}else{\n\t\t\t\tthrow new IndexOutOfBoundsException(\"There is no more input\");\n\t\t\t}\n\t\t}\n\t}\n\tstatic HashMap<Integer, String> CONVSTR = new HashMap<Integer, String>();\n\tstatic InputIterator ii = new InputIterator();//This class cannot be used in reactive problem.\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\tstatic void flush(){out.flush();}\n\tstatic void myout(Object t){out.println(t);}\n\tstatic void myerr(Object t){System.err.print(\"debug:\");System.err.println(t);}\n\tstatic String next(){return ii.next();}\n\tstatic boolean hasNext(){return ii.hasNext();}\n\tstatic int nextInt(){return Integer.parseInt(next());}\n\tstatic long nextLong(){return Long.parseLong(next());}\n\tstatic double nextDouble(){return Double.parseDouble(next());}\n\tstatic ArrayList<String> nextStrArray(){return myconv(next(), 8);}\n\tstatic ArrayList<String> nextCharArray(){return myconv(next(), 0);}\n\tstatic ArrayList<Integer> nextIntArray(){\n\t\tArrayList<String> input = nextStrArray(); ArrayList<Integer> ret = new ArrayList<Integer>(input.size());\n\t\tfor(int i = 0; i < input.size(); i++){\n\t\t\tret.add(Integer.parseInt(input.get(i)));\n\t\t}\n\t\treturn ret;\n\t}\n\tstatic ArrayList<Long> nextLongArray(){\n\t\tArrayList<String> input = nextStrArray(); ArrayList<Long> ret = new ArrayList<Long>(input.size());\n\t\tfor(int i = 0; i < input.size(); i++){\n\t\t\tret.add(Long.parseLong(input.get(i)));\n\t\t}\n\t\treturn ret;\n\t}\n\tstatic String myconv(Object list, int no){//only join\n\t\tString joinString = CONVSTR.get(no);\n\t\tif(list instanceof String[]){\n\t\t\treturn String.join(joinString, (String[])list);\n\t\t}else if(list instanceof ArrayList){\n\t\t\treturn String.join(joinString, (ArrayList)list);\n\t\t}else{\n\t\t\tthrow new ClassCastException(\"Don't join\");\n\t\t}\n\t}\n\tstatic ArrayList<String> myconv(String str, int no){//only split\n\t\tString splitString = CONVSTR.get(no);\n\t\treturn new ArrayList<String>(Arrays.asList(str.split(splitString)));\n\t}\n\tpublic static void main(String[] args){\n\t\tCONVSTR.put(8, \" \"); CONVSTR.put(9, \"\\n\"); CONVSTR.put(0, \"\");\n\t\tsolve();flush();\n\t}\n\t//Don't have to see. end------------------------------------------\n\tstatic void solve(){//Here is the main function\n ArrayList<String> s = nextCharArray();\n int max = 0;\n int count = 0;\n for(int i = 0; i < s.size(); i++){\n \tif(s.get(i).equals(\"R\")){\n \t\tcount++;\n \t}else{\n \t\tmax = Math.max(max, count);\n \t\tcount = 0;\n \t}\n }\n max = Math.max(max, count);\n myout(max);\n\t}\n\t//Method addition frame start\n\n\n\n\t//Method addition frame end\n}", "Main", "static HashMap<Integer, String> CONVSTR = new HashMap<Integer, String>();", "CONVSTR", "new HashMap<Integer, String>()", "static InputIterator ii = new InputIterator();//This class cannot be used in reactive problem.", "ii", "new InputIterator()", "static PrintWriter out = new PrintWriter(System.out);", "out", "new PrintWriter(System.out)", "static void flush(){out.flush();}", "flush", "{out.flush();}", "out.flush()", "out.flush", "out", "static void myout(Object t){out.println(t);}", "myout", "{out.println(t);}", "out.println(t)", "out.println", "out", "t", "Object t", "t", "static void myerr(Object t){System.err.print(\"debug:\");System.err.println(t);}", "myerr", "{System.err.print(\"debug:\");System.err.println(t);}", "System.err.print(\"debug:\")", "System.err.print", "System.err", "System", "System.err", "\"debug:\"", "System.err.println(t)", "System.err.println", "System.err", "System", "System.err", "t", "Object t", "t", "static String next(){return ii.next();}", "next", "{return ii.next();}", "return ii.next();", "ii.next()", "ii.next", "ii", "static boolean hasNext(){return ii.hasNext();}", "hasNext", "{return ii.hasNext();}", "return ii.hasNext();", "ii.hasNext()", "ii.hasNext", "ii", "static int nextInt(){return Integer.parseInt(next());}", "nextInt", "{return Integer.parseInt(next());}", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "static long nextLong(){return Long.parseLong(next());}", "nextLong", "{return Long.parseLong(next());}", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "static double nextDouble(){return Double.parseDouble(next());}", "nextDouble", "{return Double.parseDouble(next());}", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "static ArrayList<String> nextStrArray(){return myconv(next(), 8);}", "nextStrArray", "{return myconv(next(), 8);}", "return myconv(next(), 8);", "myconv(next(), 8)", "myconv", "next()", "next", "8", "static ArrayList<String> nextCharArray(){return myconv(next(), 0);}", "nextCharArray", "{return myconv(next(), 0);}", "return myconv(next(), 0);", "myconv(next(), 0)", "myconv", "next()", "next", "0", "static ArrayList<Integer> nextIntArray(){\n\t\tArrayList<String> input = nextStrArray(); ArrayList<Integer> ret = new ArrayList<Integer>(input.size());\n\t\tfor(int i = 0; i < input.size(); i++){\n\t\t\tret.add(Integer.parseInt(input.get(i)));\n\t\t}\n\t\treturn ret;\n\t}", "nextIntArray", "{\n\t\tArrayList<String> input = nextStrArray(); ArrayList<Integer> ret = new ArrayList<Integer>(input.size());\n\t\tfor(int i = 0; i < input.size(); i++){\n\t\t\tret.add(Integer.parseInt(input.get(i)));\n\t\t}\n\t\treturn ret;\n\t}", "ArrayList<String> input = nextStrArray();", "input", "nextStrArray()", "nextStrArray", "ArrayList<Integer> ret = new ArrayList<Integer>(input.size());", "ret", "new ArrayList<Integer>(input.size())", "for(int i = 0; i < input.size(); i++){\n\t\t\tret.add(Integer.parseInt(input.get(i)));\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < input.size()", "i", "input.size()", "input.size", "input", "i++", "i++", "i", "{\n\t\t\tret.add(Integer.parseInt(input.get(i)));\n\t\t}", "{\n\t\t\tret.add(Integer.parseInt(input.get(i)));\n\t\t}", "ret.add(Integer.parseInt(input.get(i)))", "ret.add", "ret", "Integer.parseInt(input.get(i))", "Integer.parseInt", "Integer", "input.get(i)", "input.get", "input", "i", "return ret;", "ret", "static ArrayList<Long> nextLongArray(){\n\t\tArrayList<String> input = nextStrArray(); ArrayList<Long> ret = new ArrayList<Long>(input.size());\n\t\tfor(int i = 0; i < input.size(); i++){\n\t\t\tret.add(Long.parseLong(input.get(i)));\n\t\t}\n\t\treturn ret;\n\t}", "nextLongArray", "{\n\t\tArrayList<String> input = nextStrArray(); ArrayList<Long> ret = new ArrayList<Long>(input.size());\n\t\tfor(int i = 0; i < input.size(); i++){\n\t\t\tret.add(Long.parseLong(input.get(i)));\n\t\t}\n\t\treturn ret;\n\t}", "ArrayList<String> input = nextStrArray();", "input", "nextStrArray()", "nextStrArray", "ArrayList<Long> ret = new ArrayList<Long>(input.size());", "ret", "new ArrayList<Long>(input.size())", "for(int i = 0; i < input.size(); i++){\n\t\t\tret.add(Long.parseLong(input.get(i)));\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < input.size()", "i", "input.size()", "input.size", "input", "i++", "i++", "i", "{\n\t\t\tret.add(Long.parseLong(input.get(i)));\n\t\t}", "{\n\t\t\tret.add(Long.parseLong(input.get(i)));\n\t\t}", "ret.add(Long.parseLong(input.get(i)))", "ret.add", "ret", "Long.parseLong(input.get(i))", "Long.parseLong", "Long", "input.get(i)", "input.get", "input", "i", "return ret;", "ret", "static String myconv(Object list, int no){//only join\n\t\tString joinString = CONVSTR.get(no);\n\t\tif(list instanceof String[]){\n\t\t\treturn String.join(joinString, (String[])list);\n\t\t}else if(list instanceof ArrayList){\n\t\t\treturn String.join(joinString, (ArrayList)list);\n\t\t}else{\n\t\t\tthrow new ClassCastException(\"Don't join\");\n\t\t}\n\t}", "myconv", "{//only join\n\t\tString joinString = CONVSTR.get(no);\n\t\tif(list instanceof String[]){\n\t\t\treturn String.join(joinString, (String[])list);\n\t\t}else if(list instanceof ArrayList){\n\t\t\treturn String.join(joinString, (ArrayList)list);\n\t\t}else{\n\t\t\tthrow new ClassCastException(\"Don't join\");\n\t\t}\n\t}", "String joinString = CONVSTR.get(no);", "joinString", "CONVSTR.get(no)", "CONVSTR.get", "CONVSTR", "no", "if(list instanceof String[]){\n\t\t\treturn String.join(joinString, (String[])list);\n\t\t}else if(list instanceof ArrayList){\n\t\t\treturn String.join(joinString, (ArrayList)list);\n\t\t}else{\n\t\t\tthrow new ClassCastException(\"Don't join\");\n\t\t}", "list instanceof String[]", "list", "String[]", "{\n\t\t\treturn String.join(joinString, (String[])list);\n\t\t}", "return String.join(joinString, (String[])list);", "String.join(joinString, (String[])list)", "String.join", "String", "joinString", "(String[])list", "if(list instanceof ArrayList){\n\t\t\treturn String.join(joinString, (ArrayList)list);\n\t\t}else{\n\t\t\tthrow new ClassCastException(\"Don't join\");\n\t\t}", "list instanceof ArrayList", "list", "ArrayList", "{\n\t\t\treturn String.join(joinString, (ArrayList)list);\n\t\t}", "return String.join(joinString, (ArrayList)list);", "String.join(joinString, (ArrayList)list)", "String.join", "String", "joinString", "(ArrayList)list", "{\n\t\t\tthrow new ClassCastException(\"Don't join\");\n\t\t}", "throw new ClassCastException(\"Don't join\");", "new ClassCastException(\"Don't join\")", "Object list", "list", "int no", "no", "static ArrayList<String> myconv(String str, int no){//only split\n\t\tString splitString = CONVSTR.get(no);\n\t\treturn new ArrayList<String>(Arrays.asList(str.split(splitString)));\n\t}", "myconv", "{//only split\n\t\tString splitString = CONVSTR.get(no);\n\t\treturn new ArrayList<String>(Arrays.asList(str.split(splitString)));\n\t}", "String splitString = CONVSTR.get(no);", "splitString", "CONVSTR.get(no)", "CONVSTR.get", "CONVSTR", "no", "return new ArrayList<String>(Arrays.asList(str.split(splitString)));", "new ArrayList<String>(Arrays.asList(str.split(splitString)))", "String str", "str", "int no", "no", "public static void main(String[] args){\n\t\tCONVSTR.put(8, \" \"); CONVSTR.put(9, \"\\n\"); CONVSTR.put(0, \"\");\n\t\tsolve();flush();\n\t}", "main", "{\n\t\tCONVSTR.put(8, \" \"); CONVSTR.put(9, \"\\n\"); CONVSTR.put(0, \"\");\n\t\tsolve();flush();\n\t}", "CONVSTR.put(8, \" \")", "CONVSTR.put", "CONVSTR", "8", "\" \"", "CONVSTR.put(9, \"\\n\")", "CONVSTR.put", "CONVSTR", "9", "\"\\n\"", "CONVSTR.put(0, \"\")", "CONVSTR.put", "CONVSTR", "0", "\"\"", "solve()", "solve", "flush()", "flush", "String[] args", "args", "//Don't have to see. end------------------------------------------\n\tstatic void solve(){//Here is the main function\n ArrayList<String> s = nextCharArray();\n int max = 0;\n int count = 0;\n for(int i = 0; i < s.size(); i++){\n \tif(s.get(i).equals(\"R\")){\n \t\tcount++;\n \t}else{\n \t\tmax = Math.max(max, count);\n \t\tcount = 0;\n \t}\n }\n max = Math.max(max, count);\n myout(max);\n\t}", "solve", "{//Here is the main function\n ArrayList<String> s = nextCharArray();\n int max = 0;\n int count = 0;\n for(int i = 0; i < s.size(); i++){\n \tif(s.get(i).equals(\"R\")){\n \t\tcount++;\n \t}else{\n \t\tmax = Math.max(max, count);\n \t\tcount = 0;\n \t}\n }\n max = Math.max(max, count);\n myout(max);\n\t}", "ArrayList<String> s = nextCharArray();", "s", "nextCharArray()", "nextCharArray", "int max = 0;", "max", "0", "int count = 0;", "count", "0", "for(int i = 0; i < s.size(); i++){\n \tif(s.get(i).equals(\"R\")){\n \t\tcount++;\n \t}else{\n \t\tmax = Math.max(max, count);\n \t\tcount = 0;\n \t}\n }", "int i = 0;", "int i = 0;", "i", "0", "i < s.size()", "i", "s.size()", "s.size", "s", "i++", "i++", "i", "{\n \tif(s.get(i).equals(\"R\")){\n \t\tcount++;\n \t}else{\n \t\tmax = Math.max(max, count);\n \t\tcount = 0;\n \t}\n }", "{\n \tif(s.get(i).equals(\"R\")){\n \t\tcount++;\n \t}else{\n \t\tmax = Math.max(max, count);\n \t\tcount = 0;\n \t}\n }", "if(s.get(i).equals(\"R\")){\n \t\tcount++;\n \t}else{\n \t\tmax = Math.max(max, count);\n \t\tcount = 0;\n \t}", "s.get(i).equals(\"R\")", "s.get(i).equals", "s.get(i)", "s.get", "s", "i", "\"R\"", "{\n \t\tcount++;\n \t}", "count++", "count", "{\n \t\tmax = Math.max(max, count);\n \t\tcount = 0;\n \t}", "max = Math.max(max, count)", "max", "Math.max(max, count)", "Math.max", "Math", "max", "count", "count = 0", "count", "0", "max = Math.max(max, count)", "max", "Math.max(max, count)", "Math.max", "Math", "max", "count", "myout(max)", "myout", "max", "static class InputIterator{\n\t\tArrayList<String> inputLine = new ArrayList<String>(1024);\n\t\tint index = 0; int max; String read;\n\t\tInputIterator(){\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\ttry{\n\t\t\t\twhile((read = br.readLine()) != null){\n\t\t\t\t\tinputLine.add(read);\n\t\t\t\t}\n\t\t\t}catch(IOException e){}\n\t\t\tmax = inputLine.size();\n\t\t}\n\t\tboolean hasNext(){return (index < max);}\n\t\tString next(){\n\t\t\tif(hasNext()){\n\t\t\t\treturn inputLine.get(index++);\n\t\t\t}else{\n\t\t\t\tthrow new IndexOutOfBoundsException(\"There is no more input\");\n\t\t\t}\n\t\t}\n\t}", "InputIterator", "ArrayList<String> inputLine = new ArrayList<String>(1024);", "inputLine", "new ArrayList<String>(1024)", "int index = 0;", "index", "0", "int max;", "max", "String read;", "read", "InputIterator(){\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\ttry{\n\t\t\t\twhile((read = br.readLine()) != null){\n\t\t\t\t\tinputLine.add(read);\n\t\t\t\t}\n\t\t\t}catch(IOException e){}\n\t\t\tmax = inputLine.size();\n\t\t}", "InputIterator", "{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\ttry{\n\t\t\t\twhile((read = br.readLine()) != null){\n\t\t\t\t\tinputLine.add(read);\n\t\t\t\t}\n\t\t\t}catch(IOException e){}\n\t\t\tmax = inputLine.size();\n\t\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "try{\n\t\t\t\twhile((read = br.readLine()) != null){\n\t\t\t\t\tinputLine.add(read);\n\t\t\t\t}\n\t\t\t}catch(IOException e){}", "catch(IOException e){}", "IOException e", "{}", "{\n\t\t\t\twhile((read = br.readLine()) != null){\n\t\t\t\t\tinputLine.add(read);\n\t\t\t\t}\n\t\t\t}", "while((read = br.readLine()) != null){\n\t\t\t\t\tinputLine.add(read);\n\t\t\t\t}", "(read = br.readLine()) != null", "(read = br.readLine())", "read", "br.readLine()", "br.readLine", "br", "null", "{\n\t\t\t\t\tinputLine.add(read);\n\t\t\t\t}", "inputLine.add(read)", "inputLine.add", "inputLine", "read", "max = inputLine.size()", "max", "inputLine.size()", "inputLine.size", "inputLine", "boolean hasNext(){return (index < max);}", "hasNext", "{return (index < max);}", "return (index < max);", "(index < max)", "index", "max", "String next(){\n\t\t\tif(hasNext()){\n\t\t\t\treturn inputLine.get(index++);\n\t\t\t}else{\n\t\t\t\tthrow new IndexOutOfBoundsException(\"There is no more input\");\n\t\t\t}\n\t\t}", "next", "{\n\t\t\tif(hasNext()){\n\t\t\t\treturn inputLine.get(index++);\n\t\t\t}else{\n\t\t\t\tthrow new IndexOutOfBoundsException(\"There is no more input\");\n\t\t\t}\n\t\t}", "if(hasNext()){\n\t\t\t\treturn inputLine.get(index++);\n\t\t\t}else{\n\t\t\t\tthrow new IndexOutOfBoundsException(\"There is no more input\");\n\t\t\t}", "hasNext()", "hasNext", "{\n\t\t\t\treturn inputLine.get(index++);\n\t\t\t}", "return inputLine.get(index++);", "inputLine.get(index++)", "inputLine.get", "inputLine", "index++", "index", "{\n\t\t\t\tthrow new IndexOutOfBoundsException(\"There is no more input\");\n\t\t\t}", "throw new IndexOutOfBoundsException(\"There is no more input\");", "new IndexOutOfBoundsException(\"There is no more input\")", "public class Main{\n\t//Don't have to see. start------------------------------------------\n\tstatic class InputIterator{\n\t\tArrayList<String> inputLine = new ArrayList<String>(1024);\n\t\tint index = 0; int max; String read;\n\t\tInputIterator(){\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\ttry{\n\t\t\t\twhile((read = br.readLine()) != null){\n\t\t\t\t\tinputLine.add(read);\n\t\t\t\t}\n\t\t\t}catch(IOException e){}\n\t\t\tmax = inputLine.size();\n\t\t}\n\t\tboolean hasNext(){return (index < max);}\n\t\tString next(){\n\t\t\tif(hasNext()){\n\t\t\t\treturn inputLine.get(index++);\n\t\t\t}else{\n\t\t\t\tthrow new IndexOutOfBoundsException(\"There is no more input\");\n\t\t\t}\n\t\t}\n\t}\n\tstatic HashMap<Integer, String> CONVSTR = new HashMap<Integer, String>();\n\tstatic InputIterator ii = new InputIterator();//This class cannot be used in reactive problem.\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\tstatic void flush(){out.flush();}\n\tstatic void myout(Object t){out.println(t);}\n\tstatic void myerr(Object t){System.err.print(\"debug:\");System.err.println(t);}\n\tstatic String next(){return ii.next();}\n\tstatic boolean hasNext(){return ii.hasNext();}\n\tstatic int nextInt(){return Integer.parseInt(next());}\n\tstatic long nextLong(){return Long.parseLong(next());}\n\tstatic double nextDouble(){return Double.parseDouble(next());}\n\tstatic ArrayList<String> nextStrArray(){return myconv(next(), 8);}\n\tstatic ArrayList<String> nextCharArray(){return myconv(next(), 0);}\n\tstatic ArrayList<Integer> nextIntArray(){\n\t\tArrayList<String> input = nextStrArray(); ArrayList<Integer> ret = new ArrayList<Integer>(input.size());\n\t\tfor(int i = 0; i < input.size(); i++){\n\t\t\tret.add(Integer.parseInt(input.get(i)));\n\t\t}\n\t\treturn ret;\n\t}\n\tstatic ArrayList<Long> nextLongArray(){\n\t\tArrayList<String> input = nextStrArray(); ArrayList<Long> ret = new ArrayList<Long>(input.size());\n\t\tfor(int i = 0; i < input.size(); i++){\n\t\t\tret.add(Long.parseLong(input.get(i)));\n\t\t}\n\t\treturn ret;\n\t}\n\tstatic String myconv(Object list, int no){//only join\n\t\tString joinString = CONVSTR.get(no);\n\t\tif(list instanceof String[]){\n\t\t\treturn String.join(joinString, (String[])list);\n\t\t}else if(list instanceof ArrayList){\n\t\t\treturn String.join(joinString, (ArrayList)list);\n\t\t}else{\n\t\t\tthrow new ClassCastException(\"Don't join\");\n\t\t}\n\t}\n\tstatic ArrayList<String> myconv(String str, int no){//only split\n\t\tString splitString = CONVSTR.get(no);\n\t\treturn new ArrayList<String>(Arrays.asList(str.split(splitString)));\n\t}\n\tpublic static void main(String[] args){\n\t\tCONVSTR.put(8, \" \"); CONVSTR.put(9, \"\\n\"); CONVSTR.put(0, \"\");\n\t\tsolve();flush();\n\t}\n\t//Don't have to see. end------------------------------------------\n\tstatic void solve(){//Here is the main function\n ArrayList<String> s = nextCharArray();\n int max = 0;\n int count = 0;\n for(int i = 0; i < s.size(); i++){\n \tif(s.get(i).equals(\"R\")){\n \t\tcount++;\n \t}else{\n \t\tmax = Math.max(max, count);\n \t\tcount = 0;\n \t}\n }\n max = Math.max(max, count);\n myout(max);\n\t}\n\t//Method addition frame start\n\n\n\n\t//Method addition frame end\n}", "public class Main{\n\t//Don't have to see. start------------------------------------------\n\tstatic class InputIterator{\n\t\tArrayList<String> inputLine = new ArrayList<String>(1024);\n\t\tint index = 0; int max; String read;\n\t\tInputIterator(){\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\ttry{\n\t\t\t\twhile((read = br.readLine()) != null){\n\t\t\t\t\tinputLine.add(read);\n\t\t\t\t}\n\t\t\t}catch(IOException e){}\n\t\t\tmax = inputLine.size();\n\t\t}\n\t\tboolean hasNext(){return (index < max);}\n\t\tString next(){\n\t\t\tif(hasNext()){\n\t\t\t\treturn inputLine.get(index++);\n\t\t\t}else{\n\t\t\t\tthrow new IndexOutOfBoundsException(\"There is no more input\");\n\t\t\t}\n\t\t}\n\t}\n\tstatic HashMap<Integer, String> CONVSTR = new HashMap<Integer, String>();\n\tstatic InputIterator ii = new InputIterator();//This class cannot be used in reactive problem.\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\tstatic void flush(){out.flush();}\n\tstatic void myout(Object t){out.println(t);}\n\tstatic void myerr(Object t){System.err.print(\"debug:\");System.err.println(t);}\n\tstatic String next(){return ii.next();}\n\tstatic boolean hasNext(){return ii.hasNext();}\n\tstatic int nextInt(){return Integer.parseInt(next());}\n\tstatic long nextLong(){return Long.parseLong(next());}\n\tstatic double nextDouble(){return Double.parseDouble(next());}\n\tstatic ArrayList<String> nextStrArray(){return myconv(next(), 8);}\n\tstatic ArrayList<String> nextCharArray(){return myconv(next(), 0);}\n\tstatic ArrayList<Integer> nextIntArray(){\n\t\tArrayList<String> input = nextStrArray(); ArrayList<Integer> ret = new ArrayList<Integer>(input.size());\n\t\tfor(int i = 0; i < input.size(); i++){\n\t\t\tret.add(Integer.parseInt(input.get(i)));\n\t\t}\n\t\treturn ret;\n\t}\n\tstatic ArrayList<Long> nextLongArray(){\n\t\tArrayList<String> input = nextStrArray(); ArrayList<Long> ret = new ArrayList<Long>(input.size());\n\t\tfor(int i = 0; i < input.size(); i++){\n\t\t\tret.add(Long.parseLong(input.get(i)));\n\t\t}\n\t\treturn ret;\n\t}\n\tstatic String myconv(Object list, int no){//only join\n\t\tString joinString = CONVSTR.get(no);\n\t\tif(list instanceof String[]){\n\t\t\treturn String.join(joinString, (String[])list);\n\t\t}else if(list instanceof ArrayList){\n\t\t\treturn String.join(joinString, (ArrayList)list);\n\t\t}else{\n\t\t\tthrow new ClassCastException(\"Don't join\");\n\t\t}\n\t}\n\tstatic ArrayList<String> myconv(String str, int no){//only split\n\t\tString splitString = CONVSTR.get(no);\n\t\treturn new ArrayList<String>(Arrays.asList(str.split(splitString)));\n\t}\n\tpublic static void main(String[] args){\n\t\tCONVSTR.put(8, \" \"); CONVSTR.put(9, \"\\n\"); CONVSTR.put(0, \"\");\n\t\tsolve();flush();\n\t}\n\t//Don't have to see. end------------------------------------------\n\tstatic void solve(){//Here is the main function\n ArrayList<String> s = nextCharArray();\n int max = 0;\n int count = 0;\n for(int i = 0; i < s.size(); i++){\n \tif(s.get(i).equals(\"R\")){\n \t\tcount++;\n \t}else{\n \t\tmax = Math.max(max, count);\n \t\tcount = 0;\n \t}\n }\n max = Math.max(max, count);\n myout(max);\n\t}\n\t//Method addition frame start\n\n\n\n\t//Method addition frame end\n}", "Main" ]
import java.util.*; import java.io.*; import java.math.*; public class Main{ //Don't have to see. start------------------------------------------ static class InputIterator{ ArrayList<String> inputLine = new ArrayList<String>(1024); int index = 0; int max; String read; InputIterator(){ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try{ while((read = br.readLine()) != null){ inputLine.add(read); } }catch(IOException e){} max = inputLine.size(); } boolean hasNext(){return (index < max);} String next(){ if(hasNext()){ return inputLine.get(index++); }else{ throw new IndexOutOfBoundsException("There is no more input"); } } } static HashMap<Integer, String> CONVSTR = new HashMap<Integer, String>(); static InputIterator ii = new InputIterator();//This class cannot be used in reactive problem. static PrintWriter out = new PrintWriter(System.out); static void flush(){out.flush();} static void myout(Object t){out.println(t);} static void myerr(Object t){System.err.print("debug:");System.err.println(t);} static String next(){return ii.next();} static boolean hasNext(){return ii.hasNext();} static int nextInt(){return Integer.parseInt(next());} static long nextLong(){return Long.parseLong(next());} static double nextDouble(){return Double.parseDouble(next());} static ArrayList<String> nextStrArray(){return myconv(next(), 8);} static ArrayList<String> nextCharArray(){return myconv(next(), 0);} static ArrayList<Integer> nextIntArray(){ ArrayList<String> input = nextStrArray(); ArrayList<Integer> ret = new ArrayList<Integer>(input.size()); for(int i = 0; i < input.size(); i++){ ret.add(Integer.parseInt(input.get(i))); } return ret; } static ArrayList<Long> nextLongArray(){ ArrayList<String> input = nextStrArray(); ArrayList<Long> ret = new ArrayList<Long>(input.size()); for(int i = 0; i < input.size(); i++){ ret.add(Long.parseLong(input.get(i))); } return ret; } static String myconv(Object list, int no){//only join String joinString = CONVSTR.get(no); if(list instanceof String[]){ return String.join(joinString, (String[])list); }else if(list instanceof ArrayList){ return String.join(joinString, (ArrayList)list); }else{ throw new ClassCastException("Don't join"); } } static ArrayList<String> myconv(String str, int no){//only split String splitString = CONVSTR.get(no); return new ArrayList<String>(Arrays.asList(str.split(splitString))); } public static void main(String[] args){ CONVSTR.put(8, " "); CONVSTR.put(9, "\n"); CONVSTR.put(0, ""); solve();flush(); } //Don't have to see. end------------------------------------------ static void solve(){//Here is the main function ArrayList<String> s = nextCharArray(); int max = 0; int count = 0; for(int i = 0; i < s.size(); i++){ if(s.get(i).equals("R")){ count++; }else{ max = Math.max(max, count); count = 0; } } max = Math.max(max, count); myout(max); } //Method addition frame start //Method addition frame end }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 14, 4, 18, 13, 17, 30, 0, 13, 17, 14, 4, 18, 13, 17, 30, 0, 13, 17, 14, 4, 18, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 59, 5 ], [ 59, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 8, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 29, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 8, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 38, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 8, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 8, 53 ], [ 53, 54 ], [ 54, 55 ], [ 6, 56 ], [ 56, 57 ], [ 0, 58 ], [ 58, 59 ], [ 58, 60 ] ]
[ "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\tString s = sc.nextLine();\n\t\tint ans = 0;\n\t\tif(s.contains(\"R\")) {\n\t\t\tans = 1;\n\t\t}\n\t\tif(s.contains(\"RR\")) {\n\t\t\tans = 2;\n\t\t}\n\t\tif(s.contains(\"RRR\")) {\n\t\t\tans = 3;\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tsc.close();\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\tString s = sc.nextLine();\n\t\tint ans = 0;\n\t\tif(s.contains(\"R\")) {\n\t\t\tans = 1;\n\t\t}\n\t\tif(s.contains(\"RR\")) {\n\t\t\tans = 2;\n\t\t}\n\t\tif(s.contains(\"RRR\")) {\n\t\t\tans = 3;\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tsc.close();\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\tint ans = 0;\n\t\tif(s.contains(\"R\")) {\n\t\t\tans = 1;\n\t\t}\n\t\tif(s.contains(\"RR\")) {\n\t\t\tans = 2;\n\t\t}\n\t\tif(s.contains(\"RRR\")) {\n\t\t\tans = 3;\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tsc.close();\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\tint ans = 0;\n\t\tif(s.contains(\"R\")) {\n\t\t\tans = 1;\n\t\t}\n\t\tif(s.contains(\"RR\")) {\n\t\t\tans = 2;\n\t\t}\n\t\tif(s.contains(\"RRR\")) {\n\t\t\tans = 3;\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tsc.close();\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.nextLine();", "s", "sc.nextLine()", "sc.nextLine", "sc", "int ans = 0;", "ans", "0", "if(s.contains(\"R\")) {\n\t\t\tans = 1;\n\t\t}", "s.contains(\"R\")", "s.contains", "s", "\"R\"", "{\n\t\t\tans = 1;\n\t\t}", "ans = 1", "ans", "1", "if(s.contains(\"RR\")) {\n\t\t\tans = 2;\n\t\t}", "s.contains(\"RR\")", "s.contains", "s", "\"RR\"", "{\n\t\t\tans = 2;\n\t\t}", "ans = 2", "ans", "2", "if(s.contains(\"RRR\")) {\n\t\t\tans = 3;\n\t\t}", "s.contains(\"RRR\")", "s.contains", "s", "\"RRR\"", "{\n\t\t\tans = 3;\n\t\t}", "ans = 3", "ans", "3", "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\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\tint ans = 0;\n\t\tif(s.contains(\"R\")) {\n\t\t\tans = 1;\n\t\t}\n\t\tif(s.contains(\"RR\")) {\n\t\t\tans = 2;\n\t\t}\n\t\tif(s.contains(\"RRR\")) {\n\t\t\tans = 3;\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tsc.close();\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\tint ans = 0;\n\t\tif(s.contains(\"R\")) {\n\t\t\tans = 1;\n\t\t}\n\t\tif(s.contains(\"RR\")) {\n\t\t\tans = 2;\n\t\t}\n\t\tif(s.contains(\"RRR\")) {\n\t\t\tans = 3;\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tsc.close();\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.nextLine(); int ans = 0; if(s.contains("R")) { ans = 1; } if(s.contains("RR")) { ans = 2; } if(s.contains("RRR")) { ans = 3; } System.out.println(ans); sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 17, 14, 2, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 30, 0, 13, 17, 14, 2, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 30, 0, 13, 17, 14, 2, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 103, 5 ], [ 103, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 24, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 25, 29 ], [ 24, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 30, 34 ], [ 24, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 35, 39 ], [ 22, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 22, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 46, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 45, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 57, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 44, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 44, 72 ], [ 72, 73 ], [ 74, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 74, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 74, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 72, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 8, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 6, 100 ], [ 100, 101 ], [ 0, 102 ], [ 102, 103 ], [ 102, 104 ] ]
[ "\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n char[] S = scanner.next().toCharArray();\n\n int count = 0;\n\n if (S[0] == 'R' && S[1] == 'R' && S[2] == 'R') {\n count = 3;\n } else if ((S[0] == 'R' && S[1] == 'R')|| (S[1] == 'R' && S[2] == 'R')) {\n count = 2;\n } else if (S[0] == 'R' || S[1] == 'R' || S[2] == 'R') {\n count = 1;\n }\n System.out.println(count);\n\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n char[] S = scanner.next().toCharArray();\n\n int count = 0;\n\n if (S[0] == 'R' && S[1] == 'R' && S[2] == 'R') {\n count = 3;\n } else if ((S[0] == 'R' && S[1] == 'R')|| (S[1] == 'R' && S[2] == 'R')) {\n count = 2;\n } else if (S[0] == 'R' || S[1] == 'R' || S[2] == 'R') {\n count = 1;\n }\n System.out.println(count);\n\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n char[] S = scanner.next().toCharArray();\n\n int count = 0;\n\n if (S[0] == 'R' && S[1] == 'R' && S[2] == 'R') {\n count = 3;\n } else if ((S[0] == 'R' && S[1] == 'R')|| (S[1] == 'R' && S[2] == 'R')) {\n count = 2;\n } else if (S[0] == 'R' || S[1] == 'R' || S[2] == 'R') {\n count = 1;\n }\n System.out.println(count);\n\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n\n char[] S = scanner.next().toCharArray();\n\n int count = 0;\n\n if (S[0] == 'R' && S[1] == 'R' && S[2] == 'R') {\n count = 3;\n } else if ((S[0] == 'R' && S[1] == 'R')|| (S[1] == 'R' && S[2] == 'R')) {\n count = 2;\n } else if (S[0] == 'R' || S[1] == 'R' || S[2] == 'R') {\n count = 1;\n }\n System.out.println(count);\n\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "char[] S = scanner.next().toCharArray();", "S", "scanner.next().toCharArray()", "scanner.next().toCharArray", "scanner.next()", "scanner.next", "scanner", "int count = 0;", "count", "0", "if (S[0] == 'R' && S[1] == 'R' && S[2] == 'R') {\n count = 3;\n } else if ((S[0] == 'R' && S[1] == 'R')|| (S[1] == 'R' && S[2] == 'R')) {\n count = 2;\n } else if (S[0] == 'R' || S[1] == 'R' || S[2] == 'R') {\n count = 1;\n }", "S[0] == 'R' && S[1] == 'R' && S[2] == 'R'", "S[0] == 'R' && S[1] == 'R' && S[2] == 'R'", "S[0] == 'R'", "S[0]", "S", "0", "'R'", "S[1] == 'R'", "S[1]", "S", "1", "'R'", "S[2] == 'R'", "S[2]", "S", "2", "'R'", "{\n count = 3;\n }", "count = 3", "count", "3", "if ((S[0] == 'R' && S[1] == 'R')|| (S[1] == 'R' && S[2] == 'R')) {\n count = 2;\n } else if (S[0] == 'R' || S[1] == 'R' || S[2] == 'R') {\n count = 1;\n }", "(S[0] == 'R' && S[1] == 'R')|| (S[1] == 'R' && S[2] == 'R')", "(S[0] == 'R' && S[1] == 'R')", "S[0] == 'R'", "S[0]", "S", "0", "'R'", "S[1] == 'R'", "S[1]", "S", "1", "'R'", "(S[1] == 'R' && S[2] == 'R')", "S[1] == 'R'", "S[1]", "S", "1", "'R'", "S[2] == 'R'", "S[2]", "S", "2", "'R'", "{\n count = 2;\n }", "count = 2", "count", "2", "if (S[0] == 'R' || S[1] == 'R' || S[2] == 'R') {\n count = 1;\n }", "S[0] == 'R' || S[1] == 'R' || S[2] == 'R'", "S[0] == 'R' || S[1] == 'R' || S[2] == 'R'", "S[0] == 'R'", "S[0]", "S", "0", "'R'", "S[1] == 'R'", "S[1]", "S", "1", "'R'", "S[2] == 'R'", "S[2]", "S", "2", "'R'", "{\n count = 1;\n }", "count = 1", "count", "1", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n char[] S = scanner.next().toCharArray();\n\n int count = 0;\n\n if (S[0] == 'R' && S[1] == 'R' && S[2] == 'R') {\n count = 3;\n } else if ((S[0] == 'R' && S[1] == 'R')|| (S[1] == 'R' && S[2] == 'R')) {\n count = 2;\n } else if (S[0] == 'R' || S[1] == 'R' || S[2] == 'R') {\n count = 1;\n }\n System.out.println(count);\n\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n char[] S = scanner.next().toCharArray();\n\n int count = 0;\n\n if (S[0] == 'R' && S[1] == 'R' && S[2] == 'R') {\n count = 3;\n } else if ((S[0] == 'R' && S[1] == 'R')|| (S[1] == 'R' && S[2] == 'R')) {\n count = 2;\n } else if (S[0] == 'R' || S[1] == 'R' || S[2] == 'R') {\n count = 1;\n }\n System.out.println(count);\n\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); char[] S = scanner.next().toCharArray(); int count = 0; if (S[0] == 'R' && S[1] == 'R' && S[2] == 'R') { count = 3; } else if ((S[0] == 'R' && S[1] == 'R')|| (S[1] == 'R' && S[2] == 'R')) { count = 2; } else if (S[0] == 'R' || S[1] == 'R' || S[2] == 'R') { count = 1; } System.out.println(count); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 4, 18, 13, 17, 14, 4, 18, 13, 17, 4, 18, 13, 17, 14, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 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, 41, 13, 4, 13, 41, 13, 20, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 14, 2, 4, 18, 13, 17, 17, 30, 0, 13, 17, 40, 13, 11, 1, 41, 13, 13, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 17, 30, 0, 13, 4, 18, 13, 4, 18, 13, 0, 13, 20, 0, 13, 17, 30, 4, 18, 13, 4, 18, 13, 13, 14, 13, 0, 13, 17, 0, 13, 2, 4, 18, 13, 4, 18, 13, 13, 29, 2, 13, 8, 13, 40, 17, 17, 12, 13, 30, 29, 4, 18, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 232, 8 ], [ 232, 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 ], [ 25, 26 ], [ 24, 27 ], [ 23, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 23, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 32, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 32, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 41, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 41, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 11, 54 ], [ 54, 55 ], [ 55, 56 ], [ 9, 57 ], [ 57, 58 ], [ 232, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 59, 63 ], [ 63, 64 ], [ 59, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 65, 71 ], [ 71, 72 ], [ 59, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 76, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 75, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 59, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 100, 101 ], [ 59, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 109 ], [ 109, 110 ], [ 59, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 59, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 123, 124 ], [ 120, 125 ], [ 125, 126 ], [ 125, 127 ], [ 120, 128 ], [ 128, 129 ], [ 128, 130 ], [ 120, 131 ], [ 131, 132 ], [ 131, 133 ], [ 120, 134 ], [ 134, 135 ], [ 134, 136 ], [ 120, 137 ], [ 137, 138 ], [ 137, 139 ], [ 120, 140 ], [ 140, 141 ], [ 140, 142 ], [ 120, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 145, 148 ], [ 144, 149 ], [ 143, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 150, 154 ], [ 154, 155 ], [ 120, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 156, 161 ], [ 161, 162 ], [ 161, 163 ], [ 163, 164 ], [ 164, 165 ], [ 156, 166 ], [ 166, 167 ], [ 167, 168 ], [ 156, 169 ], [ 170, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 173, 174 ], [ 174, 175 ], [ 173, 176 ], [ 172, 177 ], [ 171, 178 ], [ 178, 179 ], [ 179, 180 ], [ 179, 181 ], [ 181, 182 ], [ 182, 183 ], [ 181, 184 ], [ 184, 185 ], [ 185, 186 ], [ 178, 187 ], [ 187, 188 ], [ 187, 189 ], [ 178, 190 ], [ 190, 191 ], [ 190, 192 ], [ 171, 193 ], [ 193, 194 ], [ 194, 195 ], [ 195, 196 ], [ 194, 197 ], [ 197, 198 ], [ 198, 199 ], [ 197, 200 ], [ 193, 201 ], [ 201, 202 ], [ 201, 203 ], [ 203, 204 ], [ 203, 205 ], [ 120, 206 ], [ 206, 207 ], [ 206, 208 ], [ 208, 209 ], [ 209, 210 ], [ 210, 211 ], [ 209, 212 ], [ 212, 213 ], [ 213, 214 ], [ 208, 215 ], [ 120, 216 ], [ 216, 217 ], [ 217, 218 ], [ 217, 219 ], [ 219, 220 ], [ 219, 221 ], [ 221, 222 ], [ 219, 223 ], [ 59, 224 ], [ 224, 225 ], [ 224, 226 ], [ 226, 227 ], [ 227, 228 ], [ 228, 229 ], [ 229, 230 ], [ 0, 231 ], [ 231, 232 ], [ 231, 233 ] ]
[ "\nimport java.util.*;\nimport java.io.*;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n String input = sc.next();\n if(input.contains(\"RRR\")) pw.println(3);\n else if(input.contains(\"RR\")) pw.println(2);\n else if(input.contains(\"R\")) pw.println(1);\n else pw.println(0);\n pw.close();\n }\n\n static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public int nextInt() throws IOException { return Integer.parseInt(next()); }\n public long nextLong() throws IOException { return Long.parseLong(next()); }\n public String nextLine() throws IOException { return br.readLine(); }\n public double nextDouble() throws IOException {\n String x = next();\n StringBuilder sb = new StringBuilder(\"0\");\n double res = 0, f = 1;\n boolean dec = false, neg = false;\n int start = 0;\n if(x.charAt(0) == '-') {\n neg = true;\n start++;\n }\n for(int i = start; i < x.length(); i++) {\n if(x.charAt(i) == '.') {\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n } else {\n sb.append(x.charAt(i));\n if(dec) f *= 10;\n }\n }\n res += Long.parseLong(sb.toString()) /f;\n return res * (neg ? -1 : 1);\n }\n public boolean ready() throws IOException { return br.ready(); }\n }\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "public class Main {\n public static void main(String[] args) throws IOException {\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n String input = sc.next();\n if(input.contains(\"RRR\")) pw.println(3);\n else if(input.contains(\"RR\")) pw.println(2);\n else if(input.contains(\"R\")) pw.println(1);\n else pw.println(0);\n pw.close();\n }\n\n static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public int nextInt() throws IOException { return Integer.parseInt(next()); }\n public long nextLong() throws IOException { return Long.parseLong(next()); }\n public String nextLine() throws IOException { return br.readLine(); }\n public double nextDouble() throws IOException {\n String x = next();\n StringBuilder sb = new StringBuilder(\"0\");\n double res = 0, f = 1;\n boolean dec = false, neg = false;\n int start = 0;\n if(x.charAt(0) == '-') {\n neg = true;\n start++;\n }\n for(int i = start; i < x.length(); i++) {\n if(x.charAt(i) == '.') {\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n } else {\n sb.append(x.charAt(i));\n if(dec) f *= 10;\n }\n }\n res += Long.parseLong(sb.toString()) /f;\n return res * (neg ? -1 : 1);\n }\n public boolean ready() throws IOException { return br.ready(); }\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n String input = sc.next();\n if(input.contains(\"RRR\")) pw.println(3);\n else if(input.contains(\"RR\")) pw.println(2);\n else if(input.contains(\"R\")) pw.println(1);\n else pw.println(0);\n pw.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n String input = sc.next();\n if(input.contains(\"RRR\")) pw.println(3);\n else if(input.contains(\"RR\")) pw.println(2);\n else if(input.contains(\"R\")) pw.println(1);\n else pw.println(0);\n pw.close();\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "PrintWriter pw = new PrintWriter(System.out);", "pw", "new PrintWriter(System.out)", "String input = sc.next();", "input", "sc.next()", "sc.next", "sc", "if(input.contains(\"RRR\")) pw.println(3);\n else if(input.contains(\"RR\")) pw.println(2);\n else if(input.contains(\"R\")) pw.println(1);\n else pw.println(0);", "input.contains(\"RRR\")", "input.contains", "input", "\"RRR\"", "pw.println(3)", "pw.println", "pw", "3", "if(input.contains(\"RR\")) pw.println(2);\n else if(input.contains(\"R\")) pw.println(1);\n else pw.println(0);", "input.contains(\"RR\")", "input.contains", "input", "\"RR\"", "pw.println(2)", "pw.println", "pw", "2", "if(input.contains(\"R\")) pw.println(1);\n else pw.println(0);", "input.contains(\"R\")", "input.contains", "input", "\"R\"", "pw.println(1)", "pw.println", "pw", "1", "pw.println(0)", "pw.println", "pw", "0", "pw.close()", "pw.close", "pw", "String[] args", "args", "static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public int nextInt() throws IOException { return Integer.parseInt(next()); }\n public long nextLong() throws IOException { return Long.parseLong(next()); }\n public String nextLine() throws IOException { return br.readLine(); }\n public double nextDouble() throws IOException {\n String x = next();\n StringBuilder sb = new StringBuilder(\"0\");\n double res = 0, f = 1;\n boolean dec = false, neg = false;\n int start = 0;\n if(x.charAt(0) == '-') {\n neg = true;\n start++;\n }\n for(int i = start; i < x.length(); i++) {\n if(x.charAt(i) == '.') {\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n } else {\n sb.append(x.charAt(i));\n if(dec) f *= 10;\n }\n }\n res += Long.parseLong(sb.toString()) /f;\n return res * (neg ? -1 : 1);\n }\n public boolean ready() throws IOException { return br.ready(); }\n }", "Scanner", "StringTokenizer st;", "st", "BufferedReader br;", "br", "public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }", "Scanner", "{\n br = new BufferedReader(new InputStreamReader(s));\n }", "br = new BufferedReader(new InputStreamReader(s))", "br", "new BufferedReader(new InputStreamReader(s))", "InputStream s", "s", "public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }", "next", "{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }", "while (st == null || !st.hasMoreTokens()) {\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 double nextDouble() throws IOException {\n String x = next();\n StringBuilder sb = new StringBuilder(\"0\");\n double res = 0, f = 1;\n boolean dec = false, neg = false;\n int start = 0;\n if(x.charAt(0) == '-') {\n neg = true;\n start++;\n }\n for(int i = start; i < x.length(); i++) {\n if(x.charAt(i) == '.') {\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n } else {\n sb.append(x.charAt(i));\n if(dec) f *= 10;\n }\n }\n res += Long.parseLong(sb.toString()) /f;\n return res * (neg ? -1 : 1);\n }", "nextDouble", "{\n String x = next();\n StringBuilder sb = new StringBuilder(\"0\");\n double res = 0, f = 1;\n boolean dec = false, neg = false;\n int start = 0;\n if(x.charAt(0) == '-') {\n neg = true;\n start++;\n }\n for(int i = start; i < x.length(); i++) {\n if(x.charAt(i) == '.') {\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n } else {\n sb.append(x.charAt(i));\n if(dec) f *= 10;\n }\n }\n res += Long.parseLong(sb.toString()) /f;\n return res * (neg ? -1 : 1);\n }", "String x = next();", "x", "next()", "next", "StringBuilder sb = new StringBuilder(\"0\");", "sb", "new StringBuilder(\"0\")", "double res = 0", "res", "0", "f = 1;", "f", "1", "boolean dec = false", "dec", "false", "neg = false;", "neg", "false", "int start = 0;", "start", "0", "if(x.charAt(0) == '-') {\n neg = true;\n start++;\n }", "x.charAt(0) == '-'", "x.charAt(0)", "x.charAt", "x", "0", "'-'", "{\n neg = true;\n start++;\n }", "neg = true", "neg", "true", "start++", "start", "for(int i = start; i < x.length(); i++) {\n if(x.charAt(i) == '.') {\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n } else {\n sb.append(x.charAt(i));\n if(dec) f *= 10;\n }\n }", "int i = start;", "int i = start;", "i", "start", "i < x.length()", "i", "x.length()", "x.length", "x", "i++", "i++", "i", "{\n if(x.charAt(i) == '.') {\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n } else {\n sb.append(x.charAt(i));\n if(dec) f *= 10;\n }\n }", "{\n if(x.charAt(i) == '.') {\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n } else {\n sb.append(x.charAt(i));\n if(dec) f *= 10;\n }\n }", "if(x.charAt(i) == '.') {\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n } else {\n sb.append(x.charAt(i));\n if(dec) f *= 10;\n }", "x.charAt(i) == '.'", "x.charAt(i)", "x.charAt", "x", "i", "'.'", "{\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n }", "res = Long.parseLong(sb.toString())", "res", "Long.parseLong(sb.toString())", "Long.parseLong", "Long", "sb.toString()", "sb.toString", "sb", "sb = new StringBuilder(\"0\")", "sb", "new StringBuilder(\"0\")", "dec = true", "dec", "true", "{\n sb.append(x.charAt(i));\n if(dec) f *= 10;\n }", "sb.append(x.charAt(i))", "sb.append", "sb", "x.charAt(i)", "x.charAt", "x", "i", "if(dec) f *= 10;", "dec", "f *= 10", "f", "10", "res += Long.parseLong(sb.toString()) /f", "res", "Long.parseLong(sb.toString()) /f", "Long.parseLong(sb.toString())", "Long.parseLong", "Long", "sb.toString()", "sb.toString", "sb", "f", "return res * (neg ? -1 : 1);", "res * (neg ? -1 : 1)", "res", "(neg ? -1 : 1)", "neg", "-1", "1", "1", "public boolean ready() throws IOException { return br.ready(); }", "ready", "{ return br.ready(); }", "return br.ready();", "br.ready()", "br.ready", "br", "public class Main {\n public static void main(String[] args) throws IOException {\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n String input = sc.next();\n if(input.contains(\"RRR\")) pw.println(3);\n else if(input.contains(\"RR\")) pw.println(2);\n else if(input.contains(\"R\")) pw.println(1);\n else pw.println(0);\n pw.close();\n }\n\n static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public int nextInt() throws IOException { return Integer.parseInt(next()); }\n public long nextLong() throws IOException { return Long.parseLong(next()); }\n public String nextLine() throws IOException { return br.readLine(); }\n public double nextDouble() throws IOException {\n String x = next();\n StringBuilder sb = new StringBuilder(\"0\");\n double res = 0, f = 1;\n boolean dec = false, neg = false;\n int start = 0;\n if(x.charAt(0) == '-') {\n neg = true;\n start++;\n }\n for(int i = start; i < x.length(); i++) {\n if(x.charAt(i) == '.') {\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n } else {\n sb.append(x.charAt(i));\n if(dec) f *= 10;\n }\n }\n res += Long.parseLong(sb.toString()) /f;\n return res * (neg ? -1 : 1);\n }\n public boolean ready() throws IOException { return br.ready(); }\n }\n}", "public class Main {\n public static void main(String[] args) throws IOException {\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n String input = sc.next();\n if(input.contains(\"RRR\")) pw.println(3);\n else if(input.contains(\"RR\")) pw.println(2);\n else if(input.contains(\"R\")) pw.println(1);\n else pw.println(0);\n pw.close();\n }\n\n static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public int nextInt() throws IOException { return Integer.parseInt(next()); }\n public long nextLong() throws IOException { return Long.parseLong(next()); }\n public String nextLine() throws IOException { return br.readLine(); }\n public double nextDouble() throws IOException {\n String x = next();\n StringBuilder sb = new StringBuilder(\"0\");\n double res = 0, f = 1;\n boolean dec = false, neg = false;\n int start = 0;\n if(x.charAt(0) == '-') {\n neg = true;\n start++;\n }\n for(int i = start; i < x.length(); i++) {\n if(x.charAt(i) == '.') {\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n } else {\n sb.append(x.charAt(i));\n if(dec) f *= 10;\n }\n }\n res += Long.parseLong(sb.toString()) /f;\n return res * (neg ? -1 : 1);\n }\n public boolean ready() throws IOException { return br.ready(); }\n }\n}", "Main" ]
import java.util.*; import java.io.*; public class Main { public static void main(String[] args) throws IOException { Scanner sc = new Scanner(System.in); PrintWriter pw = new PrintWriter(System.out); String input = sc.next(); if(input.contains("RRR")) pw.println(3); else if(input.contains("RR")) pw.println(2); else if(input.contains("R")) pw.println(1); else pw.println(0); pw.close(); } 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 double nextDouble() throws IOException { String x = next(); StringBuilder sb = new StringBuilder("0"); double res = 0, f = 1; boolean dec = false, neg = false; int start = 0; if(x.charAt(0) == '-') { neg = true; start++; } for(int i = start; i < x.length(); i++) { if(x.charAt(i) == '.') { res = Long.parseLong(sb.toString()); sb = new StringBuilder("0"); dec = true; } else { sb.append(x.charAt(i)); if(dec) f *= 10; } } res += Long.parseLong(sb.toString()) /f; return res * (neg ? -1 : 1); } public boolean ready() throws IOException { return br.ready(); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 4, 18, 13, 14, 2, 2, 2, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 30, 0, 13, 17, 14, 2, 4, 18, 13, 17, 4, 18, 13, 17, 30, 0, 13, 17, 14, 4, 18, 13, 17, 30, 0, 13, 17, 14, 4, 18, 13, 17, 30, 0, 13, 17, 4, 18, 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 ], [ 26, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 27, 30 ], [ 26, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 25, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 26, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 23, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 23, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 48, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 47, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 47, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 61, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 61, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 70, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 11, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 9, 83 ], [ 83, 84 ] ]
[ "import static java.lang.System.*;\nimport java.util.Scanner;\nclass Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int ans = 0;\n String s = sc.next();\n if((s.equals(\"SSR\")) || (s.equals(\"SRS\")) || (s.equals(\"RSS\")) || (s.equals(\"RSR\"))){\n ans = 1;\n }else if((s.equals(\"RRS\")) || (s.equals(\"SRR\"))){\n ans = 2;\n }else if(s.equals(\"RRR\")){\n ans = 3;\n }else if(s.equals(\"SSS\")){\n ans = 0;\n }\n out.println(ans);\n \n }\n}", "import static java.lang.System.*;", "import static java.lang.System.*;", "import static java.lang.System.*;", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int ans = 0;\n String s = sc.next();\n if((s.equals(\"SSR\")) || (s.equals(\"SRS\")) || (s.equals(\"RSS\")) || (s.equals(\"RSR\"))){\n ans = 1;\n }else if((s.equals(\"RRS\")) || (s.equals(\"SRR\"))){\n ans = 2;\n }else if(s.equals(\"RRR\")){\n ans = 3;\n }else if(s.equals(\"SSS\")){\n ans = 0;\n }\n out.println(ans);\n \n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int ans = 0;\n String s = sc.next();\n if((s.equals(\"SSR\")) || (s.equals(\"SRS\")) || (s.equals(\"RSS\")) || (s.equals(\"RSR\"))){\n ans = 1;\n }else if((s.equals(\"RRS\")) || (s.equals(\"SRR\"))){\n ans = 2;\n }else if(s.equals(\"RRR\")){\n ans = 3;\n }else if(s.equals(\"SSS\")){\n ans = 0;\n }\n out.println(ans);\n \n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int ans = 0;\n String s = sc.next();\n if((s.equals(\"SSR\")) || (s.equals(\"SRS\")) || (s.equals(\"RSS\")) || (s.equals(\"RSR\"))){\n ans = 1;\n }else if((s.equals(\"RRS\")) || (s.equals(\"SRR\"))){\n ans = 2;\n }else if(s.equals(\"RRR\")){\n ans = 3;\n }else if(s.equals(\"SSS\")){\n ans = 0;\n }\n out.println(ans);\n \n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int ans = 0;", "ans", "0", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "if((s.equals(\"SSR\")) || (s.equals(\"SRS\")) || (s.equals(\"RSS\")) || (s.equals(\"RSR\"))){\n ans = 1;\n }else if((s.equals(\"RRS\")) || (s.equals(\"SRR\"))){\n ans = 2;\n }else if(s.equals(\"RRR\")){\n ans = 3;\n }else if(s.equals(\"SSS\")){\n ans = 0;\n }", "(s.equals(\"SSR\")) || (s.equals(\"SRS\")) || (s.equals(\"RSS\")) || (s.equals(\"RSR\"))", "(s.equals(\"RSS\"))", "(s.equals(\"SSR\")) || (s.equals(\"SRS\")) || (s.equals(\"RSS\")) || (s.equals(\"RSR\"))", "(s.equals(\"SSR\"))", "s.equals", "s", "\"SSR\"", "(s.equals(\"SRS\"))", "s.equals", "s", "\"SRS\"", "(s.equals(\"RSS\"))", "s.equals", "s", "\"RSS\"", "(s.equals(\"RSR\"))", "s.equals", "s", "\"RSR\"", "{\n ans = 1;\n }", "ans = 1", "ans", "1", "if((s.equals(\"RRS\")) || (s.equals(\"SRR\"))){\n ans = 2;\n }else if(s.equals(\"RRR\")){\n ans = 3;\n }else if(s.equals(\"SSS\")){\n ans = 0;\n }", "(s.equals(\"RRS\")) || (s.equals(\"SRR\"))", "(s.equals(\"RRS\"))", "s.equals", "s", "\"RRS\"", "(s.equals(\"SRR\"))", "s.equals", "s", "\"SRR\"", "{\n ans = 2;\n }", "ans = 2", "ans", "2", "if(s.equals(\"RRR\")){\n ans = 3;\n }else if(s.equals(\"SSS\")){\n ans = 0;\n }", "s.equals(\"RRR\")", "s.equals", "s", "\"RRR\"", "{\n ans = 3;\n }", "ans = 3", "ans", "3", "if(s.equals(\"SSS\")){\n ans = 0;\n }", "s.equals(\"SSS\")", "s.equals", "s", "\"SSS\"", "{\n ans = 0;\n }", "ans = 0", "ans", "0", "out.println(ans)", "out.println", "out", "ans", "String[] args", "args" ]
import static java.lang.System.*; import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int ans = 0; String s = sc.next(); if((s.equals("SSR")) || (s.equals("SRS")) || (s.equals("RSS")) || (s.equals("RSR"))){ ans = 1; }else if((s.equals("RRS")) || (s.equals("SRR"))){ ans = 2; }else if(s.equals("RRR")){ ans = 3; }else if(s.equals("SSS")){ ans = 0; } out.println(ans); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 17, 41, 13, 17, 14, 2, 13, 17, 40, 13, 14, 2, 13, 17, 40, 13, 14, 2, 13, 17, 40, 13, 14, 2, 13, 17, 30, 4, 13, 17, 29, 14, 2, 13, 17, 30, 14, 2, 2, 13, 17, 2, 13, 17, 30, 4, 13, 17, 29, 4, 13, 17, 29, 14, 2, 13, 17, 30, 4, 13, 17, 29, 4, 13, 17, 23, 13, 12, 13, 30, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 116, 5 ], [ 116, 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 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 8, 38 ], [ 38, 39 ], [ 38, 40 ], [ 8, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 45, 46 ], [ 8, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 51, 52 ], [ 8, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 57, 58 ], [ 8, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 8, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 78, 79 ], [ 78, 80 ], [ 73, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 72, 86 ], [ 86, 87 ], [ 86, 88 ], [ 72, 89 ], [ 8, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 90, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 8, 99 ], [ 99, 100 ], [ 99, 101 ], [ 6, 102 ], [ 102, 103 ], [ 116, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 107, 112 ], [ 104, 113 ], [ 113, 114 ], [ 0, 115 ], [ 115, 116 ], [ 115, 117 ] ]
[ "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\tString s = sc.next();\n\t\tsc.close();\n\n\t\tchar one = s.charAt(0);\n\t\tchar two = s.charAt(1);\n\t\tchar three = s.charAt(2);\n\n\t\tint count = 0;\n\n\t\tif (one == 'R')\n\t\t\tcount++;\n\t\tif (two == 'R')\n\t\t\tcount++;\n\t\tif (three == 'R')\n\t\t\tcount++;\n\n\t\tif (count == 3) {\n\t\t\tprint(3);\n\t\t\treturn;\n\t\t}\n\t\tif (count == 2) {\n\t\t\tif (one == 'R' && three == 'R') {\n\t\t\t\tprint(1);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tprint(2);\n\t\t\treturn;\n\t\t}\n\t\tif (count == 1) {\n\t\t\tprint(1);\n\t\t\treturn;\n\t\t}\n\t\tprint(0);\n\t}\n\n\tpublic static void print(Object obj) {\n\t\tSystem.out.println(obj);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tsc.close();\n\n\t\tchar one = s.charAt(0);\n\t\tchar two = s.charAt(1);\n\t\tchar three = s.charAt(2);\n\n\t\tint count = 0;\n\n\t\tif (one == 'R')\n\t\t\tcount++;\n\t\tif (two == 'R')\n\t\t\tcount++;\n\t\tif (three == 'R')\n\t\t\tcount++;\n\n\t\tif (count == 3) {\n\t\t\tprint(3);\n\t\t\treturn;\n\t\t}\n\t\tif (count == 2) {\n\t\t\tif (one == 'R' && three == 'R') {\n\t\t\t\tprint(1);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tprint(2);\n\t\t\treturn;\n\t\t}\n\t\tif (count == 1) {\n\t\t\tprint(1);\n\t\t\treturn;\n\t\t}\n\t\tprint(0);\n\t}\n\n\tpublic static void print(Object obj) {\n\t\tSystem.out.println(obj);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tsc.close();\n\n\t\tchar one = s.charAt(0);\n\t\tchar two = s.charAt(1);\n\t\tchar three = s.charAt(2);\n\n\t\tint count = 0;\n\n\t\tif (one == 'R')\n\t\t\tcount++;\n\t\tif (two == 'R')\n\t\t\tcount++;\n\t\tif (three == 'R')\n\t\t\tcount++;\n\n\t\tif (count == 3) {\n\t\t\tprint(3);\n\t\t\treturn;\n\t\t}\n\t\tif (count == 2) {\n\t\t\tif (one == 'R' && three == 'R') {\n\t\t\t\tprint(1);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tprint(2);\n\t\t\treturn;\n\t\t}\n\t\tif (count == 1) {\n\t\t\tprint(1);\n\t\t\treturn;\n\t\t}\n\t\tprint(0);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tsc.close();\n\n\t\tchar one = s.charAt(0);\n\t\tchar two = s.charAt(1);\n\t\tchar three = s.charAt(2);\n\n\t\tint count = 0;\n\n\t\tif (one == 'R')\n\t\t\tcount++;\n\t\tif (two == 'R')\n\t\t\tcount++;\n\t\tif (three == 'R')\n\t\t\tcount++;\n\n\t\tif (count == 3) {\n\t\t\tprint(3);\n\t\t\treturn;\n\t\t}\n\t\tif (count == 2) {\n\t\t\tif (one == 'R' && three == 'R') {\n\t\t\t\tprint(1);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tprint(2);\n\t\t\treturn;\n\t\t}\n\t\tif (count == 1) {\n\t\t\tprint(1);\n\t\t\treturn;\n\t\t}\n\t\tprint(0);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "sc.close()", "sc.close", "sc", "char one = s.charAt(0);", "one", "s.charAt(0)", "s.charAt", "s", "0", "char two = s.charAt(1);", "two", "s.charAt(1)", "s.charAt", "s", "1", "char three = s.charAt(2);", "three", "s.charAt(2)", "s.charAt", "s", "2", "int count = 0;", "count", "0", "if (one == 'R')\n\t\t\tcount++;", "one == 'R'", "one", "'R'", "count++", "count", "if (two == 'R')\n\t\t\tcount++;", "two == 'R'", "two", "'R'", "count++", "count", "if (three == 'R')\n\t\t\tcount++;", "three == 'R'", "three", "'R'", "count++", "count", "if (count == 3) {\n\t\t\tprint(3);\n\t\t\treturn;\n\t\t}", "count == 3", "count", "3", "{\n\t\t\tprint(3);\n\t\t\treturn;\n\t\t}", "print(3)", "print", "3", "return;", "if (count == 2) {\n\t\t\tif (one == 'R' && three == 'R') {\n\t\t\t\tprint(1);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tprint(2);\n\t\t\treturn;\n\t\t}", "count == 2", "count", "2", "{\n\t\t\tif (one == 'R' && three == 'R') {\n\t\t\t\tprint(1);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tprint(2);\n\t\t\treturn;\n\t\t}", "if (one == 'R' && three == 'R') {\n\t\t\t\tprint(1);\n\t\t\t\treturn;\n\t\t\t}", "one == 'R' && three == 'R'", "one == 'R'", "one", "'R'", "three == 'R'", "three", "'R'", "{\n\t\t\t\tprint(1);\n\t\t\t\treturn;\n\t\t\t}", "print(1)", "print", "1", "return;", "print(2)", "print", "2", "return;", "if (count == 1) {\n\t\t\tprint(1);\n\t\t\treturn;\n\t\t}", "count == 1", "count", "1", "{\n\t\t\tprint(1);\n\t\t\treturn;\n\t\t}", "print(1)", "print", "1", "return;", "print(0)", "print", "0", "String[] args", "args", "public static void print(Object obj) {\n\t\tSystem.out.println(obj);\n\t}", "print", "{\n\t\tSystem.out.println(obj);\n\t}", "System.out.println(obj)", "System.out.println", "System.out", "System", "System.out", "obj", "Object obj", "obj", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tsc.close();\n\n\t\tchar one = s.charAt(0);\n\t\tchar two = s.charAt(1);\n\t\tchar three = s.charAt(2);\n\n\t\tint count = 0;\n\n\t\tif (one == 'R')\n\t\t\tcount++;\n\t\tif (two == 'R')\n\t\t\tcount++;\n\t\tif (three == 'R')\n\t\t\tcount++;\n\n\t\tif (count == 3) {\n\t\t\tprint(3);\n\t\t\treturn;\n\t\t}\n\t\tif (count == 2) {\n\t\t\tif (one == 'R' && three == 'R') {\n\t\t\t\tprint(1);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tprint(2);\n\t\t\treturn;\n\t\t}\n\t\tif (count == 1) {\n\t\t\tprint(1);\n\t\t\treturn;\n\t\t}\n\t\tprint(0);\n\t}\n\n\tpublic static void print(Object obj) {\n\t\tSystem.out.println(obj);\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tsc.close();\n\n\t\tchar one = s.charAt(0);\n\t\tchar two = s.charAt(1);\n\t\tchar three = s.charAt(2);\n\n\t\tint count = 0;\n\n\t\tif (one == 'R')\n\t\t\tcount++;\n\t\tif (two == 'R')\n\t\t\tcount++;\n\t\tif (three == 'R')\n\t\t\tcount++;\n\n\t\tif (count == 3) {\n\t\t\tprint(3);\n\t\t\treturn;\n\t\t}\n\t\tif (count == 2) {\n\t\t\tif (one == 'R' && three == 'R') {\n\t\t\t\tprint(1);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tprint(2);\n\t\t\treturn;\n\t\t}\n\t\tif (count == 1) {\n\t\t\tprint(1);\n\t\t\treturn;\n\t\t}\n\t\tprint(0);\n\t}\n\n\tpublic static void print(Object obj) {\n\t\tSystem.out.println(obj);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); sc.close(); char one = s.charAt(0); char two = s.charAt(1); char three = s.charAt(2); int count = 0; if (one == 'R') count++; if (two == 'R') count++; if (three == 'R') count++; if (count == 3) { print(3); return; } if (count == 2) { if (one == 'R' && three == 'R') { print(1); return; } print(2); return; } if (count == 1) { print(1); return; } print(0); } public static void print(Object obj) { System.out.println(obj); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 14, 2, 2, 2, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 40, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 78, 5 ], [ 78, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 20, 19 ], [ 19, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 19, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 20, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 17, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 17, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 44, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 51, 56 ], [ 44, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 57, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 57, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 6, 75 ], [ 75, 76 ], [ 0, 77 ], [ 77, 78 ], [ 77, 79 ] ]
[ "\nimport java.util.*;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n String s = in.next();\n if (s.equalsIgnoreCase(\"SRS\")\n || s.equalsIgnoreCase(\"SSR\")\n || s.equalsIgnoreCase(\"RSS\")\n || s.equalsIgnoreCase(\"RSR\")) {\n System.out.println(1);\n }\n else if(!s.contains(\"R\")){\n System.out.println(0);\n }\n else if(s.equalsIgnoreCase(\"RRR\")){\n System.out.println(3);\n }\n else System.out.println(2);\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n String s = in.next();\n if (s.equalsIgnoreCase(\"SRS\")\n || s.equalsIgnoreCase(\"SSR\")\n || s.equalsIgnoreCase(\"RSS\")\n || s.equalsIgnoreCase(\"RSR\")) {\n System.out.println(1);\n }\n else if(!s.contains(\"R\")){\n System.out.println(0);\n }\n else if(s.equalsIgnoreCase(\"RRR\")){\n System.out.println(3);\n }\n else System.out.println(2);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n String s = in.next();\n if (s.equalsIgnoreCase(\"SRS\")\n || s.equalsIgnoreCase(\"SSR\")\n || s.equalsIgnoreCase(\"RSS\")\n || s.equalsIgnoreCase(\"RSR\")) {\n System.out.println(1);\n }\n else if(!s.contains(\"R\")){\n System.out.println(0);\n }\n else if(s.equalsIgnoreCase(\"RRR\")){\n System.out.println(3);\n }\n else System.out.println(2);\n }", "main", "{\n Scanner in = new Scanner(System.in);\n String s = in.next();\n if (s.equalsIgnoreCase(\"SRS\")\n || s.equalsIgnoreCase(\"SSR\")\n || s.equalsIgnoreCase(\"RSS\")\n || s.equalsIgnoreCase(\"RSR\")) {\n System.out.println(1);\n }\n else if(!s.contains(\"R\")){\n System.out.println(0);\n }\n else if(s.equalsIgnoreCase(\"RRR\")){\n System.out.println(3);\n }\n else System.out.println(2);\n }", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "String s = in.next();", "s", "in.next()", "in.next", "in", "if (s.equalsIgnoreCase(\"SRS\")\n || s.equalsIgnoreCase(\"SSR\")\n || s.equalsIgnoreCase(\"RSS\")\n || s.equalsIgnoreCase(\"RSR\")) {\n System.out.println(1);\n }\n else if(!s.contains(\"R\")){\n System.out.println(0);\n }\n else if(s.equalsIgnoreCase(\"RRR\")){\n System.out.println(3);\n }\n else System.out.println(2);", "s.equalsIgnoreCase(\"SRS\")\n || s.equalsIgnoreCase(\"SSR\")\n || s.equalsIgnoreCase(\"RSS\")\n || s.equalsIgnoreCase(\"RSR\")", "s.equalsIgnoreCase(\"RSS\")", "s.equalsIgnoreCase(\"SRS\")\n || s.equalsIgnoreCase(\"SSR\")\n || s.equalsIgnoreCase(\"RSS\")\n || s.equalsIgnoreCase(\"RSR\")", "s.equalsIgnoreCase(\"SRS\")", "s.equalsIgnoreCase", "s", "\"SRS\"", "s.equalsIgnoreCase(\"SSR\")", "s.equalsIgnoreCase", "s", "\"SSR\"", "s.equalsIgnoreCase(\"RSS\")", "s.equalsIgnoreCase", "s", "\"RSS\"", "s.equalsIgnoreCase(\"RSR\")", "s.equalsIgnoreCase", "s", "\"RSR\"", "{\n System.out.println(1);\n }", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "if(!s.contains(\"R\")){\n System.out.println(0);\n }\n else if(s.equalsIgnoreCase(\"RRR\")){\n System.out.println(3);\n }\n else System.out.println(2);", "!s.contains(\"R\")", "s.contains(\"R\")", "s.contains", "s", "\"R\"", "{\n System.out.println(0);\n }", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "if(s.equalsIgnoreCase(\"RRR\")){\n System.out.println(3);\n }\n else System.out.println(2);", "s.equalsIgnoreCase(\"RRR\")", "s.equalsIgnoreCase", "s", "\"RRR\"", "{\n System.out.println(3);\n }", "System.out.println(3)", "System.out.println", "System.out", "System", "System.out", "3", "System.out.println(2)", "System.out.println", "System.out", "System", "System.out", "2", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n String s = in.next();\n if (s.equalsIgnoreCase(\"SRS\")\n || s.equalsIgnoreCase(\"SSR\")\n || s.equalsIgnoreCase(\"RSS\")\n || s.equalsIgnoreCase(\"RSR\")) {\n System.out.println(1);\n }\n else if(!s.contains(\"R\")){\n System.out.println(0);\n }\n else if(s.equalsIgnoreCase(\"RRR\")){\n System.out.println(3);\n }\n else System.out.println(2);\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n String s = in.next();\n if (s.equalsIgnoreCase(\"SRS\")\n || s.equalsIgnoreCase(\"SSR\")\n || s.equalsIgnoreCase(\"RSS\")\n || s.equalsIgnoreCase(\"RSR\")) {\n System.out.println(1);\n }\n else if(!s.contains(\"R\")){\n System.out.println(0);\n }\n else if(s.equalsIgnoreCase(\"RRR\")){\n System.out.println(3);\n }\n else System.out.println(2);\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); String s = in.next(); if (s.equalsIgnoreCase("SRS") || s.equalsIgnoreCase("SSR") || s.equalsIgnoreCase("RSS") || s.equalsIgnoreCase("RSR")) { System.out.println(1); } else if(!s.contains("R")){ System.out.println(0); } else if(s.equalsIgnoreCase("RRR")){ System.out.println(3); } else System.out.println(2); } }
[ 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, 4, 18, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 13, 14, 2, 13, 17, 30, 0, 13, 17, 30, 40, 13, 0, 13, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 74, 5 ], [ 74, 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 ], [ 30, 31 ], [ 31, 32 ], [ 23, 33 ], [ 33, 34 ], [ 34, 35 ], [ 23, 36 ], [ 37, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 37, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 44, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 57, 61 ], [ 8, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 8, 68 ], [ 68, 69 ], [ 69, 70 ], [ 6, 71 ], [ 71, 72 ], [ 0, 73 ], [ 73, 74 ], [ 73, 75 ] ]
[ "import java.util.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner reader = new Scanner(System.in);\n\t\tString str = reader.next();\n\t\tint maxR = 0, currR = 0;\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\tchar curr = str.charAt(i);\n\t\t\tif (curr == 'S') {\n\t\t\t\tcurrR = 0;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcurrR++;\n\t\t\t\tmaxR = Math.max(maxR, currR);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(maxR);\n\t\t\n\t\treader.close();\n\t}\n\t\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner reader = new Scanner(System.in);\n\t\tString str = reader.next();\n\t\tint maxR = 0, currR = 0;\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\tchar curr = str.charAt(i);\n\t\t\tif (curr == 'S') {\n\t\t\t\tcurrR = 0;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcurrR++;\n\t\t\t\tmaxR = Math.max(maxR, currR);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(maxR);\n\t\t\n\t\treader.close();\n\t}\n\t\n}", "Main", "public static void main(String[] args) {\n\t\tScanner reader = new Scanner(System.in);\n\t\tString str = reader.next();\n\t\tint maxR = 0, currR = 0;\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\tchar curr = str.charAt(i);\n\t\t\tif (curr == 'S') {\n\t\t\t\tcurrR = 0;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcurrR++;\n\t\t\t\tmaxR = Math.max(maxR, currR);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(maxR);\n\t\t\n\t\treader.close();\n\t}", "main", "{\n\t\tScanner reader = new Scanner(System.in);\n\t\tString str = reader.next();\n\t\tint maxR = 0, currR = 0;\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\tchar curr = str.charAt(i);\n\t\t\tif (curr == 'S') {\n\t\t\t\tcurrR = 0;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcurrR++;\n\t\t\t\tmaxR = Math.max(maxR, currR);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(maxR);\n\t\t\n\t\treader.close();\n\t}", "Scanner reader = new Scanner(System.in);", "reader", "new Scanner(System.in)", "String str = reader.next();", "str", "reader.next()", "reader.next", "reader", "int maxR = 0", "maxR", "0", "currR = 0;", "currR", "0", "for (int i = 0; i < str.length(); i++) {\n\t\t\tchar curr = str.charAt(i);\n\t\t\tif (curr == 'S') {\n\t\t\t\tcurrR = 0;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcurrR++;\n\t\t\t\tmaxR = Math.max(maxR, currR);\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < str.length()", "i", "str.length()", "str.length", "str", "i++", "i++", "i", "{\n\t\t\tchar curr = str.charAt(i);\n\t\t\tif (curr == 'S') {\n\t\t\t\tcurrR = 0;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcurrR++;\n\t\t\t\tmaxR = Math.max(maxR, currR);\n\t\t\t}\n\t\t}", "{\n\t\t\tchar curr = str.charAt(i);\n\t\t\tif (curr == 'S') {\n\t\t\t\tcurrR = 0;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcurrR++;\n\t\t\t\tmaxR = Math.max(maxR, currR);\n\t\t\t}\n\t\t}", "char curr = str.charAt(i);", "curr", "str.charAt(i)", "str.charAt", "str", "i", "if (curr == 'S') {\n\t\t\t\tcurrR = 0;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcurrR++;\n\t\t\t\tmaxR = Math.max(maxR, currR);\n\t\t\t}", "curr == 'S'", "curr", "'S'", "{\n\t\t\t\tcurrR = 0;\n\t\t\t}", "currR = 0", "currR", "0", "{\n\t\t\t\tcurrR++;\n\t\t\t\tmaxR = Math.max(maxR, currR);\n\t\t\t}", "currR++", "currR", "maxR = Math.max(maxR, currR)", "maxR", "Math.max(maxR, currR)", "Math.max", "Math", "maxR", "currR", "System.out.println(maxR)", "System.out.println", "System.out", "System", "System.out", "maxR", "reader.close()", "reader.close", "reader", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner reader = new Scanner(System.in);\n\t\tString str = reader.next();\n\t\tint maxR = 0, currR = 0;\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\tchar curr = str.charAt(i);\n\t\t\tif (curr == 'S') {\n\t\t\t\tcurrR = 0;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcurrR++;\n\t\t\t\tmaxR = Math.max(maxR, currR);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(maxR);\n\t\t\n\t\treader.close();\n\t}\n\t\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner reader = new Scanner(System.in);\n\t\tString str = reader.next();\n\t\tint maxR = 0, currR = 0;\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\tchar curr = str.charAt(i);\n\t\t\tif (curr == 'S') {\n\t\t\t\tcurrR = 0;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcurrR++;\n\t\t\t\tmaxR = Math.max(maxR, currR);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(maxR);\n\t\t\n\t\treader.close();\n\t}\n\t\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner reader = new Scanner(System.in); String str = reader.next(); int maxR = 0, currR = 0; for (int i = 0; i < str.length(); i++) { char curr = str.charAt(i); if (curr == 'S') { currR = 0; } else { currR++; maxR = Math.max(maxR, currR); } } System.out.println(maxR); reader.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 14, 4, 18, 13, 17, 30, 0, 13, 17, 14, 2, 4, 18, 13, 17, 4, 18, 13, 17, 30, 0, 13, 17, 14, 2, 2, 2, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 30, 0, 13, 17, 14, 4, 18, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 88, 5 ], [ 88, 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 ], [ 21, 24 ], [ 20, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 20, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 30, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 29, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 29, 43 ], [ 43, 44 ], [ 46, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 46, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 45, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 46, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 43, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 43, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 67, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 8, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 76, 81 ], [ 8, 82 ], [ 82, 83 ], [ 83, 84 ], [ 6, 85 ], [ 85, 86 ], [ 0, 87 ], [ 87, 88 ], [ 87, 89 ] ]
[ "\n\nimport java.util.Scanner;\n\npublic class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tString s = scanner.next();\n\t\tint ans=0;\n\n\t\tif(s.equals(\"RRR\")) {\n\t\t\tans=3;\n\t\t}else if(s.equals(\"RRS\")|| s.equals(\"SRR\")) {\n\t\t\tans=2;\n\t\t}else if(s.equals(\"RSS\") || s.equals(\"SRS\") || s.equals(\"SSR\")|| s.equals(\"RSR\")) {\n\t\t\tans=1;\n\t\t}else if(s.equals(\"SSS\")) {\n\t\t\tans=0;\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\n\t\tscanner.close();\n\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tString s = scanner.next();\n\t\tint ans=0;\n\n\t\tif(s.equals(\"RRR\")) {\n\t\t\tans=3;\n\t\t}else if(s.equals(\"RRS\")|| s.equals(\"SRR\")) {\n\t\t\tans=2;\n\t\t}else if(s.equals(\"RSS\") || s.equals(\"SRS\") || s.equals(\"SSR\")|| s.equals(\"RSR\")) {\n\t\t\tans=1;\n\t\t}else if(s.equals(\"SSS\")) {\n\t\t\tans=0;\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\n\t\tscanner.close();\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tString s = scanner.next();\n\t\tint ans=0;\n\n\t\tif(s.equals(\"RRR\")) {\n\t\t\tans=3;\n\t\t}else if(s.equals(\"RRS\")|| s.equals(\"SRR\")) {\n\t\t\tans=2;\n\t\t}else if(s.equals(\"RSS\") || s.equals(\"SRS\") || s.equals(\"SSR\")|| s.equals(\"RSR\")) {\n\t\t\tans=1;\n\t\t}else if(s.equals(\"SSS\")) {\n\t\t\tans=0;\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\n\t\tscanner.close();\n\n\t}", "main", "{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tString s = scanner.next();\n\t\tint ans=0;\n\n\t\tif(s.equals(\"RRR\")) {\n\t\t\tans=3;\n\t\t}else if(s.equals(\"RRS\")|| s.equals(\"SRR\")) {\n\t\t\tans=2;\n\t\t}else if(s.equals(\"RSS\") || s.equals(\"SRS\") || s.equals(\"SSR\")|| s.equals(\"RSR\")) {\n\t\t\tans=1;\n\t\t}else if(s.equals(\"SSS\")) {\n\t\t\tans=0;\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\n\t\tscanner.close();\n\n\t}", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "String s = scanner.next();", "s", "scanner.next()", "scanner.next", "scanner", "int ans=0;", "ans", "0", "if(s.equals(\"RRR\")) {\n\t\t\tans=3;\n\t\t}else if(s.equals(\"RRS\")|| s.equals(\"SRR\")) {\n\t\t\tans=2;\n\t\t}else if(s.equals(\"RSS\") || s.equals(\"SRS\") || s.equals(\"SSR\")|| s.equals(\"RSR\")) {\n\t\t\tans=1;\n\t\t}else if(s.equals(\"SSS\")) {\n\t\t\tans=0;\n\t\t}", "s.equals(\"RRR\")", "s.equals", "s", "\"RRR\"", "{\n\t\t\tans=3;\n\t\t}", "ans=3", "ans", "3", "if(s.equals(\"RRS\")|| s.equals(\"SRR\")) {\n\t\t\tans=2;\n\t\t}else if(s.equals(\"RSS\") || s.equals(\"SRS\") || s.equals(\"SSR\")|| s.equals(\"RSR\")) {\n\t\t\tans=1;\n\t\t}else if(s.equals(\"SSS\")) {\n\t\t\tans=0;\n\t\t}", "s.equals(\"RRS\")|| s.equals(\"SRR\")", "s.equals(\"RRS\")", "s.equals", "s", "\"RRS\"", "s.equals(\"SRR\")", "s.equals", "s", "\"SRR\"", "{\n\t\t\tans=2;\n\t\t}", "ans=2", "ans", "2", "if(s.equals(\"RSS\") || s.equals(\"SRS\") || s.equals(\"SSR\")|| s.equals(\"RSR\")) {\n\t\t\tans=1;\n\t\t}else if(s.equals(\"SSS\")) {\n\t\t\tans=0;\n\t\t}", "s.equals(\"RSS\") || s.equals(\"SRS\") || s.equals(\"SSR\")|| s.equals(\"RSR\")", "s.equals(\"SSR\")", "s.equals(\"RSS\") || s.equals(\"SRS\") || s.equals(\"SSR\")|| s.equals(\"RSR\")", "s.equals(\"RSS\")", "s.equals", "s", "\"RSS\"", "s.equals(\"SRS\")", "s.equals", "s", "\"SRS\"", "s.equals(\"SSR\")", "s.equals", "s", "\"SSR\"", "s.equals(\"RSR\")", "s.equals", "s", "\"RSR\"", "{\n\t\t\tans=1;\n\t\t}", "ans=1", "ans", "1", "if(s.equals(\"SSS\")) {\n\t\t\tans=0;\n\t\t}", "s.equals(\"SSS\")", "s.equals", "s", "\"SSS\"", "{\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", "scanner.close()", "scanner.close", "scanner", "String[] args", "args", "public class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tString s = scanner.next();\n\t\tint ans=0;\n\n\t\tif(s.equals(\"RRR\")) {\n\t\t\tans=3;\n\t\t}else if(s.equals(\"RRS\")|| s.equals(\"SRR\")) {\n\t\t\tans=2;\n\t\t}else if(s.equals(\"RSS\") || s.equals(\"SRS\") || s.equals(\"SSR\")|| s.equals(\"RSR\")) {\n\t\t\tans=1;\n\t\t}else if(s.equals(\"SSS\")) {\n\t\t\tans=0;\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\n\t\tscanner.close();\n\n\t}\n\n}", "public class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tString s = scanner.next();\n\t\tint ans=0;\n\n\t\tif(s.equals(\"RRR\")) {\n\t\t\tans=3;\n\t\t}else if(s.equals(\"RRS\")|| s.equals(\"SRR\")) {\n\t\t\tans=2;\n\t\t}else if(s.equals(\"RSS\") || s.equals(\"SRS\") || s.equals(\"SSR\")|| s.equals(\"RSR\")) {\n\t\t\tans=1;\n\t\t}else if(s.equals(\"SSS\")) {\n\t\t\tans=0;\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\n\t\tscanner.close();\n\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner scanner = new Scanner(System.in); String s = scanner.next(); int ans=0; if(s.equals("RRR")) { ans=3; }else if(s.equals("RRS")|| s.equals("SRR")) { ans=2; }else if(s.equals("RSS") || s.equals("SRS") || s.equals("SSR")|| s.equals("RSR")) { ans=1; }else if(s.equals("SSS")) { ans=0; } System.out.println(ans); scanner.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 35, 13, 34, 17, 1, 34, 17, 1, 34, 17, 1, 34, 17, 1, 0, 13, 17, 3, 34, 17, 1, 34, 17, 1, 0, 13, 17, 3, 34, 17, 1, 0, 13, 17, 3, 4, 18, 18, 13, 13, 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 ], [ 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 ], [ 22, 24 ], [ 20, 25 ], [ 25, 26 ], [ 25, 27 ], [ 20, 28 ], [ 28, 29 ], [ 28, 30 ], [ 20, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 33, 37 ], [ 20, 38 ], [ 38, 39 ], [ 38, 40 ], [ 20, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 20, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 8, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 6, 61 ], [ 61, 62 ], [ 0, 63 ], [ 63, 64 ], [ 63, 65 ] ]
[ "\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n\n int count = 0;\n switch(s){\n case \"RSS\":\n case \"SRS\":\n case \"SSR\":\n case \"RSR\":\n count = 1;\n break;\n case \"RRS\":\n case \"SRR\":\n count = 2;\n break;\n case \"RRR\":\n count = 3;\n break;\n }\n System.out.println(count);\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 String s = sc.next();\n\n int count = 0;\n switch(s){\n case \"RSS\":\n case \"SRS\":\n case \"SSR\":\n case \"RSR\":\n count = 1;\n break;\n case \"RRS\":\n case \"SRR\":\n count = 2;\n break;\n case \"RRR\":\n count = 3;\n break;\n }\n System.out.println(count);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n\n int count = 0;\n switch(s){\n case \"RSS\":\n case \"SRS\":\n case \"SSR\":\n case \"RSR\":\n count = 1;\n break;\n case \"RRS\":\n case \"SRR\":\n count = 2;\n break;\n case \"RRR\":\n count = 3;\n break;\n }\n System.out.println(count);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n\n int count = 0;\n switch(s){\n case \"RSS\":\n case \"SRS\":\n case \"SSR\":\n case \"RSR\":\n count = 1;\n break;\n case \"RRS\":\n case \"SRR\":\n count = 2;\n break;\n case \"RRR\":\n count = 3;\n break;\n }\n System.out.println(count);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "int count = 0;", "count", "0", "switch(s){\n case \"RSS\":\n case \"SRS\":\n case \"SSR\":\n case \"RSR\":\n count = 1;\n break;\n case \"RRS\":\n case \"SRR\":\n count = 2;\n break;\n case \"RRR\":\n count = 3;\n break;\n }", "s", "case \"RSS\":", "\"RSS\"", "case \"RSS\":", "case \"SRS\":", "\"SRS\"", "case \"SRS\":", "case \"SSR\":", "\"SSR\"", "case \"SSR\":", "case \"RSR\":", "\"RSR\"", "case \"RSR\":", "count = 1", "count", "1", "break;", "case \"RRS\":", "\"RRS\"", "case \"RRS\":", "case \"SRR\":", "\"SRR\"", "case \"SRR\":", "count = 2", "count", "2", "break;", "case \"RRR\":", "\"RRR\"", "case \"RRR\":", "count = 3", "count", "3", "break;", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n\n int count = 0;\n switch(s){\n case \"RSS\":\n case \"SRS\":\n case \"SSR\":\n case \"RSR\":\n count = 1;\n break;\n case \"RRS\":\n case \"SRR\":\n count = 2;\n break;\n case \"RRR\":\n count = 3;\n break;\n }\n System.out.println(count);\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n\n int count = 0;\n switch(s){\n case \"RSS\":\n case \"SRS\":\n case \"SSR\":\n case \"RSR\":\n count = 1;\n break;\n case \"RRS\":\n case \"SRR\":\n count = 2;\n break;\n case \"RRR\":\n count = 3;\n break;\n }\n System.out.println(count);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); int count = 0; switch(s){ case "RSS": case "SRS": case "SSR": case "RSR": count = 1; break; case "RRS": case "SRR": count = 2; break; case "RRR": count = 3; break; } System.out.println(count); } }
[ 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, 14, 2, 4, 18, 13, 13, 17, 40, 13, 0, 13, 17, 14, 2, 13, 13, 0, 13, 13, 4, 18, 18, 13, 13, 2, 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 ], [ 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 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 37, 42 ], [ 36, 43 ], [ 43, 44 ], [ 36, 45 ], [ 45, 46 ], [ 45, 47 ], [ 35, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 52, 53 ], [ 52, 54 ], [ 8, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 60, 61 ], [ 60, 62 ], [ 6, 63 ], [ 63, 64 ], [ 0, 65 ], [ 65, 66 ], [ 65, 67 ] ]
[ "import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String data = scan.next();\n int max=0, i=0;\n for(int j=0;j<3;j++){\n if(data.charAt(j)=='R')i++;\n else i=0;\n if(i>max)max=i;\n }\n System.out.println(\"\"+max);\n }\n \n}", "import java.util.*;", "util.*", "java", "public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String data = scan.next();\n int max=0, i=0;\n for(int j=0;j<3;j++){\n if(data.charAt(j)=='R')i++;\n else i=0;\n if(i>max)max=i;\n }\n System.out.println(\"\"+max);\n }\n \n}", "Main", "public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String data = scan.next();\n int max=0, i=0;\n for(int j=0;j<3;j++){\n if(data.charAt(j)=='R')i++;\n else i=0;\n if(i>max)max=i;\n }\n System.out.println(\"\"+max);\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n String data = scan.next();\n int max=0, i=0;\n for(int j=0;j<3;j++){\n if(data.charAt(j)=='R')i++;\n else i=0;\n if(i>max)max=i;\n }\n System.out.println(\"\"+max);\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String data = scan.next();", "data", "scan.next()", "scan.next", "scan", "int max=0", "max", "0", "i=0;", "i", "0", "for(int j=0;j<3;j++){\n if(data.charAt(j)=='R')i++;\n else i=0;\n if(i>max)max=i;\n }", "int j=0;", "int j=0;", "j", "0", "j<3", "j", "3", "j++", "j++", "j", "{\n if(data.charAt(j)=='R')i++;\n else i=0;\n if(i>max)max=i;\n }", "{\n if(data.charAt(j)=='R')i++;\n else i=0;\n if(i>max)max=i;\n }", "if(data.charAt(j)=='R')i++;\n else i=0;", "data.charAt(j)=='R'", "data.charAt(j)", "data.charAt", "data", "j", "'R'", "i++", "i", "i=0", "i", "0", "if(i>max)max=i;", "i>max", "i", "max", "max=i", "max", "i", "System.out.println(\"\"+max)", "System.out.println", "System.out", "System", "System.out", "\"\"+max", "\"\"", "max", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String data = scan.next();\n int max=0, i=0;\n for(int j=0;j<3;j++){\n if(data.charAt(j)=='R')i++;\n else i=0;\n if(i>max)max=i;\n }\n System.out.println(\"\"+max);\n }\n \n}", "public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String data = scan.next();\n int max=0, i=0;\n for(int j=0;j<3;j++){\n if(data.charAt(j)=='R')i++;\n else i=0;\n if(i>max)max=i;\n }\n System.out.println(\"\"+max);\n }\n \n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String data = scan.next(); int max=0, i=0; for(int j=0;j<3;j++){ if(data.charAt(j)=='R')i++; else i=0; if(i>max)max=i; } System.out.println(""+max); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 2, 17, 17, 41, 13, 17, 41, 13, 17, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 18, 13, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 18, 13, 13, 18, 13, 2, 13, 17, 2, 18, 13, 13, 17, 30, 40, 13, 14, 2, 18, 13, 13, 17, 30, 0, 13, 4, 18, 13, 13, 2, 13, 17, 0, 13, 17, 14, 2, 18, 13, 17, 17, 0, 13, 4, 18, 13, 13, 2, 13, 17, 4, 18, 18, 13, 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, 41, 13, 17, 42, 2, 13, 17, 30, 14, 2, 2, 13, 17, 17, 30, 0, 13, 2, 13, 13, 40, 13, 30, 0, 13, 2, 13, 13, 0, 13, 17, 29, 13, 23, 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, 14, 2, 13, 17, 30, 29, 13, 29, 4, 13, 13, 2, 13, 13, 23, 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, 30, 0, 18, 13, 13, 4, 18, 13, 13, 29, 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, 4, 18, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 13, 29, 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, 30, 0, 18, 13, 13, 4, 18, 13, 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, 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, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 451, 8 ], [ 451, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 11, 13 ], [ 451, 14 ], [ 14, 15 ], [ 14, 16 ], [ 451, 17 ], [ 17, 18 ], [ 17, 19 ], [ 451, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 22, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 22, 33 ], [ 33, 34 ], [ 33, 35 ], [ 22, 36 ], [ 36, 37 ], [ 36, 38 ], [ 22, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 39, 51 ], [ 51, 52 ], [ 52, 53 ], [ 39, 54 ], [ 55, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 64, 66 ], [ 57, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 56, 72 ], [ 72, 73 ], [ 73, 74 ], [ 56, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 75, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 84, 88 ], [ 88, 89 ], [ 88, 90 ], [ 81, 91 ], [ 91, 92 ], [ 91, 93 ], [ 22, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 94, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 103, 104 ], [ 102, 105 ], [ 102, 106 ], [ 106, 107 ], [ 106, 108 ], [ 22, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 109, 114 ], [ 20, 115 ], [ 115, 116 ], [ 0, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 119, 121 ], [ 117, 122 ], [ 122, 123 ], [ 122, 124 ], [ 117, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 128, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 133, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 127, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 117, 148 ], [ 148, 149 ], [ 148, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 150, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 154, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 161, 163 ], [ 160, 164 ], [ 159, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 168, 169 ], [ 168, 170 ], [ 165, 171 ], [ 171, 172 ], [ 159, 173 ], [ 173, 174 ], [ 174, 175 ], [ 174, 176 ], [ 176, 177 ], [ 176, 178 ], [ 173, 179 ], [ 179, 180 ], [ 179, 181 ], [ 150, 182 ], [ 182, 183 ], [ 148, 184 ], [ 184, 185 ], [ 148, 186 ], [ 186, 187 ], [ 117, 188 ], [ 188, 189 ], [ 188, 190 ], [ 190, 191 ], [ 191, 192 ], [ 192, 193 ], [ 192, 194 ], [ 191, 195 ], [ 195, 196 ], [ 196, 197 ], [ 190, 198 ], [ 198, 199 ], [ 199, 200 ], [ 199, 201 ], [ 199, 202 ], [ 202, 203 ], [ 202, 204 ], [ 188, 205 ], [ 205, 206 ], [ 188, 207 ], [ 207, 208 ], [ 117, 209 ], [ 209, 210 ], [ 209, 211 ], [ 211, 212 ], [ 212, 213 ], [ 213, 214 ], [ 213, 215 ], [ 212, 216 ], [ 216, 217 ], [ 217, 218 ], [ 211, 219 ], [ 219, 220 ], [ 220, 221 ], [ 220, 222 ], [ 220, 223 ], [ 223, 224 ], [ 223, 225 ], [ 209, 226 ], [ 226, 227 ], [ 209, 228 ], [ 228, 229 ], [ 117, 230 ], [ 230, 231 ], [ 230, 232 ], [ 232, 233 ], [ 233, 234 ], [ 233, 235 ], [ 232, 236 ], [ 236, 237 ], [ 236, 238 ], [ 236, 239 ], [ 239, 240 ], [ 240, 241 ], [ 241, 242 ], [ 240, 243 ], [ 232, 244 ], [ 244, 245 ], [ 245, 246 ], [ 244, 247 ], [ 232, 248 ], [ 248, 249 ], [ 249, 250 ], [ 250, 251 ], [ 250, 252 ], [ 248, 253 ], [ 253, 254 ], [ 253, 255 ], [ 255, 256 ], [ 255, 257 ], [ 248, 258 ], [ 258, 259 ], [ 259, 260 ], [ 248, 261 ], [ 262, 262 ], [ 262, 263 ], [ 263, 264 ], [ 264, 265 ], [ 264, 266 ], [ 263, 267 ], [ 267, 268 ], [ 268, 269 ], [ 267, 270 ], [ 232, 271 ], [ 271, 272 ], [ 230, 273 ], [ 273, 274 ], [ 117, 275 ], [ 275, 276 ], [ 275, 277 ], [ 277, 278 ], [ 278, 279 ], [ 278, 280 ], [ 277, 281 ], [ 281, 282 ], [ 281, 283 ], [ 281, 284 ], [ 284, 285 ], [ 285, 286 ], [ 286, 287 ], [ 285, 288 ], [ 277, 289 ], [ 289, 290 ], [ 290, 291 ], [ 289, 292 ], [ 277, 293 ], [ 293, 294 ], [ 294, 295 ], [ 295, 296 ], [ 295, 297 ], [ 293, 298 ], [ 298, 299 ], [ 298, 300 ], [ 300, 301 ], [ 301, 302 ], [ 293, 303 ], [ 303, 304 ], [ 304, 305 ], [ 293, 306 ], [ 307, 307 ], [ 307, 308 ], [ 308, 309 ], [ 309, 310 ], [ 309, 311 ], [ 308, 312 ], [ 312, 313 ], [ 313, 314 ], [ 312, 315 ], [ 277, 316 ], [ 316, 317 ], [ 275, 318 ], [ 318, 319 ], [ 117, 320 ], [ 320, 321 ], [ 320, 322 ], [ 322, 323 ], [ 323, 324 ], [ 323, 325 ], [ 322, 326 ], [ 326, 327 ], [ 326, 328 ], [ 326, 329 ], [ 329, 330 ], [ 330, 331 ], [ 331, 332 ], [ 330, 333 ], [ 322, 334 ], [ 334, 335 ], [ 335, 336 ], [ 334, 337 ], [ 322, 338 ], [ 338, 339 ], [ 339, 340 ], [ 340, 341 ], [ 340, 342 ], [ 338, 343 ], [ 343, 344 ], [ 343, 345 ], [ 345, 346 ], [ 345, 347 ], [ 338, 348 ], [ 348, 349 ], [ 349, 350 ], [ 338, 351 ], [ 352, 352 ], [ 352, 353 ], [ 353, 354 ], [ 354, 355 ], [ 354, 356 ], [ 353, 357 ], [ 357, 358 ], [ 358, 359 ], [ 357, 360 ], [ 322, 361 ], [ 361, 362 ], [ 320, 363 ], [ 363, 364 ], [ 117, 365 ], [ 365, 366 ], [ 365, 367 ], [ 367, 368 ], [ 368, 369 ], [ 369, 370 ], [ 370, 371 ], [ 369, 372 ], [ 372, 373 ], [ 117, 374 ], [ 374, 375 ], [ 374, 376 ], [ 376, 377 ], [ 377, 378 ], [ 377, 379 ], [ 376, 381 ], [ 381, 382 ], [ 382, 383 ], [ 383, 384 ], [ 383, 385 ], [ 381, 386 ], [ 386, 387 ], [ 386, 388 ], [ 381, 389 ], [ 389, 390 ], [ 390, 391 ], [ 381, 392 ], [ 392, 393 ], [ 393, 394 ], [ 394, 395 ], [ 394, 396 ], [ 393, 397 ], [ 397, 398 ], [ 376, 399 ], [ 399, 400 ], [ 374, 401 ], [ 401, 402 ], [ 117, 403 ], [ 403, 404 ], [ 403, 405 ], [ 405, 406 ], [ 406, 407 ], [ 407, 408 ], [ 408, 409 ], [ 407, 410 ], [ 410, 411 ], [ 117, 412 ], [ 412, 413 ], [ 412, 414 ], [ 414, 415 ], [ 415, 416 ], [ 416, 417 ], [ 417, 418 ], [ 416, 419 ], [ 419, 420 ], [ 117, 421 ], [ 421, 422 ], [ 421, 423 ], [ 423, 424 ], [ 424, 425 ], [ 424, 426 ], [ 423, 428 ], [ 428, 429 ], [ 429, 430 ], [ 430, 431 ], [ 430, 432 ], [ 428, 433 ], [ 433, 434 ], [ 433, 435 ], [ 428, 436 ], [ 436, 437 ], [ 437, 438 ], [ 428, 439 ], [ 439, 440 ], [ 440, 441 ], [ 441, 442 ], [ 441, 443 ], [ 440, 444 ], [ 444, 445 ], [ 423, 446 ], [ 446, 447 ], [ 421, 448 ], [ 448, 449 ], [ 0, 450 ], [ 450, 451 ], [ 450, 452 ] ]
[ "import java.util.*;\nimport java.io.*;\npublic class Main\n{\n\tstatic final int mod=(int)1e9+7;\n\tstatic final int inf=(int)1e9;\n\tstatic final int INF=(int)1e18;\n\tpublic static void main(String[] args)\n\t{\n\t\tFastScanner fs=new FastScanner();\n\t\tchar arr[]=fs.next().toCharArray();\n\t\tint c=0,max=0;\n\t\tfor(int i=0;i<arr.length-1;i++)\n\t\t{\n\t\t\tif(arr[i]==arr[i+1] && arr[i]=='R')\n\t\t\t{\n\t\t\t\tc++;\n\t\t\t}\n\t\t\telse if(arr[i]=='R')\n\t\t\t{\n\t\t\t\tmax=Math.max(max,c+1);\n\t\t\t\tc=0;\n\t\t\t}\n\t\t}\n\t\tif(arr[2]=='R')\n\t\tmax=Math.max(max,c+1);\n\t\tSystem.out.println(max);\n\t}\n}\nclass FastScanner \n{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st=new StringTokenizer(\"\");\n\t\tpublic String next() \n\t\t{\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\t\n\t\t}\n\t\tlong pow(long x,long n)\n\t\t{\n\t\t\tlong res=1;\n\t\t\twhile(n>0)\n\t\t\t{\n\t\t\t \tif(n%2!=0)\n\t\t\t \t{\n\t\t\t \t\tres=(res*x);n--;\n\t\t\t \t}\n\t\t\t \telse\n\t\t\t \t{\n\t\t\t \t\tx=(x*x);n/=2;\n\t\t\t \t}\n\t\t\t}\n\t\t\treturn res;\n\t\t}\n\t\tint gcd(int a,int b)\n\t\t{\n\t\t\tif(b==0)\n\t\t\t{\n\t\t\t\treturn a;\n\t\t\t}\n\t\t\treturn gcd(b,a%b);\n\t\t}\n\t\tlong longgcd(long a,long b)\n\t\t{\n\t\t\tif(b==0)\n\t\t\t{\n\t\t\t\treturn a;\n\t\t\t}\n\t\t\treturn longgcd(b,a%b);\n\t\t}\n\t\tint[] sort(int arr[])\n\t\t{\n\t\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\t\tfor(int i:arr)list.add(i);\n\t\t\tCollections.sort(list);\n\t\t\tfor(int i=0;i<arr.length;i++)\n\t\t\t{\n\t\t\t\tarr[i]=list.get(i);\n\t\t\t}\n\t\t\treturn arr;\n\t\t}\n\t\tchar[] charsort(char arr[])\n\t {\n\t \tArrayList<Character> list = new ArrayList<>();\n\t \tfor(char c:arr)list.add(c);\n\t \tCollections.sort(list);\n\t \tfor(int i=0;i<list.size();i++)\n\t \t{\n\t \t\tarr[i]=list.get(i);\n\t \t}\n\t \treturn arr;\n\t }\n\t\tlong[] longsort(long arr[])\n\t\t{\n\t\t\tArrayList<Long> list = new ArrayList<Long>();\n\t\t\tfor(long i:arr)list.add(i);\n\t\t\tCollections.sort(list);\n\t\t\tfor(int i=0;i<arr.length;i++)\n\t\t\t{\n\t\t\t\tarr[i]=list.get(i);\n\t\t\t}\n\t\t\treturn arr;\n\t\t}\n\t\tpublic int nextInt() \n\t\t{\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\tpublic int[] readArray(int n)\n\t\t{\n\t\t\tint[] arr=new int[n];\n\t\t\tfor (int i=0; i<n; i++) arr[i]=nextInt();\n\t\t\treturn arr;\n\t\t}\t\n\t\tpublic long nextLong()\n\t\t{\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\tpublic double nextDouble()\n\t\t{\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\t\tpublic long[] longreadArray(int n) \n\t\t{\n\t\t\tlong[] a=new long[n];\n\t\t\tfor (int i=0; i<n; i++) a[i]=nextLong();\n\t\t\treturn a;\n\t\t}\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "public class Main\n{\n\tstatic final int mod=(int)1e9+7;\n\tstatic final int inf=(int)1e9;\n\tstatic final int INF=(int)1e18;\n\tpublic static void main(String[] args)\n\t{\n\t\tFastScanner fs=new FastScanner();\n\t\tchar arr[]=fs.next().toCharArray();\n\t\tint c=0,max=0;\n\t\tfor(int i=0;i<arr.length-1;i++)\n\t\t{\n\t\t\tif(arr[i]==arr[i+1] && arr[i]=='R')\n\t\t\t{\n\t\t\t\tc++;\n\t\t\t}\n\t\t\telse if(arr[i]=='R')\n\t\t\t{\n\t\t\t\tmax=Math.max(max,c+1);\n\t\t\t\tc=0;\n\t\t\t}\n\t\t}\n\t\tif(arr[2]=='R')\n\t\tmax=Math.max(max,c+1);\n\t\tSystem.out.println(max);\n\t}\n}", "Main", "static final int mod=(int)1e9+7;", "mod", "(int)1e9+7", "(int)1e9", "7", "static final int inf=(int)1e9;", "inf", "(int)1e9", "static final int INF=(int)1e18;", "INF", "(int)1e18", "public static void main(String[] args)\n\t{\n\t\tFastScanner fs=new FastScanner();\n\t\tchar arr[]=fs.next().toCharArray();\n\t\tint c=0,max=0;\n\t\tfor(int i=0;i<arr.length-1;i++)\n\t\t{\n\t\t\tif(arr[i]==arr[i+1] && arr[i]=='R')\n\t\t\t{\n\t\t\t\tc++;\n\t\t\t}\n\t\t\telse if(arr[i]=='R')\n\t\t\t{\n\t\t\t\tmax=Math.max(max,c+1);\n\t\t\t\tc=0;\n\t\t\t}\n\t\t}\n\t\tif(arr[2]=='R')\n\t\tmax=Math.max(max,c+1);\n\t\tSystem.out.println(max);\n\t}", "main", "{\n\t\tFastScanner fs=new FastScanner();\n\t\tchar arr[]=fs.next().toCharArray();\n\t\tint c=0,max=0;\n\t\tfor(int i=0;i<arr.length-1;i++)\n\t\t{\n\t\t\tif(arr[i]==arr[i+1] && arr[i]=='R')\n\t\t\t{\n\t\t\t\tc++;\n\t\t\t}\n\t\t\telse if(arr[i]=='R')\n\t\t\t{\n\t\t\t\tmax=Math.max(max,c+1);\n\t\t\t\tc=0;\n\t\t\t}\n\t\t}\n\t\tif(arr[2]=='R')\n\t\tmax=Math.max(max,c+1);\n\t\tSystem.out.println(max);\n\t}", "FastScanner fs=new FastScanner();", "fs", "new FastScanner()", "char arr[]=fs.next().toCharArray();", "arr", "fs.next().toCharArray()", "fs.next().toCharArray", "fs.next()", "fs.next", "fs", "int c=0", "c", "0", "max=0;", "max", "0", "for(int i=0;i<arr.length-1;i++)\n\t\t{\n\t\t\tif(arr[i]==arr[i+1] && arr[i]=='R')\n\t\t\t{\n\t\t\t\tc++;\n\t\t\t}\n\t\t\telse if(arr[i]=='R')\n\t\t\t{\n\t\t\t\tmax=Math.max(max,c+1);\n\t\t\t\tc=0;\n\t\t\t}\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<arr.length-1", "i", "arr.length-1", "arr.length", "arr", "arr.length", "1", "i++", "i++", "i", "{\n\t\t\tif(arr[i]==arr[i+1] && arr[i]=='R')\n\t\t\t{\n\t\t\t\tc++;\n\t\t\t}\n\t\t\telse if(arr[i]=='R')\n\t\t\t{\n\t\t\t\tmax=Math.max(max,c+1);\n\t\t\t\tc=0;\n\t\t\t}\n\t\t}", "{\n\t\t\tif(arr[i]==arr[i+1] && arr[i]=='R')\n\t\t\t{\n\t\t\t\tc++;\n\t\t\t}\n\t\t\telse if(arr[i]=='R')\n\t\t\t{\n\t\t\t\tmax=Math.max(max,c+1);\n\t\t\t\tc=0;\n\t\t\t}\n\t\t}", "if(arr[i]==arr[i+1] && arr[i]=='R')\n\t\t\t{\n\t\t\t\tc++;\n\t\t\t}\n\t\t\telse if(arr[i]=='R')\n\t\t\t{\n\t\t\t\tmax=Math.max(max,c+1);\n\t\t\t\tc=0;\n\t\t\t}", "arr[i]==arr[i+1] && arr[i]=='R'", "arr[i]==arr[i+1]", "arr[i]", "arr", "i", "arr[i+1]", "arr", "i+1", "i", "1", "arr[i]=='R'", "arr[i]", "arr", "i", "'R'", "{\n\t\t\t\tc++;\n\t\t\t}", "c++", "c", "if(arr[i]=='R')\n\t\t\t{\n\t\t\t\tmax=Math.max(max,c+1);\n\t\t\t\tc=0;\n\t\t\t}", "arr[i]=='R'", "arr[i]", "arr", "i", "'R'", "{\n\t\t\t\tmax=Math.max(max,c+1);\n\t\t\t\tc=0;\n\t\t\t}", "max=Math.max(max,c+1)", "max", "Math.max(max,c+1)", "Math.max", "Math", "max", "c+1", "c", "1", "c=0", "c", "0", "if(arr[2]=='R')\n\t\tmax=Math.max(max,c+1);", "arr[2]=='R'", "arr[2]", "arr", "2", "'R'", "max=Math.max(max,c+1)", "max", "Math.max(max,c+1)", "Math.max", "Math", "max", "c+1", "c", "1", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args", "class FastScanner \n{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st=new StringTokenizer(\"\");\n\t\tpublic String next() \n\t\t{\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\t\n\t\t}\n\t\tlong pow(long x,long n)\n\t\t{\n\t\t\tlong res=1;\n\t\t\twhile(n>0)\n\t\t\t{\n\t\t\t \tif(n%2!=0)\n\t\t\t \t{\n\t\t\t \t\tres=(res*x);n--;\n\t\t\t \t}\n\t\t\t \telse\n\t\t\t \t{\n\t\t\t \t\tx=(x*x);n/=2;\n\t\t\t \t}\n\t\t\t}\n\t\t\treturn res;\n\t\t}\n\t\tint gcd(int a,int b)\n\t\t{\n\t\t\tif(b==0)\n\t\t\t{\n\t\t\t\treturn a;\n\t\t\t}\n\t\t\treturn gcd(b,a%b);\n\t\t}\n\t\tlong longgcd(long a,long b)\n\t\t{\n\t\t\tif(b==0)\n\t\t\t{\n\t\t\t\treturn a;\n\t\t\t}\n\t\t\treturn longgcd(b,a%b);\n\t\t}\n\t\tint[] sort(int arr[])\n\t\t{\n\t\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\t\tfor(int i:arr)list.add(i);\n\t\t\tCollections.sort(list);\n\t\t\tfor(int i=0;i<arr.length;i++)\n\t\t\t{\n\t\t\t\tarr[i]=list.get(i);\n\t\t\t}\n\t\t\treturn arr;\n\t\t}\n\t\tchar[] charsort(char arr[])\n\t {\n\t \tArrayList<Character> list = new ArrayList<>();\n\t \tfor(char c:arr)list.add(c);\n\t \tCollections.sort(list);\n\t \tfor(int i=0;i<list.size();i++)\n\t \t{\n\t \t\tarr[i]=list.get(i);\n\t \t}\n\t \treturn arr;\n\t }\n\t\tlong[] longsort(long arr[])\n\t\t{\n\t\t\tArrayList<Long> list = new ArrayList<Long>();\n\t\t\tfor(long i:arr)list.add(i);\n\t\t\tCollections.sort(list);\n\t\t\tfor(int i=0;i<arr.length;i++)\n\t\t\t{\n\t\t\t\tarr[i]=list.get(i);\n\t\t\t}\n\t\t\treturn arr;\n\t\t}\n\t\tpublic int nextInt() \n\t\t{\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\tpublic int[] readArray(int n)\n\t\t{\n\t\t\tint[] arr=new int[n];\n\t\t\tfor (int i=0; i<n; i++) arr[i]=nextInt();\n\t\t\treturn arr;\n\t\t}\t\n\t\tpublic long nextLong()\n\t\t{\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\tpublic double nextDouble()\n\t\t{\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\t\tpublic long[] longreadArray(int n) \n\t\t{\n\t\t\tlong[] a=new long[n];\n\t\t\tfor (int i=0; i<n; i++) a[i]=nextLong();\n\t\t\treturn a;\n\t\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(\"\")", "public String next() \n\t\t{\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\t\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\t\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", "long pow(long x,long n)\n\t\t{\n\t\t\tlong res=1;\n\t\t\twhile(n>0)\n\t\t\t{\n\t\t\t \tif(n%2!=0)\n\t\t\t \t{\n\t\t\t \t\tres=(res*x);n--;\n\t\t\t \t}\n\t\t\t \telse\n\t\t\t \t{\n\t\t\t \t\tx=(x*x);n/=2;\n\t\t\t \t}\n\t\t\t}\n\t\t\treturn res;\n\t\t}", "pow", "{\n\t\t\tlong res=1;\n\t\t\twhile(n>0)\n\t\t\t{\n\t\t\t \tif(n%2!=0)\n\t\t\t \t{\n\t\t\t \t\tres=(res*x);n--;\n\t\t\t \t}\n\t\t\t \telse\n\t\t\t \t{\n\t\t\t \t\tx=(x*x);n/=2;\n\t\t\t \t}\n\t\t\t}\n\t\t\treturn res;\n\t\t}", "long res=1;", "res", "1", "while(n>0)\n\t\t\t{\n\t\t\t \tif(n%2!=0)\n\t\t\t \t{\n\t\t\t \t\tres=(res*x);n--;\n\t\t\t \t}\n\t\t\t \telse\n\t\t\t \t{\n\t\t\t \t\tx=(x*x);n/=2;\n\t\t\t \t}\n\t\t\t}", "n>0", "n", "0", "{\n\t\t\t \tif(n%2!=0)\n\t\t\t \t{\n\t\t\t \t\tres=(res*x);n--;\n\t\t\t \t}\n\t\t\t \telse\n\t\t\t \t{\n\t\t\t \t\tx=(x*x);n/=2;\n\t\t\t \t}\n\t\t\t}", "if(n%2!=0)\n\t\t\t \t{\n\t\t\t \t\tres=(res*x);n--;\n\t\t\t \t}\n\t\t\t \telse\n\t\t\t \t{\n\t\t\t \t\tx=(x*x);n/=2;\n\t\t\t \t}", "n%2!=0", "n%2", "n", "2", "0", "{\n\t\t\t \t\tres=(res*x);n--;\n\t\t\t \t}", "res=(res*x)", "res", "(res*x)", "res", "x", "n--", "n", "{\n\t\t\t \t\tx=(x*x);n/=2;\n\t\t\t \t}", "x=(x*x)", "x", "(x*x)", "x", "x", "n/=2", "n", "2", "return res;", "res", "long x", "x", "long n", "n", "int gcd(int a,int b)\n\t\t{\n\t\t\tif(b==0)\n\t\t\t{\n\t\t\t\treturn a;\n\t\t\t}\n\t\t\treturn gcd(b,a%b);\n\t\t}", "gcd", "{\n\t\t\tif(b==0)\n\t\t\t{\n\t\t\t\treturn a;\n\t\t\t}\n\t\t\treturn gcd(b,a%b);\n\t\t}", "if(b==0)\n\t\t\t{\n\t\t\t\treturn a;\n\t\t\t}", "b==0", "b", "0", "{\n\t\t\t\treturn a;\n\t\t\t}", "return a;", "a", "return gcd(b,a%b);", "gcd(b,a%b)", "gcd", "b", "a%b", "a", "b", "int a", "a", "int b", "b", "long longgcd(long a,long b)\n\t\t{\n\t\t\tif(b==0)\n\t\t\t{\n\t\t\t\treturn a;\n\t\t\t}\n\t\t\treturn longgcd(b,a%b);\n\t\t}", "longgcd", "{\n\t\t\tif(b==0)\n\t\t\t{\n\t\t\t\treturn a;\n\t\t\t}\n\t\t\treturn longgcd(b,a%b);\n\t\t}", "if(b==0)\n\t\t\t{\n\t\t\t\treturn a;\n\t\t\t}", "b==0", "b", "0", "{\n\t\t\t\treturn a;\n\t\t\t}", "return a;", "a", "return longgcd(b,a%b);", "longgcd(b,a%b)", "longgcd", "b", "a%b", "a", "b", "long a", "a", "long b", "b", "int[] sort(int arr[])\n\t\t{\n\t\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\t\tfor(int i:arr)list.add(i);\n\t\t\tCollections.sort(list);\n\t\t\tfor(int i=0;i<arr.length;i++)\n\t\t\t{\n\t\t\t\tarr[i]=list.get(i);\n\t\t\t}\n\t\t\treturn arr;\n\t\t}", "sort", "{\n\t\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\t\tfor(int i:arr)list.add(i);\n\t\t\tCollections.sort(list);\n\t\t\tfor(int i=0;i<arr.length;i++)\n\t\t\t{\n\t\t\t\tarr[i]=list.get(i);\n\t\t\t}\n\t\t\treturn arr;\n\t\t}", "ArrayList<Integer> list = new ArrayList<Integer>();", "list", "new ArrayList<Integer>()", "for(int i:arr)list.add(i);", "int i", "arr", "list.add(i);", "list.add(i)", "list.add", "list", "i", "Collections.sort(list)", "Collections.sort", "Collections", "list", "for(int i=0;i<arr.length;i++)\n\t\t\t{\n\t\t\t\tarr[i]=list.get(i);\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<arr.length", "i", "arr.length", "arr", "arr.length", "i++", "i++", "i", "{\n\t\t\t\tarr[i]=list.get(i);\n\t\t\t}", "{\n\t\t\t\tarr[i]=list.get(i);\n\t\t\t}", "arr[i]=list.get(i)", "arr[i]", "arr", "i", "list.get(i)", "list.get", "list", "i", "return arr;", "arr", "int arr[]", "arr", "char[] charsort(char arr[])\n\t {\n\t \tArrayList<Character> list = new ArrayList<>();\n\t \tfor(char c:arr)list.add(c);\n\t \tCollections.sort(list);\n\t \tfor(int i=0;i<list.size();i++)\n\t \t{\n\t \t\tarr[i]=list.get(i);\n\t \t}\n\t \treturn arr;\n\t }", "charsort", "{\n\t \tArrayList<Character> list = new ArrayList<>();\n\t \tfor(char c:arr)list.add(c);\n\t \tCollections.sort(list);\n\t \tfor(int i=0;i<list.size();i++)\n\t \t{\n\t \t\tarr[i]=list.get(i);\n\t \t}\n\t \treturn arr;\n\t }", "ArrayList<Character> list = new ArrayList<>();", "list", "new ArrayList<>()", "for(char c:arr)list.add(c);", "char c", "arr", "list.add(c);", "list.add(c)", "list.add", "list", "c", "Collections.sort(list)", "Collections.sort", "Collections", "list", "for(int i=0;i<list.size();i++)\n\t \t{\n\t \t\tarr[i]=list.get(i);\n\t \t}", "int i=0;", "int i=0;", "i", "0", "i<list.size()", "i", "list.size()", "list.size", "list", "i++", "i++", "i", "{\n\t \t\tarr[i]=list.get(i);\n\t \t}", "{\n\t \t\tarr[i]=list.get(i);\n\t \t}", "arr[i]=list.get(i)", "arr[i]", "arr", "i", "list.get(i)", "list.get", "list", "i", "return arr;", "arr", "char arr[]", "arr", "long[] longsort(long arr[])\n\t\t{\n\t\t\tArrayList<Long> list = new ArrayList<Long>();\n\t\t\tfor(long i:arr)list.add(i);\n\t\t\tCollections.sort(list);\n\t\t\tfor(int i=0;i<arr.length;i++)\n\t\t\t{\n\t\t\t\tarr[i]=list.get(i);\n\t\t\t}\n\t\t\treturn arr;\n\t\t}", "longsort", "{\n\t\t\tArrayList<Long> list = new ArrayList<Long>();\n\t\t\tfor(long i:arr)list.add(i);\n\t\t\tCollections.sort(list);\n\t\t\tfor(int i=0;i<arr.length;i++)\n\t\t\t{\n\t\t\t\tarr[i]=list.get(i);\n\t\t\t}\n\t\t\treturn arr;\n\t\t}", "ArrayList<Long> list = new ArrayList<Long>();", "list", "new ArrayList<Long>()", "for(long i:arr)list.add(i);", "long i", "arr", "list.add(i);", "list.add(i)", "list.add", "list", "i", "Collections.sort(list)", "Collections.sort", "Collections", "list", "for(int i=0;i<arr.length;i++)\n\t\t\t{\n\t\t\t\tarr[i]=list.get(i);\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<arr.length", "i", "arr.length", "arr", "arr.length", "i++", "i++", "i", "{\n\t\t\t\tarr[i]=list.get(i);\n\t\t\t}", "{\n\t\t\t\tarr[i]=list.get(i);\n\t\t\t}", "arr[i]=list.get(i)", "arr[i]", "arr", "i", "list.get(i)", "list.get", "list", "i", "return arr;", "arr", "long arr[]", "arr", "public int nextInt() \n\t\t{\n\t\t\treturn Integer.parseInt(next());\n\t\t}", "nextInt", "{\n\t\t\treturn Integer.parseInt(next());\n\t\t}", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "public int[] readArray(int n)\n\t\t{\n\t\t\tint[] arr=new int[n];\n\t\t\tfor (int i=0; i<n; i++) arr[i]=nextInt();\n\t\t\treturn arr;\n\t\t}", "readArray", "{\n\t\t\tint[] arr=new int[n];\n\t\t\tfor (int i=0; i<n; i++) arr[i]=nextInt();\n\t\t\treturn arr;\n\t\t}", "int[] arr=new int[n];", "arr", "new int[n]", "n", "for (int i=0; i<n; i++) arr[i]=nextInt();", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "arr[i]=nextInt();", "arr[i]=nextInt()", "arr[i]", "arr", "i", "nextInt()", "nextInt", "return arr;", "arr", "int n", "n", "public long nextLong()\n\t\t{\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 double nextDouble()\n\t\t{\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 long[] longreadArray(int n) \n\t\t{\n\t\t\tlong[] a=new long[n];\n\t\t\tfor (int i=0; i<n; i++) a[i]=nextLong();\n\t\t\treturn a;\n\t\t}", "longreadArray", "{\n\t\t\tlong[] a=new long[n];\n\t\t\tfor (int i=0; i<n; i++) a[i]=nextLong();\n\t\t\treturn a;\n\t\t}", "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\tstatic final int mod=(int)1e9+7;\n\tstatic final int inf=(int)1e9;\n\tstatic final int INF=(int)1e18;\n\tpublic static void main(String[] args)\n\t{\n\t\tFastScanner fs=new FastScanner();\n\t\tchar arr[]=fs.next().toCharArray();\n\t\tint c=0,max=0;\n\t\tfor(int i=0;i<arr.length-1;i++)\n\t\t{\n\t\t\tif(arr[i]==arr[i+1] && arr[i]=='R')\n\t\t\t{\n\t\t\t\tc++;\n\t\t\t}\n\t\t\telse if(arr[i]=='R')\n\t\t\t{\n\t\t\t\tmax=Math.max(max,c+1);\n\t\t\t\tc=0;\n\t\t\t}\n\t\t}\n\t\tif(arr[2]=='R')\n\t\tmax=Math.max(max,c+1);\n\t\tSystem.out.println(max);\n\t}\n}", "public class Main\n{\n\tstatic final int mod=(int)1e9+7;\n\tstatic final int inf=(int)1e9;\n\tstatic final int INF=(int)1e18;\n\tpublic static void main(String[] args)\n\t{\n\t\tFastScanner fs=new FastScanner();\n\t\tchar arr[]=fs.next().toCharArray();\n\t\tint c=0,max=0;\n\t\tfor(int i=0;i<arr.length-1;i++)\n\t\t{\n\t\t\tif(arr[i]==arr[i+1] && arr[i]=='R')\n\t\t\t{\n\t\t\t\tc++;\n\t\t\t}\n\t\t\telse if(arr[i]=='R')\n\t\t\t{\n\t\t\t\tmax=Math.max(max,c+1);\n\t\t\t\tc=0;\n\t\t\t}\n\t\t}\n\t\tif(arr[2]=='R')\n\t\tmax=Math.max(max,c+1);\n\t\tSystem.out.println(max);\n\t}\n}", "Main" ]
import java.util.*; import java.io.*; public class Main { static final int mod=(int)1e9+7; static final int inf=(int)1e9; static final int INF=(int)1e18; public static void main(String[] args) { FastScanner fs=new FastScanner(); char arr[]=fs.next().toCharArray(); int c=0,max=0; for(int i=0;i<arr.length-1;i++) { if(arr[i]==arr[i+1] && arr[i]=='R') { c++; } else if(arr[i]=='R') { max=Math.max(max,c+1); c=0; } } if(arr[2]=='R') max=Math.max(max,c+1); System.out.println(max); } } 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(); } long pow(long x,long n) { long res=1; while(n>0) { if(n%2!=0) { res=(res*x);n--; } else { x=(x*x);n/=2; } } return res; } int gcd(int a,int b) { if(b==0) { return a; } return gcd(b,a%b); } long longgcd(long a,long b) { if(b==0) { return a; } return longgcd(b,a%b); } int[] sort(int arr[]) { ArrayList<Integer> list = new ArrayList<Integer>(); for(int i:arr)list.add(i); Collections.sort(list); for(int i=0;i<arr.length;i++) { arr[i]=list.get(i); } return arr; } char[] charsort(char arr[]) { ArrayList<Character> list = new ArrayList<>(); for(char c:arr)list.add(c); Collections.sort(list); for(int i=0;i<list.size();i++) { arr[i]=list.get(i); } return arr; } long[] longsort(long arr[]) { ArrayList<Long> list = new ArrayList<Long>(); for(long i:arr)list.add(i); Collections.sort(list); for(int i=0;i<arr.length;i++) { arr[i]=list.get(i); } return arr; } public int nextInt() { return Integer.parseInt(next()); } public int[] readArray(int n) { int[] arr=new int[n]; for (int i=0; i<n; i++) arr[i]=nextInt(); return arr; } public long nextLong() { return Long.parseLong(next()); } public double nextDouble() { return Double.parseDouble(next()); } public long[] longreadArray(int n) { long[] a=new long[n]; for (int i=0; i<n; i++) a[i]=nextLong(); return a; } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 4, 13, 13, 13, 4, 18, 13, 23, 13, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 17, 40, 13, 30, 0, 13, 4, 18, 13, 13, 13, 0, 13, 17, 0, 13, 4, 18, 13, 13, 13, 4, 18, 13, 13, 23, 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, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 212, 8 ], [ 212, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 18 ], [ 18, 19 ], [ 18, 20 ], [ 18, 21 ], [ 11, 22 ], [ 22, 23 ], [ 23, 24 ], [ 9, 25 ], [ 25, 26 ], [ 212, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 29, 35 ], [ 35, 36 ], [ 35, 37 ], [ 29, 38 ], [ 38, 39 ], [ 38, 40 ], [ 29, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 41, 51 ], [ 51, 52 ], [ 52, 53 ], [ 41, 54 ], [ 55, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 57, 62 ], [ 56, 63 ], [ 63, 64 ], [ 56, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 68, 72 ], [ 65, 73 ], [ 73, 74 ], [ 73, 75 ], [ 29, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 78, 82 ], [ 29, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 27, 87 ], [ 87, 88 ], [ 27, 89 ], [ 89, 90 ], [ 212, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 97, 99 ], [ 97, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 101, 104 ], [ 93, 105 ], [ 105, 106 ], [ 106, 107 ], [ 105, 108 ], [ 93, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 109, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 116, 118 ], [ 109, 119 ], [ 119, 120 ], [ 120, 121 ], [ 109, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 123, 127 ], [ 127, 128 ], [ 128, 129 ], [ 127, 130 ], [ 91, 131 ], [ 131, 132 ], [ 212, 133 ], [ 133, 134 ], [ 133, 135 ], [ 135, 136 ], [ 135, 137 ], [ 133, 138 ], [ 138, 139 ], [ 138, 140 ], [ 133, 141 ], [ 141, 142 ], [ 141, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 144, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 149, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 143, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 133, 164 ], [ 164, 165 ], [ 164, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 168, 171 ], [ 171, 172 ], [ 133, 173 ], [ 173, 174 ], [ 173, 175 ], [ 175, 176 ], [ 176, 177 ], [ 176, 178 ], [ 175, 180 ], [ 180, 181 ], [ 181, 182 ], [ 182, 183 ], [ 182, 184 ], [ 180, 185 ], [ 185, 186 ], [ 185, 187 ], [ 180, 188 ], [ 188, 189 ], [ 189, 190 ], [ 180, 191 ], [ 191, 192 ], [ 192, 193 ], [ 193, 194 ], [ 193, 195 ], [ 192, 196 ], [ 196, 197 ], [ 175, 198 ], [ 198, 199 ], [ 173, 200 ], [ 200, 201 ], [ 133, 202 ], [ 202, 203 ], [ 202, 204 ], [ 204, 205 ], [ 205, 206 ], [ 206, 207 ], [ 207, 208 ], [ 206, 209 ], [ 209, 210 ], [ 0, 211 ], [ 211, 212 ], [ 211, 213 ] ]
[ "import java.io.*;\nimport java.util.*;\n\npublic class Main {\n\n\t\n\tpublic static void main(String[] args) {\n\t\tFastScanner in=new FastScanner();\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t//\tint t=in.nextInt();\n\t//\twhile(t-->0)\n\t\tsolve(in,out);\n\t\tout.close();\n\t}\n\n static void solve(FastScanner in,PrintWriter out){\n String s=in.next();\n int count=0,max=0;\n for(int i=0;i<s.length();i++){\n if(s.charAt(i)=='R') count++;\n else { max=Math.max(count,max); count=0; }\n } max=Math.max(count,max);\n out.println(max);\n } \n\t\n\n\n\n\tstatic void sort(int[] a) {\n\t\tArrayList<Integer> l=new ArrayList<>();\n\t\tfor (int i:a) l.add(i);\n\t\tCollections.sort(l);\n\t\tfor (int i=0; i<a.length; i++) a[i]=l.get(i);\n\t}\n\t\n\tstatic class FastScanner {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st=new StringTokenizer(\"\");\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\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\tint[] readArray(int n) {\n\t\t\tint[] a=new int[n];\n\t\t\tfor (int i=0; i<n; i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t}\n\n\t\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "public class Main {\n\n\t\n\tpublic static void main(String[] args) {\n\t\tFastScanner in=new FastScanner();\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t//\tint t=in.nextInt();\n\t//\twhile(t-->0)\n\t\tsolve(in,out);\n\t\tout.close();\n\t}\n\n static void solve(FastScanner in,PrintWriter out){\n String s=in.next();\n int count=0,max=0;\n for(int i=0;i<s.length();i++){\n if(s.charAt(i)=='R') count++;\n else { max=Math.max(count,max); count=0; }\n } max=Math.max(count,max);\n out.println(max);\n } \n\t\n\n\n\n\tstatic void sort(int[] a) {\n\t\tArrayList<Integer> l=new ArrayList<>();\n\t\tfor (int i:a) l.add(i);\n\t\tCollections.sort(l);\n\t\tfor (int i=0; i<a.length; i++) a[i]=l.get(i);\n\t}\n\t\n\tstatic class FastScanner {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st=new StringTokenizer(\"\");\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\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\tint[] readArray(int n) {\n\t\t\tint[] a=new int[n];\n\t\t\tfor (int i=0; i<n; i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t}\n\n\t\n}", "Main", "public static void main(String[] args) {\n\t\tFastScanner in=new FastScanner();\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t//\tint t=in.nextInt();\n\t//\twhile(t-->0)\n\t\tsolve(in,out);\n\t\tout.close();\n\t}", "main", "{\n\t\tFastScanner in=new FastScanner();\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t//\tint t=in.nextInt();\n\t//\twhile(t-->0)\n\t\tsolve(in,out);\n\t\tout.close();\n\t}", "FastScanner in=new FastScanner();", "in", "new FastScanner()", "PrintWriter out=new PrintWriter(System.out);", "out", "new PrintWriter(System.out)", "solve(in,out)", "solve", "in", "out", "out.close()", "out.close", "out", "String[] args", "args", "static void solve(FastScanner in,PrintWriter out){\n String s=in.next();\n int count=0,max=0;\n for(int i=0;i<s.length();i++){\n if(s.charAt(i)=='R') count++;\n else { max=Math.max(count,max); count=0; }\n } max=Math.max(count,max);\n out.println(max);\n }", "solve", "{\n String s=in.next();\n int count=0,max=0;\n for(int i=0;i<s.length();i++){\n if(s.charAt(i)=='R') count++;\n else { max=Math.max(count,max); count=0; }\n } max=Math.max(count,max);\n out.println(max);\n }", "String s=in.next();", "s", "in.next()", "in.next", "in", "int count=0", "count", "0", "max=0;", "max", "0", "for(int i=0;i<s.length();i++){\n if(s.charAt(i)=='R') count++;\n else { max=Math.max(count,max); count=0; }\n }", "int i=0;", "int i=0;", "i", "0", "i<s.length()", "i", "s.length()", "s.length", "s", "i++", "i++", "i", "{\n if(s.charAt(i)=='R') count++;\n else { max=Math.max(count,max); count=0; }\n }", "{\n if(s.charAt(i)=='R') count++;\n else { max=Math.max(count,max); count=0; }\n }", "if(s.charAt(i)=='R') count++;\n else { max=Math.max(count,max); count=0; }", "s.charAt(i)=='R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "count++", "count", "{ max=Math.max(count,max); count=0; }", "max=Math.max(count,max)", "max", "Math.max(count,max)", "Math.max", "Math", "count", "max", "count=0", "count", "0", "max=Math.max(count,max)", "max", "Math.max(count,max)", "Math.max", "Math", "count", "max", "out.println(max)", "out.println", "out", "max", "FastScanner in", "in", "PrintWriter out", "out", "static void sort(int[] a) {\n\t\tArrayList<Integer> l=new ArrayList<>();\n\t\tfor (int i:a) l.add(i);\n\t\tCollections.sort(l);\n\t\tfor (int i=0; i<a.length; i++) a[i]=l.get(i);\n\t}", "sort", "{\n\t\tArrayList<Integer> l=new ArrayList<>();\n\t\tfor (int i:a) l.add(i);\n\t\tCollections.sort(l);\n\t\tfor (int i=0; i<a.length; i++) a[i]=l.get(i);\n\t}", "ArrayList<Integer> l=new ArrayList<>();", "l", "new ArrayList<>()", "for (int i:a) l.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++) a[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\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\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\tint[] readArray(int n) {\n\t\t\tint[] a=new int[n];\n\t\t\tfor (int i=0; i<n; i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\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++) a[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++) a[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++) 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\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\t\n\tpublic static void main(String[] args) {\n\t\tFastScanner in=new FastScanner();\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t//\tint t=in.nextInt();\n\t//\twhile(t-->0)\n\t\tsolve(in,out);\n\t\tout.close();\n\t}\n\n static void solve(FastScanner in,PrintWriter out){\n String s=in.next();\n int count=0,max=0;\n for(int i=0;i<s.length();i++){\n if(s.charAt(i)=='R') count++;\n else { max=Math.max(count,max); count=0; }\n } max=Math.max(count,max);\n out.println(max);\n } \n\t\n\n\n\n\tstatic void sort(int[] a) {\n\t\tArrayList<Integer> l=new ArrayList<>();\n\t\tfor (int i:a) l.add(i);\n\t\tCollections.sort(l);\n\t\tfor (int i=0; i<a.length; i++) a[i]=l.get(i);\n\t}\n\t\n\tstatic class FastScanner {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st=new StringTokenizer(\"\");\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\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\tint[] readArray(int n) {\n\t\t\tint[] a=new int[n];\n\t\t\tfor (int i=0; i<n; i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t}\n\n\t\n}", "public class Main {\n\n\t\n\tpublic static void main(String[] args) {\n\t\tFastScanner in=new FastScanner();\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t//\tint t=in.nextInt();\n\t//\twhile(t-->0)\n\t\tsolve(in,out);\n\t\tout.close();\n\t}\n\n static void solve(FastScanner in,PrintWriter out){\n String s=in.next();\n int count=0,max=0;\n for(int i=0;i<s.length();i++){\n if(s.charAt(i)=='R') count++;\n else { max=Math.max(count,max); count=0; }\n } max=Math.max(count,max);\n out.println(max);\n } \n\t\n\n\n\n\tstatic void sort(int[] a) {\n\t\tArrayList<Integer> l=new ArrayList<>();\n\t\tfor (int i:a) l.add(i);\n\t\tCollections.sort(l);\n\t\tfor (int i=0; i<a.length; i++) a[i]=l.get(i);\n\t}\n\t\n\tstatic class FastScanner {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st=new StringTokenizer(\"\");\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\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\tint[] readArray(int n) {\n\t\t\tint[] a=new int[n];\n\t\t\tfor (int i=0; i<n; i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t}\n\n\t\n}", "Main" ]
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { FastScanner in=new FastScanner(); PrintWriter out=new PrintWriter(System.out); // int t=in.nextInt(); // while(t-->0) solve(in,out); out.close(); } static void solve(FastScanner in,PrintWriter out){ String s=in.next(); int count=0,max=0; for(int i=0;i<s.length();i++){ if(s.charAt(i)=='R') count++; else { max=Math.max(count,max); count=0; } } max=Math.max(count,max); out.println(max); } 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()); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 41, 13, 41, 13, 0, 13, 4, 18, 13, 17, 17, 0, 13, 4, 18, 13, 17, 17, 0, 13, 4, 18, 13, 17, 17, 14, 2, 2, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 224, 5 ], [ 224, 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 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 25, 29 ], [ 8, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 32, 36 ], [ 8, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 39, 43 ], [ 8, 44 ], [ 44, 45 ], [ 46, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 46, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 46, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 44, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 44, 66 ], [ 66, 67 ], [ 68, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 68, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 68, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 66, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 66, 88 ], [ 88, 89 ], [ 90, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 91, 94 ], [ 90, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 90, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 88, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 88, 110 ], [ 110, 111 ], [ 112, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 113, 116 ], [ 112, 117 ], [ 117, 118 ], [ 118, 119 ], [ 117, 120 ], [ 112, 121 ], [ 121, 122 ], [ 122, 123 ], [ 121, 124 ], [ 110, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 126, 131 ], [ 110, 132 ], [ 132, 133 ], [ 134, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 135, 138 ], [ 134, 139 ], [ 139, 140 ], [ 140, 141 ], [ 139, 142 ], [ 134, 143 ], [ 143, 144 ], [ 144, 145 ], [ 143, 146 ], [ 132, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 148, 153 ], [ 132, 154 ], [ 154, 155 ], [ 156, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 157, 160 ], [ 156, 161 ], [ 161, 162 ], [ 162, 163 ], [ 161, 164 ], [ 156, 165 ], [ 165, 166 ], [ 166, 167 ], [ 165, 168 ], [ 154, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 170, 175 ], [ 154, 176 ], [ 176, 177 ], [ 178, 178 ], [ 178, 179 ], [ 179, 180 ], [ 180, 181 ], [ 179, 182 ], [ 178, 183 ], [ 183, 184 ], [ 184, 185 ], [ 183, 186 ], [ 178, 187 ], [ 187, 188 ], [ 188, 189 ], [ 187, 190 ], [ 176, 191 ], [ 191, 192 ], [ 192, 193 ], [ 193, 194 ], [ 194, 195 ], [ 194, 196 ], [ 192, 197 ], [ 176, 198 ], [ 198, 199 ], [ 200, 200 ], [ 200, 201 ], [ 201, 202 ], [ 202, 203 ], [ 201, 204 ], [ 200, 205 ], [ 205, 206 ], [ 206, 207 ], [ 205, 208 ], [ 200, 209 ], [ 209, 210 ], [ 210, 211 ], [ 209, 212 ], [ 198, 213 ], [ 213, 214 ], [ 214, 215 ], [ 215, 216 ], [ 216, 217 ], [ 216, 218 ], [ 214, 219 ], [ 198, 220 ], [ 6, 221 ], [ 221, 222 ], [ 0, 223 ], [ 223, 224 ], [ 223, 225 ] ]
[ "import java.util.Scanner;\npublic class Main{\n public static void main(String args[]){\n Scanner scan = new Scanner(System.in);\n String x = scan.next();\n String a,b,c ;\n a = x.substring(0,1);\n b = x.substring(1,2);\n c = x.substring(2,3);\n if(a.equals(\"R\") && b.equals(\"R\") && c.equals(\"R\")){\n System.out.println(\"3\");\n }else if(a.equals(\"R\") && b.equals(\"R\") && c.equals(\"S\")){\n System.out.println(\"2\");\n }else if(a.equals(\"S\") && b.equals(\"R\") && c.equals(\"R\")){\n System.out.println(\"2\");\n }else if(a.equals(\"R\") && b.equals(\"S\") && c.equals(\"S\")){\n System.out.println(\"1\");\n }else if(a.equals(\"S\") && b.equals(\"R\") && c.equals(\"S\")){\n System.out.println(\"1\");\n }else if(a.equals(\"S\") && b.equals(\"S\") && c.equals(\"R\")){\n System.out.println(\"1\");\n }else if(a.equals(\"R\") && b.equals(\"S\") && c.equals(\"R\")){\n System.out.println(\"1\");\n }else if(a.equals(\"S\") && b.equals(\"S\") && c.equals(\"S\")){\n System.out.println(\"0\");\n\n }else{\n\n }\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 String x = scan.next();\n String a,b,c ;\n a = x.substring(0,1);\n b = x.substring(1,2);\n c = x.substring(2,3);\n if(a.equals(\"R\") && b.equals(\"R\") && c.equals(\"R\")){\n System.out.println(\"3\");\n }else if(a.equals(\"R\") && b.equals(\"R\") && c.equals(\"S\")){\n System.out.println(\"2\");\n }else if(a.equals(\"S\") && b.equals(\"R\") && c.equals(\"R\")){\n System.out.println(\"2\");\n }else if(a.equals(\"R\") && b.equals(\"S\") && c.equals(\"S\")){\n System.out.println(\"1\");\n }else if(a.equals(\"S\") && b.equals(\"R\") && c.equals(\"S\")){\n System.out.println(\"1\");\n }else if(a.equals(\"S\") && b.equals(\"S\") && c.equals(\"R\")){\n System.out.println(\"1\");\n }else if(a.equals(\"R\") && b.equals(\"S\") && c.equals(\"R\")){\n System.out.println(\"1\");\n }else if(a.equals(\"S\") && b.equals(\"S\") && c.equals(\"S\")){\n System.out.println(\"0\");\n\n }else{\n\n }\n\n }\n}", "Main", "public static void main(String args[]){\n Scanner scan = new Scanner(System.in);\n String x = scan.next();\n String a,b,c ;\n a = x.substring(0,1);\n b = x.substring(1,2);\n c = x.substring(2,3);\n if(a.equals(\"R\") && b.equals(\"R\") && c.equals(\"R\")){\n System.out.println(\"3\");\n }else if(a.equals(\"R\") && b.equals(\"R\") && c.equals(\"S\")){\n System.out.println(\"2\");\n }else if(a.equals(\"S\") && b.equals(\"R\") && c.equals(\"R\")){\n System.out.println(\"2\");\n }else if(a.equals(\"R\") && b.equals(\"S\") && c.equals(\"S\")){\n System.out.println(\"1\");\n }else if(a.equals(\"S\") && b.equals(\"R\") && c.equals(\"S\")){\n System.out.println(\"1\");\n }else if(a.equals(\"S\") && b.equals(\"S\") && c.equals(\"R\")){\n System.out.println(\"1\");\n }else if(a.equals(\"R\") && b.equals(\"S\") && c.equals(\"R\")){\n System.out.println(\"1\");\n }else if(a.equals(\"S\") && b.equals(\"S\") && c.equals(\"S\")){\n System.out.println(\"0\");\n\n }else{\n\n }\n\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n String x = scan.next();\n String a,b,c ;\n a = x.substring(0,1);\n b = x.substring(1,2);\n c = x.substring(2,3);\n if(a.equals(\"R\") && b.equals(\"R\") && c.equals(\"R\")){\n System.out.println(\"3\");\n }else if(a.equals(\"R\") && b.equals(\"R\") && c.equals(\"S\")){\n System.out.println(\"2\");\n }else if(a.equals(\"S\") && b.equals(\"R\") && c.equals(\"R\")){\n System.out.println(\"2\");\n }else if(a.equals(\"R\") && b.equals(\"S\") && c.equals(\"S\")){\n System.out.println(\"1\");\n }else if(a.equals(\"S\") && b.equals(\"R\") && c.equals(\"S\")){\n System.out.println(\"1\");\n }else if(a.equals(\"S\") && b.equals(\"S\") && c.equals(\"R\")){\n System.out.println(\"1\");\n }else if(a.equals(\"R\") && b.equals(\"S\") && c.equals(\"R\")){\n System.out.println(\"1\");\n }else if(a.equals(\"S\") && b.equals(\"S\") && c.equals(\"S\")){\n System.out.println(\"0\");\n\n }else{\n\n }\n\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String x = scan.next();", "x", "scan.next()", "scan.next", "scan", "String a", "a", "b", "b", "c ;", "c", "a = x.substring(0,1)", "a", "x.substring(0,1)", "x.substring", "x", "0", "1", "b = x.substring(1,2)", "b", "x.substring(1,2)", "x.substring", "x", "1", "2", "c = x.substring(2,3)", "c", "x.substring(2,3)", "x.substring", "x", "2", "3", "if(a.equals(\"R\") && b.equals(\"R\") && c.equals(\"R\")){\n System.out.println(\"3\");\n }else if(a.equals(\"R\") && b.equals(\"R\") && c.equals(\"S\")){\n System.out.println(\"2\");\n }else if(a.equals(\"S\") && b.equals(\"R\") && c.equals(\"R\")){\n System.out.println(\"2\");\n }else if(a.equals(\"R\") && b.equals(\"S\") && c.equals(\"S\")){\n System.out.println(\"1\");\n }else if(a.equals(\"S\") && b.equals(\"R\") && c.equals(\"S\")){\n System.out.println(\"1\");\n }else if(a.equals(\"S\") && b.equals(\"S\") && c.equals(\"R\")){\n System.out.println(\"1\");\n }else if(a.equals(\"R\") && b.equals(\"S\") && c.equals(\"R\")){\n System.out.println(\"1\");\n }else if(a.equals(\"S\") && b.equals(\"S\") && c.equals(\"S\")){\n System.out.println(\"0\");\n\n }else{\n\n }", "a.equals(\"R\") && b.equals(\"R\") && c.equals(\"R\")", "a.equals(\"R\") && b.equals(\"R\") && c.equals(\"R\")", "a.equals(\"R\")", "a.equals", "a", "\"R\"", "b.equals(\"R\")", "b.equals", "b", "\"R\"", "c.equals(\"R\")", "c.equals", "c", "\"R\"", "{\n System.out.println(\"3\");\n }", "System.out.println(\"3\")", "System.out.println", "System.out", "System", "System.out", "\"3\"", "if(a.equals(\"R\") && b.equals(\"R\") && c.equals(\"S\")){\n System.out.println(\"2\");\n }else if(a.equals(\"S\") && b.equals(\"R\") && c.equals(\"R\")){\n System.out.println(\"2\");\n }else if(a.equals(\"R\") && b.equals(\"S\") && c.equals(\"S\")){\n System.out.println(\"1\");\n }else if(a.equals(\"S\") && b.equals(\"R\") && c.equals(\"S\")){\n System.out.println(\"1\");\n }else if(a.equals(\"S\") && b.equals(\"S\") && c.equals(\"R\")){\n System.out.println(\"1\");\n }else if(a.equals(\"R\") && b.equals(\"S\") && c.equals(\"R\")){\n System.out.println(\"1\");\n }else if(a.equals(\"S\") && b.equals(\"S\") && c.equals(\"S\")){\n System.out.println(\"0\");\n\n }else{\n\n }", "a.equals(\"R\") && b.equals(\"R\") && c.equals(\"S\")", "a.equals(\"R\") && b.equals(\"R\") && c.equals(\"S\")", "a.equals(\"R\")", "a.equals", "a", "\"R\"", "b.equals(\"R\")", "b.equals", "b", "\"R\"", "c.equals(\"S\")", "c.equals", "c", "\"S\"", "{\n System.out.println(\"2\");\n }", "System.out.println(\"2\")", "System.out.println", "System.out", "System", "System.out", "\"2\"", "if(a.equals(\"S\") && b.equals(\"R\") && c.equals(\"R\")){\n System.out.println(\"2\");\n }else if(a.equals(\"R\") && b.equals(\"S\") && c.equals(\"S\")){\n System.out.println(\"1\");\n }else if(a.equals(\"S\") && b.equals(\"R\") && c.equals(\"S\")){\n System.out.println(\"1\");\n }else if(a.equals(\"S\") && b.equals(\"S\") && c.equals(\"R\")){\n System.out.println(\"1\");\n }else if(a.equals(\"R\") && b.equals(\"S\") && c.equals(\"R\")){\n System.out.println(\"1\");\n }else if(a.equals(\"S\") && b.equals(\"S\") && c.equals(\"S\")){\n System.out.println(\"0\");\n\n }else{\n\n }", "a.equals(\"S\") && b.equals(\"R\") && c.equals(\"R\")", "a.equals(\"S\") && b.equals(\"R\") && c.equals(\"R\")", "a.equals(\"S\")", "a.equals", "a", "\"S\"", "b.equals(\"R\")", "b.equals", "b", "\"R\"", "c.equals(\"R\")", "c.equals", "c", "\"R\"", "{\n System.out.println(\"2\");\n }", "System.out.println(\"2\")", "System.out.println", "System.out", "System", "System.out", "\"2\"", "if(a.equals(\"R\") && b.equals(\"S\") && c.equals(\"S\")){\n System.out.println(\"1\");\n }else if(a.equals(\"S\") && b.equals(\"R\") && c.equals(\"S\")){\n System.out.println(\"1\");\n }else if(a.equals(\"S\") && b.equals(\"S\") && c.equals(\"R\")){\n System.out.println(\"1\");\n }else if(a.equals(\"R\") && b.equals(\"S\") && c.equals(\"R\")){\n System.out.println(\"1\");\n }else if(a.equals(\"S\") && b.equals(\"S\") && c.equals(\"S\")){\n System.out.println(\"0\");\n\n }else{\n\n }", "a.equals(\"R\") && b.equals(\"S\") && c.equals(\"S\")", "a.equals(\"R\") && b.equals(\"S\") && c.equals(\"S\")", "a.equals(\"R\")", "a.equals", "a", "\"R\"", "b.equals(\"S\")", "b.equals", "b", "\"S\"", "c.equals(\"S\")", "c.equals", "c", "\"S\"", "{\n System.out.println(\"1\");\n }", "System.out.println(\"1\")", "System.out.println", "System.out", "System", "System.out", "\"1\"", "if(a.equals(\"S\") && b.equals(\"R\") && c.equals(\"S\")){\n System.out.println(\"1\");\n }else if(a.equals(\"S\") && b.equals(\"S\") && c.equals(\"R\")){\n System.out.println(\"1\");\n }else if(a.equals(\"R\") && b.equals(\"S\") && c.equals(\"R\")){\n System.out.println(\"1\");\n }else if(a.equals(\"S\") && b.equals(\"S\") && c.equals(\"S\")){\n System.out.println(\"0\");\n\n }else{\n\n }", "a.equals(\"S\") && b.equals(\"R\") && c.equals(\"S\")", "a.equals(\"S\") && b.equals(\"R\") && c.equals(\"S\")", "a.equals(\"S\")", "a.equals", "a", "\"S\"", "b.equals(\"R\")", "b.equals", "b", "\"R\"", "c.equals(\"S\")", "c.equals", "c", "\"S\"", "{\n System.out.println(\"1\");\n }", "System.out.println(\"1\")", "System.out.println", "System.out", "System", "System.out", "\"1\"", "if(a.equals(\"S\") && b.equals(\"S\") && c.equals(\"R\")){\n System.out.println(\"1\");\n }else if(a.equals(\"R\") && b.equals(\"S\") && c.equals(\"R\")){\n System.out.println(\"1\");\n }else if(a.equals(\"S\") && b.equals(\"S\") && c.equals(\"S\")){\n System.out.println(\"0\");\n\n }else{\n\n }", "a.equals(\"S\") && b.equals(\"S\") && c.equals(\"R\")", "a.equals(\"S\") && b.equals(\"S\") && c.equals(\"R\")", "a.equals(\"S\")", "a.equals", "a", "\"S\"", "b.equals(\"S\")", "b.equals", "b", "\"S\"", "c.equals(\"R\")", "c.equals", "c", "\"R\"", "{\n System.out.println(\"1\");\n }", "System.out.println(\"1\")", "System.out.println", "System.out", "System", "System.out", "\"1\"", "if(a.equals(\"R\") && b.equals(\"S\") && c.equals(\"R\")){\n System.out.println(\"1\");\n }else if(a.equals(\"S\") && b.equals(\"S\") && c.equals(\"S\")){\n System.out.println(\"0\");\n\n }else{\n\n }", "a.equals(\"R\") && b.equals(\"S\") && c.equals(\"R\")", "a.equals(\"R\") && b.equals(\"S\") && c.equals(\"R\")", "a.equals(\"R\")", "a.equals", "a", "\"R\"", "b.equals(\"S\")", "b.equals", "b", "\"S\"", "c.equals(\"R\")", "c.equals", "c", "\"R\"", "{\n System.out.println(\"1\");\n }", "System.out.println(\"1\")", "System.out.println", "System.out", "System", "System.out", "\"1\"", "if(a.equals(\"S\") && b.equals(\"S\") && c.equals(\"S\")){\n System.out.println(\"0\");\n\n }else{\n\n }", "a.equals(\"S\") && b.equals(\"S\") && c.equals(\"S\")", "a.equals(\"S\") && b.equals(\"S\") && c.equals(\"S\")", "a.equals(\"S\")", "a.equals", "a", "\"S\"", "b.equals(\"S\")", "b.equals", "b", "\"S\"", "c.equals(\"S\")", "c.equals", "c", "\"S\"", "{\n System.out.println(\"0\");\n\n }", "System.out.println(\"0\")", "System.out.println", "System.out", "System", "System.out", "\"0\"", "{\n\n }", "String args[]", "args", "public class Main{\n public static void main(String args[]){\n Scanner scan = new Scanner(System.in);\n String x = scan.next();\n String a,b,c ;\n a = x.substring(0,1);\n b = x.substring(1,2);\n c = x.substring(2,3);\n if(a.equals(\"R\") && b.equals(\"R\") && c.equals(\"R\")){\n System.out.println(\"3\");\n }else if(a.equals(\"R\") && b.equals(\"R\") && c.equals(\"S\")){\n System.out.println(\"2\");\n }else if(a.equals(\"S\") && b.equals(\"R\") && c.equals(\"R\")){\n System.out.println(\"2\");\n }else if(a.equals(\"R\") && b.equals(\"S\") && c.equals(\"S\")){\n System.out.println(\"1\");\n }else if(a.equals(\"S\") && b.equals(\"R\") && c.equals(\"S\")){\n System.out.println(\"1\");\n }else if(a.equals(\"S\") && b.equals(\"S\") && c.equals(\"R\")){\n System.out.println(\"1\");\n }else if(a.equals(\"R\") && b.equals(\"S\") && c.equals(\"R\")){\n System.out.println(\"1\");\n }else if(a.equals(\"S\") && b.equals(\"S\") && c.equals(\"S\")){\n System.out.println(\"0\");\n\n }else{\n\n }\n\n }\n}", "public class Main{\n public static void main(String args[]){\n Scanner scan = new Scanner(System.in);\n String x = scan.next();\n String a,b,c ;\n a = x.substring(0,1);\n b = x.substring(1,2);\n c = x.substring(2,3);\n if(a.equals(\"R\") && b.equals(\"R\") && c.equals(\"R\")){\n System.out.println(\"3\");\n }else if(a.equals(\"R\") && b.equals(\"R\") && c.equals(\"S\")){\n System.out.println(\"2\");\n }else if(a.equals(\"S\") && b.equals(\"R\") && c.equals(\"R\")){\n System.out.println(\"2\");\n }else if(a.equals(\"R\") && b.equals(\"S\") && c.equals(\"S\")){\n System.out.println(\"1\");\n }else if(a.equals(\"S\") && b.equals(\"R\") && c.equals(\"S\")){\n System.out.println(\"1\");\n }else if(a.equals(\"S\") && b.equals(\"S\") && c.equals(\"R\")){\n System.out.println(\"1\");\n }else if(a.equals(\"R\") && b.equals(\"S\") && c.equals(\"R\")){\n System.out.println(\"1\");\n }else if(a.equals(\"S\") && b.equals(\"S\") && c.equals(\"S\")){\n System.out.println(\"0\");\n\n }else{\n\n }\n\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String args[]){ Scanner scan = new Scanner(System.in); String x = scan.next(); String a,b,c ; a = x.substring(0,1); b = x.substring(1,2); c = x.substring(2,3); if(a.equals("R") && b.equals("R") && c.equals("R")){ System.out.println("3"); }else if(a.equals("R") && b.equals("R") && c.equals("S")){ System.out.println("2"); }else if(a.equals("S") && b.equals("R") && c.equals("R")){ System.out.println("2"); }else if(a.equals("R") && b.equals("S") && c.equals("S")){ System.out.println("1"); }else if(a.equals("S") && b.equals("R") && c.equals("S")){ System.out.println("1"); }else if(a.equals("S") && b.equals("S") && c.equals("R")){ System.out.println("1"); }else if(a.equals("R") && b.equals("S") && c.equals("R")){ System.out.println("1"); }else if(a.equals("S") && b.equals("S") && c.equals("S")){ System.out.println("0"); }else{ } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 14, 2, 4, 18, 13, 17, 17, 30, 40, 13, 0, 13, 4, 18, 13, 13, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 2, 4, 18, 13, 2, 13, 17, 4, 18, 13, 13, 2, 4, 18, 13, 13, 17, 30, 40, 13, 0, 13, 4, 18, 13, 13, 13, 14, 2, 4, 18, 13, 13, 17, 30, 0, 13, 17, 0, 13, 4, 18, 13, 13, 13, 30, 0, 13, 17, 29, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 130, 8 ], [ 130, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 22, 24 ], [ 11, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 25, 30 ], [ 9, 31 ], [ 31, 32 ], [ 130, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 35, 39 ], [ 39, 40 ], [ 39, 41 ], [ 35, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 43, 48 ], [ 42, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 54, 58 ], [ 35, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 59, 69 ], [ 69, 70 ], [ 70, 71 ], [ 59, 72 ], [ 73, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 80, 81 ], [ 80, 82 ], [ 76, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 75, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 88, 91 ], [ 87, 92 ], [ 74, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 99, 100 ], [ 98, 101 ], [ 98, 102 ], [ 74, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 105, 108 ], [ 104, 109 ], [ 103, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 110, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 117, 118 ], [ 116, 119 ], [ 116, 120 ], [ 103, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 35, 125 ], [ 125, 126 ], [ 33, 127 ], [ 127, 128 ], [ 0, 129 ], [ 129, 130 ], [ 129, 131 ] ]
[ "import java.util.Scanner;\nimport java.lang.Math;\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str = scan.nextLine();\n\t\tint totalRainy = getConcRainy(str);\n\t\tSystem.out.println(totalRainy);\n\t}\n\n\n\tpublic static int getConcRainy(String str){\n\t\tint total = 0;\n\t\tint max = 0;\n\t\tif(str.charAt(0) == 'R'){\n\t\t\ttotal++;\n\t\t\tmax = Math.max(max, total);\n\t\t}\n\n\t\tfor(int i = 1; i < str.length(); i++){\n\t\t\tif(str.charAt(i - 1) == str.charAt(i) && \n\t\t\t\t str.charAt(i) == 'R'){\n\t\t\t total++;\n\t\t\t max = Math.max(total, max);\n\t\t\t} else if(str.charAt(i) == 'R'){\n\t\t\t\ttotal = 1;\n\t\t\t\tmax = Math.max(total, max);\n\t\t\t} else {\n\t\t\t\ttotal = 0;\n\t\t\t}\n\t\t}\n\n\t\treturn max;\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "import java.lang.Math;", "Math", "java.lang", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str = scan.nextLine();\n\t\tint totalRainy = getConcRainy(str);\n\t\tSystem.out.println(totalRainy);\n\t}\n\n\n\tpublic static int getConcRainy(String str){\n\t\tint total = 0;\n\t\tint max = 0;\n\t\tif(str.charAt(0) == 'R'){\n\t\t\ttotal++;\n\t\t\tmax = Math.max(max, total);\n\t\t}\n\n\t\tfor(int i = 1; i < str.length(); i++){\n\t\t\tif(str.charAt(i - 1) == str.charAt(i) && \n\t\t\t\t str.charAt(i) == 'R'){\n\t\t\t total++;\n\t\t\t max = Math.max(total, max);\n\t\t\t} else if(str.charAt(i) == 'R'){\n\t\t\t\ttotal = 1;\n\t\t\t\tmax = Math.max(total, max);\n\t\t\t} else {\n\t\t\t\ttotal = 0;\n\t\t\t}\n\t\t}\n\n\t\treturn max;\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str = scan.nextLine();\n\t\tint totalRainy = getConcRainy(str);\n\t\tSystem.out.println(totalRainy);\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str = scan.nextLine();\n\t\tint totalRainy = getConcRainy(str);\n\t\tSystem.out.println(totalRainy);\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String str = scan.nextLine();", "str", "scan.nextLine()", "scan.nextLine", "scan", "int totalRainy = getConcRainy(str);", "totalRainy", "getConcRainy(str)", "getConcRainy", "str", "System.out.println(totalRainy)", "System.out.println", "System.out", "System", "System.out", "totalRainy", "String[] args", "args", "public static int getConcRainy(String str){\n\t\tint total = 0;\n\t\tint max = 0;\n\t\tif(str.charAt(0) == 'R'){\n\t\t\ttotal++;\n\t\t\tmax = Math.max(max, total);\n\t\t}\n\n\t\tfor(int i = 1; i < str.length(); i++){\n\t\t\tif(str.charAt(i - 1) == str.charAt(i) && \n\t\t\t\t str.charAt(i) == 'R'){\n\t\t\t total++;\n\t\t\t max = Math.max(total, max);\n\t\t\t} else if(str.charAt(i) == 'R'){\n\t\t\t\ttotal = 1;\n\t\t\t\tmax = Math.max(total, max);\n\t\t\t} else {\n\t\t\t\ttotal = 0;\n\t\t\t}\n\t\t}\n\n\t\treturn max;\n\t}", "getConcRainy", "{\n\t\tint total = 0;\n\t\tint max = 0;\n\t\tif(str.charAt(0) == 'R'){\n\t\t\ttotal++;\n\t\t\tmax = Math.max(max, total);\n\t\t}\n\n\t\tfor(int i = 1; i < str.length(); i++){\n\t\t\tif(str.charAt(i - 1) == str.charAt(i) && \n\t\t\t\t str.charAt(i) == 'R'){\n\t\t\t total++;\n\t\t\t max = Math.max(total, max);\n\t\t\t} else if(str.charAt(i) == 'R'){\n\t\t\t\ttotal = 1;\n\t\t\t\tmax = Math.max(total, max);\n\t\t\t} else {\n\t\t\t\ttotal = 0;\n\t\t\t}\n\t\t}\n\n\t\treturn max;\n\t}", "int total = 0;", "total", "0", "int max = 0;", "max", "0", "if(str.charAt(0) == 'R'){\n\t\t\ttotal++;\n\t\t\tmax = Math.max(max, total);\n\t\t}", "str.charAt(0) == 'R'", "str.charAt(0)", "str.charAt", "str", "0", "'R'", "{\n\t\t\ttotal++;\n\t\t\tmax = Math.max(max, total);\n\t\t}", "total++", "total", "max = Math.max(max, total)", "max", "Math.max(max, total)", "Math.max", "Math", "max", "total", "for(int i = 1; i < str.length(); i++){\n\t\t\tif(str.charAt(i - 1) == str.charAt(i) && \n\t\t\t\t str.charAt(i) == 'R'){\n\t\t\t total++;\n\t\t\t max = Math.max(total, max);\n\t\t\t} else if(str.charAt(i) == 'R'){\n\t\t\t\ttotal = 1;\n\t\t\t\tmax = Math.max(total, max);\n\t\t\t} else {\n\t\t\t\ttotal = 0;\n\t\t\t}\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < str.length()", "i", "str.length()", "str.length", "str", "i++", "i++", "i", "{\n\t\t\tif(str.charAt(i - 1) == str.charAt(i) && \n\t\t\t\t str.charAt(i) == 'R'){\n\t\t\t total++;\n\t\t\t max = Math.max(total, max);\n\t\t\t} else if(str.charAt(i) == 'R'){\n\t\t\t\ttotal = 1;\n\t\t\t\tmax = Math.max(total, max);\n\t\t\t} else {\n\t\t\t\ttotal = 0;\n\t\t\t}\n\t\t}", "{\n\t\t\tif(str.charAt(i - 1) == str.charAt(i) && \n\t\t\t\t str.charAt(i) == 'R'){\n\t\t\t total++;\n\t\t\t max = Math.max(total, max);\n\t\t\t} else if(str.charAt(i) == 'R'){\n\t\t\t\ttotal = 1;\n\t\t\t\tmax = Math.max(total, max);\n\t\t\t} else {\n\t\t\t\ttotal = 0;\n\t\t\t}\n\t\t}", "if(str.charAt(i - 1) == str.charAt(i) && \n\t\t\t\t str.charAt(i) == 'R'){\n\t\t\t total++;\n\t\t\t max = Math.max(total, max);\n\t\t\t} else if(str.charAt(i) == 'R'){\n\t\t\t\ttotal = 1;\n\t\t\t\tmax = Math.max(total, max);\n\t\t\t} else {\n\t\t\t\ttotal = 0;\n\t\t\t}", "str.charAt(i - 1) == str.charAt(i) && \n\t\t\t\t str.charAt(i) == 'R'", "str.charAt(i - 1) == str.charAt(i)", "str.charAt(i - 1)", "str.charAt", "str", "i - 1", "i", "1", "str.charAt(i)", "str.charAt", "str", "i", "str.charAt(i) == 'R'", "str.charAt(i)", "str.charAt", "str", "i", "'R'", "{\n\t\t\t total++;\n\t\t\t max = Math.max(total, max);\n\t\t\t}", "total++", "total", "max = Math.max(total, max)", "max", "Math.max(total, max)", "Math.max", "Math", "total", "max", "if(str.charAt(i) == 'R'){\n\t\t\t\ttotal = 1;\n\t\t\t\tmax = Math.max(total, max);\n\t\t\t} else {\n\t\t\t\ttotal = 0;\n\t\t\t}", "str.charAt(i) == 'R'", "str.charAt(i)", "str.charAt", "str", "i", "'R'", "{\n\t\t\t\ttotal = 1;\n\t\t\t\tmax = Math.max(total, max);\n\t\t\t}", "total = 1", "total", "1", "max = Math.max(total, max)", "max", "Math.max(total, max)", "Math.max", "Math", "total", "max", "{\n\t\t\t\ttotal = 0;\n\t\t\t}", "total = 0", "total", "0", "return max;", "max", "String str", "str", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str = scan.nextLine();\n\t\tint totalRainy = getConcRainy(str);\n\t\tSystem.out.println(totalRainy);\n\t}\n\n\n\tpublic static int getConcRainy(String str){\n\t\tint total = 0;\n\t\tint max = 0;\n\t\tif(str.charAt(0) == 'R'){\n\t\t\ttotal++;\n\t\t\tmax = Math.max(max, total);\n\t\t}\n\n\t\tfor(int i = 1; i < str.length(); i++){\n\t\t\tif(str.charAt(i - 1) == str.charAt(i) && \n\t\t\t\t str.charAt(i) == 'R'){\n\t\t\t total++;\n\t\t\t max = Math.max(total, max);\n\t\t\t} else if(str.charAt(i) == 'R'){\n\t\t\t\ttotal = 1;\n\t\t\t\tmax = Math.max(total, max);\n\t\t\t} else {\n\t\t\t\ttotal = 0;\n\t\t\t}\n\t\t}\n\n\t\treturn max;\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str = scan.nextLine();\n\t\tint totalRainy = getConcRainy(str);\n\t\tSystem.out.println(totalRainy);\n\t}\n\n\n\tpublic static int getConcRainy(String str){\n\t\tint total = 0;\n\t\tint max = 0;\n\t\tif(str.charAt(0) == 'R'){\n\t\t\ttotal++;\n\t\t\tmax = Math.max(max, total);\n\t\t}\n\n\t\tfor(int i = 1; i < str.length(); i++){\n\t\t\tif(str.charAt(i - 1) == str.charAt(i) && \n\t\t\t\t str.charAt(i) == 'R'){\n\t\t\t total++;\n\t\t\t max = Math.max(total, max);\n\t\t\t} else if(str.charAt(i) == 'R'){\n\t\t\t\ttotal = 1;\n\t\t\t\tmax = Math.max(total, max);\n\t\t\t} else {\n\t\t\t\ttotal = 0;\n\t\t\t}\n\t\t}\n\n\t\treturn max;\n\t}\n}", "Main" ]
import java.util.Scanner; import java.lang.Math; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String str = scan.nextLine(); int totalRainy = getConcRainy(str); System.out.println(totalRainy); } public static int getConcRainy(String str){ int total = 0; int max = 0; if(str.charAt(0) == 'R'){ total++; max = Math.max(max, total); } for(int i = 1; i < str.length(); i++){ if(str.charAt(i - 1) == str.charAt(i) && str.charAt(i) == 'R'){ total++; max = Math.max(total, max); } else if(str.charAt(i) == 'R'){ total = 1; max = Math.max(total, max); } else { total = 0; } } return max; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 4, 18, 13, 17, 14, 2, 13, 40, 17, 30, 0, 13, 17, 30, 41, 13, 4, 18, 13, 17, 14, 2, 13, 40, 17, 30, 0, 13, 17, 30, 41, 13, 4, 18, 13, 17, 14, 2, 13, 40, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 76, 5 ], [ 76, 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 ], [ 22, 25 ], [ 8, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 26, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 26, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 35, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 42, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 42, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 51, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 58, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 8, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 6, 73 ], [ 73, 74 ], [ 0, 75 ], [ 75, 76 ], [ 75, 77 ] ]
[ "import java.util.*;\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n // 入力値を取得する\n String input = sc.nextLine();\n String result = \"0\";\n\n int result1 = input.indexOf(\"RRR\");\n if (result1 > -1) {\n result = \"3\";\n } else {\n\t int result2 = input.indexOf(\"RR\");\n if (result2 > -1) {\n result = \"2\";\n } else {\n int result3 = input.indexOf(\"R\");\n if (result3 > -1) {\n result = \"1\";\n }\n }\n }\n System.out.println(result);\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 // 入力値を取得する\n String input = sc.nextLine();\n String result = \"0\";\n\n int result1 = input.indexOf(\"RRR\");\n if (result1 > -1) {\n result = \"3\";\n } else {\n\t int result2 = input.indexOf(\"RR\");\n if (result2 > -1) {\n result = \"2\";\n } else {\n int result3 = input.indexOf(\"R\");\n if (result3 > -1) {\n result = \"1\";\n }\n }\n }\n System.out.println(result);\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n // 入力値を取得する\n String input = sc.nextLine();\n String result = \"0\";\n\n int result1 = input.indexOf(\"RRR\");\n if (result1 > -1) {\n result = \"3\";\n } else {\n\t int result2 = input.indexOf(\"RR\");\n if (result2 > -1) {\n result = \"2\";\n } else {\n int result3 = input.indexOf(\"R\");\n if (result3 > -1) {\n result = \"1\";\n }\n }\n }\n System.out.println(result);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n \n // 入力値を取得する\n String input = sc.nextLine();\n String result = \"0\";\n\n int result1 = input.indexOf(\"RRR\");\n if (result1 > -1) {\n result = \"3\";\n } else {\n\t int result2 = input.indexOf(\"RR\");\n if (result2 > -1) {\n result = \"2\";\n } else {\n int result3 = input.indexOf(\"R\");\n if (result3 > -1) {\n result = \"1\";\n }\n }\n }\n System.out.println(result);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String input = sc.nextLine();", "input", "sc.nextLine()", "sc.nextLine", "sc", "String result = \"0\";", "result", "\"0\"", "int result1 = input.indexOf(\"RRR\");", "result1", "input.indexOf(\"RRR\")", "input.indexOf", "input", "\"RRR\"", "if (result1 > -1) {\n result = \"3\";\n } else {\n\t int result2 = input.indexOf(\"RR\");\n if (result2 > -1) {\n result = \"2\";\n } else {\n int result3 = input.indexOf(\"R\");\n if (result3 > -1) {\n result = \"1\";\n }\n }\n }", "result1 > -1", "result1", "-1", "1", "{\n result = \"3\";\n }", "result = \"3\"", "result", "\"3\"", "{\n\t int result2 = input.indexOf(\"RR\");\n if (result2 > -1) {\n result = \"2\";\n } else {\n int result3 = input.indexOf(\"R\");\n if (result3 > -1) {\n result = \"1\";\n }\n }\n }", "int result2 = input.indexOf(\"RR\");", "result2", "input.indexOf(\"RR\")", "input.indexOf", "input", "\"RR\"", "if (result2 > -1) {\n result = \"2\";\n } else {\n int result3 = input.indexOf(\"R\");\n if (result3 > -1) {\n result = \"1\";\n }\n }", "result2 > -1", "result2", "-1", "1", "{\n result = \"2\";\n }", "result = \"2\"", "result", "\"2\"", "{\n int result3 = input.indexOf(\"R\");\n if (result3 > -1) {\n result = \"1\";\n }\n }", "int result3 = input.indexOf(\"R\");", "result3", "input.indexOf(\"R\")", "input.indexOf", "input", "\"R\"", "if (result3 > -1) {\n result = \"1\";\n }", "result3 > -1", "result3", "-1", "1", "{\n result = \"1\";\n }", "result = \"1\"", "result", "\"1\"", "System.out.println(result)", "System.out.println", "System.out", "System", "System.out", "result", "String[] args", "args", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n // 入力値を取得する\n String input = sc.nextLine();\n String result = \"0\";\n\n int result1 = input.indexOf(\"RRR\");\n if (result1 > -1) {\n result = \"3\";\n } else {\n\t int result2 = input.indexOf(\"RR\");\n if (result2 > -1) {\n result = \"2\";\n } else {\n int result3 = input.indexOf(\"R\");\n if (result3 > -1) {\n result = \"1\";\n }\n }\n }\n System.out.println(result);\n }\n}", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n // 入力値を取得する\n String input = sc.nextLine();\n String result = \"0\";\n\n int result1 = input.indexOf(\"RRR\");\n if (result1 > -1) {\n result = \"3\";\n } else {\n\t int result2 = input.indexOf(\"RR\");\n if (result2 > -1) {\n result = \"2\";\n } else {\n int result3 = input.indexOf(\"R\");\n if (result3 > -1) {\n result = \"1\";\n }\n }\n }\n System.out.println(result);\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 入力値を取得する String input = sc.nextLine(); String result = "0"; int result1 = input.indexOf("RRR"); if (result1 > -1) { result = "3"; } else { int result2 = input.indexOf("RR"); if (result2 > -1) { result = "2"; } else { int result3 = input.indexOf("R"); if (result3 > -1) { result = "1"; } } } System.out.println(result); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 14, 4, 18, 13, 17, 30, 0, 13, 17, 14, 4, 18, 13, 17, 30, 0, 13, 17, 14, 4, 18, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 56, 5 ], [ 56, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 20, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 29, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 29, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 38, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 8, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 6, 53 ], [ 53, 54 ], [ 0, 55 ], [ 55, 56 ], [ 55, 57 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n int ans = 0;\n if (S.contains(\"RRR\")) {\n ans = 3;\n } else if (S.contains(\"RR\")) {\n ans = 2;\n } else if (S.contains(\"R\")) {\n ans = 1;\n } \n System.out.println(ans);\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n int ans = 0;\n if (S.contains(\"RRR\")) {\n ans = 3;\n } else if (S.contains(\"RR\")) {\n ans = 2;\n } else if (S.contains(\"R\")) {\n ans = 1;\n } \n System.out.println(ans);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n int ans = 0;\n if (S.contains(\"RRR\")) {\n ans = 3;\n } else if (S.contains(\"RR\")) {\n ans = 2;\n } else if (S.contains(\"R\")) {\n ans = 1;\n } \n System.out.println(ans);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n int ans = 0;\n if (S.contains(\"RRR\")) {\n ans = 3;\n } else if (S.contains(\"RR\")) {\n ans = 2;\n } else if (S.contains(\"R\")) {\n ans = 1;\n } \n System.out.println(ans);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String S = sc.next();", "S", "sc.next()", "sc.next", "sc", "int ans = 0;", "ans", "0", "if (S.contains(\"RRR\")) {\n ans = 3;\n } else if (S.contains(\"RR\")) {\n ans = 2;\n } else if (S.contains(\"R\")) {\n ans = 1;\n }", "S.contains(\"RRR\")", "S.contains", "S", "\"RRR\"", "{\n ans = 3;\n }", "ans = 3", "ans", "3", "if (S.contains(\"RR\")) {\n ans = 2;\n } else if (S.contains(\"R\")) {\n ans = 1;\n }", "S.contains(\"RR\")", "S.contains", "S", "\"RR\"", "{\n ans = 2;\n }", "ans = 2", "ans", "2", "if (S.contains(\"R\")) {\n ans = 1;\n }", "S.contains(\"R\")", "S.contains", "S", "\"R\"", "{\n ans = 1;\n }", "ans = 1", "ans", "1", "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 String S = sc.next();\n int ans = 0;\n if (S.contains(\"RRR\")) {\n ans = 3;\n } else if (S.contains(\"RR\")) {\n ans = 2;\n } else if (S.contains(\"R\")) {\n ans = 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 String S = sc.next();\n int ans = 0;\n if (S.contains(\"RRR\")) {\n ans = 3;\n } else if (S.contains(\"RR\")) {\n ans = 2;\n } else if (S.contains(\"R\")) {\n ans = 1;\n } \n System.out.println(ans);\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String S = sc.next(); int ans = 0; if (S.contains("RRR")) { ans = 3; } else if (S.contains("RR")) { ans = 2; } else if (S.contains("R")) { ans = 1; } System.out.println(ans); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 17, 41, 13, 17, 14, 4, 18, 18, 13, 17, 13, 30, 0, 13, 2, 13, 17, 30, 0, 13, 13, 14, 4, 18, 18, 13, 17, 13, 30, 0, 13, 2, 13, 17, 30, 0, 13, 13, 14, 4, 18, 18, 13, 17, 13, 30, 0, 13, 2, 13, 17, 30, 0, 13, 13, 14, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 13, 14, 2, 2, 2, 13, 17, 4, 18, 18, 13, 17, 13, 4, 18, 18, 13, 17, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 134, 5 ], [ 134, 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 ], [ 23, 25 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 8, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 29, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 39, 41 ], [ 29, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 8, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 46, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 56, 58 ], [ 46, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 8, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 63, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 73, 75 ], [ 63, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 8, 80 ], [ 80, 81 ], [ 82, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 86, 88 ], [ 82, 89 ], [ 89, 90 ], [ 89, 91 ], [ 80, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 80, 99 ], [ 99, 100 ], [ 101, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 105, 110 ], [ 101, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 111, 116 ], [ 99, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 118, 123 ], [ 99, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 125, 130 ], [ 6, 131 ], [ 131, 132 ], [ 0, 133 ], [ 133, 134 ], [ 133, 135 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String str = sc.nextLine();\n String[] ar = str.split(\"\");\n int c = 0;\n String r = \"R\";\n if (ar[0].equals(r)) {\n c = c + 1;\n } else {\n c = c;\n }\n if (ar[1].equals(r)) {\n c = c + 1;\n } else {\n c = c;\n }\n if (ar[2].equals(r)) {\n c = c + 1;\n } else {\n c = c;\n }\n if (c == 1 || c == 3 || c == 0) {\n System.out.println(c);\n } else if ( c == 2 && ar[0].equals(r) && ar[2].equals(r)) {\n System.out.println(1);\n } else {\n System.out.println(2);\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 String str = sc.nextLine();\n String[] ar = str.split(\"\");\n int c = 0;\n String r = \"R\";\n if (ar[0].equals(r)) {\n c = c + 1;\n } else {\n c = c;\n }\n if (ar[1].equals(r)) {\n c = c + 1;\n } else {\n c = c;\n }\n if (ar[2].equals(r)) {\n c = c + 1;\n } else {\n c = c;\n }\n if (c == 1 || c == 3 || c == 0) {\n System.out.println(c);\n } else if ( c == 2 && ar[0].equals(r) && ar[2].equals(r)) {\n System.out.println(1);\n } else {\n System.out.println(2);\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String str = sc.nextLine();\n String[] ar = str.split(\"\");\n int c = 0;\n String r = \"R\";\n if (ar[0].equals(r)) {\n c = c + 1;\n } else {\n c = c;\n }\n if (ar[1].equals(r)) {\n c = c + 1;\n } else {\n c = c;\n }\n if (ar[2].equals(r)) {\n c = c + 1;\n } else {\n c = c;\n }\n if (c == 1 || c == 3 || c == 0) {\n System.out.println(c);\n } else if ( c == 2 && ar[0].equals(r) && ar[2].equals(r)) {\n System.out.println(1);\n } else {\n System.out.println(2);\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String str = sc.nextLine();\n String[] ar = str.split(\"\");\n int c = 0;\n String r = \"R\";\n if (ar[0].equals(r)) {\n c = c + 1;\n } else {\n c = c;\n }\n if (ar[1].equals(r)) {\n c = c + 1;\n } else {\n c = c;\n }\n if (ar[2].equals(r)) {\n c = c + 1;\n } else {\n c = c;\n }\n if (c == 1 || c == 3 || c == 0) {\n System.out.println(c);\n } else if ( c == 2 && ar[0].equals(r) && ar[2].equals(r)) {\n System.out.println(1);\n } else {\n System.out.println(2);\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String str = sc.nextLine();", "str", "sc.nextLine()", "sc.nextLine", "sc", "String[] ar = str.split(\"\");", "ar", "str.split(\"\")", "str.split", "str", "\"\"", "int c = 0;", "c", "0", "String r = \"R\";", "r", "\"R\"", "if (ar[0].equals(r)) {\n c = c + 1;\n } else {\n c = c;\n }", "ar[0].equals(r)", "ar[0].equals", "ar[0]", "ar", "0", "r", "{\n c = c + 1;\n }", "c = c + 1", "c", "c + 1", "c", "1", "{\n c = c;\n }", "c = c", "c", "c", "if (ar[1].equals(r)) {\n c = c + 1;\n } else {\n c = c;\n }", "ar[1].equals(r)", "ar[1].equals", "ar[1]", "ar", "1", "r", "{\n c = c + 1;\n }", "c = c + 1", "c", "c + 1", "c", "1", "{\n c = c;\n }", "c = c", "c", "c", "if (ar[2].equals(r)) {\n c = c + 1;\n } else {\n c = c;\n }", "ar[2].equals(r)", "ar[2].equals", "ar[2]", "ar", "2", "r", "{\n c = c + 1;\n }", "c = c + 1", "c", "c + 1", "c", "1", "{\n c = c;\n }", "c = c", "c", "c", "if (c == 1 || c == 3 || c == 0) {\n System.out.println(c);\n } else if ( c == 2 && ar[0].equals(r) && ar[2].equals(r)) {\n System.out.println(1);\n } else {\n System.out.println(2);\n }", "c == 1 || c == 3 || c == 0", "c == 1 || c == 3 || c == 0", "c == 1", "c", "1", "c == 3", "c", "3", "c == 0", "c", "0", "{\n System.out.println(c);\n }", "System.out.println(c)", "System.out.println", "System.out", "System", "System.out", "c", "if ( c == 2 && ar[0].equals(r) && ar[2].equals(r)) {\n System.out.println(1);\n } else {\n System.out.println(2);\n }", "c == 2 && ar[0].equals(r) && ar[2].equals(r)", "c == 2 && ar[0].equals(r) && ar[2].equals(r)", "c == 2", "c", "2", "ar[0].equals(r)", "ar[0].equals", "ar[0]", "ar", "0", "r", "ar[2].equals(r)", "ar[2].equals", "ar[2]", "ar", "2", "r", "{\n System.out.println(1);\n }", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "{\n System.out.println(2);\n }", "System.out.println(2)", "System.out.println", "System.out", "System", "System.out", "2", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String str = sc.nextLine();\n String[] ar = str.split(\"\");\n int c = 0;\n String r = \"R\";\n if (ar[0].equals(r)) {\n c = c + 1;\n } else {\n c = c;\n }\n if (ar[1].equals(r)) {\n c = c + 1;\n } else {\n c = c;\n }\n if (ar[2].equals(r)) {\n c = c + 1;\n } else {\n c = c;\n }\n if (c == 1 || c == 3 || c == 0) {\n System.out.println(c);\n } else if ( c == 2 && ar[0].equals(r) && ar[2].equals(r)) {\n System.out.println(1);\n } else {\n System.out.println(2);\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String str = sc.nextLine();\n String[] ar = str.split(\"\");\n int c = 0;\n String r = \"R\";\n if (ar[0].equals(r)) {\n c = c + 1;\n } else {\n c = c;\n }\n if (ar[1].equals(r)) {\n c = c + 1;\n } else {\n c = c;\n }\n if (ar[2].equals(r)) {\n c = c + 1;\n } else {\n c = c;\n }\n if (c == 1 || c == 3 || c == 0) {\n System.out.println(c);\n } else if ( c == 2 && ar[0].equals(r) && ar[2].equals(r)) {\n System.out.println(1);\n } else {\n System.out.println(2);\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str = sc.nextLine(); String[] ar = str.split(""); int c = 0; String r = "R"; if (ar[0].equals(r)) { c = c + 1; } else { c = c; } if (ar[1].equals(r)) { c = c + 1; } else { c = c; } if (ar[2].equals(r)) { c = c + 1; } else { c = c; } if (c == 1 || c == 3 || c == 0) { System.out.println(c); } else if ( c == 2 && ar[0].equals(r) && ar[2].equals(r)) { System.out.println(1); } else { System.out.println(2); } } }
[ 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, 2, 17, 17, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 14, 2, 2, 18, 13, 13, 17, 2, 18, 13, 2, 13, 17, 17, 30, 0, 13, 17, 14, 2, 2, 18, 13, 13, 17, 2, 18, 13, 2, 13, 17, 17, 30, 40, 13, 14, 2, 2, 18, 13, 13, 17, 2, 18, 13, 2, 13, 17, 17, 30, 0, 13, 17, 14, 2, 2, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 127, 5 ], [ 127, 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 ], [ 27, 28 ], [ 27, 29 ], [ 20, 30 ], [ 30, 31 ], [ 31, 32 ], [ 20, 33 ], [ 34, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 34, 40 ], [ 40, 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 ], [ 40, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 40, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 59, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 68, 70 ], [ 65, 71 ], [ 58, 72 ], [ 72, 73 ], [ 73, 74 ], [ 58, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 76, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 85, 87 ], [ 82, 88 ], [ 75, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 34, 93 ], [ 93, 94 ], [ 95, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 96, 101 ], [ 95, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 103, 106 ], [ 102, 107 ], [ 95, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 109, 112 ], [ 108, 113 ], [ 93, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 8, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 118, 123 ], [ 6, 124 ], [ 124, 125 ], [ 0, 126 ], [ 126, 127 ], [ 126, 128 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tString s = in.next();\n\t\tint c = 1;\n\t\tfor(int i = 0;i<3-1;i++) {\n\t\t\tchar[] ch = s.toCharArray();\n\t\t\t\n\t\t\t if(ch[i] =='S' && ch[i+1] == 'S') {\n\t\t\t\tc=0;\n\t\t\t}\n\t\t\telse if((ch[i]=='R' && ch[i+1] == 'R')){\n\t\t\t\tc++;\n\t\t\t}\n\t\t\telse if((ch[i] == 'S' && ch[i+1] == 'R')) {\n\t\t\t\tc=1;\n\t\t\t}\n\t\t\t if(s.charAt(0) == 'R' && s.charAt(1) == 'S' && s.charAt(2)== 'S'){\n\t\t\t\tc=1;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\tSystem.out.println(c);\n\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tString s = in.next();\n\t\tint c = 1;\n\t\tfor(int i = 0;i<3-1;i++) {\n\t\t\tchar[] ch = s.toCharArray();\n\t\t\t\n\t\t\t if(ch[i] =='S' && ch[i+1] == 'S') {\n\t\t\t\tc=0;\n\t\t\t}\n\t\t\telse if((ch[i]=='R' && ch[i+1] == 'R')){\n\t\t\t\tc++;\n\t\t\t}\n\t\t\telse if((ch[i] == 'S' && ch[i+1] == 'R')) {\n\t\t\t\tc=1;\n\t\t\t}\n\t\t\t if(s.charAt(0) == 'R' && s.charAt(1) == 'S' && s.charAt(2)== 'S'){\n\t\t\t\tc=1;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\tSystem.out.println(c);\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tString s = in.next();\n\t\tint c = 1;\n\t\tfor(int i = 0;i<3-1;i++) {\n\t\t\tchar[] ch = s.toCharArray();\n\t\t\t\n\t\t\t if(ch[i] =='S' && ch[i+1] == 'S') {\n\t\t\t\tc=0;\n\t\t\t}\n\t\t\telse if((ch[i]=='R' && ch[i+1] == 'R')){\n\t\t\t\tc++;\n\t\t\t}\n\t\t\telse if((ch[i] == 'S' && ch[i+1] == 'R')) {\n\t\t\t\tc=1;\n\t\t\t}\n\t\t\t if(s.charAt(0) == 'R' && s.charAt(1) == 'S' && s.charAt(2)== 'S'){\n\t\t\t\tc=1;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\tSystem.out.println(c);\n\n\t}", "main", "{\n\t\t\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tString s = in.next();\n\t\tint c = 1;\n\t\tfor(int i = 0;i<3-1;i++) {\n\t\t\tchar[] ch = s.toCharArray();\n\t\t\t\n\t\t\t if(ch[i] =='S' && ch[i+1] == 'S') {\n\t\t\t\tc=0;\n\t\t\t}\n\t\t\telse if((ch[i]=='R' && ch[i+1] == 'R')){\n\t\t\t\tc++;\n\t\t\t}\n\t\t\telse if((ch[i] == 'S' && ch[i+1] == 'R')) {\n\t\t\t\tc=1;\n\t\t\t}\n\t\t\t if(s.charAt(0) == 'R' && s.charAt(1) == 'S' && s.charAt(2)== 'S'){\n\t\t\t\tc=1;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\tSystem.out.println(c);\n\n\t}", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "String s = in.next();", "s", "in.next()", "in.next", "in", "int c = 1;", "c", "1", "for(int i = 0;i<3-1;i++) {\n\t\t\tchar[] ch = s.toCharArray();\n\t\t\t\n\t\t\t if(ch[i] =='S' && ch[i+1] == 'S') {\n\t\t\t\tc=0;\n\t\t\t}\n\t\t\telse if((ch[i]=='R' && ch[i+1] == 'R')){\n\t\t\t\tc++;\n\t\t\t}\n\t\t\telse if((ch[i] == 'S' && ch[i+1] == 'R')) {\n\t\t\t\tc=1;\n\t\t\t}\n\t\t\t if(s.charAt(0) == 'R' && s.charAt(1) == 'S' && s.charAt(2)== 'S'){\n\t\t\t\tc=1;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i<3-1", "i", "3-1", "3", "1", "i++", "i++", "i", "{\n\t\t\tchar[] ch = s.toCharArray();\n\t\t\t\n\t\t\t if(ch[i] =='S' && ch[i+1] == 'S') {\n\t\t\t\tc=0;\n\t\t\t}\n\t\t\telse if((ch[i]=='R' && ch[i+1] == 'R')){\n\t\t\t\tc++;\n\t\t\t}\n\t\t\telse if((ch[i] == 'S' && ch[i+1] == 'R')) {\n\t\t\t\tc=1;\n\t\t\t}\n\t\t\t if(s.charAt(0) == 'R' && s.charAt(1) == 'S' && s.charAt(2)== 'S'){\n\t\t\t\tc=1;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}", "{\n\t\t\tchar[] ch = s.toCharArray();\n\t\t\t\n\t\t\t if(ch[i] =='S' && ch[i+1] == 'S') {\n\t\t\t\tc=0;\n\t\t\t}\n\t\t\telse if((ch[i]=='R' && ch[i+1] == 'R')){\n\t\t\t\tc++;\n\t\t\t}\n\t\t\telse if((ch[i] == 'S' && ch[i+1] == 'R')) {\n\t\t\t\tc=1;\n\t\t\t}\n\t\t\t if(s.charAt(0) == 'R' && s.charAt(1) == 'S' && s.charAt(2)== 'S'){\n\t\t\t\tc=1;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}", "char[] ch = s.toCharArray();", "ch", "s.toCharArray()", "s.toCharArray", "s", "if(ch[i] =='S' && ch[i+1] == 'S') {\n\t\t\t\tc=0;\n\t\t\t}\n\t\t\telse if((ch[i]=='R' && ch[i+1] == 'R')){\n\t\t\t\tc++;\n\t\t\t}\n\t\t\telse if((ch[i] == 'S' && ch[i+1] == 'R')) {\n\t\t\t\tc=1;\n\t\t\t}", "ch[i] =='S' && ch[i+1] == 'S'", "ch[i] =='S'", "ch[i]", "ch", "i", "'S'", "ch[i+1] == 'S'", "ch[i+1]", "ch", "i+1", "i", "1", "'S'", "{\n\t\t\t\tc=0;\n\t\t\t}", "c=0", "c", "0", "if((ch[i]=='R' && ch[i+1] == 'R')){\n\t\t\t\tc++;\n\t\t\t}\n\t\t\telse if((ch[i] == 'S' && ch[i+1] == 'R')) {\n\t\t\t\tc=1;\n\t\t\t}", "(ch[i]=='R' && ch[i+1] == 'R')", "ch[i]=='R'", "ch[i]", "ch", "i", "'R'", "ch[i+1] == 'R'", "ch[i+1]", "ch", "i+1", "i", "1", "'R'", "{\n\t\t\t\tc++;\n\t\t\t}", "c++", "c", "if((ch[i] == 'S' && ch[i+1] == 'R')) {\n\t\t\t\tc=1;\n\t\t\t}", "(ch[i] == 'S' && ch[i+1] == 'R')", "ch[i] == 'S'", "ch[i]", "ch", "i", "'S'", "ch[i+1] == 'R'", "ch[i+1]", "ch", "i+1", "i", "1", "'R'", "{\n\t\t\t\tc=1;\n\t\t\t}", "c=1", "c", "1", "if(s.charAt(0) == 'R' && s.charAt(1) == 'S' && s.charAt(2)== 'S'){\n\t\t\t\tc=1;\n\t\t\t}", "s.charAt(0) == 'R' && s.charAt(1) == 'S' && s.charAt(2)== 'S'", "s.charAt(0) == 'R' && s.charAt(1) == 'S' && s.charAt(2)== 'S'", "s.charAt(0) == 'R'", "s.charAt(0)", "s.charAt", "s", "0", "'R'", "s.charAt(1) == 'S'", "s.charAt(1)", "s.charAt", "s", "1", "'S'", "s.charAt(2)== 'S'", "s.charAt(2)", "s.charAt", "s", "2", "'S'", "{\n\t\t\t\tc=1;\n\t\t\t}", "c=1", "c", "1", "System.out.println(c)", "System.out.println", "System.out", "System", "System.out", "c", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tString s = in.next();\n\t\tint c = 1;\n\t\tfor(int i = 0;i<3-1;i++) {\n\t\t\tchar[] ch = s.toCharArray();\n\t\t\t\n\t\t\t if(ch[i] =='S' && ch[i+1] == 'S') {\n\t\t\t\tc=0;\n\t\t\t}\n\t\t\telse if((ch[i]=='R' && ch[i+1] == 'R')){\n\t\t\t\tc++;\n\t\t\t}\n\t\t\telse if((ch[i] == 'S' && ch[i+1] == 'R')) {\n\t\t\t\tc=1;\n\t\t\t}\n\t\t\t if(s.charAt(0) == 'R' && s.charAt(1) == 'S' && s.charAt(2)== 'S'){\n\t\t\t\tc=1;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\tSystem.out.println(c);\n\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tString s = in.next();\n\t\tint c = 1;\n\t\tfor(int i = 0;i<3-1;i++) {\n\t\t\tchar[] ch = s.toCharArray();\n\t\t\t\n\t\t\t if(ch[i] =='S' && ch[i+1] == 'S') {\n\t\t\t\tc=0;\n\t\t\t}\n\t\t\telse if((ch[i]=='R' && ch[i+1] == 'R')){\n\t\t\t\tc++;\n\t\t\t}\n\t\t\telse if((ch[i] == 'S' && ch[i+1] == 'R')) {\n\t\t\t\tc=1;\n\t\t\t}\n\t\t\t if(s.charAt(0) == 'R' && s.charAt(1) == 'S' && s.charAt(2)== 'S'){\n\t\t\t\tc=1;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\tSystem.out.println(c);\n\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); String s = in.next(); int c = 1; for(int i = 0;i<3-1;i++) { char[] ch = s.toCharArray(); if(ch[i] =='S' && ch[i+1] == 'S') { c=0; } else if((ch[i]=='R' && ch[i+1] == 'R')){ c++; } else if((ch[i] == 'S' && ch[i+1] == 'R')) { c=1; } if(s.charAt(0) == 'R' && s.charAt(1) == 'S' && s.charAt(2)== 'S'){ c=1; } } System.out.println(c); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 17, 30, 40, 13, 30, 0, 13, 17, 0, 13, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 73, 5 ], [ 73, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 22, 24 ], [ 16, 25 ], [ 25, 26 ], [ 25, 27 ], [ 16, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 28, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 28, 38 ], [ 38, 39 ], [ 39, 40 ], [ 28, 41 ], [ 42, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 44, 49 ], [ 43, 50 ], [ 50, 51 ], [ 51, 52 ], [ 43, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 42, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 59, 63 ], [ 16, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 6, 70 ], [ 70, 71 ], [ 0, 72 ], [ 72, 73 ], [ 72, 74 ] ]
[ "\nimport java.util.Scanner;\n\npublic class Main {\n\n\n public static void main(String[] args) {\n\n Scanner scanner = new Scanner(System.in);\n while (scanner.hasNext()) {\n\n String str = scanner.nextLine();\n int res = 0;\n int count = 0;\n for (int i = 0; i < str.length(); i++) {\n if (str.charAt(i) == 'R') {\n count++;\n } else {\n count = 0;\n }\n res = Math.max(res, count);\n }\n System.out.println(res);\n }\n }\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\n public static void main(String[] args) {\n\n Scanner scanner = new Scanner(System.in);\n while (scanner.hasNext()) {\n\n String str = scanner.nextLine();\n int res = 0;\n int count = 0;\n for (int i = 0; i < str.length(); i++) {\n if (str.charAt(i) == 'R') {\n count++;\n } else {\n count = 0;\n }\n res = Math.max(res, count);\n }\n System.out.println(res);\n }\n }\n\n}", "Main", "public static void main(String[] args) {\n\n Scanner scanner = new Scanner(System.in);\n while (scanner.hasNext()) {\n\n String str = scanner.nextLine();\n int res = 0;\n int count = 0;\n for (int i = 0; i < str.length(); i++) {\n if (str.charAt(i) == 'R') {\n count++;\n } else {\n count = 0;\n }\n res = Math.max(res, count);\n }\n System.out.println(res);\n }\n }", "main", "{\n\n Scanner scanner = new Scanner(System.in);\n while (scanner.hasNext()) {\n\n String str = scanner.nextLine();\n int res = 0;\n int count = 0;\n for (int i = 0; i < str.length(); i++) {\n if (str.charAt(i) == 'R') {\n count++;\n } else {\n count = 0;\n }\n res = Math.max(res, count);\n }\n System.out.println(res);\n }\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "while (scanner.hasNext()) {\n\n String str = scanner.nextLine();\n int res = 0;\n int count = 0;\n for (int i = 0; i < str.length(); i++) {\n if (str.charAt(i) == 'R') {\n count++;\n } else {\n count = 0;\n }\n res = Math.max(res, count);\n }\n System.out.println(res);\n }", "scanner.hasNext()", "scanner.hasNext", "scanner", "{\n\n String str = scanner.nextLine();\n int res = 0;\n int count = 0;\n for (int i = 0; i < str.length(); i++) {\n if (str.charAt(i) == 'R') {\n count++;\n } else {\n count = 0;\n }\n res = Math.max(res, count);\n }\n System.out.println(res);\n }", "String str = scanner.nextLine();", "str", "scanner.nextLine()", "scanner.nextLine", "scanner", "int res = 0;", "res", "0", "int count = 0;", "count", "0", "for (int i = 0; i < str.length(); i++) {\n if (str.charAt(i) == 'R') {\n count++;\n } else {\n count = 0;\n }\n res = Math.max(res, count);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < str.length()", "i", "str.length()", "str.length", "str", "i++", "i++", "i", "{\n if (str.charAt(i) == 'R') {\n count++;\n } else {\n count = 0;\n }\n res = Math.max(res, count);\n }", "{\n if (str.charAt(i) == 'R') {\n count++;\n } else {\n count = 0;\n }\n res = Math.max(res, count);\n }", "if (str.charAt(i) == 'R') {\n count++;\n } else {\n count = 0;\n }", "str.charAt(i) == 'R'", "str.charAt(i)", "str.charAt", "str", "i", "'R'", "{\n count++;\n }", "count++", "count", "{\n count = 0;\n }", "count = 0", "count", "0", "res = Math.max(res, count)", "res", "Math.max(res, count)", "Math.max", "Math", "res", "count", "System.out.println(res)", "System.out.println", "System.out", "System", "System.out", "res", "String[] args", "args", "public class Main {\n\n\n public static void main(String[] args) {\n\n Scanner scanner = new Scanner(System.in);\n while (scanner.hasNext()) {\n\n String str = scanner.nextLine();\n int res = 0;\n int count = 0;\n for (int i = 0; i < str.length(); i++) {\n if (str.charAt(i) == 'R') {\n count++;\n } else {\n count = 0;\n }\n res = Math.max(res, count);\n }\n System.out.println(res);\n }\n }\n\n}", "public class Main {\n\n\n public static void main(String[] args) {\n\n Scanner scanner = new Scanner(System.in);\n while (scanner.hasNext()) {\n\n String str = scanner.nextLine();\n int res = 0;\n int count = 0;\n for (int i = 0; i < str.length(); i++) {\n if (str.charAt(i) == 'R') {\n count++;\n } else {\n count = 0;\n }\n res = Math.max(res, count);\n }\n System.out.println(res);\n }\n }\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); while (scanner.hasNext()) { String str = scanner.nextLine(); int res = 0; int count = 0; for (int i = 0; i < str.length(); i++) { if (str.charAt(i) == 'R') { count++; } else { count = 0; } res = Math.max(res, count); } System.out.println(res); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 14, 2, 4, 18, 13, 17, 17, 30, 40, 13, 14, 2, 4, 18, 13, 17, 17, 30, 0, 13, 2, 13, 17, 14, 2, 4, 18, 13, 17, 17, 30, 0, 13, 2, 13, 17, 14, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 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 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 124, 14 ], [ 124, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 17, 26 ], [ 26, 27 ], [ 26, 28 ], [ 17, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 30, 35 ], [ 29, 36 ], [ 36, 37 ], [ 37, 38 ], [ 17, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 40, 45 ], [ 39, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 49, 51 ], [ 17, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 53, 58 ], [ 52, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 17, 65 ], [ 65, 66 ], [ 68, 67 ], [ 75, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 72, 73 ], [ 72, 74 ], [ 75, 75 ], [ 75, 76 ], [ 75, 77 ], [ 68, 78 ], [ 78, 79 ], [ 78, 80 ], [ 65, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 65, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 93, 94 ], [ 93, 95 ], [ 88, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 88, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 103, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 115, 120 ], [ 15, 121 ], [ 121, 122 ], [ 0, 123 ], [ 123, 124 ], [ 123, 125 ] ]
[ "import java.util.Scanner;\nimport java.time.Year;\nimport java.util.Random;\nimport java.math.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc =new Scanner(System.in);\n String a = sc.next();\n int R = 0;\n if(a.charAt(0)=='R'){\n R++;\n }\n if(a.charAt(1)=='R'){\n R=R+2;\n }\n if(a.charAt(2)=='R'){\n R = R+4;\n }\n \n if(R==1 || R==2|| R==4 || R==5){\n System.out.println(1);\n }else if(R==3 || R == 6){\n System.out.println(2);\n }else if(R==7){\n System.out.println(3);\n }else{\n System.out.println(0);\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "import java.time.Year;", "Year", "java.time", "import java.util.Random;", "Random", "java.util", "import java.math.*;", "math.*", "java", "public class Main{\n public static void main(String[] args){\n Scanner sc =new Scanner(System.in);\n String a = sc.next();\n int R = 0;\n if(a.charAt(0)=='R'){\n R++;\n }\n if(a.charAt(1)=='R'){\n R=R+2;\n }\n if(a.charAt(2)=='R'){\n R = R+4;\n }\n \n if(R==1 || R==2|| R==4 || R==5){\n System.out.println(1);\n }else if(R==3 || R == 6){\n System.out.println(2);\n }else if(R==7){\n System.out.println(3);\n }else{\n System.out.println(0);\n }\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc =new Scanner(System.in);\n String a = sc.next();\n int R = 0;\n if(a.charAt(0)=='R'){\n R++;\n }\n if(a.charAt(1)=='R'){\n R=R+2;\n }\n if(a.charAt(2)=='R'){\n R = R+4;\n }\n \n if(R==1 || R==2|| R==4 || R==5){\n System.out.println(1);\n }else if(R==3 || R == 6){\n System.out.println(2);\n }else if(R==7){\n System.out.println(3);\n }else{\n System.out.println(0);\n }\n }", "main", "{\n Scanner sc =new Scanner(System.in);\n String a = sc.next();\n int R = 0;\n if(a.charAt(0)=='R'){\n R++;\n }\n if(a.charAt(1)=='R'){\n R=R+2;\n }\n if(a.charAt(2)=='R'){\n R = R+4;\n }\n \n if(R==1 || R==2|| R==4 || R==5){\n System.out.println(1);\n }else if(R==3 || R == 6){\n System.out.println(2);\n }else if(R==7){\n System.out.println(3);\n }else{\n System.out.println(0);\n }\n }", "Scanner sc =new Scanner(System.in);", "sc", "new Scanner(System.in)", "String a = sc.next();", "a", "sc.next()", "sc.next", "sc", "int R = 0;", "R", "0", "if(a.charAt(0)=='R'){\n R++;\n }", "a.charAt(0)=='R'", "a.charAt(0)", "a.charAt", "a", "0", "'R'", "{\n R++;\n }", "R++", "R", "if(a.charAt(1)=='R'){\n R=R+2;\n }", "a.charAt(1)=='R'", "a.charAt(1)", "a.charAt", "a", "1", "'R'", "{\n R=R+2;\n }", "R=R+2", "R", "R+2", "R", "2", "if(a.charAt(2)=='R'){\n R = R+4;\n }", "a.charAt(2)=='R'", "a.charAt(2)", "a.charAt", "a", "2", "'R'", "{\n R = R+4;\n }", "R = R+4", "R", "R+4", "R", "4", "if(R==1 || R==2|| R==4 || R==5){\n System.out.println(1);\n }else if(R==3 || R == 6){\n System.out.println(2);\n }else if(R==7){\n System.out.println(3);\n }else{\n System.out.println(0);\n }", "R==1 || R==2|| R==4 || R==5", "R==4", "R==1 || R==2|| R==4 || R==5", "R==1", "R", "1", "R==2", "R", "2", "R==4", "R", "4", "R==5", "R", "5", "{\n System.out.println(1);\n }", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "if(R==3 || R == 6){\n System.out.println(2);\n }else if(R==7){\n System.out.println(3);\n }else{\n System.out.println(0);\n }", "R==3 || R == 6", "R==3", "R", "3", "R == 6", "R", "6", "{\n System.out.println(2);\n }", "System.out.println(2)", "System.out.println", "System.out", "System", "System.out", "2", "if(R==7){\n System.out.println(3);\n }else{\n System.out.println(0);\n }", "R==7", "R", "7", "{\n System.out.println(3);\n }", "System.out.println(3)", "System.out.println", "System.out", "System", "System.out", "3", "{\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 String a = sc.next();\n int R = 0;\n if(a.charAt(0)=='R'){\n R++;\n }\n if(a.charAt(1)=='R'){\n R=R+2;\n }\n if(a.charAt(2)=='R'){\n R = R+4;\n }\n \n if(R==1 || R==2|| R==4 || R==5){\n System.out.println(1);\n }else if(R==3 || R == 6){\n System.out.println(2);\n }else if(R==7){\n System.out.println(3);\n }else{\n System.out.println(0);\n }\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner sc =new Scanner(System.in);\n String a = sc.next();\n int R = 0;\n if(a.charAt(0)=='R'){\n R++;\n }\n if(a.charAt(1)=='R'){\n R=R+2;\n }\n if(a.charAt(2)=='R'){\n R = R+4;\n }\n \n if(R==1 || R==2|| R==4 || R==5){\n System.out.println(1);\n }else if(R==3 || R == 6){\n System.out.println(2);\n }else if(R==7){\n System.out.println(3);\n }else{\n System.out.println(0);\n }\n }\n}", "Main" ]
import java.util.Scanner; import java.time.Year; import java.util.Random; import java.math.*; public class Main{ public static void main(String[] args){ Scanner sc =new Scanner(System.in); String a = sc.next(); int R = 0; if(a.charAt(0)=='R'){ R++; } if(a.charAt(1)=='R'){ R=R+2; } if(a.charAt(2)=='R'){ R = R+4; } if(R==1 || R==2|| R==4 || R==5){ System.out.println(1); }else if(R==3 || R == 6){ System.out.println(2); }else if(R==7){ System.out.println(3); }else{ System.out.println(0); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 4, 18, 13, 17, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 23, 13, 12, 13, 30, 14, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 37, 20, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 14, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 37, 20, 30, 29, 4, 18, 13, 29, 4, 18, 13, 17, 12, 13, 30, 29, 4, 18, 13, 4, 13, 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 ], [ 177, 17 ], [ 177, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 20, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 29, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 29, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 42, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 41, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 41, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 58, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 58, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 18, 77 ], [ 77, 78 ], [ 177, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 79, 83 ], [ 83, 84 ], [ 79, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 85, 91 ], [ 91, 92 ], [ 79, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 96, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 110, 111 ], [ 106, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 95, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 79, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 124, 127 ], [ 127, 128 ], [ 79, 129 ], [ 129, 130 ], [ 129, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 133, 136 ], [ 136, 137 ], [ 79, 138 ], [ 138, 139 ], [ 138, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 142, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 141, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 154, 155 ], [ 155, 156 ], [ 151, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 140, 162 ], [ 162, 163 ], [ 163, 164 ], [ 164, 165 ], [ 163, 166 ], [ 79, 167 ], [ 167, 168 ], [ 167, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 171, 174 ], [ 174, 175 ], [ 0, 176 ], [ 176, 177 ], [ 176, 178 ] ]
[ "\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main {\n public static void main(final String[] args) {\n final FastScanner scanner = new FastScanner(System.in);\n final String s = scanner.next();\n if (s.equals(\"RRR\")) {\n System.out.println(3);\n } else if (s.startsWith(\"RR\") || s.endsWith(\"RR\")) {\n System.out.println(2);\n } else if (s.contains(\"R\")) {\n System.out.println(1);\n } else {\n System.out.println(0);\n }\n }\n\n private static class FastScanner {\n private final BufferedReader reader;\n private StringTokenizer tokenizer;\n\n FastScanner(final InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n }\n\n String next() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (final IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n String nextLine() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n return reader.readLine();\n } catch (final IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n return tokenizer.nextToken(\"\\n\");\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n }\n}\n ", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "public class Main {\n public static void main(final String[] args) {\n final FastScanner scanner = new FastScanner(System.in);\n final String s = scanner.next();\n if (s.equals(\"RRR\")) {\n System.out.println(3);\n } else if (s.startsWith(\"RR\") || s.endsWith(\"RR\")) {\n System.out.println(2);\n } else if (s.contains(\"R\")) {\n System.out.println(1);\n } else {\n System.out.println(0);\n }\n }\n\n private static class FastScanner {\n private final BufferedReader reader;\n private StringTokenizer tokenizer;\n\n FastScanner(final InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n }\n\n String next() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (final IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n String nextLine() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n return reader.readLine();\n } catch (final IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n return tokenizer.nextToken(\"\\n\");\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n }\n}", "Main", "public static void main(final String[] args) {\n final FastScanner scanner = new FastScanner(System.in);\n final String s = scanner.next();\n if (s.equals(\"RRR\")) {\n System.out.println(3);\n } else if (s.startsWith(\"RR\") || s.endsWith(\"RR\")) {\n System.out.println(2);\n } else if (s.contains(\"R\")) {\n System.out.println(1);\n } else {\n System.out.println(0);\n }\n }", "main", "{\n final FastScanner scanner = new FastScanner(System.in);\n final String s = scanner.next();\n if (s.equals(\"RRR\")) {\n System.out.println(3);\n } else if (s.startsWith(\"RR\") || s.endsWith(\"RR\")) {\n System.out.println(2);\n } else if (s.contains(\"R\")) {\n System.out.println(1);\n } else {\n System.out.println(0);\n }\n }", "final FastScanner scanner = new FastScanner(System.in);", "scanner", "new FastScanner(System.in)", "final String s = scanner.next();", "s", "scanner.next()", "scanner.next", "scanner", "if (s.equals(\"RRR\")) {\n System.out.println(3);\n } else if (s.startsWith(\"RR\") || s.endsWith(\"RR\")) {\n System.out.println(2);\n } else if (s.contains(\"R\")) {\n System.out.println(1);\n } else {\n System.out.println(0);\n }", "s.equals(\"RRR\")", "s.equals", "s", "\"RRR\"", "{\n System.out.println(3);\n }", "System.out.println(3)", "System.out.println", "System.out", "System", "System.out", "3", "if (s.startsWith(\"RR\") || s.endsWith(\"RR\")) {\n System.out.println(2);\n } else if (s.contains(\"R\")) {\n System.out.println(1);\n } else {\n System.out.println(0);\n }", "s.startsWith(\"RR\") || s.endsWith(\"RR\")", "s.startsWith(\"RR\")", "s.startsWith", "s", "\"RR\"", "s.endsWith(\"RR\")", "s.endsWith", "s", "\"RR\"", "{\n System.out.println(2);\n }", "System.out.println(2)", "System.out.println", "System.out", "System", "System.out", "2", "if (s.contains(\"R\")) {\n System.out.println(1);\n } else {\n System.out.println(0);\n }", "s.contains(\"R\")", "s.contains", "s", "\"R\"", "{\n System.out.println(1);\n }", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "{\n System.out.println(0);\n }", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "final String[] args", "args", "private static class FastScanner {\n private final BufferedReader reader;\n private StringTokenizer tokenizer;\n\n FastScanner(final InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n }\n\n String next() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (final IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n String nextLine() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n return reader.readLine();\n } catch (final IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n return tokenizer.nextToken(\"\\n\");\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n }", "FastScanner", "private final BufferedReader reader;", "reader", "private StringTokenizer tokenizer;", "tokenizer", "FastScanner(final InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n }", "FastScanner", "{\n reader = new BufferedReader(new InputStreamReader(in));\n }", "reader = new BufferedReader(new InputStreamReader(in))", "reader", "new BufferedReader(new InputStreamReader(in))", "final InputStream in", "in", "String next() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (final IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }", "next", "{\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (final IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }", "if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (final 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 (final IOException e) {\n throw new RuntimeException(e);\n }\n }", "try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (final IOException e) {\n throw new RuntimeException(e);\n }", "catch (final IOException e) {\n throw new RuntimeException(e);\n }", "final 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", "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", "String nextLine() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n return reader.readLine();\n } catch (final IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n return tokenizer.nextToken(\"\\n\");\n }", "nextLine", "{\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n return reader.readLine();\n } catch (final IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n return tokenizer.nextToken(\"\\n\");\n }", "if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n return reader.readLine();\n } catch (final IOException e) {\n throw new RuntimeException(e);\n }\n }", "tokenizer == null || !tokenizer.hasMoreTokens()", "tokenizer == null", "tokenizer", "null", "!tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens", "tokenizer", "{\n try {\n return reader.readLine();\n } catch (final IOException e) {\n throw new RuntimeException(e);\n }\n }", "try {\n return reader.readLine();\n } catch (final IOException e) {\n throw new RuntimeException(e);\n }", "catch (final IOException e) {\n throw new RuntimeException(e);\n }", "final IOException e", "{\n throw new RuntimeException(e);\n }", "throw new RuntimeException(e);", "new RuntimeException(e)", "{\n return reader.readLine();\n }", "return reader.readLine();", "reader.readLine()", "reader.readLine", "reader", "return tokenizer.nextToken(\"\\n\");", "tokenizer.nextToken(\"\\n\")", "tokenizer.nextToken", "tokenizer", "\"\\n\"", "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 class Main {\n public static void main(final String[] args) {\n final FastScanner scanner = new FastScanner(System.in);\n final String s = scanner.next();\n if (s.equals(\"RRR\")) {\n System.out.println(3);\n } else if (s.startsWith(\"RR\") || s.endsWith(\"RR\")) {\n System.out.println(2);\n } else if (s.contains(\"R\")) {\n System.out.println(1);\n } else {\n System.out.println(0);\n }\n }\n\n private static class FastScanner {\n private final BufferedReader reader;\n private StringTokenizer tokenizer;\n\n FastScanner(final InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n }\n\n String next() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (final IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n String nextLine() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n return reader.readLine();\n } catch (final IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n return tokenizer.nextToken(\"\\n\");\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n }\n}", "public class Main {\n public static void main(final String[] args) {\n final FastScanner scanner = new FastScanner(System.in);\n final String s = scanner.next();\n if (s.equals(\"RRR\")) {\n System.out.println(3);\n } else if (s.startsWith(\"RR\") || s.endsWith(\"RR\")) {\n System.out.println(2);\n } else if (s.contains(\"R\")) {\n System.out.println(1);\n } else {\n System.out.println(0);\n }\n }\n\n private static class FastScanner {\n private final BufferedReader reader;\n private StringTokenizer tokenizer;\n\n FastScanner(final InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n }\n\n String next() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (final IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n String nextLine() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n return reader.readLine();\n } catch (final IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n return tokenizer.nextToken(\"\\n\");\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { public static void main(final String[] args) { final FastScanner scanner = new FastScanner(System.in); final String s = scanner.next(); if (s.equals("RRR")) { System.out.println(3); } else if (s.startsWith("RR") || s.endsWith("RR")) { System.out.println(2); } else if (s.contains("R")) { System.out.println(1); } else { System.out.println(0); } } private static class FastScanner { private final BufferedReader reader; private StringTokenizer tokenizer; FastScanner(final InputStream in) { reader = new BufferedReader(new InputStreamReader(in)); } String next() { if (tokenizer == null || !tokenizer.hasMoreTokens()) { try { tokenizer = new StringTokenizer(reader.readLine()); } catch (final IOException e) { throw new RuntimeException(e); } } return tokenizer.nextToken(); } int nextInt() { return Integer.parseInt(next()); } long nextLong() { return Long.parseLong(next()); } String nextLine() { if (tokenizer == null || !tokenizer.hasMoreTokens()) { try { return reader.readLine(); } catch (final IOException e) { throw new RuntimeException(e); } } return tokenizer.nextToken("\n"); } double nextDouble() { return Double.parseDouble(next()); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 41, 13, 41, 13, 2, 17, 17, 12, 13, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 4, 18, 13, 17, 30, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 14, 2, 4, 18, 13, 13, 17, 40, 13, 4, 18, 13, 13, 12, 13, 30, 4, 18, 20, 23, 13, 12, 13, 30, 0, 13, 20, 0, 13, 20, 4, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 6, 13, 41, 13, 12, 13, 30, 4, 13, 18, 13, 13, 12, 13, 30, 0, 18, 36, 13, 20, 23, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 4, 18, 18, 36, 13, 12, 13, 30, 41, 13, 4, 13, 14, 2, 2, 13, 18, 13, 13, 2, 13, 18, 13, 13, 37, 20, 29, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 29, 40, 17, 30, 41, 13, 17, 41, 13, 4, 18, 13, 42, 2, 2, 2, 2, 13, 17, 2, 17, 13, 2, 13, 17, 2, 13, 17, 30, 0, 13, 4, 18, 13, 14, 2, 13, 17, 30, 0, 13, 40, 17, 0, 13, 4, 18, 13, 14, 2, 13, 17, 30, 0, 13, 4, 18, 13, 41, 13, 2, 13, 17, 42, 17, 30, 0, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 17, 13, 29, 2, 13, 13, 0, 13, 17, 0, 13, 2, 13, 17, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 29, 18, 13, 13, 30, 41, 13, 17, 41, 13, 4, 18, 13, 42, 2, 2, 2, 2, 13, 17, 2, 17, 13, 2, 13, 17, 2, 13, 17, 30, 0, 13, 4, 18, 13, 14, 2, 13, 17, 30, 0, 13, 40, 17, 0, 13, 4, 18, 13, 14, 2, 13, 17, 30, 0, 13, 4, 18, 13, 41, 13, 2, 13, 17, 42, 17, 30, 0, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 17, 13, 3, 0, 13, 17, 0, 13, 2, 13, 17, 14, 2, 13, 17, 29, 2, 13, 13, 41, 13, 17, 0, 13, 4, 18, 13, 42, 2, 2, 17, 13, 2, 13, 17, 30, 0, 13, 17, 0, 13, 2, 13, 17, 0, 13, 17, 0, 13, 4, 18, 13, 29, 2, 2, 13, 13, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 29, 17, 30, 41, 13, 4, 18, 13, 42, 4, 18, 13, 13, 30, 0, 13, 4, 18, 13, 29, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 29, 17, 30, 41, 13, 20, 41, 13, 4, 18, 13, 42, 4, 18, 13, 13, 30, 0, 13, 4, 18, 13, 42, 2, 2, 13, 40, 17, 40, 4, 18, 13, 13, 30, 4, 18, 13, 13, 0, 13, 4, 18, 13, 29, 4, 18, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 29, 17, 30, 41, 13, 20, 41, 13, 4, 18, 13, 42, 2, 2, 13, 40, 17, 2, 13, 17, 30, 4, 18, 13, 13, 0, 13, 4, 18, 13, 29, 4, 18, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 2, 4, 13, 17, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 2, 13, 17, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 2, 4, 13, 17, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 2, 13, 17, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 759, 11 ], [ 759, 12 ], [ 12, 13 ], [ 759, 14 ], [ 14, 15 ], [ 759, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 18, 20 ], [ 759, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 23, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 29, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 29, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 48, 49 ], [ 48, 50 ], [ 43, 51 ], [ 51, 52 ], [ 52, 53 ], [ 43, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 56, 61 ], [ 55, 62 ], [ 62, 63 ], [ 39, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 759, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 68, 74 ], [ 74, 75 ], [ 759, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 82, 84 ], [ 78, 85 ], [ 85, 86 ], [ 78, 87 ], [ 87, 88 ], [ 88, 89 ], [ 78, 90 ], [ 90, 91 ], [ 91, 92 ], [ 78, 93 ], [ 93, 94 ], [ 94, 95 ], [ 759, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 96, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 105, 107 ], [ 96, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 108, 116 ], [ 116, 117 ], [ 96, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 121, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 96, 134 ], [ 134, 135 ], [ 134, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 139, 140 ], [ 136, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 145, 146 ], [ 145, 147 ], [ 142, 148 ], [ 148, 149 ], [ 148, 150 ], [ 150, 151 ], [ 150, 152 ], [ 141, 153 ], [ 153, 154 ], [ 136, 155 ], [ 155, 156 ], [ 96, 157 ], [ 157, 158 ], [ 157, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 161, 163 ], [ 163, 164 ], [ 164, 165 ], [ 165, 166 ], [ 163, 167 ], [ 167, 168 ], [ 168, 169 ], [ 160, 170 ], [ 170, 171 ], [ 171, 172 ], [ 171, 173 ], [ 170, 174 ], [ 174, 175 ], [ 174, 176 ], [ 176, 177 ], [ 177, 178 ], [ 170, 179 ], [ 179, 180 ], [ 181, 181 ], [ 181, 182 ], [ 182, 183 ], [ 183, 184 ], [ 183, 185 ], [ 182, 186 ], [ 186, 187 ], [ 186, 188 ], [ 181, 189 ], [ 189, 190 ], [ 189, 191 ], [ 181, 192 ], [ 192, 193 ], [ 192, 194 ], [ 179, 195 ], [ 195, 196 ], [ 196, 197 ], [ 196, 198 ], [ 198, 199 ], [ 199, 200 ], [ 170, 201 ], [ 201, 202 ], [ 202, 203 ], [ 202, 204 ], [ 201, 205 ], [ 205, 206 ], [ 206, 207 ], [ 206, 208 ], [ 208, 209 ], [ 205, 210 ], [ 210, 211 ], [ 210, 212 ], [ 212, 213 ], [ 213, 214 ], [ 201, 215 ], [ 215, 216 ], [ 216, 217 ], [ 216, 218 ], [ 215, 219 ], [ 219, 220 ], [ 220, 221 ], [ 220, 222 ], [ 222, 223 ], [ 223, 224 ], [ 170, 225 ], [ 225, 226 ], [ 225, 227 ], [ 227, 228 ], [ 227, 229 ], [ 170, 230 ], [ 230, 231 ], [ 230, 232 ], [ 232, 233 ], [ 233, 234 ], [ 233, 235 ], [ 235, 236 ], [ 236, 237 ], [ 232, 238 ], [ 238, 239 ], [ 239, 240 ], [ 240, 241 ], [ 240, 242 ], [ 239, 243 ], [ 243, 244 ], [ 243, 245 ], [ 238, 246 ], [ 246, 247 ], [ 247, 248 ], [ 247, 249 ], [ 232, 250 ], [ 250, 251 ], [ 250, 252 ], [ 232, 253 ], [ 253, 254 ], [ 253, 255 ], [ 255, 256 ], [ 255, 257 ], [ 96, 258 ], [ 258, 259 ], [ 258, 260 ], [ 260, 261 ], [ 261, 262 ], [ 262, 263 ], [ 262, 264 ], [ 264, 265 ], [ 265, 266 ], [ 266, 267 ], [ 264, 268 ], [ 268, 269 ], [ 269, 270 ], [ 269, 271 ], [ 261, 272 ], [ 272, 273 ], [ 273, 274 ], [ 273, 275 ], [ 272, 276 ], [ 276, 277 ], [ 276, 278 ], [ 278, 279 ], [ 279, 280 ], [ 272, 281 ], [ 281, 282 ], [ 283, 283 ], [ 283, 284 ], [ 284, 285 ], [ 285, 286 ], [ 285, 287 ], [ 284, 288 ], [ 288, 289 ], [ 288, 290 ], [ 283, 291 ], [ 291, 292 ], [ 291, 293 ], [ 283, 294 ], [ 294, 295 ], [ 294, 296 ], [ 281, 297 ], [ 297, 298 ], [ 298, 299 ], [ 298, 300 ], [ 300, 301 ], [ 301, 302 ], [ 272, 303 ], [ 303, 304 ], [ 304, 305 ], [ 304, 306 ], [ 303, 307 ], [ 307, 308 ], [ 308, 309 ], [ 308, 310 ], [ 310, 311 ], [ 307, 312 ], [ 312, 313 ], [ 312, 314 ], [ 314, 315 ], [ 315, 316 ], [ 303, 317 ], [ 317, 318 ], [ 318, 319 ], [ 318, 320 ], [ 317, 321 ], [ 321, 322 ], [ 322, 323 ], [ 322, 324 ], [ 324, 325 ], [ 325, 326 ], [ 272, 327 ], [ 327, 328 ], [ 327, 329 ], [ 329, 330 ], [ 329, 331 ], [ 272, 332 ], [ 332, 333 ], [ 332, 334 ], [ 334, 335 ], [ 335, 336 ], [ 335, 337 ], [ 337, 338 ], [ 338, 339 ], [ 334, 340 ], [ 340, 341 ], [ 341, 342 ], [ 342, 343 ], [ 342, 344 ], [ 341, 345 ], [ 345, 346 ], [ 345, 347 ], [ 340, 348 ], [ 334, 349 ], [ 349, 350 ], [ 349, 351 ], [ 334, 352 ], [ 352, 353 ], [ 352, 354 ], [ 354, 355 ], [ 354, 356 ], [ 272, 357 ], [ 357, 358 ], [ 358, 359 ], [ 358, 360 ], [ 357, 361 ], [ 361, 362 ], [ 362, 363 ], [ 362, 364 ], [ 272, 365 ], [ 365, 366 ], [ 365, 367 ], [ 272, 368 ], [ 368, 369 ], [ 368, 370 ], [ 370, 371 ], [ 371, 372 ], [ 272, 373 ], [ 373, 374 ], [ 374, 375 ], [ 375, 376 ], [ 375, 377 ], [ 374, 378 ], [ 378, 379 ], [ 378, 380 ], [ 373, 381 ], [ 381, 382 ], [ 382, 383 ], [ 382, 384 ], [ 381, 385 ], [ 385, 386 ], [ 385, 387 ], [ 387, 388 ], [ 387, 389 ], [ 381, 390 ], [ 390, 391 ], [ 390, 392 ], [ 381, 393 ], [ 393, 394 ], [ 393, 395 ], [ 395, 396 ], [ 396, 397 ], [ 272, 398 ], [ 398, 399 ], [ 399, 400 ], [ 400, 401 ], [ 400, 402 ], [ 399, 403 ], [ 96, 404 ], [ 404, 405 ], [ 404, 406 ], [ 406, 407 ], [ 407, 408 ], [ 408, 409 ], [ 408, 410 ], [ 410, 411 ], [ 411, 412 ], [ 412, 413 ], [ 410, 414 ], [ 414, 415 ], [ 407, 416 ], [ 416, 417 ], [ 417, 418 ], [ 417, 419 ], [ 419, 420 ], [ 420, 421 ], [ 416, 422 ], [ 422, 423 ], [ 423, 424 ], [ 424, 425 ], [ 423, 426 ], [ 422, 427 ], [ 427, 428 ], [ 428, 429 ], [ 428, 430 ], [ 430, 431 ], [ 431, 432 ], [ 416, 433 ], [ 433, 434 ], [ 96, 435 ], [ 435, 436 ], [ 435, 437 ], [ 437, 438 ], [ 438, 439 ], [ 439, 440 ], [ 439, 441 ], [ 441, 442 ], [ 442, 443 ], [ 443, 444 ], [ 441, 445 ], [ 445, 446 ], [ 438, 447 ], [ 447, 448 ], [ 448, 449 ], [ 448, 450 ], [ 447, 451 ], [ 451, 452 ], [ 451, 453 ], [ 453, 454 ], [ 454, 455 ], [ 447, 456 ], [ 456, 457 ], [ 457, 458 ], [ 458, 459 ], [ 457, 460 ], [ 456, 461 ], [ 461, 462 ], [ 462, 463 ], [ 462, 464 ], [ 464, 465 ], [ 465, 466 ], [ 447, 467 ], [ 467, 468 ], [ 468, 469 ], [ 469, 470 ], [ 469, 471 ], [ 471, 472 ], [ 468, 473 ], [ 473, 474 ], [ 474, 475 ], [ 475, 476 ], [ 474, 477 ], [ 467, 478 ], [ 478, 479 ], [ 479, 480 ], [ 480, 481 ], [ 479, 482 ], [ 478, 483 ], [ 483, 484 ], [ 483, 485 ], [ 485, 486 ], [ 486, 487 ], [ 447, 488 ], [ 488, 489 ], [ 489, 490 ], [ 490, 491 ], [ 96, 492 ], [ 492, 493 ], [ 492, 494 ], [ 494, 495 ], [ 495, 496 ], [ 496, 497 ], [ 496, 498 ], [ 498, 499 ], [ 499, 500 ], [ 500, 501 ], [ 498, 502 ], [ 502, 503 ], [ 495, 504 ], [ 504, 505 ], [ 505, 506 ], [ 505, 507 ], [ 504, 508 ], [ 508, 509 ], [ 508, 510 ], [ 510, 511 ], [ 511, 512 ], [ 504, 513 ], [ 513, 514 ], [ 514, 515 ], [ 515, 516 ], [ 515, 517 ], [ 517, 518 ], [ 514, 519 ], [ 519, 520 ], [ 519, 521 ], [ 513, 522 ], [ 522, 523 ], [ 523, 524 ], [ 524, 525 ], [ 523, 526 ], [ 522, 527 ], [ 527, 528 ], [ 527, 529 ], [ 529, 530 ], [ 530, 531 ], [ 504, 532 ], [ 532, 533 ], [ 533, 534 ], [ 534, 535 ], [ 96, 536 ], [ 536, 537 ], [ 536, 538 ], [ 538, 539 ], [ 539, 540 ], [ 539, 541 ], [ 538, 543 ], [ 543, 544 ], [ 544, 545 ], [ 545, 546 ], [ 545, 547 ], [ 543, 548 ], [ 548, 549 ], [ 548, 550 ], [ 543, 551 ], [ 551, 552 ], [ 552, 553 ], [ 543, 554 ], [ 555, 555 ], [ 555, 556 ], [ 556, 557 ], [ 557, 558 ], [ 557, 559 ], [ 556, 560 ], [ 560, 561 ], [ 538, 562 ], [ 562, 563 ], [ 536, 564 ], [ 564, 565 ], [ 96, 566 ], [ 566, 567 ], [ 566, 568 ], [ 568, 569 ], [ 569, 570 ], [ 569, 571 ], [ 568, 573 ], [ 573, 574 ], [ 574, 575 ], [ 575, 576 ], [ 575, 577 ], [ 573, 578 ], [ 578, 579 ], [ 578, 580 ], [ 573, 581 ], [ 581, 582 ], [ 582, 583 ], [ 573, 584 ], [ 585, 585 ], [ 585, 586 ], [ 586, 587 ], [ 587, 588 ], [ 587, 589 ], [ 586, 590 ], [ 590, 591 ], [ 591, 592 ], [ 590, 593 ], [ 568, 594 ], [ 594, 595 ], [ 566, 596 ], [ 596, 597 ], [ 96, 598 ], [ 598, 599 ], [ 598, 600 ], [ 600, 601 ], [ 601, 602 ], [ 601, 603 ], [ 604, 605 ], [ 604, 606 ], [ 600, 607 ], [ 607, 608 ], [ 608, 609 ], [ 609, 610 ], [ 609, 611 ], [ 607, 612 ], [ 612, 613 ], [ 612, 614 ], [ 607, 615 ], [ 615, 616 ], [ 616, 617 ], [ 607, 618 ], [ 619, 619 ], [ 619, 620 ], [ 620, 621 ], [ 621, 622 ], [ 621, 623 ], [ 623, 624 ], [ 623, 625 ], [ 620, 626 ], [ 626, 627 ], [ 600, 628 ], [ 628, 629 ], [ 598, 630 ], [ 630, 631 ], [ 96, 632 ], [ 632, 633 ], [ 632, 634 ], [ 634, 635 ], [ 635, 636 ], [ 635, 637 ], [ 634, 639 ], [ 639, 640 ], [ 640, 641 ], [ 641, 642 ], [ 641, 643 ], [ 639, 644 ], [ 644, 645 ], [ 644, 646 ], [ 639, 647 ], [ 647, 648 ], [ 648, 649 ], [ 639, 650 ], [ 651, 651 ], [ 651, 652 ], [ 652, 653 ], [ 653, 654 ], [ 653, 655 ], [ 652, 656 ], [ 656, 657 ], [ 634, 658 ], [ 658, 659 ], [ 632, 660 ], [ 660, 661 ], [ 96, 662 ], [ 662, 663 ], [ 662, 664 ], [ 664, 665 ], [ 665, 666 ], [ 665, 667 ], [ 664, 669 ], [ 669, 670 ], [ 670, 671 ], [ 671, 672 ], [ 671, 673 ], [ 669, 674 ], [ 674, 675 ], [ 674, 676 ], [ 669, 677 ], [ 677, 678 ], [ 678, 679 ], [ 669, 680 ], [ 681, 681 ], [ 681, 682 ], [ 682, 683 ], [ 683, 684 ], [ 683, 685 ], [ 682, 686 ], [ 686, 687 ], [ 687, 688 ], [ 686, 689 ], [ 664, 690 ], [ 690, 691 ], [ 662, 692 ], [ 692, 693 ], [ 96, 694 ], [ 694, 695 ], [ 694, 696 ], [ 696, 697 ], [ 697, 698 ], [ 697, 699 ], [ 700, 701 ], [ 700, 702 ], [ 696, 703 ], [ 703, 704 ], [ 704, 705 ], [ 705, 706 ], [ 705, 707 ], [ 703, 708 ], [ 708, 709 ], [ 708, 710 ], [ 703, 711 ], [ 711, 712 ], [ 712, 713 ], [ 703, 714 ], [ 715, 715 ], [ 715, 716 ], [ 716, 717 ], [ 717, 718 ], [ 717, 719 ], [ 719, 720 ], [ 719, 721 ], [ 716, 722 ], [ 722, 723 ], [ 696, 724 ], [ 724, 725 ], [ 694, 726 ], [ 726, 727 ], [ 96, 728 ], [ 728, 729 ], [ 728, 730 ], [ 730, 731 ], [ 731, 732 ], [ 731, 733 ], [ 730, 735 ], [ 735, 736 ], [ 736, 737 ], [ 737, 738 ], [ 737, 739 ], [ 735, 740 ], [ 740, 741 ], [ 740, 742 ], [ 735, 743 ], [ 743, 744 ], [ 744, 745 ], [ 735, 746 ], [ 747, 747 ], [ 747, 748 ], [ 748, 749 ], [ 749, 750 ], [ 749, 751 ], [ 748, 752 ], [ 752, 753 ], [ 730, 754 ], [ 754, 755 ], [ 728, 756 ], [ 756, 757 ], [ 0, 758 ], [ 758, 759 ], [ 758, 760 ] ]
[ "import java.io.*;\nimport java.util.*;\nimport java.math.BigDecimal;\n\n@SuppressWarnings(\"unused\")\npublic class Main {\n FastScanner in;\n PrintWriter out;\n final static int MOD = (int)1e9+7;\n \n void solve(){\n String S = in.nextStr();\n if(S.equals(\"RSR\")){\n out.println(\"1\");\n }else{\n int cnt = 0;\n for(int i = 0; i < 3; i++) if(S.charAt(i) == 'R') cnt++;\n out.println(cnt);\n }\n }\n \n public static void main(String[] args) {\n new Main().m();\n }\n \n private void m() {\n in = new FastScanner(System.in);\n out = new PrintWriter(System.out);\n /*\n try {\n String path = \"input.txt\";\n out = new PrintWriter(new BufferedWriter(new FileWriter(new File(path))));\n }catch (IOException e){\n e.printStackTrace();\n }\n */\n solve();\n out.flush();\n in.close();\n out.close();\n }\n \n static class FastScanner {\n private Reader input;\n \n public FastScanner() {this(System.in);}\n public FastScanner(InputStream stream) {this.input = new BufferedReader(new InputStreamReader(stream));}\n public void close() {\n try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n \n public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n \n public long nextLong() {\n try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }\n }\n \n public double nextDouble() {\n try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }\n }\n \n public char nextChar() {\n try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }\n }\n \n public String nextStr() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public String nextLine() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public int[] nextIntArray(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }\n return res;\n }\n \n public int[] nextIntArrayDec(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }\n return res;\n }\n \n public int[] nextIntArray1Index(int n) {\n int[] res = new int[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }\n return res;\n }\n \n public long[] nextLongArray(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }\n return res;\n }\n \n public long[] nextLongArrayDec(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }\n return res;\n }\n \n public long[] nextLongArray1Index(int n) {\n long[] res = new long[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }\n return res;\n }\n \n public double[] nextDoubleArray(int n) {\n double[] res = new double[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }\n return res;\n }\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "import java.math.BigDecimal;", "BigDecimal", "java.math", "public class Main {\n FastScanner in;\n PrintWriter out;\n final static int MOD = (int)1e9+7;\n \n void solve(){\n String S = in.nextStr();\n if(S.equals(\"RSR\")){\n out.println(\"1\");\n }else{\n int cnt = 0;\n for(int i = 0; i < 3; i++) if(S.charAt(i) == 'R') cnt++;\n out.println(cnt);\n }\n }\n \n public static void main(String[] args) {\n new Main().m();\n }\n \n private void m() {\n in = new FastScanner(System.in);\n out = new PrintWriter(System.out);\n /*\n try {\n String path = \"input.txt\";\n out = new PrintWriter(new BufferedWriter(new FileWriter(new File(path))));\n }catch (IOException e){\n e.printStackTrace();\n }\n */\n solve();\n out.flush();\n in.close();\n out.close();\n }\n \n static class FastScanner {\n private Reader input;\n \n public FastScanner() {this(System.in);}\n public FastScanner(InputStream stream) {this.input = new BufferedReader(new InputStreamReader(stream));}\n public void close() {\n try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n \n public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n \n public long nextLong() {\n try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }\n }\n \n public double nextDouble() {\n try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }\n }\n \n public char nextChar() {\n try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }\n }\n \n public String nextStr() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public String nextLine() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public int[] nextIntArray(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }\n return res;\n }\n \n public int[] nextIntArrayDec(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }\n return res;\n }\n \n public int[] nextIntArray1Index(int n) {\n int[] res = new int[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }\n return res;\n }\n \n public long[] nextLongArray(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }\n return res;\n }\n \n public long[] nextLongArrayDec(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }\n return res;\n }\n \n public long[] nextLongArray1Index(int n) {\n long[] res = new long[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }\n return res;\n }\n \n public double[] nextDoubleArray(int n) {\n double[] res = new double[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }\n return res;\n }\n }\n}", "Main", "FastScanner in;", "in", "PrintWriter out;", "out", "final static int MOD = (int)1e9+7;", "MOD", "(int)1e9+7", "(int)1e9", "7", "void solve(){\n String S = in.nextStr();\n if(S.equals(\"RSR\")){\n out.println(\"1\");\n }else{\n int cnt = 0;\n for(int i = 0; i < 3; i++) if(S.charAt(i) == 'R') cnt++;\n out.println(cnt);\n }\n }", "solve", "{\n String S = in.nextStr();\n if(S.equals(\"RSR\")){\n out.println(\"1\");\n }else{\n int cnt = 0;\n for(int i = 0; i < 3; i++) if(S.charAt(i) == 'R') cnt++;\n out.println(cnt);\n }\n }", "String S = in.nextStr();", "S", "in.nextStr()", "in.nextStr", "in", "if(S.equals(\"RSR\")){\n out.println(\"1\");\n }else{\n int cnt = 0;\n for(int i = 0; i < 3; i++) if(S.charAt(i) == 'R') cnt++;\n out.println(cnt);\n }", "S.equals(\"RSR\")", "S.equals", "S", "\"RSR\"", "{\n out.println(\"1\");\n }", "out.println(\"1\")", "out.println", "out", "\"1\"", "{\n int cnt = 0;\n for(int i = 0; i < 3; i++) if(S.charAt(i) == 'R') cnt++;\n out.println(cnt);\n }", "int cnt = 0;", "cnt", "0", "for(int i = 0; i < 3; i++) if(S.charAt(i) == 'R') cnt++;", "int i = 0;", "int i = 0;", "i", "0", "i < 3", "i", "3", "i++", "i++", "i", "if(S.charAt(i) == 'R') cnt++;", "if(S.charAt(i) == 'R') cnt++;", "S.charAt(i) == 'R'", "S.charAt(i)", "S.charAt", "S", "i", "'R'", "cnt++", "cnt", "out.println(cnt)", "out.println", "out", "cnt", "public static void main(String[] args) {\n new Main().m();\n }", "main", "{\n new Main().m();\n }", "new Main().m()", "new Main().m", "new Main()", "String[] args", "args", "private void m() {\n in = new FastScanner(System.in);\n out = new PrintWriter(System.out);\n /*\n try {\n String path = \"input.txt\";\n out = new PrintWriter(new BufferedWriter(new FileWriter(new File(path))));\n }catch (IOException e){\n e.printStackTrace();\n }\n */\n solve();\n out.flush();\n in.close();\n out.close();\n }", "m", "{\n in = new FastScanner(System.in);\n out = new PrintWriter(System.out);\n /*\n try {\n String path = \"input.txt\";\n out = new PrintWriter(new BufferedWriter(new FileWriter(new File(path))));\n }catch (IOException e){\n e.printStackTrace();\n }\n */\n solve();\n out.flush();\n in.close();\n out.close();\n }", "in = new FastScanner(System.in)", "in", "new FastScanner(System.in)", "out = new PrintWriter(System.out)", "out", "new PrintWriter(System.out)", "solve()", "solve", "out.flush()", "out.flush", "out", "in.close()", "in.close", "in", "out.close()", "out.close", "out", "static class FastScanner {\n private Reader input;\n \n public FastScanner() {this(System.in);}\n public FastScanner(InputStream stream) {this.input = new BufferedReader(new InputStreamReader(stream));}\n public void close() {\n try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n \n public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n \n public long nextLong() {\n try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }\n }\n \n public double nextDouble() {\n try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }\n }\n \n public char nextChar() {\n try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }\n }\n \n public String nextStr() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public String nextLine() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public int[] nextIntArray(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }\n return res;\n }\n \n public int[] nextIntArrayDec(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }\n return res;\n }\n \n public int[] nextIntArray1Index(int n) {\n int[] res = new int[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }\n return res;\n }\n \n public long[] nextLongArray(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }\n return res;\n }\n \n public long[] nextLongArrayDec(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }\n return res;\n }\n \n public long[] nextLongArray1Index(int n) {\n long[] res = new long[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }\n return res;\n }\n \n public double[] nextDoubleArray(int n) {\n double[] res = new double[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }\n return res;\n }\n }", "FastScanner", "private Reader input;", "input", "public FastScanner() {this(System.in);}", "FastScanner", "{this(System.in);}", "this(System.in)", "this", "System.in", "System", "System.in", "public FastScanner(InputStream stream) {this.input = new BufferedReader(new InputStreamReader(stream));}", "FastScanner", "{this.input = new BufferedReader(new InputStreamReader(stream));}", "this.input = new BufferedReader(new InputStreamReader(stream))", "this.input", "this", "this.input", "new BufferedReader(new InputStreamReader(stream))", "InputStream stream", "stream", "public void close() {\n try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "close", "{\n try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "try {\n this.input.close();\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 this.input.close();\n }", "this.input.close()", "this.input.close", "this.input", "this", "this.input", "public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }", "nextInt", "{\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }", "long nl = nextLong();", "nl", "nextLong()", "nextLong", "if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();", "nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE", "nl < Integer.MIN_VALUE", "nl", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "nl > Integer.MAX_VALUE", "nl", "Integer.MAX_VALUE", "Integer", "Integer.MAX_VALUE", "throw new NumberFormatException();", "new NumberFormatException()", "return (int) nl;", "(int) nl", "public long nextLong() {\n try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }\n }", "nextLong", "{\n try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }\n }", "try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }", "catch (IOException e) {\n e.printStackTrace();\n return -1;\n }", "IOException e", "{\n e.printStackTrace();\n return -1;\n }", "e.printStackTrace()", "e.printStackTrace", "e", "return -1;", "-1", "1", "{\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n }", "int sign = 1;", "sign", "1", "int b = input.read();", "b", "input.read()", "input.read", "input", "while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }", "(b < '0' || '9' < b) && b != '-' && b != '+'", "(b < '0' || '9' < b) && b != '-' && b != '+'", "(b < '0' || '9' < b)", "b < '0'", "b", "'0'", "'9' < b", "'9'", "b", "b != '-'", "b", "'-'", "b != '+'", "b", "'+'", "{\n b = input.read();\n }", "b = input.read()", "b", "input.read()", "input.read", "input", "if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }", "b == '-'", "b", "'-'", "{\n sign = -1;\n b = input.read();\n }", "sign = -1", "sign", "-1", "1", "b = input.read()", "b", "input.read()", "input.read", "input", "if (b == '+') {\n b = input.read();\n }", "b == '+'", "b", "'+'", "{\n b = input.read();\n }", "b = input.read()", "b", "input.read()", "input.read", "input", "long ret = b - '0';", "ret", "b - '0'", "b", "'0'", "while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }", "true", "{\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }", "b = input.read()", "b", "input.read()", "input.read", "input", "if (b < '0' || '9' < b) return ret * sign;", "b < '0' || '9' < b", "b < '0'", "b", "'0'", "'9' < b", "'9'", "b", "return ret * sign;", "ret * sign", "ret", "sign", "ret *= 10", "ret", "10", "ret += b - '0'", "ret", "b - '0'", "b", "'0'", "public double nextDouble() {\n try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }\n }", "nextDouble", "{\n try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }\n }", "try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }", "catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }", "IOException e", "{\n e.printStackTrace();\n return Double.NaN;\n }", "e.printStackTrace()", "e.printStackTrace", "e", "return Double.NaN;", "Double.NaN", "Double", "Double.NaN", "{\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n }", "double sign = 1;", "sign", "1", "int b = input.read();", "b", "input.read()", "input.read", "input", "while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }", "(b < '0' || '9' < b) && b != '-' && b != '+'", "(b < '0' || '9' < b) && b != '-' && b != '+'", "(b < '0' || '9' < b)", "b < '0'", "b", "'0'", "'9' < b", "'9'", "b", "b != '-'", "b", "'-'", "b != '+'", "b", "'+'", "{\n b = input.read();\n }", "b = input.read()", "b", "input.read()", "input.read", "input", "if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }", "b == '-'", "b", "'-'", "{\n sign = -1;\n b = input.read();\n }", "sign = -1", "sign", "-1", "1", "b = input.read()", "b", "input.read()", "input.read", "input", "if (b == '+') {\n b = input.read();\n }", "b == '+'", "b", "'+'", "{\n b = input.read();\n }", "b = input.read()", "b", "input.read()", "input.read", "input", "double ret = b - '0';", "ret", "b - '0'", "b", "'0'", "while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }", "true", "{\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }", "b = input.read()", "b", "input.read()", "input.read", "input", "if (b < '0' || '9' < b) break;", "b < '0' || '9' < b", "b < '0'", "b", "'0'", "'9' < b", "'9'", "b", "break;", "ret *= 10", "ret", "10", "ret += b - '0'", "ret", "b - '0'", "b", "'0'", "if (b != '.') return sign * ret;", "b != '.'", "b", "'.'", "return sign * ret;", "sign * ret", "sign", "ret", "double div = 1;", "div", "1", "b = input.read()", "b", "input.read()", "input.read", "input", "while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }", "'0' <= b && b <= '9'", "'0' <= b", "'0'", "b", "b <= '9'", "b", "'9'", "{\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }", "ret *= 10", "ret", "10", "ret += b - '0'", "ret", "b - '0'", "b", "'0'", "div *= 10", "div", "10", "b = input.read()", "b", "input.read()", "input.read", "input", "return sign * ret / div;", "sign * ret / div", "sign * ret", "sign", "ret", "div", "public char nextChar() {\n try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }\n }", "nextChar", "{\n try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }\n }", "try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }", "catch (IOException e) {\n e.printStackTrace();\n return 0;\n }", "IOException e", "{\n e.printStackTrace();\n return 0;\n }", "e.printStackTrace()", "e.printStackTrace", "e", "return 0;", "0", "{\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n }", "int b = input.read();", "b", "input.read()", "input.read", "input", "while (Character.isWhitespace(b)) {\n b = input.read();\n }", "Character.isWhitespace(b)", "Character.isWhitespace", "Character", "b", "{\n b = input.read();\n }", "b = input.read()", "b", "input.read()", "input.read", "input", "return (char) b;", "(char) b", "public String nextStr() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }", "nextStr", "{\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }", "try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }", "catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }", "IOException e", "{\n e.printStackTrace();\n return \"\";\n }", "e.printStackTrace()", "e.printStackTrace", "e", "return \"\";", "\"\"", "{\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n }", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "int b = input.read();", "b", "input.read()", "input.read", "input", "while (Character.isWhitespace(b)) {\n b = input.read();\n }", "Character.isWhitespace(b)", "Character.isWhitespace", "Character", "b", "{\n b = input.read();\n }", "b = input.read()", "b", "input.read()", "input.read", "input", "while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }", "b != -1 && !Character.isWhitespace(b)", "b != -1", "b", "-1", "1", "!Character.isWhitespace(b)", "Character.isWhitespace(b)", "Character.isWhitespace", "Character", "b", "{\n sb.append((char) b);\n b = input.read();\n }", "sb.append((char) b)", "sb.append", "sb", "(char) b", "b = input.read()", "b", "input.read()", "input.read", "input", "return sb.toString();", "sb.toString()", "sb.toString", "sb", "public String nextLine() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }", "nextLine", "{\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }", "try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }", "catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }", "IOException e", "{\n e.printStackTrace();\n return \"\";\n }", "e.printStackTrace()", "e.printStackTrace", "e", "return \"\";", "\"\"", "{\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n }", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "int b = input.read();", "b", "input.read()", "input.read", "input", "while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }", "b != -1 && b != '\\n'", "b != -1", "b", "-1", "1", "b != '\\n'", "b", "'\\n'", "{\n sb.append((char) b);\n b = input.read();\n }", "sb.append((char) b)", "sb.append", "sb", "(char) b", "b = input.read()", "b", "input.read()", "input.read", "input", "return sb.toString();", "sb.toString()", "sb.toString", "sb", "public int[] nextIntArray(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }\n return res;\n }", "nextIntArray", "{\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }\n return res;\n }", "int[] res = new int[n];", "res", "new int[n]", "n", "for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n res[i] = nextInt();\n }", "{\n res[i] = nextInt();\n }", "res[i] = nextInt()", "res[i]", "res", "i", "nextInt()", "nextInt", "return res;", "res", "int n", "n", "public int[] nextIntArrayDec(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }\n return res;\n }", "nextIntArrayDec", "{\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }\n return res;\n }", "int[] res = new int[n];", "res", "new int[n]", "n", "for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n res[i] = nextInt() - 1;\n }", "{\n res[i] = nextInt() - 1;\n }", "res[i] = nextInt() - 1", "res[i]", "res", "i", "nextInt() - 1", "nextInt()", "nextInt", "1", "return res;", "res", "int n", "n", "public int[] nextIntArray1Index(int n) {\n int[] res = new int[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }\n return res;\n }", "nextIntArray1Index", "{\n int[] res = new int[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }\n return res;\n }", "int[] res = new int[n + 1];", "res", "new int[n + 1]", "n + 1", "n", "1", "for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n res[i + 1] = nextInt();\n }", "{\n res[i + 1] = nextInt();\n }", "res[i + 1] = nextInt()", "res[i + 1]", "res", "i + 1", "i", "1", "nextInt()", "nextInt", "return res;", "res", "int n", "n", "public long[] nextLongArray(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }\n return res;\n }", "nextLongArray", "{\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }\n return res;\n }", "long[] res = new long[n];", "res", "new long[n]", "n", "for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n res[i] = nextLong();\n }", "{\n res[i] = nextLong();\n }", "res[i] = nextLong()", "res[i]", "res", "i", "nextLong()", "nextLong", "return res;", "res", "int n", "n", "public long[] nextLongArrayDec(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }\n return res;\n }", "nextLongArrayDec", "{\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }\n return res;\n }", "long[] res = new long[n];", "res", "new long[n]", "n", "for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n res[i] = nextLong() - 1;\n }", "{\n res[i] = nextLong() - 1;\n }", "res[i] = nextLong() - 1", "res[i]", "res", "i", "nextLong() - 1", "nextLong()", "nextLong", "1", "return res;", "res", "int n", "n", "public long[] nextLongArray1Index(int n) {\n long[] res = new long[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }\n return res;\n }", "nextLongArray1Index", "{\n long[] res = new long[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }\n return res;\n }", "long[] res = new long[n + 1];", "res", "new long[n + 1]", "n + 1", "n", "1", "for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n res[i + 1] = nextLong();\n }", "{\n res[i + 1] = nextLong();\n }", "res[i + 1] = nextLong()", "res[i + 1]", "res", "i + 1", "i", "1", "nextLong()", "nextLong", "return res;", "res", "int n", "n", "public double[] nextDoubleArray(int n) {\n double[] res = new double[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }\n return res;\n }", "nextDoubleArray", "{\n double[] res = new double[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }\n return res;\n }", "double[] res = new double[n];", "res", "new double[n]", "n", "for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n res[i] = nextDouble();\n }", "{\n res[i] = nextDouble();\n }", "res[i] = nextDouble()", "res[i]", "res", "i", "nextDouble()", "nextDouble", "return res;", "res", "int n", "n", "public class Main {\n FastScanner in;\n PrintWriter out;\n final static int MOD = (int)1e9+7;\n \n void solve(){\n String S = in.nextStr();\n if(S.equals(\"RSR\")){\n out.println(\"1\");\n }else{\n int cnt = 0;\n for(int i = 0; i < 3; i++) if(S.charAt(i) == 'R') cnt++;\n out.println(cnt);\n }\n }\n \n public static void main(String[] args) {\n new Main().m();\n }\n \n private void m() {\n in = new FastScanner(System.in);\n out = new PrintWriter(System.out);\n /*\n try {\n String path = \"input.txt\";\n out = new PrintWriter(new BufferedWriter(new FileWriter(new File(path))));\n }catch (IOException e){\n e.printStackTrace();\n }\n */\n solve();\n out.flush();\n in.close();\n out.close();\n }\n \n static class FastScanner {\n private Reader input;\n \n public FastScanner() {this(System.in);}\n public FastScanner(InputStream stream) {this.input = new BufferedReader(new InputStreamReader(stream));}\n public void close() {\n try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n \n public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n \n public long nextLong() {\n try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }\n }\n \n public double nextDouble() {\n try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }\n }\n \n public char nextChar() {\n try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }\n }\n \n public String nextStr() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public String nextLine() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public int[] nextIntArray(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }\n return res;\n }\n \n public int[] nextIntArrayDec(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }\n return res;\n }\n \n public int[] nextIntArray1Index(int n) {\n int[] res = new int[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }\n return res;\n }\n \n public long[] nextLongArray(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }\n return res;\n }\n \n public long[] nextLongArrayDec(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }\n return res;\n }\n \n public long[] nextLongArray1Index(int n) {\n long[] res = new long[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }\n return res;\n }\n \n public double[] nextDoubleArray(int n) {\n double[] res = new double[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }\n return res;\n }\n }\n}", "public class Main {\n FastScanner in;\n PrintWriter out;\n final static int MOD = (int)1e9+7;\n \n void solve(){\n String S = in.nextStr();\n if(S.equals(\"RSR\")){\n out.println(\"1\");\n }else{\n int cnt = 0;\n for(int i = 0; i < 3; i++) if(S.charAt(i) == 'R') cnt++;\n out.println(cnt);\n }\n }\n \n public static void main(String[] args) {\n new Main().m();\n }\n \n private void m() {\n in = new FastScanner(System.in);\n out = new PrintWriter(System.out);\n /*\n try {\n String path = \"input.txt\";\n out = new PrintWriter(new BufferedWriter(new FileWriter(new File(path))));\n }catch (IOException e){\n e.printStackTrace();\n }\n */\n solve();\n out.flush();\n in.close();\n out.close();\n }\n \n static class FastScanner {\n private Reader input;\n \n public FastScanner() {this(System.in);}\n public FastScanner(InputStream stream) {this.input = new BufferedReader(new InputStreamReader(stream));}\n public void close() {\n try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n \n public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n \n public long nextLong() {\n try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }\n }\n \n public double nextDouble() {\n try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }\n }\n \n public char nextChar() {\n try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }\n }\n \n public String nextStr() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public String nextLine() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public int[] nextIntArray(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }\n return res;\n }\n \n public int[] nextIntArrayDec(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }\n return res;\n }\n \n public int[] nextIntArray1Index(int n) {\n int[] res = new int[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }\n return res;\n }\n \n public long[] nextLongArray(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }\n return res;\n }\n \n public long[] nextLongArrayDec(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }\n return res;\n }\n \n public long[] nextLongArray1Index(int n) {\n long[] res = new long[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }\n return res;\n }\n \n public double[] nextDoubleArray(int n) {\n double[] res = new double[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }\n return res;\n }\n }\n}", "Main" ]
import java.io.*; import java.util.*; import java.math.BigDecimal; @SuppressWarnings("unused") public class Main { FastScanner in; PrintWriter out; final static int MOD = (int)1e9+7; void solve(){ String S = in.nextStr(); if(S.equals("RSR")){ out.println("1"); }else{ int cnt = 0; for(int i = 0; i < 3; i++) if(S.charAt(i) == 'R') cnt++; out.println(cnt); } } public static void main(String[] args) { new Main().m(); } private void m() { in = new FastScanner(System.in); out = new PrintWriter(System.out); /* try { String path = "input.txt"; out = new PrintWriter(new BufferedWriter(new FileWriter(new File(path)))); }catch (IOException e){ e.printStackTrace(); } */ solve(); out.flush(); in.close(); out.close(); } static class FastScanner { private Reader input; public FastScanner() {this(System.in);} public FastScanner(InputStream stream) {this.input = new BufferedReader(new InputStreamReader(stream));} public void close() { try { this.input.close(); } catch (IOException e) { e.printStackTrace(); } } public int nextInt() { long nl = nextLong(); if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException(); return (int) nl; } public long nextLong() { try { int sign = 1; int b = input.read(); while ((b < '0' || '9' < b) && b != '-' && b != '+') { b = input.read(); } if (b == '-') { sign = -1; b = input.read(); } else if (b == '+') { b = input.read(); } long ret = b - '0'; while (true) { b = input.read(); if (b < '0' || '9' < b) return ret * sign; ret *= 10; ret += b - '0'; } } catch (IOException e) { e.printStackTrace(); return -1; } } public double nextDouble() { try { double sign = 1; int b = input.read(); while ((b < '0' || '9' < b) && b != '-' && b != '+') { b = input.read(); } if (b == '-') { sign = -1; b = input.read(); } else if (b == '+') { b = input.read(); } double ret = b - '0'; while (true) { b = input.read(); if (b < '0' || '9' < b) break; ret *= 10; ret += b - '0'; } if (b != '.') return sign * ret; double div = 1; b = input.read(); while ('0' <= b && b <= '9') { ret *= 10; ret += b - '0'; div *= 10; b = input.read(); } return sign * ret / div; } catch (IOException e) { e.printStackTrace(); return Double.NaN; } } public char nextChar() { try { int b = input.read(); while (Character.isWhitespace(b)) { b = input.read(); } return (char) b; } catch (IOException e) { e.printStackTrace(); return 0; } } public String nextStr() { try { StringBuilder sb = new StringBuilder(); int b = input.read(); while (Character.isWhitespace(b)) { b = input.read(); } while (b != -1 && !Character.isWhitespace(b)) { sb.append((char) b); b = input.read(); } return sb.toString(); } catch (IOException e) { e.printStackTrace(); return ""; } } public String nextLine() { try { StringBuilder sb = new StringBuilder(); int b = input.read(); while (b != -1 && b != '\n') { sb.append((char) b); b = input.read(); } return sb.toString(); } catch (IOException e) { e.printStackTrace(); return ""; } } public int[] nextIntArray(int n) { int[] res = new int[n]; for (int i = 0; i < n; i++) { res[i] = nextInt(); } return res; } public int[] nextIntArrayDec(int n) { int[] res = new int[n]; for (int i = 0; i < n; i++) { res[i] = nextInt() - 1; } return res; } public int[] nextIntArray1Index(int n) { int[] res = new int[n + 1]; for (int i = 0; i < n; i++) { res[i + 1] = nextInt(); } return res; } public long[] nextLongArray(int n) { long[] res = new long[n]; for (int i = 0; i < n; i++) { res[i] = nextLong(); } return res; } public long[] nextLongArrayDec(int n) { long[] res = new long[n]; for (int i = 0; i < n; i++) { res[i] = nextLong() - 1; } return res; } public long[] nextLongArray1Index(int n) { long[] res = new long[n + 1]; for (int i = 0; i < n; i++) { res[i + 1] = nextLong(); } return res; } public double[] nextDoubleArray(int n) { double[] res = new double[n]; for (int i = 0; i < n; i++) { res[i] = nextDouble(); } return res; } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 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, 2, 18, 13, 13, 18, 13, 2, 13, 17, 2, 18, 13, 13, 17, 30, 40, 13, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 17, 30, 0, 13, 17, 14, 13, 30, 4, 18, 18, 13, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 104, 5 ], [ 104, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 8, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 28, 33 ], [ 33, 34 ], [ 33, 35 ], [ 28, 36 ], [ 36, 37 ], [ 37, 38 ], [ 28, 39 ], [ 40, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 49, 51 ], [ 42, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 41, 57 ], [ 57, 58 ], [ 58, 59 ], [ 8, 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 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 73, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 8, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 91, 92 ], [ 91, 93 ], [ 83, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 6, 101 ], [ 101, 102 ], [ 0, 103 ], [ 103, 104 ], [ 103, 105 ] ]
[ "import java.util.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString s = sc.next();\n\t\tchar[] S = s.toCharArray();\n\n\t\tint c = 0;\n\t\tboolean rain = false;\n\t\tfor (int i = 0; i<2; i++) {\n\t\t\tif (S[i] == S[i+1] && S[i] == 'R') {\n\t\t\t\tc++;\n\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i<3;i++) {\n\t\t\tif (S[i] == 'R') {\n\t\t\t\train = true;\n\t\t\t}\n\t\t}\n\t\tif (rain) {\n\t\t\tSystem.out.println(c+1);\n\t\t} else {\n\t\t\tSystem.out.println(0);\n\t\t}\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString s = sc.next();\n\t\tchar[] S = s.toCharArray();\n\n\t\tint c = 0;\n\t\tboolean rain = false;\n\t\tfor (int i = 0; i<2; i++) {\n\t\t\tif (S[i] == S[i+1] && S[i] == 'R') {\n\t\t\t\tc++;\n\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i<3;i++) {\n\t\t\tif (S[i] == 'R') {\n\t\t\t\train = true;\n\t\t\t}\n\t\t}\n\t\tif (rain) {\n\t\t\tSystem.out.println(c+1);\n\t\t} else {\n\t\t\tSystem.out.println(0);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString s = sc.next();\n\t\tchar[] S = s.toCharArray();\n\n\t\tint c = 0;\n\t\tboolean rain = false;\n\t\tfor (int i = 0; i<2; i++) {\n\t\t\tif (S[i] == S[i+1] && S[i] == 'R') {\n\t\t\t\tc++;\n\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i<3;i++) {\n\t\t\tif (S[i] == 'R') {\n\t\t\t\train = true;\n\t\t\t}\n\t\t}\n\t\tif (rain) {\n\t\t\tSystem.out.println(c+1);\n\t\t} else {\n\t\t\tSystem.out.println(0);\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString s = sc.next();\n\t\tchar[] S = s.toCharArray();\n\n\t\tint c = 0;\n\t\tboolean rain = false;\n\t\tfor (int i = 0; i<2; i++) {\n\t\t\tif (S[i] == S[i+1] && S[i] == 'R') {\n\t\t\t\tc++;\n\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i<3;i++) {\n\t\t\tif (S[i] == 'R') {\n\t\t\t\train = true;\n\t\t\t}\n\t\t}\n\t\tif (rain) {\n\t\t\tSystem.out.println(c+1);\n\t\t} else {\n\t\t\tSystem.out.println(0);\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "char[] S = s.toCharArray();", "S", "s.toCharArray()", "s.toCharArray", "s", "int c = 0;", "c", "0", "boolean rain = false;", "rain", "false", "for (int i = 0; i<2; i++) {\n\t\t\tif (S[i] == S[i+1] && S[i] == 'R') {\n\t\t\t\tc++;\n\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i<2", "i", "2", "i++", "i++", "i", "{\n\t\t\tif (S[i] == S[i+1] && S[i] == 'R') {\n\t\t\t\tc++;\n\n\t\t\t}\n\t\t}", "{\n\t\t\tif (S[i] == S[i+1] && S[i] == 'R') {\n\t\t\t\tc++;\n\n\t\t\t}\n\t\t}", "if (S[i] == S[i+1] && S[i] == 'R') {\n\t\t\t\tc++;\n\n\t\t\t}", "S[i] == S[i+1] && S[i] == 'R'", "S[i] == S[i+1]", "S[i]", "S", "i", "S[i+1]", "S", "i+1", "i", "1", "S[i] == 'R'", "S[i]", "S", "i", "'R'", "{\n\t\t\t\tc++;\n\n\t\t\t}", "c++", "c", "for (int i = 0; i<3;i++) {\n\t\t\tif (S[i] == 'R') {\n\t\t\t\train = true;\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i<3", "i", "3", "i++", "i++", "i", "{\n\t\t\tif (S[i] == 'R') {\n\t\t\t\train = true;\n\t\t\t}\n\t\t}", "{\n\t\t\tif (S[i] == 'R') {\n\t\t\t\train = true;\n\t\t\t}\n\t\t}", "if (S[i] == 'R') {\n\t\t\t\train = true;\n\t\t\t}", "S[i] == 'R'", "S[i]", "S", "i", "'R'", "{\n\t\t\t\train = true;\n\t\t\t}", "rain = true", "rain", "true", "if (rain) {\n\t\t\tSystem.out.println(c+1);\n\t\t} else {\n\t\t\tSystem.out.println(0);\n\t\t}", "rain", "{\n\t\t\tSystem.out.println(c+1);\n\t\t}", "System.out.println(c+1)", "System.out.println", "System.out", "System", "System.out", "c+1", "c", "1", "{\n\t\t\tSystem.out.println(0);\n\t\t}", "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\tScanner sc = new Scanner(System.in);\n\n\t\tString s = sc.next();\n\t\tchar[] S = s.toCharArray();\n\n\t\tint c = 0;\n\t\tboolean rain = false;\n\t\tfor (int i = 0; i<2; i++) {\n\t\t\tif (S[i] == S[i+1] && S[i] == 'R') {\n\t\t\t\tc++;\n\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i<3;i++) {\n\t\t\tif (S[i] == 'R') {\n\t\t\t\train = true;\n\t\t\t}\n\t\t}\n\t\tif (rain) {\n\t\t\tSystem.out.println(c+1);\n\t\t} else {\n\t\t\tSystem.out.println(0);\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString s = sc.next();\n\t\tchar[] S = s.toCharArray();\n\n\t\tint c = 0;\n\t\tboolean rain = false;\n\t\tfor (int i = 0; i<2; i++) {\n\t\t\tif (S[i] == S[i+1] && S[i] == 'R') {\n\t\t\t\tc++;\n\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i<3;i++) {\n\t\t\tif (S[i] == 'R') {\n\t\t\t\train = true;\n\t\t\t}\n\t\t}\n\t\tif (rain) {\n\t\t\tSystem.out.println(c+1);\n\t\t} else {\n\t\t\tSystem.out.println(0);\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); String s = sc.next(); char[] S = s.toCharArray(); int c = 0; boolean rain = false; for (int i = 0; i<2; i++) { if (S[i] == S[i+1] && S[i] == 'R') { c++; } } for (int i = 0; i<3;i++) { if (S[i] == 'R') { rain = true; } } if (rain) { System.out.println(c+1); } else { System.out.println(0); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 35, 13, 34, 17, 1, 0, 13, 17, 3, 34, 17, 1, 0, 13, 17, 3, 34, 17, 1, 0, 13, 17, 3, 34, 17, 1, 0, 13, 17, 3, 34, 1, 0, 13, 17, 3, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 65, 5 ], [ 65, 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 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 24, 28 ], [ 20, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 31, 35 ], [ 20, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 20, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 20, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 8, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 6, 62 ], [ 62, 63 ], [ 0, 64 ], [ 64, 65 ], [ 64, 66 ] ]
[ "import java.util.*;\npublic class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n\n\n\n int c = 0;\n switch (S){\n case(\"RRR\"): c=3; break;\n case(\"SSS\"): c=0; break;\n case(\"RRS\"): c=2; break;\n case(\"SRR\"): c=2; break;\n default: c=1; break;\n }\n\n\n\n System.out.println(c);\n\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n\n\n\n int c = 0;\n switch (S){\n case(\"RRR\"): c=3; break;\n case(\"SSS\"): c=0; break;\n case(\"RRS\"): c=2; break;\n case(\"SRR\"): c=2; break;\n default: c=1; break;\n }\n\n\n\n System.out.println(c);\n\n }\n}", "Main", "public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n\n\n\n int c = 0;\n switch (S){\n case(\"RRR\"): c=3; break;\n case(\"SSS\"): c=0; break;\n case(\"RRS\"): c=2; break;\n case(\"SRR\"): c=2; break;\n default: c=1; break;\n }\n\n\n\n System.out.println(c);\n\n }", "main", "{\n\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n\n\n\n int c = 0;\n switch (S){\n case(\"RRR\"): c=3; break;\n case(\"SSS\"): c=0; break;\n case(\"RRS\"): c=2; break;\n case(\"SRR\"): c=2; break;\n default: c=1; break;\n }\n\n\n\n System.out.println(c);\n\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String S = sc.next();", "S", "sc.next()", "sc.next", "sc", "int c = 0;", "c", "0", "switch (S){\n case(\"RRR\"): c=3; break;\n case(\"SSS\"): c=0; break;\n case(\"RRS\"): c=2; break;\n case(\"SRR\"): c=2; break;\n default: c=1; break;\n }", "S", "case(\"RRR\"):", "(\"RRR\")", "case(\"RRR\"):", "c=3", "c", "3", "break;", "case(\"SSS\"):", "(\"SSS\")", "case(\"SSS\"):", "c=0", "c", "0", "break;", "case(\"RRS\"):", "(\"RRS\")", "case(\"RRS\"):", "c=2", "c", "2", "break;", "case(\"SRR\"):", "(\"SRR\")", "case(\"SRR\"):", "c=2", "c", "2", "break;", "default:", "default:", "c=1", "c", "1", "break;", "System.out.println(c)", "System.out.println", "System.out", "System", "System.out", "c", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n\n\n\n int c = 0;\n switch (S){\n case(\"RRR\"): c=3; break;\n case(\"SSS\"): c=0; break;\n case(\"RRS\"): c=2; break;\n case(\"SRR\"): c=2; break;\n default: c=1; break;\n }\n\n\n\n System.out.println(c);\n\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n\n\n\n int c = 0;\n switch (S){\n case(\"RRR\"): c=3; break;\n case(\"SSS\"): c=0; break;\n case(\"RRS\"): c=2; break;\n case(\"SRR\"): c=2; break;\n default: c=1; break;\n }\n\n\n\n System.out.println(c);\n\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String S = sc.next(); int c = 0; switch (S){ case("RRR"): c=3; break; case("SSS"): c=0; break; case("RRS"): c=2; break; case("SRR"): c=2; break; default: c=1; break; } System.out.println(c); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 14, 2, 2, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 30, 0, 13, 17, 14, 2, 2, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 30, 0, 13, 17, 14, 2, 2, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 30, 0, 13, 17, 14, 2, 2, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 30, 0, 13, 17, 14, 2, 2, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 30, 0, 13, 17, 14, 2, 2, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 182, 5 ], [ 182, 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 ], [ 22, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 24, 27 ], [ 23, 28 ], [ 22, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 29, 34 ], [ 22, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 35, 40 ], [ 20, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 20, 45 ], [ 45, 46 ], [ 47, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 48, 53 ], [ 47, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 54, 59 ], [ 47, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 60, 65 ], [ 45, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 45, 70 ], [ 70, 71 ], [ 72, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 73, 78 ], [ 72, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 79, 84 ], [ 72, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 85, 90 ], [ 70, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 70, 95 ], [ 95, 96 ], [ 97, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 98, 103 ], [ 97, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 105, 108 ], [ 104, 109 ], [ 97, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 111, 114 ], [ 110, 115 ], [ 95, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 95, 120 ], [ 120, 121 ], [ 122, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 124, 127 ], [ 123, 128 ], [ 122, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 130, 133 ], [ 129, 134 ], [ 122, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 136, 139 ], [ 135, 140 ], [ 120, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 120, 145 ], [ 145, 146 ], [ 147, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 149, 152 ], [ 148, 153 ], [ 147, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 155, 158 ], [ 154, 159 ], [ 147, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 161, 164 ], [ 160, 165 ], [ 145, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 8, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 170, 175 ], [ 8, 176 ], [ 176, 177 ], [ 177, 178 ], [ 6, 179 ], [ 179, 180 ], [ 0, 181 ], [ 181, 182 ], [ 181, 183 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tint a=1;\n\t\t\n\t\t\n\t\t\tif((s.charAt(0)=='S')&&(s.charAt(1)=='S')&&(s.charAt(2)=='S')) {\n\t\t\t a=0;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='R')&&(s.charAt(1)=='R')&&(s.charAt(2)=='R')) {\n\t\t\t\t a=3;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='R')&&(s.charAt(1)=='R')&&(s.charAt(2)=='S')) {\n\t\t\t\t a=2;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='R')&&(s.charAt(1)=='S')&&(s.charAt(2)=='R')) {\n\t\t\t\t a=1;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='S')&&(s.charAt(1)=='R')&&(s.charAt(2)=='R')) {\n\t\t\t\t a=2;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='S')&&(s.charAt(1)=='S')&&(s.charAt(2)=='R')) {\n\t\t\t\t a=1;\n\t\t\t}\n\t\t\n\t\n\t\tSystem.out.println(a);\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\tString s = sc.next();\n\t\tint a=1;\n\t\t\n\t\t\n\t\t\tif((s.charAt(0)=='S')&&(s.charAt(1)=='S')&&(s.charAt(2)=='S')) {\n\t\t\t a=0;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='R')&&(s.charAt(1)=='R')&&(s.charAt(2)=='R')) {\n\t\t\t\t a=3;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='R')&&(s.charAt(1)=='R')&&(s.charAt(2)=='S')) {\n\t\t\t\t a=2;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='R')&&(s.charAt(1)=='S')&&(s.charAt(2)=='R')) {\n\t\t\t\t a=1;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='S')&&(s.charAt(1)=='R')&&(s.charAt(2)=='R')) {\n\t\t\t\t a=2;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='S')&&(s.charAt(1)=='S')&&(s.charAt(2)=='R')) {\n\t\t\t\t a=1;\n\t\t\t}\n\t\t\n\t\n\t\tSystem.out.println(a);\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\tString s = sc.next();\n\t\tint a=1;\n\t\t\n\t\t\n\t\t\tif((s.charAt(0)=='S')&&(s.charAt(1)=='S')&&(s.charAt(2)=='S')) {\n\t\t\t a=0;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='R')&&(s.charAt(1)=='R')&&(s.charAt(2)=='R')) {\n\t\t\t\t a=3;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='R')&&(s.charAt(1)=='R')&&(s.charAt(2)=='S')) {\n\t\t\t\t a=2;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='R')&&(s.charAt(1)=='S')&&(s.charAt(2)=='R')) {\n\t\t\t\t a=1;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='S')&&(s.charAt(1)=='R')&&(s.charAt(2)=='R')) {\n\t\t\t\t a=2;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='S')&&(s.charAt(1)=='S')&&(s.charAt(2)=='R')) {\n\t\t\t\t a=1;\n\t\t\t}\n\t\t\n\t\n\t\tSystem.out.println(a);\n\t\tsc.close();\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tint a=1;\n\t\t\n\t\t\n\t\t\tif((s.charAt(0)=='S')&&(s.charAt(1)=='S')&&(s.charAt(2)=='S')) {\n\t\t\t a=0;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='R')&&(s.charAt(1)=='R')&&(s.charAt(2)=='R')) {\n\t\t\t\t a=3;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='R')&&(s.charAt(1)=='R')&&(s.charAt(2)=='S')) {\n\t\t\t\t a=2;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='R')&&(s.charAt(1)=='S')&&(s.charAt(2)=='R')) {\n\t\t\t\t a=1;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='S')&&(s.charAt(1)=='R')&&(s.charAt(2)=='R')) {\n\t\t\t\t a=2;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='S')&&(s.charAt(1)=='S')&&(s.charAt(2)=='R')) {\n\t\t\t\t a=1;\n\t\t\t}\n\t\t\n\t\n\t\tSystem.out.println(a);\n\t\tsc.close();\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "int a=1;", "a", "1", "if((s.charAt(0)=='S')&&(s.charAt(1)=='S')&&(s.charAt(2)=='S')) {\n\t\t\t a=0;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='R')&&(s.charAt(1)=='R')&&(s.charAt(2)=='R')) {\n\t\t\t\t a=3;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='R')&&(s.charAt(1)=='R')&&(s.charAt(2)=='S')) {\n\t\t\t\t a=2;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='R')&&(s.charAt(1)=='S')&&(s.charAt(2)=='R')) {\n\t\t\t\t a=1;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='S')&&(s.charAt(1)=='R')&&(s.charAt(2)=='R')) {\n\t\t\t\t a=2;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='S')&&(s.charAt(1)=='S')&&(s.charAt(2)=='R')) {\n\t\t\t\t a=1;\n\t\t\t}", "(s.charAt(0)=='S')&&(s.charAt(1)=='S')&&(s.charAt(2)=='S')", "(s.charAt(0)=='S')&&(s.charAt(1)=='S')&&(s.charAt(2)=='S')", "(s.charAt(0)=='S')", "s.charAt(0)", "s.charAt", "s", "0", "'S'", "(s.charAt(1)=='S')", "s.charAt(1)", "s.charAt", "s", "1", "'S'", "(s.charAt(2)=='S')", "s.charAt(2)", "s.charAt", "s", "2", "'S'", "{\n\t\t\t a=0;\n\t\t\t}", "a=0", "a", "0", "if((s.charAt(0)=='R')&&(s.charAt(1)=='R')&&(s.charAt(2)=='R')) {\n\t\t\t\t a=3;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='R')&&(s.charAt(1)=='R')&&(s.charAt(2)=='S')) {\n\t\t\t\t a=2;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='R')&&(s.charAt(1)=='S')&&(s.charAt(2)=='R')) {\n\t\t\t\t a=1;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='S')&&(s.charAt(1)=='R')&&(s.charAt(2)=='R')) {\n\t\t\t\t a=2;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='S')&&(s.charAt(1)=='S')&&(s.charAt(2)=='R')) {\n\t\t\t\t a=1;\n\t\t\t}", "(s.charAt(0)=='R')&&(s.charAt(1)=='R')&&(s.charAt(2)=='R')", "(s.charAt(0)=='R')&&(s.charAt(1)=='R')&&(s.charAt(2)=='R')", "(s.charAt(0)=='R')", "s.charAt(0)", "s.charAt", "s", "0", "'R'", "(s.charAt(1)=='R')", "s.charAt(1)", "s.charAt", "s", "1", "'R'", "(s.charAt(2)=='R')", "s.charAt(2)", "s.charAt", "s", "2", "'R'", "{\n\t\t\t\t a=3;\n\t\t\t}", "a=3", "a", "3", "if((s.charAt(0)=='R')&&(s.charAt(1)=='R')&&(s.charAt(2)=='S')) {\n\t\t\t\t a=2;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='R')&&(s.charAt(1)=='S')&&(s.charAt(2)=='R')) {\n\t\t\t\t a=1;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='S')&&(s.charAt(1)=='R')&&(s.charAt(2)=='R')) {\n\t\t\t\t a=2;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='S')&&(s.charAt(1)=='S')&&(s.charAt(2)=='R')) {\n\t\t\t\t a=1;\n\t\t\t}", "(s.charAt(0)=='R')&&(s.charAt(1)=='R')&&(s.charAt(2)=='S')", "(s.charAt(0)=='R')&&(s.charAt(1)=='R')&&(s.charAt(2)=='S')", "(s.charAt(0)=='R')", "s.charAt(0)", "s.charAt", "s", "0", "'R'", "(s.charAt(1)=='R')", "s.charAt(1)", "s.charAt", "s", "1", "'R'", "(s.charAt(2)=='S')", "s.charAt(2)", "s.charAt", "s", "2", "'S'", "{\n\t\t\t\t a=2;\n\t\t\t}", "a=2", "a", "2", "if((s.charAt(0)=='R')&&(s.charAt(1)=='S')&&(s.charAt(2)=='R')) {\n\t\t\t\t a=1;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='S')&&(s.charAt(1)=='R')&&(s.charAt(2)=='R')) {\n\t\t\t\t a=2;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='S')&&(s.charAt(1)=='S')&&(s.charAt(2)=='R')) {\n\t\t\t\t a=1;\n\t\t\t}", "(s.charAt(0)=='R')&&(s.charAt(1)=='S')&&(s.charAt(2)=='R')", "(s.charAt(0)=='R')&&(s.charAt(1)=='S')&&(s.charAt(2)=='R')", "(s.charAt(0)=='R')", "s.charAt(0)", "s.charAt", "s", "0", "'R'", "(s.charAt(1)=='S')", "s.charAt(1)", "s.charAt", "s", "1", "'S'", "(s.charAt(2)=='R')", "s.charAt(2)", "s.charAt", "s", "2", "'R'", "{\n\t\t\t\t a=1;\n\t\t\t}", "a=1", "a", "1", "if((s.charAt(0)=='S')&&(s.charAt(1)=='R')&&(s.charAt(2)=='R')) {\n\t\t\t\t a=2;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='S')&&(s.charAt(1)=='S')&&(s.charAt(2)=='R')) {\n\t\t\t\t a=1;\n\t\t\t}", "(s.charAt(0)=='S')&&(s.charAt(1)=='R')&&(s.charAt(2)=='R')", "(s.charAt(0)=='S')&&(s.charAt(1)=='R')&&(s.charAt(2)=='R')", "(s.charAt(0)=='S')", "s.charAt(0)", "s.charAt", "s", "0", "'S'", "(s.charAt(1)=='R')", "s.charAt(1)", "s.charAt", "s", "1", "'R'", "(s.charAt(2)=='R')", "s.charAt(2)", "s.charAt", "s", "2", "'R'", "{\n\t\t\t\t a=2;\n\t\t\t}", "a=2", "a", "2", "if((s.charAt(0)=='S')&&(s.charAt(1)=='S')&&(s.charAt(2)=='R')) {\n\t\t\t\t a=1;\n\t\t\t}", "(s.charAt(0)=='S')&&(s.charAt(1)=='S')&&(s.charAt(2)=='R')", "(s.charAt(0)=='S')&&(s.charAt(1)=='S')&&(s.charAt(2)=='R')", "(s.charAt(0)=='S')", "s.charAt(0)", "s.charAt", "s", "0", "'S'", "(s.charAt(1)=='S')", "s.charAt(1)", "s.charAt", "s", "1", "'S'", "(s.charAt(2)=='R')", "s.charAt(2)", "s.charAt", "s", "2", "'R'", "{\n\t\t\t\t a=1;\n\t\t\t}", "a=1", "a", "1", "System.out.println(a)", "System.out.println", "System.out", "System", "System.out", "a", "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\tString s = sc.next();\n\t\tint a=1;\n\t\t\n\t\t\n\t\t\tif((s.charAt(0)=='S')&&(s.charAt(1)=='S')&&(s.charAt(2)=='S')) {\n\t\t\t a=0;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='R')&&(s.charAt(1)=='R')&&(s.charAt(2)=='R')) {\n\t\t\t\t a=3;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='R')&&(s.charAt(1)=='R')&&(s.charAt(2)=='S')) {\n\t\t\t\t a=2;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='R')&&(s.charAt(1)=='S')&&(s.charAt(2)=='R')) {\n\t\t\t\t a=1;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='S')&&(s.charAt(1)=='R')&&(s.charAt(2)=='R')) {\n\t\t\t\t a=2;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='S')&&(s.charAt(1)=='S')&&(s.charAt(2)=='R')) {\n\t\t\t\t a=1;\n\t\t\t}\n\t\t\n\t\n\t\tSystem.out.println(a);\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\tString s = sc.next();\n\t\tint a=1;\n\t\t\n\t\t\n\t\t\tif((s.charAt(0)=='S')&&(s.charAt(1)=='S')&&(s.charAt(2)=='S')) {\n\t\t\t a=0;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='R')&&(s.charAt(1)=='R')&&(s.charAt(2)=='R')) {\n\t\t\t\t a=3;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='R')&&(s.charAt(1)=='R')&&(s.charAt(2)=='S')) {\n\t\t\t\t a=2;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='R')&&(s.charAt(1)=='S')&&(s.charAt(2)=='R')) {\n\t\t\t\t a=1;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='S')&&(s.charAt(1)=='R')&&(s.charAt(2)=='R')) {\n\t\t\t\t a=2;\n\t\t\t}\n\t\t\telse if((s.charAt(0)=='S')&&(s.charAt(1)=='S')&&(s.charAt(2)=='R')) {\n\t\t\t\t a=1;\n\t\t\t}\n\t\t\n\t\n\t\tSystem.out.println(a);\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); String s = sc.next(); int a=1; if((s.charAt(0)=='S')&&(s.charAt(1)=='S')&&(s.charAt(2)=='S')) { a=0; } else if((s.charAt(0)=='R')&&(s.charAt(1)=='R')&&(s.charAt(2)=='R')) { a=3; } else if((s.charAt(0)=='R')&&(s.charAt(1)=='R')&&(s.charAt(2)=='S')) { a=2; } else if((s.charAt(0)=='R')&&(s.charAt(1)=='S')&&(s.charAt(2)=='R')) { a=1; } else if((s.charAt(0)=='S')&&(s.charAt(1)=='R')&&(s.charAt(2)=='R')) { a=2; } else if((s.charAt(0)=='S')&&(s.charAt(1)=='S')&&(s.charAt(2)=='R')) { a=1; } System.out.println(a); sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 4, 18, 13, 17, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 68, 5 ], [ 68, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 18, 21 ], [ 17, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 23, 28 ], [ 17, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 30, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 29, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 29, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 46, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 46, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 6, 65 ], [ 65, 66 ], [ 0, 67 ], [ 67, 68 ], [ 67, 69 ] ]
[ "import java.util.*;\n\npublic class Main {// AtCorderの時はMainじゃないとコンパイルエラーになる\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.nextLine();\n\n\t\tif (S.equals(\"SSS\")) {\n\t\t\tSystem.out.print(\"0\");\n\t\t} else if (S.equals(\"RRS\")||S.equals(\"SRR\")) {\n\t\t\tSystem.out.print(\"2\");\n\t\t} else if (S.equals(\"RRR\")) {\n\t\t\tSystem.out.print(\"3\");\n\t\t} else {\n\t\t\tSystem.out.print(\"1\");\n\t\t}\n\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main {// AtCorderの時はMainじゃないとコンパイルエラーになる\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.nextLine();\n\n\t\tif (S.equals(\"SSS\")) {\n\t\t\tSystem.out.print(\"0\");\n\t\t} else if (S.equals(\"RRS\")||S.equals(\"SRR\")) {\n\t\t\tSystem.out.print(\"2\");\n\t\t} else if (S.equals(\"RRR\")) {\n\t\t\tSystem.out.print(\"3\");\n\t\t} else {\n\t\t\tSystem.out.print(\"1\");\n\t\t}\n\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.nextLine();\n\n\t\tif (S.equals(\"SSS\")) {\n\t\t\tSystem.out.print(\"0\");\n\t\t} else if (S.equals(\"RRS\")||S.equals(\"SRR\")) {\n\t\t\tSystem.out.print(\"2\");\n\t\t} else if (S.equals(\"RRR\")) {\n\t\t\tSystem.out.print(\"3\");\n\t\t} else {\n\t\t\tSystem.out.print(\"1\");\n\t\t}\n\n\t}", "main", "{\n\t\t// TODO Auto-generated method stub\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.nextLine();\n\n\t\tif (S.equals(\"SSS\")) {\n\t\t\tSystem.out.print(\"0\");\n\t\t} else if (S.equals(\"RRS\")||S.equals(\"SRR\")) {\n\t\t\tSystem.out.print(\"2\");\n\t\t} else if (S.equals(\"RRR\")) {\n\t\t\tSystem.out.print(\"3\");\n\t\t} else {\n\t\t\tSystem.out.print(\"1\");\n\t\t}\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String S = sc.nextLine();", "S", "sc.nextLine()", "sc.nextLine", "sc", "if (S.equals(\"SSS\")) {\n\t\t\tSystem.out.print(\"0\");\n\t\t} else if (S.equals(\"RRS\")||S.equals(\"SRR\")) {\n\t\t\tSystem.out.print(\"2\");\n\t\t} else if (S.equals(\"RRR\")) {\n\t\t\tSystem.out.print(\"3\");\n\t\t} else {\n\t\t\tSystem.out.print(\"1\");\n\t\t}", "S.equals(\"SSS\")", "S.equals", "S", "\"SSS\"", "{\n\t\t\tSystem.out.print(\"0\");\n\t\t}", "System.out.print(\"0\")", "System.out.print", "System.out", "System", "System.out", "\"0\"", "if (S.equals(\"RRS\")||S.equals(\"SRR\")) {\n\t\t\tSystem.out.print(\"2\");\n\t\t} else if (S.equals(\"RRR\")) {\n\t\t\tSystem.out.print(\"3\");\n\t\t} else {\n\t\t\tSystem.out.print(\"1\");\n\t\t}", "S.equals(\"RRS\")||S.equals(\"SRR\")", "S.equals(\"RRS\")", "S.equals", "S", "\"RRS\"", "S.equals(\"SRR\")", "S.equals", "S", "\"SRR\"", "{\n\t\t\tSystem.out.print(\"2\");\n\t\t}", "System.out.print(\"2\")", "System.out.print", "System.out", "System", "System.out", "\"2\"", "if (S.equals(\"RRR\")) {\n\t\t\tSystem.out.print(\"3\");\n\t\t} else {\n\t\t\tSystem.out.print(\"1\");\n\t\t}", "S.equals(\"RRR\")", "S.equals", "S", "\"RRR\"", "{\n\t\t\tSystem.out.print(\"3\");\n\t\t}", "System.out.print(\"3\")", "System.out.print", "System.out", "System", "System.out", "\"3\"", "{\n\t\t\tSystem.out.print(\"1\");\n\t\t}", "System.out.print(\"1\")", "System.out.print", "System.out", "System", "System.out", "\"1\"", "String[] args", "args", "public class Main {// AtCorderの時はMainじゃないとコンパイルエラーになる\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.nextLine();\n\n\t\tif (S.equals(\"SSS\")) {\n\t\t\tSystem.out.print(\"0\");\n\t\t} else if (S.equals(\"RRS\")||S.equals(\"SRR\")) {\n\t\t\tSystem.out.print(\"2\");\n\t\t} else if (S.equals(\"RRR\")) {\n\t\t\tSystem.out.print(\"3\");\n\t\t} else {\n\t\t\tSystem.out.print(\"1\");\n\t\t}\n\n\t}\n}", "public class Main {// AtCorderの時はMainじゃないとコンパイルエラーになる\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.nextLine();\n\n\t\tif (S.equals(\"SSS\")) {\n\t\t\tSystem.out.print(\"0\");\n\t\t} else if (S.equals(\"RRS\")||S.equals(\"SRR\")) {\n\t\t\tSystem.out.print(\"2\");\n\t\t} else if (S.equals(\"RRR\")) {\n\t\t\tSystem.out.print(\"3\");\n\t\t} else {\n\t\t\tSystem.out.print(\"1\");\n\t\t}\n\n\t}\n}", "Main" ]
import java.util.*; public class Main {// AtCorderの時はMainじゃないとコンパイルエラーになる public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); String S = sc.nextLine(); if (S.equals("SSS")) { System.out.print("0"); } else if (S.equals("RRS")||S.equals("SRR")) { System.out.print("2"); } else if (S.equals("RRR")) { System.out.print("3"); } else { System.out.print("1"); } } }
[ 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, 41, 13, 4, 18, 13, 13, 2, 13, 17, 14, 4, 18, 13, 17, 40, 13, 30, 0, 13, 4, 18, 13, 13, 13, 0, 13, 17, 0, 13, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 4, 18, 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 ], [ 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 ], [ 39, 40 ], [ 38, 41 ], [ 38, 42 ], [ 42, 43 ], [ 42, 44 ], [ 35, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 45, 50 ], [ 50, 51 ], [ 45, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 55, 59 ], [ 52, 60 ], [ 60, 61 ], [ 60, 62 ], [ 8, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 65, 69 ], [ 8, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 8, 76 ], [ 76, 77 ], [ 77, 78 ], [ 6, 79 ], [ 79, 80 ], [ 0, 81 ], [ 81, 82 ], [ 81, 83 ] ]
[ "import java.util.*;\n\npublic class Main\n{\n public static void main(String[] args)\n {\n //long start = System.currentTimeMillis();\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n int count = 0;\n int max = 0;\n for (int i = 0;i<3;++i)\n {\n String ss = s.substring(i,i+1);\n if (ss.equals(\"R\")) ++count;\n else\n {\n max = Math.max(count,max);\n count = 0;\n }\n }\n max = Math.max(count,max);\n System.out.println(max);\n sc.close();\n// long end = System.currentTimeMillis();\n// System.err.println((end-start)+\"ms\");\n }\n}", "import java.util.*;", "util.*", "java", "public class Main\n{\n public static void main(String[] args)\n {\n //long start = System.currentTimeMillis();\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n int count = 0;\n int max = 0;\n for (int i = 0;i<3;++i)\n {\n String ss = s.substring(i,i+1);\n if (ss.equals(\"R\")) ++count;\n else\n {\n max = Math.max(count,max);\n count = 0;\n }\n }\n max = Math.max(count,max);\n System.out.println(max);\n sc.close();\n// long end = System.currentTimeMillis();\n// System.err.println((end-start)+\"ms\");\n }\n}", "Main", "public static void main(String[] args)\n {\n //long start = System.currentTimeMillis();\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n int count = 0;\n int max = 0;\n for (int i = 0;i<3;++i)\n {\n String ss = s.substring(i,i+1);\n if (ss.equals(\"R\")) ++count;\n else\n {\n max = Math.max(count,max);\n count = 0;\n }\n }\n max = Math.max(count,max);\n System.out.println(max);\n sc.close();\n// long end = System.currentTimeMillis();\n// System.err.println((end-start)+\"ms\");\n }", "main", "{\n //long start = System.currentTimeMillis();\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n int count = 0;\n int max = 0;\n for (int i = 0;i<3;++i)\n {\n String ss = s.substring(i,i+1);\n if (ss.equals(\"R\")) ++count;\n else\n {\n max = Math.max(count,max);\n count = 0;\n }\n }\n max = Math.max(count,max);\n System.out.println(max);\n sc.close();\n// long end = System.currentTimeMillis();\n// System.err.println((end-start)+\"ms\");\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "int count = 0;", "count", "0", "int max = 0;", "max", "0", "for (int i = 0;i<3;++i)\n {\n String ss = s.substring(i,i+1);\n if (ss.equals(\"R\")) ++count;\n else\n {\n max = Math.max(count,max);\n count = 0;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i<3", "i", "3", "++i", "++i", "i", "{\n String ss = s.substring(i,i+1);\n if (ss.equals(\"R\")) ++count;\n else\n {\n max = Math.max(count,max);\n count = 0;\n }\n }", "{\n String ss = s.substring(i,i+1);\n if (ss.equals(\"R\")) ++count;\n else\n {\n max = Math.max(count,max);\n count = 0;\n }\n }", "String ss = s.substring(i,i+1);", "ss", "s.substring(i,i+1)", "s.substring", "s", "i", "i+1", "i", "1", "if (ss.equals(\"R\")) ++count;\n else\n {\n max = Math.max(count,max);\n count = 0;\n }", "ss.equals(\"R\")", "ss.equals", "ss", "\"R\"", "++count", "count", "{\n max = Math.max(count,max);\n count = 0;\n }", "max = Math.max(count,max)", "max", "Math.max(count,max)", "Math.max", "Math", "count", "max", "count = 0", "count", "0", "max = Math.max(count,max)", "max", "Math.max(count,max)", "Math.max", "Math", "count", "max", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main\n{\n public static void main(String[] args)\n {\n //long start = System.currentTimeMillis();\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n int count = 0;\n int max = 0;\n for (int i = 0;i<3;++i)\n {\n String ss = s.substring(i,i+1);\n if (ss.equals(\"R\")) ++count;\n else\n {\n max = Math.max(count,max);\n count = 0;\n }\n }\n max = Math.max(count,max);\n System.out.println(max);\n sc.close();\n// long end = System.currentTimeMillis();\n// System.err.println((end-start)+\"ms\");\n }\n}", "public class Main\n{\n public static void main(String[] args)\n {\n //long start = System.currentTimeMillis();\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n int count = 0;\n int max = 0;\n for (int i = 0;i<3;++i)\n {\n String ss = s.substring(i,i+1);\n if (ss.equals(\"R\")) ++count;\n else\n {\n max = Math.max(count,max);\n count = 0;\n }\n }\n max = Math.max(count,max);\n System.out.println(max);\n sc.close();\n// long end = System.currentTimeMillis();\n// System.err.println((end-start)+\"ms\");\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { //long start = System.currentTimeMillis(); Scanner sc = new Scanner(System.in); String s = sc.next(); int count = 0; int max = 0; for (int i = 0;i<3;++i) { String ss = s.substring(i,i+1); if (ss.equals("R")) ++count; else { max = Math.max(count,max); count = 0; } } max = Math.max(count,max); System.out.println(max); sc.close(); // long end = System.currentTimeMillis(); // System.err.println((end-start)+"ms"); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 41, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 4, 18, 13, 4, 18, 13, 4, 18, 13, 23, 13, 12, 13, 30, 0, 18, 36, 13, 13, 0, 18, 36, 13, 4, 18, 13, 23, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 4, 18, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 4, 18, 13, 13, 17, 2, 4, 18, 13, 17, 17, 30, 0, 13, 17, 14, 2, 2, 4, 18, 13, 13, 17, 2, 4, 18, 13, 2, 13, 17, 17, 30, 40, 13, 14, 2, 13, 17, 30, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 29, 13, 12, 13, 30, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 140, 5 ], [ 140, 6 ], [ 6, 7 ], [ 140, 8 ], [ 8, 9 ], [ 140, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 13, 14 ], [ 13, 15 ], [ 12, 16 ], [ 16, 17 ], [ 16, 18 ], [ 12, 19 ], [ 19, 20 ], [ 20, 21 ], [ 19, 22 ], [ 22, 23 ], [ 23, 24 ], [ 12, 25 ], [ 25, 26 ], [ 26, 27 ], [ 10, 28 ], [ 28, 29 ], [ 140, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 33, 37 ], [ 32, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 42, 43 ], [ 43, 44 ], [ 30, 45 ], [ 45, 46 ], [ 140, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 53, 55 ], [ 49, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 63, 67 ], [ 56, 68 ], [ 68, 69 ], [ 69, 70 ], [ 56, 71 ], [ 72, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 75, 80 ], [ 74, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 81, 86 ], [ 73, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 72, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 94, 97 ], [ 93, 98 ], [ 92, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 103 ], [ 103, 104 ], [ 103, 105 ], [ 99, 106 ], [ 91, 107 ], [ 107, 108 ], [ 108, 109 ], [ 49, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 110, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 110, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 118, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 49, 126 ], [ 126, 127 ], [ 140, 128 ], [ 128, 129 ], [ 128, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 131, 136 ], [ 128, 137 ], [ 137, 138 ], [ 0, 139 ], [ 139, 140 ], [ 139, 141 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n Main m = new Main(sc);\n m.show(m.solve());\n sc.close();\n }\n \n\t//フィールド\n Scanner sc;\n String S;\n \n //入力\n Main(Scanner sc) {\n this.sc = sc;\n this.S = sc.next();\n }\n \n //解答処理\n private int solve() {\n int answer = 0;\n int count = 0;\n \n for (int i=0; i<S.length()-1; i++) {\n \tif (S.charAt(i)=='R' || S.charAt(2)=='R') {\n \t\tanswer = 1;\n \t}\n \tif (S.charAt(i)=='R'&&S.charAt(i+1)=='R') {\n \t\tcount++;\n \t}\n }\n \n if (count==1) {\n \tanswer = 2;\n }else if (count==2){\n \tanswer = 3;\n }\n return answer;\n }\n \n //出力\n public void show(int answer) {\n System.out.println(answer);\n }\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n Main m = new Main(sc);\n m.show(m.solve());\n sc.close();\n }\n \n\t//フィールド\n Scanner sc;\n String S;\n \n //入力\n Main(Scanner sc) {\n this.sc = sc;\n this.S = sc.next();\n }\n \n //解答処理\n private int solve() {\n int answer = 0;\n int count = 0;\n \n for (int i=0; i<S.length()-1; i++) {\n \tif (S.charAt(i)=='R' || S.charAt(2)=='R') {\n \t\tanswer = 1;\n \t}\n \tif (S.charAt(i)=='R'&&S.charAt(i+1)=='R') {\n \t\tcount++;\n \t}\n }\n \n if (count==1) {\n \tanswer = 2;\n }else if (count==2){\n \tanswer = 3;\n }\n return answer;\n }\n \n //出力\n public void show(int answer) {\n System.out.println(answer);\n }\n\n}", "Main", "//フィールド\n Scanner sc;", "sc", "String S;", "S", "public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n Main m = new Main(sc);\n m.show(m.solve());\n sc.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n Main m = new Main(sc);\n m.show(m.solve());\n sc.close();\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "Main m = new Main(sc);", "m", "new Main(sc)", "m.show(m.solve())", "m.show", "m", "m.solve()", "m.solve", "m", "sc.close()", "sc.close", "sc", "String[] args", "args", "//入力\n Main(Scanner sc) {\n this.sc = sc;\n this.S = sc.next();\n }", "Main", "{\n this.sc = sc;\n this.S = sc.next();\n }", "this.sc = sc", "this.sc", "this", "this.sc", "sc", "this.S = sc.next()", "this.S", "this", "this.S", "sc.next()", "sc.next", "sc", "Scanner sc", "sc", "//解答処理\n private int solve() {\n int answer = 0;\n int count = 0;\n \n for (int i=0; i<S.length()-1; i++) {\n \tif (S.charAt(i)=='R' || S.charAt(2)=='R') {\n \t\tanswer = 1;\n \t}\n \tif (S.charAt(i)=='R'&&S.charAt(i+1)=='R') {\n \t\tcount++;\n \t}\n }\n \n if (count==1) {\n \tanswer = 2;\n }else if (count==2){\n \tanswer = 3;\n }\n return answer;\n }", "solve", "{\n int answer = 0;\n int count = 0;\n \n for (int i=0; i<S.length()-1; i++) {\n \tif (S.charAt(i)=='R' || S.charAt(2)=='R') {\n \t\tanswer = 1;\n \t}\n \tif (S.charAt(i)=='R'&&S.charAt(i+1)=='R') {\n \t\tcount++;\n \t}\n }\n \n if (count==1) {\n \tanswer = 2;\n }else if (count==2){\n \tanswer = 3;\n }\n return answer;\n }", "int answer = 0;", "answer", "0", "int count = 0;", "count", "0", "for (int i=0; i<S.length()-1; i++) {\n \tif (S.charAt(i)=='R' || S.charAt(2)=='R') {\n \t\tanswer = 1;\n \t}\n \tif (S.charAt(i)=='R'&&S.charAt(i+1)=='R') {\n \t\tcount++;\n \t}\n }", "int i=0;", "int i=0;", "i", "0", "i<S.length()-1", "i", "S.length()-1", "S.length()", "S.length", "S", "1", "i++", "i++", "i", "{\n \tif (S.charAt(i)=='R' || S.charAt(2)=='R') {\n \t\tanswer = 1;\n \t}\n \tif (S.charAt(i)=='R'&&S.charAt(i+1)=='R') {\n \t\tcount++;\n \t}\n }", "{\n \tif (S.charAt(i)=='R' || S.charAt(2)=='R') {\n \t\tanswer = 1;\n \t}\n \tif (S.charAt(i)=='R'&&S.charAt(i+1)=='R') {\n \t\tcount++;\n \t}\n }", "if (S.charAt(i)=='R' || S.charAt(2)=='R') {\n \t\tanswer = 1;\n \t}", "S.charAt(i)=='R' || S.charAt(2)=='R'", "S.charAt(i)=='R'", "S.charAt(i)", "S.charAt", "S", "i", "'R'", "S.charAt(2)=='R'", "S.charAt(2)", "S.charAt", "S", "2", "'R'", "{\n \t\tanswer = 1;\n \t}", "answer = 1", "answer", "1", "if (S.charAt(i)=='R'&&S.charAt(i+1)=='R') {\n \t\tcount++;\n \t}", "S.charAt(i)=='R'&&S.charAt(i+1)=='R'", "S.charAt(i)=='R'", "S.charAt(i)", "S.charAt", "S", "i", "'R'", "S.charAt(i+1)=='R'", "S.charAt(i+1)", "S.charAt", "S", "i+1", "i", "1", "'R'", "{\n \t\tcount++;\n \t}", "count++", "count", "if (count==1) {\n \tanswer = 2;\n }else if (count==2){\n \tanswer = 3;\n }", "count==1", "count", "1", "{\n \tanswer = 2;\n }", "answer = 2", "answer", "2", "if (count==2){\n \tanswer = 3;\n }", "count==2", "count", "2", "{\n \tanswer = 3;\n }", "answer = 3", "answer", "3", "return answer;", "answer", "//出力\n public void show(int answer) {\n System.out.println(answer);\n }", "show", "{\n System.out.println(answer);\n }", "System.out.println(answer)", "System.out.println", "System.out", "System", "System.out", "answer", "int answer", "answer", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n Main m = new Main(sc);\n m.show(m.solve());\n sc.close();\n }\n \n\t//フィールド\n Scanner sc;\n String S;\n \n //入力\n Main(Scanner sc) {\n this.sc = sc;\n this.S = sc.next();\n }\n \n //解答処理\n private int solve() {\n int answer = 0;\n int count = 0;\n \n for (int i=0; i<S.length()-1; i++) {\n \tif (S.charAt(i)=='R' || S.charAt(2)=='R') {\n \t\tanswer = 1;\n \t}\n \tif (S.charAt(i)=='R'&&S.charAt(i+1)=='R') {\n \t\tcount++;\n \t}\n }\n \n if (count==1) {\n \tanswer = 2;\n }else if (count==2){\n \tanswer = 3;\n }\n return answer;\n }\n \n //出力\n public void show(int answer) {\n System.out.println(answer);\n }\n\n}", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n Main m = new Main(sc);\n m.show(m.solve());\n sc.close();\n }\n \n\t//フィールド\n Scanner sc;\n String S;\n \n //入力\n Main(Scanner sc) {\n this.sc = sc;\n this.S = sc.next();\n }\n \n //解答処理\n private int solve() {\n int answer = 0;\n int count = 0;\n \n for (int i=0; i<S.length()-1; i++) {\n \tif (S.charAt(i)=='R' || S.charAt(2)=='R') {\n \t\tanswer = 1;\n \t}\n \tif (S.charAt(i)=='R'&&S.charAt(i+1)=='R') {\n \t\tcount++;\n \t}\n }\n \n if (count==1) {\n \tanswer = 2;\n }else if (count==2){\n \tanswer = 3;\n }\n return answer;\n }\n \n //出力\n public void show(int answer) {\n System.out.println(answer);\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); Main m = new Main(sc); m.show(m.solve()); sc.close(); } //フィールド Scanner sc; String S; //入力 Main(Scanner sc) { this.sc = sc; this.S = sc.next(); } //解答処理 private int solve() { int answer = 0; int count = 0; for (int i=0; i<S.length()-1; i++) { if (S.charAt(i)=='R' || S.charAt(2)=='R') { answer = 1; } if (S.charAt(i)=='R'&&S.charAt(i+1)=='R') { count++; } } if (count==1) { answer = 2; }else if (count==2){ answer = 3; } return answer; } //出力 public void show(int answer) { System.out.println(answer); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 14, 2, 4, 18, 13, 17, 30, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 4, 18, 13, 17, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 90, 5 ], [ 90, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 18, 22 ], [ 17, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 24, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 24, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 37, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 36, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 36, 53 ], [ 53, 54 ], [ 56, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 56, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 55, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 56, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 53, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 53, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 6, 87 ], [ 87, 88 ], [ 0, 89 ], [ 89, 90 ], [ 89, 91 ] ]
[ "import java.util.*;\n\npublic class Main{\n public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.next();\n\t\tif(S.length() == 3) {\n\t\t\tif(S.equals(\"RRR\")) {\n\t\t\t\tSystem.out.println(\"3\");\n\t\t\t}else if(S.equals(\"RRS\") || S.equals(\"SRR\")) {\n\t\t\t\tSystem.out.println(\"2\");\n\t\t\t}else if(S.equals(\"RSR\") || S.equals(\"SRS\") || S.equals(\"SSR\") || S.equals(\"RSS\")) {\n\t\t\t\tSystem.out.println(\"1\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"0\");\n\t\t\t}\n\t\t}\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main{\n public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.next();\n\t\tif(S.length() == 3) {\n\t\t\tif(S.equals(\"RRR\")) {\n\t\t\t\tSystem.out.println(\"3\");\n\t\t\t}else if(S.equals(\"RRS\") || S.equals(\"SRR\")) {\n\t\t\t\tSystem.out.println(\"2\");\n\t\t\t}else if(S.equals(\"RSR\") || S.equals(\"SRS\") || S.equals(\"SSR\") || S.equals(\"RSS\")) {\n\t\t\t\tSystem.out.println(\"1\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"0\");\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\tString S = sc.next();\n\t\tif(S.length() == 3) {\n\t\t\tif(S.equals(\"RRR\")) {\n\t\t\t\tSystem.out.println(\"3\");\n\t\t\t}else if(S.equals(\"RRS\") || S.equals(\"SRR\")) {\n\t\t\t\tSystem.out.println(\"2\");\n\t\t\t}else if(S.equals(\"RSR\") || S.equals(\"SRS\") || S.equals(\"SSR\") || S.equals(\"RSS\")) {\n\t\t\t\tSystem.out.println(\"1\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"0\");\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.next();\n\t\tif(S.length() == 3) {\n\t\t\tif(S.equals(\"RRR\")) {\n\t\t\t\tSystem.out.println(\"3\");\n\t\t\t}else if(S.equals(\"RRS\") || S.equals(\"SRR\")) {\n\t\t\t\tSystem.out.println(\"2\");\n\t\t\t}else if(S.equals(\"RSR\") || S.equals(\"SRS\") || S.equals(\"SSR\") || S.equals(\"RSS\")) {\n\t\t\t\tSystem.out.println(\"1\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"0\");\n\t\t\t}\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String S = sc.next();", "S", "sc.next()", "sc.next", "sc", "if(S.length() == 3) {\n\t\t\tif(S.equals(\"RRR\")) {\n\t\t\t\tSystem.out.println(\"3\");\n\t\t\t}else if(S.equals(\"RRS\") || S.equals(\"SRR\")) {\n\t\t\t\tSystem.out.println(\"2\");\n\t\t\t}else if(S.equals(\"RSR\") || S.equals(\"SRS\") || S.equals(\"SSR\") || S.equals(\"RSS\")) {\n\t\t\t\tSystem.out.println(\"1\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"0\");\n\t\t\t}\n\t\t}", "S.length() == 3", "S.length()", "S.length", "S", "3", "{\n\t\t\tif(S.equals(\"RRR\")) {\n\t\t\t\tSystem.out.println(\"3\");\n\t\t\t}else if(S.equals(\"RRS\") || S.equals(\"SRR\")) {\n\t\t\t\tSystem.out.println(\"2\");\n\t\t\t}else if(S.equals(\"RSR\") || S.equals(\"SRS\") || S.equals(\"SSR\") || S.equals(\"RSS\")) {\n\t\t\t\tSystem.out.println(\"1\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"0\");\n\t\t\t}\n\t\t}", "if(S.equals(\"RRR\")) {\n\t\t\t\tSystem.out.println(\"3\");\n\t\t\t}else if(S.equals(\"RRS\") || S.equals(\"SRR\")) {\n\t\t\t\tSystem.out.println(\"2\");\n\t\t\t}else if(S.equals(\"RSR\") || S.equals(\"SRS\") || S.equals(\"SSR\") || S.equals(\"RSS\")) {\n\t\t\t\tSystem.out.println(\"1\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"0\");\n\t\t\t}", "S.equals(\"RRR\")", "S.equals", "S", "\"RRR\"", "{\n\t\t\t\tSystem.out.println(\"3\");\n\t\t\t}", "System.out.println(\"3\")", "System.out.println", "System.out", "System", "System.out", "\"3\"", "if(S.equals(\"RRS\") || S.equals(\"SRR\")) {\n\t\t\t\tSystem.out.println(\"2\");\n\t\t\t}else if(S.equals(\"RSR\") || S.equals(\"SRS\") || S.equals(\"SSR\") || S.equals(\"RSS\")) {\n\t\t\t\tSystem.out.println(\"1\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"0\");\n\t\t\t}", "S.equals(\"RRS\") || S.equals(\"SRR\")", "S.equals(\"RRS\")", "S.equals", "S", "\"RRS\"", "S.equals(\"SRR\")", "S.equals", "S", "\"SRR\"", "{\n\t\t\t\tSystem.out.println(\"2\");\n\t\t\t}", "System.out.println(\"2\")", "System.out.println", "System.out", "System", "System.out", "\"2\"", "if(S.equals(\"RSR\") || S.equals(\"SRS\") || S.equals(\"SSR\") || S.equals(\"RSS\")) {\n\t\t\t\tSystem.out.println(\"1\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"0\");\n\t\t\t}", "S.equals(\"RSR\") || S.equals(\"SRS\") || S.equals(\"SSR\") || S.equals(\"RSS\")", "S.equals(\"SSR\")", "S.equals(\"RSR\") || S.equals(\"SRS\") || S.equals(\"SSR\") || S.equals(\"RSS\")", "S.equals(\"RSR\")", "S.equals", "S", "\"RSR\"", "S.equals(\"SRS\")", "S.equals", "S", "\"SRS\"", "S.equals(\"SSR\")", "S.equals", "S", "\"SSR\"", "S.equals(\"RSS\")", "S.equals", "S", "\"RSS\"", "{\n\t\t\t\tSystem.out.println(\"1\");\n\t\t\t}", "System.out.println(\"1\")", "System.out.println", "System.out", "System", "System.out", "\"1\"", "{\n\t\t\t\tSystem.out.println(\"0\");\n\t\t\t}", "System.out.println(\"0\")", "System.out.println", "System.out", "System", "System.out", "\"0\"", "String[] args", "args", "public class Main{\n public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.next();\n\t\tif(S.length() == 3) {\n\t\t\tif(S.equals(\"RRR\")) {\n\t\t\t\tSystem.out.println(\"3\");\n\t\t\t}else if(S.equals(\"RRS\") || S.equals(\"SRR\")) {\n\t\t\t\tSystem.out.println(\"2\");\n\t\t\t}else if(S.equals(\"RSR\") || S.equals(\"SRS\") || S.equals(\"SSR\") || S.equals(\"RSS\")) {\n\t\t\t\tSystem.out.println(\"1\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"0\");\n\t\t\t}\n\t\t}\n\t}\n}", "public class Main{\n public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.next();\n\t\tif(S.length() == 3) {\n\t\t\tif(S.equals(\"RRR\")) {\n\t\t\t\tSystem.out.println(\"3\");\n\t\t\t}else if(S.equals(\"RRS\") || S.equals(\"SRR\")) {\n\t\t\t\tSystem.out.println(\"2\");\n\t\t\t}else if(S.equals(\"RSR\") || S.equals(\"SRS\") || S.equals(\"SSR\") || S.equals(\"RSS\")) {\n\t\t\t\tSystem.out.println(\"1\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"0\");\n\t\t\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); String S = sc.next(); if(S.length() == 3) { if(S.equals("RRR")) { System.out.println("3"); }else if(S.equals("RRS") || S.equals("SRR")) { System.out.println("2"); }else if(S.equals("RSR") || S.equals("SRS") || S.equals("SSR") || S.equals("RSS")) { System.out.println("1"); }else { System.out.println("0"); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 4, 18, 18, 13, 13, 17, 14, 4, 18, 13, 17, 4, 18, 18, 13, 13, 17, 14, 2, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 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 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 90, 11 ], [ 90, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 24, 27 ], [ 23, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 28, 33 ], [ 14, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 34, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 14, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 46, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 45, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 14, 61 ], [ 61, 62 ], [ 64, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 64, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 63, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 64, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 61, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 12, 87 ], [ 87, 88 ], [ 0, 89 ], [ 89, 90 ], [ 89, 91 ] ]
[ "/* package whatever; // don't place package name! */\n\nimport java.util.*;\nimport java.lang.*;\nimport java.io.*;\n\n/* Name of the class has to be \"Main\" only if the class is public. */\npublic class Main\n{\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString input = scanner.next();\n\t\t\n\t\tif(input.equals(\"SSS\"))\n\t\t\tSystem.out.println(0);\n\t\t\t\n\t\tif(input.equals(\"RRR\"))\n\t\t\tSystem.out.println(3);\n\t\t\t\n\t\tif(input.equals(\"RRS\") || input.equals(\"SRR\"))\n\t\t\tSystem.out.println(2);\n\t\t\t\n\t\tif(input.equals(\"RSR\") || input.equals(\"SRS\") || input.equals(\"SSR\") || input.equals(\"RSS\"))\n\t\t\tSystem.out.println(1);\n\t}\n}", "import java.util.*;", "util.*", "java", "import java.lang.*;", "lang.*", "java", "import java.io.*;", "io.*", "java", "public class Main\n{\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString input = scanner.next();\n\t\t\n\t\tif(input.equals(\"SSS\"))\n\t\t\tSystem.out.println(0);\n\t\t\t\n\t\tif(input.equals(\"RRR\"))\n\t\t\tSystem.out.println(3);\n\t\t\t\n\t\tif(input.equals(\"RRS\") || input.equals(\"SRR\"))\n\t\t\tSystem.out.println(2);\n\t\t\t\n\t\tif(input.equals(\"RSR\") || input.equals(\"SRS\") || input.equals(\"SSR\") || input.equals(\"RSS\"))\n\t\t\tSystem.out.println(1);\n\t}\n}", "Main", "public static void main (String[] args) throws java.lang.Exception\n\t{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString input = scanner.next();\n\t\t\n\t\tif(input.equals(\"SSS\"))\n\t\t\tSystem.out.println(0);\n\t\t\t\n\t\tif(input.equals(\"RRR\"))\n\t\t\tSystem.out.println(3);\n\t\t\t\n\t\tif(input.equals(\"RRS\") || input.equals(\"SRR\"))\n\t\t\tSystem.out.println(2);\n\t\t\t\n\t\tif(input.equals(\"RSR\") || input.equals(\"SRS\") || input.equals(\"SSR\") || input.equals(\"RSS\"))\n\t\t\tSystem.out.println(1);\n\t}", "main", "{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString input = scanner.next();\n\t\t\n\t\tif(input.equals(\"SSS\"))\n\t\t\tSystem.out.println(0);\n\t\t\t\n\t\tif(input.equals(\"RRR\"))\n\t\t\tSystem.out.println(3);\n\t\t\t\n\t\tif(input.equals(\"RRS\") || input.equals(\"SRR\"))\n\t\t\tSystem.out.println(2);\n\t\t\t\n\t\tif(input.equals(\"RSR\") || input.equals(\"SRS\") || input.equals(\"SSR\") || input.equals(\"RSS\"))\n\t\t\tSystem.out.println(1);\n\t}", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "String input = scanner.next();", "input", "scanner.next()", "scanner.next", "scanner", "if(input.equals(\"SSS\"))\n\t\t\tSystem.out.println(0);", "input.equals(\"SSS\")", "input.equals", "input", "\"SSS\"", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "if(input.equals(\"RRR\"))\n\t\t\tSystem.out.println(3);", "input.equals(\"RRR\")", "input.equals", "input", "\"RRR\"", "System.out.println(3)", "System.out.println", "System.out", "System", "System.out", "3", "if(input.equals(\"RRS\") || input.equals(\"SRR\"))\n\t\t\tSystem.out.println(2);", "input.equals(\"RRS\") || input.equals(\"SRR\")", "input.equals(\"RRS\")", "input.equals", "input", "\"RRS\"", "input.equals(\"SRR\")", "input.equals", "input", "\"SRR\"", "System.out.println(2)", "System.out.println", "System.out", "System", "System.out", "2", "if(input.equals(\"RSR\") || input.equals(\"SRS\") || input.equals(\"SSR\") || input.equals(\"RSS\"))\n\t\t\tSystem.out.println(1);", "input.equals(\"RSR\") || input.equals(\"SRS\") || input.equals(\"SSR\") || input.equals(\"RSS\")", "input.equals(\"SSR\")", "input.equals(\"RSR\") || input.equals(\"SRS\") || input.equals(\"SSR\") || input.equals(\"RSS\")", "input.equals(\"RSR\")", "input.equals", "input", "\"RSR\"", "input.equals(\"SRS\")", "input.equals", "input", "\"SRS\"", "input.equals(\"SSR\")", "input.equals", "input", "\"SSR\"", "input.equals(\"RSS\")", "input.equals", "input", "\"RSS\"", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "String[] args", "args", "public class Main\n{\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString input = scanner.next();\n\t\t\n\t\tif(input.equals(\"SSS\"))\n\t\t\tSystem.out.println(0);\n\t\t\t\n\t\tif(input.equals(\"RRR\"))\n\t\t\tSystem.out.println(3);\n\t\t\t\n\t\tif(input.equals(\"RRS\") || input.equals(\"SRR\"))\n\t\t\tSystem.out.println(2);\n\t\t\t\n\t\tif(input.equals(\"RSR\") || input.equals(\"SRS\") || input.equals(\"SSR\") || input.equals(\"RSS\"))\n\t\t\tSystem.out.println(1);\n\t}\n}", "public class Main\n{\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString input = scanner.next();\n\t\t\n\t\tif(input.equals(\"SSS\"))\n\t\t\tSystem.out.println(0);\n\t\t\t\n\t\tif(input.equals(\"RRR\"))\n\t\t\tSystem.out.println(3);\n\t\t\t\n\t\tif(input.equals(\"RRS\") || input.equals(\"SRR\"))\n\t\t\tSystem.out.println(2);\n\t\t\t\n\t\tif(input.equals(\"RSR\") || input.equals(\"SRS\") || input.equals(\"SSR\") || input.equals(\"RSS\"))\n\t\t\tSystem.out.println(1);\n\t}\n}", "Main" ]
/* package whatever; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ public class Main { public static void main (String[] args) throws java.lang.Exception { Scanner scanner = new Scanner(System.in); String input = scanner.next(); if(input.equals("SSS")) System.out.println(0); if(input.equals("RRR")) System.out.println(3); if(input.equals("RRS") || input.equals("SRR")) System.out.println(2); if(input.equals("RSR") || input.equals("SRS") || input.equals("SSR") || input.equals("RSS")) System.out.println(1); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 17, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 17, 30, 14, 2, 13, 17, 30, 40, 13, 30, 0, 13, 17, 0, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 74, 5 ], [ 74, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 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 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 37, 42 ], [ 36, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 48, 49 ], [ 49, 50 ], [ 44, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 43, 55 ], [ 55, 56 ], [ 55, 57 ], [ 36, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 8, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 8, 68 ], [ 68, 69 ], [ 69, 70 ], [ 6, 71 ], [ 71, 72 ], [ 0, 73 ], [ 73, 74 ], [ 73, 75 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint continuousRain = 0; // 連続雨の日数\n\t\tint weatherYesterday = 0; // 昨日の天気\n\n\t\tString input = sc.next();\n\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tif(input.charAt(i) == 'R') {\n\t\t\t\tif(weatherYesterday == 1) {\n\t\t\t\t\tcontinuousRain ++;\n\t\t\t\t} else {\n\t\t\t\t\tcontinuousRain = 1;\n\t\t\t\t}\n\t\t\t\tweatherYesterday = 1;\n\t\t\t} else {\n\t\t\t\tweatherYesterday = 0;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(continuousRain);\n\n\t\tsc.close();\n\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\n\t\tint continuousRain = 0; // 連続雨の日数\n\t\tint weatherYesterday = 0; // 昨日の天気\n\n\t\tString input = sc.next();\n\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tif(input.charAt(i) == 'R') {\n\t\t\t\tif(weatherYesterday == 1) {\n\t\t\t\t\tcontinuousRain ++;\n\t\t\t\t} else {\n\t\t\t\t\tcontinuousRain = 1;\n\t\t\t\t}\n\t\t\t\tweatherYesterday = 1;\n\t\t\t} else {\n\t\t\t\tweatherYesterday = 0;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(continuousRain);\n\n\t\tsc.close();\n\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint continuousRain = 0; // 連続雨の日数\n\t\tint weatherYesterday = 0; // 昨日の天気\n\n\t\tString input = sc.next();\n\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tif(input.charAt(i) == 'R') {\n\t\t\t\tif(weatherYesterday == 1) {\n\t\t\t\t\tcontinuousRain ++;\n\t\t\t\t} else {\n\t\t\t\t\tcontinuousRain = 1;\n\t\t\t\t}\n\t\t\t\tweatherYesterday = 1;\n\t\t\t} else {\n\t\t\t\tweatherYesterday = 0;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(continuousRain);\n\n\t\tsc.close();\n\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint continuousRain = 0; // 連続雨の日数\n\t\tint weatherYesterday = 0; // 昨日の天気\n\n\t\tString input = sc.next();\n\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tif(input.charAt(i) == 'R') {\n\t\t\t\tif(weatherYesterday == 1) {\n\t\t\t\t\tcontinuousRain ++;\n\t\t\t\t} else {\n\t\t\t\t\tcontinuousRain = 1;\n\t\t\t\t}\n\t\t\t\tweatherYesterday = 1;\n\t\t\t} else {\n\t\t\t\tweatherYesterday = 0;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(continuousRain);\n\n\t\tsc.close();\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int continuousRain = 0;", "continuousRain", "0", "int weatherYesterday = 0;", "weatherYesterday", "0", "String input = sc.next();", "input", "sc.next()", "sc.next", "sc", "for(int i = 0; i < 3; i++) {\n\t\t\tif(input.charAt(i) == 'R') {\n\t\t\t\tif(weatherYesterday == 1) {\n\t\t\t\t\tcontinuousRain ++;\n\t\t\t\t} else {\n\t\t\t\t\tcontinuousRain = 1;\n\t\t\t\t}\n\t\t\t\tweatherYesterday = 1;\n\t\t\t} else {\n\t\t\t\tweatherYesterday = 0;\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < 3", "i", "3", "i++", "i++", "i", "{\n\t\t\tif(input.charAt(i) == 'R') {\n\t\t\t\tif(weatherYesterday == 1) {\n\t\t\t\t\tcontinuousRain ++;\n\t\t\t\t} else {\n\t\t\t\t\tcontinuousRain = 1;\n\t\t\t\t}\n\t\t\t\tweatherYesterday = 1;\n\t\t\t} else {\n\t\t\t\tweatherYesterday = 0;\n\t\t\t}\n\t\t}", "{\n\t\t\tif(input.charAt(i) == 'R') {\n\t\t\t\tif(weatherYesterday == 1) {\n\t\t\t\t\tcontinuousRain ++;\n\t\t\t\t} else {\n\t\t\t\t\tcontinuousRain = 1;\n\t\t\t\t}\n\t\t\t\tweatherYesterday = 1;\n\t\t\t} else {\n\t\t\t\tweatherYesterday = 0;\n\t\t\t}\n\t\t}", "if(input.charAt(i) == 'R') {\n\t\t\t\tif(weatherYesterday == 1) {\n\t\t\t\t\tcontinuousRain ++;\n\t\t\t\t} else {\n\t\t\t\t\tcontinuousRain = 1;\n\t\t\t\t}\n\t\t\t\tweatherYesterday = 1;\n\t\t\t} else {\n\t\t\t\tweatherYesterday = 0;\n\t\t\t}", "input.charAt(i) == 'R'", "input.charAt(i)", "input.charAt", "input", "i", "'R'", "{\n\t\t\t\tif(weatherYesterday == 1) {\n\t\t\t\t\tcontinuousRain ++;\n\t\t\t\t} else {\n\t\t\t\t\tcontinuousRain = 1;\n\t\t\t\t}\n\t\t\t\tweatherYesterday = 1;\n\t\t\t}", "if(weatherYesterday == 1) {\n\t\t\t\t\tcontinuousRain ++;\n\t\t\t\t} else {\n\t\t\t\t\tcontinuousRain = 1;\n\t\t\t\t}", "weatherYesterday == 1", "weatherYesterday", "1", "{\n\t\t\t\t\tcontinuousRain ++;\n\t\t\t\t}", "continuousRain ++", "continuousRain", "{\n\t\t\t\t\tcontinuousRain = 1;\n\t\t\t\t}", "continuousRain = 1", "continuousRain", "1", "weatherYesterday = 1", "weatherYesterday", "1", "{\n\t\t\t\tweatherYesterday = 0;\n\t\t\t}", "weatherYesterday = 0", "weatherYesterday", "0", "System.out.println(continuousRain)", "System.out.println", "System.out", "System", "System.out", "continuousRain", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint continuousRain = 0; // 連続雨の日数\n\t\tint weatherYesterday = 0; // 昨日の天気\n\n\t\tString input = sc.next();\n\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tif(input.charAt(i) == 'R') {\n\t\t\t\tif(weatherYesterday == 1) {\n\t\t\t\t\tcontinuousRain ++;\n\t\t\t\t} else {\n\t\t\t\t\tcontinuousRain = 1;\n\t\t\t\t}\n\t\t\t\tweatherYesterday = 1;\n\t\t\t} else {\n\t\t\t\tweatherYesterday = 0;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(continuousRain);\n\n\t\tsc.close();\n\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint continuousRain = 0; // 連続雨の日数\n\t\tint weatherYesterday = 0; // 昨日の天気\n\n\t\tString input = sc.next();\n\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tif(input.charAt(i) == 'R') {\n\t\t\t\tif(weatherYesterday == 1) {\n\t\t\t\t\tcontinuousRain ++;\n\t\t\t\t} else {\n\t\t\t\t\tcontinuousRain = 1;\n\t\t\t\t}\n\t\t\t\tweatherYesterday = 1;\n\t\t\t} else {\n\t\t\t\tweatherYesterday = 0;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(continuousRain);\n\n\t\tsc.close();\n\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int continuousRain = 0; // 連続雨の日数 int weatherYesterday = 0; // 昨日の天気 String input = sc.next(); for(int i = 0; i < 3; i++) { if(input.charAt(i) == 'R') { if(weatherYesterday == 1) { continuousRain ++; } else { continuousRain = 1; } weatherYesterday = 1; } else { weatherYesterday = 0; } } System.out.println(continuousRain); sc.close(); } }
[ 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, 17, 1, 40, 13, 30, 30, 41, 13, 13, 41, 13, 17, 42, 2, 2, 13, 17, 2, 4, 18, 13, 13, 17, 30, 40, 13, 40, 13, 0, 13, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 71, 5 ], [ 71, 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 ], [ 20, 31 ], [ 32, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 32, 36 ], [ 36, 37 ], [ 36, 38 ], [ 32, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 40, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 44, 49 ], [ 39, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 53, 54 ], [ 32, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 57, 61 ], [ 8, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 6, 68 ], [ 68, 69 ], [ 0, 70 ], [ 70, 71 ], [ 70, 72 ] ]
[ "\nimport java.util.*;\n\npublic class Main {\n\n\tpublic static void main(String args[])\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tString st=sc.next();\n\t\tint max=0;\n\t\tfor(int i=0;i<3;i++)\n\t\t{\n\t\t\tint j=i,count=0;\n\t\t\twhile(j<3&&st.charAt(j)=='R') \n\t\t\t\t{\n\t\t\t\t\tcount++;\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\tmax=Math.max(max, count);\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n\t\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\n\tpublic static void main(String args[])\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tString st=sc.next();\n\t\tint max=0;\n\t\tfor(int i=0;i<3;i++)\n\t\t{\n\t\t\tint j=i,count=0;\n\t\t\twhile(j<3&&st.charAt(j)=='R') \n\t\t\t\t{\n\t\t\t\t\tcount++;\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\tmax=Math.max(max, count);\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n\t\n}", "Main", "public static void main(String args[])\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tString st=sc.next();\n\t\tint max=0;\n\t\tfor(int i=0;i<3;i++)\n\t\t{\n\t\t\tint j=i,count=0;\n\t\t\twhile(j<3&&st.charAt(j)=='R') \n\t\t\t\t{\n\t\t\t\t\tcount++;\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\tmax=Math.max(max, count);\n\t\t}\n\t\tSystem.out.println(max);\n\t}", "main", "{\n\t\tScanner sc=new Scanner(System.in);\n\t\tString st=sc.next();\n\t\tint max=0;\n\t\tfor(int i=0;i<3;i++)\n\t\t{\n\t\t\tint j=i,count=0;\n\t\t\twhile(j<3&&st.charAt(j)=='R') \n\t\t\t\t{\n\t\t\t\t\tcount++;\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\tmax=Math.max(max, count);\n\t\t}\n\t\tSystem.out.println(max);\n\t}", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "String st=sc.next();", "st", "sc.next()", "sc.next", "sc", "int max=0;", "max", "0", "for(int i=0;i<3;i++)\n\t\t{\n\t\t\tint j=i,count=0;\n\t\t\twhile(j<3&&st.charAt(j)=='R') \n\t\t\t\t{\n\t\t\t\t\tcount++;\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\tmax=Math.max(max, count);\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<3", "i", "3", "i++", "i++", "i", "{\n\t\t\tint j=i,count=0;\n\t\t\twhile(j<3&&st.charAt(j)=='R') \n\t\t\t\t{\n\t\t\t\t\tcount++;\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\tmax=Math.max(max, count);\n\t\t}", "{\n\t\t\tint j=i,count=0;\n\t\t\twhile(j<3&&st.charAt(j)=='R') \n\t\t\t\t{\n\t\t\t\t\tcount++;\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\tmax=Math.max(max, count);\n\t\t}", "int j=i", "j", "i", "count=0;", "count", "0", "while(j<3&&st.charAt(j)=='R') \n\t\t\t\t{\n\t\t\t\t\tcount++;\n\t\t\t\t\tj++;\n\t\t\t\t}", "j<3&&st.charAt(j)=='R'", "j<3", "j", "3", "st.charAt(j)=='R'", "st.charAt(j)", "st.charAt", "st", "j", "'R'", "{\n\t\t\t\t\tcount++;\n\t\t\t\t\tj++;\n\t\t\t\t}", "count++", "count", "j++", "j", "max=Math.max(max, count)", "max", "Math.max(max, count)", "Math.max", "Math", "max", "count", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String args[]", "args", "public class Main {\n\n\tpublic static void main(String args[])\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tString st=sc.next();\n\t\tint max=0;\n\t\tfor(int i=0;i<3;i++)\n\t\t{\n\t\t\tint j=i,count=0;\n\t\t\twhile(j<3&&st.charAt(j)=='R') \n\t\t\t\t{\n\t\t\t\t\tcount++;\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\tmax=Math.max(max, count);\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n\t\n}", "public class Main {\n\n\tpublic static void main(String args[])\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tString st=sc.next();\n\t\tint max=0;\n\t\tfor(int i=0;i<3;i++)\n\t\t{\n\t\t\tint j=i,count=0;\n\t\t\twhile(j<3&&st.charAt(j)=='R') \n\t\t\t\t{\n\t\t\t\t\tcount++;\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\tmax=Math.max(max, count);\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n\t\n}", "Main" ]
import java.util.*; public class Main { public static void main(String args[]) { Scanner sc=new Scanner(System.in); String st=sc.next(); int max=0; for(int i=0;i<3;i++) { int j=i,count=0; while(j<3&&st.charAt(j)=='R') { count++; j++; } max=Math.max(max, count); } System.out.println(max); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 4, 18, 13, 4, 18, 13, 13, 41, 13, 17, 14, 2, 4, 18, 13, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 4, 18, 13, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 2, 4, 18, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 4, 18, 13, 13, 17, 2, 4, 18, 13, 2, 13, 17, 17, 30, 0, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 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 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 143, 14 ], [ 143, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 17, 26 ], [ 26, 27 ], [ 26, 28 ], [ 17, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 29, 39 ], [ 39, 40 ], [ 40, 41 ], [ 29, 42 ], [ 43, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 17, 51 ], [ 51, 52 ], [ 51, 53 ], [ 17, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 56, 60 ], [ 55, 61 ], [ 54, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 54, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 71, 75 ], [ 70, 76 ], [ 69, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 78, 83 ], [ 69, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 92, 96 ], [ 85, 97 ], [ 97, 98 ], [ 98, 99 ], [ 85, 100 ], [ 101, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 105, 108 ], [ 104, 109 ], [ 103, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 111, 114 ], [ 114, 115 ], [ 114, 116 ], [ 110, 117 ], [ 102, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 84, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 122, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 127, 132 ], [ 122, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 134, 139 ], [ 15, 140 ], [ 140, 141 ], [ 0, 142 ], [ 142, 143 ], [ 142, 144 ] ]
[ "import java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner s =new Scanner(System.in);\n String input=s.nextLine();\n List<Character> cl=new ArrayList<>();\n for(int i=0;i<input.length();i++){\n cl.add(input.charAt(i));\n }\n boolean flag=false;\n\n if(Collections.frequency(cl,'S')==3){\n System.out.println(\"0\");\n }\n else if(Collections.frequency(cl,'R')==3){\n System.out.println(\"3\");\n }\n else {\n for(int i=0;i<input.length()-1;i++){\n if(cl.get(i)=='R' && cl.get(i+1)=='R'){\n flag=true;\n }\n }\n if(flag==true){\n System.out.println(\"2\");\n }\n else\n {\n System.out.println(\"1\");\n }\n\n }\n\n }\n}", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Collections;", "Collections", "java.util", "import java.util.List;", "List", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner s =new Scanner(System.in);\n String input=s.nextLine();\n List<Character> cl=new ArrayList<>();\n for(int i=0;i<input.length();i++){\n cl.add(input.charAt(i));\n }\n boolean flag=false;\n\n if(Collections.frequency(cl,'S')==3){\n System.out.println(\"0\");\n }\n else if(Collections.frequency(cl,'R')==3){\n System.out.println(\"3\");\n }\n else {\n for(int i=0;i<input.length()-1;i++){\n if(cl.get(i)=='R' && cl.get(i+1)=='R'){\n flag=true;\n }\n }\n if(flag==true){\n System.out.println(\"2\");\n }\n else\n {\n System.out.println(\"1\");\n }\n\n }\n\n }\n}", "Main", "public static void main(String[] args) {\n Scanner s =new Scanner(System.in);\n String input=s.nextLine();\n List<Character> cl=new ArrayList<>();\n for(int i=0;i<input.length();i++){\n cl.add(input.charAt(i));\n }\n boolean flag=false;\n\n if(Collections.frequency(cl,'S')==3){\n System.out.println(\"0\");\n }\n else if(Collections.frequency(cl,'R')==3){\n System.out.println(\"3\");\n }\n else {\n for(int i=0;i<input.length()-1;i++){\n if(cl.get(i)=='R' && cl.get(i+1)=='R'){\n flag=true;\n }\n }\n if(flag==true){\n System.out.println(\"2\");\n }\n else\n {\n System.out.println(\"1\");\n }\n\n }\n\n }", "main", "{\n Scanner s =new Scanner(System.in);\n String input=s.nextLine();\n List<Character> cl=new ArrayList<>();\n for(int i=0;i<input.length();i++){\n cl.add(input.charAt(i));\n }\n boolean flag=false;\n\n if(Collections.frequency(cl,'S')==3){\n System.out.println(\"0\");\n }\n else if(Collections.frequency(cl,'R')==3){\n System.out.println(\"3\");\n }\n else {\n for(int i=0;i<input.length()-1;i++){\n if(cl.get(i)=='R' && cl.get(i+1)=='R'){\n flag=true;\n }\n }\n if(flag==true){\n System.out.println(\"2\");\n }\n else\n {\n System.out.println(\"1\");\n }\n\n }\n\n }", "Scanner s =new Scanner(System.in);", "s", "new Scanner(System.in)", "String input=s.nextLine();", "input", "s.nextLine()", "s.nextLine", "s", "List<Character> cl=new ArrayList<>();", "cl", "new ArrayList<>()", "for(int i=0;i<input.length();i++){\n cl.add(input.charAt(i));\n }", "int i=0;", "int i=0;", "i", "0", "i<input.length()", "i", "input.length()", "input.length", "input", "i++", "i++", "i", "{\n cl.add(input.charAt(i));\n }", "{\n cl.add(input.charAt(i));\n }", "cl.add(input.charAt(i))", "cl.add", "cl", "input.charAt(i)", "input.charAt", "input", "i", "boolean flag=false;", "flag", "false", "if(Collections.frequency(cl,'S')==3){\n System.out.println(\"0\");\n }\n else if(Collections.frequency(cl,'R')==3){\n System.out.println(\"3\");\n }\n else {\n for(int i=0;i<input.length()-1;i++){\n if(cl.get(i)=='R' && cl.get(i+1)=='R'){\n flag=true;\n }\n }\n if(flag==true){\n System.out.println(\"2\");\n }\n else\n {\n System.out.println(\"1\");\n }\n\n }", "Collections.frequency(cl,'S')==3", "Collections.frequency(cl,'S')", "Collections.frequency", "Collections", "cl", "'S'", "3", "{\n System.out.println(\"0\");\n }", "System.out.println(\"0\")", "System.out.println", "System.out", "System", "System.out", "\"0\"", "if(Collections.frequency(cl,'R')==3){\n System.out.println(\"3\");\n }\n else {\n for(int i=0;i<input.length()-1;i++){\n if(cl.get(i)=='R' && cl.get(i+1)=='R'){\n flag=true;\n }\n }\n if(flag==true){\n System.out.println(\"2\");\n }\n else\n {\n System.out.println(\"1\");\n }\n\n }", "Collections.frequency(cl,'R')==3", "Collections.frequency(cl,'R')", "Collections.frequency", "Collections", "cl", "'R'", "3", "{\n System.out.println(\"3\");\n }", "System.out.println(\"3\")", "System.out.println", "System.out", "System", "System.out", "\"3\"", "{\n for(int i=0;i<input.length()-1;i++){\n if(cl.get(i)=='R' && cl.get(i+1)=='R'){\n flag=true;\n }\n }\n if(flag==true){\n System.out.println(\"2\");\n }\n else\n {\n System.out.println(\"1\");\n }\n\n }", "for(int i=0;i<input.length()-1;i++){\n if(cl.get(i)=='R' && cl.get(i+1)=='R'){\n flag=true;\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<input.length()-1", "i", "input.length()-1", "input.length()", "input.length", "input", "1", "i++", "i++", "i", "{\n if(cl.get(i)=='R' && cl.get(i+1)=='R'){\n flag=true;\n }\n }", "{\n if(cl.get(i)=='R' && cl.get(i+1)=='R'){\n flag=true;\n }\n }", "if(cl.get(i)=='R' && cl.get(i+1)=='R'){\n flag=true;\n }", "cl.get(i)=='R' && cl.get(i+1)=='R'", "cl.get(i)=='R'", "cl.get(i)", "cl.get", "cl", "i", "'R'", "cl.get(i+1)=='R'", "cl.get(i+1)", "cl.get", "cl", "i+1", "i", "1", "'R'", "{\n flag=true;\n }", "flag=true", "flag", "true", "if(flag==true){\n System.out.println(\"2\");\n }\n else\n {\n System.out.println(\"1\");\n }", "flag==true", "flag", "true", "{\n System.out.println(\"2\");\n }", "System.out.println(\"2\")", "System.out.println", "System.out", "System", "System.out", "\"2\"", "{\n System.out.println(\"1\");\n }", "System.out.println(\"1\")", "System.out.println", "System.out", "System", "System.out", "\"1\"", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner s =new Scanner(System.in);\n String input=s.nextLine();\n List<Character> cl=new ArrayList<>();\n for(int i=0;i<input.length();i++){\n cl.add(input.charAt(i));\n }\n boolean flag=false;\n\n if(Collections.frequency(cl,'S')==3){\n System.out.println(\"0\");\n }\n else if(Collections.frequency(cl,'R')==3){\n System.out.println(\"3\");\n }\n else {\n for(int i=0;i<input.length()-1;i++){\n if(cl.get(i)=='R' && cl.get(i+1)=='R'){\n flag=true;\n }\n }\n if(flag==true){\n System.out.println(\"2\");\n }\n else\n {\n System.out.println(\"1\");\n }\n\n }\n\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner s =new Scanner(System.in);\n String input=s.nextLine();\n List<Character> cl=new ArrayList<>();\n for(int i=0;i<input.length();i++){\n cl.add(input.charAt(i));\n }\n boolean flag=false;\n\n if(Collections.frequency(cl,'S')==3){\n System.out.println(\"0\");\n }\n else if(Collections.frequency(cl,'R')==3){\n System.out.println(\"3\");\n }\n else {\n for(int i=0;i<input.length()-1;i++){\n if(cl.get(i)=='R' && cl.get(i+1)=='R'){\n flag=true;\n }\n }\n if(flag==true){\n System.out.println(\"2\");\n }\n else\n {\n System.out.println(\"1\");\n }\n\n }\n\n }\n}", "Main" ]
import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner s =new Scanner(System.in); String input=s.nextLine(); List<Character> cl=new ArrayList<>(); for(int i=0;i<input.length();i++){ cl.add(input.charAt(i)); } boolean flag=false; if(Collections.frequency(cl,'S')==3){ System.out.println("0"); } else if(Collections.frequency(cl,'R')==3){ System.out.println("3"); } else { for(int i=0;i<input.length()-1;i++){ if(cl.get(i)=='R' && cl.get(i+1)=='R'){ flag=true; } } if(flag==true){ System.out.println("2"); } else { System.out.println("1"); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 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, 41, 13, 4, 18, 13, 13, 14, 2, 13, 17, 30, 41, 13, 17, 11, 1, 41, 13, 2, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 13, 4, 18, 13, 13, 3, 40, 13, 0, 13, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 93, 8 ], [ 93, 9 ], [ 9, 10 ], [ 93, 11 ], [ 11, 12 ], [ 11, 13 ], [ 13, 14 ], [ 14, 15 ], [ 14, 16 ], [ 13, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 13, 22 ], [ 22, 23 ], [ 22, 24 ], [ 13, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 25, 30 ], [ 30, 31 ], [ 30, 32 ], [ 25, 33 ], [ 33, 34 ], [ 34, 35 ], [ 25, 36 ], [ 37, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 37, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 56, 58 ], [ 52, 59 ], [ 59, 60 ], [ 59, 61 ], [ 52, 62 ], [ 62, 63 ], [ 63, 64 ], [ 52, 65 ], [ 66, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 67, 74 ], [ 66, 75 ], [ 75, 76 ], [ 48, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 79, 83 ], [ 13, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 11, 90 ], [ 90, 91 ], [ 0, 92 ], [ 92, 93 ], [ 92, 94 ] ]
[ "import java.util.Scanner;\nimport java.util.Stack;\n\npublic class Main {\n\tstatic int[][] numbers;\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner in = new Scanner(System.in);\n\t\tString S = in.next();\n int max = 0;\n for(int i =0; i< 3; i++) {\n int prev = S.charAt(i);\n if(prev=='R'){\n \t int to =1;\n for(int j =i+1; j<3; j++) {\n if(prev!=S.charAt(j)) break;\n to++;\n }\n max = Math.max(max, to); \n }\n \t \t\t\t \t\t\n }\n System.out.println(max); \n\t}\n\t\n\t\n}", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.Stack;", "Stack", "java.util", "public class Main {\n\tstatic int[][] numbers;\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner in = new Scanner(System.in);\n\t\tString S = in.next();\n int max = 0;\n for(int i =0; i< 3; i++) {\n int prev = S.charAt(i);\n if(prev=='R'){\n \t int to =1;\n for(int j =i+1; j<3; j++) {\n if(prev!=S.charAt(j)) break;\n to++;\n }\n max = Math.max(max, to); \n }\n \t \t\t\t \t\t\n }\n System.out.println(max); \n\t}\n\t\n\t\n}", "Main", "static int[][] numbers;", "numbers", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner in = new Scanner(System.in);\n\t\tString S = in.next();\n int max = 0;\n for(int i =0; i< 3; i++) {\n int prev = S.charAt(i);\n if(prev=='R'){\n \t int to =1;\n for(int j =i+1; j<3; j++) {\n if(prev!=S.charAt(j)) break;\n to++;\n }\n max = Math.max(max, to); \n }\n \t \t\t\t \t\t\n }\n System.out.println(max); \n\t}", "main", "{\n\t\t// TODO Auto-generated method stub\n\t\tScanner in = new Scanner(System.in);\n\t\tString S = in.next();\n int max = 0;\n for(int i =0; i< 3; i++) {\n int prev = S.charAt(i);\n if(prev=='R'){\n \t int to =1;\n for(int j =i+1; j<3; j++) {\n if(prev!=S.charAt(j)) break;\n to++;\n }\n max = Math.max(max, to); \n }\n \t \t\t\t \t\t\n }\n System.out.println(max); \n\t}", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "String S = in.next();", "S", "in.next()", "in.next", "in", "int max = 0;", "max", "0", "for(int i =0; i< 3; i++) {\n int prev = S.charAt(i);\n if(prev=='R'){\n \t int to =1;\n for(int j =i+1; j<3; j++) {\n if(prev!=S.charAt(j)) break;\n to++;\n }\n max = Math.max(max, to); \n }\n \t \t\t\t \t\t\n }", "int i =0;", "int i =0;", "i", "0", "i< 3", "i", "3", "i++", "i++", "i", "{\n int prev = S.charAt(i);\n if(prev=='R'){\n \t int to =1;\n for(int j =i+1; j<3; j++) {\n if(prev!=S.charAt(j)) break;\n to++;\n }\n max = Math.max(max, to); \n }\n \t \t\t\t \t\t\n }", "{\n int prev = S.charAt(i);\n if(prev=='R'){\n \t int to =1;\n for(int j =i+1; j<3; j++) {\n if(prev!=S.charAt(j)) break;\n to++;\n }\n max = Math.max(max, to); \n }\n \t \t\t\t \t\t\n }", "int prev = S.charAt(i);", "prev", "S.charAt(i)", "S.charAt", "S", "i", "if(prev=='R'){\n \t int to =1;\n for(int j =i+1; j<3; j++) {\n if(prev!=S.charAt(j)) break;\n to++;\n }\n max = Math.max(max, to); \n }", "prev=='R'", "prev", "'R'", "{\n \t int to =1;\n for(int j =i+1; j<3; j++) {\n if(prev!=S.charAt(j)) break;\n to++;\n }\n max = Math.max(max, to); \n }", "int to =1;", "to", "1", "for(int j =i+1; j<3; j++) {\n if(prev!=S.charAt(j)) break;\n to++;\n }", "int j =i+1;", "int j =i+1;", "j", "i+1", "i", "1", "j<3", "j", "3", "j++", "j++", "j", "{\n if(prev!=S.charAt(j)) break;\n to++;\n }", "{\n if(prev!=S.charAt(j)) break;\n to++;\n }", "if(prev!=S.charAt(j)) break;", "prev!=S.charAt(j)", "prev", "S.charAt(j)", "S.charAt", "S", "j", "break;", "to++", "to", "max = Math.max(max, to)", "max", "Math.max(max, to)", "Math.max", "Math", "max", "to", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args", "public class Main {\n\tstatic int[][] numbers;\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner in = new Scanner(System.in);\n\t\tString S = in.next();\n int max = 0;\n for(int i =0; i< 3; i++) {\n int prev = S.charAt(i);\n if(prev=='R'){\n \t int to =1;\n for(int j =i+1; j<3; j++) {\n if(prev!=S.charAt(j)) break;\n to++;\n }\n max = Math.max(max, to); \n }\n \t \t\t\t \t\t\n }\n System.out.println(max); \n\t}\n\t\n\t\n}", "public class Main {\n\tstatic int[][] numbers;\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner in = new Scanner(System.in);\n\t\tString S = in.next();\n int max = 0;\n for(int i =0; i< 3; i++) {\n int prev = S.charAt(i);\n if(prev=='R'){\n \t int to =1;\n for(int j =i+1; j<3; j++) {\n if(prev!=S.charAt(j)) break;\n to++;\n }\n max = Math.max(max, to); \n }\n \t \t\t\t \t\t\n }\n System.out.println(max); \n\t}\n\t\n\t\n}", "Main" ]
import java.util.Scanner; import java.util.Stack; public class Main { static int[][] numbers; public static void main(String[] args) { // TODO Auto-generated method stub Scanner in = new Scanner(System.in); String S = in.next(); int max = 0; for(int i =0; i< 3; i++) { int prev = S.charAt(i); if(prev=='R'){ int to =1; for(int j =i+1; j<3; j++) { if(prev!=S.charAt(j)) break; to++; } max = Math.max(max, to); } } System.out.println(max); } }
[ 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, 4, 18, 13, 41, 13, 40, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 17, 30, 0, 13, 4, 18, 13, 13, 2, 13, 13, 30, 0, 13, 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, 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 ], [ 172, 29 ], [ 172, 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 ], [ 172, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 67, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 67, 79 ], [ 79, 80 ], [ 79, 81 ], [ 67, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 89, 91 ], [ 82, 92 ], [ 92, 93 ], [ 93, 94 ], [ 82, 95 ], [ 96, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 97, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 109 ], [ 106, 110 ], [ 110, 111 ], [ 110, 112 ], [ 97, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 67, 117 ], [ 117, 118 ], [ 118, 119 ], [ 117, 120 ], [ 65, 121 ], [ 121, 122 ], [ 65, 123 ], [ 123, 124 ], [ 65, 125 ], [ 125, 126 ], [ 172, 127 ], [ 127, 128 ], [ 127, 129 ], [ 129, 130 ], [ 127, 131 ], [ 131, 132 ], [ 127, 133 ], [ 133, 134 ], [ 133, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 135, 139 ], [ 139, 140 ], [ 139, 141 ], [ 133, 142 ], [ 142, 143 ], [ 127, 144 ], [ 144, 145 ], [ 144, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 149, 151 ], [ 148, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 147, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 160, 161 ], [ 161, 162 ], [ 157, 163 ], [ 163, 164 ], [ 164, 165 ], [ 164, 166 ], [ 146, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 0, 171 ], [ 171, 172 ], [ 171, 173 ] ]
[ "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 */\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 ARainySeason solver = new ARainySeason();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ARainySeason {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n char[] s = in.next().toCharArray();\n int j = -1;\n int answer = 0;\n for (int i = 0; i < s.length; i++) {\n if (s[i] == 'R') {\n answer = Math.max(answer, i - j);\n } else {\n j = i;\n }\n }\n\n out.println(answer);\n }\n\n }\n\n static class InputReader {\n public final 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 }\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 ARainySeason solver = new ARainySeason();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ARainySeason {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n char[] s = in.next().toCharArray();\n int j = -1;\n int answer = 0;\n for (int i = 0; i < s.length; i++) {\n if (s[i] == 'R') {\n answer = Math.max(answer, i - j);\n } else {\n j = i;\n }\n }\n\n out.println(answer);\n }\n\n }\n\n static class InputReader {\n public final 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 }\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 ARainySeason solver = new ARainySeason();\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 ARainySeason solver = new ARainySeason();\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)", "ARainySeason solver = new ARainySeason();", "solver", "new ARainySeason()", "solver.solve(1, in, out)", "solver.solve", "solver", "1", "in", "out", "out.close()", "out.close", "out", "String[] args", "args", "static class ARainySeason {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n char[] s = in.next().toCharArray();\n int j = -1;\n int answer = 0;\n for (int i = 0; i < s.length; i++) {\n if (s[i] == 'R') {\n answer = Math.max(answer, i - j);\n } else {\n j = i;\n }\n }\n\n out.println(answer);\n }\n\n }", "ARainySeason", "public void solve(int testNumber, InputReader in, PrintWriter out) {\n char[] s = in.next().toCharArray();\n int j = -1;\n int answer = 0;\n for (int i = 0; i < s.length; i++) {\n if (s[i] == 'R') {\n answer = Math.max(answer, i - j);\n } else {\n j = i;\n }\n }\n\n out.println(answer);\n }", "solve", "{\n char[] s = in.next().toCharArray();\n int j = -1;\n int answer = 0;\n for (int i = 0; i < s.length; i++) {\n if (s[i] == 'R') {\n answer = Math.max(answer, i - j);\n } else {\n j = i;\n }\n }\n\n out.println(answer);\n }", "char[] s = in.next().toCharArray();", "s", "in.next().toCharArray()", "in.next().toCharArray", "in.next()", "in.next", "in", "int j = -1;", "j", "-1", "1", "int answer = 0;", "answer", "0", "for (int i = 0; i < s.length; i++) {\n if (s[i] == 'R') {\n answer = Math.max(answer, i - j);\n } else {\n j = i;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < s.length", "i", "s.length", "s", "s.length", "i++", "i++", "i", "{\n if (s[i] == 'R') {\n answer = Math.max(answer, i - j);\n } else {\n j = i;\n }\n }", "{\n if (s[i] == 'R') {\n answer = Math.max(answer, i - j);\n } else {\n j = i;\n }\n }", "if (s[i] == 'R') {\n answer = Math.max(answer, i - j);\n } else {\n j = i;\n }", "s[i] == 'R'", "s[i]", "s", "i", "'R'", "{\n answer = Math.max(answer, i - j);\n }", "answer = Math.max(answer, i - j)", "answer", "Math.max(answer, i - j)", "Math.max", "Math", "answer", "i - j", "i", "j", "{\n j = i;\n }", "j = i", "j", "i", "out.println(answer)", "out.println", "out", "answer", "int testNumber", "testNumber", "InputReader in", "in", "PrintWriter out", "out", "static class InputReader {\n public final 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 }", "InputReader", "public final 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 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 ARainySeason solver = new ARainySeason();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ARainySeason {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n char[] s = in.next().toCharArray();\n int j = -1;\n int answer = 0;\n for (int i = 0; i < s.length; i++) {\n if (s[i] == 'R') {\n answer = Math.max(answer, i - j);\n } else {\n j = i;\n }\n }\n\n out.println(answer);\n }\n\n }\n\n static class InputReader {\n public final 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 }\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 ARainySeason solver = new ARainySeason();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ARainySeason {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n char[] s = in.next().toCharArray();\n int j = -1;\n int answer = 0;\n for (int i = 0; i < s.length; i++) {\n if (s[i] == 'R') {\n answer = Math.max(answer, i - j);\n } else {\n j = i;\n }\n }\n\n out.println(answer);\n }\n\n }\n\n static class InputReader {\n public final 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 }\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 */ 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); ARainySeason solver = new ARainySeason(); solver.solve(1, in, out); out.close(); } static class ARainySeason { public void solve(int testNumber, InputReader in, PrintWriter out) { char[] s = in.next().toCharArray(); int j = -1; int answer = 0; for (int i = 0; i < s.length; i++) { if (s[i] == 'R') { answer = Math.max(answer, i - j); } else { j = i; } } out.println(answer); } } static class InputReader { public final 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(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 17, 30, 40, 13, 14, 2, 2, 13, 17, 2, 18, 13, 17, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 67, 5 ], [ 67, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 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 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 35, 41 ], [ 41, 42 ], [ 42, 43 ], [ 8, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 44, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 8, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 6, 64 ], [ 64, 65 ], [ 0, 66 ], [ 66, 67 ], [ 66, 68 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\t//入力値取得\n\t\tchar[] S = scan.next().toCharArray();\n\n\n\t\t//演算\n\t\tint result = 0;\n\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tif (S[i] == 'R') {\n\t\t\t\tresult++;\n\t\t\t}\n\t\t}\n\n\t\tif (result == 2 && S[1] == 'S') {\n\t\t\tresult = 1;\n\t\t}\n\n\t\t//結果出力\n\t\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 scan = new Scanner(System.in);\n\n\t\t//入力値取得\n\t\tchar[] S = scan.next().toCharArray();\n\n\n\t\t//演算\n\t\tint result = 0;\n\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tif (S[i] == 'R') {\n\t\t\t\tresult++;\n\t\t\t}\n\t\t}\n\n\t\tif (result == 2 && S[1] == 'S') {\n\t\t\tresult = 1;\n\t\t}\n\n\t\t//結果出力\n\t\t\tSystem.out.println(result);\n\t}\n}", "Main", "public static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\t//入力値取得\n\t\tchar[] S = scan.next().toCharArray();\n\n\n\t\t//演算\n\t\tint result = 0;\n\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tif (S[i] == 'R') {\n\t\t\t\tresult++;\n\t\t\t}\n\t\t}\n\n\t\tif (result == 2 && S[1] == 'S') {\n\t\t\tresult = 1;\n\t\t}\n\n\t\t//結果出力\n\t\t\tSystem.out.println(result);\n\t}", "main", "{\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\t//入力値取得\n\t\tchar[] S = scan.next().toCharArray();\n\n\n\t\t//演算\n\t\tint result = 0;\n\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tif (S[i] == 'R') {\n\t\t\t\tresult++;\n\t\t\t}\n\t\t}\n\n\t\tif (result == 2 && S[1] == 'S') {\n\t\t\tresult = 1;\n\t\t}\n\n\t\t//結果出力\n\t\t\tSystem.out.println(result);\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "char[] S = scan.next().toCharArray();", "S", "scan.next().toCharArray()", "scan.next().toCharArray", "scan.next()", "scan.next", "scan", "int result = 0;", "result", "0", "for (int i = 0; i < 3; i++) {\n\t\t\tif (S[i] == 'R') {\n\t\t\t\tresult++;\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < 3", "i", "3", "i++", "i++", "i", "{\n\t\t\tif (S[i] == 'R') {\n\t\t\t\tresult++;\n\t\t\t}\n\t\t}", "{\n\t\t\tif (S[i] == 'R') {\n\t\t\t\tresult++;\n\t\t\t}\n\t\t}", "if (S[i] == 'R') {\n\t\t\t\tresult++;\n\t\t\t}", "S[i] == 'R'", "S[i]", "S", "i", "'R'", "{\n\t\t\t\tresult++;\n\t\t\t}", "result++", "result", "if (result == 2 && S[1] == 'S') {\n\t\t\tresult = 1;\n\t\t}", "result == 2 && S[1] == 'S'", "result == 2", "result", "2", "S[1] == 'S'", "S[1]", "S", "1", "'S'", "{\n\t\t\tresult = 1;\n\t\t}", "result = 1", "result", "1", "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 scan = new Scanner(System.in);\n\n\t\t//入力値取得\n\t\tchar[] S = scan.next().toCharArray();\n\n\n\t\t//演算\n\t\tint result = 0;\n\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tif (S[i] == 'R') {\n\t\t\t\tresult++;\n\t\t\t}\n\t\t}\n\n\t\tif (result == 2 && S[1] == 'S') {\n\t\t\tresult = 1;\n\t\t}\n\n\t\t//結果出力\n\t\t\tSystem.out.println(result);\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\t//入力値取得\n\t\tchar[] S = scan.next().toCharArray();\n\n\n\t\t//演算\n\t\tint result = 0;\n\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tif (S[i] == 'R') {\n\t\t\t\tresult++;\n\t\t\t}\n\t\t}\n\n\t\tif (result == 2 && S[1] == 'S') {\n\t\t\tresult = 1;\n\t\t}\n\n\t\t//結果出力\n\t\t\tSystem.out.println(result);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); //入力値取得 char[] S = scan.next().toCharArray(); //演算 int result = 0; for (int i = 0; i < 3; i++) { if (S[i] == 'R') { result++; } } if (result == 2 && S[1] == 'S') { result = 1; } //結果出力 System.out.println(result); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 17, 30, 40, 13, 30, 14, 2, 13, 13, 30, 0, 13, 13, 0, 13, 17, 14, 2, 13, 13, 30, 4, 18, 18, 13, 13, 13, 30, 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 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 90, 14 ], [ 90, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 17, 26 ], [ 26, 27 ], [ 26, 28 ], [ 17, 29 ], [ 29, 30 ], [ 29, 31 ], [ 17, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 32, 42 ], [ 42, 43 ], [ 43, 44 ], [ 32, 45 ], [ 46, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 48, 53 ], [ 47, 54 ], [ 54, 55 ], [ 55, 56 ], [ 47, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 66, 67 ], [ 66, 68 ], [ 17, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 69, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 15, 87 ], [ 87, 88 ], [ 0, 89 ], [ 89, 90 ], [ 89, 91 ] ]
[ "import java.util.Arrays;\nimport java.util.HashSet;\nimport java.util.Scanner;\nimport java.util.Vector;\n\npublic class Main {\n\n\tpublic static void main(String args[]) {\n\t\tScanner in = new Scanner(System.in);\n\t\tString string = in.next();\n\t\tint max = 0;\n\t\tint submax = 0;\n\t\tfor (int i = 0; i < string.length(); i++) {\n\t\t\tif (string.charAt(i)=='R') {\n\t\t\t\tsubmax++;\n\t\t\t}else {\n\t\t\t\tif (max<submax) {\n\t\t\t\t\tmax = submax;\n\t\t\t\t\tsubmax = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (max<submax) {\n\t\t\tSystem.out.println(submax);\n\t\t}else {\n\t\t\tSystem.out.println(max);\n\t\t}\n\t\t\n\t}\n\n}", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.HashSet;", "HashSet", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.Vector;", "Vector", "java.util", "public class Main {\n\n\tpublic static void main(String args[]) {\n\t\tScanner in = new Scanner(System.in);\n\t\tString string = in.next();\n\t\tint max = 0;\n\t\tint submax = 0;\n\t\tfor (int i = 0; i < string.length(); i++) {\n\t\t\tif (string.charAt(i)=='R') {\n\t\t\t\tsubmax++;\n\t\t\t}else {\n\t\t\t\tif (max<submax) {\n\t\t\t\t\tmax = submax;\n\t\t\t\t\tsubmax = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (max<submax) {\n\t\t\tSystem.out.println(submax);\n\t\t}else {\n\t\t\tSystem.out.println(max);\n\t\t}\n\t\t\n\t}\n\n}", "Main", "public static void main(String args[]) {\n\t\tScanner in = new Scanner(System.in);\n\t\tString string = in.next();\n\t\tint max = 0;\n\t\tint submax = 0;\n\t\tfor (int i = 0; i < string.length(); i++) {\n\t\t\tif (string.charAt(i)=='R') {\n\t\t\t\tsubmax++;\n\t\t\t}else {\n\t\t\t\tif (max<submax) {\n\t\t\t\t\tmax = submax;\n\t\t\t\t\tsubmax = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (max<submax) {\n\t\t\tSystem.out.println(submax);\n\t\t}else {\n\t\t\tSystem.out.println(max);\n\t\t}\n\t\t\n\t}", "main", "{\n\t\tScanner in = new Scanner(System.in);\n\t\tString string = in.next();\n\t\tint max = 0;\n\t\tint submax = 0;\n\t\tfor (int i = 0; i < string.length(); i++) {\n\t\t\tif (string.charAt(i)=='R') {\n\t\t\t\tsubmax++;\n\t\t\t}else {\n\t\t\t\tif (max<submax) {\n\t\t\t\t\tmax = submax;\n\t\t\t\t\tsubmax = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (max<submax) {\n\t\t\tSystem.out.println(submax);\n\t\t}else {\n\t\t\tSystem.out.println(max);\n\t\t}\n\t\t\n\t}", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "String string = in.next();", "string", "in.next()", "in.next", "in", "int max = 0;", "max", "0", "int submax = 0;", "submax", "0", "for (int i = 0; i < string.length(); i++) {\n\t\t\tif (string.charAt(i)=='R') {\n\t\t\t\tsubmax++;\n\t\t\t}else {\n\t\t\t\tif (max<submax) {\n\t\t\t\t\tmax = submax;\n\t\t\t\t\tsubmax = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < string.length()", "i", "string.length()", "string.length", "string", "i++", "i++", "i", "{\n\t\t\tif (string.charAt(i)=='R') {\n\t\t\t\tsubmax++;\n\t\t\t}else {\n\t\t\t\tif (max<submax) {\n\t\t\t\t\tmax = submax;\n\t\t\t\t\tsubmax = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "{\n\t\t\tif (string.charAt(i)=='R') {\n\t\t\t\tsubmax++;\n\t\t\t}else {\n\t\t\t\tif (max<submax) {\n\t\t\t\t\tmax = submax;\n\t\t\t\t\tsubmax = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "if (string.charAt(i)=='R') {\n\t\t\t\tsubmax++;\n\t\t\t}else {\n\t\t\t\tif (max<submax) {\n\t\t\t\t\tmax = submax;\n\t\t\t\t\tsubmax = 0;\n\t\t\t\t}\n\t\t\t}", "string.charAt(i)=='R'", "string.charAt(i)", "string.charAt", "string", "i", "'R'", "{\n\t\t\t\tsubmax++;\n\t\t\t}", "submax++", "submax", "{\n\t\t\t\tif (max<submax) {\n\t\t\t\t\tmax = submax;\n\t\t\t\t\tsubmax = 0;\n\t\t\t\t}\n\t\t\t}", "if (max<submax) {\n\t\t\t\t\tmax = submax;\n\t\t\t\t\tsubmax = 0;\n\t\t\t\t}", "max<submax", "max", "submax", "{\n\t\t\t\t\tmax = submax;\n\t\t\t\t\tsubmax = 0;\n\t\t\t\t}", "max = submax", "max", "submax", "submax = 0", "submax", "0", "if (max<submax) {\n\t\t\tSystem.out.println(submax);\n\t\t}else {\n\t\t\tSystem.out.println(max);\n\t\t}", "max<submax", "max", "submax", "{\n\t\t\tSystem.out.println(submax);\n\t\t}", "System.out.println(submax)", "System.out.println", "System.out", "System", "System.out", "submax", "{\n\t\t\tSystem.out.println(max);\n\t\t}", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String args[]", "args", "public class Main {\n\n\tpublic static void main(String args[]) {\n\t\tScanner in = new Scanner(System.in);\n\t\tString string = in.next();\n\t\tint max = 0;\n\t\tint submax = 0;\n\t\tfor (int i = 0; i < string.length(); i++) {\n\t\t\tif (string.charAt(i)=='R') {\n\t\t\t\tsubmax++;\n\t\t\t}else {\n\t\t\t\tif (max<submax) {\n\t\t\t\t\tmax = submax;\n\t\t\t\t\tsubmax = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (max<submax) {\n\t\t\tSystem.out.println(submax);\n\t\t}else {\n\t\t\tSystem.out.println(max);\n\t\t}\n\t\t\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String args[]) {\n\t\tScanner in = new Scanner(System.in);\n\t\tString string = in.next();\n\t\tint max = 0;\n\t\tint submax = 0;\n\t\tfor (int i = 0; i < string.length(); i++) {\n\t\t\tif (string.charAt(i)=='R') {\n\t\t\t\tsubmax++;\n\t\t\t}else {\n\t\t\t\tif (max<submax) {\n\t\t\t\t\tmax = submax;\n\t\t\t\t\tsubmax = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (max<submax) {\n\t\t\tSystem.out.println(submax);\n\t\t}else {\n\t\t\tSystem.out.println(max);\n\t\t}\n\t\t\n\t}\n\n}", "Main" ]
import java.util.Arrays; import java.util.HashSet; import java.util.Scanner; import java.util.Vector; public class Main { public static void main(String args[]) { Scanner in = new Scanner(System.in); String string = in.next(); int max = 0; int submax = 0; for (int i = 0; i < string.length(); i++) { if (string.charAt(i)=='R') { submax++; }else { if (max<submax) { max = submax; submax = 0; } } } if (max<submax) { System.out.println(submax); }else { System.out.println(max); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 14, 4, 18, 13, 17, 30, 0, 13, 17, 14, 2, 4, 18, 13, 17, 4, 18, 13, 17, 30, 0, 13, 17, 14, 4, 18, 13, 17, 30, 0, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 65, 5 ], [ 65, 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 ], [ 21, 24 ], [ 20, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 20, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 30, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 29, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 29, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 43, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 43, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 8, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 6, 62 ], [ 62, 63 ], [ 0, 64 ], [ 64, 65 ], [ 64, 66 ] ]
[ "import java.util.*;\npublic class Main {\n\n\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tint k=0;\n\t\tif(s.equals(\"RRR\")) {\n\t\t\tk=3;\n\t\t}else if(s.equals(\"RRS\")||s.equals(\"SRR\")) {\n\t\t\tk=2;\n\t\t}else if(s.equals(\"SSS\")) {\n\t\t\tk=0;\n\t\t}else {\n\t\t\tk=1;\n\t\t}\n\t\tSystem.out.println(k);\n\n\t}\n\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\n\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tint k=0;\n\t\tif(s.equals(\"RRR\")) {\n\t\t\tk=3;\n\t\t}else if(s.equals(\"RRS\")||s.equals(\"SRR\")) {\n\t\t\tk=2;\n\t\t}else if(s.equals(\"SSS\")) {\n\t\t\tk=0;\n\t\t}else {\n\t\t\tk=1;\n\t\t}\n\t\tSystem.out.println(k);\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tint k=0;\n\t\tif(s.equals(\"RRR\")) {\n\t\t\tk=3;\n\t\t}else if(s.equals(\"RRS\")||s.equals(\"SRR\")) {\n\t\t\tk=2;\n\t\t}else if(s.equals(\"SSS\")) {\n\t\t\tk=0;\n\t\t}else {\n\t\t\tk=1;\n\t\t}\n\t\tSystem.out.println(k);\n\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tint k=0;\n\t\tif(s.equals(\"RRR\")) {\n\t\t\tk=3;\n\t\t}else if(s.equals(\"RRS\")||s.equals(\"SRR\")) {\n\t\t\tk=2;\n\t\t}else if(s.equals(\"SSS\")) {\n\t\t\tk=0;\n\t\t}else {\n\t\t\tk=1;\n\t\t}\n\t\tSystem.out.println(k);\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "int k=0;", "k", "0", "if(s.equals(\"RRR\")) {\n\t\t\tk=3;\n\t\t}else if(s.equals(\"RRS\")||s.equals(\"SRR\")) {\n\t\t\tk=2;\n\t\t}else if(s.equals(\"SSS\")) {\n\t\t\tk=0;\n\t\t}else {\n\t\t\tk=1;\n\t\t}", "s.equals(\"RRR\")", "s.equals", "s", "\"RRR\"", "{\n\t\t\tk=3;\n\t\t}", "k=3", "k", "3", "if(s.equals(\"RRS\")||s.equals(\"SRR\")) {\n\t\t\tk=2;\n\t\t}else if(s.equals(\"SSS\")) {\n\t\t\tk=0;\n\t\t}else {\n\t\t\tk=1;\n\t\t}", "s.equals(\"RRS\")||s.equals(\"SRR\")", "s.equals(\"RRS\")", "s.equals", "s", "\"RRS\"", "s.equals(\"SRR\")", "s.equals", "s", "\"SRR\"", "{\n\t\t\tk=2;\n\t\t}", "k=2", "k", "2", "if(s.equals(\"SSS\")) {\n\t\t\tk=0;\n\t\t}else {\n\t\t\tk=1;\n\t\t}", "s.equals(\"SSS\")", "s.equals", "s", "\"SSS\"", "{\n\t\t\tk=0;\n\t\t}", "k=0", "k", "0", "{\n\t\t\tk=1;\n\t\t}", "k=1", "k", "1", "System.out.println(k)", "System.out.println", "System.out", "System", "System.out", "k", "String[] args", "args", "public class Main {\n\n\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tint k=0;\n\t\tif(s.equals(\"RRR\")) {\n\t\t\tk=3;\n\t\t}else if(s.equals(\"RRS\")||s.equals(\"SRR\")) {\n\t\t\tk=2;\n\t\t}else if(s.equals(\"SSS\")) {\n\t\t\tk=0;\n\t\t}else {\n\t\t\tk=1;\n\t\t}\n\t\tSystem.out.println(k);\n\n\t}\n\n}", "public class Main {\n\n\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tint k=0;\n\t\tif(s.equals(\"RRR\")) {\n\t\t\tk=3;\n\t\t}else if(s.equals(\"RRS\")||s.equals(\"SRR\")) {\n\t\t\tk=2;\n\t\t}else if(s.equals(\"SSS\")) {\n\t\t\tk=0;\n\t\t}else {\n\t\t\tk=1;\n\t\t}\n\t\tSystem.out.println(k);\n\n\t}\n\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); int k=0; if(s.equals("RRR")) { k=3; }else if(s.equals("RRS")||s.equals("SRR")) { k=2; }else if(s.equals("SSS")) { k=0; }else { k=1; } System.out.println(k); } }
[ 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, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 17, 40, 13, 30, 0, 13, 4, 18, 13, 13, 13, 0, 13, 17, 0, 13, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 74, 5 ], [ 74, 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 ], [ 30, 31 ], [ 31, 32 ], [ 23, 33 ], [ 33, 34 ], [ 34, 35 ], [ 23, 36 ], [ 37, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 39, 44 ], [ 38, 45 ], [ 45, 46 ], [ 38, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 50, 54 ], [ 47, 55 ], [ 55, 56 ], [ 55, 57 ], [ 8, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 60, 64 ], [ 8, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 6, 71 ], [ 71, 72 ], [ 0, 73 ], [ 73, 74 ], [ 73, 75 ] ]
[ "import java.util.*;\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tString s = scan.next();\n\t\tint count = 0;\n\t\tint ans = 0;\n\t\tfor(int i = 0;i < s.length(); ++i){\n\t\t\tif(s.charAt(i) == 'R')count++;\n\t\t\telse{\n\t\t\t\tans = Math.max(ans, count);\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t}\n\t\tans = Math.max(ans,count);\n\t\tSystem.out.print(ans);\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tString s = scan.next();\n\t\tint count = 0;\n\t\tint ans = 0;\n\t\tfor(int i = 0;i < s.length(); ++i){\n\t\t\tif(s.charAt(i) == 'R')count++;\n\t\t\telse{\n\t\t\t\tans = Math.max(ans, count);\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t}\n\t\tans = Math.max(ans,count);\n\t\tSystem.out.print(ans);\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tString s = scan.next();\n\t\tint count = 0;\n\t\tint ans = 0;\n\t\tfor(int i = 0;i < s.length(); ++i){\n\t\t\tif(s.charAt(i) == 'R')count++;\n\t\t\telse{\n\t\t\t\tans = Math.max(ans, count);\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t}\n\t\tans = Math.max(ans,count);\n\t\tSystem.out.print(ans);\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tString s = scan.next();\n\t\tint count = 0;\n\t\tint ans = 0;\n\t\tfor(int i = 0;i < s.length(); ++i){\n\t\t\tif(s.charAt(i) == 'R')count++;\n\t\t\telse{\n\t\t\t\tans = Math.max(ans, count);\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t}\n\t\tans = Math.max(ans,count);\n\t\tSystem.out.print(ans);\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String s = scan.next();", "s", "scan.next()", "scan.next", "scan", "int count = 0;", "count", "0", "int ans = 0;", "ans", "0", "for(int i = 0;i < s.length(); ++i){\n\t\t\tif(s.charAt(i) == 'R')count++;\n\t\t\telse{\n\t\t\t\tans = Math.max(ans, count);\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < s.length()", "i", "s.length()", "s.length", "s", "++i", "++i", "i", "{\n\t\t\tif(s.charAt(i) == 'R')count++;\n\t\t\telse{\n\t\t\t\tans = Math.max(ans, count);\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t}", "{\n\t\t\tif(s.charAt(i) == 'R')count++;\n\t\t\telse{\n\t\t\t\tans = Math.max(ans, count);\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t}", "if(s.charAt(i) == 'R')count++;\n\t\t\telse{\n\t\t\t\tans = Math.max(ans, count);\n\t\t\t\tcount = 0;\n\t\t\t}", "s.charAt(i) == 'R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "count++", "count", "{\n\t\t\t\tans = Math.max(ans, count);\n\t\t\t\tcount = 0;\n\t\t\t}", "ans = Math.max(ans, count)", "ans", "Math.max(ans, count)", "Math.max", "Math", "ans", "count", "count = 0", "count", "0", "ans = Math.max(ans,count)", "ans", "Math.max(ans,count)", "Math.max", "Math", "ans", "count", "System.out.print(ans)", "System.out.print", "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\tString s = scan.next();\n\t\tint count = 0;\n\t\tint ans = 0;\n\t\tfor(int i = 0;i < s.length(); ++i){\n\t\t\tif(s.charAt(i) == 'R')count++;\n\t\t\telse{\n\t\t\t\tans = Math.max(ans, count);\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t}\n\t\tans = Math.max(ans,count);\n\t\tSystem.out.print(ans);\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tString s = scan.next();\n\t\tint count = 0;\n\t\tint ans = 0;\n\t\tfor(int i = 0;i < s.length(); ++i){\n\t\t\tif(s.charAt(i) == 'R')count++;\n\t\t\telse{\n\t\t\t\tans = Math.max(ans, count);\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t}\n\t\tans = Math.max(ans,count);\n\t\tSystem.out.print(ans);\n\t}\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String s = scan.next(); int count = 0; int ans = 0; for(int i = 0;i < s.length(); ++i){ if(s.charAt(i) == 'R')count++; else{ ans = Math.max(ans, count); count = 0; } } ans = Math.max(ans,count); System.out.print(ans); } }
[ 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, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 17, 30, 40, 13, 30, 0, 13, 4, 18, 13, 13, 13, 0, 13, 17, 0, 13, 4, 18, 13, 13, 13, 4, 18, 13, 13, 4, 18, 13, 23, 13, 6, 13, 41, 13, 41, 13, 20, 17, 41, 13, 17, 41, 13, 17, 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, 40, 2, 2, 13, 17, 2, 13, 17, 23, 13, 12, 13, 30, 29, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 40, 17, 23, 13, 12, 13, 30, 41, 13, 42, 2, 2, 0, 13, 4, 13, 40, 17, 4, 13, 13, 29, 13, 12, 13, 30, 41, 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, 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, 17, 41, 13, 41, 13, 17, 42, 2, 2, 0, 13, 4, 13, 40, 17, 40, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 0, 13, 4, 13, 42, 17, 30, 14, 2, 2, 13, 17, 2, 13, 17, 30, 0, 13, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 30, 29, 8, 13, 40, 13, 13, 0, 13, 4, 13, 12, 13, 30, 41, 13, 17, 41, 13, 41, 13, 17, 42, 2, 2, 0, 13, 4, 13, 40, 17, 40, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 0, 13, 4, 13, 42, 17, 30, 14, 2, 2, 13, 17, 2, 13, 17, 30, 0, 13, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 30, 29, 8, 13, 40, 13, 13, 0, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 20, 13, 41, 13, 4, 13, 41, 13, 17, 42, 2, 2, 13, 13, 40, 4, 13, 13, 30, 0, 18, 13, 40, 13, 13, 0, 13, 4, 13, 29, 8, 2, 13, 13, 13, 4, 18, 13, 13, 13, 23, 13, 12, 13, 30, 29, 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 ], [ 481, 11 ], [ 481, 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 ], [ 26, 28 ], [ 14, 29 ], [ 29, 30 ], [ 29, 31 ], [ 14, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 32, 42 ], [ 42, 43 ], [ 43, 44 ], [ 32, 45 ], [ 46, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 48, 53 ], [ 47, 54 ], [ 54, 55 ], [ 55, 56 ], [ 47, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 60, 64 ], [ 57, 65 ], [ 65, 66 ], [ 65, 67 ], [ 14, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 70, 74 ], [ 14, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 14, 79 ], [ 79, 80 ], [ 80, 81 ], [ 12, 82 ], [ 82, 83 ], [ 481, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 84, 88 ], [ 88, 89 ], [ 88, 90 ], [ 84, 92 ], [ 92, 93 ], [ 92, 94 ], [ 84, 95 ], [ 95, 96 ], [ 95, 97 ], [ 84, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 98, 106 ], [ 106, 107 ], [ 84, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 111, 116 ], [ 116, 117 ], [ 110, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 118, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 122, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 129, 130 ], [ 130, 131 ], [ 126, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 135, 136 ], [ 136, 137 ], [ 135, 138 ], [ 122, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 139, 143 ], [ 143, 144 ], [ 144, 145 ], [ 110, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 149, 150 ], [ 84, 151 ], [ 151, 152 ], [ 151, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 156, 160 ], [ 160, 161 ], [ 160, 162 ], [ 151, 163 ], [ 163, 164 ], [ 84, 165 ], [ 165, 166 ], [ 165, 167 ], [ 167, 168 ], [ 168, 169 ], [ 170, 170 ], [ 170, 171 ], [ 171, 172 ], [ 171, 173 ], [ 170, 174 ], [ 174, 175 ], [ 174, 176 ], [ 170, 177 ], [ 177, 178 ], [ 177, 179 ], [ 179, 180 ], [ 165, 181 ], [ 181, 182 ], [ 84, 183 ], [ 183, 184 ], [ 183, 185 ], [ 185, 186 ], [ 186, 187 ], [ 185, 188 ], [ 188, 189 ], [ 189, 190 ], [ 190, 191 ], [ 191, 192 ], [ 191, 193 ], [ 193, 194 ], [ 190, 195 ], [ 195, 196 ], [ 189, 197 ], [ 197, 198 ], [ 197, 199 ], [ 185, 200 ], [ 200, 201 ], [ 84, 202 ], [ 202, 203 ], [ 202, 204 ], [ 204, 205 ], [ 205, 206 ], [ 205, 207 ], [ 207, 208 ], [ 204, 209 ], [ 209, 210 ], [ 209, 211 ], [ 204, 212 ], [ 212, 213 ], [ 213, 214 ], [ 214, 215 ], [ 214, 216 ], [ 212, 217 ], [ 217, 218 ], [ 218, 219 ], [ 219, 220 ], [ 218, 221 ], [ 217, 222 ], [ 222, 223 ], [ 222, 224 ], [ 224, 225 ], [ 204, 226 ], [ 226, 227 ], [ 227, 228 ], [ 228, 229 ], [ 84, 230 ], [ 230, 231 ], [ 230, 232 ], [ 232, 233 ], [ 233, 234 ], [ 233, 235 ], [ 235, 236 ], [ 232, 237 ], [ 237, 238 ], [ 237, 239 ], [ 232, 240 ], [ 240, 241 ], [ 241, 242 ], [ 242, 243 ], [ 242, 244 ], [ 240, 245 ], [ 245, 246 ], [ 246, 247 ], [ 247, 248 ], [ 246, 249 ], [ 245, 250 ], [ 250, 251 ], [ 250, 252 ], [ 252, 253 ], [ 232, 254 ], [ 254, 255 ], [ 255, 256 ], [ 256, 257 ], [ 84, 258 ], [ 258, 259 ], [ 258, 260 ], [ 260, 261 ], [ 261, 262 ], [ 261, 263 ], [ 260, 264 ], [ 264, 265 ], [ 260, 266 ], [ 266, 267 ], [ 266, 268 ], [ 260, 269 ], [ 269, 270 ], [ 270, 271 ], [ 271, 272 ], [ 272, 273 ], [ 272, 274 ], [ 274, 275 ], [ 271, 276 ], [ 276, 277 ], [ 270, 278 ], [ 278, 279 ], [ 279, 280 ], [ 280, 281 ], [ 281, 282 ], [ 281, 283 ], [ 280, 284 ], [ 284, 285 ], [ 284, 286 ], [ 279, 287 ], [ 287, 288 ], [ 287, 289 ], [ 260, 290 ], [ 290, 291 ], [ 291, 292 ], [ 291, 293 ], [ 290, 294 ], [ 294, 295 ], [ 295, 296 ], [ 295, 297 ], [ 294, 298 ], [ 298, 299 ], [ 298, 300 ], [ 300, 301 ], [ 260, 302 ], [ 302, 303 ], [ 302, 304 ], [ 304, 305 ], [ 305, 306 ], [ 306, 307 ], [ 307, 308 ], [ 307, 309 ], [ 306, 310 ], [ 310, 311 ], [ 310, 312 ], [ 305, 313 ], [ 313, 314 ], [ 314, 315 ], [ 314, 316 ], [ 317, 317 ], [ 317, 318 ], [ 318, 319 ], [ 318, 320 ], [ 317, 321 ], [ 321, 322 ], [ 321, 323 ], [ 317, 324 ], [ 324, 325 ], [ 324, 326 ], [ 305, 327 ], [ 327, 328 ], [ 328, 329 ], [ 329, 330 ], [ 329, 331 ], [ 331, 332 ], [ 329, 333 ], [ 304, 334 ], [ 334, 335 ], [ 334, 336 ], [ 336, 337 ], [ 84, 338 ], [ 338, 339 ], [ 338, 340 ], [ 340, 341 ], [ 341, 342 ], [ 341, 343 ], [ 340, 344 ], [ 344, 345 ], [ 340, 346 ], [ 346, 347 ], [ 346, 348 ], [ 340, 349 ], [ 349, 350 ], [ 350, 351 ], [ 351, 352 ], [ 352, 353 ], [ 352, 354 ], [ 354, 355 ], [ 351, 356 ], [ 356, 357 ], [ 350, 358 ], [ 358, 359 ], [ 359, 360 ], [ 360, 361 ], [ 361, 362 ], [ 361, 363 ], [ 360, 364 ], [ 364, 365 ], [ 364, 366 ], [ 359, 367 ], [ 367, 368 ], [ 367, 369 ], [ 340, 370 ], [ 370, 371 ], [ 371, 372 ], [ 371, 373 ], [ 370, 374 ], [ 374, 375 ], [ 375, 376 ], [ 375, 377 ], [ 374, 378 ], [ 378, 379 ], [ 378, 380 ], [ 380, 381 ], [ 340, 382 ], [ 382, 383 ], [ 382, 384 ], [ 384, 385 ], [ 385, 386 ], [ 386, 387 ], [ 387, 388 ], [ 387, 389 ], [ 386, 390 ], [ 390, 391 ], [ 390, 392 ], [ 385, 393 ], [ 393, 394 ], [ 394, 395 ], [ 394, 396 ], [ 397, 397 ], [ 397, 398 ], [ 398, 399 ], [ 398, 400 ], [ 397, 401 ], [ 401, 402 ], [ 401, 403 ], [ 397, 404 ], [ 404, 405 ], [ 404, 406 ], [ 385, 407 ], [ 407, 408 ], [ 408, 409 ], [ 409, 410 ], [ 409, 411 ], [ 411, 412 ], [ 409, 413 ], [ 384, 414 ], [ 414, 415 ], [ 414, 416 ], [ 416, 417 ], [ 84, 418 ], [ 418, 419 ], [ 418, 420 ], [ 420, 421 ], [ 421, 422 ], [ 422, 423 ], [ 423, 424 ], [ 422, 425 ], [ 425, 426 ], [ 84, 427 ], [ 427, 428 ], [ 427, 429 ], [ 429, 430 ], [ 430, 431 ], [ 430, 432 ], [ 429, 434 ], [ 434, 435 ], [ 434, 436 ], [ 436, 437 ], [ 429, 438 ], [ 438, 439 ], [ 438, 440 ], [ 429, 441 ], [ 441, 442 ], [ 442, 443 ], [ 443, 444 ], [ 443, 445 ], [ 442, 446 ], [ 446, 447 ], [ 447, 448 ], [ 447, 449 ], [ 441, 450 ], [ 450, 451 ], [ 451, 452 ], [ 452, 453 ], [ 452, 454 ], [ 454, 455 ], [ 451, 456 ], [ 450, 457 ], [ 457, 458 ], [ 457, 459 ], [ 459, 460 ], [ 429, 461 ], [ 461, 462 ], [ 462, 463 ], [ 463, 464 ], [ 463, 465 ], [ 462, 466 ], [ 462, 467 ], [ 467, 468 ], [ 468, 469 ], [ 467, 470 ], [ 467, 471 ], [ 427, 472 ], [ 472, 473 ], [ 84, 474 ], [ 474, 475 ], [ 474, 476 ], [ 476, 477 ], [ 477, 478 ], [ 478, 479 ], [ 0, 480 ], [ 480, 481 ], [ 480, 482 ] ]
[ "\n\nimport java.io.*;\nimport java.util.*;\n\nimport static java.lang.Integer.*;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n FastReader in = new FastReader(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n String s = in.next();\n int res = 0;\n int cnt = 0;\n for (int i = 0; i < s.length(); i++) {\n if (s.charAt(i) == 'R') {\n cnt++;\n } else {\n res = Math.max(cnt,res);\n cnt = 0;\n }\n }\n res = Math.max(res,cnt);\n pw.println(res);\n pw.close();\n }\n\n static class FastReader {\n InputStream is;\n private byte[] inbuf = new byte[1024];\n private int lenbuf = 0, ptrbuf = 0;\n\n public FastReader(InputStream is) {\n this.is = is;\n }\n\n public int readByte() {\n if (lenbuf == -1) throw new InputMismatchException();\n if (ptrbuf >= lenbuf) {\n ptrbuf = 0;\n try {\n lenbuf = is.read(inbuf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (lenbuf <= 0) return -1;\n }\n return inbuf[ptrbuf++];\n }\n\n public boolean isSpaceChar(int c) {\n return !(c >= 33 && c <= 126);\n }\n\n private boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n public int skip() {\n int b;\n while ((b = readByte()) != -1 && isSpaceChar(b)) ;\n return b;\n }\n\n public String next() {\n int b = skip();\n StringBuilder sb = new StringBuilder();\n while (!(isSpaceChar(b))) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n\n\n public String nextLine() {\n int c = skip();\n StringBuilder sb = new StringBuilder();\n while (!isEndOfLine(c)) {\n sb.appendCodePoint(c);\n c = readByte();\n }\n return sb.toString();\n }\n\n public int nextInt() {\n int num = 0, b;\n boolean minus = false;\n while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ;\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n while (true) {\n if (b >= '0' && b <= '9') {\n num = (num << 3) + (num << 1) + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }\n }\n\n public long nextLong() {\n long num = 0;\n int b;\n boolean minus = false;\n while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ;\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n\n while (true) {\n if (b >= '0' && b <= '9') {\n num = (num << 3) + (num << 1) + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public char[] next(int n) {\n char[] buf = new char[n];\n int b = skip(), p = 0;\n while (p < n && !(isSpaceChar(b))) {\n buf[p++] = (char) b;\n b = readByte();\n }\n return n == p ? buf : Arrays.copyOf(buf, p);\n }\n\n public char readChar() {\n return (char) skip();\n }\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "import static java.lang.Integer.*;", "import static java.lang.Integer.*;", "import static java.lang.Integer.*;", "public class Main {\n public static void main(String[] args) throws IOException {\n FastReader in = new FastReader(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n String s = in.next();\n int res = 0;\n int cnt = 0;\n for (int i = 0; i < s.length(); i++) {\n if (s.charAt(i) == 'R') {\n cnt++;\n } else {\n res = Math.max(cnt,res);\n cnt = 0;\n }\n }\n res = Math.max(res,cnt);\n pw.println(res);\n pw.close();\n }\n\n static class FastReader {\n InputStream is;\n private byte[] inbuf = new byte[1024];\n private int lenbuf = 0, ptrbuf = 0;\n\n public FastReader(InputStream is) {\n this.is = is;\n }\n\n public int readByte() {\n if (lenbuf == -1) throw new InputMismatchException();\n if (ptrbuf >= lenbuf) {\n ptrbuf = 0;\n try {\n lenbuf = is.read(inbuf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (lenbuf <= 0) return -1;\n }\n return inbuf[ptrbuf++];\n }\n\n public boolean isSpaceChar(int c) {\n return !(c >= 33 && c <= 126);\n }\n\n private boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n public int skip() {\n int b;\n while ((b = readByte()) != -1 && isSpaceChar(b)) ;\n return b;\n }\n\n public String next() {\n int b = skip();\n StringBuilder sb = new StringBuilder();\n while (!(isSpaceChar(b))) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n\n\n public String nextLine() {\n int c = skip();\n StringBuilder sb = new StringBuilder();\n while (!isEndOfLine(c)) {\n sb.appendCodePoint(c);\n c = readByte();\n }\n return sb.toString();\n }\n\n public int nextInt() {\n int num = 0, b;\n boolean minus = false;\n while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ;\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n while (true) {\n if (b >= '0' && b <= '9') {\n num = (num << 3) + (num << 1) + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }\n }\n\n public long nextLong() {\n long num = 0;\n int b;\n boolean minus = false;\n while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ;\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n\n while (true) {\n if (b >= '0' && b <= '9') {\n num = (num << 3) + (num << 1) + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public char[] next(int n) {\n char[] buf = new char[n];\n int b = skip(), p = 0;\n while (p < n && !(isSpaceChar(b))) {\n buf[p++] = (char) b;\n b = readByte();\n }\n return n == p ? buf : Arrays.copyOf(buf, p);\n }\n\n public char readChar() {\n return (char) skip();\n }\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n FastReader in = new FastReader(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n String s = in.next();\n int res = 0;\n int cnt = 0;\n for (int i = 0; i < s.length(); i++) {\n if (s.charAt(i) == 'R') {\n cnt++;\n } else {\n res = Math.max(cnt,res);\n cnt = 0;\n }\n }\n res = Math.max(res,cnt);\n pw.println(res);\n pw.close();\n }", "main", "{\n FastReader in = new FastReader(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n String s = in.next();\n int res = 0;\n int cnt = 0;\n for (int i = 0; i < s.length(); i++) {\n if (s.charAt(i) == 'R') {\n cnt++;\n } else {\n res = Math.max(cnt,res);\n cnt = 0;\n }\n }\n res = Math.max(res,cnt);\n pw.println(res);\n pw.close();\n }", "FastReader in = new FastReader(System.in);", "in", "new FastReader(System.in)", "PrintWriter pw = new PrintWriter(System.out);", "pw", "new PrintWriter(System.out)", "String s = in.next();", "s", "in.next()", "in.next", "in", "int res = 0;", "res", "0", "int cnt = 0;", "cnt", "0", "for (int i = 0; i < s.length(); i++) {\n if (s.charAt(i) == 'R') {\n cnt++;\n } else {\n res = Math.max(cnt,res);\n cnt = 0;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < s.length()", "i", "s.length()", "s.length", "s", "i++", "i++", "i", "{\n if (s.charAt(i) == 'R') {\n cnt++;\n } else {\n res = Math.max(cnt,res);\n cnt = 0;\n }\n }", "{\n if (s.charAt(i) == 'R') {\n cnt++;\n } else {\n res = Math.max(cnt,res);\n cnt = 0;\n }\n }", "if (s.charAt(i) == 'R') {\n cnt++;\n } else {\n res = Math.max(cnt,res);\n cnt = 0;\n }", "s.charAt(i) == 'R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "{\n cnt++;\n }", "cnt++", "cnt", "{\n res = Math.max(cnt,res);\n cnt = 0;\n }", "res = Math.max(cnt,res)", "res", "Math.max(cnt,res)", "Math.max", "Math", "cnt", "res", "cnt = 0", "cnt", "0", "res = Math.max(res,cnt)", "res", "Math.max(res,cnt)", "Math.max", "Math", "res", "cnt", "pw.println(res)", "pw.println", "pw", "res", "pw.close()", "pw.close", "pw", "String[] args", "args", "static class FastReader {\n InputStream is;\n private byte[] inbuf = new byte[1024];\n private int lenbuf = 0, ptrbuf = 0;\n\n public FastReader(InputStream is) {\n this.is = is;\n }\n\n public int readByte() {\n if (lenbuf == -1) throw new InputMismatchException();\n if (ptrbuf >= lenbuf) {\n ptrbuf = 0;\n try {\n lenbuf = is.read(inbuf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (lenbuf <= 0) return -1;\n }\n return inbuf[ptrbuf++];\n }\n\n public boolean isSpaceChar(int c) {\n return !(c >= 33 && c <= 126);\n }\n\n private boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n public int skip() {\n int b;\n while ((b = readByte()) != -1 && isSpaceChar(b)) ;\n return b;\n }\n\n public String next() {\n int b = skip();\n StringBuilder sb = new StringBuilder();\n while (!(isSpaceChar(b))) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n\n\n public String nextLine() {\n int c = skip();\n StringBuilder sb = new StringBuilder();\n while (!isEndOfLine(c)) {\n sb.appendCodePoint(c);\n c = readByte();\n }\n return sb.toString();\n }\n\n public int nextInt() {\n int num = 0, b;\n boolean minus = false;\n while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ;\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n while (true) {\n if (b >= '0' && b <= '9') {\n num = (num << 3) + (num << 1) + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }\n }\n\n public long nextLong() {\n long num = 0;\n int b;\n boolean minus = false;\n while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ;\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n\n while (true) {\n if (b >= '0' && b <= '9') {\n num = (num << 3) + (num << 1) + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public char[] next(int n) {\n char[] buf = new char[n];\n int b = skip(), p = 0;\n while (p < n && !(isSpaceChar(b))) {\n buf[p++] = (char) b;\n b = readByte();\n }\n return n == p ? buf : Arrays.copyOf(buf, p);\n }\n\n public char readChar() {\n return (char) skip();\n }\n }", "FastReader", "InputStream is;", "is", "private byte[] inbuf = new byte[1024];", "inbuf", "new byte[1024]", "1024", "private int lenbuf = 0", "lenbuf", "0", "ptrbuf = 0;", "ptrbuf", "0", "public FastReader(InputStream is) {\n this.is = is;\n }", "FastReader", "{\n this.is = is;\n }", "this.is = is", "this.is", "this", "this.is", "is", "InputStream is", "is", "public int readByte() {\n if (lenbuf == -1) throw new InputMismatchException();\n if (ptrbuf >= lenbuf) {\n ptrbuf = 0;\n try {\n lenbuf = is.read(inbuf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (lenbuf <= 0) return -1;\n }\n return inbuf[ptrbuf++];\n }", "readByte", "{\n if (lenbuf == -1) throw new InputMismatchException();\n if (ptrbuf >= lenbuf) {\n ptrbuf = 0;\n try {\n lenbuf = is.read(inbuf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (lenbuf <= 0) return -1;\n }\n return inbuf[ptrbuf++];\n }", "if (lenbuf == -1) throw new InputMismatchException();", "lenbuf == -1", "lenbuf", "-1", "1", "throw new InputMismatchException();", "new InputMismatchException()", "if (ptrbuf >= lenbuf) {\n ptrbuf = 0;\n try {\n lenbuf = is.read(inbuf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (lenbuf <= 0) return -1;\n }", "ptrbuf >= lenbuf", "ptrbuf", "lenbuf", "{\n ptrbuf = 0;\n try {\n lenbuf = is.read(inbuf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (lenbuf <= 0) return -1;\n }", "ptrbuf = 0", "ptrbuf", "0", "try {\n lenbuf = is.read(inbuf);\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 lenbuf = is.read(inbuf);\n }", "lenbuf = is.read(inbuf)", "lenbuf", "is.read(inbuf)", "is.read", "is", "inbuf", "if (lenbuf <= 0) return -1;", "lenbuf <= 0", "lenbuf", "0", "return -1;", "-1", "1", "return inbuf[ptrbuf++];", "inbuf[ptrbuf++]", "inbuf", "ptrbuf++", "ptrbuf", "public boolean isSpaceChar(int c) {\n return !(c >= 33 && c <= 126);\n }", "isSpaceChar", "{\n return !(c >= 33 && c <= 126);\n }", "return !(c >= 33 && c <= 126);", "!(c >= 33 && c <= 126)", "(c >= 33 && c <= 126)", "c >= 33", "c", "33", "c <= 126", "c", "126", "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 int skip() {\n int b;\n while ((b = readByte()) != -1 && isSpaceChar(b)) ;\n return b;\n }", "skip", "{\n int b;\n while ((b = readByte()) != -1 && isSpaceChar(b)) ;\n return b;\n }", "int b;", "b", "while ((b = readByte()) != -1 && isSpaceChar(b)) ;", "(b = readByte()) != -1 && isSpaceChar(b)", "(b = readByte()) != -1", "(b = readByte())", "b", "readByte()", "readByte", "-1", "1", "isSpaceChar(b)", "isSpaceChar", "b", "return b;", "b", "public String next() {\n int b = skip();\n StringBuilder sb = new StringBuilder();\n while (!(isSpaceChar(b))) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }", "next", "{\n int b = skip();\n StringBuilder sb = new StringBuilder();\n while (!(isSpaceChar(b))) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }", "int b = skip();", "b", "skip()", "skip", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "while (!(isSpaceChar(b))) {\n sb.appendCodePoint(b);\n b = readByte();\n }", "!(isSpaceChar(b))", "(isSpaceChar(b))", "isSpaceChar", "b", "{\n sb.appendCodePoint(b);\n b = readByte();\n }", "sb.appendCodePoint(b)", "sb.appendCodePoint", "sb", "b", "b = readByte()", "b", "readByte()", "readByte", "return sb.toString();", "sb.toString()", "sb.toString", "sb", "public String nextLine() {\n int c = skip();\n StringBuilder sb = new StringBuilder();\n while (!isEndOfLine(c)) {\n sb.appendCodePoint(c);\n c = readByte();\n }\n return sb.toString();\n }", "nextLine", "{\n int c = skip();\n StringBuilder sb = new StringBuilder();\n while (!isEndOfLine(c)) {\n sb.appendCodePoint(c);\n c = readByte();\n }\n return sb.toString();\n }", "int c = skip();", "c", "skip()", "skip", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "while (!isEndOfLine(c)) {\n sb.appendCodePoint(c);\n c = readByte();\n }", "!isEndOfLine(c)", "isEndOfLine(c)", "isEndOfLine", "c", "{\n sb.appendCodePoint(c);\n c = readByte();\n }", "sb.appendCodePoint(c)", "sb.appendCodePoint", "sb", "c", "c = readByte()", "c", "readByte()", "readByte", "return sb.toString();", "sb.toString()", "sb.toString", "sb", "public int nextInt() {\n int num = 0, b;\n boolean minus = false;\n while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ;\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n while (true) {\n if (b >= '0' && b <= '9') {\n num = (num << 3) + (num << 1) + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }\n }", "nextInt", "{\n int num = 0, b;\n boolean minus = false;\n while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ;\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n while (true) {\n if (b >= '0' && b <= '9') {\n num = (num << 3) + (num << 1) + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }\n }", "int num = 0", "num", "0", "b;", "b", "boolean minus = false;", "minus", "false", "while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ;", "(b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')", "(b = readByte()) != -1", "(b = readByte())", "b", "readByte()", "readByte", "-1", "1", "!((b >= '0' && b <= '9') || b == '-')", "((b >= '0' && b <= '9') || b == '-')", "(b >= '0' && b <= '9')", "b >= '0'", "b", "'0'", "b <= '9'", "b", "'9'", "b == '-'", "b", "'-'", "if (b == '-') {\n minus = true;\n b = readByte();\n }", "b == '-'", "b", "'-'", "{\n minus = true;\n b = readByte();\n }", "minus = true", "minus", "true", "b = readByte()", "b", "readByte()", "readByte", "while (true) {\n if (b >= '0' && b <= '9') {\n num = (num << 3) + (num << 1) + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }", "true", "{\n if (b >= '0' && b <= '9') {\n num = (num << 3) + (num << 1) + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }", "if (b >= '0' && b <= '9') {\n num = (num << 3) + (num << 1) + (b - '0');\n } else {\n return minus ? -num : num;\n }", "b >= '0' && b <= '9'", "b >= '0'", "b", "'0'", "b <= '9'", "b", "'9'", "{\n num = (num << 3) + (num << 1) + (b - '0');\n }", "num = (num << 3) + (num << 1) + (b - '0')", "num", "(num << 3) + (num << 1) + (b - '0')", "(num << 3) + (num << 1) + (b - '0')", "(num << 3)", "num", "3", "(num << 1)", "num", "1", "(b - '0')", "b", "'0'", "{\n return minus ? -num : num;\n }", "return minus ? -num : num;", "minus ? -num : num", "minus", "-num", "num", "num", "b = readByte()", "b", "readByte()", "readByte", "public long nextLong() {\n long num = 0;\n int b;\n boolean minus = false;\n while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ;\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n\n while (true) {\n if (b >= '0' && b <= '9') {\n num = (num << 3) + (num << 1) + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }\n }", "nextLong", "{\n long num = 0;\n int b;\n boolean minus = false;\n while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ;\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n\n while (true) {\n if (b >= '0' && b <= '9') {\n num = (num << 3) + (num << 1) + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }\n }", "long num = 0;", "num", "0", "int b;", "b", "boolean minus = false;", "minus", "false", "while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ;", "(b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')", "(b = readByte()) != -1", "(b = readByte())", "b", "readByte()", "readByte", "-1", "1", "!((b >= '0' && b <= '9') || b == '-')", "((b >= '0' && b <= '9') || b == '-')", "(b >= '0' && b <= '9')", "b >= '0'", "b", "'0'", "b <= '9'", "b", "'9'", "b == '-'", "b", "'-'", "if (b == '-') {\n minus = true;\n b = readByte();\n }", "b == '-'", "b", "'-'", "{\n minus = true;\n b = readByte();\n }", "minus = true", "minus", "true", "b = readByte()", "b", "readByte()", "readByte", "while (true) {\n if (b >= '0' && b <= '9') {\n num = (num << 3) + (num << 1) + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }", "true", "{\n if (b >= '0' && b <= '9') {\n num = (num << 3) + (num << 1) + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }", "if (b >= '0' && b <= '9') {\n num = (num << 3) + (num << 1) + (b - '0');\n } else {\n return minus ? -num : num;\n }", "b >= '0' && b <= '9'", "b >= '0'", "b", "'0'", "b <= '9'", "b", "'9'", "{\n num = (num << 3) + (num << 1) + (b - '0');\n }", "num = (num << 3) + (num << 1) + (b - '0')", "num", "(num << 3) + (num << 1) + (b - '0')", "(num << 3) + (num << 1) + (b - '0')", "(num << 3)", "num", "3", "(num << 1)", "num", "1", "(b - '0')", "b", "'0'", "{\n return minus ? -num : num;\n }", "return minus ? -num : num;", "minus ? -num : num", "minus", "-num", "num", "num", "b = readByte()", "b", "readByte()", "readByte", "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 char[] next(int n) {\n char[] buf = new char[n];\n int b = skip(), p = 0;\n while (p < n && !(isSpaceChar(b))) {\n buf[p++] = (char) b;\n b = readByte();\n }\n return n == p ? buf : Arrays.copyOf(buf, p);\n }", "next", "{\n char[] buf = new char[n];\n int b = skip(), p = 0;\n while (p < n && !(isSpaceChar(b))) {\n buf[p++] = (char) b;\n b = readByte();\n }\n return n == p ? buf : Arrays.copyOf(buf, p);\n }", "char[] buf = new char[n];", "buf", "new char[n]", "n", "int b = skip()", "b", "skip()", "skip", "p = 0;", "p", "0", "while (p < n && !(isSpaceChar(b))) {\n buf[p++] = (char) b;\n b = readByte();\n }", "p < n && !(isSpaceChar(b))", "p < n", "p", "n", "!(isSpaceChar(b))", "(isSpaceChar(b))", "isSpaceChar", "b", "{\n buf[p++] = (char) b;\n b = readByte();\n }", "buf[p++] = (char) b", "buf[p++]", "buf", "p++", "p", "(char) b", "b = readByte()", "b", "readByte()", "readByte", "return n == p ? buf : Arrays.copyOf(buf, p);", "n == p ? buf : Arrays.copyOf(buf, p)", "n == p", "n", "p", "buf", "Arrays.copyOf(buf, p)", "Arrays.copyOf", "Arrays", "buf", "p", "int n", "n", "public char readChar() {\n return (char) skip();\n }", "readChar", "{\n return (char) skip();\n }", "return (char) skip();", "(char) skip()", "skip", "public class Main {\n public static void main(String[] args) throws IOException {\n FastReader in = new FastReader(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n String s = in.next();\n int res = 0;\n int cnt = 0;\n for (int i = 0; i < s.length(); i++) {\n if (s.charAt(i) == 'R') {\n cnt++;\n } else {\n res = Math.max(cnt,res);\n cnt = 0;\n }\n }\n res = Math.max(res,cnt);\n pw.println(res);\n pw.close();\n }\n\n static class FastReader {\n InputStream is;\n private byte[] inbuf = new byte[1024];\n private int lenbuf = 0, ptrbuf = 0;\n\n public FastReader(InputStream is) {\n this.is = is;\n }\n\n public int readByte() {\n if (lenbuf == -1) throw new InputMismatchException();\n if (ptrbuf >= lenbuf) {\n ptrbuf = 0;\n try {\n lenbuf = is.read(inbuf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (lenbuf <= 0) return -1;\n }\n return inbuf[ptrbuf++];\n }\n\n public boolean isSpaceChar(int c) {\n return !(c >= 33 && c <= 126);\n }\n\n private boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n public int skip() {\n int b;\n while ((b = readByte()) != -1 && isSpaceChar(b)) ;\n return b;\n }\n\n public String next() {\n int b = skip();\n StringBuilder sb = new StringBuilder();\n while (!(isSpaceChar(b))) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n\n\n public String nextLine() {\n int c = skip();\n StringBuilder sb = new StringBuilder();\n while (!isEndOfLine(c)) {\n sb.appendCodePoint(c);\n c = readByte();\n }\n return sb.toString();\n }\n\n public int nextInt() {\n int num = 0, b;\n boolean minus = false;\n while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ;\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n while (true) {\n if (b >= '0' && b <= '9') {\n num = (num << 3) + (num << 1) + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }\n }\n\n public long nextLong() {\n long num = 0;\n int b;\n boolean minus = false;\n while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ;\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n\n while (true) {\n if (b >= '0' && b <= '9') {\n num = (num << 3) + (num << 1) + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public char[] next(int n) {\n char[] buf = new char[n];\n int b = skip(), p = 0;\n while (p < n && !(isSpaceChar(b))) {\n buf[p++] = (char) b;\n b = readByte();\n }\n return n == p ? buf : Arrays.copyOf(buf, p);\n }\n\n public char readChar() {\n return (char) skip();\n }\n }\n}", "public class Main {\n public static void main(String[] args) throws IOException {\n FastReader in = new FastReader(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n String s = in.next();\n int res = 0;\n int cnt = 0;\n for (int i = 0; i < s.length(); i++) {\n if (s.charAt(i) == 'R') {\n cnt++;\n } else {\n res = Math.max(cnt,res);\n cnt = 0;\n }\n }\n res = Math.max(res,cnt);\n pw.println(res);\n pw.close();\n }\n\n static class FastReader {\n InputStream is;\n private byte[] inbuf = new byte[1024];\n private int lenbuf = 0, ptrbuf = 0;\n\n public FastReader(InputStream is) {\n this.is = is;\n }\n\n public int readByte() {\n if (lenbuf == -1) throw new InputMismatchException();\n if (ptrbuf >= lenbuf) {\n ptrbuf = 0;\n try {\n lenbuf = is.read(inbuf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (lenbuf <= 0) return -1;\n }\n return inbuf[ptrbuf++];\n }\n\n public boolean isSpaceChar(int c) {\n return !(c >= 33 && c <= 126);\n }\n\n private boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n public int skip() {\n int b;\n while ((b = readByte()) != -1 && isSpaceChar(b)) ;\n return b;\n }\n\n public String next() {\n int b = skip();\n StringBuilder sb = new StringBuilder();\n while (!(isSpaceChar(b))) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n\n\n public String nextLine() {\n int c = skip();\n StringBuilder sb = new StringBuilder();\n while (!isEndOfLine(c)) {\n sb.appendCodePoint(c);\n c = readByte();\n }\n return sb.toString();\n }\n\n public int nextInt() {\n int num = 0, b;\n boolean minus = false;\n while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ;\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n while (true) {\n if (b >= '0' && b <= '9') {\n num = (num << 3) + (num << 1) + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }\n }\n\n public long nextLong() {\n long num = 0;\n int b;\n boolean minus = false;\n while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ;\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n\n while (true) {\n if (b >= '0' && b <= '9') {\n num = (num << 3) + (num << 1) + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public char[] next(int n) {\n char[] buf = new char[n];\n int b = skip(), p = 0;\n while (p < n && !(isSpaceChar(b))) {\n buf[p++] = (char) b;\n b = readByte();\n }\n return n == p ? buf : Arrays.copyOf(buf, p);\n }\n\n public char readChar() {\n return (char) skip();\n }\n }\n}", "Main" ]
import java.io.*; import java.util.*; import static java.lang.Integer.*; public class Main { public static void main(String[] args) throws IOException { FastReader in = new FastReader(System.in); PrintWriter pw = new PrintWriter(System.out); String s = in.next(); int res = 0; int cnt = 0; for (int i = 0; i < s.length(); i++) { if (s.charAt(i) == 'R') { cnt++; } else { res = Math.max(cnt,res); cnt = 0; } } res = Math.max(res,cnt); pw.println(res); pw.close(); } static class FastReader { InputStream is; private byte[] inbuf = new byte[1024]; private int lenbuf = 0, ptrbuf = 0; public FastReader(InputStream is) { this.is = is; } public int readByte() { if (lenbuf == -1) throw new InputMismatchException(); if (ptrbuf >= lenbuf) { ptrbuf = 0; try { lenbuf = is.read(inbuf); } catch (IOException e) { throw new InputMismatchException(); } if (lenbuf <= 0) return -1; } return inbuf[ptrbuf++]; } public boolean isSpaceChar(int c) { return !(c >= 33 && c <= 126); } private boolean isEndOfLine(int c) { return c == '\n' || c == '\r' || c == -1; } public int skip() { int b; while ((b = readByte()) != -1 && isSpaceChar(b)) ; return b; } public String next() { int b = skip(); StringBuilder sb = new StringBuilder(); while (!(isSpaceChar(b))) { sb.appendCodePoint(b); b = readByte(); } return sb.toString(); } public String nextLine() { int c = skip(); StringBuilder sb = new StringBuilder(); while (!isEndOfLine(c)) { sb.appendCodePoint(c); c = readByte(); } return sb.toString(); } public int nextInt() { int num = 0, b; boolean minus = false; while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ; if (b == '-') { minus = true; b = readByte(); } while (true) { if (b >= '0' && b <= '9') { num = (num << 3) + (num << 1) + (b - '0'); } else { return minus ? -num : num; } b = readByte(); } } public long nextLong() { long num = 0; int b; boolean minus = false; while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')) ; if (b == '-') { minus = true; b = readByte(); } while (true) { if (b >= '0' && b <= '9') { num = (num << 3) + (num << 1) + (b - '0'); } else { return minus ? -num : num; } b = readByte(); } } public double nextDouble() { return Double.parseDouble(next()); } public char[] next(int n) { char[] buf = new char[n]; int b = skip(), p = 0; while (p < n && !(isSpaceChar(b))) { buf[p++] = (char) b; b = readByte(); } return n == p ? buf : Arrays.copyOf(buf, p); } public char readChar() { return (char) skip(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 13, 41, 13, 40, 17, 14, 2, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 30, 0, 13, 17, 14, 2, 2, 2, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 30, 0, 13, 17, 14, 2, 2, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 30, 0, 13, 17, 14, 2, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 204, 5 ], [ 204, 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 ], [ 23, 24 ], [ 24, 25 ], [ 8, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 26, 36 ], [ 36, 37 ], [ 37, 38 ], [ 26, 39 ], [ 40, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 8, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 8, 53 ], [ 53, 54 ], [ 55, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 55, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 61, 65 ], [ 55, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 53, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 53, 75 ], [ 75, 76 ], [ 78, 77 ], [ 101, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 79, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 78, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 90, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 101, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 101, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 78, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 114, 118 ], [ 113, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 119, 123 ], [ 112, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 124, 128 ], [ 75, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 75, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 137, 141 ], [ 136, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 142, 146 ], [ 135, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 147, 151 ], [ 134, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 154, 158 ], [ 153, 159 ], [ 159, 160 ], [ 160, 161 ], [ 160, 162 ], [ 159, 163 ], [ 152, 164 ], [ 164, 165 ], [ 165, 166 ], [ 165, 167 ], [ 164, 168 ], [ 133, 169 ], [ 169, 170 ], [ 170, 171 ], [ 170, 172 ], [ 133, 173 ], [ 173, 174 ], [ 175, 175 ], [ 175, 176 ], [ 176, 177 ], [ 177, 178 ], [ 177, 179 ], [ 176, 180 ], [ 175, 181 ], [ 181, 182 ], [ 182, 183 ], [ 182, 184 ], [ 181, 185 ], [ 175, 186 ], [ 186, 187 ], [ 187, 188 ], [ 187, 189 ], [ 186, 190 ], [ 173, 191 ], [ 191, 192 ], [ 192, 193 ], [ 192, 194 ], [ 8, 195 ], [ 195, 196 ], [ 196, 197 ], [ 197, 198 ], [ 197, 199 ], [ 195, 200 ], [ 6, 201 ], [ 201, 202 ], [ 0, 203 ], [ 203, 204 ], [ 203, 205 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n //入力\n Scanner sc = new Scanner(System.in);\n String str = sc.next();\n sc.close();\n\n //分割\n char[] str1 = new char[str.length()];\n for(int i=0; i<str.length(); i++){\n str1[i] = str.charAt(i);\n //System.out.println(str1[i]);\n }\n\n\n int count = -1;\n //雨が0連続で降った場合\n if(str1[0] != 'R' && str1[1] != 'R' && str1[2] != 'R'){\n count = 0;\n }\n else if((str1[0] == 'S' && str1[1] == 'S') || (str1[1] == 'S' && str1[2] == 'S') || (str1[2] == 'S' && str1[0] == 'S') || (str1[0] == 'R' && str1[1] == 'S' && str1[2] == 'R')){\n count = 1;\n }\n else if((str1[0] == 'R' && str1[1] == 'R' && str1[2] == 'S') || (str1[0] == 'S' && str1[1] == 'R' && str1[2] == 'R')){\n count = 2;\n }\n else if(str1[0] == 'R' && str1[1] == 'R' && str1[2] == 'R'){\n count = 3;\n }\n\n System.out.println(count);\n\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args){\n //入力\n Scanner sc = new Scanner(System.in);\n String str = sc.next();\n sc.close();\n\n //分割\n char[] str1 = new char[str.length()];\n for(int i=0; i<str.length(); i++){\n str1[i] = str.charAt(i);\n //System.out.println(str1[i]);\n }\n\n\n int count = -1;\n //雨が0連続で降った場合\n if(str1[0] != 'R' && str1[1] != 'R' && str1[2] != 'R'){\n count = 0;\n }\n else if((str1[0] == 'S' && str1[1] == 'S') || (str1[1] == 'S' && str1[2] == 'S') || (str1[2] == 'S' && str1[0] == 'S') || (str1[0] == 'R' && str1[1] == 'S' && str1[2] == 'R')){\n count = 1;\n }\n else if((str1[0] == 'R' && str1[1] == 'R' && str1[2] == 'S') || (str1[0] == 'S' && str1[1] == 'R' && str1[2] == 'R')){\n count = 2;\n }\n else if(str1[0] == 'R' && str1[1] == 'R' && str1[2] == 'R'){\n count = 3;\n }\n\n System.out.println(count);\n\n }\n}", "Main", "public static void main(String[] args){\n //入力\n Scanner sc = new Scanner(System.in);\n String str = sc.next();\n sc.close();\n\n //分割\n char[] str1 = new char[str.length()];\n for(int i=0; i<str.length(); i++){\n str1[i] = str.charAt(i);\n //System.out.println(str1[i]);\n }\n\n\n int count = -1;\n //雨が0連続で降った場合\n if(str1[0] != 'R' && str1[1] != 'R' && str1[2] != 'R'){\n count = 0;\n }\n else if((str1[0] == 'S' && str1[1] == 'S') || (str1[1] == 'S' && str1[2] == 'S') || (str1[2] == 'S' && str1[0] == 'S') || (str1[0] == 'R' && str1[1] == 'S' && str1[2] == 'R')){\n count = 1;\n }\n else if((str1[0] == 'R' && str1[1] == 'R' && str1[2] == 'S') || (str1[0] == 'S' && str1[1] == 'R' && str1[2] == 'R')){\n count = 2;\n }\n else if(str1[0] == 'R' && str1[1] == 'R' && str1[2] == 'R'){\n count = 3;\n }\n\n System.out.println(count);\n\n }", "main", "{\n //入力\n Scanner sc = new Scanner(System.in);\n String str = sc.next();\n sc.close();\n\n //分割\n char[] str1 = new char[str.length()];\n for(int i=0; i<str.length(); i++){\n str1[i] = str.charAt(i);\n //System.out.println(str1[i]);\n }\n\n\n int count = -1;\n //雨が0連続で降った場合\n if(str1[0] != 'R' && str1[1] != 'R' && str1[2] != 'R'){\n count = 0;\n }\n else if((str1[0] == 'S' && str1[1] == 'S') || (str1[1] == 'S' && str1[2] == 'S') || (str1[2] == 'S' && str1[0] == 'S') || (str1[0] == 'R' && str1[1] == 'S' && str1[2] == 'R')){\n count = 1;\n }\n else if((str1[0] == 'R' && str1[1] == 'R' && str1[2] == 'S') || (str1[0] == 'S' && str1[1] == 'R' && str1[2] == 'R')){\n count = 2;\n }\n else if(str1[0] == 'R' && str1[1] == 'R' && str1[2] == 'R'){\n count = 3;\n }\n\n System.out.println(count);\n\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String str = sc.next();", "str", "sc.next()", "sc.next", "sc", "sc.close()", "sc.close", "sc", "char[] str1 = new char[str.length()];", "str1", "new char[str.length()]", "str.length()", "str.length", "str", "for(int i=0; i<str.length(); i++){\n str1[i] = str.charAt(i);\n //System.out.println(str1[i]);\n }", "int i=0;", "int i=0;", "i", "0", "i<str.length()", "i", "str.length()", "str.length", "str", "i++", "i++", "i", "{\n str1[i] = str.charAt(i);\n //System.out.println(str1[i]);\n }", "{\n str1[i] = str.charAt(i);\n //System.out.println(str1[i]);\n }", "str1[i] = str.charAt(i)", "str1[i]", "str1", "i", "str.charAt(i)", "str.charAt", "str", "i", "int count = -1;", "count", "-1", "1", "if(str1[0] != 'R' && str1[1] != 'R' && str1[2] != 'R'){\n count = 0;\n }\n else if((str1[0] == 'S' && str1[1] == 'S') || (str1[1] == 'S' && str1[2] == 'S') || (str1[2] == 'S' && str1[0] == 'S') || (str1[0] == 'R' && str1[1] == 'S' && str1[2] == 'R')){\n count = 1;\n }\n else if((str1[0] == 'R' && str1[1] == 'R' && str1[2] == 'S') || (str1[0] == 'S' && str1[1] == 'R' && str1[2] == 'R')){\n count = 2;\n }\n else if(str1[0] == 'R' && str1[1] == 'R' && str1[2] == 'R'){\n count = 3;\n }", "str1[0] != 'R' && str1[1] != 'R' && str1[2] != 'R'", "str1[0] != 'R' && str1[1] != 'R' && str1[2] != 'R'", "str1[0] != 'R'", "str1[0]", "str1", "0", "'R'", "str1[1] != 'R'", "str1[1]", "str1", "1", "'R'", "str1[2] != 'R'", "str1[2]", "str1", "2", "'R'", "{\n count = 0;\n }", "count = 0", "count", "0", "if((str1[0] == 'S' && str1[1] == 'S') || (str1[1] == 'S' && str1[2] == 'S') || (str1[2] == 'S' && str1[0] == 'S') || (str1[0] == 'R' && str1[1] == 'S' && str1[2] == 'R')){\n count = 1;\n }\n else if((str1[0] == 'R' && str1[1] == 'R' && str1[2] == 'S') || (str1[0] == 'S' && str1[1] == 'R' && str1[2] == 'R')){\n count = 2;\n }\n else if(str1[0] == 'R' && str1[1] == 'R' && str1[2] == 'R'){\n count = 3;\n }", "(str1[0] == 'S' && str1[1] == 'S') || (str1[1] == 'S' && str1[2] == 'S') || (str1[2] == 'S' && str1[0] == 'S') || (str1[0] == 'R' && str1[1] == 'S' && str1[2] == 'R')", "(str1[2] == 'S' && str1[0] == 'S')", "(str1[0] == 'S' && str1[1] == 'S') || (str1[1] == 'S' && str1[2] == 'S') || (str1[2] == 'S' && str1[0] == 'S') || (str1[0] == 'R' && str1[1] == 'S' && str1[2] == 'R')", "(str1[0] == 'S' && str1[1] == 'S')", "str1[0] == 'S'", "str1[0]", "str1", "0", "'S'", "str1[1] == 'S'", "str1[1]", "str1", "1", "'S'", "(str1[1] == 'S' && str1[2] == 'S')", "str1[1] == 'S'", "str1[1]", "str1", "1", "'S'", "str1[2] == 'S'", "str1[2]", "str1", "2", "'S'", "(str1[2] == 'S' && str1[0] == 'S')", "str1[2] == 'S'", "str1[2]", "str1", "2", "'S'", "str1[0] == 'S'", "str1[0]", "str1", "0", "'S'", "(str1[0] == 'R' && str1[1] == 'S' && str1[2] == 'R')", "str1[0] == 'R' && str1[1] == 'S' && str1[2] == 'R'", "str1[0] == 'R'", "str1[0]", "str1", "0", "'R'", "str1[1] == 'S'", "str1[1]", "str1", "1", "'S'", "str1[2] == 'R'", "str1[2]", "str1", "2", "'R'", "{\n count = 1;\n }", "count = 1", "count", "1", "if((str1[0] == 'R' && str1[1] == 'R' && str1[2] == 'S') || (str1[0] == 'S' && str1[1] == 'R' && str1[2] == 'R')){\n count = 2;\n }\n else if(str1[0] == 'R' && str1[1] == 'R' && str1[2] == 'R'){\n count = 3;\n }", "(str1[0] == 'R' && str1[1] == 'R' && str1[2] == 'S') || (str1[0] == 'S' && str1[1] == 'R' && str1[2] == 'R')", "(str1[0] == 'R' && str1[1] == 'R' && str1[2] == 'S')", "str1[0] == 'R' && str1[1] == 'R' && str1[2] == 'S'", "str1[0] == 'R'", "str1[0]", "str1", "0", "'R'", "str1[1] == 'R'", "str1[1]", "str1", "1", "'R'", "str1[2] == 'S'", "str1[2]", "str1", "2", "'S'", "(str1[0] == 'S' && str1[1] == 'R' && str1[2] == 'R')", "str1[0] == 'S' && str1[1] == 'R' && str1[2] == 'R'", "str1[0] == 'S'", "str1[0]", "str1", "0", "'S'", "str1[1] == 'R'", "str1[1]", "str1", "1", "'R'", "str1[2] == 'R'", "str1[2]", "str1", "2", "'R'", "{\n count = 2;\n }", "count = 2", "count", "2", "if(str1[0] == 'R' && str1[1] == 'R' && str1[2] == 'R'){\n count = 3;\n }", "str1[0] == 'R' && str1[1] == 'R' && str1[2] == 'R'", "str1[0] == 'R' && str1[1] == 'R' && str1[2] == 'R'", "str1[0] == 'R'", "str1[0]", "str1", "0", "'R'", "str1[1] == 'R'", "str1[1]", "str1", "1", "'R'", "str1[2] == 'R'", "str1[2]", "str1", "2", "'R'", "{\n count = 3;\n }", "count = 3", "count", "3", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n //入力\n Scanner sc = new Scanner(System.in);\n String str = sc.next();\n sc.close();\n\n //分割\n char[] str1 = new char[str.length()];\n for(int i=0; i<str.length(); i++){\n str1[i] = str.charAt(i);\n //System.out.println(str1[i]);\n }\n\n\n int count = -1;\n //雨が0連続で降った場合\n if(str1[0] != 'R' && str1[1] != 'R' && str1[2] != 'R'){\n count = 0;\n }\n else if((str1[0] == 'S' && str1[1] == 'S') || (str1[1] == 'S' && str1[2] == 'S') || (str1[2] == 'S' && str1[0] == 'S') || (str1[0] == 'R' && str1[1] == 'S' && str1[2] == 'R')){\n count = 1;\n }\n else if((str1[0] == 'R' && str1[1] == 'R' && str1[2] == 'S') || (str1[0] == 'S' && str1[1] == 'R' && str1[2] == 'R')){\n count = 2;\n }\n else if(str1[0] == 'R' && str1[1] == 'R' && str1[2] == 'R'){\n count = 3;\n }\n\n System.out.println(count);\n\n }\n}", "public class Main{\n public static void main(String[] args){\n //入力\n Scanner sc = new Scanner(System.in);\n String str = sc.next();\n sc.close();\n\n //分割\n char[] str1 = new char[str.length()];\n for(int i=0; i<str.length(); i++){\n str1[i] = str.charAt(i);\n //System.out.println(str1[i]);\n }\n\n\n int count = -1;\n //雨が0連続で降った場合\n if(str1[0] != 'R' && str1[1] != 'R' && str1[2] != 'R'){\n count = 0;\n }\n else if((str1[0] == 'S' && str1[1] == 'S') || (str1[1] == 'S' && str1[2] == 'S') || (str1[2] == 'S' && str1[0] == 'S') || (str1[0] == 'R' && str1[1] == 'S' && str1[2] == 'R')){\n count = 1;\n }\n else if((str1[0] == 'R' && str1[1] == 'R' && str1[2] == 'S') || (str1[0] == 'S' && str1[1] == 'R' && str1[2] == 'R')){\n count = 2;\n }\n else if(str1[0] == 'R' && str1[1] == 'R' && str1[2] == 'R'){\n count = 3;\n }\n\n System.out.println(count);\n\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ //入力 Scanner sc = new Scanner(System.in); String str = sc.next(); sc.close(); //分割 char[] str1 = new char[str.length()]; for(int i=0; i<str.length(); i++){ str1[i] = str.charAt(i); //System.out.println(str1[i]); } int count = -1; //雨が0連続で降った場合 if(str1[0] != 'R' && str1[1] != 'R' && str1[2] != 'R'){ count = 0; } else if((str1[0] == 'S' && str1[1] == 'S') || (str1[1] == 'S' && str1[2] == 'S') || (str1[2] == 'S' && str1[0] == 'S') || (str1[0] == 'R' && str1[1] == 'S' && str1[2] == 'R')){ count = 1; } else if((str1[0] == 'R' && str1[1] == 'R' && str1[2] == 'S') || (str1[0] == 'S' && str1[1] == 'R' && str1[2] == 'R')){ count = 2; } else if(str1[0] == 'R' && str1[1] == 'R' && str1[2] == 'R'){ count = 3; } System.out.println(count); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 41, 13, 20, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 17, 30, 0, 13, 17, 3, 11, 1, 41, 13, 17, 2, 13, 2, 4, 18, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 4, 18, 13, 13, 17, 2, 4, 18, 13, 2, 13, 17, 17, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 14, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 13, 2, 13, 13, 29, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 4, 13, 13, 13, 13, 2, 13, 17, 4, 13, 13, 13, 2, 13, 17, 13, 4, 13, 13, 13, 13, 2, 13, 17, 4, 13, 13, 13, 2, 13, 17, 13, 23, 13, 23, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 17, 42, 2, 13, 13, 30, 14, 2, 18, 13, 13, 17, 30, 40, 13, 9, 41, 13, 2, 18, 13, 13, 17, 14, 2, 18, 13, 13, 17, 30, 0, 18, 13, 13, 18, 13, 13, 0, 18, 13, 13, 40, 17, 30, 40, 18, 13, 13, 0, 18, 13, 13, 17, 40, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 18, 13, 13, 17, 40, 13, 29, 13, 23, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 29, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 362, 14 ], [ 362, 15 ], [ 15, 16 ], [ 15, 17 ], [ 362, 18 ], [ 18, 19 ], [ 362, 20 ], [ 20, 21 ], [ 20, 22 ], [ 362, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 25, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 25, 34 ], [ 34, 35 ], [ 34, 36 ], [ 25, 37 ], [ 37, 38 ], [ 37, 39 ], [ 25, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 40, 50 ], [ 50, 51 ], [ 51, 52 ], [ 40, 53 ], [ 54, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 56, 61 ], [ 55, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 25, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 74, 78 ], [ 67, 79 ], [ 79, 80 ], [ 80, 81 ], [ 67, 82 ], [ 83, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 86, 91 ], [ 85, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 96, 97 ], [ 96, 98 ], [ 92, 99 ], [ 84, 100 ], [ 100, 101 ], [ 25, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 102, 107 ], [ 23, 108 ], [ 108, 109 ], [ 362, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 113, 114 ], [ 116, 115 ], [ 123, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 116, 120 ], [ 120, 121 ], [ 120, 122 ], [ 123, 123 ], [ 123, 124 ], [ 123, 125 ], [ 116, 126 ], [ 126, 127 ], [ 126, 128 ], [ 113, 129 ], [ 112, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 130, 135 ], [ 136, 136 ], [ 136, 137 ], [ 136, 138 ], [ 136, 139 ], [ 112, 140 ], [ 140, 141 ], [ 140, 142 ], [ 140, 143 ], [ 140, 144 ], [ 140, 145 ], [ 145, 146 ], [ 145, 147 ], [ 112, 148 ], [ 148, 149 ], [ 148, 150 ], [ 148, 151 ], [ 148, 152 ], [ 152, 153 ], [ 152, 154 ], [ 148, 155 ], [ 112, 156 ], [ 156, 157 ], [ 156, 158 ], [ 156, 159 ], [ 156, 160 ], [ 156, 161 ], [ 161, 162 ], [ 161, 163 ], [ 112, 164 ], [ 164, 165 ], [ 164, 166 ], [ 164, 167 ], [ 164, 168 ], [ 168, 169 ], [ 168, 170 ], [ 164, 171 ], [ 110, 172 ], [ 172, 173 ], [ 110, 174 ], [ 174, 175 ], [ 110, 176 ], [ 176, 177 ], [ 110, 178 ], [ 178, 179 ], [ 362, 180 ], [ 180, 181 ], [ 180, 182 ], [ 182, 183 ], [ 183, 184 ], [ 183, 185 ], [ 182, 186 ], [ 186, 187 ], [ 187, 188 ], [ 187, 189 ], [ 186, 190 ], [ 190, 191 ], [ 191, 192 ], [ 192, 193 ], [ 193, 194 ], [ 193, 195 ], [ 192, 196 ], [ 191, 197 ], [ 197, 198 ], [ 198, 199 ], [ 197, 200 ], [ 190, 201 ], [ 201, 202 ], [ 201, 203 ], [ 203, 204 ], [ 204, 205 ], [ 204, 206 ], [ 203, 207 ], [ 190, 208 ], [ 208, 209 ], [ 209, 210 ], [ 210, 211 ], [ 210, 212 ], [ 209, 213 ], [ 208, 214 ], [ 214, 215 ], [ 215, 216 ], [ 216, 217 ], [ 216, 218 ], [ 215, 219 ], [ 219, 220 ], [ 219, 221 ], [ 214, 222 ], [ 222, 223 ], [ 223, 224 ], [ 223, 225 ], [ 222, 226 ], [ 226, 227 ], [ 208, 228 ], [ 228, 229 ], [ 229, 230 ], [ 230, 231 ], [ 230, 232 ], [ 228, 233 ], [ 233, 234 ], [ 234, 235 ], [ 234, 236 ], [ 233, 237 ], [ 228, 238 ], [ 238, 239 ], [ 182, 240 ], [ 240, 241 ], [ 240, 242 ], [ 182, 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 ], [ 258, 259 ], [ 259, 260 ], [ 258, 261 ], [ 261, 262 ], [ 261, 263 ], [ 257, 264 ], [ 256, 265 ], [ 265, 266 ], [ 182, 267 ], [ 267, 268 ], [ 180, 269 ], [ 269, 270 ], [ 180, 271 ], [ 271, 272 ], [ 362, 273 ], [ 273, 274 ], [ 273, 275 ], [ 275, 276 ], [ 273, 277 ], [ 277, 278 ], [ 273, 279 ], [ 279, 280 ], [ 279, 281 ], [ 281, 282 ], [ 282, 283 ], [ 282, 284 ], [ 273, 285 ], [ 285, 286 ], [ 285, 287 ], [ 287, 288 ], [ 288, 289 ], [ 289, 290 ], [ 290, 291 ], [ 290, 292 ], [ 289, 293 ], [ 293, 294 ], [ 294, 295 ], [ 295, 296 ], [ 288, 297 ], [ 297, 298 ], [ 298, 299 ], [ 299, 300 ], [ 299, 301 ], [ 301, 302 ], [ 302, 303 ], [ 303, 304 ], [ 298, 305 ], [ 305, 306 ], [ 306, 307 ], [ 306, 308 ], [ 287, 309 ], [ 309, 310 ], [ 310, 311 ], [ 311, 312 ], [ 273, 313 ], [ 313, 314 ], [ 313, 315 ], [ 315, 316 ], [ 316, 317 ], [ 317, 318 ], [ 318, 319 ], [ 317, 320 ], [ 320, 321 ], [ 273, 322 ], [ 322, 323 ], [ 322, 324 ], [ 324, 325 ], [ 325, 326 ], [ 326, 327 ], [ 327, 328 ], [ 326, 329 ], [ 329, 330 ], [ 273, 331 ], [ 331, 332 ], [ 331, 333 ], [ 333, 334 ], [ 334, 335 ], [ 335, 336 ], [ 336, 337 ], [ 335, 338 ], [ 338, 339 ], [ 273, 340 ], [ 340, 341 ], [ 340, 342 ], [ 342, 343 ], [ 343, 344 ], [ 343, 345 ], [ 342, 346 ], [ 346, 347 ], [ 347, 348 ], [ 347, 349 ], [ 349, 350 ], [ 350, 351 ], [ 351, 352 ], [ 346, 353 ], [ 353, 354 ], [ 354, 355 ], [ 354, 356 ], [ 356, 357 ], [ 357, 358 ], [ 342, 359 ], [ 359, 360 ], [ 0, 361 ], [ 361, 362 ], [ 361, 363 ] ]
[ "\n// import java.lang.*;\nimport java.util.*;\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n static List<Integer> al = new ArrayList<>();\n static int[] a;\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n static Set<Integer> s=new HashSet<>();\n\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n // StringBuffer sb = new StringBuffer();\n \n // String r=s.substring(0,q)+y+s.substring(q);\n // System.out.println(r);\n // int n=sc.nextInt();\n // int k=sc.nextInt();\n // int[] a=new int[n];\n // // ArrayList<Integer> a=new ArrayList<>();\n // for(int i=0;i<n;i++)\n // a[i]=(sc.nextInt());\n // int sum=0,c=0;\n // int l=0;\n \n \n String s=sc.nextLine();\n\n int c=0;\n boolean flag=false;\n for(int i=0;i<s.length();i++ )\n { if(s.charAt(i)=='R')\n {\n c=1;\n break;\n }\n }\n for(int i=0;i<s.length()-1;i++)\n {\n \n if(s.charAt(i)=='R' && s.charAt(i+1)=='R')\n c++;\n }\n \n System.out.println(c);\n \n \n \n\n \n \n \n\n }\n\n\n static void chess(int n,int m,int x,int y)\n {\n if(x<0|| y<0 ||x>=n||y>=m)\n return;\n\n System.out.print(x+\" \"+y);\n\n chess(n, m, x, y-1);\n chess(n, m, x-1, y);\n chess(n, m, x, y+1);\n chess(n, m, x+1, y);\n }\n // public static int countFrequencies(ArrayList<Integer> list) \n // { \n // // hashmap to store the frequency of element \n // Map<Integer, Integer> hm = new HashMap<>(); \n \n // for (Integer i : list) { \n // Integer j = hm.get(i); \n // hm.put(i, (j == null) ? 1 : j + 1); \n // } \n // int sum=0;\n \n // // displaying the occurrence of elements in the arraylist \n // for (Map.Entry<Integer, Integer> val : hm.entrySet()) { \n \n // if(val.getKey()>1){\n // sum++;\n\n // }\n // } \n // return sum;\n // } \n\n static int findCounts(int arr[], int n) \n { \n // Traverse all array elements \n int i = 0; \n while (i < n) \n { \n // If this element is already processed, \n // then nothing to do \n if (arr[i] <= 0) \n { \n i++; \n continue; \n } \n \n // Find index corresponding to this element \n // For example, index for 5 is 4 \n int elementIndex = arr[i] - 1; \n \n // If the elementIndex has an element that is not \n // processed yet, then first store that element \n // to arr[i] so that we don't lose anything. \n if (arr[elementIndex] > 0) \n { \n arr[i] = arr[elementIndex]; \n \n // After storing arr[elementIndex], change it \n // to store initial count of 'arr[i]' \n arr[elementIndex] = -1; \n } \n else \n { \n // If this is NOT first occurrence of arr[i], \n // then decrement its count. \n arr[elementIndex]--; \n \n // And initialize arr[i] as 0 means the element \n // 'i+1' is not seen so far \n arr[i] = 0; \n i++; \n } \n } \n int sum=0;\n \n \n for (int j = 1; j < n; j++) \n { if( Math.abs(arr[j])>1)\n sum++; }\n return sum;\n } \n\n\n \n \n \n\n\n\n\n // public static String sortString(String inputString) \n // { \n // // convert input string to Character array \n // Character tempArray[] = new Character[inputString.length()]; \n // for (int i = 0; i < inputString.length(); i++) { \n // tempArray[i] = inputString.charAt(i); \n // } \n \n \n // // Sort, ignoring case during sorting \n // Arrays.sort(tempArray, new Comparator<Character>(){ \n \n // @Override\n // public int compare(Character c1, Character c2) \n // { \n // // ignoring case \n // return Character.compare(Character.toLowerCase(c1), \n // Character.toLowerCase(c2)); \n // } \n // }); \n \n // // using StringBuilder to convert Character array to String \n // StringBuilder sb = new StringBuilder(tempArray.length); \n // for (Character c : tempArray) \n // sb.append(c.charValue()); \n \n // return sb.toString(); \n // } \n \n}", "import java.util.*;", "util.*", "java", "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 static List<Integer> al = new ArrayList<>();\n static int[] a;\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n static Set<Integer> s=new HashSet<>();\n\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n // StringBuffer sb = new StringBuffer();\n \n // String r=s.substring(0,q)+y+s.substring(q);\n // System.out.println(r);\n // int n=sc.nextInt();\n // int k=sc.nextInt();\n // int[] a=new int[n];\n // // ArrayList<Integer> a=new ArrayList<>();\n // for(int i=0;i<n;i++)\n // a[i]=(sc.nextInt());\n // int sum=0,c=0;\n // int l=0;\n \n \n String s=sc.nextLine();\n\n int c=0;\n boolean flag=false;\n for(int i=0;i<s.length();i++ )\n { if(s.charAt(i)=='R')\n {\n c=1;\n break;\n }\n }\n for(int i=0;i<s.length()-1;i++)\n {\n \n if(s.charAt(i)=='R' && s.charAt(i+1)=='R')\n c++;\n }\n \n System.out.println(c);\n \n \n \n\n \n \n \n\n }\n\n\n static void chess(int n,int m,int x,int y)\n {\n if(x<0|| y<0 ||x>=n||y>=m)\n return;\n\n System.out.print(x+\" \"+y);\n\n chess(n, m, x, y-1);\n chess(n, m, x-1, y);\n chess(n, m, x, y+1);\n chess(n, m, x+1, y);\n }\n // public static int countFrequencies(ArrayList<Integer> list) \n // { \n // // hashmap to store the frequency of element \n // Map<Integer, Integer> hm = new HashMap<>(); \n \n // for (Integer i : list) { \n // Integer j = hm.get(i); \n // hm.put(i, (j == null) ? 1 : j + 1); \n // } \n // int sum=0;\n \n // // displaying the occurrence of elements in the arraylist \n // for (Map.Entry<Integer, Integer> val : hm.entrySet()) { \n \n // if(val.getKey()>1){\n // sum++;\n\n // }\n // } \n // return sum;\n // } \n\n static int findCounts(int arr[], int n) \n { \n // Traverse all array elements \n int i = 0; \n while (i < n) \n { \n // If this element is already processed, \n // then nothing to do \n if (arr[i] <= 0) \n { \n i++; \n continue; \n } \n \n // Find index corresponding to this element \n // For example, index for 5 is 4 \n int elementIndex = arr[i] - 1; \n \n // If the elementIndex has an element that is not \n // processed yet, then first store that element \n // to arr[i] so that we don't lose anything. \n if (arr[elementIndex] > 0) \n { \n arr[i] = arr[elementIndex]; \n \n // After storing arr[elementIndex], change it \n // to store initial count of 'arr[i]' \n arr[elementIndex] = -1; \n } \n else \n { \n // If this is NOT first occurrence of arr[i], \n // then decrement its count. \n arr[elementIndex]--; \n \n // And initialize arr[i] as 0 means the element \n // 'i+1' is not seen so far \n arr[i] = 0; \n i++; \n } \n } \n int sum=0;\n \n \n for (int j = 1; j < n; j++) \n { if( Math.abs(arr[j])>1)\n sum++; }\n return sum;\n } \n\n\n \n \n \n\n\n\n\n // public static String sortString(String inputString) \n // { \n // // convert input string to Character array \n // Character tempArray[] = new Character[inputString.length()]; \n // for (int i = 0; i < inputString.length(); i++) { \n // tempArray[i] = inputString.charAt(i); \n // } \n \n \n // // Sort, ignoring case during sorting \n // Arrays.sort(tempArray, new Comparator<Character>(){ \n \n // @Override\n // public int compare(Character c1, Character c2) \n // { \n // // ignoring case \n // return Character.compare(Character.toLowerCase(c1), \n // Character.toLowerCase(c2)); \n // } \n // }); \n \n // // using StringBuilder to convert Character array to String \n // StringBuilder sb = new StringBuilder(tempArray.length); \n // for (Character c : tempArray) \n // sb.append(c.charValue()); \n \n // return sb.toString(); \n // } \n \n}", "Main", "static List<Integer> al = new ArrayList<>();", "al", "new ArrayList<>()", "static int[] a;", "a", "static Set<Integer> s=new HashSet<>();", "s", "new HashSet<>()", "public static void main(String[] args) {\n FastReader sc = new FastReader();\n // StringBuffer sb = new StringBuffer();\n \n // String r=s.substring(0,q)+y+s.substring(q);\n // System.out.println(r);\n // int n=sc.nextInt();\n // int k=sc.nextInt();\n // int[] a=new int[n];\n // // ArrayList<Integer> a=new ArrayList<>();\n // for(int i=0;i<n;i++)\n // a[i]=(sc.nextInt());\n // int sum=0,c=0;\n // int l=0;\n \n \n String s=sc.nextLine();\n\n int c=0;\n boolean flag=false;\n for(int i=0;i<s.length();i++ )\n { if(s.charAt(i)=='R')\n {\n c=1;\n break;\n }\n }\n for(int i=0;i<s.length()-1;i++)\n {\n \n if(s.charAt(i)=='R' && s.charAt(i+1)=='R')\n c++;\n }\n \n System.out.println(c);\n \n \n \n\n \n \n \n\n }", "main", "{\n FastReader sc = new FastReader();\n // StringBuffer sb = new StringBuffer();\n \n // String r=s.substring(0,q)+y+s.substring(q);\n // System.out.println(r);\n // int n=sc.nextInt();\n // int k=sc.nextInt();\n // int[] a=new int[n];\n // // ArrayList<Integer> a=new ArrayList<>();\n // for(int i=0;i<n;i++)\n // a[i]=(sc.nextInt());\n // int sum=0,c=0;\n // int l=0;\n \n \n String s=sc.nextLine();\n\n int c=0;\n boolean flag=false;\n for(int i=0;i<s.length();i++ )\n { if(s.charAt(i)=='R')\n {\n c=1;\n break;\n }\n }\n for(int i=0;i<s.length()-1;i++)\n {\n \n if(s.charAt(i)=='R' && s.charAt(i+1)=='R')\n c++;\n }\n \n System.out.println(c);\n \n \n \n\n \n \n \n\n }", "FastReader sc = new FastReader();", "sc", "new FastReader()", "String s=sc.nextLine();", "s", "sc.nextLine()", "sc.nextLine", "sc", "int c=0;", "c", "0", "boolean flag=false;", "flag", "false", "for(int i=0;i<s.length();i++ )\n { if(s.charAt(i)=='R')\n {\n c=1;\n break;\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<s.length()", "i", "s.length()", "s.length", "s", "i++", "i++", "i", "{ if(s.charAt(i)=='R')\n {\n c=1;\n break;\n }\n }", "{ if(s.charAt(i)=='R')\n {\n c=1;\n break;\n }\n }", "if(s.charAt(i)=='R')\n {\n c=1;\n break;\n }", "s.charAt(i)=='R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "{\n c=1;\n break;\n }", "c=1", "c", "1", "break;", "for(int i=0;i<s.length()-1;i++)\n {\n \n if(s.charAt(i)=='R' && s.charAt(i+1)=='R')\n c++;\n }", "int i=0;", "int i=0;", "i", "0", "i<s.length()-1", "i", "s.length()-1", "s.length()", "s.length", "s", "1", "i++", "i++", "i", "{\n \n if(s.charAt(i)=='R' && s.charAt(i+1)=='R')\n c++;\n }", "{\n \n if(s.charAt(i)=='R' && s.charAt(i+1)=='R')\n c++;\n }", "if(s.charAt(i)=='R' && s.charAt(i+1)=='R')\n c++;", "s.charAt(i)=='R' && s.charAt(i+1)=='R'", "s.charAt(i)=='R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "s.charAt(i+1)=='R'", "s.charAt(i+1)", "s.charAt", "s", "i+1", "i", "1", "'R'", "c++", "c", "System.out.println(c)", "System.out.println", "System.out", "System", "System.out", "c", "String[] args", "args", "static void chess(int n,int m,int x,int y)\n {\n if(x<0|| y<0 ||x>=n||y>=m)\n return;\n\n System.out.print(x+\" \"+y);\n\n chess(n, m, x, y-1);\n chess(n, m, x-1, y);\n chess(n, m, x, y+1);\n chess(n, m, x+1, y);\n }", "chess", "{\n if(x<0|| y<0 ||x>=n||y>=m)\n return;\n\n System.out.print(x+\" \"+y);\n\n chess(n, m, x, y-1);\n chess(n, m, x-1, y);\n chess(n, m, x, y+1);\n chess(n, m, x+1, y);\n }", "if(x<0|| y<0 ||x>=n||y>=m)\n return;", "x<0|| y<0 ||x>=n||y>=m", "x>=n", "x<0|| y<0 ||x>=n||y>=m", "x<0", "x", "0", "y<0", "y", "0", "x>=n", "x", "n", "y>=m", "y", "m", "return;", "System.out.print(x+\" \"+y)", "System.out.print", "System.out", "System", "System.out", "x+\" \"+y", "x+\" \"+y", "x", "\" \"", "y", "chess(n, m, x, y-1)", "chess", "n", "m", "x", "y-1", "y", "1", "chess(n, m, x-1, y)", "chess", "n", "m", "x-1", "x", "1", "y", "chess(n, m, x, y+1)", "chess", "n", "m", "x", "y+1", "y", "1", "chess(n, m, x+1, y)", "chess", "n", "m", "x+1", "x", "1", "y", "int n", "n", "int m", "m", "int x", "x", "int y", "y", "static int findCounts(int arr[], int n) \n { \n // Traverse all array elements \n int i = 0; \n while (i < n) \n { \n // If this element is already processed, \n // then nothing to do \n if (arr[i] <= 0) \n { \n i++; \n continue; \n } \n \n // Find index corresponding to this element \n // For example, index for 5 is 4 \n int elementIndex = arr[i] - 1; \n \n // If the elementIndex has an element that is not \n // processed yet, then first store that element \n // to arr[i] so that we don't lose anything. \n if (arr[elementIndex] > 0) \n { \n arr[i] = arr[elementIndex]; \n \n // After storing arr[elementIndex], change it \n // to store initial count of 'arr[i]' \n arr[elementIndex] = -1; \n } \n else \n { \n // If this is NOT first occurrence of arr[i], \n // then decrement its count. \n arr[elementIndex]--; \n \n // And initialize arr[i] as 0 means the element \n // 'i+1' is not seen so far \n arr[i] = 0; \n i++; \n } \n } \n int sum=0;\n \n \n for (int j = 1; j < n; j++) \n { if( Math.abs(arr[j])>1)\n sum++; }\n return sum;\n }", "findCounts", "{ \n // Traverse all array elements \n int i = 0; \n while (i < n) \n { \n // If this element is already processed, \n // then nothing to do \n if (arr[i] <= 0) \n { \n i++; \n continue; \n } \n \n // Find index corresponding to this element \n // For example, index for 5 is 4 \n int elementIndex = arr[i] - 1; \n \n // If the elementIndex has an element that is not \n // processed yet, then first store that element \n // to arr[i] so that we don't lose anything. \n if (arr[elementIndex] > 0) \n { \n arr[i] = arr[elementIndex]; \n \n // After storing arr[elementIndex], change it \n // to store initial count of 'arr[i]' \n arr[elementIndex] = -1; \n } \n else \n { \n // If this is NOT first occurrence of arr[i], \n // then decrement its count. \n arr[elementIndex]--; \n \n // And initialize arr[i] as 0 means the element \n // 'i+1' is not seen so far \n arr[i] = 0; \n i++; \n } \n } \n int sum=0;\n \n \n for (int j = 1; j < n; j++) \n { if( Math.abs(arr[j])>1)\n sum++; }\n return sum;\n }", "int i = 0;", "i", "0", "while (i < n) \n { \n // If this element is already processed, \n // then nothing to do \n if (arr[i] <= 0) \n { \n i++; \n continue; \n } \n \n // Find index corresponding to this element \n // For example, index for 5 is 4 \n int elementIndex = arr[i] - 1; \n \n // If the elementIndex has an element that is not \n // processed yet, then first store that element \n // to arr[i] so that we don't lose anything. \n if (arr[elementIndex] > 0) \n { \n arr[i] = arr[elementIndex]; \n \n // After storing arr[elementIndex], change it \n // to store initial count of 'arr[i]' \n arr[elementIndex] = -1; \n } \n else \n { \n // If this is NOT first occurrence of arr[i], \n // then decrement its count. \n arr[elementIndex]--; \n \n // And initialize arr[i] as 0 means the element \n // 'i+1' is not seen so far \n arr[i] = 0; \n i++; \n } \n }", "i < n", "i", "n", "{ \n // If this element is already processed, \n // then nothing to do \n if (arr[i] <= 0) \n { \n i++; \n continue; \n } \n \n // Find index corresponding to this element \n // For example, index for 5 is 4 \n int elementIndex = arr[i] - 1; \n \n // If the elementIndex has an element that is not \n // processed yet, then first store that element \n // to arr[i] so that we don't lose anything. \n if (arr[elementIndex] > 0) \n { \n arr[i] = arr[elementIndex]; \n \n // After storing arr[elementIndex], change it \n // to store initial count of 'arr[i]' \n arr[elementIndex] = -1; \n } \n else \n { \n // If this is NOT first occurrence of arr[i], \n // then decrement its count. \n arr[elementIndex]--; \n \n // And initialize arr[i] as 0 means the element \n // 'i+1' is not seen so far \n arr[i] = 0; \n i++; \n } \n }", "if (arr[i] <= 0) \n { \n i++; \n continue; \n }", "arr[i] <= 0", "arr[i]", "arr", "i", "0", "{ \n i++; \n continue; \n }", "i++", "i", "continue;", "int elementIndex = arr[i] - 1;", "elementIndex", "arr[i] - 1", "arr[i]", "arr", "i", "1", "if (arr[elementIndex] > 0) \n { \n arr[i] = arr[elementIndex]; \n \n // After storing arr[elementIndex], change it \n // to store initial count of 'arr[i]' \n arr[elementIndex] = -1; \n } \n else \n { \n // If this is NOT first occurrence of arr[i], \n // then decrement its count. \n arr[elementIndex]--; \n \n // And initialize arr[i] as 0 means the element \n // 'i+1' is not seen so far \n arr[i] = 0; \n i++; \n }", "arr[elementIndex] > 0", "arr[elementIndex]", "arr", "elementIndex", "0", "{ \n arr[i] = arr[elementIndex]; \n \n // After storing arr[elementIndex], change it \n // to store initial count of 'arr[i]' \n arr[elementIndex] = -1; \n }", "arr[i] = arr[elementIndex]", "arr[i]", "arr", "i", "arr[elementIndex]", "arr", "elementIndex", "arr[elementIndex] = -1", "arr[elementIndex]", "arr", "elementIndex", "-1", "1", "{ \n // If this is NOT first occurrence of arr[i], \n // then decrement its count. \n arr[elementIndex]--; \n \n // And initialize arr[i] as 0 means the element \n // 'i+1' is not seen so far \n arr[i] = 0; \n i++; \n }", "arr[elementIndex]--", "arr[elementIndex]", "arr", "elementIndex", "arr[i] = 0", "arr[i]", "arr", "i", "0", "i++", "i", "int sum=0;", "sum", "0", "for (int j = 1; j < n; j++) \n { if( Math.abs(arr[j])>1)\n sum++; }", "int j = 1;", "int j = 1;", "j", "1", "j < n", "j", "n", "j++", "j++", "j", "{ if( Math.abs(arr[j])>1)\n sum++; }", "{ if( Math.abs(arr[j])>1)\n sum++; }", "if( Math.abs(arr[j])>1)\n sum++;", "Math.abs(arr[j])>1", "Math.abs(arr[j])", "Math.abs", "Math", "arr[j]", "arr", "j", "1", "sum++", "sum", "return sum;", "sum", "int arr[]", "arr", "int n", "n", "static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }", "FastReader", "BufferedReader br;", "br", "StringTokenizer st;", "st", "public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }", "FastReader", "{\n br = new BufferedReader(new InputStreamReader(System.in));\n }", "br = new BufferedReader(new InputStreamReader(System.in))", "br", "new BufferedReader(new InputStreamReader(System.in))", "String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }", "next", "{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }", "while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "st == null || !st.hasMoreElements()", "st == null", "st", "null", "!st.hasMoreElements()", "st.hasMoreElements()", "st.hasMoreElements", "st", "{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "int nextInt() {\n return Integer.parseInt(next());\n }", "nextInt", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "long nextLong() {\n return Long.parseLong(next());\n }", "nextLong", "{\n return Long.parseLong(next());\n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "double nextDouble() {\n return Double.parseDouble(next());\n }", "nextDouble", "{\n return Double.parseDouble(next());\n }", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }", "nextLine", "{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }", "String str = \"\";", "str", "\"\"", "try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n str = br.readLine();\n }", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "return str;", "str", "public class Main {\n static List<Integer> al = new ArrayList<>();\n static int[] a;\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n static Set<Integer> s=new HashSet<>();\n\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n // StringBuffer sb = new StringBuffer();\n \n // String r=s.substring(0,q)+y+s.substring(q);\n // System.out.println(r);\n // int n=sc.nextInt();\n // int k=sc.nextInt();\n // int[] a=new int[n];\n // // ArrayList<Integer> a=new ArrayList<>();\n // for(int i=0;i<n;i++)\n // a[i]=(sc.nextInt());\n // int sum=0,c=0;\n // int l=0;\n \n \n String s=sc.nextLine();\n\n int c=0;\n boolean flag=false;\n for(int i=0;i<s.length();i++ )\n { if(s.charAt(i)=='R')\n {\n c=1;\n break;\n }\n }\n for(int i=0;i<s.length()-1;i++)\n {\n \n if(s.charAt(i)=='R' && s.charAt(i+1)=='R')\n c++;\n }\n \n System.out.println(c);\n \n \n \n\n \n \n \n\n }\n\n\n static void chess(int n,int m,int x,int y)\n {\n if(x<0|| y<0 ||x>=n||y>=m)\n return;\n\n System.out.print(x+\" \"+y);\n\n chess(n, m, x, y-1);\n chess(n, m, x-1, y);\n chess(n, m, x, y+1);\n chess(n, m, x+1, y);\n }\n // public static int countFrequencies(ArrayList<Integer> list) \n // { \n // // hashmap to store the frequency of element \n // Map<Integer, Integer> hm = new HashMap<>(); \n \n // for (Integer i : list) { \n // Integer j = hm.get(i); \n // hm.put(i, (j == null) ? 1 : j + 1); \n // } \n // int sum=0;\n \n // // displaying the occurrence of elements in the arraylist \n // for (Map.Entry<Integer, Integer> val : hm.entrySet()) { \n \n // if(val.getKey()>1){\n // sum++;\n\n // }\n // } \n // return sum;\n // } \n\n static int findCounts(int arr[], int n) \n { \n // Traverse all array elements \n int i = 0; \n while (i < n) \n { \n // If this element is already processed, \n // then nothing to do \n if (arr[i] <= 0) \n { \n i++; \n continue; \n } \n \n // Find index corresponding to this element \n // For example, index for 5 is 4 \n int elementIndex = arr[i] - 1; \n \n // If the elementIndex has an element that is not \n // processed yet, then first store that element \n // to arr[i] so that we don't lose anything. \n if (arr[elementIndex] > 0) \n { \n arr[i] = arr[elementIndex]; \n \n // After storing arr[elementIndex], change it \n // to store initial count of 'arr[i]' \n arr[elementIndex] = -1; \n } \n else \n { \n // If this is NOT first occurrence of arr[i], \n // then decrement its count. \n arr[elementIndex]--; \n \n // And initialize arr[i] as 0 means the element \n // 'i+1' is not seen so far \n arr[i] = 0; \n i++; \n } \n } \n int sum=0;\n \n \n for (int j = 1; j < n; j++) \n { if( Math.abs(arr[j])>1)\n sum++; }\n return sum;\n } \n\n\n \n \n \n\n\n\n\n // public static String sortString(String inputString) \n // { \n // // convert input string to Character array \n // Character tempArray[] = new Character[inputString.length()]; \n // for (int i = 0; i < inputString.length(); i++) { \n // tempArray[i] = inputString.charAt(i); \n // } \n \n \n // // Sort, ignoring case during sorting \n // Arrays.sort(tempArray, new Comparator<Character>(){ \n \n // @Override\n // public int compare(Character c1, Character c2) \n // { \n // // ignoring case \n // return Character.compare(Character.toLowerCase(c1), \n // Character.toLowerCase(c2)); \n // } \n // }); \n \n // // using StringBuilder to convert Character array to String \n // StringBuilder sb = new StringBuilder(tempArray.length); \n // for (Character c : tempArray) \n // sb.append(c.charValue()); \n \n // return sb.toString(); \n // } \n \n}", "public class Main {\n static List<Integer> al = new ArrayList<>();\n static int[] a;\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n static Set<Integer> s=new HashSet<>();\n\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n // StringBuffer sb = new StringBuffer();\n \n // String r=s.substring(0,q)+y+s.substring(q);\n // System.out.println(r);\n // int n=sc.nextInt();\n // int k=sc.nextInt();\n // int[] a=new int[n];\n // // ArrayList<Integer> a=new ArrayList<>();\n // for(int i=0;i<n;i++)\n // a[i]=(sc.nextInt());\n // int sum=0,c=0;\n // int l=0;\n \n \n String s=sc.nextLine();\n\n int c=0;\n boolean flag=false;\n for(int i=0;i<s.length();i++ )\n { if(s.charAt(i)=='R')\n {\n c=1;\n break;\n }\n }\n for(int i=0;i<s.length()-1;i++)\n {\n \n if(s.charAt(i)=='R' && s.charAt(i+1)=='R')\n c++;\n }\n \n System.out.println(c);\n \n \n \n\n \n \n \n\n }\n\n\n static void chess(int n,int m,int x,int y)\n {\n if(x<0|| y<0 ||x>=n||y>=m)\n return;\n\n System.out.print(x+\" \"+y);\n\n chess(n, m, x, y-1);\n chess(n, m, x-1, y);\n chess(n, m, x, y+1);\n chess(n, m, x+1, y);\n }\n // public static int countFrequencies(ArrayList<Integer> list) \n // { \n // // hashmap to store the frequency of element \n // Map<Integer, Integer> hm = new HashMap<>(); \n \n // for (Integer i : list) { \n // Integer j = hm.get(i); \n // hm.put(i, (j == null) ? 1 : j + 1); \n // } \n // int sum=0;\n \n // // displaying the occurrence of elements in the arraylist \n // for (Map.Entry<Integer, Integer> val : hm.entrySet()) { \n \n // if(val.getKey()>1){\n // sum++;\n\n // }\n // } \n // return sum;\n // } \n\n static int findCounts(int arr[], int n) \n { \n // Traverse all array elements \n int i = 0; \n while (i < n) \n { \n // If this element is already processed, \n // then nothing to do \n if (arr[i] <= 0) \n { \n i++; \n continue; \n } \n \n // Find index corresponding to this element \n // For example, index for 5 is 4 \n int elementIndex = arr[i] - 1; \n \n // If the elementIndex has an element that is not \n // processed yet, then first store that element \n // to arr[i] so that we don't lose anything. \n if (arr[elementIndex] > 0) \n { \n arr[i] = arr[elementIndex]; \n \n // After storing arr[elementIndex], change it \n // to store initial count of 'arr[i]' \n arr[elementIndex] = -1; \n } \n else \n { \n // If this is NOT first occurrence of arr[i], \n // then decrement its count. \n arr[elementIndex]--; \n \n // And initialize arr[i] as 0 means the element \n // 'i+1' is not seen so far \n arr[i] = 0; \n i++; \n } \n } \n int sum=0;\n \n \n for (int j = 1; j < n; j++) \n { if( Math.abs(arr[j])>1)\n sum++; }\n return sum;\n } \n\n\n \n \n \n\n\n\n\n // public static String sortString(String inputString) \n // { \n // // convert input string to Character array \n // Character tempArray[] = new Character[inputString.length()]; \n // for (int i = 0; i < inputString.length(); i++) { \n // tempArray[i] = inputString.charAt(i); \n // } \n \n \n // // Sort, ignoring case during sorting \n // Arrays.sort(tempArray, new Comparator<Character>(){ \n \n // @Override\n // public int compare(Character c1, Character c2) \n // { \n // // ignoring case \n // return Character.compare(Character.toLowerCase(c1), \n // Character.toLowerCase(c2)); \n // } \n // }); \n \n // // using StringBuilder to convert Character array to String \n // StringBuilder sb = new StringBuilder(tempArray.length); \n // for (Character c : tempArray) \n // sb.append(c.charValue()); \n \n // return sb.toString(); \n // } \n \n}", "Main" ]
// import java.lang.*; import java.util.*; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { static List<Integer> al = new ArrayList<>(); static int[] a; 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 Set<Integer> s=new HashSet<>(); public static void main(String[] args) { FastReader sc = new FastReader(); // StringBuffer sb = new StringBuffer(); // String r=s.substring(0,q)+y+s.substring(q); // System.out.println(r); // int n=sc.nextInt(); // int k=sc.nextInt(); // int[] a=new int[n]; // // ArrayList<Integer> a=new ArrayList<>(); // for(int i=0;i<n;i++) // a[i]=(sc.nextInt()); // int sum=0,c=0; // int l=0; String s=sc.nextLine(); int c=0; boolean flag=false; for(int i=0;i<s.length();i++ ) { if(s.charAt(i)=='R') { c=1; break; } } for(int i=0;i<s.length()-1;i++) { if(s.charAt(i)=='R' && s.charAt(i+1)=='R') c++; } System.out.println(c); } static void chess(int n,int m,int x,int y) { if(x<0|| y<0 ||x>=n||y>=m) return; System.out.print(x+" "+y); chess(n, m, x, y-1); chess(n, m, x-1, y); chess(n, m, x, y+1); chess(n, m, x+1, y); } // public static int countFrequencies(ArrayList<Integer> list) // { // // hashmap to store the frequency of element // Map<Integer, Integer> hm = new HashMap<>(); // for (Integer i : list) { // Integer j = hm.get(i); // hm.put(i, (j == null) ? 1 : j + 1); // } // int sum=0; // // displaying the occurrence of elements in the arraylist // for (Map.Entry<Integer, Integer> val : hm.entrySet()) { // if(val.getKey()>1){ // sum++; // } // } // return sum; // } static int findCounts(int arr[], int n) { // Traverse all array elements int i = 0; while (i < n) { // If this element is already processed, // then nothing to do if (arr[i] <= 0) { i++; continue; } // Find index corresponding to this element // For example, index for 5 is 4 int elementIndex = arr[i] - 1; // If the elementIndex has an element that is not // processed yet, then first store that element // to arr[i] so that we don't lose anything. if (arr[elementIndex] > 0) { arr[i] = arr[elementIndex]; // After storing arr[elementIndex], change it // to store initial count of 'arr[i]' arr[elementIndex] = -1; } else { // If this is NOT first occurrence of arr[i], // then decrement its count. arr[elementIndex]--; // And initialize arr[i] as 0 means the element // 'i+1' is not seen so far arr[i] = 0; i++; } } int sum=0; for (int j = 1; j < n; j++) { if( Math.abs(arr[j])>1) sum++; } return sum; } // public static String sortString(String inputString) // { // // convert input string to Character array // Character tempArray[] = new Character[inputString.length()]; // for (int i = 0; i < inputString.length(); i++) { // tempArray[i] = inputString.charAt(i); // } // // Sort, ignoring case during sorting // Arrays.sort(tempArray, new Comparator<Character>(){ // @Override // public int compare(Character c1, Character c2) // { // // ignoring case // return Character.compare(Character.toLowerCase(c1), // Character.toLowerCase(c2)); // } // }); // // using StringBuilder to convert Character array to String // StringBuilder sb = new StringBuilder(tempArray.length); // for (Character c : tempArray) // sb.append(c.charValue()); // return sb.toString(); // } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 20, 41, 13, 41, 13, 12, 13, 30, 0, 13, 4, 18, 13, 41, 13, 17, 14, 2, 4, 18, 13, 17, 17, 40, 13, 14, 2, 4, 18, 13, 17, 17, 0, 13, 17, 14, 2, 4, 18, 13, 17, 17, 0, 13, 17, 14, 2, 13, 17, 4, 18, 13, 17, 14, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 17, 4, 18, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 4, 18, 13, 17, 14, 2, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 23, 13, 6, 13, 41, 13, 18, 13, 13, 41, 13, 20, 17, 41, 13, 17, 41, 13, 17, 12, 13, 30, 14, 2, 13, 13, 30, 29, 17, 30, 0, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 13, 14, 2, 13, 17, 30, 29, 17, 29, 17, 12, 13, 30, 14, 4, 13, 29, 18, 13, 40, 13, 29, 40, 17, 12, 13, 30, 29, 2, 2, 17, 13, 2, 13, 17, 23, 13, 12, 13, 30, 42, 2, 4, 13, 40, 4, 13, 18, 13, 13, 40, 13, 12, 13, 30, 4, 13, 29, 4, 13, 12, 13, 30, 14, 40, 4, 13, 37, 20, 41, 13, 20, 41, 13, 4, 13, 42, 4, 13, 13, 30, 4, 18, 13, 13, 0, 13, 4, 13, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 14, 40, 4, 13, 37, 20, 41, 13, 17, 41, 13, 17, 41, 13, 4, 13, 14, 2, 13, 17, 30, 0, 13, 17, 0, 13, 4, 13, 14, 2, 2, 13, 17, 2, 17, 13, 30, 37, 20, 42, 17, 30, 14, 2, 2, 17, 13, 2, 13, 17, 30, 0, 13, 17, 0, 13, 2, 13, 17, 14, 2, 2, 13, 40, 17, 40, 4, 13, 13, 30, 29, 8, 13, 40, 13, 13, 30, 37, 20, 0, 13, 4, 13, 12, 13, 30, 29, 4, 13, 12, 13, 30, 14, 13, 30, 41, 13, 20, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 29, 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, 23, 13, 12, 13, 30, 14, 13, 30, 41, 13, 20, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 29, 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, 23, 13, 12, 13, 30, 14, 13, 30, 41, 13, 20, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 29, 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, 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 ], [ 556, 14 ], [ 556, 15 ], [ 15, 16 ], [ 15, 17 ], [ 556, 18 ], [ 18, 19 ], [ 18, 20 ], [ 556, 21 ], [ 21, 22 ], [ 556, 23 ], [ 23, 24 ], [ 556, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 27, 33 ], [ 33, 34 ], [ 33, 35 ], [ 27, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 37, 42 ], [ 36, 43 ], [ 43, 44 ], [ 27, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 46, 51 ], [ 45, 52 ], [ 52, 53 ], [ 52, 54 ], [ 27, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 56, 61 ], [ 55, 62 ], [ 62, 63 ], [ 62, 64 ], [ 27, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 65, 73 ], [ 73, 74 ], [ 76, 75 ], [ 83, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 80, 81 ], [ 80, 82 ], [ 83, 83 ], [ 83, 84 ], [ 83, 85 ], [ 76, 86 ], [ 86, 87 ], [ 86, 88 ], [ 73, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 73, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 98, 99 ], [ 98, 100 ], [ 93, 101 ], [ 101, 102 ], [ 102, 103 ], [ 101, 104 ], [ 93, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 105, 109 ], [ 109, 110 ], [ 110, 111 ], [ 109, 112 ], [ 105, 113 ], [ 113, 114 ], [ 114, 115 ], [ 113, 116 ], [ 27, 117 ], [ 117, 118 ], [ 118, 119 ], [ 25, 120 ], [ 120, 121 ], [ 556, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 124, 126 ], [ 126, 127 ], [ 126, 128 ], [ 122, 129 ], [ 129, 130 ], [ 129, 131 ], [ 122, 133 ], [ 133, 134 ], [ 133, 135 ], [ 122, 136 ], [ 136, 137 ], [ 136, 138 ], [ 122, 139 ], [ 139, 140 ], [ 139, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 142, 146 ], [ 146, 147 ], [ 147, 148 ], [ 142, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 149, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 153, 160 ], [ 160, 161 ], [ 161, 162 ], [ 161, 163 ], [ 163, 164 ], [ 164, 165 ], [ 163, 166 ], [ 149, 167 ], [ 167, 168 ], [ 168, 169 ], [ 168, 170 ], [ 167, 171 ], [ 171, 172 ], [ 172, 173 ], [ 141, 174 ], [ 174, 175 ], [ 122, 176 ], [ 176, 177 ], [ 176, 178 ], [ 178, 179 ], [ 179, 180 ], [ 180, 181 ], [ 179, 182 ], [ 182, 183 ], [ 183, 184 ], [ 183, 185 ], [ 185, 186 ], [ 179, 187 ], [ 187, 188 ], [ 188, 189 ], [ 122, 190 ], [ 190, 191 ], [ 190, 192 ], [ 192, 193 ], [ 193, 194 ], [ 194, 195 ], [ 195, 196 ], [ 195, 197 ], [ 194, 198 ], [ 198, 199 ], [ 198, 200 ], [ 190, 201 ], [ 201, 202 ], [ 122, 203 ], [ 203, 204 ], [ 203, 205 ], [ 205, 206 ], [ 206, 207 ], [ 207, 208 ], [ 208, 209 ], [ 207, 210 ], [ 210, 211 ], [ 211, 212 ], [ 211, 213 ], [ 213, 214 ], [ 213, 215 ], [ 206, 216 ], [ 216, 217 ], [ 122, 218 ], [ 218, 219 ], [ 218, 220 ], [ 220, 221 ], [ 221, 222 ], [ 220, 223 ], [ 223, 224 ], [ 224, 225 ], [ 122, 226 ], [ 226, 227 ], [ 226, 228 ], [ 228, 229 ], [ 229, 230 ], [ 230, 231 ], [ 231, 232 ], [ 229, 233 ], [ 233, 234 ], [ 228, 235 ], [ 235, 236 ], [ 235, 237 ], [ 228, 238 ], [ 238, 239 ], [ 238, 240 ], [ 240, 241 ], [ 228, 242 ], [ 242, 243 ], [ 243, 244 ], [ 243, 245 ], [ 242, 246 ], [ 246, 247 ], [ 247, 248 ], [ 248, 249 ], [ 247, 250 ], [ 246, 251 ], [ 251, 252 ], [ 251, 253 ], [ 253, 254 ], [ 228, 255 ], [ 255, 256 ], [ 256, 257 ], [ 257, 258 ], [ 122, 259 ], [ 259, 260 ], [ 259, 261 ], [ 261, 262 ], [ 262, 263 ], [ 263, 264 ], [ 264, 265 ], [ 263, 266 ], [ 266, 267 ], [ 122, 268 ], [ 268, 269 ], [ 268, 270 ], [ 270, 271 ], [ 271, 272 ], [ 272, 273 ], [ 273, 274 ], [ 271, 275 ], [ 275, 276 ], [ 270, 277 ], [ 277, 278 ], [ 277, 279 ], [ 270, 280 ], [ 280, 281 ], [ 280, 282 ], [ 270, 283 ], [ 283, 284 ], [ 283, 285 ], [ 285, 286 ], [ 270, 287 ], [ 287, 288 ], [ 288, 289 ], [ 288, 290 ], [ 287, 291 ], [ 291, 292 ], [ 292, 293 ], [ 292, 294 ], [ 291, 295 ], [ 295, 296 ], [ 295, 297 ], [ 297, 298 ], [ 270, 299 ], [ 299, 300 ], [ 300, 301 ], [ 301, 302 ], [ 301, 303 ], [ 300, 304 ], [ 304, 305 ], [ 304, 306 ], [ 299, 307 ], [ 307, 308 ], [ 308, 309 ], [ 270, 310 ], [ 310, 311 ], [ 310, 312 ], [ 312, 313 ], [ 313, 314 ], [ 314, 315 ], [ 315, 316 ], [ 315, 317 ], [ 314, 318 ], [ 318, 319 ], [ 318, 320 ], [ 313, 321 ], [ 321, 322 ], [ 322, 323 ], [ 322, 324 ], [ 321, 325 ], [ 325, 326 ], [ 325, 327 ], [ 327, 328 ], [ 327, 329 ], [ 313, 330 ], [ 330, 331 ], [ 331, 332 ], [ 332, 333 ], [ 332, 334 ], [ 334, 335 ], [ 331, 336 ], [ 336, 337 ], [ 337, 338 ], [ 337, 339 ], [ 330, 340 ], [ 340, 341 ], [ 341, 342 ], [ 342, 343 ], [ 342, 344 ], [ 344, 345 ], [ 342, 346 ], [ 330, 347 ], [ 347, 348 ], [ 348, 349 ], [ 312, 350 ], [ 350, 351 ], [ 350, 352 ], [ 352, 353 ], [ 122, 354 ], [ 354, 355 ], [ 354, 356 ], [ 356, 357 ], [ 357, 358 ], [ 358, 359 ], [ 122, 360 ], [ 360, 361 ], [ 360, 362 ], [ 362, 363 ], [ 363, 364 ], [ 363, 365 ], [ 365, 366 ], [ 366, 367 ], [ 366, 368 ], [ 369, 370 ], [ 369, 371 ], [ 365, 372 ], [ 372, 373 ], [ 373, 374 ], [ 374, 375 ], [ 374, 376 ], [ 372, 377 ], [ 377, 378 ], [ 377, 379 ], [ 372, 380 ], [ 380, 381 ], [ 381, 382 ], [ 372, 383 ], [ 384, 384 ], [ 384, 385 ], [ 385, 386 ], [ 386, 387 ], [ 386, 388 ], [ 385, 389 ], [ 389, 390 ], [ 390, 391 ], [ 365, 392 ], [ 392, 393 ], [ 363, 394 ], [ 394, 395 ], [ 395, 396 ], [ 395, 397 ], [ 394, 399 ], [ 399, 400 ], [ 400, 401 ], [ 401, 402 ], [ 401, 403 ], [ 399, 404 ], [ 404, 405 ], [ 404, 406 ], [ 399, 407 ], [ 407, 408 ], [ 408, 409 ], [ 399, 410 ], [ 411, 411 ], [ 411, 412 ], [ 412, 413 ], [ 413, 414 ], [ 413, 415 ], [ 412, 416 ], [ 416, 417 ], [ 417, 418 ], [ 394, 419 ], [ 419, 420 ], [ 360, 421 ], [ 421, 422 ], [ 360, 423 ], [ 423, 424 ], [ 122, 425 ], [ 425, 426 ], [ 425, 427 ], [ 427, 428 ], [ 428, 429 ], [ 428, 430 ], [ 430, 431 ], [ 431, 432 ], [ 431, 433 ], [ 434, 435 ], [ 434, 436 ], [ 430, 437 ], [ 437, 438 ], [ 438, 439 ], [ 439, 440 ], [ 439, 441 ], [ 437, 442 ], [ 442, 443 ], [ 442, 444 ], [ 437, 445 ], [ 445, 446 ], [ 446, 447 ], [ 437, 448 ], [ 449, 449 ], [ 449, 450 ], [ 450, 451 ], [ 451, 452 ], [ 451, 453 ], [ 450, 454 ], [ 454, 455 ], [ 455, 456 ], [ 430, 457 ], [ 457, 458 ], [ 428, 459 ], [ 459, 460 ], [ 460, 461 ], [ 460, 462 ], [ 459, 464 ], [ 464, 465 ], [ 465, 466 ], [ 466, 467 ], [ 466, 468 ], [ 464, 469 ], [ 469, 470 ], [ 469, 471 ], [ 464, 472 ], [ 472, 473 ], [ 473, 474 ], [ 464, 475 ], [ 476, 476 ], [ 476, 477 ], [ 477, 478 ], [ 478, 479 ], [ 478, 480 ], [ 477, 481 ], [ 481, 482 ], [ 482, 483 ], [ 459, 484 ], [ 484, 485 ], [ 425, 486 ], [ 486, 487 ], [ 425, 488 ], [ 488, 489 ], [ 122, 490 ], [ 490, 491 ], [ 490, 492 ], [ 492, 493 ], [ 493, 494 ], [ 493, 495 ], [ 495, 496 ], [ 496, 497 ], [ 496, 498 ], [ 499, 500 ], [ 499, 501 ], [ 495, 502 ], [ 502, 503 ], [ 503, 504 ], [ 504, 505 ], [ 504, 506 ], [ 502, 507 ], [ 507, 508 ], [ 507, 509 ], [ 502, 510 ], [ 510, 511 ], [ 511, 512 ], [ 502, 513 ], [ 514, 514 ], [ 514, 515 ], [ 515, 516 ], [ 516, 517 ], [ 516, 518 ], [ 515, 519 ], [ 519, 520 ], [ 520, 521 ], [ 495, 522 ], [ 522, 523 ], [ 493, 524 ], [ 524, 525 ], [ 525, 526 ], [ 525, 527 ], [ 524, 529 ], [ 529, 530 ], [ 530, 531 ], [ 531, 532 ], [ 531, 533 ], [ 529, 534 ], [ 534, 535 ], [ 534, 536 ], [ 529, 537 ], [ 537, 538 ], [ 538, 539 ], [ 529, 540 ], [ 541, 541 ], [ 541, 542 ], [ 542, 543 ], [ 543, 544 ], [ 543, 545 ], [ 542, 546 ], [ 546, 547 ], [ 547, 548 ], [ 524, 549 ], [ 549, 550 ], [ 490, 551 ], [ 551, 552 ], [ 490, 553 ], [ 553, 554 ], [ 0, 555 ], [ 555, 556 ], [ 555, 557 ] ]
[ "import java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.NoSuchElementException;\n\npublic class Main{\n\tstatic FastScanner sc = new FastScanner();\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\tstatic int n;\n\tstatic String s;\n\t//static HashMap <String, Integer> map;\n\t\n\tpublic static void main(String[] args) {\n\t\ts = sc.next();\n\t\t\n\t\tint c = 0;\n\t\tif (s.charAt(0)=='R')\n\t\t\tc++;\n\t\tif (s.charAt(1)=='R')\n\t\t\tc+=2;\n\t\tif (s.charAt(2)=='R')\n\t\t\tc+=4;\n\t\t\n\t\tif (c==0)\n\t\t\tout.println(0);\n\t\t\n\t\telse if (c==1 || c==2 || c==4 || c==5)\n\t\t\tout.println(1);\n\t\t\n\t\telse if (c==3 || c==6)\n\t\t\tout.println(2);\n\t\t\n\t\telse if (c==7)\n\t\t\tout.println(3);\n\t\t\n\t\telse\n\t\t\tout.println(0);\n\t\t\n\t\t\n\t\tout.flush();\n\t\t\n\t}\n\t\n\t\n\t\n\tstatic class FastScanner {\n\t private final InputStream in = System.in;\n\t private final byte[] buffer = new byte[1024];\n\t private int ptr = 0;\n\t private int buflen = 0;\n\n\t private boolean hasNextByte() {\n\t if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t }\n\n\t private int readByte() {\n\t if (hasNextByte()) return buffer[ptr++];\n\t else return -1;\n\t }\n\n\t private static boolean isPrintableChar(int c) {\n\t return 33 <= c && c <= 126;\n\t }\n\n\t private void skipUnprintable() {\n\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t }\n\n\t public boolean hasNext() {\n\t skipUnprintable();\n\t return hasNextByte();\n\t }\n\n\t public String next() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t StringBuilder sb = new StringBuilder();\n\t int b = readByte();\n\t while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }\n\t return sb.toString();\n\t }\n\t \n\t public double nextDouble () {\n\t \treturn Double.parseDouble(next());\n\t }\n\n\t public long nextLong() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t long n = 0;\n\t boolean minus = false;\n\t int b = readByte();\n\t if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }\n\t if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }\n\t while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }\n\t }\n\n\t public int nextInt() {\n\t return (int) nextLong();\n\t }\n\n\t public int[] nextIntArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }\n\t }\n\n\t public long[] nextLongArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }\n\t }\n\t \n\t public double [] nextDoubleArray(int N, boolean oneBased) {\n\t\t if (oneBased) {\n\t\t double [] array = new double[N + 1];\n\t\t for (int i = 1; i <= N; i++) {\n\t\t array[i] = sc.nextDouble();\n\t\t }\n\t\t return array;\n\t\t } else {\n\t\t double[] array = new double[N];\n\t\t for (int i = 0; i < N; i++) {\n\t\t array[i] = sc.nextDouble();\n\t\t }\n\t\t return array;\n\t\t }\n\t\t }\n\t\t \n\t }\n\t\n\t\n}", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.util.NoSuchElementException;", "NoSuchElementException", "java.util", "public class Main{\n\tstatic FastScanner sc = new FastScanner();\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\tstatic int n;\n\tstatic String s;\n\t//static HashMap <String, Integer> map;\n\t\n\tpublic static void main(String[] args) {\n\t\ts = sc.next();\n\t\t\n\t\tint c = 0;\n\t\tif (s.charAt(0)=='R')\n\t\t\tc++;\n\t\tif (s.charAt(1)=='R')\n\t\t\tc+=2;\n\t\tif (s.charAt(2)=='R')\n\t\t\tc+=4;\n\t\t\n\t\tif (c==0)\n\t\t\tout.println(0);\n\t\t\n\t\telse if (c==1 || c==2 || c==4 || c==5)\n\t\t\tout.println(1);\n\t\t\n\t\telse if (c==3 || c==6)\n\t\t\tout.println(2);\n\t\t\n\t\telse if (c==7)\n\t\t\tout.println(3);\n\t\t\n\t\telse\n\t\t\tout.println(0);\n\t\t\n\t\t\n\t\tout.flush();\n\t\t\n\t}\n\t\n\t\n\t\n\tstatic class FastScanner {\n\t private final InputStream in = System.in;\n\t private final byte[] buffer = new byte[1024];\n\t private int ptr = 0;\n\t private int buflen = 0;\n\n\t private boolean hasNextByte() {\n\t if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t }\n\n\t private int readByte() {\n\t if (hasNextByte()) return buffer[ptr++];\n\t else return -1;\n\t }\n\n\t private static boolean isPrintableChar(int c) {\n\t return 33 <= c && c <= 126;\n\t }\n\n\t private void skipUnprintable() {\n\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t }\n\n\t public boolean hasNext() {\n\t skipUnprintable();\n\t return hasNextByte();\n\t }\n\n\t public String next() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t StringBuilder sb = new StringBuilder();\n\t int b = readByte();\n\t while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }\n\t return sb.toString();\n\t }\n\t \n\t public double nextDouble () {\n\t \treturn Double.parseDouble(next());\n\t }\n\n\t public long nextLong() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t long n = 0;\n\t boolean minus = false;\n\t int b = readByte();\n\t if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }\n\t if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }\n\t while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }\n\t }\n\n\t public int nextInt() {\n\t return (int) nextLong();\n\t }\n\n\t public int[] nextIntArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }\n\t }\n\n\t public long[] nextLongArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }\n\t }\n\t \n\t public double [] nextDoubleArray(int N, boolean oneBased) {\n\t\t if (oneBased) {\n\t\t double [] array = new double[N + 1];\n\t\t for (int i = 1; i <= N; i++) {\n\t\t array[i] = sc.nextDouble();\n\t\t }\n\t\t return array;\n\t\t } else {\n\t\t double[] array = new double[N];\n\t\t for (int i = 0; i < N; i++) {\n\t\t array[i] = sc.nextDouble();\n\t\t }\n\t\t return array;\n\t\t }\n\t\t }\n\t\t \n\t }\n\t\n\t\n}", "Main", "static FastScanner sc = new FastScanner();", "sc", "new FastScanner()", "static PrintWriter out = new PrintWriter(System.out);", "out", "new PrintWriter(System.out)", "static int n;", "n", "static String s;", "s", "public static void main(String[] args) {\n\t\ts = sc.next();\n\t\t\n\t\tint c = 0;\n\t\tif (s.charAt(0)=='R')\n\t\t\tc++;\n\t\tif (s.charAt(1)=='R')\n\t\t\tc+=2;\n\t\tif (s.charAt(2)=='R')\n\t\t\tc+=4;\n\t\t\n\t\tif (c==0)\n\t\t\tout.println(0);\n\t\t\n\t\telse if (c==1 || c==2 || c==4 || c==5)\n\t\t\tout.println(1);\n\t\t\n\t\telse if (c==3 || c==6)\n\t\t\tout.println(2);\n\t\t\n\t\telse if (c==7)\n\t\t\tout.println(3);\n\t\t\n\t\telse\n\t\t\tout.println(0);\n\t\t\n\t\t\n\t\tout.flush();\n\t\t\n\t}", "main", "{\n\t\ts = sc.next();\n\t\t\n\t\tint c = 0;\n\t\tif (s.charAt(0)=='R')\n\t\t\tc++;\n\t\tif (s.charAt(1)=='R')\n\t\t\tc+=2;\n\t\tif (s.charAt(2)=='R')\n\t\t\tc+=4;\n\t\t\n\t\tif (c==0)\n\t\t\tout.println(0);\n\t\t\n\t\telse if (c==1 || c==2 || c==4 || c==5)\n\t\t\tout.println(1);\n\t\t\n\t\telse if (c==3 || c==6)\n\t\t\tout.println(2);\n\t\t\n\t\telse if (c==7)\n\t\t\tout.println(3);\n\t\t\n\t\telse\n\t\t\tout.println(0);\n\t\t\n\t\t\n\t\tout.flush();\n\t\t\n\t}", "s = sc.next()", "s", "sc.next()", "sc.next", "sc", "int c = 0;", "c", "0", "if (s.charAt(0)=='R')\n\t\t\tc++;", "s.charAt(0)=='R'", "s.charAt(0)", "s.charAt", "s", "0", "'R'", "c++", "c", "if (s.charAt(1)=='R')\n\t\t\tc+=2;", "s.charAt(1)=='R'", "s.charAt(1)", "s.charAt", "s", "1", "'R'", "c+=2", "c", "2", "if (s.charAt(2)=='R')\n\t\t\tc+=4;", "s.charAt(2)=='R'", "s.charAt(2)", "s.charAt", "s", "2", "'R'", "c+=4", "c", "4", "if (c==0)\n\t\t\tout.println(0);\n\t\t\n\t\telse if (c==1 || c==2 || c==4 || c==5)\n\t\t\tout.println(1);\n\t\t\n\t\telse if (c==3 || c==6)\n\t\t\tout.println(2);\n\t\t\n\t\telse if (c==7)\n\t\t\tout.println(3);\n\t\t\n\t\telse\n\t\t\tout.println(0);", "c==0", "c", "0", "out.println(0)", "out.println", "out", "0", "if (c==1 || c==2 || c==4 || c==5)\n\t\t\tout.println(1);\n\t\t\n\t\telse if (c==3 || c==6)\n\t\t\tout.println(2);\n\t\t\n\t\telse if (c==7)\n\t\t\tout.println(3);\n\t\t\n\t\telse\n\t\t\tout.println(0);", "c==1 || c==2 || c==4 || c==5", "c==4", "c==1 || c==2 || c==4 || c==5", "c==1", "c", "1", "c==2", "c", "2", "c==4", "c", "4", "c==5", "c", "5", "out.println(1)", "out.println", "out", "1", "if (c==3 || c==6)\n\t\t\tout.println(2);\n\t\t\n\t\telse if (c==7)\n\t\t\tout.println(3);\n\t\t\n\t\telse\n\t\t\tout.println(0);", "c==3 || c==6", "c==3", "c", "3", "c==6", "c", "6", "out.println(2)", "out.println", "out", "2", "if (c==7)\n\t\t\tout.println(3);\n\t\t\n\t\telse\n\t\t\tout.println(0);", "c==7", "c", "7", "out.println(3)", "out.println", "out", "3", "out.println(0)", "out.println", "out", "0", "out.flush()", "out.flush", "out", "String[] args", "args", "static class FastScanner {\n\t private final InputStream in = System.in;\n\t private final byte[] buffer = new byte[1024];\n\t private int ptr = 0;\n\t private int buflen = 0;\n\n\t private boolean hasNextByte() {\n\t if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t }\n\n\t private int readByte() {\n\t if (hasNextByte()) return buffer[ptr++];\n\t else return -1;\n\t }\n\n\t private static boolean isPrintableChar(int c) {\n\t return 33 <= c && c <= 126;\n\t }\n\n\t private void skipUnprintable() {\n\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t }\n\n\t public boolean hasNext() {\n\t skipUnprintable();\n\t return hasNextByte();\n\t }\n\n\t public String next() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t StringBuilder sb = new StringBuilder();\n\t int b = readByte();\n\t while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }\n\t return sb.toString();\n\t }\n\t \n\t public double nextDouble () {\n\t \treturn Double.parseDouble(next());\n\t }\n\n\t public long nextLong() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t long n = 0;\n\t boolean minus = false;\n\t int b = readByte();\n\t if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }\n\t if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }\n\t while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }\n\t }\n\n\t public int nextInt() {\n\t return (int) nextLong();\n\t }\n\n\t public int[] nextIntArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }\n\t }\n\n\t public long[] nextLongArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }\n\t }\n\t \n\t public double [] nextDoubleArray(int N, boolean oneBased) {\n\t\t if (oneBased) {\n\t\t double [] array = new double[N + 1];\n\t\t for (int i = 1; i <= N; i++) {\n\t\t array[i] = sc.nextDouble();\n\t\t }\n\t\t return array;\n\t\t } else {\n\t\t double[] array = new double[N];\n\t\t for (int i = 0; i < N; i++) {\n\t\t array[i] = sc.nextDouble();\n\t\t }\n\t\t return array;\n\t\t }\n\t\t }\n\t\t \n\t }", "FastScanner", "private final InputStream in = System.in;", "in", "System.in", "System", "System.in", "private final byte[] buffer = new byte[1024];", "buffer", "new byte[1024]", "1024", "private int ptr = 0;", "ptr", "0", "private int buflen = 0;", "buflen", "0", "private boolean hasNextByte() {\n\t if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t }", "hasNextByte", "{\n\t if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t }", "if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }", "ptr < buflen", "ptr", "buflen", "{\n\t return true;\n\t }", "return true;", "true", "{\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }", "ptr = 0", "ptr", "0", "try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }", "catch (IOException e) {\n\t e.printStackTrace();\n\t }", "IOException e", "{\n\t e.printStackTrace();\n\t }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t buflen = in.read(buffer);\n\t }", "buflen = in.read(buffer)", "buflen", "in.read(buffer)", "in.read", "in", "buffer", "if (buflen <= 0) {\n\t return false;\n\t }", "buflen <= 0", "buflen", "0", "{\n\t return false;\n\t }", "return false;", "false", "return true;", "true", "private int readByte() {\n\t if (hasNextByte()) return buffer[ptr++];\n\t else return -1;\n\t }", "readByte", "{\n\t if (hasNextByte()) return buffer[ptr++];\n\t else return -1;\n\t }", "if (hasNextByte()) return buffer[ptr++];\n\t else return -1;", "hasNextByte()", "hasNextByte", "return buffer[ptr++];", "buffer[ptr++]", "buffer", "ptr++", "ptr", "return -1;", "-1", "1", "private static boolean isPrintableChar(int c) {\n\t return 33 <= c && c <= 126;\n\t }", "isPrintableChar", "{\n\t return 33 <= c && c <= 126;\n\t }", "return 33 <= c && c <= 126;", "33 <= c && c <= 126", "33 <= c", "33", "c", "c <= 126", "c", "126", "int c", "c", "private void skipUnprintable() {\n\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t }", "skipUnprintable", "{\n\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t }", "while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;", "hasNextByte() && !isPrintableChar(buffer[ptr])", "hasNextByte()", "hasNextByte", "!isPrintableChar(buffer[ptr])", "isPrintableChar(buffer[ptr])", "isPrintableChar", "buffer[ptr]", "buffer", "ptr", "ptr++", "ptr", "public boolean hasNext() {\n\t skipUnprintable();\n\t return hasNextByte();\n\t }", "hasNext", "{\n\t skipUnprintable();\n\t return hasNextByte();\n\t }", "skipUnprintable()", "skipUnprintable", "return hasNextByte();", "hasNextByte()", "hasNextByte", "public String next() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t StringBuilder sb = new StringBuilder();\n\t int b = readByte();\n\t while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }\n\t return sb.toString();\n\t }", "next", "{\n\t if (!hasNext()) throw new NoSuchElementException();\n\t StringBuilder sb = new StringBuilder();\n\t int b = readByte();\n\t while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }\n\t return sb.toString();\n\t }", "if (!hasNext()) throw new NoSuchElementException();", "!hasNext()", "hasNext()", "hasNext", "throw new NoSuchElementException();", "new NoSuchElementException()", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "int b = readByte();", "b", "readByte()", "readByte", "while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }", "isPrintableChar(b)", "isPrintableChar", "b", "{\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }", "sb.appendCodePoint(b)", "sb.appendCodePoint", "sb", "b", "b = readByte()", "b", "readByte()", "readByte", "return sb.toString();", "sb.toString()", "sb.toString", "sb", "public 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", "public long nextLong() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t long n = 0;\n\t boolean minus = false;\n\t int b = readByte();\n\t if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }\n\t if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }\n\t while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }\n\t }", "nextLong", "{\n\t if (!hasNext()) throw new NoSuchElementException();\n\t long n = 0;\n\t boolean minus = false;\n\t int b = readByte();\n\t if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }\n\t if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }\n\t while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }\n\t }", "if (!hasNext()) throw new NoSuchElementException();", "!hasNext()", "hasNext()", "hasNext", "throw new NoSuchElementException();", "new NoSuchElementException()", "long n = 0;", "n", "0", "boolean minus = false;", "minus", "false", "int b = readByte();", "b", "readByte()", "readByte", "if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }", "b == '-'", "b", "'-'", "{\n\t minus = true;\n\t b = readByte();\n\t }", "minus = true", "minus", "true", "b = readByte()", "b", "readByte()", "readByte", "if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }", "b < '0' || '9' < b", "b < '0'", "b", "'0'", "'9' < b", "'9'", "b", "{\n\t throw new NumberFormatException();\n\t }", "throw new NumberFormatException();", "new NumberFormatException()", "while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }", "true", "{\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }", "if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }", "'0' <= b && b <= '9'", "'0' <= b", "'0'", "b", "b <= '9'", "b", "'9'", "{\n\t n *= 10;\n\t n += b - '0';\n\t }", "n *= 10", "n", "10", "n += b - '0'", "n", "b - '0'", "b", "'0'", "if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }", "b == -1 || !isPrintableChar(b)", "b == -1", "b", "-1", "1", "!isPrintableChar(b)", "isPrintableChar(b)", "isPrintableChar", "b", "{\n\t return minus ? -n : n;\n\t }", "return minus ? -n : n;", "minus ? -n : n", "minus", "-n", "n", "n", "{\n\t throw new NumberFormatException();\n\t }", "throw new NumberFormatException();", "new NumberFormatException()", "b = readByte()", "b", "readByte()", "readByte", "public int nextInt() {\n\t return (int) nextLong();\n\t }", "nextInt", "{\n\t return (int) nextLong();\n\t }", "return (int) nextLong();", "(int) nextLong()", "nextLong", "public int[] nextIntArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }\n\t }", "nextIntArray", "{\n\t if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }\n\t }", "if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }", "oneBased", "{\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }", "int[] array = new int[N + 1];", "array", "new int[N + 1]", "N + 1", "N", "1", "for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }", "int i = 1;", "int i = 1;", "i", "1", "i <= N", "i", "N", "i++", "i++", "i", "{\n\t array[i] = sc.nextInt();\n\t }", "{\n\t array[i] = sc.nextInt();\n\t }", "array[i] = sc.nextInt()", "array[i]", "array", "i", "sc.nextInt()", "sc.nextInt", "sc", "return array;", "array", "{\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }", "int[] array = new int[N];", "array", "new int[N]", "N", "for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n\t array[i] = sc.nextInt();\n\t }", "{\n\t array[i] = sc.nextInt();\n\t }", "array[i] = sc.nextInt()", "array[i]", "array", "i", "sc.nextInt()", "sc.nextInt", "sc", "return array;", "array", "int N", "N", "boolean oneBased", "oneBased", "public long[] nextLongArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }\n\t }", "nextLongArray", "{\n\t if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }\n\t }", "if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }", "oneBased", "{\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }", "long[] array = new long[N + 1];", "array", "new long[N + 1]", "N + 1", "N", "1", "for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }", "int i = 1;", "int i = 1;", "i", "1", "i <= N", "i", "N", "i++", "i++", "i", "{\n\t array[i] = sc.nextLong();\n\t }", "{\n\t array[i] = sc.nextLong();\n\t }", "array[i] = sc.nextLong()", "array[i]", "array", "i", "sc.nextLong()", "sc.nextLong", "sc", "return array;", "array", "{\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }", "long[] array = new long[N];", "array", "new long[N]", "N", "for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n\t array[i] = sc.nextLong();\n\t }", "{\n\t array[i] = sc.nextLong();\n\t }", "array[i] = sc.nextLong()", "array[i]", "array", "i", "sc.nextLong()", "sc.nextLong", "sc", "return array;", "array", "int N", "N", "boolean oneBased", "oneBased", "public double [] nextDoubleArray(int N, boolean oneBased) {\n\t\t if (oneBased) {\n\t\t double [] array = new double[N + 1];\n\t\t for (int i = 1; i <= N; i++) {\n\t\t array[i] = sc.nextDouble();\n\t\t }\n\t\t return array;\n\t\t } else {\n\t\t double[] array = new double[N];\n\t\t for (int i = 0; i < N; i++) {\n\t\t array[i] = sc.nextDouble();\n\t\t }\n\t\t return array;\n\t\t }\n\t\t }", "nextDoubleArray", "{\n\t\t if (oneBased) {\n\t\t double [] array = new double[N + 1];\n\t\t for (int i = 1; i <= N; i++) {\n\t\t array[i] = sc.nextDouble();\n\t\t }\n\t\t return array;\n\t\t } else {\n\t\t double[] array = new double[N];\n\t\t for (int i = 0; i < N; i++) {\n\t\t array[i] = sc.nextDouble();\n\t\t }\n\t\t return array;\n\t\t }\n\t\t }", "if (oneBased) {\n\t\t double [] array = new double[N + 1];\n\t\t for (int i = 1; i <= N; i++) {\n\t\t array[i] = sc.nextDouble();\n\t\t }\n\t\t return array;\n\t\t } else {\n\t\t double[] array = new double[N];\n\t\t for (int i = 0; i < N; i++) {\n\t\t array[i] = sc.nextDouble();\n\t\t }\n\t\t return array;\n\t\t }", "oneBased", "{\n\t\t double [] array = new double[N + 1];\n\t\t for (int i = 1; i <= N; i++) {\n\t\t array[i] = sc.nextDouble();\n\t\t }\n\t\t return array;\n\t\t }", "double [] array = new double[N + 1];", "array", "new double[N + 1]", "N + 1", "N", "1", "for (int i = 1; i <= N; i++) {\n\t\t array[i] = sc.nextDouble();\n\t\t }", "int i = 1;", "int i = 1;", "i", "1", "i <= N", "i", "N", "i++", "i++", "i", "{\n\t\t array[i] = sc.nextDouble();\n\t\t }", "{\n\t\t array[i] = sc.nextDouble();\n\t\t }", "array[i] = sc.nextDouble()", "array[i]", "array", "i", "sc.nextDouble()", "sc.nextDouble", "sc", "return array;", "array", "{\n\t\t double[] array = new double[N];\n\t\t for (int i = 0; i < N; i++) {\n\t\t array[i] = sc.nextDouble();\n\t\t }\n\t\t return array;\n\t\t }", "double[] array = new double[N];", "array", "new double[N]", "N", "for (int i = 0; i < N; i++) {\n\t\t array[i] = sc.nextDouble();\n\t\t }", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n\t\t array[i] = sc.nextDouble();\n\t\t }", "{\n\t\t array[i] = sc.nextDouble();\n\t\t }", "array[i] = sc.nextDouble()", "array[i]", "array", "i", "sc.nextDouble()", "sc.nextDouble", "sc", "return array;", "array", "int N", "N", "boolean oneBased", "oneBased", "public class Main{\n\tstatic FastScanner sc = new FastScanner();\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\tstatic int n;\n\tstatic String s;\n\t//static HashMap <String, Integer> map;\n\t\n\tpublic static void main(String[] args) {\n\t\ts = sc.next();\n\t\t\n\t\tint c = 0;\n\t\tif (s.charAt(0)=='R')\n\t\t\tc++;\n\t\tif (s.charAt(1)=='R')\n\t\t\tc+=2;\n\t\tif (s.charAt(2)=='R')\n\t\t\tc+=4;\n\t\t\n\t\tif (c==0)\n\t\t\tout.println(0);\n\t\t\n\t\telse if (c==1 || c==2 || c==4 || c==5)\n\t\t\tout.println(1);\n\t\t\n\t\telse if (c==3 || c==6)\n\t\t\tout.println(2);\n\t\t\n\t\telse if (c==7)\n\t\t\tout.println(3);\n\t\t\n\t\telse\n\t\t\tout.println(0);\n\t\t\n\t\t\n\t\tout.flush();\n\t\t\n\t}\n\t\n\t\n\t\n\tstatic class FastScanner {\n\t private final InputStream in = System.in;\n\t private final byte[] buffer = new byte[1024];\n\t private int ptr = 0;\n\t private int buflen = 0;\n\n\t private boolean hasNextByte() {\n\t if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t }\n\n\t private int readByte() {\n\t if (hasNextByte()) return buffer[ptr++];\n\t else return -1;\n\t }\n\n\t private static boolean isPrintableChar(int c) {\n\t return 33 <= c && c <= 126;\n\t }\n\n\t private void skipUnprintable() {\n\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t }\n\n\t public boolean hasNext() {\n\t skipUnprintable();\n\t return hasNextByte();\n\t }\n\n\t public String next() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t StringBuilder sb = new StringBuilder();\n\t int b = readByte();\n\t while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }\n\t return sb.toString();\n\t }\n\t \n\t public double nextDouble () {\n\t \treturn Double.parseDouble(next());\n\t }\n\n\t public long nextLong() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t long n = 0;\n\t boolean minus = false;\n\t int b = readByte();\n\t if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }\n\t if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }\n\t while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }\n\t }\n\n\t public int nextInt() {\n\t return (int) nextLong();\n\t }\n\n\t public int[] nextIntArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }\n\t }\n\n\t public long[] nextLongArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }\n\t }\n\t \n\t public double [] nextDoubleArray(int N, boolean oneBased) {\n\t\t if (oneBased) {\n\t\t double [] array = new double[N + 1];\n\t\t for (int i = 1; i <= N; i++) {\n\t\t array[i] = sc.nextDouble();\n\t\t }\n\t\t return array;\n\t\t } else {\n\t\t double[] array = new double[N];\n\t\t for (int i = 0; i < N; i++) {\n\t\t array[i] = sc.nextDouble();\n\t\t }\n\t\t return array;\n\t\t }\n\t\t }\n\t\t \n\t }\n\t\n\t\n}", "public class Main{\n\tstatic FastScanner sc = new FastScanner();\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\tstatic int n;\n\tstatic String s;\n\t//static HashMap <String, Integer> map;\n\t\n\tpublic static void main(String[] args) {\n\t\ts = sc.next();\n\t\t\n\t\tint c = 0;\n\t\tif (s.charAt(0)=='R')\n\t\t\tc++;\n\t\tif (s.charAt(1)=='R')\n\t\t\tc+=2;\n\t\tif (s.charAt(2)=='R')\n\t\t\tc+=4;\n\t\t\n\t\tif (c==0)\n\t\t\tout.println(0);\n\t\t\n\t\telse if (c==1 || c==2 || c==4 || c==5)\n\t\t\tout.println(1);\n\t\t\n\t\telse if (c==3 || c==6)\n\t\t\tout.println(2);\n\t\t\n\t\telse if (c==7)\n\t\t\tout.println(3);\n\t\t\n\t\telse\n\t\t\tout.println(0);\n\t\t\n\t\t\n\t\tout.flush();\n\t\t\n\t}\n\t\n\t\n\t\n\tstatic class FastScanner {\n\t private final InputStream in = System.in;\n\t private final byte[] buffer = new byte[1024];\n\t private int ptr = 0;\n\t private int buflen = 0;\n\n\t private boolean hasNextByte() {\n\t if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t }\n\n\t private int readByte() {\n\t if (hasNextByte()) return buffer[ptr++];\n\t else return -1;\n\t }\n\n\t private static boolean isPrintableChar(int c) {\n\t return 33 <= c && c <= 126;\n\t }\n\n\t private void skipUnprintable() {\n\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t }\n\n\t public boolean hasNext() {\n\t skipUnprintable();\n\t return hasNextByte();\n\t }\n\n\t public String next() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t StringBuilder sb = new StringBuilder();\n\t int b = readByte();\n\t while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }\n\t return sb.toString();\n\t }\n\t \n\t public double nextDouble () {\n\t \treturn Double.parseDouble(next());\n\t }\n\n\t public long nextLong() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t long n = 0;\n\t boolean minus = false;\n\t int b = readByte();\n\t if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }\n\t if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }\n\t while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }\n\t }\n\n\t public int nextInt() {\n\t return (int) nextLong();\n\t }\n\n\t public int[] nextIntArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }\n\t }\n\n\t public long[] nextLongArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }\n\t }\n\t \n\t public double [] nextDoubleArray(int N, boolean oneBased) {\n\t\t if (oneBased) {\n\t\t double [] array = new double[N + 1];\n\t\t for (int i = 1; i <= N; i++) {\n\t\t array[i] = sc.nextDouble();\n\t\t }\n\t\t return array;\n\t\t } else {\n\t\t double[] array = new double[N];\n\t\t for (int i = 0; i < N; i++) {\n\t\t array[i] = sc.nextDouble();\n\t\t }\n\t\t return array;\n\t\t }\n\t\t }\n\t\t \n\t }\n\t\n\t\n}", "Main" ]
import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.NoSuchElementException; public class Main{ static FastScanner sc = new FastScanner(); static PrintWriter out = new PrintWriter(System.out); static int n; static String s; //static HashMap <String, Integer> map; public static void main(String[] args) { s = sc.next(); int c = 0; if (s.charAt(0)=='R') c++; if (s.charAt(1)=='R') c+=2; if (s.charAt(2)=='R') c+=4; if (c==0) out.println(0); else if (c==1 || c==2 || c==4 || c==5) out.println(1); else if (c==3 || c==6) out.println(2); else if (c==7) out.println(3); else out.println(0); out.flush(); } static class FastScanner { private final InputStream in = System.in; private final byte[] buffer = new byte[1024]; private int ptr = 0; private int buflen = 0; private boolean hasNextByte() { if (ptr < buflen) { return true; } else { ptr = 0; try { buflen = in.read(buffer); } catch (IOException e) { e.printStackTrace(); } if (buflen <= 0) { return false; } } return true; } private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1; } private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126; } private void skipUnprintable() { while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; } public boolean hasNext() { skipUnprintable(); return hasNextByte(); } public String next() { if (!hasNext()) throw new NoSuchElementException(); StringBuilder sb = new StringBuilder(); int b = readByte(); while (isPrintableChar(b)) { sb.appendCodePoint(b); b = readByte(); } return sb.toString(); } public double nextDouble () { return Double.parseDouble(next()); } public long nextLong() { if (!hasNext()) throw new NoSuchElementException(); long n = 0; boolean minus = false; int b = readByte(); if (b == '-') { minus = true; b = readByte(); } if (b < '0' || '9' < b) { throw new NumberFormatException(); } while (true) { if ('0' <= b && b <= '9') { n *= 10; n += b - '0'; } else if (b == -1 || !isPrintableChar(b)) { return minus ? -n : n; } else { throw new NumberFormatException(); } b = readByte(); } } public int nextInt() { return (int) nextLong(); } public int[] nextIntArray(int N, boolean oneBased) { if (oneBased) { int[] array = new int[N + 1]; for (int i = 1; i <= N; i++) { array[i] = sc.nextInt(); } return array; } else { int[] array = new int[N]; for (int i = 0; i < N; i++) { array[i] = sc.nextInt(); } return array; } } public long[] nextLongArray(int N, boolean oneBased) { if (oneBased) { long[] array = new long[N + 1]; for (int i = 1; i <= N; i++) { array[i] = sc.nextLong(); } return array; } else { long[] array = new long[N]; for (int i = 0; i < N; i++) { array[i] = sc.nextLong(); } return array; } } public double [] nextDoubleArray(int N, boolean oneBased) { if (oneBased) { double [] array = new double[N + 1]; for (int i = 1; i <= N; i++) { array[i] = sc.nextDouble(); } return array; } else { double[] array = new double[N]; for (int i = 0; i < N; i++) { array[i] = sc.nextDouble(); } return array; } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 20, 38, 5, 13, 30, 4, 18, 13, 30, 4, 18, 13, 30, 41, 13, 20, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 41, 13, 17, 11, 1, 41, 13, 13, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 17, 30, 40, 13, 30, 3, 14, 2, 13, 13, 30, 0, 13, 13, 4, 18, 18, 13, 13, 13, 41, 13, 4, 18, 13, 41, 13, 2, 2, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 114, 5 ], [ 114, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 14, 16 ], [ 8, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 17, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 17, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 28, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 28, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 28, 42 ], [ 42, 43 ], [ 42, 44 ], [ 28, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 50, 51 ], [ 50, 52 ], [ 45, 53 ], [ 53, 54 ], [ 54, 55 ], [ 45, 56 ], [ 57, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 66, 67 ], [ 66, 68 ], [ 61, 69 ], [ 69, 70 ], [ 70, 71 ], [ 61, 72 ], [ 73, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 74, 80 ], [ 80, 81 ], [ 81, 82 ], [ 74, 83 ], [ 83, 84 ], [ 57, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 28, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 8, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 102, 103 ], [ 8, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 6, 111 ], [ 111, 112 ], [ 0, 113 ], [ 113, 114 ], [ 113, 115 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n long startTime = System.currentTimeMillis();\n Scanner stdIn = new Scanner(System.in);\n try {\n String weather = new String();\n weather = stdIn.nextLine();\n char[] weatherList = weather.toCharArray();\n\n int rainDays = 0;\n for (int dayCnt = 0; dayCnt < 3; dayCnt++) {\n int tempRainDays = 0;\n for (int rainCnt = dayCnt; rainCnt < 3; rainCnt++) {\n if (weatherList[rainCnt] == 'R') {\n tempRainDays++;\n } else {\n break;\n }\n }\n if (rainDays < tempRainDays) {\n rainDays = tempRainDays;\n }\n }\n System.out.println(rainDays);\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n stdIn.close();\n }\n long endTime = System.currentTimeMillis();\n double resultTime = (double)(endTime - startTime) / 1000;\n //System.out.println(\"処理時間:\" + resultTime + \"ミリ秒\");\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n long startTime = System.currentTimeMillis();\n Scanner stdIn = new Scanner(System.in);\n try {\n String weather = new String();\n weather = stdIn.nextLine();\n char[] weatherList = weather.toCharArray();\n\n int rainDays = 0;\n for (int dayCnt = 0; dayCnt < 3; dayCnt++) {\n int tempRainDays = 0;\n for (int rainCnt = dayCnt; rainCnt < 3; rainCnt++) {\n if (weatherList[rainCnt] == 'R') {\n tempRainDays++;\n } else {\n break;\n }\n }\n if (rainDays < tempRainDays) {\n rainDays = tempRainDays;\n }\n }\n System.out.println(rainDays);\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n stdIn.close();\n }\n long endTime = System.currentTimeMillis();\n double resultTime = (double)(endTime - startTime) / 1000;\n //System.out.println(\"処理時間:\" + resultTime + \"ミリ秒\");\n }\n}", "Main", "public static void main(String[] args) {\n long startTime = System.currentTimeMillis();\n Scanner stdIn = new Scanner(System.in);\n try {\n String weather = new String();\n weather = stdIn.nextLine();\n char[] weatherList = weather.toCharArray();\n\n int rainDays = 0;\n for (int dayCnt = 0; dayCnt < 3; dayCnt++) {\n int tempRainDays = 0;\n for (int rainCnt = dayCnt; rainCnt < 3; rainCnt++) {\n if (weatherList[rainCnt] == 'R') {\n tempRainDays++;\n } else {\n break;\n }\n }\n if (rainDays < tempRainDays) {\n rainDays = tempRainDays;\n }\n }\n System.out.println(rainDays);\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n stdIn.close();\n }\n long endTime = System.currentTimeMillis();\n double resultTime = (double)(endTime - startTime) / 1000;\n //System.out.println(\"処理時間:\" + resultTime + \"ミリ秒\");\n }", "main", "{\n long startTime = System.currentTimeMillis();\n Scanner stdIn = new Scanner(System.in);\n try {\n String weather = new String();\n weather = stdIn.nextLine();\n char[] weatherList = weather.toCharArray();\n\n int rainDays = 0;\n for (int dayCnt = 0; dayCnt < 3; dayCnt++) {\n int tempRainDays = 0;\n for (int rainCnt = dayCnt; rainCnt < 3; rainCnt++) {\n if (weatherList[rainCnt] == 'R') {\n tempRainDays++;\n } else {\n break;\n }\n }\n if (rainDays < tempRainDays) {\n rainDays = tempRainDays;\n }\n }\n System.out.println(rainDays);\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n stdIn.close();\n }\n long endTime = System.currentTimeMillis();\n double resultTime = (double)(endTime - startTime) / 1000;\n //System.out.println(\"処理時間:\" + resultTime + \"ミリ秒\");\n }", "long startTime = System.currentTimeMillis();", "startTime", "System.currentTimeMillis()", "System.currentTimeMillis", "System", "Scanner stdIn = new Scanner(System.in);", "stdIn", "new Scanner(System.in)", "try {\n String weather = new String();\n weather = stdIn.nextLine();\n char[] weatherList = weather.toCharArray();\n\n int rainDays = 0;\n for (int dayCnt = 0; dayCnt < 3; dayCnt++) {\n int tempRainDays = 0;\n for (int rainCnt = dayCnt; rainCnt < 3; rainCnt++) {\n if (weatherList[rainCnt] == 'R') {\n tempRainDays++;\n } else {\n break;\n }\n }\n if (rainDays < tempRainDays) {\n rainDays = tempRainDays;\n }\n }\n System.out.println(rainDays);\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n stdIn.close();\n }", "catch (Exception e) {\n e.printStackTrace();\n }", "Exception e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n stdIn.close();\n }", "stdIn.close()", "stdIn.close", "stdIn", "{\n String weather = new String();\n weather = stdIn.nextLine();\n char[] weatherList = weather.toCharArray();\n\n int rainDays = 0;\n for (int dayCnt = 0; dayCnt < 3; dayCnt++) {\n int tempRainDays = 0;\n for (int rainCnt = dayCnt; rainCnt < 3; rainCnt++) {\n if (weatherList[rainCnt] == 'R') {\n tempRainDays++;\n } else {\n break;\n }\n }\n if (rainDays < tempRainDays) {\n rainDays = tempRainDays;\n }\n }\n System.out.println(rainDays);\n }", "String weather = new String();", "weather", "new String()", "weather = stdIn.nextLine()", "weather", "stdIn.nextLine()", "stdIn.nextLine", "stdIn", "char[] weatherList = weather.toCharArray();", "weatherList", "weather.toCharArray()", "weather.toCharArray", "weather", "int rainDays = 0;", "rainDays", "0", "for (int dayCnt = 0; dayCnt < 3; dayCnt++) {\n int tempRainDays = 0;\n for (int rainCnt = dayCnt; rainCnt < 3; rainCnt++) {\n if (weatherList[rainCnt] == 'R') {\n tempRainDays++;\n } else {\n break;\n }\n }\n if (rainDays < tempRainDays) {\n rainDays = tempRainDays;\n }\n }", "int dayCnt = 0;", "int dayCnt = 0;", "dayCnt", "0", "dayCnt < 3", "dayCnt", "3", "dayCnt++", "dayCnt++", "dayCnt", "{\n int tempRainDays = 0;\n for (int rainCnt = dayCnt; rainCnt < 3; rainCnt++) {\n if (weatherList[rainCnt] == 'R') {\n tempRainDays++;\n } else {\n break;\n }\n }\n if (rainDays < tempRainDays) {\n rainDays = tempRainDays;\n }\n }", "{\n int tempRainDays = 0;\n for (int rainCnt = dayCnt; rainCnt < 3; rainCnt++) {\n if (weatherList[rainCnt] == 'R') {\n tempRainDays++;\n } else {\n break;\n }\n }\n if (rainDays < tempRainDays) {\n rainDays = tempRainDays;\n }\n }", "int tempRainDays = 0;", "tempRainDays", "0", "for (int rainCnt = dayCnt; rainCnt < 3; rainCnt++) {\n if (weatherList[rainCnt] == 'R') {\n tempRainDays++;\n } else {\n break;\n }\n }", "int rainCnt = dayCnt;", "int rainCnt = dayCnt;", "rainCnt", "dayCnt", "rainCnt < 3", "rainCnt", "3", "rainCnt++", "rainCnt++", "rainCnt", "{\n if (weatherList[rainCnt] == 'R') {\n tempRainDays++;\n } else {\n break;\n }\n }", "{\n if (weatherList[rainCnt] == 'R') {\n tempRainDays++;\n } else {\n break;\n }\n }", "if (weatherList[rainCnt] == 'R') {\n tempRainDays++;\n } else {\n break;\n }", "weatherList[rainCnt] == 'R'", "weatherList[rainCnt]", "weatherList", "rainCnt", "'R'", "{\n tempRainDays++;\n }", "tempRainDays++", "tempRainDays", "{\n break;\n }", "break;", "if (rainDays < tempRainDays) {\n rainDays = tempRainDays;\n }", "rainDays < tempRainDays", "rainDays", "tempRainDays", "{\n rainDays = tempRainDays;\n }", "rainDays = tempRainDays", "rainDays", "tempRainDays", "System.out.println(rainDays)", "System.out.println", "System.out", "System", "System.out", "rainDays", "long endTime = System.currentTimeMillis();", "endTime", "System.currentTimeMillis()", "System.currentTimeMillis", "System", "double resultTime = (double)(endTime - startTime) / 1000;", "resultTime", "(double)(endTime - startTime) / 1000", "(double)(endTime - startTime)", "endTime", "startTime", "1000", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n long startTime = System.currentTimeMillis();\n Scanner stdIn = new Scanner(System.in);\n try {\n String weather = new String();\n weather = stdIn.nextLine();\n char[] weatherList = weather.toCharArray();\n\n int rainDays = 0;\n for (int dayCnt = 0; dayCnt < 3; dayCnt++) {\n int tempRainDays = 0;\n for (int rainCnt = dayCnt; rainCnt < 3; rainCnt++) {\n if (weatherList[rainCnt] == 'R') {\n tempRainDays++;\n } else {\n break;\n }\n }\n if (rainDays < tempRainDays) {\n rainDays = tempRainDays;\n }\n }\n System.out.println(rainDays);\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n stdIn.close();\n }\n long endTime = System.currentTimeMillis();\n double resultTime = (double)(endTime - startTime) / 1000;\n //System.out.println(\"処理時間:\" + resultTime + \"ミリ秒\");\n }\n}", "public class Main {\n public static void main(String[] args) {\n long startTime = System.currentTimeMillis();\n Scanner stdIn = new Scanner(System.in);\n try {\n String weather = new String();\n weather = stdIn.nextLine();\n char[] weatherList = weather.toCharArray();\n\n int rainDays = 0;\n for (int dayCnt = 0; dayCnt < 3; dayCnt++) {\n int tempRainDays = 0;\n for (int rainCnt = dayCnt; rainCnt < 3; rainCnt++) {\n if (weatherList[rainCnt] == 'R') {\n tempRainDays++;\n } else {\n break;\n }\n }\n if (rainDays < tempRainDays) {\n rainDays = tempRainDays;\n }\n }\n System.out.println(rainDays);\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n stdIn.close();\n }\n long endTime = System.currentTimeMillis();\n double resultTime = (double)(endTime - startTime) / 1000;\n //System.out.println(\"処理時間:\" + resultTime + \"ミリ秒\");\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { long startTime = System.currentTimeMillis(); Scanner stdIn = new Scanner(System.in); try { String weather = new String(); weather = stdIn.nextLine(); char[] weatherList = weather.toCharArray(); int rainDays = 0; for (int dayCnt = 0; dayCnt < 3; dayCnt++) { int tempRainDays = 0; for (int rainCnt = dayCnt; rainCnt < 3; rainCnt++) { if (weatherList[rainCnt] == 'R') { tempRainDays++; } else { break; } } if (rainDays < tempRainDays) { rainDays = tempRainDays; } } System.out.println(rainDays); } catch (Exception e) { e.printStackTrace(); } finally { stdIn.close(); } long endTime = System.currentTimeMillis(); double resultTime = (double)(endTime - startTime) / 1000; //System.out.println("処理時間:" + resultTime + "ミリ秒"); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 17, 41, 13, 20, 41, 13, 20, 41, 13, 41, 13, 39, 17, 40, 17, 17, 17, 41, 13, 39, 17, 17, 40, 17, 17, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 17, 30, 41, 13, 13, 42, 2, 2, 13, 4, 18, 13, 2, 4, 18, 13, 13, 17, 30, 40, 13, 40, 13, 0, 13, 4, 18, 13, 13, 13, 0, 13, 17, 4, 18, 13, 13, 4, 18, 13, 23, 13, 12, 13, 30, 29, 2, 2, 13, 13, 13, 23, 13, 23, 13, 23, 13, 6, 13, 41, 13, 41, 13, 41, 13, 41, 13, 12, 13, 30, 0, 18, 36, 13, 13, 0, 18, 36, 13, 13, 23, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 29, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 250, 8 ], [ 250, 9 ], [ 9, 10 ], [ 9, 11 ], [ 250, 12 ], [ 12, 13 ], [ 12, 14 ], [ 250, 15 ], [ 15, 16 ], [ 15, 17 ], [ 250, 18 ], [ 18, 19 ], [ 18, 20 ], [ 250, 21 ], [ 21, 22 ], [ 250, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 25, 29 ], [ 25, 30 ], [ 250, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 33, 35 ], [ 33, 36 ], [ 36, 37 ], [ 33, 38 ], [ 250, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 41, 47 ], [ 47, 48 ], [ 47, 49 ], [ 41, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 41, 55 ], [ 55, 56 ], [ 55, 57 ], [ 41, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 63, 64 ], [ 63, 65 ], [ 58, 66 ], [ 66, 67 ], [ 67, 68 ], [ 58, 69 ], [ 70, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 72, 77 ], [ 71, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 83, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 89, 94 ], [ 82, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 98, 99 ], [ 78, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 103, 104 ], [ 102, 105 ], [ 102, 106 ], [ 78, 107 ], [ 107, 108 ], [ 107, 109 ], [ 41, 110 ], [ 110, 111 ], [ 111, 112 ], [ 110, 113 ], [ 41, 114 ], [ 114, 115 ], [ 115, 116 ], [ 39, 117 ], [ 117, 118 ], [ 250, 119 ], [ 119, 120 ], [ 119, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 123, 127 ], [ 119, 128 ], [ 128, 129 ], [ 119, 130 ], [ 130, 131 ], [ 119, 132 ], [ 132, 133 ], [ 250, 134 ], [ 134, 135 ], [ 134, 136 ], [ 136, 137 ], [ 134, 138 ], [ 138, 139 ], [ 134, 140 ], [ 140, 141 ], [ 134, 142 ], [ 142, 143 ], [ 134, 144 ], [ 144, 145 ], [ 144, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 147, 151 ], [ 146, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 152, 156 ], [ 144, 157 ], [ 157, 158 ], [ 144, 159 ], [ 159, 160 ], [ 250, 161 ], [ 161, 162 ], [ 161, 163 ], [ 163, 164 ], [ 161, 165 ], [ 165, 166 ], [ 161, 167 ], [ 167, 168 ], [ 167, 169 ], [ 169, 170 ], [ 170, 171 ], [ 170, 172 ], [ 161, 173 ], [ 173, 174 ], [ 173, 175 ], [ 175, 176 ], [ 176, 177 ], [ 177, 178 ], [ 178, 179 ], [ 178, 180 ], [ 177, 181 ], [ 181, 182 ], [ 182, 183 ], [ 183, 184 ], [ 176, 185 ], [ 185, 186 ], [ 186, 187 ], [ 187, 188 ], [ 187, 189 ], [ 189, 190 ], [ 190, 191 ], [ 191, 192 ], [ 186, 193 ], [ 193, 194 ], [ 194, 195 ], [ 194, 196 ], [ 175, 197 ], [ 197, 198 ], [ 198, 199 ], [ 199, 200 ], [ 161, 201 ], [ 201, 202 ], [ 201, 203 ], [ 203, 204 ], [ 204, 205 ], [ 205, 206 ], [ 206, 207 ], [ 205, 208 ], [ 208, 209 ], [ 161, 210 ], [ 210, 211 ], [ 210, 212 ], [ 212, 213 ], [ 213, 214 ], [ 214, 215 ], [ 215, 216 ], [ 214, 217 ], [ 217, 218 ], [ 161, 219 ], [ 219, 220 ], [ 219, 221 ], [ 221, 222 ], [ 222, 223 ], [ 223, 224 ], [ 224, 225 ], [ 223, 226 ], [ 226, 227 ], [ 161, 228 ], [ 228, 229 ], [ 228, 230 ], [ 230, 231 ], [ 231, 232 ], [ 231, 233 ], [ 230, 234 ], [ 234, 235 ], [ 235, 236 ], [ 235, 237 ], [ 237, 238 ], [ 238, 239 ], [ 239, 240 ], [ 234, 241 ], [ 241, 242 ], [ 242, 243 ], [ 242, 244 ], [ 244, 245 ], [ 245, 246 ], [ 230, 247 ], [ 247, 248 ], [ 0, 249 ], [ 249, 250 ], [ 249, 251 ] ]
[ "import java.util.*;\n\n\nimport java.io.*;\n/**\n * MLASERP\n */\npublic class Main {\n\n \n static MyScanner in = new MyScanner();\n static int mod = 1000000007;\n static PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n static StringTokenizer st;\n static int []dr = {1,-1,0,0};\n static int [] dc = {0,0,-1,1};\npublic static void main(String[] args) {\n String s = in.next();\n int max =0;\n int n= s.length();\n int length =0;\n for(int i=0;i<n;i++){\n if(s.charAt(i)=='R'){\n int j= i;\n while(j<s.length()&&s.charAt(j)=='R'){\n length++;\n j++;\n }\n max = Math.max(length, max);\n length = 0;\n }\n }\n out.println(max);\n\n out.flush();\n \n\n}\nstatic int rcToxy(int r, int c,int W){\n return r*W+c;\n}\nstatic class Node{\n int r, c,prev,change;\n Node(int r, int c){\n this.r =r ;\n this.c = c;\n }\n}\npublic 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\t try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return str;\n }\n\n }\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "public class Main {\n\n \n static MyScanner in = new MyScanner();\n static int mod = 1000000007;\n static PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n static StringTokenizer st;\n static int []dr = {1,-1,0,0};\n static int [] dc = {0,0,-1,1};\npublic static void main(String[] args) {\n String s = in.next();\n int max =0;\n int n= s.length();\n int length =0;\n for(int i=0;i<n;i++){\n if(s.charAt(i)=='R'){\n int j= i;\n while(j<s.length()&&s.charAt(j)=='R'){\n length++;\n j++;\n }\n max = Math.max(length, max);\n length = 0;\n }\n }\n out.println(max);\n\n out.flush();\n \n\n}\nstatic int rcToxy(int r, int c,int W){\n return r*W+c;\n}\nstatic class Node{\n int r, c,prev,change;\n Node(int r, int c){\n this.r =r ;\n this.c = c;\n }\n}\npublic 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\t try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return str;\n }\n\n }\n}", "Main", "static MyScanner in = new MyScanner();", "in", "new MyScanner()", "static int mod = 1000000007;", "mod", "1000000007", "static PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));", "out", "new PrintWriter(new OutputStreamWriter(System.out))", "static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "static StringTokenizer st;", "st", "static int []dr = {1,-1,0,0};", "dr", "{1,-1,0,0}", "1", "-1", "1", "0", "0", "static int [] dc = {0,0,-1,1};", "dc", "{0,0,-1,1}", "0", "0", "-1", "1", "1", "public static void main(String[] args) {\n String s = in.next();\n int max =0;\n int n= s.length();\n int length =0;\n for(int i=0;i<n;i++){\n if(s.charAt(i)=='R'){\n int j= i;\n while(j<s.length()&&s.charAt(j)=='R'){\n length++;\n j++;\n }\n max = Math.max(length, max);\n length = 0;\n }\n }\n out.println(max);\n\n out.flush();\n \n\n}", "main", "{\n String s = in.next();\n int max =0;\n int n= s.length();\n int length =0;\n for(int i=0;i<n;i++){\n if(s.charAt(i)=='R'){\n int j= i;\n while(j<s.length()&&s.charAt(j)=='R'){\n length++;\n j++;\n }\n max = Math.max(length, max);\n length = 0;\n }\n }\n out.println(max);\n\n out.flush();\n \n\n}", "String s = in.next();", "s", "in.next()", "in.next", "in", "int max =0;", "max", "0", "int n= s.length();", "n", "s.length()", "s.length", "s", "int length =0;", "length", "0", "for(int i=0;i<n;i++){\n if(s.charAt(i)=='R'){\n int j= i;\n while(j<s.length()&&s.charAt(j)=='R'){\n length++;\n j++;\n }\n max = Math.max(length, max);\n length = 0;\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n if(s.charAt(i)=='R'){\n int j= i;\n while(j<s.length()&&s.charAt(j)=='R'){\n length++;\n j++;\n }\n max = Math.max(length, max);\n length = 0;\n }\n }", "{\n if(s.charAt(i)=='R'){\n int j= i;\n while(j<s.length()&&s.charAt(j)=='R'){\n length++;\n j++;\n }\n max = Math.max(length, max);\n length = 0;\n }\n }", "if(s.charAt(i)=='R'){\n int j= i;\n while(j<s.length()&&s.charAt(j)=='R'){\n length++;\n j++;\n }\n max = Math.max(length, max);\n length = 0;\n }", "s.charAt(i)=='R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "{\n int j= i;\n while(j<s.length()&&s.charAt(j)=='R'){\n length++;\n j++;\n }\n max = Math.max(length, max);\n length = 0;\n }", "int j= i;", "j", "i", "while(j<s.length()&&s.charAt(j)=='R'){\n length++;\n j++;\n }", "j<s.length()&&s.charAt(j)=='R'", "j<s.length()", "j", "s.length()", "s.length", "s", "s.charAt(j)=='R'", "s.charAt(j)", "s.charAt", "s", "j", "'R'", "{\n length++;\n j++;\n }", "length++", "length", "j++", "j", "max = Math.max(length, max)", "max", "Math.max(length, max)", "Math.max", "Math", "length", "max", "length = 0", "length", "0", "out.println(max)", "out.println", "out", "max", "out.flush()", "out.flush", "out", "String[] args", "args", "static int rcToxy(int r, int c,int W){\n return r*W+c;\n}", "rcToxy", "{\n return r*W+c;\n}", "return r*W+c;", "r*W+c", "r*W", "r", "W", "c", "int r", "r", "int c", "c", "int W", "W", "static class Node{\n int r, c,prev,change;\n Node(int r, int c){\n this.r =r ;\n this.c = c;\n }\n}", "Node", "int r", "r", "c", "c", "prev", "prev", "change;", "change", "Node(int r, int c){\n this.r =r ;\n this.c = c;\n }", "Node", "{\n this.r =r ;\n this.c = c;\n }", "this.r =r", "this.r", "this", "this.r", "r", "this.c = c", "this.c", "this", "this.c", "c", "int r", "r", "int c", "c", "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\t try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return str;\n }\n\n }", "MyScanner", "BufferedReader br;", "br", "StringTokenizer st;", "st", "public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }", "MyScanner", "{\n br = new BufferedReader(new InputStreamReader(System.in));\n }", "br = new BufferedReader(new InputStreamReader(System.in))", "br", "new BufferedReader(new InputStreamReader(System.in))", "String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }", "next", "{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }", "while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "st == null || !st.hasMoreElements()", "st == null", "st", "null", "!st.hasMoreElements()", "st.hasMoreElements()", "st.hasMoreElements", "st", "{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "int nextInt() {\n return Integer.parseInt(next());\n }", "nextInt", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "long nextLong() {\n return Long.parseLong(next());\n }", "nextLong", "{\n return Long.parseLong(next());\n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "double nextDouble() {\n return Double.parseDouble(next());\n }", "nextDouble", "{\n return Double.parseDouble(next());\n }", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "String nextLine(){\n String str = \"\";\n\t try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return str;\n }", "nextLine", "{\n String str = \"\";\n\t try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return str;\n }", "String str = \"\";", "str", "\"\"", "try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }", "catch (IOException e) {\n\t e.printStackTrace();\n\t }", "IOException e", "{\n\t e.printStackTrace();\n\t }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t str = br.readLine();\n\t }", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "return str;", "str", "public class Main {\n\n \n static MyScanner in = new MyScanner();\n static int mod = 1000000007;\n static PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n static StringTokenizer st;\n static int []dr = {1,-1,0,0};\n static int [] dc = {0,0,-1,1};\npublic static void main(String[] args) {\n String s = in.next();\n int max =0;\n int n= s.length();\n int length =0;\n for(int i=0;i<n;i++){\n if(s.charAt(i)=='R'){\n int j= i;\n while(j<s.length()&&s.charAt(j)=='R'){\n length++;\n j++;\n }\n max = Math.max(length, max);\n length = 0;\n }\n }\n out.println(max);\n\n out.flush();\n \n\n}\nstatic int rcToxy(int r, int c,int W){\n return r*W+c;\n}\nstatic class Node{\n int r, c,prev,change;\n Node(int r, int c){\n this.r =r ;\n this.c = c;\n }\n}\npublic 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\t try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return str;\n }\n\n }\n}", "public class Main {\n\n \n static MyScanner in = new MyScanner();\n static int mod = 1000000007;\n static PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n static StringTokenizer st;\n static int []dr = {1,-1,0,0};\n static int [] dc = {0,0,-1,1};\npublic static void main(String[] args) {\n String s = in.next();\n int max =0;\n int n= s.length();\n int length =0;\n for(int i=0;i<n;i++){\n if(s.charAt(i)=='R'){\n int j= i;\n while(j<s.length()&&s.charAt(j)=='R'){\n length++;\n j++;\n }\n max = Math.max(length, max);\n length = 0;\n }\n }\n out.println(max);\n\n out.flush();\n \n\n}\nstatic int rcToxy(int r, int c,int W){\n return r*W+c;\n}\nstatic class Node{\n int r, c,prev,change;\n Node(int r, int c){\n this.r =r ;\n this.c = c;\n }\n}\npublic 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\t try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return str;\n }\n\n }\n}", "Main" ]
import java.util.*; import java.io.*; /** * MLASERP */ public class Main { static MyScanner in = new MyScanner(); static int mod = 1000000007; static PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out)); static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); static StringTokenizer st; static int []dr = {1,-1,0,0}; static int [] dc = {0,0,-1,1}; public static void main(String[] args) { String s = in.next(); int max =0; int n= s.length(); int length =0; for(int i=0;i<n;i++){ if(s.charAt(i)=='R'){ int j= i; while(j<s.length()&&s.charAt(j)=='R'){ length++; j++; } max = Math.max(length, max); length = 0; } } out.println(max); out.flush(); } static int rcToxy(int r, int c,int W){ return r*W+c; } static class Node{ int r, c,prev,change; Node(int r, int c){ this.r =r ; this.c = c; } } public static class MyScanner { BufferedReader br; StringTokenizer st; public MyScanner() { br = new BufferedReader(new InputStreamReader(System.in)); } String next() { while (st == null || !st.hasMoreElements()) { try { st = new StringTokenizer(br.readLine()); } catch (IOException e) { e.printStackTrace(); } } return st.nextToken(); } int nextInt() { return Integer.parseInt(next()); } long nextLong() { return Long.parseLong(next()); } double nextDouble() { return Double.parseDouble(next()); } String nextLine(){ String str = ""; try { str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } return str; } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 17, 41, 13, 17, 14, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 30, 4, 18, 18, 13, 13, 17, 14, 40, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 110, 5 ], [ 110, 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 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 8, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 8, 35 ], [ 35, 36 ], [ 35, 37 ], [ 8, 38 ], [ 38, 39 ], [ 40, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 40, 44 ], [ 44, 45 ], [ 44, 46 ], [ 40, 47 ], [ 47, 48 ], [ 47, 49 ], [ 38, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 51, 56 ], [ 38, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 63, 64 ], [ 63, 65 ], [ 58, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 70, 71 ], [ 70, 72 ], [ 57, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 57, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 87, 88 ], [ 87, 89 ], [ 82, 90 ], [ 90, 91 ], [ 90, 92 ], [ 80, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 80, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 6, 107 ], [ 107, 108 ], [ 0, 109 ], [ 109, 110 ], [ 109, 111 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\t\tString a = scan.next();\n\t\tchar b = a.charAt(0);\n\t\tchar c = a.charAt(1);\n\t\tchar d = a.charAt(2);\n\t\tchar f = 'R';\n\n\t\tif(b==c && c==d && d==f) {\n\n\t\t\tSystem.out.println(\"3\");\n\n\t\t}else if((b==c && c==f) || (c==d && d==f)) {\n\n\t\t\tSystem.out.println(\"2\");\n\n\t\t}else if(!(b==f || c==f || d==f)) {\n\n\t\t\tSystem.out.println(\"0\");\n\n\t\t}else {\n\t\t\tSystem.out.println(\"1\");\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\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\t\tString a = scan.next();\n\t\tchar b = a.charAt(0);\n\t\tchar c = a.charAt(1);\n\t\tchar d = a.charAt(2);\n\t\tchar f = 'R';\n\n\t\tif(b==c && c==d && d==f) {\n\n\t\t\tSystem.out.println(\"3\");\n\n\t\t}else if((b==c && c==f) || (c==d && d==f)) {\n\n\t\t\tSystem.out.println(\"2\");\n\n\t\t}else if(!(b==f || c==f || d==f)) {\n\n\t\t\tSystem.out.println(\"0\");\n\n\t\t}else {\n\t\t\tSystem.out.println(\"1\");\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\t\tString a = scan.next();\n\t\tchar b = a.charAt(0);\n\t\tchar c = a.charAt(1);\n\t\tchar d = a.charAt(2);\n\t\tchar f = 'R';\n\n\t\tif(b==c && c==d && d==f) {\n\n\t\t\tSystem.out.println(\"3\");\n\n\t\t}else if((b==c && c==f) || (c==d && d==f)) {\n\n\t\t\tSystem.out.println(\"2\");\n\n\t\t}else if(!(b==f || c==f || d==f)) {\n\n\t\t\tSystem.out.println(\"0\");\n\n\t\t}else {\n\t\t\tSystem.out.println(\"1\");\n\t\t}\n\t}", "main", "{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\t\tString a = scan.next();\n\t\tchar b = a.charAt(0);\n\t\tchar c = a.charAt(1);\n\t\tchar d = a.charAt(2);\n\t\tchar f = 'R';\n\n\t\tif(b==c && c==d && d==f) {\n\n\t\t\tSystem.out.println(\"3\");\n\n\t\t}else if((b==c && c==f) || (c==d && d==f)) {\n\n\t\t\tSystem.out.println(\"2\");\n\n\t\t}else if(!(b==f || c==f || d==f)) {\n\n\t\t\tSystem.out.println(\"0\");\n\n\t\t}else {\n\t\t\tSystem.out.println(\"1\");\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String a = scan.next();", "a", "scan.next()", "scan.next", "scan", "char b = a.charAt(0);", "b", "a.charAt(0)", "a.charAt", "a", "0", "char c = a.charAt(1);", "c", "a.charAt(1)", "a.charAt", "a", "1", "char d = a.charAt(2);", "d", "a.charAt(2)", "a.charAt", "a", "2", "char f = 'R';", "f", "'R'", "if(b==c && c==d && d==f) {\n\n\t\t\tSystem.out.println(\"3\");\n\n\t\t}else if((b==c && c==f) || (c==d && d==f)) {\n\n\t\t\tSystem.out.println(\"2\");\n\n\t\t}else if(!(b==f || c==f || d==f)) {\n\n\t\t\tSystem.out.println(\"0\");\n\n\t\t}else {\n\t\t\tSystem.out.println(\"1\");\n\t\t}", "b==c && c==d && d==f", "b==c && c==d && d==f", "b==c", "b", "c", "c==d", "c", "d", "d==f", "d", "f", "{\n\n\t\t\tSystem.out.println(\"3\");\n\n\t\t}", "System.out.println(\"3\")", "System.out.println", "System.out", "System", "System.out", "\"3\"", "if((b==c && c==f) || (c==d && d==f)) {\n\n\t\t\tSystem.out.println(\"2\");\n\n\t\t}else if(!(b==f || c==f || d==f)) {\n\n\t\t\tSystem.out.println(\"0\");\n\n\t\t}else {\n\t\t\tSystem.out.println(\"1\");\n\t\t}", "(b==c && c==f) || (c==d && d==f)", "(b==c && c==f)", "b==c", "b", "c", "c==f", "c", "f", "(c==d && d==f)", "c==d", "c", "d", "d==f", "d", "f", "{\n\n\t\t\tSystem.out.println(\"2\");\n\n\t\t}", "System.out.println(\"2\")", "System.out.println", "System.out", "System", "System.out", "\"2\"", "if(!(b==f || c==f || d==f)) {\n\n\t\t\tSystem.out.println(\"0\");\n\n\t\t}else {\n\t\t\tSystem.out.println(\"1\");\n\t\t}", "!(b==f || c==f || d==f)", "(b==f || c==f || d==f)", "b==f || c==f || d==f", "b==f", "b", "f", "c==f", "c", "f", "d==f", "d", "f", "{\n\n\t\t\tSystem.out.println(\"0\");\n\n\t\t}", "System.out.println(\"0\")", "System.out.println", "System.out", "System", "System.out", "\"0\"", "{\n\t\t\tSystem.out.println(\"1\");\n\t\t}", "System.out.println(\"1\")", "System.out.println", "System.out", "System", "System.out", "\"1\"", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\t\tString a = scan.next();\n\t\tchar b = a.charAt(0);\n\t\tchar c = a.charAt(1);\n\t\tchar d = a.charAt(2);\n\t\tchar f = 'R';\n\n\t\tif(b==c && c==d && d==f) {\n\n\t\t\tSystem.out.println(\"3\");\n\n\t\t}else if((b==c && c==f) || (c==d && d==f)) {\n\n\t\t\tSystem.out.println(\"2\");\n\n\t\t}else if(!(b==f || c==f || d==f)) {\n\n\t\t\tSystem.out.println(\"0\");\n\n\t\t}else {\n\t\t\tSystem.out.println(\"1\");\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\t\tString a = scan.next();\n\t\tchar b = a.charAt(0);\n\t\tchar c = a.charAt(1);\n\t\tchar d = a.charAt(2);\n\t\tchar f = 'R';\n\n\t\tif(b==c && c==d && d==f) {\n\n\t\t\tSystem.out.println(\"3\");\n\n\t\t}else if((b==c && c==f) || (c==d && d==f)) {\n\n\t\t\tSystem.out.println(\"2\");\n\n\t\t}else if(!(b==f || c==f || d==f)) {\n\n\t\t\tSystem.out.println(\"0\");\n\n\t\t}else {\n\t\t\tSystem.out.println(\"1\");\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner scan = new Scanner(System.in); String a = scan.next(); char b = a.charAt(0); char c = a.charAt(1); char d = a.charAt(2); char f = 'R'; if(b==c && c==d && d==f) { System.out.println("3"); }else if((b==c && c==f) || (c==d && d==f)) { System.out.println("2"); }else if(!(b==f || c==f || d==f)) { System.out.println("0"); }else { System.out.println("1"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 14, 2, 2, 2, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 4, 18, 13, 17, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 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 ], [ 20, 19 ], [ 19, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 19, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 20, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 17, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 17, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 45, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 44, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 44, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 61, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 61, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 6, 80 ], [ 80, 81 ] ]
[ "import java.util.*;\n\nclass Main\n{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n String weather = sc.next();\n \n if (weather.equals(\"RSS\") || weather.equals(\"SRS\") || weather.equals(\"SSR\") || weather.equals(\"RSR\")) {\n System.out.println(1);\n } else if (weather.equals(\"RRS\") || weather.equals(\"SRR\")) {\n System.out.println(2);\n } else if (weather.equals(\"RRR\")) {\n System.out.println(3);\n } else {\n System.out.println(0);\n }\n \n }\n}", "import java.util.*;", "util.*", "java", "class Main\n{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n String weather = sc.next();\n \n if (weather.equals(\"RSS\") || weather.equals(\"SRS\") || weather.equals(\"SSR\") || weather.equals(\"RSR\")) {\n System.out.println(1);\n } else if (weather.equals(\"RRS\") || weather.equals(\"SRR\")) {\n System.out.println(2);\n } else if (weather.equals(\"RRR\")) {\n System.out.println(3);\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 \n String weather = sc.next();\n \n if (weather.equals(\"RSS\") || weather.equals(\"SRS\") || weather.equals(\"SSR\") || weather.equals(\"RSR\")) {\n System.out.println(1);\n } else if (weather.equals(\"RRS\") || weather.equals(\"SRR\")) {\n System.out.println(2);\n } else if (weather.equals(\"RRR\")) {\n System.out.println(3);\n } else {\n System.out.println(0);\n }\n \n }", "main", "{\n Scanner sc = new Scanner(System.in);\n \n String weather = sc.next();\n \n if (weather.equals(\"RSS\") || weather.equals(\"SRS\") || weather.equals(\"SSR\") || weather.equals(\"RSR\")) {\n System.out.println(1);\n } else if (weather.equals(\"RRS\") || weather.equals(\"SRR\")) {\n System.out.println(2);\n } else if (weather.equals(\"RRR\")) {\n System.out.println(3);\n } else {\n System.out.println(0);\n }\n \n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String weather = sc.next();", "weather", "sc.next()", "sc.next", "sc", "if (weather.equals(\"RSS\") || weather.equals(\"SRS\") || weather.equals(\"SSR\") || weather.equals(\"RSR\")) {\n System.out.println(1);\n } else if (weather.equals(\"RRS\") || weather.equals(\"SRR\")) {\n System.out.println(2);\n } else if (weather.equals(\"RRR\")) {\n System.out.println(3);\n } else {\n System.out.println(0);\n }", "weather.equals(\"RSS\") || weather.equals(\"SRS\") || weather.equals(\"SSR\") || weather.equals(\"RSR\")", "weather.equals(\"SSR\")", "weather.equals(\"RSS\") || weather.equals(\"SRS\") || weather.equals(\"SSR\") || weather.equals(\"RSR\")", "weather.equals(\"RSS\")", "weather.equals", "weather", "\"RSS\"", "weather.equals(\"SRS\")", "weather.equals", "weather", "\"SRS\"", "weather.equals(\"SSR\")", "weather.equals", "weather", "\"SSR\"", "weather.equals(\"RSR\")", "weather.equals", "weather", "\"RSR\"", "{\n System.out.println(1);\n }", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "if (weather.equals(\"RRS\") || weather.equals(\"SRR\")) {\n System.out.println(2);\n } else if (weather.equals(\"RRR\")) {\n System.out.println(3);\n } else {\n System.out.println(0);\n }", "weather.equals(\"RRS\") || weather.equals(\"SRR\")", "weather.equals(\"RRS\")", "weather.equals", "weather", "\"RRS\"", "weather.equals(\"SRR\")", "weather.equals", "weather", "\"SRR\"", "{\n System.out.println(2);\n }", "System.out.println(2)", "System.out.println", "System.out", "System", "System.out", "2", "if (weather.equals(\"RRR\")) {\n System.out.println(3);\n } else {\n System.out.println(0);\n }", "weather.equals(\"RRR\")", "weather.equals", "weather", "\"RRR\"", "{\n System.out.println(3);\n }", "System.out.println(3)", "System.out.println", "System.out", "System", "System.out", "3", "{\n System.out.println(0);\n }", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "String[] args", "args" ]
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String weather = sc.next(); if (weather.equals("RSS") || weather.equals("SRS") || weather.equals("SSR") || weather.equals("RSR")) { System.out.println(1); } else if (weather.equals("RRS") || weather.equals("SRR")) { System.out.println(2); } else if (weather.equals("RRR")) { System.out.println(3); } else { System.out.println(0); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 14, 4, 18, 13, 17, 0, 13, 17, 14, 4, 18, 13, 17, 0, 13, 17, 14, 4, 18, 13, 17, 0, 13, 17, 14, 4, 18, 13, 17, 0, 13, 17, 14, 4, 18, 13, 17, 0, 13, 17, 14, 4, 18, 13, 17, 0, 13, 17, 14, 4, 18, 13, 17, 0, 13, 17, 14, 4, 18, 13, 17, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 93, 5 ], [ 93, 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 ], [ 21, 24 ], [ 20, 25 ], [ 25, 26 ], [ 25, 27 ], [ 8, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 33, 34 ], [ 33, 35 ], [ 8, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 36, 41 ], [ 41, 42 ], [ 41, 43 ], [ 8, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 44, 49 ], [ 49, 50 ], [ 49, 51 ], [ 8, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 8, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 60, 65 ], [ 65, 66 ], [ 65, 67 ], [ 8, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 68, 73 ], [ 73, 74 ], [ 73, 75 ], [ 8, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 76, 81 ], [ 81, 82 ], [ 81, 83 ], [ 8, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 6, 90 ], [ 90, 91 ], [ 0, 92 ], [ 92, 93 ], [ 92, 94 ] ]
[ "import java.util.*;\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String wstrg = sc.next();\n int count = 0;\n if(wstrg.equals(\"SSS\")) count = 0;\n if(wstrg.equals(\"SSR\")) count = 1;\n if(wstrg.equals(\"SRS\")) count = 1;\n if(wstrg.equals(\"RSS\")) count = 1;\n if(wstrg.equals(\"RRS\")) count = 2;\n if(wstrg.equals(\"SRR\")) count = 2;\n if(wstrg.equals(\"RSR\")) count = 1;\n if(wstrg.equals(\"RRR\")) count = 3;\n System.out.println(count);\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 String wstrg = sc.next();\n int count = 0;\n if(wstrg.equals(\"SSS\")) count = 0;\n if(wstrg.equals(\"SSR\")) count = 1;\n if(wstrg.equals(\"SRS\")) count = 1;\n if(wstrg.equals(\"RSS\")) count = 1;\n if(wstrg.equals(\"RRS\")) count = 2;\n if(wstrg.equals(\"SRR\")) count = 2;\n if(wstrg.equals(\"RSR\")) count = 1;\n if(wstrg.equals(\"RRR\")) count = 3;\n System.out.println(count);\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String wstrg = sc.next();\n int count = 0;\n if(wstrg.equals(\"SSS\")) count = 0;\n if(wstrg.equals(\"SSR\")) count = 1;\n if(wstrg.equals(\"SRS\")) count = 1;\n if(wstrg.equals(\"RSS\")) count = 1;\n if(wstrg.equals(\"RRS\")) count = 2;\n if(wstrg.equals(\"SRR\")) count = 2;\n if(wstrg.equals(\"RSR\")) count = 1;\n if(wstrg.equals(\"RRR\")) count = 3;\n System.out.println(count);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String wstrg = sc.next();\n int count = 0;\n if(wstrg.equals(\"SSS\")) count = 0;\n if(wstrg.equals(\"SSR\")) count = 1;\n if(wstrg.equals(\"SRS\")) count = 1;\n if(wstrg.equals(\"RSS\")) count = 1;\n if(wstrg.equals(\"RRS\")) count = 2;\n if(wstrg.equals(\"SRR\")) count = 2;\n if(wstrg.equals(\"RSR\")) count = 1;\n if(wstrg.equals(\"RRR\")) count = 3;\n System.out.println(count);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String wstrg = sc.next();", "wstrg", "sc.next()", "sc.next", "sc", "int count = 0;", "count", "0", "if(wstrg.equals(\"SSS\")) count = 0;", "wstrg.equals(\"SSS\")", "wstrg.equals", "wstrg", "\"SSS\"", "count = 0", "count", "0", "if(wstrg.equals(\"SSR\")) count = 1;", "wstrg.equals(\"SSR\")", "wstrg.equals", "wstrg", "\"SSR\"", "count = 1", "count", "1", "if(wstrg.equals(\"SRS\")) count = 1;", "wstrg.equals(\"SRS\")", "wstrg.equals", "wstrg", "\"SRS\"", "count = 1", "count", "1", "if(wstrg.equals(\"RSS\")) count = 1;", "wstrg.equals(\"RSS\")", "wstrg.equals", "wstrg", "\"RSS\"", "count = 1", "count", "1", "if(wstrg.equals(\"RRS\")) count = 2;", "wstrg.equals(\"RRS\")", "wstrg.equals", "wstrg", "\"RRS\"", "count = 2", "count", "2", "if(wstrg.equals(\"SRR\")) count = 2;", "wstrg.equals(\"SRR\")", "wstrg.equals", "wstrg", "\"SRR\"", "count = 2", "count", "2", "if(wstrg.equals(\"RSR\")) count = 1;", "wstrg.equals(\"RSR\")", "wstrg.equals", "wstrg", "\"RSR\"", "count = 1", "count", "1", "if(wstrg.equals(\"RRR\")) count = 3;", "wstrg.equals(\"RRR\")", "wstrg.equals", "wstrg", "\"RRR\"", "count = 3", "count", "3", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String wstrg = sc.next();\n int count = 0;\n if(wstrg.equals(\"SSS\")) count = 0;\n if(wstrg.equals(\"SSR\")) count = 1;\n if(wstrg.equals(\"SRS\")) count = 1;\n if(wstrg.equals(\"RSS\")) count = 1;\n if(wstrg.equals(\"RRS\")) count = 2;\n if(wstrg.equals(\"SRR\")) count = 2;\n if(wstrg.equals(\"RSR\")) count = 1;\n if(wstrg.equals(\"RRR\")) count = 3;\n System.out.println(count);\n }\n}", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String wstrg = sc.next();\n int count = 0;\n if(wstrg.equals(\"SSS\")) count = 0;\n if(wstrg.equals(\"SSR\")) count = 1;\n if(wstrg.equals(\"SRS\")) count = 1;\n if(wstrg.equals(\"RSS\")) count = 1;\n if(wstrg.equals(\"RRS\")) count = 2;\n if(wstrg.equals(\"SRR\")) count = 2;\n if(wstrg.equals(\"RSR\")) count = 1;\n if(wstrg.equals(\"RRR\")) count = 3;\n System.out.println(count);\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String wstrg = sc.next(); int count = 0; if(wstrg.equals("SSS")) count = 0; if(wstrg.equals("SSR")) count = 1; if(wstrg.equals("SRS")) count = 1; if(wstrg.equals("RSS")) count = 1; if(wstrg.equals("RRS")) count = 2; if(wstrg.equals("SRR")) count = 2; if(wstrg.equals("RSR")) count = 1; if(wstrg.equals("RRR")) count = 3; System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 4, 18, 13, 41, 13, 17, 41, 13, 2, 18, 13, 17, 17, 41, 13, 2, 18, 13, 17, 17, 41, 13, 2, 18, 13, 17, 17, 14, 2, 2, 13, 13, 13, 0, 13, 17, 14, 2, 2, 13, 13, 2, 13, 13, 0, 13, 17, 14, 2, 2, 13, 13, 13, 0, 13, 17, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 87, 5 ], [ 87, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 27, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 8, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 8, 46 ], [ 46, 47 ], [ 48, 48 ], [ 48, 49 ], [ 48, 50 ], [ 48, 51 ], [ 46, 52 ], [ 52, 53 ], [ 52, 54 ], [ 46, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 60, 62 ], [ 55, 63 ], [ 63, 64 ], [ 63, 65 ], [ 55, 66 ], [ 66, 67 ], [ 68, 68 ], [ 68, 69 ], [ 68, 70 ], [ 68, 71 ], [ 66, 72 ], [ 72, 73 ], [ 72, 74 ], [ 66, 75 ], [ 75, 76 ], [ 75, 77 ], [ 8, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 78, 83 ], [ 6, 84 ], [ 84, 85 ], [ 0, 86 ], [ 86, 87 ], [ 86, 88 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n char[] s = sc.nextLine().toCharArray();\n sc.close();\n\n int cnt = 0;\n boolean day1 = s[0] == 'R';\n boolean day2 = s[1] == 'R';\n boolean day3 = s[2] == 'R';\n\n if(day1 && day2 && day3) cnt = 3;\n else if((day1 && day2) || (day2 && day3)) cnt = 2;\n else if(day1 || day2 || day3) cnt = 1;\n else cnt = 0;\n System.out.println(cnt);\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 char[] s = sc.nextLine().toCharArray();\n sc.close();\n\n int cnt = 0;\n boolean day1 = s[0] == 'R';\n boolean day2 = s[1] == 'R';\n boolean day3 = s[2] == 'R';\n\n if(day1 && day2 && day3) cnt = 3;\n else if((day1 && day2) || (day2 && day3)) cnt = 2;\n else if(day1 || day2 || day3) cnt = 1;\n else cnt = 0;\n System.out.println(cnt);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n char[] s = sc.nextLine().toCharArray();\n sc.close();\n\n int cnt = 0;\n boolean day1 = s[0] == 'R';\n boolean day2 = s[1] == 'R';\n boolean day3 = s[2] == 'R';\n\n if(day1 && day2 && day3) cnt = 3;\n else if((day1 && day2) || (day2 && day3)) cnt = 2;\n else if(day1 || day2 || day3) cnt = 1;\n else cnt = 0;\n System.out.println(cnt);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n char[] s = sc.nextLine().toCharArray();\n sc.close();\n\n int cnt = 0;\n boolean day1 = s[0] == 'R';\n boolean day2 = s[1] == 'R';\n boolean day3 = s[2] == 'R';\n\n if(day1 && day2 && day3) cnt = 3;\n else if((day1 && day2) || (day2 && day3)) cnt = 2;\n else if(day1 || day2 || day3) cnt = 1;\n else cnt = 0;\n System.out.println(cnt);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "char[] s = sc.nextLine().toCharArray();", "s", "sc.nextLine().toCharArray()", "sc.nextLine().toCharArray", "sc.nextLine()", "sc.nextLine", "sc", "sc.close()", "sc.close", "sc", "int cnt = 0;", "cnt", "0", "boolean day1 = s[0] == 'R';", "day1", "s[0] == 'R'", "s[0]", "s", "0", "'R'", "boolean day2 = s[1] == 'R';", "day2", "s[1] == 'R'", "s[1]", "s", "1", "'R'", "boolean day3 = s[2] == 'R';", "day3", "s[2] == 'R'", "s[2]", "s", "2", "'R'", "if(day1 && day2 && day3) cnt = 3;\n else if((day1 && day2) || (day2 && day3)) cnt = 2;\n else if(day1 || day2 || day3) cnt = 1;\n else cnt = 0;", "day1 && day2 && day3", "day1 && day2 && day3", "day1", "day2", "day3", "cnt = 3", "cnt", "3", "if((day1 && day2) || (day2 && day3)) cnt = 2;\n else if(day1 || day2 || day3) cnt = 1;\n else cnt = 0;", "(day1 && day2) || (day2 && day3)", "(day1 && day2)", "day1", "day2", "(day2 && day3)", "day2", "day3", "cnt = 2", "cnt", "2", "if(day1 || day2 || day3) cnt = 1;\n else cnt = 0;", "day1 || day2 || day3", "day1 || day2 || day3", "day1", "day2", "day3", "cnt = 1", "cnt", "1", "cnt = 0", "cnt", "0", "System.out.println(cnt)", "System.out.println", "System.out", "System", "System.out", "cnt", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n char[] s = sc.nextLine().toCharArray();\n sc.close();\n\n int cnt = 0;\n boolean day1 = s[0] == 'R';\n boolean day2 = s[1] == 'R';\n boolean day3 = s[2] == 'R';\n\n if(day1 && day2 && day3) cnt = 3;\n else if((day1 && day2) || (day2 && day3)) cnt = 2;\n else if(day1 || day2 || day3) cnt = 1;\n else cnt = 0;\n System.out.println(cnt);\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n char[] s = sc.nextLine().toCharArray();\n sc.close();\n\n int cnt = 0;\n boolean day1 = s[0] == 'R';\n boolean day2 = s[1] == 'R';\n boolean day3 = s[2] == 'R';\n\n if(day1 && day2 && day3) cnt = 3;\n else if((day1 && day2) || (day2 && day3)) cnt = 2;\n else if(day1 || day2 || day3) cnt = 1;\n else cnt = 0;\n System.out.println(cnt);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); char[] s = sc.nextLine().toCharArray(); sc.close(); int cnt = 0; boolean day1 = s[0] == 'R'; boolean day2 = s[1] == 'R'; boolean day3 = s[2] == 'R'; if(day1 && day2 && day3) cnt = 3; else if((day1 && day2) || (day2 && day3)) cnt = 2; else if(day1 || day2 || day3) cnt = 1; else cnt = 0; System.out.println(cnt); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 17, 0, 18, 13, 17, 4, 18, 13, 17, 17, 0, 18, 13, 17, 4, 18, 13, 17, 17, 0, 18, 13, 17, 4, 18, 13, 17, 17, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 4, 18, 17, 18, 13, 13, 30, 40, 13, 30, 14, 2, 13, 13, 30, 0, 13, 13, 0, 13, 17, 14, 2, 13, 13, 0, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 105, 5 ], [ 105, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 21, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 25, 29 ], [ 8, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 30, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 34, 38 ], [ 8, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 43, 47 ], [ 8, 48 ], [ 48, 49 ], [ 48, 50 ], [ 8, 51 ], [ 51, 52 ], [ 51, 53 ], [ 8, 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 ], [ 68, 71 ], [ 71, 72 ], [ 71, 73 ], [ 67, 74 ], [ 74, 75 ], [ 75, 76 ], [ 67, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 86, 88 ], [ 8, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 93, 94 ], [ 93, 95 ], [ 8, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 6, 102 ], [ 102, 103 ], [ 0, 104 ], [ 104, 105 ], [ 104, 106 ] ]
[ "import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n \tString s = sc.next();\n \n \tString str[] = new String[3];\n str[0] = s.substring(0,1);\n \t\tstr[1] = s.substring(1,2);\n str[2] = s.substring(2,3);\n \n int min = 0;\n int c = 0;\n for(int i=0;i<3;i++){\n if(\"R\".equals(str[i])){\n c++;\n }else{\n if(c>min) {\n min = c;\n c = 0;\n }\n }\n }\n \n if(c> min) min = c;\n System.out.println(min);\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 \tString s = sc.next();\n \n \tString str[] = new String[3];\n str[0] = s.substring(0,1);\n \t\tstr[1] = s.substring(1,2);\n str[2] = s.substring(2,3);\n \n int min = 0;\n int c = 0;\n for(int i=0;i<3;i++){\n if(\"R\".equals(str[i])){\n c++;\n }else{\n if(c>min) {\n min = c;\n c = 0;\n }\n }\n }\n \n if(c> min) min = c;\n System.out.println(min);\n \n }\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n \tString s = sc.next();\n \n \tString str[] = new String[3];\n str[0] = s.substring(0,1);\n \t\tstr[1] = s.substring(1,2);\n str[2] = s.substring(2,3);\n \n int min = 0;\n int c = 0;\n for(int i=0;i<3;i++){\n if(\"R\".equals(str[i])){\n c++;\n }else{\n if(c>min) {\n min = c;\n c = 0;\n }\n }\n }\n \n if(c> min) min = c;\n System.out.println(min);\n \n }", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n \tString s = sc.next();\n \n \tString str[] = new String[3];\n str[0] = s.substring(0,1);\n \t\tstr[1] = s.substring(1,2);\n str[2] = s.substring(2,3);\n \n int min = 0;\n int c = 0;\n for(int i=0;i<3;i++){\n if(\"R\".equals(str[i])){\n c++;\n }else{\n if(c>min) {\n min = c;\n c = 0;\n }\n }\n }\n \n if(c> min) min = c;\n System.out.println(min);\n \n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "String str[] = new String[3];", "str", "new String[3]", "3", "str[0] = s.substring(0,1)", "str[0]", "str", "0", "s.substring(0,1)", "s.substring", "s", "0", "1", "str[1] = s.substring(1,2)", "str[1]", "str", "1", "s.substring(1,2)", "s.substring", "s", "1", "2", "str[2] = s.substring(2,3)", "str[2]", "str", "2", "s.substring(2,3)", "s.substring", "s", "2", "3", "int min = 0;", "min", "0", "int c = 0;", "c", "0", "for(int i=0;i<3;i++){\n if(\"R\".equals(str[i])){\n c++;\n }else{\n if(c>min) {\n min = c;\n c = 0;\n }\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<3", "i", "3", "i++", "i++", "i", "{\n if(\"R\".equals(str[i])){\n c++;\n }else{\n if(c>min) {\n min = c;\n c = 0;\n }\n }\n }", "{\n if(\"R\".equals(str[i])){\n c++;\n }else{\n if(c>min) {\n min = c;\n c = 0;\n }\n }\n }", "if(\"R\".equals(str[i])){\n c++;\n }else{\n if(c>min) {\n min = c;\n c = 0;\n }\n }", "\"R\".equals(str[i])", "\"R\".equals", "\"R\"", "str[i]", "str", "i", "{\n c++;\n }", "c++", "c", "{\n if(c>min) {\n min = c;\n c = 0;\n }\n }", "if(c>min) {\n min = c;\n c = 0;\n }", "c>min", "c", "min", "{\n min = c;\n c = 0;\n }", "min = c", "min", "c", "c = 0", "c", "0", "if(c> min) min = c;", "c> min", "c", "min", "min = c", "min", "c", "System.out.println(min)", "System.out.println", "System.out", "System", "System.out", "min", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n \tString s = sc.next();\n \n \tString str[] = new String[3];\n str[0] = s.substring(0,1);\n \t\tstr[1] = s.substring(1,2);\n str[2] = s.substring(2,3);\n \n int min = 0;\n int c = 0;\n for(int i=0;i<3;i++){\n if(\"R\".equals(str[i])){\n c++;\n }else{\n if(c>min) {\n min = c;\n c = 0;\n }\n }\n }\n \n if(c> min) min = c;\n System.out.println(min);\n \n }\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n \tString s = sc.next();\n \n \tString str[] = new String[3];\n str[0] = s.substring(0,1);\n \t\tstr[1] = s.substring(1,2);\n str[2] = s.substring(2,3);\n \n int min = 0;\n int c = 0;\n for(int i=0;i<3;i++){\n if(\"R\".equals(str[i])){\n c++;\n }else{\n if(c>min) {\n min = c;\n c = 0;\n }\n }\n }\n \n if(c> min) min = c;\n System.out.println(min);\n \n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); String str[] = new String[3]; str[0] = s.substring(0,1); str[1] = s.substring(1,2); str[2] = s.substring(2,3); int min = 0; int c = 0; for(int i=0;i<3;i++){ if("R".equals(str[i])){ c++; }else{ if(c>min) { min = c; c = 0; } } } if(c> min) min = c; System.out.println(min); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 4, 18, 13, 13, 0, 18, 13, 13, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 4, 18, 18, 13, 13, 17, 30, 40, 13, 0, 13, 13, 14, 4, 18, 18, 13, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 26, 27 ], [ 27, 28 ], [ 8, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 29, 39 ], [ 39, 40 ], [ 40, 41 ], [ 29, 42 ], [ 43, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 43, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 8, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 58, 68 ], [ 68, 69 ], [ 69, 70 ], [ 58, 71 ], [ 72, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 73, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 83, 84 ], [ 83, 85 ], [ 73, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 86, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 8, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 6, 103 ], [ 103, 104 ] ]
[ "import java.util.Scanner;\nclass Main{\n\tpublic static void main(String[] args){\n\t\t\n\t\t\n\t\tint a=0;\n\t\tint b=0;\n\t\t\n\t\tScanner sc1 = new Scanner(System.in);\n \t\tString S = sc1.nextLine();\n \t\tString[] str = new String[S.length()];\n\t\tfor (int i = 0; i < S.length(); i++) {\n \t\t\n \t\tString str2 = String.valueOf(S.charAt(i));\n \t\t\n \t\tstr[i] = str2;\n\t\t}\n\t\tfor(int j=0;j<S.length();j++){\n\t\t\t\n\n\t\t\t\tif(str[j].equals(\"R\")){\n\t\t\t\t\ta++;\n\t\t\t\t\tb=a;\n\t\t\t\t}\n\t\t\t\telse if(str[j].equals(\"S\")){\n\t\t\t\t\ta=0;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t}\n\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\tSystem.out.println(b);\n\t}\n}\n\t\t\n\n\t\t", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n\tpublic static void main(String[] args){\n\t\t\n\t\t\n\t\tint a=0;\n\t\tint b=0;\n\t\t\n\t\tScanner sc1 = new Scanner(System.in);\n \t\tString S = sc1.nextLine();\n \t\tString[] str = new String[S.length()];\n\t\tfor (int i = 0; i < S.length(); i++) {\n \t\t\n \t\tString str2 = String.valueOf(S.charAt(i));\n \t\t\n \t\tstr[i] = str2;\n\t\t}\n\t\tfor(int j=0;j<S.length();j++){\n\t\t\t\n\n\t\t\t\tif(str[j].equals(\"R\")){\n\t\t\t\t\ta++;\n\t\t\t\t\tb=a;\n\t\t\t\t}\n\t\t\t\telse if(str[j].equals(\"S\")){\n\t\t\t\t\ta=0;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t}\n\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\tSystem.out.println(b);\n\t}\n}", "Main", "public static void main(String[] args){\n\t\t\n\t\t\n\t\tint a=0;\n\t\tint b=0;\n\t\t\n\t\tScanner sc1 = new Scanner(System.in);\n \t\tString S = sc1.nextLine();\n \t\tString[] str = new String[S.length()];\n\t\tfor (int i = 0; i < S.length(); i++) {\n \t\t\n \t\tString str2 = String.valueOf(S.charAt(i));\n \t\t\n \t\tstr[i] = str2;\n\t\t}\n\t\tfor(int j=0;j<S.length();j++){\n\t\t\t\n\n\t\t\t\tif(str[j].equals(\"R\")){\n\t\t\t\t\ta++;\n\t\t\t\t\tb=a;\n\t\t\t\t}\n\t\t\t\telse if(str[j].equals(\"S\")){\n\t\t\t\t\ta=0;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t}\n\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\tSystem.out.println(b);\n\t}", "main", "{\n\t\t\n\t\t\n\t\tint a=0;\n\t\tint b=0;\n\t\t\n\t\tScanner sc1 = new Scanner(System.in);\n \t\tString S = sc1.nextLine();\n \t\tString[] str = new String[S.length()];\n\t\tfor (int i = 0; i < S.length(); i++) {\n \t\t\n \t\tString str2 = String.valueOf(S.charAt(i));\n \t\t\n \t\tstr[i] = str2;\n\t\t}\n\t\tfor(int j=0;j<S.length();j++){\n\t\t\t\n\n\t\t\t\tif(str[j].equals(\"R\")){\n\t\t\t\t\ta++;\n\t\t\t\t\tb=a;\n\t\t\t\t}\n\t\t\t\telse if(str[j].equals(\"S\")){\n\t\t\t\t\ta=0;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t}\n\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\tSystem.out.println(b);\n\t}", "int a=0;", "a", "0", "int b=0;", "b", "0", "Scanner sc1 = new Scanner(System.in);", "sc1", "new Scanner(System.in)", "String S = sc1.nextLine();", "S", "sc1.nextLine()", "sc1.nextLine", "sc1", "String[] str = new String[S.length()];", "str", "new String[S.length()]", "S.length()", "S.length", "S", "for (int i = 0; i < S.length(); i++) {\n \t\t\n \t\tString str2 = String.valueOf(S.charAt(i));\n \t\t\n \t\tstr[i] = str2;\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < S.length()", "i", "S.length()", "S.length", "S", "i++", "i++", "i", "{\n \t\t\n \t\tString str2 = String.valueOf(S.charAt(i));\n \t\t\n \t\tstr[i] = str2;\n\t\t}", "{\n \t\t\n \t\tString str2 = String.valueOf(S.charAt(i));\n \t\t\n \t\tstr[i] = str2;\n\t\t}", "String str2 = String.valueOf(S.charAt(i));", "str2", "String.valueOf(S.charAt(i))", "String.valueOf", "String", "S.charAt(i)", "S.charAt", "S", "i", "str[i] = str2", "str[i]", "str", "i", "str2", "for(int j=0;j<S.length();j++){\n\t\t\t\n\n\t\t\t\tif(str[j].equals(\"R\")){\n\t\t\t\t\ta++;\n\t\t\t\t\tb=a;\n\t\t\t\t}\n\t\t\t\telse if(str[j].equals(\"S\")){\n\t\t\t\t\ta=0;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t}", "int j=0;", "int j=0;", "j", "0", "j<S.length()", "j", "S.length()", "S.length", "S", "j++", "j++", "j", "{\n\t\t\t\n\n\t\t\t\tif(str[j].equals(\"R\")){\n\t\t\t\t\ta++;\n\t\t\t\t\tb=a;\n\t\t\t\t}\n\t\t\t\telse if(str[j].equals(\"S\")){\n\t\t\t\t\ta=0;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t}", "{\n\t\t\t\n\n\t\t\t\tif(str[j].equals(\"R\")){\n\t\t\t\t\ta++;\n\t\t\t\t\tb=a;\n\t\t\t\t}\n\t\t\t\telse if(str[j].equals(\"S\")){\n\t\t\t\t\ta=0;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t}", "if(str[j].equals(\"R\")){\n\t\t\t\t\ta++;\n\t\t\t\t\tb=a;\n\t\t\t\t}\n\t\t\t\telse if(str[j].equals(\"S\")){\n\t\t\t\t\ta=0;\n\t\t\t\t\t\n\t\t\t\t}", "str[j].equals(\"R\")", "str[j].equals", "str[j]", "str", "j", "\"R\"", "{\n\t\t\t\t\ta++;\n\t\t\t\t\tb=a;\n\t\t\t\t}", "a++", "a", "b=a", "b", "a", "if(str[j].equals(\"S\")){\n\t\t\t\t\ta=0;\n\t\t\t\t\t\n\t\t\t\t}", "str[j].equals(\"S\")", "str[j].equals", "str[j]", "str", "j", "\"S\"", "{\n\t\t\t\t\ta=0;\n\t\t\t\t\t\n\t\t\t\t}", "a=0", "a", "0", "System.out.println(b)", "System.out.println", "System.out", "System", "System.out", "b", "String[] args", "args" ]
import java.util.Scanner; class Main{ public static void main(String[] args){ int a=0; int b=0; Scanner sc1 = new Scanner(System.in); String S = sc1.nextLine(); String[] str = new String[S.length()]; for (int i = 0; i < S.length(); i++) { String str2 = String.valueOf(S.charAt(i)); str[i] = str2; } for(int j=0;j<S.length();j++){ if(str[j].equals("R")){ a++; b=a; } else if(str[j].equals("S")){ a=0; } } System.out.println(b); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 17, 41, 13, 17, 28, 13, 13, 30, 30, 14, 2, 13, 17, 30, 40, 13, 30, 0, 13, 17, 0, 13, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 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 ], [ 16, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 25, 28 ], [ 29, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 30, 34 ], [ 34, 35 ], [ 35, 36 ], [ 30, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 29, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 43, 47 ], [ 8, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 8, 54 ], [ 54, 55 ], [ 55, 56 ], [ 6, 57 ], [ 57, 58 ], [ 0, 59 ], [ 59, 60 ], [ 59, 61 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n char[] s = sc.next().toCharArray();\n int tmp = 0;\n int ans = 0;\n for (char ss : s) {\n if (ss == 'R') {\n tmp++;\n } else {\n tmp = 0;\n }\n ans = Math.max(tmp, ans);\n }\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 char[] s = sc.next().toCharArray();\n int tmp = 0;\n int ans = 0;\n for (char ss : s) {\n if (ss == 'R') {\n tmp++;\n } else {\n tmp = 0;\n }\n ans = Math.max(tmp, ans);\n }\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 char[] s = sc.next().toCharArray();\n int tmp = 0;\n int ans = 0;\n for (char ss : s) {\n if (ss == 'R') {\n tmp++;\n } else {\n tmp = 0;\n }\n ans = Math.max(tmp, ans);\n }\n System.out.println(ans);\n sc.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n char[] s = sc.next().toCharArray();\n int tmp = 0;\n int ans = 0;\n for (char ss : s) {\n if (ss == 'R') {\n tmp++;\n } else {\n tmp = 0;\n }\n ans = Math.max(tmp, ans);\n }\n System.out.println(ans);\n sc.close();\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "char[] s = sc.next().toCharArray();", "s", "sc.next().toCharArray()", "sc.next().toCharArray", "sc.next()", "sc.next", "sc", "int tmp = 0;", "tmp", "0", "int ans = 0;", "ans", "0", "for (char ss : s) {\n if (ss == 'R') {\n tmp++;\n } else {\n tmp = 0;\n }\n ans = Math.max(tmp, ans);\n }", "char ss", "s", "{\n if (ss == 'R') {\n tmp++;\n } else {\n tmp = 0;\n }\n ans = Math.max(tmp, ans);\n }", "{\n if (ss == 'R') {\n tmp++;\n } else {\n tmp = 0;\n }\n ans = Math.max(tmp, ans);\n }", "if (ss == 'R') {\n tmp++;\n } else {\n tmp = 0;\n }", "ss == 'R'", "ss", "'R'", "{\n tmp++;\n }", "tmp++", "tmp", "{\n tmp = 0;\n }", "tmp = 0", "tmp", "0", "ans = Math.max(tmp, ans)", "ans", "Math.max(tmp, ans)", "Math.max", "Math", "tmp", "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 char[] s = sc.next().toCharArray();\n int tmp = 0;\n int ans = 0;\n for (char ss : s) {\n if (ss == 'R') {\n tmp++;\n } else {\n tmp = 0;\n }\n ans = Math.max(tmp, ans);\n }\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 char[] s = sc.next().toCharArray();\n int tmp = 0;\n int ans = 0;\n for (char ss : s) {\n if (ss == 'R') {\n tmp++;\n } else {\n tmp = 0;\n }\n ans = Math.max(tmp, ans);\n }\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); char[] s = sc.next().toCharArray(); int tmp = 0; int ans = 0; for (char ss : s) { if (ss == 'R') { tmp++; } else { tmp = 0; } ans = Math.max(tmp, ans); } System.out.println(ans); sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 35, 13, 34, 17, 1, 0, 13, 17, 3, 34, 17, 1, 0, 13, 17, 3, 34, 17, 1, 0, 13, 17, 3, 34, 17, 1, 0, 13, 17, 3, 34, 1, 0, 13, 17, 4, 18, 18, 13, 13, 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 ], [ 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 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 24, 28 ], [ 20, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 31, 35 ], [ 20, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 20, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 20, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 8, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 6, 61 ], [ 61, 62 ], [ 0, 63 ], [ 63, 64 ], [ 63, 65 ] ]
[ "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\tString a = sc.next();\n \tint s = 0;\n\t\tswitch (a){\n\t\t\tcase \"SSS\":\n\t\t\t\ts = 0;\n\t\t\t\tbreak;\n\t\t\tcase \"SRR\":\n\t\t\t\ts = 2;\n\t\t\t\tbreak;\n case \"RRS\":\n \ts = 2;\n break;\n \tcase \"RRR\":\n \ts = 3;\n break;\n\t\t\tdefault:\n\t\t\t\ts = 1;\n\t\t}\n System.out.println(s);\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\tString a = sc.next();\n \tint s = 0;\n\t\tswitch (a){\n\t\t\tcase \"SSS\":\n\t\t\t\ts = 0;\n\t\t\t\tbreak;\n\t\t\tcase \"SRR\":\n\t\t\t\ts = 2;\n\t\t\t\tbreak;\n case \"RRS\":\n \ts = 2;\n break;\n \tcase \"RRR\":\n \ts = 3;\n break;\n\t\t\tdefault:\n\t\t\t\ts = 1;\n\t\t}\n System.out.println(s);\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString a = sc.next();\n \tint s = 0;\n\t\tswitch (a){\n\t\t\tcase \"SSS\":\n\t\t\t\ts = 0;\n\t\t\t\tbreak;\n\t\t\tcase \"SRR\":\n\t\t\t\ts = 2;\n\t\t\t\tbreak;\n case \"RRS\":\n \ts = 2;\n break;\n \tcase \"RRR\":\n \ts = 3;\n break;\n\t\t\tdefault:\n\t\t\t\ts = 1;\n\t\t}\n System.out.println(s);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString a = sc.next();\n \tint s = 0;\n\t\tswitch (a){\n\t\t\tcase \"SSS\":\n\t\t\t\ts = 0;\n\t\t\t\tbreak;\n\t\t\tcase \"SRR\":\n\t\t\t\ts = 2;\n\t\t\t\tbreak;\n case \"RRS\":\n \ts = 2;\n break;\n \tcase \"RRR\":\n \ts = 3;\n break;\n\t\t\tdefault:\n\t\t\t\ts = 1;\n\t\t}\n System.out.println(s);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String a = sc.next();", "a", "sc.next()", "sc.next", "sc", "int s = 0;", "s", "0", "switch (a){\n\t\t\tcase \"SSS\":\n\t\t\t\ts = 0;\n\t\t\t\tbreak;\n\t\t\tcase \"SRR\":\n\t\t\t\ts = 2;\n\t\t\t\tbreak;\n case \"RRS\":\n \ts = 2;\n break;\n \tcase \"RRR\":\n \ts = 3;\n break;\n\t\t\tdefault:\n\t\t\t\ts = 1;\n\t\t}", "a", "case \"SSS\":", "\"SSS\"", "case \"SSS\":", "s = 0", "s", "0", "break;", "case \"SRR\":", "\"SRR\"", "case \"SRR\":", "s = 2", "s", "2", "break;", "case \"RRS\":", "\"RRS\"", "case \"RRS\":", "s = 2", "s", "2", "break;", "case \"RRR\":", "\"RRR\"", "case \"RRR\":", "s = 3", "s", "3", "break;", "default:", "default:", "s = 1", "s", "1", "System.out.println(s)", "System.out.println", "System.out", "System", "System.out", "s", "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\tString a = sc.next();\n \tint s = 0;\n\t\tswitch (a){\n\t\t\tcase \"SSS\":\n\t\t\t\ts = 0;\n\t\t\t\tbreak;\n\t\t\tcase \"SRR\":\n\t\t\t\ts = 2;\n\t\t\t\tbreak;\n case \"RRS\":\n \ts = 2;\n break;\n \tcase \"RRR\":\n \ts = 3;\n break;\n\t\t\tdefault:\n\t\t\t\ts = 1;\n\t\t}\n System.out.println(s);\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\tString a = sc.next();\n \tint s = 0;\n\t\tswitch (a){\n\t\t\tcase \"SSS\":\n\t\t\t\ts = 0;\n\t\t\t\tbreak;\n\t\t\tcase \"SRR\":\n\t\t\t\ts = 2;\n\t\t\t\tbreak;\n case \"RRS\":\n \ts = 2;\n break;\n \tcase \"RRR\":\n \ts = 3;\n break;\n\t\t\tdefault:\n\t\t\t\ts = 1;\n\t\t}\n System.out.println(s);\n\t}\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String a = sc.next(); int s = 0; switch (a){ case "SSS": s = 0; break; case "SRR": s = 2; break; case "RRS": s = 2; break; case "RRR": s = 3; break; default: s = 1; } System.out.println(s); } }
[ 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, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 17, 40, 13, 0, 13, 17, 14, 2, 13, 13, 0, 13, 13, 4, 18, 18, 13, 13, 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 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 23, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 23, 33 ], [ 33, 34 ], [ 34, 35 ], [ 23, 36 ], [ 37, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 39, 44 ], [ 38, 45 ], [ 45, 46 ], [ 38, 47 ], [ 47, 48 ], [ 47, 49 ], [ 37, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 54, 56 ], [ 8, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 6, 63 ], [ 63, 64 ], [ 0, 65 ], [ 65, 66 ], [ 65, 67 ] ]
[ "import java.util.*;\n\npublic class Main\n{\n public static void main(String[] args)\n {\n \tScanner sc = new Scanner(System.in);\n String s = sc.next();\n\n int max = 0;\n int tmp = 0;\n\n for (int i=0; i<s.length(); i++)\n {\n if (s.charAt(i) == 'R')\n tmp++;\n else\n tmp = 0;\n \n if (tmp > max)\n max = tmp;\n }\n\n System.out.println(max);\n\n }\n}", "import java.util.*;", "util.*", "java", "public class Main\n{\n public static void main(String[] args)\n {\n \tScanner sc = new Scanner(System.in);\n String s = sc.next();\n\n int max = 0;\n int tmp = 0;\n\n for (int i=0; i<s.length(); i++)\n {\n if (s.charAt(i) == 'R')\n tmp++;\n else\n tmp = 0;\n \n if (tmp > max)\n max = tmp;\n }\n\n System.out.println(max);\n\n }\n}", "Main", "public static void main(String[] args)\n {\n \tScanner sc = new Scanner(System.in);\n String s = sc.next();\n\n int max = 0;\n int tmp = 0;\n\n for (int i=0; i<s.length(); i++)\n {\n if (s.charAt(i) == 'R')\n tmp++;\n else\n tmp = 0;\n \n if (tmp > max)\n max = tmp;\n }\n\n System.out.println(max);\n\n }", "main", "{\n \tScanner sc = new Scanner(System.in);\n String s = sc.next();\n\n int max = 0;\n int tmp = 0;\n\n for (int i=0; i<s.length(); i++)\n {\n if (s.charAt(i) == 'R')\n tmp++;\n else\n tmp = 0;\n \n if (tmp > max)\n max = tmp;\n }\n\n System.out.println(max);\n\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "int max = 0;", "max", "0", "int tmp = 0;", "tmp", "0", "for (int i=0; i<s.length(); i++)\n {\n if (s.charAt(i) == 'R')\n tmp++;\n else\n tmp = 0;\n \n if (tmp > max)\n max = tmp;\n }", "int i=0;", "int i=0;", "i", "0", "i<s.length()", "i", "s.length()", "s.length", "s", "i++", "i++", "i", "{\n if (s.charAt(i) == 'R')\n tmp++;\n else\n tmp = 0;\n \n if (tmp > max)\n max = tmp;\n }", "{\n if (s.charAt(i) == 'R')\n tmp++;\n else\n tmp = 0;\n \n if (tmp > max)\n max = tmp;\n }", "if (s.charAt(i) == 'R')\n tmp++;\n else\n tmp = 0;", "s.charAt(i) == 'R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "tmp++", "tmp", "tmp = 0", "tmp", "0", "if (tmp > max)\n max = tmp;", "tmp > max", "tmp", "max", "max = tmp", "max", "tmp", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args", "public class Main\n{\n public static void main(String[] args)\n {\n \tScanner sc = new Scanner(System.in);\n String s = sc.next();\n\n int max = 0;\n int tmp = 0;\n\n for (int i=0; i<s.length(); i++)\n {\n if (s.charAt(i) == 'R')\n tmp++;\n else\n tmp = 0;\n \n if (tmp > max)\n max = tmp;\n }\n\n System.out.println(max);\n\n }\n}", "public class Main\n{\n public static void main(String[] args)\n {\n \tScanner sc = new Scanner(System.in);\n String s = sc.next();\n\n int max = 0;\n int tmp = 0;\n\n for (int i=0; i<s.length(); i++)\n {\n if (s.charAt(i) == 'R')\n tmp++;\n else\n tmp = 0;\n \n if (tmp > max)\n max = tmp;\n }\n\n System.out.println(max);\n\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); int max = 0; int tmp = 0; for (int i=0; i<s.length(); i++) { if (s.charAt(i) == 'R') tmp++; else tmp = 0; if (tmp > max) max = tmp; } System.out.println(max); } }
[ 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, 42, 2, 4, 18, 13, 17, 30, 14, 4, 18, 13, 17, 30, 0, 13, 17, 30, 0, 13, 17, 14, 2, 13, 13, 30, 0, 13, 13, 0, 13, 4, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 20, 14, 2, 4, 18, 13, 17, 30, 4, 18, 13, 17, 29, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 91, 5 ], [ 91, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 27, 31 ], [ 26, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 33, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 33, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 32, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 32, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 56, 58 ], [ 8, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 6, 65 ], [ 65, 66 ], [ 91, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 74, 78 ], [ 73, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 69, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 67, 88 ], [ 88, 89 ], [ 0, 90 ], [ 90, 91 ], [ 90, 92 ] ]
[ "import java.util.Scanner;\n\n// 提出時にclass Main に書き換え\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\t// 標準入力を受け取る\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.nextLine(); // String Sを受け取る\n\t\tsc.close(); // 標準入力を終了\n\n\n\n\t\tint r = 0; // 連続した雨の日数\n\t\tint rm = 0; // 連続した雨の日数(最大値)\n\n\t\twhile(S.length() > 0) {\n\t\t\tif(S.startsWith(\"R\")) {\n\t\t\t\tr += 1; // 連続した雨の日数を加算\n\t\t\t} else {\n\t\t\t\tr = 0; // 連続した雨の日数を加算\n\t\t\t}\n\t\t\t// 最大値更新\n\t\t\tif(r > rm) {rm = r;}\n\t\t\t// Sの先頭の文字を消去\n\t\t\tS = removeLeadingZeroes(S);\n\t\t}\n\t\tSystem.out.println(rm);\n\t}\n\n\t// 文字列の先頭を削除するメソッド\n\tstatic String removeLeadingZeroes(String s) {\n\t StringBuilder sb = new StringBuilder(s);\n\t if (sb.length() > 0) {\n\t sb.deleteCharAt(0);\n\t }\n\t return sb.toString();\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\t// 標準入力を受け取る\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.nextLine(); // String Sを受け取る\n\t\tsc.close(); // 標準入力を終了\n\n\n\n\t\tint r = 0; // 連続した雨の日数\n\t\tint rm = 0; // 連続した雨の日数(最大値)\n\n\t\twhile(S.length() > 0) {\n\t\t\tif(S.startsWith(\"R\")) {\n\t\t\t\tr += 1; // 連続した雨の日数を加算\n\t\t\t} else {\n\t\t\t\tr = 0; // 連続した雨の日数を加算\n\t\t\t}\n\t\t\t// 最大値更新\n\t\t\tif(r > rm) {rm = r;}\n\t\t\t// Sの先頭の文字を消去\n\t\t\tS = removeLeadingZeroes(S);\n\t\t}\n\t\tSystem.out.println(rm);\n\t}\n\n\t// 文字列の先頭を削除するメソッド\n\tstatic String removeLeadingZeroes(String s) {\n\t StringBuilder sb = new StringBuilder(s);\n\t if (sb.length() > 0) {\n\t sb.deleteCharAt(0);\n\t }\n\t return sb.toString();\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t// 標準入力を受け取る\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.nextLine(); // String Sを受け取る\n\t\tsc.close(); // 標準入力を終了\n\n\n\n\t\tint r = 0; // 連続した雨の日数\n\t\tint rm = 0; // 連続した雨の日数(最大値)\n\n\t\twhile(S.length() > 0) {\n\t\t\tif(S.startsWith(\"R\")) {\n\t\t\t\tr += 1; // 連続した雨の日数を加算\n\t\t\t} else {\n\t\t\t\tr = 0; // 連続した雨の日数を加算\n\t\t\t}\n\t\t\t// 最大値更新\n\t\t\tif(r > rm) {rm = r;}\n\t\t\t// Sの先頭の文字を消去\n\t\t\tS = removeLeadingZeroes(S);\n\t\t}\n\t\tSystem.out.println(rm);\n\t}", "main", "{\n\t\t// 標準入力を受け取る\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.nextLine(); // String Sを受け取る\n\t\tsc.close(); // 標準入力を終了\n\n\n\n\t\tint r = 0; // 連続した雨の日数\n\t\tint rm = 0; // 連続した雨の日数(最大値)\n\n\t\twhile(S.length() > 0) {\n\t\t\tif(S.startsWith(\"R\")) {\n\t\t\t\tr += 1; // 連続した雨の日数を加算\n\t\t\t} else {\n\t\t\t\tr = 0; // 連続した雨の日数を加算\n\t\t\t}\n\t\t\t// 最大値更新\n\t\t\tif(r > rm) {rm = r;}\n\t\t\t// Sの先頭の文字を消去\n\t\t\tS = removeLeadingZeroes(S);\n\t\t}\n\t\tSystem.out.println(rm);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String S = sc.nextLine();", "S", "sc.nextLine()", "sc.nextLine", "sc", "sc.close()", "sc.close", "sc", "int r = 0;", "r", "0", "int rm = 0;", "rm", "0", "while(S.length() > 0) {\n\t\t\tif(S.startsWith(\"R\")) {\n\t\t\t\tr += 1; // 連続した雨の日数を加算\n\t\t\t} else {\n\t\t\t\tr = 0; // 連続した雨の日数を加算\n\t\t\t}\n\t\t\t// 最大値更新\n\t\t\tif(r > rm) {rm = r;}\n\t\t\t// Sの先頭の文字を消去\n\t\t\tS = removeLeadingZeroes(S);\n\t\t}", "S.length() > 0", "S.length()", "S.length", "S", "0", "{\n\t\t\tif(S.startsWith(\"R\")) {\n\t\t\t\tr += 1; // 連続した雨の日数を加算\n\t\t\t} else {\n\t\t\t\tr = 0; // 連続した雨の日数を加算\n\t\t\t}\n\t\t\t// 最大値更新\n\t\t\tif(r > rm) {rm = r;}\n\t\t\t// Sの先頭の文字を消去\n\t\t\tS = removeLeadingZeroes(S);\n\t\t}", "if(S.startsWith(\"R\")) {\n\t\t\t\tr += 1; // 連続した雨の日数を加算\n\t\t\t} else {\n\t\t\t\tr = 0; // 連続した雨の日数を加算\n\t\t\t}", "S.startsWith(\"R\")", "S.startsWith", "S", "\"R\"", "{\n\t\t\t\tr += 1; // 連続した雨の日数を加算\n\t\t\t}", "r += 1", "r", "1", "{\n\t\t\t\tr = 0; // 連続した雨の日数を加算\n\t\t\t}", "r = 0", "r", "0", "if(r > rm) {rm = r;}", "r > rm", "r", "rm", "{rm = r;}", "rm = r", "rm", "r", "S = removeLeadingZeroes(S)", "S", "removeLeadingZeroes(S)", "removeLeadingZeroes", "S", "System.out.println(rm)", "System.out.println", "System.out", "System", "System.out", "rm", "String[] args", "args", "// 文字列の先頭を削除するメソッド\n\tstatic String removeLeadingZeroes(String s) {\n\t StringBuilder sb = new StringBuilder(s);\n\t if (sb.length() > 0) {\n\t sb.deleteCharAt(0);\n\t }\n\t return sb.toString();\n\t}", "removeLeadingZeroes", "{\n\t StringBuilder sb = new StringBuilder(s);\n\t if (sb.length() > 0) {\n\t sb.deleteCharAt(0);\n\t }\n\t return sb.toString();\n\t}", "StringBuilder sb = new StringBuilder(s);", "sb", "new StringBuilder(s)", "if (sb.length() > 0) {\n\t sb.deleteCharAt(0);\n\t }", "sb.length() > 0", "sb.length()", "sb.length", "sb", "0", "{\n\t sb.deleteCharAt(0);\n\t }", "sb.deleteCharAt(0)", "sb.deleteCharAt", "sb", "0", "return sb.toString();", "sb.toString()", "sb.toString", "sb", "String s", "s", "public class Main {\n\tpublic static void main(String[] args) {\n\t\t// 標準入力を受け取る\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.nextLine(); // String Sを受け取る\n\t\tsc.close(); // 標準入力を終了\n\n\n\n\t\tint r = 0; // 連続した雨の日数\n\t\tint rm = 0; // 連続した雨の日数(最大値)\n\n\t\twhile(S.length() > 0) {\n\t\t\tif(S.startsWith(\"R\")) {\n\t\t\t\tr += 1; // 連続した雨の日数を加算\n\t\t\t} else {\n\t\t\t\tr = 0; // 連続した雨の日数を加算\n\t\t\t}\n\t\t\t// 最大値更新\n\t\t\tif(r > rm) {rm = r;}\n\t\t\t// Sの先頭の文字を消去\n\t\t\tS = removeLeadingZeroes(S);\n\t\t}\n\t\tSystem.out.println(rm);\n\t}\n\n\t// 文字列の先頭を削除するメソッド\n\tstatic String removeLeadingZeroes(String s) {\n\t StringBuilder sb = new StringBuilder(s);\n\t if (sb.length() > 0) {\n\t sb.deleteCharAt(0);\n\t }\n\t return sb.toString();\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\t// 標準入力を受け取る\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.nextLine(); // String Sを受け取る\n\t\tsc.close(); // 標準入力を終了\n\n\n\n\t\tint r = 0; // 連続した雨の日数\n\t\tint rm = 0; // 連続した雨の日数(最大値)\n\n\t\twhile(S.length() > 0) {\n\t\t\tif(S.startsWith(\"R\")) {\n\t\t\t\tr += 1; // 連続した雨の日数を加算\n\t\t\t} else {\n\t\t\t\tr = 0; // 連続した雨の日数を加算\n\t\t\t}\n\t\t\t// 最大値更新\n\t\t\tif(r > rm) {rm = r;}\n\t\t\t// Sの先頭の文字を消去\n\t\t\tS = removeLeadingZeroes(S);\n\t\t}\n\t\tSystem.out.println(rm);\n\t}\n\n\t// 文字列の先頭を削除するメソッド\n\tstatic String removeLeadingZeroes(String s) {\n\t StringBuilder sb = new StringBuilder(s);\n\t if (sb.length() > 0) {\n\t sb.deleteCharAt(0);\n\t }\n\t return sb.toString();\n\t}\n\n}", "Main" ]
import java.util.Scanner; // 提出時にclass Main に書き換え public class Main { public static void main(String[] args) { // 標準入力を受け取る Scanner sc = new Scanner(System.in); String S = sc.nextLine(); // String Sを受け取る sc.close(); // 標準入力を終了 int r = 0; // 連続した雨の日数 int rm = 0; // 連続した雨の日数(最大値) while(S.length() > 0) { if(S.startsWith("R")) { r += 1; // 連続した雨の日数を加算 } else { r = 0; // 連続した雨の日数を加算 } // 最大値更新 if(r > rm) {rm = r;} // Sの先頭の文字を消去 S = removeLeadingZeroes(S); } System.out.println(rm); } // 文字列の先頭を削除するメソッド static String removeLeadingZeroes(String s) { StringBuilder sb = new StringBuilder(s); if (sb.length() > 0) { sb.deleteCharAt(0); } return sb.toString(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 20, 41, 13, 4, 18, 13, 0, 13, 17, 41, 13, 4, 18, 13, 17, 40, 17, 11, 1, 0, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 18, 13, 13, 13, 0, 13, 4, 18, 18, 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 ], [ 8, 11 ], [ 11, 12 ], [ 8, 13 ], [ 13, 14 ], [ 13, 15 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 26, 29 ], [ 26, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 39, 41 ], [ 32, 42 ], [ 42, 43 ], [ 43, 44 ], [ 32, 45 ], [ 46, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 48, 54 ], [ 47, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 8, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 6, 68 ], [ 68, 69 ] ]
[ "import java.util.Scanner;\nclass Main\n{\n public static void main(String args[])\n {\n int c,i;\n Scanner sc = new Scanner(System.in);\n String s=sc.nextLine();\n c=0;\n String str [] = s.split(\"S\",-1);\n for(i=0;i<str.length;i++)\n {\n if(str[i].length()>c)\n c=str[i].length();\n }\n System.out.println(c);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main\n{\n public static void main(String args[])\n {\n int c,i;\n Scanner sc = new Scanner(System.in);\n String s=sc.nextLine();\n c=0;\n String str [] = s.split(\"S\",-1);\n for(i=0;i<str.length;i++)\n {\n if(str[i].length()>c)\n c=str[i].length();\n }\n System.out.println(c);\n }\n}", "Main", "public static void main(String args[])\n {\n int c,i;\n Scanner sc = new Scanner(System.in);\n String s=sc.nextLine();\n c=0;\n String str [] = s.split(\"S\",-1);\n for(i=0;i<str.length;i++)\n {\n if(str[i].length()>c)\n c=str[i].length();\n }\n System.out.println(c);\n }", "main", "{\n int c,i;\n Scanner sc = new Scanner(System.in);\n String s=sc.nextLine();\n c=0;\n String str [] = s.split(\"S\",-1);\n for(i=0;i<str.length;i++)\n {\n if(str[i].length()>c)\n c=str[i].length();\n }\n System.out.println(c);\n }", "int c", "c", "i;", "i", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s=sc.nextLine();", "s", "sc.nextLine()", "sc.nextLine", "sc", "c=0", "c", "0", "String str [] = s.split(\"S\",-1);", "str", "s.split(\"S\",-1)", "s.split", "s", "\"S\"", "-1", "1", "for(i=0;i<str.length;i++)\n {\n if(str[i].length()>c)\n c=str[i].length();\n }", "i=0;", "i=0", "i", "0", "i<str.length", "i", "str.length", "str", "str.length", "i++", "i++", "i", "{\n if(str[i].length()>c)\n c=str[i].length();\n }", "{\n if(str[i].length()>c)\n c=str[i].length();\n }", "if(str[i].length()>c)\n c=str[i].length();", "str[i].length()>c", "str[i].length()", "str[i].length", "str[i]", "str", "i", "c", "c=str[i].length()", "c", "str[i].length()", "str[i].length", "str[i]", "str", "i", "System.out.println(c)", "System.out.println", "System.out", "System", "System.out", "c", "String args[]", "args" ]
import java.util.Scanner; class Main { public static void main(String args[]) { int c,i; Scanner sc = new Scanner(System.in); String s=sc.nextLine(); c=0; String str [] = s.split("S",-1); for(i=0;i<str.length;i++) { if(str[i].length()>c) c=str[i].length(); } System.out.println(c); } }
[ 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, 17, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 17, 30, 40, 13, 14, 2, 2, 13, 17, 2, 4, 18, 13, 17, 17, 30, 40, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 69, 5 ], [ 69, 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 ], [ 20, 31 ], [ 32, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 34, 39 ], [ 33, 40 ], [ 40, 41 ], [ 41, 42 ], [ 8, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 48, 53 ], [ 43, 54 ], [ 54, 55 ], [ 55, 56 ], [ 8, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 8, 63 ], [ 63, 64 ], [ 64, 65 ], [ 6, 66 ], [ 66, 67 ], [ 0, 68 ], [ 68, 69 ], [ 68, 70 ] ]
[ "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\tString S = stdIn.next();\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < 3; i++){\n\t\t\tif(S.charAt(i) == 'R'){\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tif(ans == 2 && S.charAt(1) == 'S'){\n\t\t\tans--;\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tstdIn.close();\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\tString S = stdIn.next();\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < 3; i++){\n\t\t\tif(S.charAt(i) == 'R'){\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tif(ans == 2 && S.charAt(1) == 'S'){\n\t\t\tans--;\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tstdIn.close();\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString S = stdIn.next();\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < 3; i++){\n\t\t\tif(S.charAt(i) == 'R'){\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tif(ans == 2 && S.charAt(1) == 'S'){\n\t\t\tans--;\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tstdIn.close();\n\t}", "main", "{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString S = stdIn.next();\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < 3; i++){\n\t\t\tif(S.charAt(i) == 'R'){\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tif(ans == 2 && S.charAt(1) == 'S'){\n\t\t\tans--;\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tstdIn.close();\n\t}", "Scanner stdIn = new Scanner(System.in);", "stdIn", "new Scanner(System.in)", "String S = stdIn.next();", "S", "stdIn.next()", "stdIn.next", "stdIn", "int ans = 0;", "ans", "0", "for(int i = 0; i < 3; i++){\n\t\t\tif(S.charAt(i) == 'R'){\n\t\t\t\tans++;\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < 3", "i", "3", "i++", "i++", "i", "{\n\t\t\tif(S.charAt(i) == 'R'){\n\t\t\t\tans++;\n\t\t\t}\n\t\t}", "{\n\t\t\tif(S.charAt(i) == 'R'){\n\t\t\t\tans++;\n\t\t\t}\n\t\t}", "if(S.charAt(i) == 'R'){\n\t\t\t\tans++;\n\t\t\t}", "S.charAt(i) == 'R'", "S.charAt(i)", "S.charAt", "S", "i", "'R'", "{\n\t\t\t\tans++;\n\t\t\t}", "ans++", "ans", "if(ans == 2 && S.charAt(1) == 'S'){\n\t\t\tans--;\n\t\t}", "ans == 2 && S.charAt(1) == 'S'", "ans == 2", "ans", "2", "S.charAt(1) == 'S'", "S.charAt(1)", "S.charAt", "S", "1", "'S'", "{\n\t\t\tans--;\n\t\t}", "ans--", "ans", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "stdIn.close()", "stdIn.close", "stdIn", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString S = stdIn.next();\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < 3; i++){\n\t\t\tif(S.charAt(i) == 'R'){\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tif(ans == 2 && S.charAt(1) == 'S'){\n\t\t\tans--;\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tstdIn.close();\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString S = stdIn.next();\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < 3; i++){\n\t\t\tif(S.charAt(i) == 'R'){\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tif(ans == 2 && S.charAt(1) == 'S'){\n\t\t\tans--;\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tstdIn.close();\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner stdIn = new Scanner(System.in); String S = stdIn.next(); int ans = 0; for(int i = 0; i < 3; i++){ if(S.charAt(i) == 'R'){ ans++; } } if(ans == 2 && S.charAt(1) == 'S'){ ans--; } System.out.println(ans); stdIn.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 4, 18, 13, 17, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 68, 5 ], [ 68, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 18, 21 ], [ 17, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 23, 28 ], [ 17, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 29, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 29, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 42, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 41, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 41, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 6, 65 ], [ 65, 66 ], [ 0, 67 ], [ 67, 68 ], [ 67, 69 ] ]
[ "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\tString line=sc.nextLine();\n\t\t\n\t\tif(line.equals(\"RRR\")) {\n\t\t\tSystem.out.println(3);\n\t\t}else if(line.equals(\"SSS\")) {\n\t\t\tSystem.out.println(0);\n\t\t}else if(line.equals(\"RRS\") ||line.equals(\"SRR\")){\n\t\t\tSystem.out.println(2);\n\t\t}else {\n\t\t\tSystem.out.println(1);\n\t\t}\t\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 sc=new Scanner(System.in);\n\t\tString line=sc.nextLine();\n\t\t\n\t\tif(line.equals(\"RRR\")) {\n\t\t\tSystem.out.println(3);\n\t\t}else if(line.equals(\"SSS\")) {\n\t\t\tSystem.out.println(0);\n\t\t}else if(line.equals(\"RRS\") ||line.equals(\"SRR\")){\n\t\t\tSystem.out.println(2);\n\t\t}else {\n\t\t\tSystem.out.println(1);\n\t\t}\t\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tString line=sc.nextLine();\n\t\t\n\t\tif(line.equals(\"RRR\")) {\n\t\t\tSystem.out.println(3);\n\t\t}else if(line.equals(\"SSS\")) {\n\t\t\tSystem.out.println(0);\n\t\t}else if(line.equals(\"RRS\") ||line.equals(\"SRR\")){\n\t\t\tSystem.out.println(2);\n\t\t}else {\n\t\t\tSystem.out.println(1);\n\t\t}\t\n\n\t}", "main", "{\n\t\tScanner sc=new Scanner(System.in);\n\t\tString line=sc.nextLine();\n\t\t\n\t\tif(line.equals(\"RRR\")) {\n\t\t\tSystem.out.println(3);\n\t\t}else if(line.equals(\"SSS\")) {\n\t\t\tSystem.out.println(0);\n\t\t}else if(line.equals(\"RRS\") ||line.equals(\"SRR\")){\n\t\t\tSystem.out.println(2);\n\t\t}else {\n\t\t\tSystem.out.println(1);\n\t\t}\t\n\n\t}", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "String line=sc.nextLine();", "line", "sc.nextLine()", "sc.nextLine", "sc", "if(line.equals(\"RRR\")) {\n\t\t\tSystem.out.println(3);\n\t\t}else if(line.equals(\"SSS\")) {\n\t\t\tSystem.out.println(0);\n\t\t}else if(line.equals(\"RRS\") ||line.equals(\"SRR\")){\n\t\t\tSystem.out.println(2);\n\t\t}else {\n\t\t\tSystem.out.println(1);\n\t\t}", "line.equals(\"RRR\")", "line.equals", "line", "\"RRR\"", "{\n\t\t\tSystem.out.println(3);\n\t\t}", "System.out.println(3)", "System.out.println", "System.out", "System", "System.out", "3", "if(line.equals(\"SSS\")) {\n\t\t\tSystem.out.println(0);\n\t\t}else if(line.equals(\"RRS\") ||line.equals(\"SRR\")){\n\t\t\tSystem.out.println(2);\n\t\t}else {\n\t\t\tSystem.out.println(1);\n\t\t}", "line.equals(\"SSS\")", "line.equals", "line", "\"SSS\"", "{\n\t\t\tSystem.out.println(0);\n\t\t}", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "if(line.equals(\"RRS\") ||line.equals(\"SRR\")){\n\t\t\tSystem.out.println(2);\n\t\t}else {\n\t\t\tSystem.out.println(1);\n\t\t}", "line.equals(\"RRS\") ||line.equals(\"SRR\")", "line.equals(\"RRS\")", "line.equals", "line", "\"RRS\"", "line.equals(\"SRR\")", "line.equals", "line", "\"SRR\"", "{\n\t\t\tSystem.out.println(2);\n\t\t}", "System.out.println(2)", "System.out.println", "System.out", "System", "System.out", "2", "{\n\t\t\tSystem.out.println(1);\n\t\t}", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tString line=sc.nextLine();\n\t\t\n\t\tif(line.equals(\"RRR\")) {\n\t\t\tSystem.out.println(3);\n\t\t}else if(line.equals(\"SSS\")) {\n\t\t\tSystem.out.println(0);\n\t\t}else if(line.equals(\"RRS\") ||line.equals(\"SRR\")){\n\t\t\tSystem.out.println(2);\n\t\t}else {\n\t\t\tSystem.out.println(1);\n\t\t}\t\n\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\tString line=sc.nextLine();\n\t\t\n\t\tif(line.equals(\"RRR\")) {\n\t\t\tSystem.out.println(3);\n\t\t}else if(line.equals(\"SSS\")) {\n\t\t\tSystem.out.println(0);\n\t\t}else if(line.equals(\"RRS\") ||line.equals(\"SRR\")){\n\t\t\tSystem.out.println(2);\n\t\t}else {\n\t\t\tSystem.out.println(1);\n\t\t}\t\n\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); String line=sc.nextLine(); if(line.equals("RRR")) { System.out.println(3); }else if(line.equals("SSS")) { System.out.println(0); }else if(line.equals("RRS") ||line.equals("SRR")){ System.out.println(2); }else { System.out.println(1); } } }