node_ids
listlengths
4
1.4k
edge_index
listlengths
1
2.22k
text
listlengths
4
1.4k
source
stringlengths
14
427k
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 40, 17, 41, 13, 11, 1, 41, 13, 4, 18, 13, 2, 17, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 17, 13, 14, 4, 18, 13, 13, 30, 0, 13, 13, 0, 13, 40, 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 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 8, 21 ], [ 21, 22 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 23, 30 ], [ 30, 31 ], [ 30, 32 ], [ 23, 33 ], [ 33, 34 ], [ 34, 35 ], [ 23, 36 ], [ 37, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 40, 44 ], [ 37, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 45, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 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.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner s = new Scanner(System.in);\n\n String str = s.next();\n int count = -1;\n \n String forStr;\n for(int i=str.length(); 0<=i; i--){\n forStr = String.format(\".*R{%d}.*\", i);\n if(str.matches(forStr)){\n count = i;\n i=-1;\n }\n }\n System.out.println(count);\n }\n}", "import java.util.*;", "util.*", "java", "public class Main{\n public static void main(String[] args){\n Scanner s = new Scanner(System.in);\n\n String str = s.next();\n int count = -1;\n \n String forStr;\n for(int i=str.length(); 0<=i; i--){\n forStr = String.format(\".*R{%d}.*\", i);\n if(str.matches(forStr)){\n count = i;\n i=-1;\n }\n }\n System.out.println(count);\n }\n}", "Main", "public static void main(String[] args){\n Scanner s = new Scanner(System.in);\n\n String str = s.next();\n int count = -1;\n \n String forStr;\n for(int i=str.length(); 0<=i; i--){\n forStr = String.format(\".*R{%d}.*\", i);\n if(str.matches(forStr)){\n count = i;\n i=-1;\n }\n }\n System.out.println(count);\n }", "main", "{\n Scanner s = new Scanner(System.in);\n\n String str = s.next();\n int count = -1;\n \n String forStr;\n for(int i=str.length(); 0<=i; i--){\n forStr = String.format(\".*R{%d}.*\", i);\n if(str.matches(forStr)){\n count = i;\n i=-1;\n }\n }\n System.out.println(count);\n }", "Scanner s = new Scanner(System.in);", "s", "new Scanner(System.in)", "String str = s.next();", "str", "s.next()", "s.next", "s", "int count = -1;", "count", "-1", "1", "String forStr;", "forStr", "for(int i=str.length(); 0<=i; i--){\n forStr = String.format(\".*R{%d}.*\", i);\n if(str.matches(forStr)){\n count = i;\n i=-1;\n }\n }", "int i=str.length();", "int i=str.length();", "i", "str.length()", "str.length", "str", "0<=i", "0", "i", "i--", "i--", "i", "{\n forStr = String.format(\".*R{%d}.*\", i);\n if(str.matches(forStr)){\n count = i;\n i=-1;\n }\n }", "{\n forStr = String.format(\".*R{%d}.*\", i);\n if(str.matches(forStr)){\n count = i;\n i=-1;\n }\n }", "forStr = String.format(\".*R{%d}.*\", i)", "forStr", "String.format(\".*R{%d}.*\", i)", "String.format", "String", "\".*R{%d}.*\"", "i", "if(str.matches(forStr)){\n count = i;\n i=-1;\n }", "str.matches(forStr)", "str.matches", "str", "forStr", "{\n count = i;\n i=-1;\n }", "count = i", "count", "i", "i=-1", "i", "-1", "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 s = new Scanner(System.in);\n\n String str = s.next();\n int count = -1;\n \n String forStr;\n for(int i=str.length(); 0<=i; i--){\n forStr = String.format(\".*R{%d}.*\", i);\n if(str.matches(forStr)){\n count = i;\n i=-1;\n }\n }\n System.out.println(count);\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner s = new Scanner(System.in);\n\n String str = s.next();\n int count = -1;\n \n String forStr;\n for(int i=str.length(); 0<=i; i--){\n forStr = String.format(\".*R{%d}.*\", i);\n if(str.matches(forStr)){\n count = i;\n i=-1;\n }\n }\n System.out.println(count);\n }\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner s = new Scanner(System.in); String str = s.next(); int count = -1; String forStr; for(int i=str.length(); 0<=i; i--){ forStr = String.format(".*R{%d}.*", i); if(str.matches(forStr)){ count = i; i=-1; } } System.out.println(count); } }
[ 7, 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, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 17, 40, 13, 14, 2, 13, 17, 30, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 4, 18, 13, 13, 17, 2, 4, 18, 13, 2, 13, 17, 17, 0, 13, 17, 14, 2, 13, 17, 0, 13, 17, 4, 18, 18, 13, 13, 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, 29, 17, 14, 2, 2, 2, 2, 13, 17, 17, 2, 13, 17, 2, 13, 17, 29, 17, 30, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 13, 1, 0, 13, 17, 30, 30, 14, 2, 2, 13, 13, 17, 29, 17, 29, 17, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 29, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 277, 20 ], [ 277, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 23, 32 ], [ 32, 33 ], [ 32, 34 ], [ 23, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 40, 41 ], [ 40, 42 ], [ 35, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 47, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 49, 54 ], [ 48, 55 ], [ 55, 56 ], [ 23, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 61, 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 ], [ 80, 85 ], [ 79, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 90, 91 ], [ 90, 92 ], [ 86, 93 ], [ 78, 94 ], [ 94, 95 ], [ 94, 96 ], [ 61, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 101, 102 ], [ 101, 103 ], [ 23, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 21, 110 ], [ 110, 111 ], [ 277, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 115, 119 ], [ 119, 120 ], [ 120, 121 ], [ 114, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 123, 126 ], [ 126, 127 ], [ 126, 128 ], [ 112, 129 ], [ 129, 130 ], [ 112, 131 ], [ 131, 132 ], [ 277, 133 ], [ 133, 134 ], [ 133, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 136, 140 ], [ 140, 141 ], [ 136, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 145, 149 ], [ 144, 150 ], [ 150, 151 ], [ 150, 152 ], [ 143, 153 ], [ 153, 154 ], [ 153, 155 ], [ 142, 156 ], [ 156, 157 ], [ 142, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 161, 163 ], [ 159, 164 ], [ 164, 165 ], [ 164, 166 ], [ 166, 167 ], [ 167, 168 ], [ 166, 169 ], [ 159, 170 ], [ 170, 171 ], [ 171, 172 ], [ 171, 173 ], [ 159, 174 ], [ 175, 175 ], [ 175, 176 ], [ 176, 177 ], [ 177, 178 ], [ 178, 179 ], [ 178, 180 ], [ 177, 181 ], [ 176, 182 ], [ 182, 183 ], [ 158, 184 ], [ 184, 185 ], [ 133, 186 ], [ 186, 187 ], [ 277, 188 ], [ 188, 189 ], [ 188, 190 ], [ 190, 191 ], [ 188, 192 ], [ 192, 193 ], [ 188, 194 ], [ 194, 195 ], [ 194, 196 ], [ 196, 197 ], [ 197, 198 ], [ 197, 199 ], [ 188, 200 ], [ 200, 201 ], [ 200, 202 ], [ 202, 203 ], [ 203, 204 ], [ 204, 205 ], [ 205, 206 ], [ 205, 207 ], [ 204, 208 ], [ 208, 209 ], [ 209, 210 ], [ 210, 211 ], [ 203, 212 ], [ 212, 213 ], [ 213, 214 ], [ 214, 215 ], [ 214, 216 ], [ 216, 217 ], [ 217, 218 ], [ 218, 219 ], [ 213, 220 ], [ 220, 221 ], [ 221, 222 ], [ 221, 223 ], [ 202, 224 ], [ 224, 225 ], [ 225, 226 ], [ 226, 227 ], [ 188, 228 ], [ 228, 229 ], [ 228, 230 ], [ 230, 231 ], [ 231, 232 ], [ 232, 233 ], [ 233, 234 ], [ 232, 235 ], [ 235, 236 ], [ 188, 237 ], [ 237, 238 ], [ 237, 239 ], [ 239, 240 ], [ 240, 241 ], [ 241, 242 ], [ 242, 243 ], [ 241, 244 ], [ 244, 245 ], [ 188, 246 ], [ 246, 247 ], [ 246, 248 ], [ 248, 249 ], [ 249, 250 ], [ 250, 251 ], [ 251, 252 ], [ 250, 253 ], [ 253, 254 ], [ 188, 255 ], [ 255, 256 ], [ 255, 257 ], [ 257, 258 ], [ 258, 259 ], [ 258, 260 ], [ 257, 261 ], [ 261, 262 ], [ 262, 263 ], [ 262, 264 ], [ 264, 265 ], [ 265, 266 ], [ 266, 267 ], [ 261, 268 ], [ 268, 269 ], [ 269, 270 ], [ 269, 271 ], [ 271, 272 ], [ 272, 273 ], [ 257, 274 ], [ 274, 275 ], [ 0, 276 ], [ 276, 277 ], [ 276, 278 ] ]
[ "\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\nimport java.util.Scanner;\nimport java.util.StringTokenizer;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n String s1 =s.next();\n int res=0;\n for(int i=0;i<3;i++){\n if(s1.charAt(i)=='R')\n res++;\n }\n if(res==2){\n int flag=0;\n for(int i=0;i<2;i++){\n if(s1.charAt(i)=='R'&&s1.charAt(i+1)=='R')\n flag=1;\n }\n if(flag==0)\n res=1;\n }\n System.out.println(res);\n }\n static int gcd(int a, int b)\n {\n if(b==0) {\n return a;\n }\n return gcd(b,a%b);\n }\n private static boolean isPrime(int n) {\n if (n == 2)\n return true;\n else if ((n % 2 == 0 && n > 2) || n < 2)\n return false;\n else {\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }\n\n\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n String s1 =s.next();\n int res=0;\n for(int i=0;i<3;i++){\n if(s1.charAt(i)=='R')\n res++;\n }\n if(res==2){\n int flag=0;\n for(int i=0;i<2;i++){\n if(s1.charAt(i)=='R'&&s1.charAt(i+1)=='R')\n flag=1;\n }\n if(flag==0)\n res=1;\n }\n System.out.println(res);\n }\n static int gcd(int a, int b)\n {\n if(b==0) {\n return a;\n }\n return gcd(b,a%b);\n }\n private static boolean isPrime(int n) {\n if (n == 2)\n return true;\n else if ((n % 2 == 0 && n > 2) || n < 2)\n return false;\n else {\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }\n\n\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n}", "Main", "public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n String s1 =s.next();\n int res=0;\n for(int i=0;i<3;i++){\n if(s1.charAt(i)=='R')\n res++;\n }\n if(res==2){\n int flag=0;\n for(int i=0;i<2;i++){\n if(s1.charAt(i)=='R'&&s1.charAt(i+1)=='R')\n flag=1;\n }\n if(flag==0)\n res=1;\n }\n System.out.println(res);\n }", "main", "{\n Scanner s = new Scanner(System.in);\n String s1 =s.next();\n int res=0;\n for(int i=0;i<3;i++){\n if(s1.charAt(i)=='R')\n res++;\n }\n if(res==2){\n int flag=0;\n for(int i=0;i<2;i++){\n if(s1.charAt(i)=='R'&&s1.charAt(i+1)=='R')\n flag=1;\n }\n if(flag==0)\n res=1;\n }\n System.out.println(res);\n }", "Scanner s = new Scanner(System.in);", "s", "new Scanner(System.in)", "String s1 =s.next();", "s1", "s.next()", "s.next", "s", "int res=0;", "res", "0", "for(int i=0;i<3;i++){\n if(s1.charAt(i)=='R')\n res++;\n }", "int i=0;", "int i=0;", "i", "0", "i<3", "i", "3", "i++", "i++", "i", "{\n if(s1.charAt(i)=='R')\n res++;\n }", "{\n if(s1.charAt(i)=='R')\n res++;\n }", "if(s1.charAt(i)=='R')\n res++;", "s1.charAt(i)=='R'", "s1.charAt(i)", "s1.charAt", "s1", "i", "'R'", "res++", "res", "if(res==2){\n int flag=0;\n for(int i=0;i<2;i++){\n if(s1.charAt(i)=='R'&&s1.charAt(i+1)=='R')\n flag=1;\n }\n if(flag==0)\n res=1;\n }", "res==2", "res", "2", "{\n int flag=0;\n for(int i=0;i<2;i++){\n if(s1.charAt(i)=='R'&&s1.charAt(i+1)=='R')\n flag=1;\n }\n if(flag==0)\n res=1;\n }", "int flag=0;", "flag", "0", "for(int i=0;i<2;i++){\n if(s1.charAt(i)=='R'&&s1.charAt(i+1)=='R')\n flag=1;\n }", "int i=0;", "int i=0;", "i", "0", "i<2", "i", "2", "i++", "i++", "i", "{\n if(s1.charAt(i)=='R'&&s1.charAt(i+1)=='R')\n flag=1;\n }", "{\n if(s1.charAt(i)=='R'&&s1.charAt(i+1)=='R')\n flag=1;\n }", "if(s1.charAt(i)=='R'&&s1.charAt(i+1)=='R')\n flag=1;", "s1.charAt(i)=='R'&&s1.charAt(i+1)=='R'", "s1.charAt(i)=='R'", "s1.charAt(i)", "s1.charAt", "s1", "i", "'R'", "s1.charAt(i+1)=='R'", "s1.charAt(i+1)", "s1.charAt", "s1", "i+1", "i", "1", "'R'", "flag=1", "flag", "1", "if(flag==0)\n res=1;", "flag==0", "flag", "0", "res=1", "res", "1", "System.out.println(res)", "System.out.println", "System.out", "System", "System.out", "res", "String[] args", "args", "static int gcd(int a, int b)\n {\n if(b==0) {\n return a;\n }\n return gcd(b,a%b);\n }", "gcd", "{\n if(b==0) {\n return a;\n }\n return gcd(b,a%b);\n }", "if(b==0) {\n return a;\n }", "b==0", "b", "0", "{\n return a;\n }", "return a;", "a", "return gcd(b,a%b);", "gcd(b,a%b)", "gcd", "b", "a%b", "a", "b", "int a", "a", "int b", "b", "private static boolean isPrime(int n) {\n if (n == 2)\n return true;\n else if ((n % 2 == 0 && n > 2) || n < 2)\n return false;\n else {\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }\n\n\n }", "isPrime", "{\n if (n == 2)\n return true;\n else if ((n % 2 == 0 && n > 2) || n < 2)\n return false;\n else {\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }\n\n\n }", "if (n == 2)\n return true;\n else if ((n % 2 == 0 && n > 2) || n < 2)\n return false;\n else {\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }", "n == 2", "n", "2", "return true;", "true", "if ((n % 2 == 0 && n > 2) || n < 2)\n return false;\n else {\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }", "(n % 2 == 0 && n > 2) || n < 2", "(n % 2 == 0 && n > 2)", "n % 2 == 0", "n % 2", "n", "2", "0", "n > 2", "n", "2", "n < 2", "n", "2", "return false;", "false", "{\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }", "for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }", "int i = 3;", "int i = 3;", "i", "3", "i <= (int) Math.sqrt(n)", "i", "(int) Math.sqrt(n)", "Math.sqrt", "Math", "n", "i += 2", "i += 2", "i", "2", "{\n if (n % i == 0)\n return false;\n }", "{\n if (n % i == 0)\n return false;\n }", "if (n % i == 0)\n return false;", "n % i == 0", "n % i", "n", "i", "0", "return false;", "false", "return true;", "true", "int n", "n", "static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }", "FastReader", "BufferedReader br;", "br", "StringTokenizer st;", "st", "public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }", "FastReader", "{\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }", "br = new BufferedReader(new\n InputStreamReader(System.in))", "br", "new BufferedReader(new\n InputStreamReader(System.in))", "String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }", "next", "{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }", "while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "st == null || !st.hasMoreElements()", "st == null", "st", "null", "!st.hasMoreElements()", "st.hasMoreElements()", "st.hasMoreElements", "st", "{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "int nextInt() {\n return Integer.parseInt(next());\n }", "nextInt", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "long nextLong() {\n return Long.parseLong(next());\n }", "nextLong", "{\n return Long.parseLong(next());\n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "double nextDouble() {\n return Double.parseDouble(next());\n }", "nextDouble", "{\n return Double.parseDouble(next());\n }", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }", "nextLine", "{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }", "String str = \"\";", "str", "\"\"", "try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n str = br.readLine();\n }", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "return str;", "str", "public class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n String s1 =s.next();\n int res=0;\n for(int i=0;i<3;i++){\n if(s1.charAt(i)=='R')\n res++;\n }\n if(res==2){\n int flag=0;\n for(int i=0;i<2;i++){\n if(s1.charAt(i)=='R'&&s1.charAt(i+1)=='R')\n flag=1;\n }\n if(flag==0)\n res=1;\n }\n System.out.println(res);\n }\n static int gcd(int a, int b)\n {\n if(b==0) {\n return a;\n }\n return gcd(b,a%b);\n }\n private static boolean isPrime(int n) {\n if (n == 2)\n return true;\n else if ((n % 2 == 0 && n > 2) || n < 2)\n return false;\n else {\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }\n\n\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n}", "public class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n String s1 =s.next();\n int res=0;\n for(int i=0;i<3;i++){\n if(s1.charAt(i)=='R')\n res++;\n }\n if(res==2){\n int flag=0;\n for(int i=0;i<2;i++){\n if(s1.charAt(i)=='R'&&s1.charAt(i+1)=='R')\n flag=1;\n }\n if(flag==0)\n res=1;\n }\n System.out.println(res);\n }\n static int gcd(int a, int b)\n {\n if(b==0) {\n return a;\n }\n return gcd(b,a%b);\n }\n private static boolean isPrime(int n) {\n if (n == 2)\n return true;\n else if ((n % 2 == 0 && n > 2) || n < 2)\n return false;\n else {\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }\n\n\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; import java.util.Scanner; import java.util.StringTokenizer; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); String s1 =s.next(); int res=0; for(int i=0;i<3;i++){ if(s1.charAt(i)=='R') res++; } if(res==2){ int flag=0; for(int i=0;i<2;i++){ if(s1.charAt(i)=='R'&&s1.charAt(i+1)=='R') flag=1; } if(flag==0) res=1; } System.out.println(res); } static int gcd(int a, int b) { if(b==0) { return a; } return gcd(b,a%b); } private static boolean isPrime(int n) { if (n == 2) return true; else if ((n % 2 == 0 && n > 2) || n < 2) return false; else { for (int i = 3; i <= (int) Math.sqrt(n); i += 2) { if (n % i == 0) return false; } return true; } } static class FastReader { BufferedReader br; StringTokenizer st; public FastReader() { br = new BufferedReader(new InputStreamReader(System.in)); } String next() { while (st == null || !st.hasMoreElements()) { try { st = new StringTokenizer(br.readLine()); } catch (IOException e) { e.printStackTrace(); } } return st.nextToken(); } int nextInt() { return Integer.parseInt(next()); } long nextLong() { return Long.parseLong(next()); } double nextDouble() { return Double.parseDouble(next()); } String nextLine() { String str = ""; try { str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } return str; } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 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, 4, 18, 18, 13, 13, 4, 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 ], [ 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 ], [ 36, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 49, 53 ], [ 46, 54 ], [ 54, 55 ], [ 54, 56 ], [ 8, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 62, 66 ], [ 6, 67 ], [ 67, 68 ], [ 0, 69 ], [ 69, 70 ], [ 69, 71 ] ]
[ "import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\t\t\n\t\tString s = sc.next();\n int ans = 0;\n int count = 0;\n for(int i=0;i<3;i++){if(s.charAt(i)=='R'){count++;}\n else{ans=Math.max(ans,count);\n count=0;}\n } \n\t\tSystem.out.println(Math.max(ans,count));\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);\t\t\n\t\tString s = sc.next();\n int ans = 0;\n int count = 0;\n for(int i=0;i<3;i++){if(s.charAt(i)=='R'){count++;}\n else{ans=Math.max(ans,count);\n count=0;}\n } \n\t\tSystem.out.println(Math.max(ans,count));\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\t\t\n\t\tString s = sc.next();\n int ans = 0;\n int count = 0;\n for(int i=0;i<3;i++){if(s.charAt(i)=='R'){count++;}\n else{ans=Math.max(ans,count);\n count=0;}\n } \n\t\tSystem.out.println(Math.max(ans,count));\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\t\t\n\t\tString s = sc.next();\n int ans = 0;\n int count = 0;\n for(int i=0;i<3;i++){if(s.charAt(i)=='R'){count++;}\n else{ans=Math.max(ans,count);\n count=0;}\n } \n\t\tSystem.out.println(Math.max(ans,count));\n\t}", "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", "int count = 0;", "count", "0", "for(int i=0;i<3;i++){if(s.charAt(i)=='R'){count++;}\n else{ans=Math.max(ans,count);\n count=0;}\n }", "int i=0;", "int i=0;", "i", "0", "i<3", "i", "3", "i++", "i++", "i", "{if(s.charAt(i)=='R'){count++;}\n else{ans=Math.max(ans,count);\n count=0;}\n }", "{if(s.charAt(i)=='R'){count++;}\n else{ans=Math.max(ans,count);\n count=0;}\n }", "if(s.charAt(i)=='R'){count++;}\n else{ans=Math.max(ans,count);\n count=0;}", "s.charAt(i)=='R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "{count++;}", "count++", "count", "{ans=Math.max(ans,count);\n count=0;}", "ans=Math.max(ans,count)", "ans", "Math.max(ans,count)", "Math.max", "Math", "ans", "count", "count=0", "count", "0", "System.out.println(Math.max(ans,count))", "System.out.println", "System.out", "System", "System.out", "Math.max(ans,count)", "Math.max", "Math", "ans", "count", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\t\t\n\t\tString s = sc.next();\n int ans = 0;\n int count = 0;\n for(int i=0;i<3;i++){if(s.charAt(i)=='R'){count++;}\n else{ans=Math.max(ans,count);\n count=0;}\n } \n\t\tSystem.out.println(Math.max(ans,count));\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\t\t\n\t\tString s = sc.next();\n int ans = 0;\n int count = 0;\n for(int i=0;i<3;i++){if(s.charAt(i)=='R'){count++;}\n else{ans=Math.max(ans,count);\n count=0;}\n } \n\t\tSystem.out.println(Math.max(ans,count));\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(); int ans = 0; int count = 0; for(int i=0;i<3;i++){if(s.charAt(i)=='R'){count++;} else{ans=Math.max(ans,count); count=0;} } System.out.println(Math.max(ans,count)); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 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, 13, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 75, 5 ], [ 75, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 13, 18 ], [ 9, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 19, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 19, 28 ], [ 28, 29 ], [ 28, 30 ], [ 19, 31 ], [ 31, 32 ], [ 31, 33 ], [ 19, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 34, 44 ], [ 44, 45 ], [ 45, 46 ], [ 34, 47 ], [ 48, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 50, 55 ], [ 49, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 59, 60 ], [ 59, 61 ], [ 49, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 19, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 6, 72 ], [ 72, 73 ], [ 0, 74 ], [ 74, 75 ], [ 74, 76 ] ]
[ "import java.io.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n String str = br.readLine();\n \n int result = 0;\n int kariResult = 0;\n for(int i=0; i<str.length(); i++){\n if(str.charAt(i) == 'R'){\n kariResult++;\n result = kariResult;\n }else{\n kariResult = 0;\n }\n }\n \n System.out.println(result);\n }catch(Exception e){\n System.out.println(e);\n }\n }\n}", "import java.io.*;", "io.*", "java", "public class Main {\n public static void main(String[] args) throws Exception {\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n String str = br.readLine();\n \n int result = 0;\n int kariResult = 0;\n for(int i=0; i<str.length(); i++){\n if(str.charAt(i) == 'R'){\n kariResult++;\n result = kariResult;\n }else{\n kariResult = 0;\n }\n }\n \n System.out.println(result);\n }catch(Exception e){\n System.out.println(e);\n }\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n String str = br.readLine();\n \n int result = 0;\n int kariResult = 0;\n for(int i=0; i<str.length(); i++){\n if(str.charAt(i) == 'R'){\n kariResult++;\n result = kariResult;\n }else{\n kariResult = 0;\n }\n }\n \n System.out.println(result);\n }catch(Exception e){\n System.out.println(e);\n }\n }", "main", "{\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n String str = br.readLine();\n \n int result = 0;\n int kariResult = 0;\n for(int i=0; i<str.length(); i++){\n if(str.charAt(i) == 'R'){\n kariResult++;\n result = kariResult;\n }else{\n kariResult = 0;\n }\n }\n \n System.out.println(result);\n }catch(Exception e){\n System.out.println(e);\n }\n }", "try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n String str = br.readLine();\n \n int result = 0;\n int kariResult = 0;\n for(int i=0; i<str.length(); i++){\n if(str.charAt(i) == 'R'){\n kariResult++;\n result = kariResult;\n }else{\n kariResult = 0;\n }\n }\n \n System.out.println(result);\n }catch(Exception e){\n System.out.println(e);\n }", "catch(Exception e){\n System.out.println(e);\n }", "Exception e", "{\n System.out.println(e);\n }", "System.out.println(e)", "System.out.println", "System.out", "System", "System.out", "e", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n String str = br.readLine();\n \n int result = 0;\n int kariResult = 0;\n for(int i=0; i<str.length(); i++){\n if(str.charAt(i) == 'R'){\n kariResult++;\n result = kariResult;\n }else{\n kariResult = 0;\n }\n }\n \n System.out.println(result);\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String str = br.readLine();", "str", "br.readLine()", "br.readLine", "br", "int result = 0;", "result", "0", "int kariResult = 0;", "kariResult", "0", "for(int i=0; i<str.length(); i++){\n if(str.charAt(i) == 'R'){\n kariResult++;\n result = kariResult;\n }else{\n kariResult = 0;\n }\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 kariResult++;\n result = kariResult;\n }else{\n kariResult = 0;\n }\n }", "{\n if(str.charAt(i) == 'R'){\n kariResult++;\n result = kariResult;\n }else{\n kariResult = 0;\n }\n }", "if(str.charAt(i) == 'R'){\n kariResult++;\n result = kariResult;\n }else{\n kariResult = 0;\n }", "str.charAt(i) == 'R'", "str.charAt(i)", "str.charAt", "str", "i", "'R'", "{\n kariResult++;\n result = kariResult;\n }", "kariResult++", "kariResult", "result = kariResult", "result", "kariResult", "{\n kariResult = 0;\n }", "kariResult = 0", "kariResult", "0", "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) throws Exception {\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n String str = br.readLine();\n \n int result = 0;\n int kariResult = 0;\n for(int i=0; i<str.length(); i++){\n if(str.charAt(i) == 'R'){\n kariResult++;\n result = kariResult;\n }else{\n kariResult = 0;\n }\n }\n \n System.out.println(result);\n }catch(Exception e){\n System.out.println(e);\n }\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n String str = br.readLine();\n \n int result = 0;\n int kariResult = 0;\n for(int i=0; i<str.length(); i++){\n if(str.charAt(i) == 'R'){\n kariResult++;\n result = kariResult;\n }else{\n kariResult = 0;\n }\n }\n \n System.out.println(result);\n }catch(Exception e){\n System.out.println(e);\n }\n }\n}", "Main" ]
import java.io.*; public class Main { public static void main(String[] args) throws Exception { try{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.readLine(); int result = 0; int kariResult = 0; for(int i=0; i<str.length(); i++){ if(str.charAt(i) == 'R'){ kariResult++; result = kariResult; }else{ kariResult = 0; } } System.out.println(result); }catch(Exception e){ System.out.println(e); } } }
[ 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, 2, 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 ], [ 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 ], [ 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 ] ]
[ "import java.util.*;\n\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString str = sc.nextLine();\n\n\t\tint result=0;\n\t\tboolean flag = false;\n\t\tfor(int i = 0; i < 3; i++){\n\t\t\tif(str.charAt(i) == 'R'){\n\t\t\t\tresult++;\n\t\t\t\tflag = true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(flag == true) break;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(result);\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 str = sc.nextLine();\n\n\t\tint result=0;\n\t\tboolean flag = false;\n\t\tfor(int i = 0; i < 3; i++){\n\t\t\tif(str.charAt(i) == 'R'){\n\t\t\t\tresult++;\n\t\t\t\tflag = true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(flag == true) break;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(result);\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString str = sc.nextLine();\n\n\t\tint result=0;\n\t\tboolean flag = false;\n\t\tfor(int i = 0; i < 3; i++){\n\t\t\tif(str.charAt(i) == 'R'){\n\t\t\t\tresult++;\n\t\t\t\tflag = true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(flag == true) break;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(result);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString str = sc.nextLine();\n\n\t\tint result=0;\n\t\tboolean flag = false;\n\t\tfor(int i = 0; i < 3; i++){\n\t\t\tif(str.charAt(i) == 'R'){\n\t\t\t\tresult++;\n\t\t\t\tflag = true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(flag == true) break;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(result);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String str = sc.nextLine();", "str", "sc.nextLine()", "sc.nextLine", "sc", "int result=0;", "result", "0", "boolean flag = false;", "flag", "false", "for(int i = 0; i < 3; i++){\n\t\t\tif(str.charAt(i) == 'R'){\n\t\t\t\tresult++;\n\t\t\t\tflag = true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(flag == true) break;\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\tresult++;\n\t\t\t\tflag = true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(flag == true) break;\n\t\t\t}\n\t\t}", "{\n\t\t\tif(str.charAt(i) == 'R'){\n\t\t\t\tresult++;\n\t\t\t\tflag = true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(flag == true) break;\n\t\t\t}\n\t\t}", "if(str.charAt(i) == 'R'){\n\t\t\t\tresult++;\n\t\t\t\tflag = true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(flag == true) break;\n\t\t\t}", "str.charAt(i) == 'R'", "str.charAt(i)", "str.charAt", "str", "i", "'R'", "{\n\t\t\t\tresult++;\n\t\t\t\tflag = true;\n\t\t\t}", "result++", "result", "flag = true", "flag", "true", "{\n\t\t\t\tif(flag == true) break;\n\t\t\t}", "if(flag == true) break;", "flag == true", "flag", "true", "break;", "System.out.println(result)", "System.out.println", "System.out", "System", "System.out", "result", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString str = sc.nextLine();\n\n\t\tint result=0;\n\t\tboolean flag = false;\n\t\tfor(int i = 0; i < 3; i++){\n\t\t\tif(str.charAt(i) == 'R'){\n\t\t\t\tresult++;\n\t\t\t\tflag = true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(flag == true) break;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(result);\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString str = sc.nextLine();\n\n\t\tint result=0;\n\t\tboolean flag = false;\n\t\tfor(int i = 0; i < 3; i++){\n\t\t\tif(str.charAt(i) == 'R'){\n\t\t\t\tresult++;\n\t\t\t\tflag = true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(flag == true) break;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(result);\n\t}\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String str = sc.nextLine(); int result=0; boolean flag = false; for(int i = 0; i < 3; i++){ if(str.charAt(i) == 'R'){ result++; flag = true; } else{ if(flag == true) break; } } System.out.println(result); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 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, 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 ], [ 62, 5 ], [ 62, 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 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 25, 30 ], [ 20, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 31, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 31, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 42, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 42, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 6, 59 ], [ 59, 60 ], [ 0, 61 ], [ 61, 62 ], [ 61, 63 ] ]
[ "import java.util.*;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n Scanner sc=new Scanner(System.in);\n int c=0;\n String str=sc.next();\n if(str.contains(\"RRR\"))\n \t System.out.println(\"3\");\n else if(str.contains(\"RR\"))\n \t System.out.println(\"2\");\n else if(str.contains(\"R\"))\n \t System.out.println(\"1\");\n else\n \t System.out.println(\"0\");\n\t}\n\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n Scanner sc=new Scanner(System.in);\n int c=0;\n String str=sc.next();\n if(str.contains(\"RRR\"))\n \t System.out.println(\"3\");\n else if(str.contains(\"RR\"))\n \t System.out.println(\"2\");\n else if(str.contains(\"R\"))\n \t System.out.println(\"1\");\n else\n \t System.out.println(\"0\");\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n Scanner sc=new Scanner(System.in);\n int c=0;\n String str=sc.next();\n if(str.contains(\"RRR\"))\n \t System.out.println(\"3\");\n else if(str.contains(\"RR\"))\n \t System.out.println(\"2\");\n else if(str.contains(\"R\"))\n \t System.out.println(\"1\");\n else\n \t System.out.println(\"0\");\n\t}", "main", "{\n\t\t// TODO Auto-generated method stub\n Scanner sc=new Scanner(System.in);\n int c=0;\n String str=sc.next();\n if(str.contains(\"RRR\"))\n \t System.out.println(\"3\");\n else if(str.contains(\"RR\"))\n \t System.out.println(\"2\");\n else if(str.contains(\"R\"))\n \t System.out.println(\"1\");\n else\n \t System.out.println(\"0\");\n\t}", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "int c=0;", "c", "0", "String str=sc.next();", "str", "sc.next()", "sc.next", "sc", "if(str.contains(\"RRR\"))\n \t System.out.println(\"3\");\n else if(str.contains(\"RR\"))\n \t System.out.println(\"2\");\n else if(str.contains(\"R\"))\n \t System.out.println(\"1\");\n else\n \t System.out.println(\"0\");", "str.contains(\"RRR\")", "str.contains", "str", "\"RRR\"", "System.out.println(\"3\")", "System.out.println", "System.out", "System", "System.out", "\"3\"", "if(str.contains(\"RR\"))\n \t System.out.println(\"2\");\n else if(str.contains(\"R\"))\n \t System.out.println(\"1\");\n else\n \t System.out.println(\"0\");", "str.contains(\"RR\")", "str.contains", "str", "\"RR\"", "System.out.println(\"2\")", "System.out.println", "System.out", "System", "System.out", "\"2\"", "if(str.contains(\"R\"))\n \t System.out.println(\"1\");\n else\n \t System.out.println(\"0\");", "str.contains(\"R\")", "str.contains", "str", "\"R\"", "System.out.println(\"1\")", "System.out.println", "System.out", "System", "System.out", "\"1\"", "System.out.println(\"0\")", "System.out.println", "System.out", "System", "System.out", "\"0\"", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n Scanner sc=new Scanner(System.in);\n int c=0;\n String str=sc.next();\n if(str.contains(\"RRR\"))\n \t System.out.println(\"3\");\n else if(str.contains(\"RR\"))\n \t System.out.println(\"2\");\n else if(str.contains(\"R\"))\n \t System.out.println(\"1\");\n else\n \t System.out.println(\"0\");\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n Scanner sc=new Scanner(System.in);\n int c=0;\n String str=sc.next();\n if(str.contains(\"RRR\"))\n \t System.out.println(\"3\");\n else if(str.contains(\"RR\"))\n \t System.out.println(\"2\");\n else if(str.contains(\"R\"))\n \t System.out.println(\"1\");\n else\n \t System.out.println(\"0\");\n\t}\n\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc=new Scanner(System.in); int c=0; String str=sc.next(); if(str.contains("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, 41, 13, 17, 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, 14, 2, 13, 13, 30, 0, 13, 13, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 72, 5 ], [ 72, 6 ], [ 6, 7 ], [ 6, 8 ], [ 72, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 11, 26 ], [ 26, 27 ], [ 27, 28 ], [ 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 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 42, 47 ], [ 41, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 41, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 11, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 9, 69 ], [ 69, 70 ], [ 0, 71 ], [ 71, 72 ], [ 71, 73 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static final int MOD = 1000000007;\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n// int n = Integer.parseInt(sc.next());\n String s = sc.next();\n int max = 0;\n int cnt = 0;\n for (int i = 0; i < s.length(); i++) {\n if (s.charAt(i) == 'R') {\n cnt++;\n if (max < cnt) {\n max = cnt;\n }\n } else {\n cnt = 0;\n }\n }\n System.out.println(max);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static final int MOD = 1000000007;\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n// int n = Integer.parseInt(sc.next());\n String s = sc.next();\n int max = 0;\n int cnt = 0;\n for (int i = 0; i < s.length(); i++) {\n if (s.charAt(i) == 'R') {\n cnt++;\n if (max < cnt) {\n max = cnt;\n }\n } else {\n cnt = 0;\n }\n }\n System.out.println(max);\n }\n}", "Main", "public static final int MOD = 1000000007;", "MOD", "1000000007", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n// int n = Integer.parseInt(sc.next());\n String s = sc.next();\n int max = 0;\n int cnt = 0;\n for (int i = 0; i < s.length(); i++) {\n if (s.charAt(i) == 'R') {\n cnt++;\n if (max < cnt) {\n max = cnt;\n }\n } else {\n cnt = 0;\n }\n }\n System.out.println(max);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n// int n = Integer.parseInt(sc.next());\n String s = sc.next();\n int max = 0;\n int cnt = 0;\n for (int i = 0; i < s.length(); i++) {\n if (s.charAt(i) == 'R') {\n cnt++;\n if (max < cnt) {\n max = cnt;\n }\n } else {\n cnt = 0;\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 cnt = 0;", "cnt", "0", "for (int i = 0; i < s.length(); i++) {\n if (s.charAt(i) == 'R') {\n cnt++;\n if (max < cnt) {\n max = cnt;\n }\n } else {\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 if (max < cnt) {\n max = cnt;\n }\n } else {\n cnt = 0;\n }\n }", "{\n if (s.charAt(i) == 'R') {\n cnt++;\n if (max < cnt) {\n max = cnt;\n }\n } else {\n cnt = 0;\n }\n }", "if (s.charAt(i) == 'R') {\n cnt++;\n if (max < cnt) {\n max = cnt;\n }\n } else {\n cnt = 0;\n }", "s.charAt(i) == 'R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "{\n cnt++;\n if (max < cnt) {\n max = cnt;\n }\n }", "cnt++", "cnt", "if (max < cnt) {\n max = cnt;\n }", "max < cnt", "max", "cnt", "{\n max = cnt;\n }", "max = cnt", "max", "cnt", "{\n cnt = 0;\n }", "cnt = 0", "cnt", "0", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args", "public class Main {\n\n public static final int MOD = 1000000007;\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n// int n = Integer.parseInt(sc.next());\n String s = sc.next();\n int max = 0;\n int cnt = 0;\n for (int i = 0; i < s.length(); i++) {\n if (s.charAt(i) == 'R') {\n cnt++;\n if (max < cnt) {\n max = cnt;\n }\n } else {\n cnt = 0;\n }\n }\n System.out.println(max);\n }\n}", "public class Main {\n\n public static final int MOD = 1000000007;\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n// int n = Integer.parseInt(sc.next());\n String s = sc.next();\n int max = 0;\n int cnt = 0;\n for (int i = 0; i < s.length(); i++) {\n if (s.charAt(i) == 'R') {\n cnt++;\n if (max < cnt) {\n max = cnt;\n }\n } else {\n cnt = 0;\n }\n }\n System.out.println(max);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static final int MOD = 1000000007; public static void main(String[] args) { Scanner sc = new Scanner(System.in); // int n = Integer.parseInt(sc.next()); String s = sc.next(); int max = 0; int cnt = 0; for (int i = 0; i < s.length(); i++) { if (s.charAt(i) == 'R') { cnt++; if (max < cnt) { max = cnt; } } else { cnt = 0; } } 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, 13, 41, 13, 17, 41, 13, 13, 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, 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, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 36, 29, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 36, 29, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 233, 17 ], [ 233, 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 ], [ 29, 31 ], [ 20, 32 ], [ 32, 33 ], [ 32, 34 ], [ 20, 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 ], [ 49, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 65, 69 ], [ 20, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 18, 76 ], [ 76, 77 ], [ 233, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 78, 82 ], [ 82, 83 ], [ 78, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 78, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 93, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 103, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 92, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 78, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 122, 125 ], [ 125, 126 ], [ 78, 127 ], [ 127, 128 ], [ 127, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 131, 134 ], [ 134, 135 ], [ 78, 136 ], [ 136, 137 ], [ 136, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 140, 143 ], [ 143, 144 ], [ 78, 145 ], [ 145, 146 ], [ 145, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 147, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 151, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 161, 162 ], [ 162, 163 ], [ 147, 164 ], [ 164, 165 ], [ 78, 166 ], [ 166, 167 ], [ 166, 168 ], [ 168, 169 ], [ 169, 170 ], [ 169, 171 ], [ 168, 173 ], [ 173, 174 ], [ 174, 175 ], [ 175, 176 ], [ 175, 177 ], [ 173, 178 ], [ 178, 179 ], [ 178, 180 ], [ 173, 181 ], [ 181, 182 ], [ 182, 183 ], [ 173, 184 ], [ 185, 185 ], [ 185, 186 ], [ 186, 187 ], [ 187, 188 ], [ 187, 189 ], [ 186, 190 ], [ 190, 191 ], [ 191, 192 ], [ 168, 193 ], [ 193, 194 ], [ 166, 195 ], [ 195, 196 ], [ 166, 197 ], [ 197, 198 ], [ 78, 199 ], [ 199, 200 ], [ 199, 201 ], [ 201, 202 ], [ 202, 203 ], [ 202, 204 ], [ 201, 206 ], [ 206, 207 ], [ 207, 208 ], [ 208, 209 ], [ 208, 210 ], [ 206, 211 ], [ 211, 212 ], [ 211, 213 ], [ 206, 214 ], [ 214, 215 ], [ 215, 216 ], [ 206, 217 ], [ 218, 218 ], [ 218, 219 ], [ 219, 220 ], [ 220, 221 ], [ 220, 222 ], [ 219, 223 ], [ 223, 224 ], [ 224, 225 ], [ 201, 226 ], [ 226, 227 ], [ 199, 228 ], [ 228, 229 ], [ 199, 230 ], [ 230, 231 ], [ 0, 232 ], [ 232, 233 ], [ 232, 234 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\nimport java.util.*;\n \npublic class Main\n{\n static class FastReader\n {\n BufferedReader br;\n StringTokenizer st;\n \n public FastReader()\n {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n \n String next()\n {\n while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt()\n {\n return Integer.parseInt(next());\n }\n \n long nextLong()\n {\n return Long.parseLong(next());\n }\n \n double nextDouble()\n {\n return Double.parseDouble(next());\n }\n \n String nextLine()\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 \n int[] readArray(int n, int size){\n int[] a = new int[size];\n for(int i = 0; i < n; i++) {\n a[i] = this.nextInt();\n }\n \n return a;\n }\n \n long[] readLongArray(int n, int size){\n long[] a = new long[size];\n for(int i = 0; i < n; i++) {\n a[i] = this.nextLong();\n }\n return a;\n }\n }\n \n \n \n public static void main(String[] args) {\n FastReader s=new FastReader();\n String input = s.next();\n \n int count = 0;\n int result = count;\n for(int i = 0; i < input.length(); i++) {\n \n if(input.charAt(i) == 'R') count++;\n else {\n count = 0;\n }\n \n result = Math.max(result,count);\n }\n System.out.println(result);\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", "import java.util.*;", "util.*", "java", "public class Main\n{\n static class FastReader\n {\n BufferedReader br;\n StringTokenizer st;\n \n public FastReader()\n {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n \n String next()\n {\n while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt()\n {\n return Integer.parseInt(next());\n }\n \n long nextLong()\n {\n return Long.parseLong(next());\n }\n \n double nextDouble()\n {\n return Double.parseDouble(next());\n }\n \n String nextLine()\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 \n int[] readArray(int n, int size){\n int[] a = new int[size];\n for(int i = 0; i < n; i++) {\n a[i] = this.nextInt();\n }\n \n return a;\n }\n \n long[] readLongArray(int n, int size){\n long[] a = new long[size];\n for(int i = 0; i < n; i++) {\n a[i] = this.nextLong();\n }\n return a;\n }\n }\n \n \n \n public static void main(String[] args) {\n FastReader s=new FastReader();\n String input = s.next();\n \n int count = 0;\n int result = count;\n for(int i = 0; i < input.length(); i++) {\n \n if(input.charAt(i) == 'R') count++;\n else {\n count = 0;\n }\n \n result = Math.max(result,count);\n }\n System.out.println(result);\n }\n}", "Main", "public static void main(String[] args) {\n FastReader s=new FastReader();\n String input = s.next();\n \n int count = 0;\n int result = count;\n for(int i = 0; i < input.length(); i++) {\n \n if(input.charAt(i) == 'R') count++;\n else {\n count = 0;\n }\n \n result = Math.max(result,count);\n }\n System.out.println(result);\n }", "main", "{\n FastReader s=new FastReader();\n String input = s.next();\n \n int count = 0;\n int result = count;\n for(int i = 0; i < input.length(); i++) {\n \n if(input.charAt(i) == 'R') count++;\n else {\n count = 0;\n }\n \n result = Math.max(result,count);\n }\n System.out.println(result);\n }", "FastReader s=new FastReader();", "s", "new FastReader()", "String input = s.next();", "input", "s.next()", "s.next", "s", "int count = 0;", "count", "0", "int result = count;", "result", "count", "for(int i = 0; i < input.length(); i++) {\n \n if(input.charAt(i) == 'R') count++;\n else {\n count = 0;\n }\n \n result = Math.max(result,count);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < input.length()", "i", "input.length()", "input.length", "input", "i++", "i++", "i", "{\n \n if(input.charAt(i) == 'R') count++;\n else {\n count = 0;\n }\n \n result = Math.max(result,count);\n }", "{\n \n if(input.charAt(i) == 'R') count++;\n else {\n count = 0;\n }\n \n result = Math.max(result,count);\n }", "if(input.charAt(i) == 'R') count++;\n else {\n count = 0;\n }", "input.charAt(i) == 'R'", "input.charAt(i)", "input.charAt", "input", "i", "'R'", "count++", "count", "{\n count = 0;\n }", "count = 0", "count", "0", "result = Math.max(result,count)", "result", "Math.max(result,count)", "Math.max", "Math", "result", "count", "System.out.println(result)", "System.out.println", "System.out", "System", "System.out", "result", "String[] args", "args", "static class FastReader\n {\n BufferedReader br;\n StringTokenizer st;\n \n public FastReader()\n {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n \n String next()\n {\n while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt()\n {\n return Integer.parseInt(next());\n }\n \n long nextLong()\n {\n return Long.parseLong(next());\n }\n \n double nextDouble()\n {\n return Double.parseDouble(next());\n }\n \n String nextLine()\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 \n int[] readArray(int n, int size){\n int[] a = new int[size];\n for(int i = 0; i < n; i++) {\n a[i] = this.nextInt();\n }\n \n return a;\n }\n \n long[] readLongArray(int n, int size){\n long[] a = new long[size];\n for(int i = 0; i < n; i++) {\n a[i] = this.nextLong();\n }\n return a;\n }\n }", "FastReader", "BufferedReader br;", "br", "StringTokenizer st;", "st", "public FastReader()\n {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }", "FastReader", "{\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }", "br = new BufferedReader(new\n InputStreamReader(System.in))", "br", "new BufferedReader(new\n InputStreamReader(System.in))", "String next()\n {\n while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }", "next", "{\n while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }", "while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }", "st == null || !st.hasMoreElements()", "st == null", "st", "null", "!st.hasMoreElements()", "st.hasMoreElements()", "st.hasMoreElements", "st", "{\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }", "try\n {\n st = new StringTokenizer(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 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 {\n return Integer.parseInt(next());\n }", "nextInt", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "long nextLong()\n {\n return Long.parseLong(next());\n }", "nextLong", "{\n return Long.parseLong(next());\n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "double nextDouble()\n {\n return Double.parseDouble(next());\n }", "nextDouble", "{\n return Double.parseDouble(next());\n }", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "String nextLine()\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 }", "nextLine", "{\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", "int[] readArray(int n, int size){\n int[] a = new int[size];\n for(int i = 0; i < n; i++) {\n a[i] = this.nextInt();\n }\n \n return a;\n }", "readArray", "{\n int[] a = new int[size];\n for(int i = 0; i < n; i++) {\n a[i] = this.nextInt();\n }\n \n return a;\n }", "int[] a = new int[size];", "a", "new int[size]", "size", "for(int i = 0; i < n; i++) {\n a[i] = this.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n a[i] = this.nextInt();\n }", "{\n a[i] = this.nextInt();\n }", "a[i] = this.nextInt()", "a[i]", "a", "i", "this.nextInt()", "this.nextInt", "this", "return a;", "a", "int n", "n", "int size", "size", "long[] readLongArray(int n, int size){\n long[] a = new long[size];\n for(int i = 0; i < n; i++) {\n a[i] = this.nextLong();\n }\n return a;\n }", "readLongArray", "{\n long[] a = new long[size];\n for(int i = 0; i < n; i++) {\n a[i] = this.nextLong();\n }\n return a;\n }", "long[] a = new long[size];", "a", "new long[size]", "size", "for(int i = 0; i < n; i++) {\n a[i] = this.nextLong();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n a[i] = this.nextLong();\n }", "{\n a[i] = this.nextLong();\n }", "a[i] = this.nextLong()", "a[i]", "a", "i", "this.nextLong()", "this.nextLong", "this", "return a;", "a", "int n", "n", "int size", "size", "public class Main\n{\n static class FastReader\n {\n BufferedReader br;\n StringTokenizer st;\n \n public FastReader()\n {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n \n String next()\n {\n while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt()\n {\n return Integer.parseInt(next());\n }\n \n long nextLong()\n {\n return Long.parseLong(next());\n }\n \n double nextDouble()\n {\n return Double.parseDouble(next());\n }\n \n String nextLine()\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 \n int[] readArray(int n, int size){\n int[] a = new int[size];\n for(int i = 0; i < n; i++) {\n a[i] = this.nextInt();\n }\n \n return a;\n }\n \n long[] readLongArray(int n, int size){\n long[] a = new long[size];\n for(int i = 0; i < n; i++) {\n a[i] = this.nextLong();\n }\n return a;\n }\n }\n \n \n \n public static void main(String[] args) {\n FastReader s=new FastReader();\n String input = s.next();\n \n int count = 0;\n int result = count;\n for(int i = 0; i < input.length(); i++) {\n \n if(input.charAt(i) == 'R') count++;\n else {\n count = 0;\n }\n \n result = Math.max(result,count);\n }\n System.out.println(result);\n }\n}", "public class Main\n{\n static class FastReader\n {\n BufferedReader br;\n StringTokenizer st;\n \n public FastReader()\n {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n \n String next()\n {\n while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt()\n {\n return Integer.parseInt(next());\n }\n \n long nextLong()\n {\n return Long.parseLong(next());\n }\n \n double nextDouble()\n {\n return Double.parseDouble(next());\n }\n \n String nextLine()\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 \n int[] readArray(int n, int size){\n int[] a = new int[size];\n for(int i = 0; i < n; i++) {\n a[i] = this.nextInt();\n }\n \n return a;\n }\n \n long[] readLongArray(int n, int size){\n long[] a = new long[size];\n for(int i = 0; i < n; i++) {\n a[i] = this.nextLong();\n }\n return a;\n }\n }\n \n \n \n public static void main(String[] args) {\n FastReader s=new FastReader();\n String input = s.next();\n \n int count = 0;\n int result = count;\n for(int i = 0; i < input.length(); i++) {\n \n if(input.charAt(i) == 'R') count++;\n else {\n count = 0;\n }\n \n result = Math.max(result,count);\n }\n System.out.println(result);\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; import java.util.*; public class Main { static class FastReader { BufferedReader br; StringTokenizer st; public FastReader() { br = new BufferedReader(new InputStreamReader(System.in)); } String next() { while (st == null || !st.hasMoreElements()) { try { st = new StringTokenizer(br.readLine()); } catch (IOException e) { e.printStackTrace(); } } return st.nextToken(); } int nextInt() { return Integer.parseInt(next()); } long nextLong() { return Long.parseLong(next()); } double nextDouble() { return Double.parseDouble(next()); } String nextLine() { String str = ""; try { str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } return str; } int[] readArray(int n, int size){ int[] a = new int[size]; for(int i = 0; i < n; i++) { a[i] = this.nextInt(); } return a; } long[] readLongArray(int n, int size){ long[] a = new long[size]; for(int i = 0; i < n; i++) { a[i] = this.nextLong(); } return a; } } public static void main(String[] args) { FastReader s=new FastReader(); String input = s.next(); int count = 0; int result = count; for(int i = 0; i < input.length(); i++) { if(input.charAt(i) == 'R') count++; else { count = 0; } result = Math.max(result,count); } System.out.println(result); } }
[ 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, 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 ], [ 63, 5 ], [ 63, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 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 ], [ 42, 45 ], [ 41, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 41, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 6, 60 ], [ 60, 61 ], [ 0, 62 ], [ 62, 63 ], [ 62, 64 ] ]
[ "import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n String S = sc.next();\n if(S.contains(\"RRR\")){\n System.out.println(\"3\");\n }else if(S.contains(\"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}", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n String S = sc.next();\n if(S.contains(\"RRR\")){\n System.out.println(\"3\");\n }else if(S.contains(\"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}", "Main", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n String S = sc.next();\n if(S.contains(\"RRR\")){\n System.out.println(\"3\");\n }else if(S.contains(\"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\t\tScanner sc = new Scanner(System.in);\n String S = sc.next();\n if(S.contains(\"RRR\")){\n System.out.println(\"3\");\n }else if(S.contains(\"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 }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String S = sc.next();", "S", "sc.next()", "sc.next", "sc", "if(S.contains(\"RRR\")){\n System.out.println(\"3\");\n }else if(S.contains(\"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.contains(\"RRR\")", "S.contains", "S", "\"RRR\"", "{\n System.out.println(\"3\");\n }", "System.out.println(\"3\")", "System.out.println", "System.out", "System", "System.out", "\"3\"", "if(S.contains(\"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.contains(\"RR\")", "S.contains", "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\"", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n String S = sc.next();\n if(S.contains(\"RRR\")){\n System.out.println(\"3\");\n }else if(S.contains(\"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}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n String S = sc.next();\n if(S.contains(\"RRR\")){\n System.out.println(\"3\");\n }else if(S.contains(\"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}", "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.contains("RRR")){ System.out.println("3"); }else if(S.contains("RR")){ System.out.println("2"); }else if(S.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, 41, 13, 17, 28, 13, 13, 30, 30, 14, 2, 13, 17, 30, 40, 13, 14, 2, 13, 13, 30, 0, 13, 13, 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 ], [ 61, 5 ], [ 61, 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 ], [ 34, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 30, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 8, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 8, 55 ], [ 55, 56 ], [ 56, 57 ], [ 6, 58 ], [ 58, 59 ], [ 0, 60 ], [ 60, 61 ], [ 60, 62 ] ]
[ "import java.util.Scanner;\n\n \npublic class Main {\n \n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tchar[] s = sc.nextLine().toCharArray();\n\t\tint ans = 0;\n\t\tint rain = 0;\n\t\t\n\t\tfor(char c : s) {\n\t\t\tif(c == 'R') {\n\t\t\t\train++;\n\t\t\t\tif(ans < rain) {\n\t\t\t\t\tans = rain;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\train = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t\tsc.close();\n\t}\n\t\n}\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 sc = new Scanner(System.in);\n\t\tchar[] s = sc.nextLine().toCharArray();\n\t\tint ans = 0;\n\t\tint rain = 0;\n\t\t\n\t\tfor(char c : s) {\n\t\t\tif(c == 'R') {\n\t\t\t\train++;\n\t\t\t\tif(ans < rain) {\n\t\t\t\t\tans = rain;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\train = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t\tsc.close();\n\t}\n\t\n}", "Main", "public static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tchar[] s = sc.nextLine().toCharArray();\n\t\tint ans = 0;\n\t\tint rain = 0;\n\t\t\n\t\tfor(char c : s) {\n\t\t\tif(c == 'R') {\n\t\t\t\train++;\n\t\t\t\tif(ans < rain) {\n\t\t\t\t\tans = rain;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\train = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t\tsc.close();\n\t}", "main", "{\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tchar[] s = sc.nextLine().toCharArray();\n\t\tint ans = 0;\n\t\tint rain = 0;\n\t\t\n\t\tfor(char c : s) {\n\t\t\tif(c == 'R') {\n\t\t\t\train++;\n\t\t\t\tif(ans < rain) {\n\t\t\t\t\tans = rain;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\train = 0;\n\t\t\t}\n\t\t}\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)", "char[] s = sc.nextLine().toCharArray();", "s", "sc.nextLine().toCharArray()", "sc.nextLine().toCharArray", "sc.nextLine()", "sc.nextLine", "sc", "int ans = 0;", "ans", "0", "int rain = 0;", "rain", "0", "for(char c : s) {\n\t\t\tif(c == 'R') {\n\t\t\t\train++;\n\t\t\t\tif(ans < rain) {\n\t\t\t\t\tans = rain;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\train = 0;\n\t\t\t}\n\t\t}", "char c", "s", "{\n\t\t\tif(c == 'R') {\n\t\t\t\train++;\n\t\t\t\tif(ans < rain) {\n\t\t\t\t\tans = rain;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\train = 0;\n\t\t\t}\n\t\t}", "{\n\t\t\tif(c == 'R') {\n\t\t\t\train++;\n\t\t\t\tif(ans < rain) {\n\t\t\t\t\tans = rain;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\train = 0;\n\t\t\t}\n\t\t}", "if(c == 'R') {\n\t\t\t\train++;\n\t\t\t\tif(ans < rain) {\n\t\t\t\t\tans = rain;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\train = 0;\n\t\t\t}", "c == 'R'", "c", "'R'", "{\n\t\t\t\train++;\n\t\t\t\tif(ans < rain) {\n\t\t\t\t\tans = rain;\n\t\t\t\t}\n\t\t\t}", "rain++", "rain", "if(ans < rain) {\n\t\t\t\t\tans = rain;\n\t\t\t\t}", "ans < rain", "ans", "rain", "{\n\t\t\t\t\tans = rain;\n\t\t\t\t}", "ans = rain", "ans", "rain", "{\n\t\t\t\train = 0;\n\t\t\t}", "rain = 0", "rain", "0", "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 \n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tchar[] s = sc.nextLine().toCharArray();\n\t\tint ans = 0;\n\t\tint rain = 0;\n\t\t\n\t\tfor(char c : s) {\n\t\t\tif(c == 'R') {\n\t\t\t\train++;\n\t\t\t\tif(ans < rain) {\n\t\t\t\t\tans = rain;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\train = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t\tsc.close();\n\t}\n\t\n}", "public class Main {\n \n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tchar[] s = sc.nextLine().toCharArray();\n\t\tint ans = 0;\n\t\tint rain = 0;\n\t\t\n\t\tfor(char c : s) {\n\t\t\tif(c == 'R') {\n\t\t\t\train++;\n\t\t\t\tif(ans < rain) {\n\t\t\t\t\tans = rain;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\train = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t\tsc.close();\n\t}\n\t\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(); int ans = 0; int rain = 0; for(char c : s) { if(c == 'R') { rain++; if(ans < rain) { ans = rain; } }else { rain = 0; } } System.out.println(ans); sc.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 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, 0, 13, 4, 18, 13, 13, 13, 30, 0, 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, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 171, 14 ], [ 171, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 17, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 24, 29 ], [ 29, 30 ], [ 29, 31 ], [ 24, 32 ], [ 32, 33 ], [ 33, 34 ], [ 24, 35 ], [ 36, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 36, 42 ], [ 42, 43 ], [ 42, 44 ], [ 36, 45 ], [ 45, 46 ], [ 45, 47 ], [ 36, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 48, 58 ], [ 58, 59 ], [ 59, 60 ], [ 48, 61 ], [ 62, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 64, 69 ], [ 63, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 75, 79 ], [ 63, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 36, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 15, 90 ], [ 90, 91 ], [ 171, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 97, 98 ], [ 97, 99 ], [ 92, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 103, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 108, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 102, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 92, 123 ], [ 123, 124 ], [ 123, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 127, 130 ], [ 130, 131 ], [ 92, 132 ], [ 132, 133 ], [ 132, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 134, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 139, 144 ], [ 144, 145 ], [ 144, 146 ], [ 139, 147 ], [ 147, 148 ], [ 148, 149 ], [ 139, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 151, 155 ], [ 155, 156 ], [ 134, 157 ], [ 157, 158 ], [ 132, 159 ], [ 159, 160 ], [ 92, 161 ], [ 161, 162 ], [ 161, 163 ], [ 163, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 165, 168 ], [ 168, 169 ], [ 0, 170 ], [ 170, 171 ], [ 170, 172 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n// import java.util.Arrays;\n// import java.util.Random;\nimport java.util.StringTokenizer;\n\npublic class Main {\n public static void main(String[] args) {\n FastScanner fs=new FastScanner();\n int T=1;\n for (int tt=0; tt<T; tt++) {\n String s = fs.next();\n int maxc = 0;\n int maxg = 0;\n for(int i=0;i<s.length();i++){\n if(s.charAt(i) == 'R'){\n maxc++;\n maxg = Math.max(maxc,maxg);\n }\n else{\n maxc = 0;\n }\n \n }\n System.out.println(maxg);\n\n\n }\n}\n \n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n\n \n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "public class Main {\n public static void main(String[] args) {\n FastScanner fs=new FastScanner();\n int T=1;\n for (int tt=0; tt<T; tt++) {\n String s = fs.next();\n int maxc = 0;\n int maxg = 0;\n for(int i=0;i<s.length();i++){\n if(s.charAt(i) == 'R'){\n maxc++;\n maxg = Math.max(maxc,maxg);\n }\n else{\n maxc = 0;\n }\n \n }\n System.out.println(maxg);\n\n\n }\n}\n \n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n\n \n}", "Main", "public static void main(String[] args) {\n FastScanner fs=new FastScanner();\n int T=1;\n for (int tt=0; tt<T; tt++) {\n String s = fs.next();\n int maxc = 0;\n int maxg = 0;\n for(int i=0;i<s.length();i++){\n if(s.charAt(i) == 'R'){\n maxc++;\n maxg = Math.max(maxc,maxg);\n }\n else{\n maxc = 0;\n }\n \n }\n System.out.println(maxg);\n\n\n }\n}", "main", "{\n FastScanner fs=new FastScanner();\n int T=1;\n for (int tt=0; tt<T; tt++) {\n String s = fs.next();\n int maxc = 0;\n int maxg = 0;\n for(int i=0;i<s.length();i++){\n if(s.charAt(i) == 'R'){\n maxc++;\n maxg = Math.max(maxc,maxg);\n }\n else{\n maxc = 0;\n }\n \n }\n System.out.println(maxg);\n\n\n }\n}", "FastScanner fs=new FastScanner();", "fs", "new FastScanner()", "int T=1;", "T", "1", "for (int tt=0; tt<T; tt++) {\n String s = fs.next();\n int maxc = 0;\n int maxg = 0;\n for(int i=0;i<s.length();i++){\n if(s.charAt(i) == 'R'){\n maxc++;\n maxg = Math.max(maxc,maxg);\n }\n else{\n maxc = 0;\n }\n \n }\n System.out.println(maxg);\n\n\n }", "int tt=0;", "int tt=0;", "tt", "0", "tt<T", "tt", "T", "tt++", "tt++", "tt", "{\n String s = fs.next();\n int maxc = 0;\n int maxg = 0;\n for(int i=0;i<s.length();i++){\n if(s.charAt(i) == 'R'){\n maxc++;\n maxg = Math.max(maxc,maxg);\n }\n else{\n maxc = 0;\n }\n \n }\n System.out.println(maxg);\n\n\n }", "{\n String s = fs.next();\n int maxc = 0;\n int maxg = 0;\n for(int i=0;i<s.length();i++){\n if(s.charAt(i) == 'R'){\n maxc++;\n maxg = Math.max(maxc,maxg);\n }\n else{\n maxc = 0;\n }\n \n }\n System.out.println(maxg);\n\n\n }", "String s = fs.next();", "s", "fs.next()", "fs.next", "fs", "int maxc = 0;", "maxc", "0", "int maxg = 0;", "maxg", "0", "for(int i=0;i<s.length();i++){\n if(s.charAt(i) == 'R'){\n maxc++;\n maxg = Math.max(maxc,maxg);\n }\n else{\n maxc = 0;\n }\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 maxc++;\n maxg = Math.max(maxc,maxg);\n }\n else{\n maxc = 0;\n }\n \n }", "{\n if(s.charAt(i) == 'R'){\n maxc++;\n maxg = Math.max(maxc,maxg);\n }\n else{\n maxc = 0;\n }\n \n }", "if(s.charAt(i) == 'R'){\n maxc++;\n maxg = Math.max(maxc,maxg);\n }\n else{\n maxc = 0;\n }", "s.charAt(i) == 'R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "{\n maxc++;\n maxg = Math.max(maxc,maxg);\n }", "maxc++", "maxc", "maxg = Math.max(maxc,maxg)", "maxg", "Math.max(maxc,maxg)", "Math.max", "Math", "maxc", "maxg", "{\n maxc = 0;\n }", "maxc = 0", "maxc", "0", "System.out.println(maxg)", "System.out.println", "System.out", "System", "System.out", "maxg", "String[] args", "args", "static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n }", "FastScanner", "BufferedReader br=new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringTokenizer st=new StringTokenizer(\"\");", "st", "new StringTokenizer(\"\")", "String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }", "next", "{\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }", "while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n st=new StringTokenizer(br.readLine());\n }", "st=new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "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", "int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }", "readArray", "{\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }", "int[] a=new int[n];", "a", "new int[n]", "n", "for (int i=0; i<n; i++) a[i]=nextInt();", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "a[i]=nextInt();", "a[i]=nextInt()", "a[i]", "a", "i", "nextInt()", "nextInt", "return a;", "a", "int n", "n", "long nextLong() {\n return Long.parseLong(next());\n }", "nextLong", "{\n return Long.parseLong(next());\n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "public class Main {\n public static void main(String[] args) {\n FastScanner fs=new FastScanner();\n int T=1;\n for (int tt=0; tt<T; tt++) {\n String s = fs.next();\n int maxc = 0;\n int maxg = 0;\n for(int i=0;i<s.length();i++){\n if(s.charAt(i) == 'R'){\n maxc++;\n maxg = Math.max(maxc,maxg);\n }\n else{\n maxc = 0;\n }\n \n }\n System.out.println(maxg);\n\n\n }\n}\n \n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n\n \n}", "public class Main {\n public static void main(String[] args) {\n FastScanner fs=new FastScanner();\n int T=1;\n for (int tt=0; tt<T; tt++) {\n String s = fs.next();\n int maxc = 0;\n int maxg = 0;\n for(int i=0;i<s.length();i++){\n if(s.charAt(i) == 'R'){\n maxc++;\n maxg = Math.max(maxc,maxg);\n }\n else{\n maxc = 0;\n }\n \n }\n System.out.println(maxg);\n\n\n }\n}\n \n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n\n \n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; // import java.util.Arrays; // import java.util.Random; import java.util.StringTokenizer; public class Main { public static void main(String[] args) { FastScanner fs=new FastScanner(); int T=1; for (int tt=0; tt<T; tt++) { String s = fs.next(); int maxc = 0; int maxg = 0; for(int i=0;i<s.length();i++){ if(s.charAt(i) == 'R'){ maxc++; maxg = Math.max(maxc,maxg); } else{ maxc = 0; } } System.out.println(maxg); } } 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, 4, 18, 13, 14, 4, 18, 17, 13, 30, 4, 18, 18, 13, 13, 17, 14, 2, 4, 18, 17, 13, 4, 18, 17, 13, 30, 4, 18, 18, 13, 13, 17, 14, 4, 18, 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 ], [ 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 ], [ 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 ], [ 35, 36 ], [ 34, 37 ], [ 33, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 32, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 32, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 49, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 49, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 6, 68 ], [ 68, 69 ], [ 0, 70 ], [ 70, 71 ], [ 70, 72 ] ]
[ "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 input = sc.next();\n sc.close();\n if(\"SSS\".equals(input)){\n System.out.println(0);\n } else if(\"RRS\".equals(input) || \"SRR\".equals(input)){\n System.out.println(2);\n } else if(\"RRR\".equals(input)){\n System.out.println(3);\n } else {\n System.out.println(1);\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String input = sc.next();\n sc.close();\n if(\"SSS\".equals(input)){\n System.out.println(0);\n } else if(\"RRS\".equals(input) || \"SRR\".equals(input)){\n System.out.println(2);\n } else if(\"RRR\".equals(input)){\n System.out.println(3);\n } else {\n System.out.println(1);\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String input = sc.next();\n sc.close();\n if(\"SSS\".equals(input)){\n System.out.println(0);\n } else if(\"RRS\".equals(input) || \"SRR\".equals(input)){\n System.out.println(2);\n } else if(\"RRR\".equals(input)){\n System.out.println(3);\n } else {\n System.out.println(1);\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String input = sc.next();\n sc.close();\n if(\"SSS\".equals(input)){\n System.out.println(0);\n } else if(\"RRS\".equals(input) || \"SRR\".equals(input)){\n System.out.println(2);\n } else if(\"RRR\".equals(input)){\n System.out.println(3);\n } else {\n System.out.println(1);\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String input = sc.next();", "input", "sc.next()", "sc.next", "sc", "sc.close()", "sc.close", "sc", "if(\"SSS\".equals(input)){\n System.out.println(0);\n } else if(\"RRS\".equals(input) || \"SRR\".equals(input)){\n System.out.println(2);\n } else if(\"RRR\".equals(input)){\n System.out.println(3);\n } else {\n System.out.println(1);\n }", "\"SSS\".equals(input)", "\"SSS\".equals", "\"SSS\"", "input", "{\n System.out.println(0);\n }", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "if(\"RRS\".equals(input) || \"SRR\".equals(input)){\n System.out.println(2);\n } else if(\"RRR\".equals(input)){\n System.out.println(3);\n } else {\n System.out.println(1);\n }", "\"RRS\".equals(input) || \"SRR\".equals(input)", "\"RRS\".equals(input)", "\"RRS\".equals", "\"RRS\"", "input", "\"SRR\".equals(input)", "\"SRR\".equals", "\"SRR\"", "input", "{\n System.out.println(2);\n }", "System.out.println(2)", "System.out.println", "System.out", "System", "System.out", "2", "if(\"RRR\".equals(input)){\n System.out.println(3);\n } else {\n System.out.println(1);\n }", "\"RRR\".equals(input)", "\"RRR\".equals", "\"RRR\"", "input", "{\n System.out.println(3);\n }", "System.out.println(3)", "System.out.println", "System.out", "System", "System.out", "3", "{\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\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String input = sc.next();\n sc.close();\n if(\"SSS\".equals(input)){\n System.out.println(0);\n } else if(\"RRS\".equals(input) || \"SRR\".equals(input)){\n System.out.println(2);\n } else if(\"RRR\".equals(input)){\n System.out.println(3);\n } else {\n System.out.println(1);\n }\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String input = sc.next();\n sc.close();\n if(\"SSS\".equals(input)){\n System.out.println(0);\n } else if(\"RRS\".equals(input) || \"SRR\".equals(input)){\n System.out.println(2);\n } else if(\"RRR\".equals(input)){\n System.out.println(3);\n } else {\n System.out.println(1);\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String input = sc.next(); sc.close(); if("SSS".equals(input)){ System.out.println(0); } else if("RRS".equals(input) || "SRR".equals(input)){ System.out.println(2); } else if("RRR".equals(input)){ System.out.println(3); } else { System.out.println(1); } } }
[ 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 {\n public static void main(String[] args) throws Exception {\n\n\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n if(s.equals(\"RRR\")) {\n System.out.println(3);\n } else if (s.equals(\"RRS\") || s.equals(\"SRR\")) {\n System.out.println(2);\n } else if(s.equals(\"SSS\")){\n System.out.println(0);\n } else {\n System.out.println(1);\n }\n\n }\n\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) throws Exception {\n\n\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n if(s.equals(\"RRR\")) {\n System.out.println(3);\n } else if (s.equals(\"RRS\") || s.equals(\"SRR\")) {\n System.out.println(2);\n } else if(s.equals(\"SSS\")){\n System.out.println(0);\n } else {\n System.out.println(1);\n }\n\n }\n\n}", "Main", "public static void main(String[] args) throws Exception {\n\n\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n if(s.equals(\"RRR\")) {\n System.out.println(3);\n } else if (s.equals(\"RRS\") || s.equals(\"SRR\")) {\n System.out.println(2);\n } else if(s.equals(\"SSS\")){\n System.out.println(0);\n } else {\n System.out.println(1);\n }\n\n }", "main", "{\n\n\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n if(s.equals(\"RRR\")) {\n System.out.println(3);\n } else if (s.equals(\"RRS\") || s.equals(\"SRR\")) {\n System.out.println(2);\n } else if(s.equals(\"SSS\")){\n System.out.println(0);\n } else {\n System.out.println(1);\n }\n\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "if(s.equals(\"RRR\")) {\n System.out.println(3);\n } else if (s.equals(\"RRS\") || s.equals(\"SRR\")) {\n System.out.println(2);\n } else if(s.equals(\"SSS\")){\n System.out.println(0);\n } else {\n System.out.println(1);\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.equals(\"RRS\") || s.equals(\"SRR\")) {\n System.out.println(2);\n } else if(s.equals(\"SSS\")){\n System.out.println(0);\n } else {\n System.out.println(1);\n }", "s.equals(\"RRS\") || s.equals(\"SRR\")", "s.equals(\"RRS\")", "s.equals", "s", "\"RRS\"", "s.equals(\"SRR\")", "s.equals", "s", "\"SRR\"", "{\n System.out.println(2);\n }", "System.out.println(2)", "System.out.println", "System.out", "System", "System.out", "2", "if(s.equals(\"SSS\")){\n System.out.println(0);\n } else {\n System.out.println(1);\n }", "s.equals(\"SSS\")", "s.equals", "s", "\"SSS\"", "{\n System.out.println(0);\n }", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "{\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) throws Exception {\n\n\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n if(s.equals(\"RRR\")) {\n System.out.println(3);\n } else if (s.equals(\"RRS\") || s.equals(\"SRR\")) {\n System.out.println(2);\n } else if(s.equals(\"SSS\")){\n System.out.println(0);\n } else {\n System.out.println(1);\n }\n\n }\n\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n\n\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n if(s.equals(\"RRR\")) {\n System.out.println(3);\n } else if (s.equals(\"RRS\") || s.equals(\"SRR\")) {\n System.out.println(2);\n } else if(s.equals(\"SSS\")){\n System.out.println(0);\n } else {\n System.out.println(1);\n }\n\n }\n\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); String s = sc.next(); if(s.equals("RRR")) { System.out.println(3); } else if (s.equals("RRS") || s.equals("SRR")) { System.out.println(2); } else if(s.equals("SSS")){ System.out.println(0); } else { System.out.println(1); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 4, 18, 13, 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, 14, 2, 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 ], [ 75, 5 ], [ 75, 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 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 20, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 20, 30 ], [ 30, 31 ], [ 31, 32 ], [ 20, 33 ], [ 34, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 36, 41 ], [ 35, 42 ], [ 42, 43 ], [ 43, 44 ], [ 34, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 47, 52 ], [ 46, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 53, 58 ], [ 45, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 8, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 8, 69 ], [ 69, 70 ], [ 70, 71 ], [ 6, 72 ], [ 72, 73 ], [ 0, 74 ], [ 74, 75 ], [ 74, 76 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint count= 0;\n\n\t\tString s = scan.nextLine();\n\n\t\tfor(int i = 0;i<s.length();i++) {\n\t\t\tif(s.charAt(i) == 'R') {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tif(s.charAt(1) == 'S' && s.charAt(0)=='R') {\n\t\t\t\tcount = 1;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t\tscan.close();\n\n\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint count= 0;\n\n\t\tString s = scan.nextLine();\n\n\t\tfor(int i = 0;i<s.length();i++) {\n\t\t\tif(s.charAt(i) == 'R') {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tif(s.charAt(1) == 'S' && s.charAt(0)=='R') {\n\t\t\t\tcount = 1;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t\tscan.close();\n\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint count= 0;\n\n\t\tString s = scan.nextLine();\n\n\t\tfor(int i = 0;i<s.length();i++) {\n\t\t\tif(s.charAt(i) == 'R') {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tif(s.charAt(1) == 'S' && s.charAt(0)=='R') {\n\t\t\t\tcount = 1;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t\tscan.close();\n\n\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint count= 0;\n\n\t\tString s = scan.nextLine();\n\n\t\tfor(int i = 0;i<s.length();i++) {\n\t\t\tif(s.charAt(i) == 'R') {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tif(s.charAt(1) == 'S' && s.charAt(0)=='R') {\n\t\t\t\tcount = 1;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t\tscan.close();\n\n\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int count= 0;", "count", "0", "String s = scan.nextLine();", "s", "scan.nextLine()", "scan.nextLine", "scan", "for(int i = 0;i<s.length();i++) {\n\t\t\tif(s.charAt(i) == 'R') {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tif(s.charAt(1) == 'S' && s.charAt(0)=='R') {\n\t\t\t\tcount = 1;\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') {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tif(s.charAt(1) == 'S' && s.charAt(0)=='R') {\n\t\t\t\tcount = 1;\n\t\t\t}\n\t\t}", "{\n\t\t\tif(s.charAt(i) == 'R') {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tif(s.charAt(1) == 'S' && s.charAt(0)=='R') {\n\t\t\t\tcount = 1;\n\t\t\t}\n\t\t}", "if(s.charAt(i) == 'R') {\n\t\t\t\tcount++;\n\t\t\t}", "s.charAt(i) == 'R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "{\n\t\t\t\tcount++;\n\t\t\t}", "count++", "count", "if(s.charAt(1) == 'S' && s.charAt(0)=='R') {\n\t\t\t\tcount = 1;\n\t\t\t}", "s.charAt(1) == 'S' && s.charAt(0)=='R'", "s.charAt(1) == 'S'", "s.charAt(1)", "s.charAt", "s", "1", "'S'", "s.charAt(0)=='R'", "s.charAt(0)", "s.charAt", "s", "0", "'R'", "{\n\t\t\t\tcount = 1;\n\t\t\t}", "count = 1", "count", "1", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "scan.close()", "scan.close", "scan", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint count= 0;\n\n\t\tString s = scan.nextLine();\n\n\t\tfor(int i = 0;i<s.length();i++) {\n\t\t\tif(s.charAt(i) == 'R') {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tif(s.charAt(1) == 'S' && s.charAt(0)=='R') {\n\t\t\t\tcount = 1;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t\tscan.close();\n\n\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint count= 0;\n\n\t\tString s = scan.nextLine();\n\n\t\tfor(int i = 0;i<s.length();i++) {\n\t\t\tif(s.charAt(i) == 'R') {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tif(s.charAt(1) == 'S' && s.charAt(0)=='R') {\n\t\t\t\tcount = 1;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t\tscan.close();\n\n\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int count= 0; String s = scan.nextLine(); for(int i = 0;i<s.length();i++) { if(s.charAt(i) == 'R') { count++; } if(s.charAt(1) == 'S' && s.charAt(0)=='R') { count = 1; } } System.out.println(count); scan.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, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 17, 30, 41, 13, 17, 11, 1, 2, 2, 13, 4, 18, 13, 2, 4, 18, 13, 13, 17, 1, 40, 13, 40, 13, 30, 14, 2, 13, 13, 30, 0, 13, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 86, 5 ], [ 86, 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 ], [ 28, 29 ], [ 20, 30 ], [ 30, 31 ], [ 31, 32 ], [ 20, 33 ], [ 34, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 36, 41 ], [ 35, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 48, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 54, 59 ], [ 46, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 63, 64 ], [ 46, 65 ], [ 42, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 8, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 8, 80 ], [ 80, 81 ], [ 81, 82 ], [ 6, 83 ], [ 83, 84 ], [ 0, 85 ], [ 85, 86 ], [ 85, 87 ] ]
[ "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 int max = 0;\n for (int i = 0; i < s.length(); i++) {\n if(s.charAt(i) == 'R'){\n int count = 0;\n for (; i < s.length() && s.charAt(i) == 'R'; i++,count++) ;\n if(max < count){\n max = count;\n }\n }\n }\n System.out.println(max);\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 String s = sc.next();\n int max = 0;\n for (int i = 0; i < s.length(); i++) {\n if(s.charAt(i) == 'R'){\n int count = 0;\n for (; i < s.length() && s.charAt(i) == 'R'; i++,count++) ;\n if(max < count){\n max = count;\n }\n }\n }\n System.out.println(max);\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 int max = 0;\n for (int i = 0; i < s.length(); i++) {\n if(s.charAt(i) == 'R'){\n int count = 0;\n for (; i < s.length() && s.charAt(i) == 'R'; i++,count++) ;\n if(max < count){\n max = count;\n }\n }\n }\n System.out.println(max);\n sc.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n int max = 0;\n for (int i = 0; i < s.length(); i++) {\n if(s.charAt(i) == 'R'){\n int count = 0;\n for (; i < s.length() && s.charAt(i) == 'R'; i++,count++) ;\n if(max < count){\n max = count;\n }\n }\n }\n System.out.println(max);\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", "int max = 0;", "max", "0", "for (int i = 0; i < s.length(); i++) {\n if(s.charAt(i) == 'R'){\n int count = 0;\n for (; i < s.length() && s.charAt(i) == 'R'; i++,count++) ;\n if(max < count){\n max = count;\n }\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 int count = 0;\n for (; i < s.length() && s.charAt(i) == 'R'; i++,count++) ;\n if(max < count){\n max = count;\n }\n }\n }", "{\n if(s.charAt(i) == 'R'){\n int count = 0;\n for (; i < s.length() && s.charAt(i) == 'R'; i++,count++) ;\n if(max < count){\n max = count;\n }\n }\n }", "if(s.charAt(i) == 'R'){\n int count = 0;\n for (; i < s.length() && s.charAt(i) == 'R'; i++,count++) ;\n if(max < count){\n max = count;\n }\n }", "s.charAt(i) == 'R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "{\n int count = 0;\n for (; i < s.length() && s.charAt(i) == 'R'; i++,count++) ;\n if(max < count){\n max = count;\n }\n }", "int count = 0;", "count", "0", "for (; i < s.length() && s.charAt(i) == 'R'; i++,count++) ;", ";", "i < s.length() && s.charAt(i) == 'R'", "i < s.length()", "i", "s.length()", "s.length", "s", "s.charAt(i) == 'R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "i++,count++", "i++", "i", "count++", "count", ";", "if(max < count){\n max = count;\n }", "max < count", "max", "count", "{\n max = count;\n }", "max = count", "max", "count", "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 public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n int max = 0;\n for (int i = 0; i < s.length(); i++) {\n if(s.charAt(i) == 'R'){\n int count = 0;\n for (; i < s.length() && s.charAt(i) == 'R'; i++,count++) ;\n if(max < count){\n max = count;\n }\n }\n }\n System.out.println(max);\n sc.close();\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 max = 0;\n for (int i = 0; i < s.length(); i++) {\n if(s.charAt(i) == 'R'){\n int count = 0;\n for (; i < s.length() && s.charAt(i) == 'R'; i++,count++) ;\n if(max < count){\n max = count;\n }\n }\n }\n System.out.println(max);\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(); int max = 0; for (int i = 0; i < s.length(); i++) { if(s.charAt(i) == 'R'){ int count = 0; for (; i < s.length() && s.charAt(i) == 'R'; i++,count++) ; if(max < count){ max = count; } } } System.out.println(max); sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 0, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 13, 17, 30, 14, 4, 18, 4, 18, 13, 17, 17, 17, 30, 0, 13, 17, 0, 13, 4, 18, 13, 17, 17, 30, 14, 2, 4, 18, 4, 18, 13, 13, 2, 13, 17, 17, 4, 18, 13, 17, 30, 0, 13, 17, 14, 2, 4, 18, 4, 18, 13, 13, 2, 13, 17, 17, 4, 18, 13, 17, 30, 0, 13, 17, 0, 13, 4, 18, 13, 13, 2, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 126, 5 ], [ 126, 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 ], [ 21, 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 ], [ 43, 45 ], [ 42, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 50, 54 ], [ 48, 55 ], [ 47, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 46, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 62, 66 ], [ 42, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 72, 76 ], [ 76, 77 ], [ 76, 78 ], [ 70, 79 ], [ 69, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 68, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 68, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 92, 96 ], [ 96, 97 ], [ 96, 98 ], [ 90, 99 ], [ 89, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 103 ], [ 88, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 67, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 111, 112 ], [ 110, 113 ], [ 110, 114 ], [ 114, 115 ], [ 114, 116 ], [ 8, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 117, 122 ], [ 6, 123 ], [ 123, 124 ], [ 0, 125 ], [ 125, 126 ], [ 125, 127 ] ]
[ "import java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args){\n \n Scanner sc = null;\n sc = new Scanner(System.in);\n String s = sc.next();\n sc.close();\n String before = \"\";\n int ans = 0;\n\n for (int i = 0; i < 3; i++) {\n if (i == 0) {\n if(s.substring(0,1).equals(\"R\")){\n ans = 1;\n }\n before = s.substring(0,1);\n } else {\n if (s.substring(i, i + 1).equals(\"R\") && before.equals(\"R\")) {\n ans += 1;\n }else if(s.substring(i, i + 1).equals(\"R\") && before.equals(\"S\")){\n ans = 1;\n }\n before = s.substring(i, i + 1);\n }\n }\n\n System.out.println(ans); \n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main(String[] args){\n \n Scanner sc = null;\n sc = new Scanner(System.in);\n String s = sc.next();\n sc.close();\n String before = \"\";\n int ans = 0;\n\n for (int i = 0; i < 3; i++) {\n if (i == 0) {\n if(s.substring(0,1).equals(\"R\")){\n ans = 1;\n }\n before = s.substring(0,1);\n } else {\n if (s.substring(i, i + 1).equals(\"R\") && before.equals(\"R\")) {\n ans += 1;\n }else if(s.substring(i, i + 1).equals(\"R\") && before.equals(\"S\")){\n ans = 1;\n }\n before = s.substring(i, i + 1);\n }\n }\n\n System.out.println(ans); \n }\n}", "Main", "public static void main(String[] args){\n \n Scanner sc = null;\n sc = new Scanner(System.in);\n String s = sc.next();\n sc.close();\n String before = \"\";\n int ans = 0;\n\n for (int i = 0; i < 3; i++) {\n if (i == 0) {\n if(s.substring(0,1).equals(\"R\")){\n ans = 1;\n }\n before = s.substring(0,1);\n } else {\n if (s.substring(i, i + 1).equals(\"R\") && before.equals(\"R\")) {\n ans += 1;\n }else if(s.substring(i, i + 1).equals(\"R\") && before.equals(\"S\")){\n ans = 1;\n }\n before = s.substring(i, i + 1);\n }\n }\n\n System.out.println(ans); \n }", "main", "{\n \n Scanner sc = null;\n sc = new Scanner(System.in);\n String s = sc.next();\n sc.close();\n String before = \"\";\n int ans = 0;\n\n for (int i = 0; i < 3; i++) {\n if (i == 0) {\n if(s.substring(0,1).equals(\"R\")){\n ans = 1;\n }\n before = s.substring(0,1);\n } else {\n if (s.substring(i, i + 1).equals(\"R\") && before.equals(\"R\")) {\n ans += 1;\n }else if(s.substring(i, i + 1).equals(\"R\") && before.equals(\"S\")){\n ans = 1;\n }\n before = s.substring(i, i + 1);\n }\n }\n\n System.out.println(ans); \n }", "Scanner sc = null;", "sc", "null", "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", "String before = \"\";", "before", "\"\"", "int ans = 0;", "ans", "0", "for (int i = 0; i < 3; i++) {\n if (i == 0) {\n if(s.substring(0,1).equals(\"R\")){\n ans = 1;\n }\n before = s.substring(0,1);\n } else {\n if (s.substring(i, i + 1).equals(\"R\") && before.equals(\"R\")) {\n ans += 1;\n }else if(s.substring(i, i + 1).equals(\"R\") && before.equals(\"S\")){\n ans = 1;\n }\n before = s.substring(i, i + 1);\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < 3", "i", "3", "i++", "i++", "i", "{\n if (i == 0) {\n if(s.substring(0,1).equals(\"R\")){\n ans = 1;\n }\n before = s.substring(0,1);\n } else {\n if (s.substring(i, i + 1).equals(\"R\") && before.equals(\"R\")) {\n ans += 1;\n }else if(s.substring(i, i + 1).equals(\"R\") && before.equals(\"S\")){\n ans = 1;\n }\n before = s.substring(i, i + 1);\n }\n }", "{\n if (i == 0) {\n if(s.substring(0,1).equals(\"R\")){\n ans = 1;\n }\n before = s.substring(0,1);\n } else {\n if (s.substring(i, i + 1).equals(\"R\") && before.equals(\"R\")) {\n ans += 1;\n }else if(s.substring(i, i + 1).equals(\"R\") && before.equals(\"S\")){\n ans = 1;\n }\n before = s.substring(i, i + 1);\n }\n }", "if (i == 0) {\n if(s.substring(0,1).equals(\"R\")){\n ans = 1;\n }\n before = s.substring(0,1);\n } else {\n if (s.substring(i, i + 1).equals(\"R\") && before.equals(\"R\")) {\n ans += 1;\n }else if(s.substring(i, i + 1).equals(\"R\") && before.equals(\"S\")){\n ans = 1;\n }\n before = s.substring(i, i + 1);\n }", "i == 0", "i", "0", "{\n if(s.substring(0,1).equals(\"R\")){\n ans = 1;\n }\n before = s.substring(0,1);\n }", "if(s.substring(0,1).equals(\"R\")){\n ans = 1;\n }", "s.substring(0,1).equals(\"R\")", "s.substring(0,1).equals", "s.substring(0,1)", "s.substring", "s", "0", "1", "\"R\"", "{\n ans = 1;\n }", "ans = 1", "ans", "1", "before = s.substring(0,1)", "before", "s.substring(0,1)", "s.substring", "s", "0", "1", "{\n if (s.substring(i, i + 1).equals(\"R\") && before.equals(\"R\")) {\n ans += 1;\n }else if(s.substring(i, i + 1).equals(\"R\") && before.equals(\"S\")){\n ans = 1;\n }\n before = s.substring(i, i + 1);\n }", "if (s.substring(i, i + 1).equals(\"R\") && before.equals(\"R\")) {\n ans += 1;\n }else if(s.substring(i, i + 1).equals(\"R\") && before.equals(\"S\")){\n ans = 1;\n }", "s.substring(i, i + 1).equals(\"R\") && before.equals(\"R\")", "s.substring(i, i + 1).equals(\"R\")", "s.substring(i, i + 1).equals", "s.substring(i, i + 1)", "s.substring", "s", "i", "i + 1", "i", "1", "\"R\"", "before.equals(\"R\")", "before.equals", "before", "\"R\"", "{\n ans += 1;\n }", "ans += 1", "ans", "1", "if(s.substring(i, i + 1).equals(\"R\") && before.equals(\"S\")){\n ans = 1;\n }", "s.substring(i, i + 1).equals(\"R\") && before.equals(\"S\")", "s.substring(i, i + 1).equals(\"R\")", "s.substring(i, i + 1).equals", "s.substring(i, i + 1)", "s.substring", "s", "i", "i + 1", "i", "1", "\"R\"", "before.equals(\"S\")", "before.equals", "before", "\"S\"", "{\n ans = 1;\n }", "ans = 1", "ans", "1", "before = s.substring(i, i + 1)", "before", "s.substring(i, i + 1)", "s.substring", "s", "i", "i + 1", "i", "1", "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 \n Scanner sc = null;\n sc = new Scanner(System.in);\n String s = sc.next();\n sc.close();\n String before = \"\";\n int ans = 0;\n\n for (int i = 0; i < 3; i++) {\n if (i == 0) {\n if(s.substring(0,1).equals(\"R\")){\n ans = 1;\n }\n before = s.substring(0,1);\n } else {\n if (s.substring(i, i + 1).equals(\"R\") && before.equals(\"R\")) {\n ans += 1;\n }else if(s.substring(i, i + 1).equals(\"R\") && before.equals(\"S\")){\n ans = 1;\n }\n before = s.substring(i, i + 1);\n }\n }\n\n System.out.println(ans); \n }\n}", "public class Main {\n\tpublic static void main(String[] args){\n \n Scanner sc = null;\n sc = new Scanner(System.in);\n String s = sc.next();\n sc.close();\n String before = \"\";\n int ans = 0;\n\n for (int i = 0; i < 3; i++) {\n if (i == 0) {\n if(s.substring(0,1).equals(\"R\")){\n ans = 1;\n }\n before = s.substring(0,1);\n } else {\n if (s.substring(i, i + 1).equals(\"R\") && before.equals(\"R\")) {\n ans += 1;\n }else if(s.substring(i, i + 1).equals(\"R\") && before.equals(\"S\")){\n ans = 1;\n }\n before = s.substring(i, i + 1);\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 = null; sc = new Scanner(System.in); String s = sc.next(); sc.close(); String before = ""; int ans = 0; for (int i = 0; i < 3; i++) { if (i == 0) { if(s.substring(0,1).equals("R")){ ans = 1; } before = s.substring(0,1); } else { if (s.substring(i, i + 1).equals("R") && before.equals("R")) { ans += 1; }else if(s.substring(i, i + 1).equals("R") && before.equals("S")){ ans = 1; } before = s.substring(i, i + 1); } } System.out.println(ans); } }
[ 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, 13, 17, 30, 14, 2, 4, 18, 13, 13, 17, 30, 14, 2, 4, 18, 13, 2, 13, 17, 17, 30, 40, 13, 30, 14, 2, 4, 18, 13, 13, 17, 30, 40, 13, 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 ], [ 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 ], [ 34, 36 ], [ 33, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 39, 44 ], [ 38, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 51, 52 ], [ 51, 53 ], [ 47, 54 ], [ 46, 55 ], [ 55, 56 ], [ 56, 57 ], [ 33, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 60, 65 ], [ 59, 66 ], [ 66, 67 ], [ 67, 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\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString str = sc.next();\n\n\t\tint count = 0;\n\n\t\tfor(int i = 0; i < 3; i++) {\n\n\n\t\t\t\tif(count > 0) {\n\t\t\t\t\tif(str.charAt(i) == 'R') {\n\t\t\t\t\t\tif(str.charAt(i-1) == 'R') {\n\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\n\n\t\t\t} else {\n\t\t\t\tif(str.charAt(i) == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(count);\n\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString str = sc.next();\n\n\t\tint count = 0;\n\n\t\tfor(int i = 0; i < 3; i++) {\n\n\n\t\t\t\tif(count > 0) {\n\t\t\t\t\tif(str.charAt(i) == 'R') {\n\t\t\t\t\t\tif(str.charAt(i-1) == 'R') {\n\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\n\n\t\t\t} else {\n\t\t\t\tif(str.charAt(i) == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(count);\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString str = sc.next();\n\n\t\tint count = 0;\n\n\t\tfor(int i = 0; i < 3; i++) {\n\n\n\t\t\t\tif(count > 0) {\n\t\t\t\t\tif(str.charAt(i) == 'R') {\n\t\t\t\t\t\tif(str.charAt(i-1) == 'R') {\n\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\n\n\t\t\t} else {\n\t\t\t\tif(str.charAt(i) == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(count);\n\n\t}", "main", "{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString str = sc.next();\n\n\t\tint count = 0;\n\n\t\tfor(int i = 0; i < 3; i++) {\n\n\n\t\t\t\tif(count > 0) {\n\t\t\t\t\tif(str.charAt(i) == 'R') {\n\t\t\t\t\t\tif(str.charAt(i-1) == 'R') {\n\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\n\n\t\t\t} else {\n\t\t\t\tif(str.charAt(i) == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(count);\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String str = sc.next();", "str", "sc.next()", "sc.next", "sc", "int count = 0;", "count", "0", "for(int i = 0; i < 3; i++) {\n\n\n\t\t\t\tif(count > 0) {\n\t\t\t\t\tif(str.charAt(i) == 'R') {\n\t\t\t\t\t\tif(str.charAt(i-1) == 'R') {\n\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\n\n\t\t\t} else {\n\t\t\t\tif(str.charAt(i) == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < 3", "i", "3", "i++", "i++", "i", "{\n\n\n\t\t\t\tif(count > 0) {\n\t\t\t\t\tif(str.charAt(i) == 'R') {\n\t\t\t\t\t\tif(str.charAt(i-1) == 'R') {\n\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\n\n\t\t\t} else {\n\t\t\t\tif(str.charAt(i) == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}", "{\n\n\n\t\t\t\tif(count > 0) {\n\t\t\t\t\tif(str.charAt(i) == 'R') {\n\t\t\t\t\t\tif(str.charAt(i-1) == 'R') {\n\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\n\n\t\t\t} else {\n\t\t\t\tif(str.charAt(i) == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}", "if(count > 0) {\n\t\t\t\t\tif(str.charAt(i) == 'R') {\n\t\t\t\t\t\tif(str.charAt(i-1) == 'R') {\n\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\n\n\t\t\t} else {\n\t\t\t\tif(str.charAt(i) == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}", "count > 0", "count", "0", "{\n\t\t\t\t\tif(str.charAt(i) == 'R') {\n\t\t\t\t\t\tif(str.charAt(i-1) == 'R') {\n\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\n\n\t\t\t}", "if(str.charAt(i) == 'R') {\n\t\t\t\t\t\tif(str.charAt(i-1) == 'R') {\n\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "str.charAt(i) == 'R'", "str.charAt(i)", "str.charAt", "str", "i", "'R'", "{\n\t\t\t\t\t\tif(str.charAt(i-1) == 'R') {\n\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "if(str.charAt(i-1) == 'R') {\n\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t}", "str.charAt(i-1) == 'R'", "str.charAt(i-1)", "str.charAt", "str", "i-1", "i", "1", "'R'", "{\n\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t}", "count++", "count", "{\n\t\t\t\tif(str.charAt(i) == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}", "if(str.charAt(i) == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}", "str.charAt(i) == 'R'", "str.charAt(i)", "str.charAt", "str", "i", "'R'", "{\n\t\t\t\t\tcount++;\n\t\t\t\t}", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString str = sc.next();\n\n\t\tint count = 0;\n\n\t\tfor(int i = 0; i < 3; i++) {\n\n\n\t\t\t\tif(count > 0) {\n\t\t\t\t\tif(str.charAt(i) == 'R') {\n\t\t\t\t\t\tif(str.charAt(i-1) == 'R') {\n\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\n\n\t\t\t} else {\n\t\t\t\tif(str.charAt(i) == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(count);\n\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString str = sc.next();\n\n\t\tint count = 0;\n\n\t\tfor(int i = 0; i < 3; i++) {\n\n\n\t\t\t\tif(count > 0) {\n\t\t\t\t\tif(str.charAt(i) == 'R') {\n\t\t\t\t\t\tif(str.charAt(i-1) == 'R') {\n\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\n\n\t\t\t} else {\n\t\t\t\tif(str.charAt(i) == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(count);\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 str = sc.next(); int count = 0; for(int i = 0; i < 3; i++) { if(count > 0) { if(str.charAt(i) == 'R') { if(str.charAt(i-1) == 'R') { count++; } } } else { if(str.charAt(i) == 'R') { count++; } } } 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, 18, 13, 13, 14, 2, 2, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 0, 13, 17, 14, 2, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 0, 13, 17, 14, 2, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 0, 13, 17, 14, 2, 2, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 0, 13, 17, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 27, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 27, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 34, 39 ], [ 27, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 40, 45 ], [ 25, 46 ], [ 46, 47 ], [ 46, 48 ], [ 25, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 51, 56 ], [ 50, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 57, 62 ], [ 49, 63 ], [ 63, 64 ], [ 63, 65 ], [ 49, 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 ], [ 80, 82 ], [ 66, 83 ], [ 83, 84 ], [ 85, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 86, 91 ], [ 85, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 92, 97 ], [ 85, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 98, 103 ], [ 83, 104 ], [ 104, 105 ], [ 104, 106 ], [ 83, 107 ], [ 107, 108 ], [ 107, 109 ], [ 8, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 110, 115 ], [ 6, 116 ], [ 116, 117 ] ]
[ "import java.util.*;\nclass Main {\n public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n String s=sc.next();\n int count=0;\n int max=Integer.MIN_VALUE;\n if(s.charAt(0)=='R' && s.charAt(1)=='R' && s.charAt(2)=='R')\n count=3;\n else if(s.charAt(0)=='R' && s.charAt(1)=='R')\n count=2;\n else if(s.charAt(1)=='R' && s.charAt(2)=='R')\n count=2;\n else if(s.charAt(0)!='R' && s.charAt(1)!='R' && s.charAt(2)!='R')\n count=0;\n else\n count=1;\n System.out.println(count);\n } \n}", "import java.util.*;", "util.*", "java", "class Main {\n public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n String s=sc.next();\n int count=0;\n int max=Integer.MIN_VALUE;\n if(s.charAt(0)=='R' && s.charAt(1)=='R' && s.charAt(2)=='R')\n count=3;\n else if(s.charAt(0)=='R' && s.charAt(1)=='R')\n count=2;\n else if(s.charAt(1)=='R' && s.charAt(2)=='R')\n count=2;\n else if(s.charAt(0)!='R' && s.charAt(1)!='R' && s.charAt(2)!='R')\n count=0;\n else\n count=1;\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 int count=0;\n int max=Integer.MIN_VALUE;\n if(s.charAt(0)=='R' && s.charAt(1)=='R' && s.charAt(2)=='R')\n count=3;\n else if(s.charAt(0)=='R' && s.charAt(1)=='R')\n count=2;\n else if(s.charAt(1)=='R' && s.charAt(2)=='R')\n count=2;\n else if(s.charAt(0)!='R' && s.charAt(1)!='R' && s.charAt(2)!='R')\n count=0;\n else\n count=1;\n System.out.println(count);\n }", "main", "{\n Scanner sc=new Scanner(System.in);\n String s=sc.next();\n int count=0;\n int max=Integer.MIN_VALUE;\n if(s.charAt(0)=='R' && s.charAt(1)=='R' && s.charAt(2)=='R')\n count=3;\n else if(s.charAt(0)=='R' && s.charAt(1)=='R')\n count=2;\n else if(s.charAt(1)=='R' && s.charAt(2)=='R')\n count=2;\n else if(s.charAt(0)!='R' && s.charAt(1)!='R' && s.charAt(2)!='R')\n count=0;\n else\n count=1;\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", "int max=Integer.MIN_VALUE;", "max", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "if(s.charAt(0)=='R' && s.charAt(1)=='R' && s.charAt(2)=='R')\n count=3;\n else if(s.charAt(0)=='R' && s.charAt(1)=='R')\n count=2;\n else if(s.charAt(1)=='R' && s.charAt(2)=='R')\n count=2;\n else if(s.charAt(0)!='R' && s.charAt(1)!='R' && s.charAt(2)!='R')\n count=0;\n else\n count=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'", "count=3", "count", "3", "if(s.charAt(0)=='R' && s.charAt(1)=='R')\n count=2;\n else if(s.charAt(1)=='R' && s.charAt(2)=='R')\n count=2;\n else if(s.charAt(0)!='R' && s.charAt(1)!='R' && s.charAt(2)!='R')\n count=0;\n else\n count=1;", "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'", "count=2", "count", "2", "if(s.charAt(1)=='R' && s.charAt(2)=='R')\n count=2;\n else if(s.charAt(0)!='R' && s.charAt(1)!='R' && s.charAt(2)!='R')\n count=0;\n else\n count=1;", "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'", "count=2", "count", "2", "if(s.charAt(0)!='R' && s.charAt(1)!='R' && s.charAt(2)!='R')\n count=0;\n else\n count=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'", "count=0", "count", "0", "count=1", "count", "1", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args" ]
import java.util.*; class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); String s=sc.next(); int count=0; int max=Integer.MIN_VALUE; if(s.charAt(0)=='R' && s.charAt(1)=='R' && s.charAt(2)=='R') count=3; else if(s.charAt(0)=='R' && s.charAt(1)=='R') count=2; else if(s.charAt(1)=='R' && s.charAt(2)=='R') count=2; else if(s.charAt(0)!='R' && s.charAt(1)!='R' && s.charAt(2)!='R') count=0; else count=1; System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 4, 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 ], [ 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 ], [ 28, 30 ], [ 26, 31 ], [ 31, 32 ], [ 31, 33 ], [ 26, 34 ], [ 34, 35 ], [ 35, 36 ], [ 26, 37 ], [ 38, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 40, 45 ], [ 39, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 39, 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) throws Exception {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n sc.close();\n int count = 0, max = 0;\n for (int i = 0; i < 3; i++) {\n if (s.charAt(i) == 'R') {\n count++;\n if (max < count) {\n max = count;\n }\n } else {\n if (max < count) {\n max = count;\n }\n count = 0;\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) throws Exception {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n sc.close();\n int count = 0, max = 0;\n for (int i = 0; i < 3; i++) {\n if (s.charAt(i) == 'R') {\n count++;\n if (max < count) {\n max = count;\n }\n } else {\n if (max < count) {\n max = count;\n }\n count = 0;\n }\n }\n System.out.println(max);\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n sc.close();\n int count = 0, max = 0;\n for (int i = 0; i < 3; i++) {\n if (s.charAt(i) == 'R') {\n count++;\n if (max < count) {\n max = count;\n }\n } else {\n if (max < count) {\n max = count;\n }\n count = 0;\n }\n }\n System.out.println(max);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n sc.close();\n int count = 0, max = 0;\n for (int i = 0; i < 3; i++) {\n if (s.charAt(i) == 'R') {\n count++;\n if (max < count) {\n max = count;\n }\n } else {\n if (max < count) {\n max = count;\n }\n count = 0;\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", "sc.close()", "sc.close", "sc", "int count = 0", "count", "0", "max = 0;", "max", "0", "for (int i = 0; i < 3; i++) {\n if (s.charAt(i) == 'R') {\n count++;\n if (max < count) {\n max = count;\n }\n } else {\n if (max < count) {\n max = count;\n }\n count = 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 count++;\n if (max < count) {\n max = count;\n }\n } else {\n if (max < count) {\n max = count;\n }\n count = 0;\n }\n }", "{\n if (s.charAt(i) == 'R') {\n count++;\n if (max < count) {\n max = count;\n }\n } else {\n if (max < count) {\n max = count;\n }\n count = 0;\n }\n }", "if (s.charAt(i) == 'R') {\n count++;\n if (max < count) {\n max = count;\n }\n } else {\n if (max < count) {\n max = count;\n }\n count = 0;\n }", "s.charAt(i) == 'R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "{\n count++;\n if (max < count) {\n max = count;\n }\n }", "count++", "count", "if (max < count) {\n max = count;\n }", "max < count", "max", "count", "{\n max = count;\n }", "max = count", "max", "count", "{\n if (max < count) {\n max = count;\n }\n count = 0;\n }", "if (max < count) {\n max = count;\n }", "max < count", "max", "count", "{\n max = count;\n }", "max = count", "max", "count", "count = 0", "count", "0", "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) throws Exception {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n sc.close();\n int count = 0, max = 0;\n for (int i = 0; i < 3; i++) {\n if (s.charAt(i) == 'R') {\n count++;\n if (max < count) {\n max = count;\n }\n } else {\n if (max < count) {\n max = count;\n }\n count = 0;\n }\n }\n System.out.println(max);\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n sc.close();\n int count = 0, max = 0;\n for (int i = 0; i < 3; i++) {\n if (s.charAt(i) == 'R') {\n count++;\n if (max < count) {\n max = count;\n }\n } else {\n if (max < count) {\n max = count;\n }\n count = 0;\n }\n }\n System.out.println(max);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); String s = sc.next(); sc.close(); int count = 0, max = 0; for (int i = 0; i < 3; i++) { if (s.charAt(i) == 'R') { count++; if (max < count) { max = count; } } else { if (max < count) { max = count; } count = 0; } } System.out.println(max); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 4, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 14, 2, 4, 18, 13, 17, 17, 30, 14, 2, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 0, 13, 17, 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, 14, 2, 4, 18, 13, 17, 17, 30, 14, 2, 4, 18, 13, 17, 17, 30, 0, 13, 17, 30, 0, 13, 17, 0, 13, 17, 4, 18, 18, 13, 13, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 2, 4, 18, 13, 17, 17, 41, 13, 2, 4, 18, 13, 17, 17, 41, 13, 2, 4, 18, 13, 17, 17, 41, 13, 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, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 188, 5 ], [ 188, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 6, 11 ], [ 11, 12 ], [ 188, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 15, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 15, 24 ], [ 24, 25 ], [ 24, 26 ], [ 15, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 27, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 37, 42 ], [ 36, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 43, 48 ], [ 35, 49 ], [ 49, 50 ], [ 49, 51 ], [ 35, 52 ], [ 52, 53 ], [ 52, 54 ], [ 27, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 57, 62 ], [ 56, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 65, 70 ], [ 64, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 64, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 56, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 80, 85 ], [ 79, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 88, 93 ], [ 87, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 87, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 79, 102 ], [ 102, 103 ], [ 102, 104 ], [ 15, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 105, 110 ], [ 188, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 113, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 120, 121 ], [ 113, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 125, 128 ], [ 124, 129 ], [ 113, 130 ], [ 130, 131 ], [ 130, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 133, 136 ], [ 132, 137 ], [ 113, 138 ], [ 138, 139 ], [ 138, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 141, 144 ], [ 140, 145 ], [ 113, 146 ], [ 146, 147 ], [ 146, 148 ], [ 113, 149 ], [ 149, 150 ], [ 151, 151 ], [ 151, 152 ], [ 151, 153 ], [ 151, 154 ], [ 149, 155 ], [ 155, 156 ], [ 155, 157 ], [ 149, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 160, 162 ], [ 159, 163 ], [ 163, 164 ], [ 163, 165 ], [ 158, 166 ], [ 166, 167 ], [ 166, 168 ], [ 158, 169 ], [ 169, 170 ], [ 171, 171 ], [ 171, 172 ], [ 171, 173 ], [ 171, 174 ], [ 169, 175 ], [ 175, 176 ], [ 175, 177 ], [ 169, 178 ], [ 178, 179 ], [ 178, 180 ], [ 113, 181 ], [ 181, 182 ], [ 182, 183 ], [ 183, 184 ], [ 183, 185 ], [ 181, 186 ], [ 0, 187 ], [ 187, 188 ], [ 187, 189 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String args[]){\n test_ans();\n }\n\n private static void test_mine(){\n Scanner scan = new Scanner(System.in);\n String s = scan.next();\n\n int count = 0;\n if(s.charAt(1) == 'S'){\n if(s.charAt(0) == 'R' || s.charAt(2) == 'R')\n count = 1;\n else\n count = 0;\n }else{\n if(s.charAt(0) == 'R'){\n if(s.charAt(2) == 'R'){\n count = 3;\n }else{\n count = 2;\n }\n }else if(s.charAt(2) == 'R'){\n if(s.charAt(0) == 'R'){\n count = 3;\n }else{\n count = 2;\n }\n }else\n count = 1;\n }\n System.out.println(count);\n }\n\n private static void test_ans(){\n Scanner scan = new Scanner(System.in);\n String s = scan.next();\n \n boolean p = s.charAt(0) == 'R';\n boolean q = s.charAt(1) == 'R';\n boolean r = s.charAt(2) == 'R';\n\n int count = 0;\n if(p && q && r)\n count = 3;\n else if((p && q) || (q && r))\n count = 2;\n else if(p || q || r)\n count = 1;\n else\n count = 0;\n\n System.out.println(count);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\tpublic static void main(String args[]){\n test_ans();\n }\n\n private static void test_mine(){\n Scanner scan = new Scanner(System.in);\n String s = scan.next();\n\n int count = 0;\n if(s.charAt(1) == 'S'){\n if(s.charAt(0) == 'R' || s.charAt(2) == 'R')\n count = 1;\n else\n count = 0;\n }else{\n if(s.charAt(0) == 'R'){\n if(s.charAt(2) == 'R'){\n count = 3;\n }else{\n count = 2;\n }\n }else if(s.charAt(2) == 'R'){\n if(s.charAt(0) == 'R'){\n count = 3;\n }else{\n count = 2;\n }\n }else\n count = 1;\n }\n System.out.println(count);\n }\n\n private static void test_ans(){\n Scanner scan = new Scanner(System.in);\n String s = scan.next();\n \n boolean p = s.charAt(0) == 'R';\n boolean q = s.charAt(1) == 'R';\n boolean r = s.charAt(2) == 'R';\n\n int count = 0;\n if(p && q && r)\n count = 3;\n else if((p && q) || (q && r))\n count = 2;\n else if(p || q || r)\n count = 1;\n else\n count = 0;\n\n System.out.println(count);\n }\n}", "Main", "public static void main(String args[]){\n test_ans();\n }", "main", "{\n test_ans();\n }", "test_ans()", "test_ans", "String args[]", "args", "private static void test_mine(){\n Scanner scan = new Scanner(System.in);\n String s = scan.next();\n\n int count = 0;\n if(s.charAt(1) == 'S'){\n if(s.charAt(0) == 'R' || s.charAt(2) == 'R')\n count = 1;\n else\n count = 0;\n }else{\n if(s.charAt(0) == 'R'){\n if(s.charAt(2) == 'R'){\n count = 3;\n }else{\n count = 2;\n }\n }else if(s.charAt(2) == 'R'){\n if(s.charAt(0) == 'R'){\n count = 3;\n }else{\n count = 2;\n }\n }else\n count = 1;\n }\n System.out.println(count);\n }", "test_mine", "{\n Scanner scan = new Scanner(System.in);\n String s = scan.next();\n\n int count = 0;\n if(s.charAt(1) == 'S'){\n if(s.charAt(0) == 'R' || s.charAt(2) == 'R')\n count = 1;\n else\n count = 0;\n }else{\n if(s.charAt(0) == 'R'){\n if(s.charAt(2) == 'R'){\n count = 3;\n }else{\n count = 2;\n }\n }else if(s.charAt(2) == 'R'){\n if(s.charAt(0) == 'R'){\n count = 3;\n }else{\n count = 2;\n }\n }else\n count = 1;\n }\n System.out.println(count);\n }", "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", "if(s.charAt(1) == 'S'){\n if(s.charAt(0) == 'R' || s.charAt(2) == 'R')\n count = 1;\n else\n count = 0;\n }else{\n if(s.charAt(0) == 'R'){\n if(s.charAt(2) == 'R'){\n count = 3;\n }else{\n count = 2;\n }\n }else if(s.charAt(2) == 'R'){\n if(s.charAt(0) == 'R'){\n count = 3;\n }else{\n count = 2;\n }\n }else\n count = 1;\n }", "s.charAt(1) == 'S'", "s.charAt(1)", "s.charAt", "s", "1", "'S'", "{\n if(s.charAt(0) == 'R' || s.charAt(2) == 'R')\n count = 1;\n else\n count = 0;\n }", "if(s.charAt(0) == 'R' || s.charAt(2) == 'R')\n count = 1;\n else\n count = 0;", "s.charAt(0) == 'R' || s.charAt(2) == 'R'", "s.charAt(0) == 'R'", "s.charAt(0)", "s.charAt", "s", "0", "'R'", "s.charAt(2) == 'R'", "s.charAt(2)", "s.charAt", "s", "2", "'R'", "count = 1", "count", "1", "count = 0", "count", "0", "{\n if(s.charAt(0) == 'R'){\n if(s.charAt(2) == 'R'){\n count = 3;\n }else{\n count = 2;\n }\n }else if(s.charAt(2) == 'R'){\n if(s.charAt(0) == 'R'){\n count = 3;\n }else{\n count = 2;\n }\n }else\n count = 1;\n }", "if(s.charAt(0) == 'R'){\n if(s.charAt(2) == 'R'){\n count = 3;\n }else{\n count = 2;\n }\n }else if(s.charAt(2) == 'R'){\n if(s.charAt(0) == 'R'){\n count = 3;\n }else{\n count = 2;\n }\n }else\n count = 1;", "s.charAt(0) == 'R'", "s.charAt(0)", "s.charAt", "s", "0", "'R'", "{\n if(s.charAt(2) == 'R'){\n count = 3;\n }else{\n count = 2;\n }\n }", "if(s.charAt(2) == 'R'){\n count = 3;\n }else{\n count = 2;\n }", "s.charAt(2) == 'R'", "s.charAt(2)", "s.charAt", "s", "2", "'R'", "{\n count = 3;\n }", "count = 3", "count", "3", "{\n count = 2;\n }", "count = 2", "count", "2", "if(s.charAt(2) == 'R'){\n if(s.charAt(0) == 'R'){\n count = 3;\n }else{\n count = 2;\n }\n }else\n count = 1;", "s.charAt(2) == 'R'", "s.charAt(2)", "s.charAt", "s", "2", "'R'", "{\n if(s.charAt(0) == 'R'){\n count = 3;\n }else{\n count = 2;\n }\n }", "if(s.charAt(0) == 'R'){\n count = 3;\n }else{\n count = 2;\n }", "s.charAt(0) == 'R'", "s.charAt(0)", "s.charAt", "s", "0", "'R'", "{\n count = 3;\n }", "count = 3", "count", "3", "{\n count = 2;\n }", "count = 2", "count", "2", "count = 1", "count", "1", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "private static void test_ans(){\n Scanner scan = new Scanner(System.in);\n String s = scan.next();\n \n boolean p = s.charAt(0) == 'R';\n boolean q = s.charAt(1) == 'R';\n boolean r = s.charAt(2) == 'R';\n\n int count = 0;\n if(p && q && r)\n count = 3;\n else if((p && q) || (q && r))\n count = 2;\n else if(p || q || r)\n count = 1;\n else\n count = 0;\n\n System.out.println(count);\n }", "test_ans", "{\n Scanner scan = new Scanner(System.in);\n String s = scan.next();\n \n boolean p = s.charAt(0) == 'R';\n boolean q = s.charAt(1) == 'R';\n boolean r = s.charAt(2) == 'R';\n\n int count = 0;\n if(p && q && r)\n count = 3;\n else if((p && q) || (q && r))\n count = 2;\n else if(p || q || r)\n count = 1;\n else\n count = 0;\n\n System.out.println(count);\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String s = scan.next();", "s", "scan.next()", "scan.next", "scan", "boolean p = s.charAt(0) == 'R';", "p", "s.charAt(0) == 'R'", "s.charAt(0)", "s.charAt", "s", "0", "'R'", "boolean q = s.charAt(1) == 'R';", "q", "s.charAt(1) == 'R'", "s.charAt(1)", "s.charAt", "s", "1", "'R'", "boolean r = s.charAt(2) == 'R';", "r", "s.charAt(2) == 'R'", "s.charAt(2)", "s.charAt", "s", "2", "'R'", "int count = 0;", "count", "0", "if(p && q && r)\n count = 3;\n else if((p && q) || (q && r))\n count = 2;\n else if(p || q || r)\n count = 1;\n else\n count = 0;", "p && q && r", "p && q && r", "p", "q", "r", "count = 3", "count", "3", "if((p && q) || (q && r))\n count = 2;\n else if(p || q || r)\n count = 1;\n else\n count = 0;", "(p && q) || (q && r)", "(p && q)", "p", "q", "(q && r)", "q", "r", "count = 2", "count", "2", "if(p || q || r)\n count = 1;\n else\n count = 0;", "p || q || r", "p || q || r", "p", "q", "r", "count = 1", "count", "1", "count = 0", "count", "0", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "public class Main{\n\tpublic static void main(String args[]){\n test_ans();\n }\n\n private static void test_mine(){\n Scanner scan = new Scanner(System.in);\n String s = scan.next();\n\n int count = 0;\n if(s.charAt(1) == 'S'){\n if(s.charAt(0) == 'R' || s.charAt(2) == 'R')\n count = 1;\n else\n count = 0;\n }else{\n if(s.charAt(0) == 'R'){\n if(s.charAt(2) == 'R'){\n count = 3;\n }else{\n count = 2;\n }\n }else if(s.charAt(2) == 'R'){\n if(s.charAt(0) == 'R'){\n count = 3;\n }else{\n count = 2;\n }\n }else\n count = 1;\n }\n System.out.println(count);\n }\n\n private static void test_ans(){\n Scanner scan = new Scanner(System.in);\n String s = scan.next();\n \n boolean p = s.charAt(0) == 'R';\n boolean q = s.charAt(1) == 'R';\n boolean r = s.charAt(2) == 'R';\n\n int count = 0;\n if(p && q && r)\n count = 3;\n else if((p && q) || (q && r))\n count = 2;\n else if(p || q || r)\n count = 1;\n else\n count = 0;\n\n System.out.println(count);\n }\n}", "public class Main{\n\tpublic static void main(String args[]){\n test_ans();\n }\n\n private static void test_mine(){\n Scanner scan = new Scanner(System.in);\n String s = scan.next();\n\n int count = 0;\n if(s.charAt(1) == 'S'){\n if(s.charAt(0) == 'R' || s.charAt(2) == 'R')\n count = 1;\n else\n count = 0;\n }else{\n if(s.charAt(0) == 'R'){\n if(s.charAt(2) == 'R'){\n count = 3;\n }else{\n count = 2;\n }\n }else if(s.charAt(2) == 'R'){\n if(s.charAt(0) == 'R'){\n count = 3;\n }else{\n count = 2;\n }\n }else\n count = 1;\n }\n System.out.println(count);\n }\n\n private static void test_ans(){\n Scanner scan = new Scanner(System.in);\n String s = scan.next();\n \n boolean p = s.charAt(0) == 'R';\n boolean q = s.charAt(1) == 'R';\n boolean r = s.charAt(2) == 'R';\n\n int count = 0;\n if(p && q && r)\n count = 3;\n else if((p && q) || (q && r))\n count = 2;\n else if(p || q || r)\n count = 1;\n else\n count = 0;\n\n System.out.println(count);\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String args[]){ test_ans(); } private static void test_mine(){ Scanner scan = new Scanner(System.in); String s = scan.next(); int count = 0; if(s.charAt(1) == 'S'){ if(s.charAt(0) == 'R' || s.charAt(2) == 'R') count = 1; else count = 0; }else{ if(s.charAt(0) == 'R'){ if(s.charAt(2) == 'R'){ count = 3; }else{ count = 2; } }else if(s.charAt(2) == 'R'){ if(s.charAt(0) == 'R'){ count = 3; }else{ count = 2; } }else count = 1; } System.out.println(count); } private static void test_ans(){ Scanner scan = new Scanner(System.in); String s = scan.next(); boolean p = s.charAt(0) == 'R'; boolean q = s.charAt(1) == 'R'; boolean r = s.charAt(2) == 'R'; int count = 0; if(p && q && r) count = 3; else if((p && q) || (q && r)) count = 2; else if(p || q || r) count = 1; else count = 0; System.out.println(count); } }
[ 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 ] ]
[ "\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n char[] c = sc.next().toCharArray();\n int count = 0;\n for(int i=0;i<3;i++){\n if(c[i] == 'R'){\n count++;\n }\n }\n if(count == 2 && c[1] != 'R'){\n count = 1;\n }\n System.out.println(count);\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 char[] c = sc.next().toCharArray();\n int count = 0;\n for(int i=0;i<3;i++){\n if(c[i] == 'R'){\n count++;\n }\n }\n if(count == 2 && c[1] != 'R'){\n count = 1;\n }\n System.out.println(count);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n char[] c = sc.next().toCharArray();\n int count = 0;\n for(int i=0;i<3;i++){\n if(c[i] == 'R'){\n count++;\n }\n }\n if(count == 2 && c[1] != 'R'){\n count = 1;\n }\n System.out.println(count);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n char[] c = sc.next().toCharArray();\n int count = 0;\n for(int i=0;i<3;i++){\n if(c[i] == 'R'){\n count++;\n }\n }\n if(count == 2 && c[1] != 'R'){\n count = 1;\n }\n System.out.println(count);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "char[] c = sc.next().toCharArray();", "c", "sc.next().toCharArray()", "sc.next().toCharArray", "sc.next()", "sc.next", "sc", "int count = 0;", "count", "0", "for(int i=0;i<3;i++){\n if(c[i] == 'R'){\n count++;\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<3", "i", "3", "i++", "i++", "i", "{\n if(c[i] == 'R'){\n count++;\n }\n }", "{\n if(c[i] == 'R'){\n count++;\n }\n }", "if(c[i] == 'R'){\n count++;\n }", "c[i] == 'R'", "c[i]", "c", "i", "'R'", "{\n count++;\n }", "count++", "count", "if(count == 2 && c[1] != 'R'){\n count = 1;\n }", "count == 2 && c[1] != 'R'", "count == 2", "count", "2", "c[1] != 'R'", "c[1]", "c", "1", "'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\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n char[] c = sc.next().toCharArray();\n int count = 0;\n for(int i=0;i<3;i++){\n if(c[i] == 'R'){\n count++;\n }\n }\n if(count == 2 && c[1] != 'R'){\n count = 1;\n }\n System.out.println(count);\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n char[] c = sc.next().toCharArray();\n int count = 0;\n for(int i=0;i<3;i++){\n if(c[i] == 'R'){\n count++;\n }\n }\n if(count == 2 && c[1] != 'R'){\n count = 1;\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); char[] c = sc.next().toCharArray(); int count = 0; for(int i=0;i<3;i++){ if(c[i] == 'R'){ count++; } } if(count == 2 && c[1] != 'R'){ count = 1; } System.out.println(count); } }
[ 7, 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, 4, 18, 13, 17, 13, 4, 18, 13, 13, 4, 18, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 0, 13, 17, 23, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 37, 20, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 0, 13, 17, 14, 4, 18, 13, 17, 0, 13, 17, 14, 4, 18, 13, 17, 0, 13, 17, 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 ], [ 162, 11 ], [ 162, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 17, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 22, 24 ], [ 14, 25 ], [ 25, 26 ], [ 25, 27 ], [ 14, 28 ], [ 28, 29 ], [ 28, 30 ], [ 14, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 33, 37 ], [ 14, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 14, 42 ], [ 42, 43 ], [ 43, 44 ], [ 12, 45 ], [ 45, 46 ], [ 162, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 47, 51 ], [ 51, 52 ], [ 47, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 59, 60 ], [ 59, 61 ], [ 53, 62 ], [ 62, 63 ], [ 47, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 67, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 77, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 66, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 47, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 98, 99 ], [ 47, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 107, 108 ], [ 47, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 113, 116 ], [ 116, 117 ], [ 0, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 122, 126 ], [ 126, 127 ], [ 126, 128 ], [ 128, 129 ], [ 129, 130 ], [ 122, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 132, 135 ], [ 131, 136 ], [ 136, 137 ], [ 136, 138 ], [ 131, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 140, 143 ], [ 139, 144 ], [ 144, 145 ], [ 144, 146 ], [ 139, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 148, 151 ], [ 147, 152 ], [ 152, 153 ], [ 152, 154 ], [ 122, 155 ], [ 155, 156 ], [ 120, 157 ], [ 157, 158 ], [ 120, 159 ], [ 159, 160 ], [ 0, 161 ], [ 161, 162 ], [ 161, 163 ] ]
[ "import java.io.*;\nimport java.util.Arrays;\nimport java.util.StringTokenizer;\n\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out=new PrintWriter(outputStream);\n int ans =TaskA.solve(0,in);\n out.println(ans);\n out.close();\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n public double nextDouble() { return Double.parseDouble(next()); }\n }\n}\n class TaskA {\n public static int solve(int testNumber, Main.InputReader in) {\n int ans=0;\n String s=in.next();\n if(s.contains(\"RRR\"))\n ans=3;\n else\n if(s.contains(\"RR\"))\n ans=2;\n else\n if(s.contains(\"R\"))\n ans=1;\n return ans;\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out=new PrintWriter(outputStream);\n int ans =TaskA.solve(0,in);\n out.println(ans);\n out.close();\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n public double nextDouble() { return Double.parseDouble(next()); }\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 int ans =TaskA.solve(0,in);\n out.println(ans);\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 int ans =TaskA.solve(0,in);\n out.println(ans);\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)", "int ans =TaskA.solve(0,in);", "ans", "TaskA.solve(0,in)", "TaskA.solve", "TaskA", "0", "in", "out.println(ans)", "out.println", "out", "ans", "out.close()", "out.close", "out", "String[] args", "args", "static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n public double nextDouble() { return Double.parseDouble(next()); }\n }", "InputReader", "public BufferedReader reader;", "reader", "public StringTokenizer tokenizer;", "tokenizer", "public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }", "InputReader", "{\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }", "reader = new BufferedReader(new InputStreamReader(stream), 32768)", "reader", "new BufferedReader(new InputStreamReader(stream), 32768)", "tokenizer = null", "tokenizer", "null", "InputStream stream", "stream", "public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }", "next", "{\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }", "while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "tokenizer == null || !tokenizer.hasMoreTokens()", "tokenizer == null", "tokenizer", "null", "!tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens", "tokenizer", "{\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }", "catch (IOException e) {\n throw new RuntimeException(e);\n }", "IOException e", "{\n throw new RuntimeException(e);\n }", "throw new RuntimeException(e);", "new RuntimeException(e)", "{\n tokenizer = new StringTokenizer(reader.readLine());\n }", "tokenizer = new StringTokenizer(reader.readLine())", "tokenizer", "new StringTokenizer(reader.readLine())", "return tokenizer.nextToken();", "tokenizer.nextToken()", "tokenizer.nextToken", "tokenizer", "public int nextInt() {\n return Integer.parseInt(next());\n }", "nextInt", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "public long nextLong() {\n return Long.parseLong(next());\n }", "nextLong", "{\n return Long.parseLong(next());\n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "public double nextDouble() { return Double.parseDouble(next()); }", "nextDouble", "{ return Double.parseDouble(next()); }", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "class TaskA {\n public static int solve(int testNumber, Main.InputReader in) {\n int ans=0;\n String s=in.next();\n if(s.contains(\"RRR\"))\n ans=3;\n else\n if(s.contains(\"RR\"))\n ans=2;\n else\n if(s.contains(\"R\"))\n ans=1;\n return ans;\n }\n}", "TaskA", "public static int solve(int testNumber, Main.InputReader in) {\n int ans=0;\n String s=in.next();\n if(s.contains(\"RRR\"))\n ans=3;\n else\n if(s.contains(\"RR\"))\n ans=2;\n else\n if(s.contains(\"R\"))\n ans=1;\n return ans;\n }", "solve", "{\n int ans=0;\n String s=in.next();\n if(s.contains(\"RRR\"))\n ans=3;\n else\n if(s.contains(\"RR\"))\n ans=2;\n else\n if(s.contains(\"R\"))\n ans=1;\n return ans;\n }", "int ans=0;", "ans", "0", "String s=in.next();", "s", "in.next()", "in.next", "in", "if(s.contains(\"RRR\"))\n ans=3;\n else\n if(s.contains(\"RR\"))\n ans=2;\n else\n if(s.contains(\"R\"))\n ans=1;", "s.contains(\"RRR\")", "s.contains", "s", "\"RRR\"", "ans=3", "ans", "3", "if(s.contains(\"RR\"))\n ans=2;\n else\n if(s.contains(\"R\"))\n ans=1;", "s.contains(\"RR\")", "s.contains", "s", "\"RR\"", "ans=2", "ans", "2", "if(s.contains(\"R\"))\n ans=1;", "s.contains(\"R\")", "s.contains", "s", "\"R\"", "ans=1", "ans", "1", "return ans;", "ans", "int testNumber", "testNumber", "Main.InputReader in", "in", "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 int ans =TaskA.solve(0,in);\n out.println(ans);\n out.close();\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n public double nextDouble() { return Double.parseDouble(next()); }\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 int ans =TaskA.solve(0,in);\n out.println(ans);\n out.close();\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n public double nextDouble() { return Double.parseDouble(next()); }\n }\n}", "Main" ]
import java.io.*; import java.util.Arrays; import java.util.StringTokenizer; public class Main { public static void main(String[] args) { InputStream inputStream = System.in; OutputStream outputStream = System.out; InputReader in = new InputReader(inputStream); PrintWriter out=new PrintWriter(outputStream); int ans =TaskA.solve(0,in); out.println(ans); out.close(); } static class InputReader { public BufferedReader reader; public StringTokenizer tokenizer; public InputReader(InputStream stream) { reader = new BufferedReader(new InputStreamReader(stream), 32768); tokenizer = null; } public String next() { while (tokenizer == null || !tokenizer.hasMoreTokens()) { try { tokenizer = new StringTokenizer(reader.readLine()); } catch (IOException e) { throw new RuntimeException(e); } } return tokenizer.nextToken(); } public int nextInt() { return Integer.parseInt(next()); } public long nextLong() { return Long.parseLong(next()); } public double nextDouble() { return Double.parseDouble(next()); } } } class TaskA { public static int solve(int testNumber, Main.InputReader in) { int ans=0; String s=in.next(); if(s.contains("RRR")) ans=3; else if(s.contains("RR")) ans=2; else if(s.contains("R")) ans=1; return ans; } }
[ 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, 17, 41, 13, 17, 28, 13, 4, 18, 4, 18, 13, 30, 30, 14, 2, 13, 17, 30, 40, 13, 0, 13, 4, 18, 13, 13, 13, 30, 0, 13, 17, 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 ], [ 73, 11 ], [ 73, 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 ], [ 73, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 27, 31 ], [ 31, 32 ], [ 31, 33 ], [ 27, 34 ], [ 34, 35 ], [ 34, 36 ], [ 27, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 37, 44 ], [ 45, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 55, 59 ], [ 46, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 27, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 25, 68 ], [ 68, 69 ], [ 25, 70 ], [ 70, 71 ], [ 0, 72 ], [ 72, 73 ], [ 72, 74 ] ]
[ "import java.io.InputStream;\nimport java.io.PrintStream;\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n resolve(System.in, System.out);\n }\n\n static void resolve(InputStream is, PrintStream pw) {\n Scanner sc = new Scanner(is);\n int ans = 0;\n int current = 0;\n for(char c : sc.next().toCharArray()) {\n if (c == 'R') {\n current++;\n ans = Math.max(ans, current);\n } else {\n current = 0;\n }\n }\n pw.println(ans);\n }\n}", "import java.io.InputStream;", "InputStream", "java.io", "import java.io.PrintStream;", "PrintStream", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n resolve(System.in, System.out);\n }\n\n static void resolve(InputStream is, PrintStream pw) {\n Scanner sc = new Scanner(is);\n int ans = 0;\n int current = 0;\n for(char c : sc.next().toCharArray()) {\n if (c == 'R') {\n current++;\n ans = Math.max(ans, current);\n } else {\n current = 0;\n }\n }\n pw.println(ans);\n }\n}", "Main", "public static void main(String[] args) {\n resolve(System.in, System.out);\n }", "main", "{\n resolve(System.in, System.out);\n }", "resolve(System.in, System.out)", "resolve", "System.in", "System", "System.in", "System.out", "System", "System.out", "String[] args", "args", "static void resolve(InputStream is, PrintStream pw) {\n Scanner sc = new Scanner(is);\n int ans = 0;\n int current = 0;\n for(char c : sc.next().toCharArray()) {\n if (c == 'R') {\n current++;\n ans = Math.max(ans, current);\n } else {\n current = 0;\n }\n }\n pw.println(ans);\n }", "resolve", "{\n Scanner sc = new Scanner(is);\n int ans = 0;\n int current = 0;\n for(char c : sc.next().toCharArray()) {\n if (c == 'R') {\n current++;\n ans = Math.max(ans, current);\n } else {\n current = 0;\n }\n }\n pw.println(ans);\n }", "Scanner sc = new Scanner(is);", "sc", "new Scanner(is)", "int ans = 0;", "ans", "0", "int current = 0;", "current", "0", "for(char c : sc.next().toCharArray()) {\n if (c == 'R') {\n current++;\n ans = Math.max(ans, current);\n } else {\n current = 0;\n }\n }", "char c", "sc.next().toCharArray()", "sc.next().toCharArray", "sc.next()", "sc.next", "sc", "{\n if (c == 'R') {\n current++;\n ans = Math.max(ans, current);\n } else {\n current = 0;\n }\n }", "{\n if (c == 'R') {\n current++;\n ans = Math.max(ans, current);\n } else {\n current = 0;\n }\n }", "if (c == 'R') {\n current++;\n ans = Math.max(ans, current);\n } else {\n current = 0;\n }", "c == 'R'", "c", "'R'", "{\n current++;\n ans = Math.max(ans, current);\n }", "current++", "current", "ans = Math.max(ans, current)", "ans", "Math.max(ans, current)", "Math.max", "Math", "ans", "current", "{\n current = 0;\n }", "current = 0", "current", "0", "pw.println(ans)", "pw.println", "pw", "ans", "InputStream is", "is", "PrintStream pw", "pw", "public class Main {\n\n public static void main(String[] args) {\n resolve(System.in, System.out);\n }\n\n static void resolve(InputStream is, PrintStream pw) {\n Scanner sc = new Scanner(is);\n int ans = 0;\n int current = 0;\n for(char c : sc.next().toCharArray()) {\n if (c == 'R') {\n current++;\n ans = Math.max(ans, current);\n } else {\n current = 0;\n }\n }\n pw.println(ans);\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n resolve(System.in, System.out);\n }\n\n static void resolve(InputStream is, PrintStream pw) {\n Scanner sc = new Scanner(is);\n int ans = 0;\n int current = 0;\n for(char c : sc.next().toCharArray()) {\n if (c == 'R') {\n current++;\n ans = Math.max(ans, current);\n } else {\n current = 0;\n }\n }\n pw.println(ans);\n }\n}", "Main" ]
import java.io.InputStream; import java.io.PrintStream; import java.util.Scanner; public class Main { public static void main(String[] args) { resolve(System.in, System.out); } static void resolve(InputStream is, PrintStream pw) { Scanner sc = new Scanner(is); int ans = 0; int current = 0; for(char c : sc.next().toCharArray()) { if (c == 'R') { current++; ans = Math.max(ans, current); } else { current = 0; } } pw.println(ans); } }
[ 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, 4, 18, 13, 13, 13, 0, 13, 17, 4, 18, 18, 13, 13, 4, 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 ], [ 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 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 40, 44 ], [ 37, 45 ], [ 45, 46 ], [ 45, 47 ], [ 8, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 53, 57 ], [ 6, 58 ], [ 58, 59 ], [ 0, 60 ], [ 60, 61 ], [ 60, 62 ] ]
[ "import java.util.*;\n\npublic class Main {\n\n public static void main(String[] args) {\n // write your code here\n Scanner scanner = new Scanner(System.in);\n char[] s = scanner.next().toCharArray();\n int ans = 0;\n int count = 0;\n for (char c : s) {\n if (c == 'R') {\n count++;\n } else {\n ans = Math.max(ans, count);\n count = 0;\n }\n }\n System.out.println(Math.max(count, ans));\n }\n\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\n public static void main(String[] args) {\n // write your code here\n Scanner scanner = new Scanner(System.in);\n char[] s = scanner.next().toCharArray();\n int ans = 0;\n int count = 0;\n for (char c : s) {\n if (c == 'R') {\n count++;\n } else {\n ans = Math.max(ans, count);\n count = 0;\n }\n }\n System.out.println(Math.max(count, ans));\n }\n\n}", "Main", "public static void main(String[] args) {\n // write your code here\n Scanner scanner = new Scanner(System.in);\n char[] s = scanner.next().toCharArray();\n int ans = 0;\n int count = 0;\n for (char c : s) {\n if (c == 'R') {\n count++;\n } else {\n ans = Math.max(ans, count);\n count = 0;\n }\n }\n System.out.println(Math.max(count, ans));\n }", "main", "{\n // write your code here\n Scanner scanner = new Scanner(System.in);\n char[] s = scanner.next().toCharArray();\n int ans = 0;\n int count = 0;\n for (char c : s) {\n if (c == 'R') {\n count++;\n } else {\n ans = Math.max(ans, count);\n count = 0;\n }\n }\n System.out.println(Math.max(count, ans));\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 ans = 0;", "ans", "0", "int count = 0;", "count", "0", "for (char c : s) {\n if (c == 'R') {\n count++;\n } else {\n ans = Math.max(ans, count);\n count = 0;\n }\n }", "char c", "s", "{\n if (c == 'R') {\n count++;\n } else {\n ans = Math.max(ans, count);\n count = 0;\n }\n }", "{\n if (c == 'R') {\n count++;\n } else {\n ans = Math.max(ans, count);\n count = 0;\n }\n }", "if (c == 'R') {\n count++;\n } else {\n ans = Math.max(ans, count);\n count = 0;\n }", "c == 'R'", "c", "'R'", "{\n count++;\n }", "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", "System.out.println(Math.max(count, ans))", "System.out.println", "System.out", "System", "System.out", "Math.max(count, ans)", "Math.max", "Math", "count", "ans", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n // write your code here\n Scanner scanner = new Scanner(System.in);\n char[] s = scanner.next().toCharArray();\n int ans = 0;\n int count = 0;\n for (char c : s) {\n if (c == 'R') {\n count++;\n } else {\n ans = Math.max(ans, count);\n count = 0;\n }\n }\n System.out.println(Math.max(count, ans));\n }\n\n}", "public class Main {\n\n public static void main(String[] args) {\n // write your code here\n Scanner scanner = new Scanner(System.in);\n char[] s = scanner.next().toCharArray();\n int ans = 0;\n int count = 0;\n for (char c : s) {\n if (c == 'R') {\n count++;\n } else {\n ans = Math.max(ans, count);\n count = 0;\n }\n }\n System.out.println(Math.max(count, ans));\n }\n\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { // write your code here Scanner scanner = new Scanner(System.in); char[] s = scanner.next().toCharArray(); int ans = 0; int count = 0; for (char c : s) { if (c == 'R') { count++; } else { ans = Math.max(ans, count); count = 0; } } System.out.println(Math.max(count, 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, 17, 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 ], [ 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 ], [ 36, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 35, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 52, 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.*;\npublic class Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n int count = 0;\n int ans = 0;\n\n for(int i=0 ; i<3 ; i++){\n if(s.charAt(i) == 'R'){\n count++;\n }else{\n count = 0;\n }\n ans = Math.max(count,ans);\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 count = 0;\n int ans = 0;\n\n for(int i=0 ; i<3 ; i++){\n if(s.charAt(i) == 'R'){\n count++;\n }else{\n count = 0;\n }\n ans = Math.max(count,ans);\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 count = 0;\n int ans = 0;\n\n for(int i=0 ; i<3 ; i++){\n if(s.charAt(i) == 'R'){\n count++;\n }else{\n count = 0;\n }\n ans = Math.max(count,ans);\n }\n System.out.println(ans);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n int count = 0;\n int ans = 0;\n\n for(int i=0 ; i<3 ; i++){\n if(s.charAt(i) == 'R'){\n count++;\n }else{\n count = 0;\n }\n ans = Math.max(count,ans);\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 count = 0;", "count", "0", "int ans = 0;", "ans", "0", "for(int i=0 ; i<3 ; i++){\n if(s.charAt(i) == 'R'){\n count++;\n }else{\n count = 0;\n }\n ans = Math.max(count,ans);\n }", "int i=0 ;", "int i=0 ;", "i", "0", "i<3", "i", "3", "i++", "i++", "i", "{\n if(s.charAt(i) == 'R'){\n count++;\n }else{\n count = 0;\n }\n ans = Math.max(count,ans);\n }", "{\n if(s.charAt(i) == 'R'){\n count++;\n }else{\n count = 0;\n }\n ans = Math.max(count,ans);\n }", "if(s.charAt(i) == 'R'){\n count++;\n }else{\n count = 0;\n }", "s.charAt(i) == 'R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "{\n count++;\n }", "count++", "count", "{\n count = 0;\n }", "count = 0", "count", "0", "ans = Math.max(count,ans)", "ans", "Math.max(count,ans)", "Math.max", "Math", "count", "ans", "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 count = 0;\n int ans = 0;\n\n for(int i=0 ; i<3 ; i++){\n if(s.charAt(i) == 'R'){\n count++;\n }else{\n count = 0;\n }\n ans = Math.max(count,ans);\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 count = 0;\n int ans = 0;\n\n for(int i=0 ; i<3 ; i++){\n if(s.charAt(i) == 'R'){\n count++;\n }else{\n count = 0;\n }\n ans = Math.max(count,ans);\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 count = 0; int ans = 0; for(int i=0 ; i<3 ; i++){ if(s.charAt(i) == 'R'){ count++; }else{ count = 0; } ans = Math.max(count,ans); } System.out.println(ans); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 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, 4, 18, 13, 2, 4, 18, 13, 13, 13, 17, 4, 18, 13, 23, 13, 6, 13, 41, 13, 20, 17, 41, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 18, 13, 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, 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, 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, 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, 6, 13, 41, 13, 12, 13, 30, 0, 18, 36, 13, 18, 13, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 4, 18, 13, 4, 18, 13, 13, 23, 13, 12, 13, 30, 4, 13, 13, 4, 18, 13, 17, 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 ], [ 448, 11 ], [ 448, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 21, 23 ], [ 14, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 14, 29 ], [ 29, 30 ], [ 29, 31 ], [ 14, 32 ], [ 32, 33 ], [ 32, 34 ], [ 14, 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 ], [ 58, 59 ], [ 50, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 63, 67 ], [ 60, 68 ], [ 68, 69 ], [ 68, 70 ], [ 14, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 75, 79 ], [ 74, 80 ], [ 14, 81 ], [ 81, 82 ], [ 82, 83 ], [ 12, 84 ], [ 84, 85 ], [ 448, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 92 ], [ 92, 93 ], [ 86, 94 ], [ 94, 95 ], [ 86, 96 ], [ 96, 97 ], [ 86, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 103, 105 ], [ 86, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 109, 113 ], [ 113, 114 ], [ 108, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 115, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 119, 123 ], [ 123, 124 ], [ 123, 125 ], [ 125, 126 ], [ 126, 127 ], [ 125, 128 ], [ 119, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 129, 133 ], [ 133, 134 ], [ 134, 135 ], [ 108, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 139, 140 ], [ 86, 141 ], [ 141, 142 ], [ 141, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 143, 147 ], [ 147, 148 ], [ 147, 149 ], [ 149, 150 ], [ 143, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 151, 155 ], [ 155, 156 ], [ 155, 157 ], [ 157, 158 ], [ 143, 159 ], [ 159, 160 ], [ 159, 161 ], [ 143, 162 ], [ 162, 163 ], [ 163, 164 ], [ 163, 165 ], [ 162, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 169, 170 ], [ 166, 171 ], [ 171, 172 ], [ 171, 173 ], [ 173, 174 ], [ 143, 175 ], [ 175, 176 ], [ 176, 177 ], [ 177, 178 ], [ 177, 179 ], [ 175, 180 ], [ 180, 181 ], [ 181, 182 ], [ 182, 183 ], [ 183, 184 ], [ 183, 185 ], [ 182, 186 ], [ 186, 187 ], [ 186, 188 ], [ 181, 189 ], [ 189, 190 ], [ 190, 191 ], [ 190, 192 ], [ 189, 193 ], [ 193, 194 ], [ 193, 195 ], [ 195, 196 ], [ 195, 197 ], [ 189, 198 ], [ 198, 199 ], [ 198, 200 ], [ 200, 201 ], [ 181, 202 ], [ 202, 203 ], [ 143, 204 ], [ 204, 205 ], [ 205, 206 ], [ 205, 207 ], [ 86, 208 ], [ 208, 209 ], [ 208, 210 ], [ 210, 211 ], [ 211, 212 ], [ 211, 213 ], [ 210, 214 ], [ 214, 215 ], [ 214, 216 ], [ 216, 217 ], [ 210, 218 ], [ 218, 219 ], [ 219, 220 ], [ 219, 221 ], [ 218, 222 ], [ 222, 223 ], [ 222, 224 ], [ 224, 225 ], [ 210, 226 ], [ 226, 227 ], [ 226, 228 ], [ 210, 229 ], [ 229, 230 ], [ 230, 231 ], [ 230, 232 ], [ 229, 233 ], [ 233, 234 ], [ 234, 235 ], [ 234, 236 ], [ 236, 237 ], [ 233, 238 ], [ 238, 239 ], [ 238, 240 ], [ 240, 241 ], [ 210, 242 ], [ 242, 243 ], [ 243, 244 ], [ 244, 245 ], [ 245, 246 ], [ 245, 247 ], [ 243, 248 ], [ 248, 249 ], [ 248, 250 ], [ 242, 251 ], [ 251, 252 ], [ 252, 253 ], [ 253, 254 ], [ 254, 255 ], [ 254, 256 ], [ 253, 257 ], [ 257, 258 ], [ 257, 259 ], [ 252, 260 ], [ 260, 261 ], [ 261, 262 ], [ 261, 263 ], [ 260, 264 ], [ 264, 265 ], [ 264, 266 ], [ 266, 267 ], [ 266, 268 ], [ 260, 269 ], [ 269, 270 ], [ 269, 271 ], [ 271, 272 ], [ 252, 273 ], [ 273, 274 ], [ 210, 275 ], [ 275, 276 ], [ 276, 277 ], [ 276, 278 ], [ 275, 279 ], [ 279, 280 ], [ 280, 281 ], [ 280, 282 ], [ 282, 283 ], [ 279, 284 ], [ 284, 285 ], [ 284, 286 ], [ 279, 287 ], [ 287, 288 ], [ 288, 289 ], [ 289, 290 ], [ 289, 291 ], [ 287, 292 ], [ 292, 293 ], [ 293, 294 ], [ 294, 295 ], [ 295, 296 ], [ 295, 297 ], [ 294, 298 ], [ 298, 299 ], [ 298, 300 ], [ 293, 301 ], [ 301, 302 ], [ 302, 303 ], [ 302, 304 ], [ 301, 305 ], [ 305, 306 ], [ 305, 307 ], [ 307, 308 ], [ 308, 309 ], [ 308, 310 ], [ 307, 311 ], [ 301, 312 ], [ 312, 313 ], [ 312, 314 ], [ 314, 315 ], [ 293, 316 ], [ 316, 317 ], [ 210, 318 ], [ 318, 319 ], [ 319, 320 ], [ 319, 321 ], [ 86, 322 ], [ 322, 323 ], [ 322, 324 ], [ 324, 325 ], [ 325, 326 ], [ 325, 327 ], [ 324, 328 ], [ 328, 329 ], [ 328, 330 ], [ 330, 331 ], [ 324, 332 ], [ 332, 333 ], [ 333, 334 ], [ 333, 335 ], [ 332, 336 ], [ 336, 337 ], [ 336, 338 ], [ 338, 339 ], [ 324, 340 ], [ 340, 341 ], [ 341, 342 ], [ 342, 343 ], [ 342, 344 ], [ 340, 345 ], [ 345, 346 ], [ 346, 347 ], [ 347, 348 ], [ 346, 349 ], [ 345, 350 ], [ 350, 351 ], [ 350, 352 ], [ 352, 353 ], [ 324, 354 ], [ 354, 355 ], [ 355, 356 ], [ 356, 357 ], [ 86, 358 ], [ 358, 359 ], [ 358, 360 ], [ 360, 361 ], [ 361, 362 ], [ 365, 363 ], [ 375, 364 ], [ 372, 365 ], [ 365, 366 ], [ 366, 367 ], [ 366, 368 ], [ 365, 369 ], [ 369, 370 ], [ 369, 371 ], [ 372, 372 ], [ 372, 373 ], [ 372, 374 ], [ 375, 375 ], [ 375, 376 ], [ 375, 377 ], [ 365, 378 ], [ 378, 379 ], [ 378, 380 ], [ 380, 381 ], [ 361, 382 ], [ 382, 383 ], [ 360, 384 ], [ 384, 385 ], [ 358, 386 ], [ 386, 387 ], [ 448, 388 ], [ 388, 389 ], [ 388, 390 ], [ 390, 391 ], [ 388, 392 ], [ 392, 393 ], [ 392, 394 ], [ 394, 395 ], [ 395, 396 ], [ 396, 397 ], [ 396, 398 ], [ 395, 399 ], [ 399, 400 ], [ 399, 401 ], [ 388, 402 ], [ 402, 403 ], [ 402, 404 ], [ 404, 405 ], [ 405, 406 ], [ 406, 407 ], [ 407, 408 ], [ 407, 409 ], [ 405, 410 ], [ 410, 411 ], [ 410, 412 ], [ 412, 413 ], [ 413, 414 ], [ 405, 415 ], [ 415, 416 ], [ 416, 417 ], [ 405, 418 ], [ 419, 419 ], [ 419, 420 ], [ 420, 421 ], [ 421, 422 ], [ 420, 423 ], [ 423, 424 ], [ 424, 425 ], [ 423, 426 ], [ 402, 427 ], [ 427, 428 ], [ 388, 429 ], [ 429, 430 ], [ 429, 431 ], [ 431, 432 ], [ 432, 433 ], [ 432, 434 ], [ 431, 435 ], [ 435, 436 ], [ 436, 437 ], [ 435, 438 ], [ 429, 439 ], [ 439, 440 ], [ 388, 441 ], [ 441, 442 ], [ 441, 443 ], [ 443, 444 ], [ 444, 445 ], [ 445, 446 ], [ 0, 447 ], [ 447, 448 ], [ 447, 449 ] ]
[ "//package com.company;\n\nimport java.io.*;\nimport java.util.*;\nimport java.util.regex.Matcher;\n\n//public class RainySeason {\n public class Main {\n public static void main(String[] args) throws IOException {\n Sc sc = new Sc();\n Print out = new Print();\n BufferedWriter close = new BufferedWriter(new OutputStreamWriter(System.out));\n String str=sc.nextString();\n int rained=0,contuously=0;\n for (int i = 0; i < str.length(); i++) {\n if(str.charAt(i)=='R'){\n rained++;\n }else{\n contuously=Math.max(contuously,rained);\n rained=0;\n }\n }\n out.println((int)Math.max(contuously,rained)+\"\");\n close.close();\n }\n\n static class Sc {\n private byte[] buf = new byte[1024];\n private int index;\n private InputStream in;\n private int total;\n\n public Sc() {\n in = System.in;\n }\n\n public int read() throws IOException {\n if (total < 0)\n throw new InputMismatchException();\n if (index >= total) {\n index = 0;\n total = in.read(buf);\n if (total <= 0)\n return -1;\n }\n return buf[index++];\n }\n\n public int nextInt() throws IOException {\n int 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 } else throw new InputMismatchException();\n }\n return neg * integer;\n }\n\n public double nextDouble() throws IOException {\n double 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 } else throw new InputMismatchException();\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 } else throw new InputMismatchException();\n }\n }\n return doub * neg;\n }\n\n public String nextString() throws IOException {\n 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\n private boolean isWhiteSpace(int n) {\n if (n == ' ' || n == '\\n' || n == '\\r' || n == '\\t' || n == -1)\n return true;\n return false;\n }\n }\n\n static class Print {\n private final OutputStream out;\n\n public Print() {\n this.out = System.out;\n }\n\n public void print(String str) throws IOException {\n for (int i = 0; i < str.length(); i++) {\n out.write(str.charAt(i));\n }\n }\n\n public void println(String str) throws IOException {\n print(str);\n out.write('\\n');\n }\n\n public void close() throws IOException {\n out.close();\n }\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "import java.util.regex.Matcher;", "Matcher", "java.util.regex", " public class Main {\n public static void main(String[] args) throws IOException {\n Sc sc = new Sc();\n Print out = new Print();\n BufferedWriter close = new BufferedWriter(new OutputStreamWriter(System.out));\n String str=sc.nextString();\n int rained=0,contuously=0;\n for (int i = 0; i < str.length(); i++) {\n if(str.charAt(i)=='R'){\n rained++;\n }else{\n contuously=Math.max(contuously,rained);\n rained=0;\n }\n }\n out.println((int)Math.max(contuously,rained)+\"\");\n close.close();\n }\n\n static class Sc {\n private byte[] buf = new byte[1024];\n private int index;\n private InputStream in;\n private int total;\n\n public Sc() {\n in = System.in;\n }\n\n public int read() throws IOException {\n if (total < 0)\n throw new InputMismatchException();\n if (index >= total) {\n index = 0;\n total = in.read(buf);\n if (total <= 0)\n return -1;\n }\n return buf[index++];\n }\n\n public int nextInt() throws IOException {\n int 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 } else throw new InputMismatchException();\n }\n return neg * integer;\n }\n\n public double nextDouble() throws IOException {\n double 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 } else throw new InputMismatchException();\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 } else throw new InputMismatchException();\n }\n }\n return doub * neg;\n }\n\n public String nextString() throws IOException {\n 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\n private boolean isWhiteSpace(int n) {\n if (n == ' ' || n == '\\n' || n == '\\r' || n == '\\t' || n == -1)\n return true;\n return false;\n }\n }\n\n static class Print {\n private final OutputStream out;\n\n public Print() {\n this.out = System.out;\n }\n\n public void print(String str) throws IOException {\n for (int i = 0; i < str.length(); i++) {\n out.write(str.charAt(i));\n }\n }\n\n public void println(String str) throws IOException {\n print(str);\n out.write('\\n');\n }\n\n public void close() throws IOException {\n out.close();\n }\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n Sc sc = new Sc();\n Print out = new Print();\n BufferedWriter close = new BufferedWriter(new OutputStreamWriter(System.out));\n String str=sc.nextString();\n int rained=0,contuously=0;\n for (int i = 0; i < str.length(); i++) {\n if(str.charAt(i)=='R'){\n rained++;\n }else{\n contuously=Math.max(contuously,rained);\n rained=0;\n }\n }\n out.println((int)Math.max(contuously,rained)+\"\");\n close.close();\n }", "main", "{\n Sc sc = new Sc();\n Print out = new Print();\n BufferedWriter close = new BufferedWriter(new OutputStreamWriter(System.out));\n String str=sc.nextString();\n int rained=0,contuously=0;\n for (int i = 0; i < str.length(); i++) {\n if(str.charAt(i)=='R'){\n rained++;\n }else{\n contuously=Math.max(contuously,rained);\n rained=0;\n }\n }\n out.println((int)Math.max(contuously,rained)+\"\");\n close.close();\n }", "Sc sc = new Sc();", "sc", "new Sc()", "Print out = new Print();", "out", "new Print()", "BufferedWriter close = new BufferedWriter(new OutputStreamWriter(System.out));", "close", "new BufferedWriter(new OutputStreamWriter(System.out))", "String str=sc.nextString();", "str", "sc.nextString()", "sc.nextString", "sc", "int rained=0", "rained", "0", "contuously=0;", "contuously", "0", "for (int i = 0; i < str.length(); i++) {\n if(str.charAt(i)=='R'){\n rained++;\n }else{\n contuously=Math.max(contuously,rained);\n rained=0;\n }\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 rained++;\n }else{\n contuously=Math.max(contuously,rained);\n rained=0;\n }\n }", "{\n if(str.charAt(i)=='R'){\n rained++;\n }else{\n contuously=Math.max(contuously,rained);\n rained=0;\n }\n }", "if(str.charAt(i)=='R'){\n rained++;\n }else{\n contuously=Math.max(contuously,rained);\n rained=0;\n }", "str.charAt(i)=='R'", "str.charAt(i)", "str.charAt", "str", "i", "'R'", "{\n rained++;\n }", "rained++", "rained", "{\n contuously=Math.max(contuously,rained);\n rained=0;\n }", "contuously=Math.max(contuously,rained)", "contuously", "Math.max(contuously,rained)", "Math.max", "Math", "contuously", "rained", "rained=0", "rained", "0", "out.println((int)Math.max(contuously,rained)+\"\")", "out.println", "out", "(int)Math.max(contuously,rained)+\"\"", "(int)Math.max(contuously,rained)", "Math.max", "Math", "contuously", "rained", "\"\"", "close.close()", "close.close", "close", "String[] args", "args", "static class Sc {\n private byte[] buf = new byte[1024];\n private int index;\n private InputStream in;\n private int total;\n\n public Sc() {\n in = System.in;\n }\n\n public int read() throws IOException {\n if (total < 0)\n throw new InputMismatchException();\n if (index >= total) {\n index = 0;\n total = in.read(buf);\n if (total <= 0)\n return -1;\n }\n return buf[index++];\n }\n\n public int nextInt() throws IOException {\n int 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 } else throw new InputMismatchException();\n }\n return neg * integer;\n }\n\n public double nextDouble() throws IOException {\n double 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 } else throw new InputMismatchException();\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 } else throw new InputMismatchException();\n }\n }\n return doub * neg;\n }\n\n public String nextString() throws IOException {\n 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\n private boolean isWhiteSpace(int n) {\n if (n == ' ' || n == '\\n' || n == '\\r' || n == '\\t' || n == -1)\n return true;\n return false;\n }\n }", "Sc", "private byte[] buf = new byte[1024];", "buf", "new byte[1024]", "1024", "private int index;", "index", "private InputStream in;", "in", "private int total;", "total", "public Sc() {\n in = System.in;\n }", "Sc", "{\n in = System.in;\n }", "in = System.in", "in", "System.in", "System", "System.in", "public int read() throws IOException {\n if (total < 0)\n throw new InputMismatchException();\n if (index >= total) {\n index = 0;\n total = in.read(buf);\n if (total <= 0)\n return -1;\n }\n return buf[index++];\n }", "read", "{\n if (total < 0)\n throw new InputMismatchException();\n if (index >= total) {\n index = 0;\n total = in.read(buf);\n if (total <= 0)\n return -1;\n }\n return buf[index++];\n }", "if (total < 0)\n throw new InputMismatchException();", "total < 0", "total", "0", "throw new InputMismatchException();", "new InputMismatchException()", "if (index >= total) {\n index = 0;\n total = in.read(buf);\n if (total <= 0)\n return -1;\n }", "index >= total", "index", "total", "{\n index = 0;\n total = in.read(buf);\n if (total <= 0)\n return -1;\n }", "index = 0", "index", "0", "total = in.read(buf)", "total", "in.read(buf)", "in.read", "in", "buf", "if (total <= 0)\n return -1;", "total <= 0", "total", "0", "return -1;", "-1", "1", "return buf[index++];", "buf[index++]", "buf", "index++", "index", "public int nextInt() throws IOException {\n int 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 } else throw new InputMismatchException();\n }\n return neg * integer;\n }", "nextInt", "{\n int 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 } 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 } 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 } else throw new InputMismatchException();\n }", "if (n >= '0' && n <= '9') {\n integer *= 10;\n integer += n - '0';\n n = read();\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", "public double nextDouble() throws IOException {\n double 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 } else throw new InputMismatchException();\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 } else throw new InputMismatchException();\n }\n }\n return doub * neg;\n }", "nextDouble", "{\n double 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 } else throw new InputMismatchException();\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 } 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 } 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 } else throw new InputMismatchException();\n }", "if (n >= '0' && n <= '9') {\n doub *= 10;\n doub += n - '0';\n n = read();\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 } 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 } 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 } 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 } else throw new InputMismatchException();\n }", "if (n >= '0' && n <= '9') {\n temp /= 10;\n doub += (n - '0') * temp;\n n = read();\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", "public String nextString() throws IOException {\n 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 }", "nextString", "{\n 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", "private 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", "static class Print {\n private final OutputStream out;\n\n public Print() {\n this.out = System.out;\n }\n\n public void print(String str) throws IOException {\n for (int i = 0; i < str.length(); i++) {\n out.write(str.charAt(i));\n }\n }\n\n public void println(String str) throws IOException {\n print(str);\n out.write('\\n');\n }\n\n public void close() throws IOException {\n out.close();\n }\n }", "Print", "private final OutputStream out;", "out", "public Print() {\n this.out = System.out;\n }", "Print", "{\n this.out = System.out;\n }", "this.out = System.out", "this.out", "this", "this.out", "System.out", "System", "System.out", "public void print(String str) throws IOException {\n for (int i = 0; i < str.length(); i++) {\n out.write(str.charAt(i));\n }\n }", "print", "{\n for (int i = 0; i < str.length(); i++) {\n out.write(str.charAt(i));\n }\n }", "for (int i = 0; i < str.length(); i++) {\n out.write(str.charAt(i));\n }", "int i = 0;", "int i = 0;", "i", "0", "i < str.length()", "i", "str.length()", "str.length", "str", "i++", "i++", "i", "{\n out.write(str.charAt(i));\n }", "{\n out.write(str.charAt(i));\n }", "out.write(str.charAt(i))", "out.write", "out", "str.charAt(i)", "str.charAt", "str", "i", "String str", "str", "public void println(String str) throws IOException {\n print(str);\n out.write('\\n');\n }", "println", "{\n print(str);\n out.write('\\n');\n }", "print(str)", "print", "str", "out.write('\\n')", "out.write", "out", "'\\n'", "String str", "str", "public void close() throws IOException {\n out.close();\n }", "close", "{\n out.close();\n }", "out.close()", "out.close", "out", " public class Main {\n public static void main(String[] args) throws IOException {\n Sc sc = new Sc();\n Print out = new Print();\n BufferedWriter close = new BufferedWriter(new OutputStreamWriter(System.out));\n String str=sc.nextString();\n int rained=0,contuously=0;\n for (int i = 0; i < str.length(); i++) {\n if(str.charAt(i)=='R'){\n rained++;\n }else{\n contuously=Math.max(contuously,rained);\n rained=0;\n }\n }\n out.println((int)Math.max(contuously,rained)+\"\");\n close.close();\n }\n\n static class Sc {\n private byte[] buf = new byte[1024];\n private int index;\n private InputStream in;\n private int total;\n\n public Sc() {\n in = System.in;\n }\n\n public int read() throws IOException {\n if (total < 0)\n throw new InputMismatchException();\n if (index >= total) {\n index = 0;\n total = in.read(buf);\n if (total <= 0)\n return -1;\n }\n return buf[index++];\n }\n\n public int nextInt() throws IOException {\n int 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 } else throw new InputMismatchException();\n }\n return neg * integer;\n }\n\n public double nextDouble() throws IOException {\n double 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 } else throw new InputMismatchException();\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 } else throw new InputMismatchException();\n }\n }\n return doub * neg;\n }\n\n public String nextString() throws IOException {\n 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\n private boolean isWhiteSpace(int n) {\n if (n == ' ' || n == '\\n' || n == '\\r' || n == '\\t' || n == -1)\n return true;\n return false;\n }\n }\n\n static class Print {\n private final OutputStream out;\n\n public Print() {\n this.out = System.out;\n }\n\n public void print(String str) throws IOException {\n for (int i = 0; i < str.length(); i++) {\n out.write(str.charAt(i));\n }\n }\n\n public void println(String str) throws IOException {\n print(str);\n out.write('\\n');\n }\n\n public void close() throws IOException {\n out.close();\n }\n }\n}", " public class Main {\n public static void main(String[] args) throws IOException {\n Sc sc = new Sc();\n Print out = new Print();\n BufferedWriter close = new BufferedWriter(new OutputStreamWriter(System.out));\n String str=sc.nextString();\n int rained=0,contuously=0;\n for (int i = 0; i < str.length(); i++) {\n if(str.charAt(i)=='R'){\n rained++;\n }else{\n contuously=Math.max(contuously,rained);\n rained=0;\n }\n }\n out.println((int)Math.max(contuously,rained)+\"\");\n close.close();\n }\n\n static class Sc {\n private byte[] buf = new byte[1024];\n private int index;\n private InputStream in;\n private int total;\n\n public Sc() {\n in = System.in;\n }\n\n public int read() throws IOException {\n if (total < 0)\n throw new InputMismatchException();\n if (index >= total) {\n index = 0;\n total = in.read(buf);\n if (total <= 0)\n return -1;\n }\n return buf[index++];\n }\n\n public int nextInt() throws IOException {\n int 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 } else throw new InputMismatchException();\n }\n return neg * integer;\n }\n\n public double nextDouble() throws IOException {\n double 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 } else throw new InputMismatchException();\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 } else throw new InputMismatchException();\n }\n }\n return doub * neg;\n }\n\n public String nextString() throws IOException {\n 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\n private boolean isWhiteSpace(int n) {\n if (n == ' ' || n == '\\n' || n == '\\r' || n == '\\t' || n == -1)\n return true;\n return false;\n }\n }\n\n static class Print {\n private final OutputStream out;\n\n public Print() {\n this.out = System.out;\n }\n\n public void print(String str) throws IOException {\n for (int i = 0; i < str.length(); i++) {\n out.write(str.charAt(i));\n }\n }\n\n public void println(String str) throws IOException {\n print(str);\n out.write('\\n');\n }\n\n public void close() throws IOException {\n out.close();\n }\n }\n}", "Main" ]
//package com.company; import java.io.*; import java.util.*; import java.util.regex.Matcher; //public class RainySeason { public class Main { public static void main(String[] args) throws IOException { Sc sc = new Sc(); Print out = new Print(); BufferedWriter close = new BufferedWriter(new OutputStreamWriter(System.out)); String str=sc.nextString(); int rained=0,contuously=0; for (int i = 0; i < str.length(); i++) { if(str.charAt(i)=='R'){ rained++; }else{ contuously=Math.max(contuously,rained); rained=0; } } out.println((int)Math.max(contuously,rained)+""); close.close(); } static class Sc { private byte[] buf = new byte[1024]; private int index; private InputStream in; private int total; public Sc() { in = System.in; } public int read() throws IOException { if (total < 0) throw new InputMismatchException(); if (index >= total) { index = 0; total = in.read(buf); if (total <= 0) return -1; } return buf[index++]; } public int nextInt() 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; } public double nextDouble() 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; } public String nextString() 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(); } private boolean isWhiteSpace(int n) { if (n == ' ' || n == '\n' || n == '\r' || n == '\t' || n == -1) return true; return false; } } static class Print { private final OutputStream out; public Print() { this.out = System.out; } public void print(String str) throws IOException { for (int i = 0; i < str.length(); i++) { out.write(str.charAt(i)); } } public void println(String str) throws IOException { print(str); out.write('\n'); } public void close() throws IOException { out.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, 34, 17, 1, 0, 13, 17, 3, 34, 17, 1, 0, 13, 17, 3, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 24, 28 ], [ 20, 29 ], [ 29, 30 ], [ 29, 31 ], [ 20, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 20, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 8, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 46, 51 ], [ 6, 52 ], [ 52, 53 ] ]
[ "import java.util.*;\n\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n int ans = 1;\n switch (s) {\n case \"RRR\":\n ans = 3;\n break;\n case \"RRS\":\n case \"SRR\":\n ans = 2;\n break;\n case \"SSS\":\n ans = 0;\n break;\n }\n System.out.println(ans);\n }\n}", "import java.util.*;", "util.*", "java", "class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n int ans = 1;\n switch (s) {\n case \"RRR\":\n ans = 3;\n break;\n case \"RRS\":\n case \"SRR\":\n ans = 2;\n break;\n case \"SSS\":\n ans = 0;\n break;\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 = 1;\n switch (s) {\n case \"RRR\":\n ans = 3;\n break;\n case \"RRS\":\n case \"SRR\":\n ans = 2;\n break;\n case \"SSS\":\n ans = 0;\n break;\n }\n System.out.println(ans);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n int ans = 1;\n switch (s) {\n case \"RRR\":\n ans = 3;\n break;\n case \"RRS\":\n case \"SRR\":\n ans = 2;\n break;\n case \"SSS\":\n ans = 0;\n break;\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 = 1;", "ans", "1", "switch (s) {\n case \"RRR\":\n ans = 3;\n break;\n case \"RRS\":\n case \"SRR\":\n ans = 2;\n break;\n case \"SSS\":\n ans = 0;\n break;\n }", "s", "case \"RRR\":", "\"RRR\"", "case \"RRR\":", "ans = 3", "ans", "3", "break;", "case \"RRS\":", "\"RRS\"", "case \"RRS\":", "case \"SRR\":", "\"SRR\"", "case \"SRR\":", "ans = 2", "ans", "2", "break;", "case \"SSS\":", "\"SSS\"", "case \"SSS\":", "ans = 0", "ans", "0", "break;", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args" ]
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); int ans = 1; switch (s) { case "RRR": ans = 3; break; case "RRS": case "SRR": ans = 2; break; case "SSS": ans = 0; break; } System.out.println(ans); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 17, 28, 13, 13, 30, 30, 0, 13, 4, 18, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 48, 5 ], [ 48, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 16, 21 ], [ 10, 22 ], [ 22, 23 ], [ 22, 24 ], [ 10, 25 ], [ 25, 26 ], [ 25, 27 ], [ 25, 28 ], [ 29, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 35, 36 ], [ 36, 37 ], [ 32, 38 ], [ 10, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 6, 45 ], [ 45, 46 ], [ 0, 47 ], [ 47, 48 ], [ 47, 49 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n try (Scanner sc = new Scanner(System.in)) {\n String[] s = sc.next().split(\"S\");\n int max = 0;\n for (String str : s) {\n max = Math.max(str.length(), max);\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 try (Scanner sc = new Scanner(System.in)) {\n String[] s = sc.next().split(\"S\");\n int max = 0;\n for (String str : s) {\n max = Math.max(str.length(), max);\n }\n System.out.println(max);\n }\n }\n}", "Main", "public static void main(String[] args) {\n try (Scanner sc = new Scanner(System.in)) {\n String[] s = sc.next().split(\"S\");\n int max = 0;\n for (String str : s) {\n max = Math.max(str.length(), max);\n }\n System.out.println(max);\n }\n }", "main", "{\n try (Scanner sc = new Scanner(System.in)) {\n String[] s = sc.next().split(\"S\");\n int max = 0;\n for (String str : s) {\n max = Math.max(str.length(), max);\n }\n System.out.println(max);\n }\n }", "try (Scanner sc = new Scanner(System.in)) {\n String[] s = sc.next().split(\"S\");\n int max = 0;\n for (String str : s) {\n max = Math.max(str.length(), max);\n }\n System.out.println(max);\n }", "{\n String[] s = sc.next().split(\"S\");\n int max = 0;\n for (String str : s) {\n max = Math.max(str.length(), max);\n }\n System.out.println(max);\n }", "Scanner sc = new Scanner(System.in)", "Scanner sc = new Scanner(System.in)", "new Scanner(System.in)", "String[] s = sc.next().split(\"S\");", "s", "sc.next().split(\"S\")", "sc.next().split", "sc.next()", "sc.next", "sc", "\"S\"", "int max = 0;", "max", "0", "for (String str : s) {\n max = Math.max(str.length(), max);\n }", "String str", "s", "{\n max = Math.max(str.length(), max);\n }", "{\n max = Math.max(str.length(), max);\n }", "max = Math.max(str.length(), max)", "max", "Math.max(str.length(), max)", "Math.max", "Math", "str.length()", "str.length", "str", "max", "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 try (Scanner sc = new Scanner(System.in)) {\n String[] s = sc.next().split(\"S\");\n int max = 0;\n for (String str : s) {\n max = Math.max(str.length(), max);\n }\n System.out.println(max);\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n try (Scanner sc = new Scanner(System.in)) {\n String[] s = sc.next().split(\"S\");\n int max = 0;\n for (String str : s) {\n max = Math.max(str.length(), max);\n }\n System.out.println(max);\n }\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { try (Scanner sc = new Scanner(System.in)) { String[] s = sc.next().split("S"); int max = 0; for (String str : s) { max = Math.max(str.length(), max); } System.out.println(max); } } }
[ 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, 0, 13, 17, 14, 2, 4, 18, 13, 13, 17, 30, 40, 13, 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 ], [ 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 ], [ 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 ], [ 44, 46 ], [ 36, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 48, 53 ], [ 47, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 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.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n String s = sc.next();\n int max = 0;\n int count = 0;\n for(int i=0; i<3; i++){\n if(s.charAt(i) == 'S'){\n count = 0;\n }\n else if(s.charAt(i) == 'R'){\n count++;\n if(max < count){\n max = count;\n }\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 String s = sc.next();\n int max = 0;\n int count = 0;\n for(int i=0; i<3; i++){\n if(s.charAt(i) == 'S'){\n count = 0;\n }\n else if(s.charAt(i) == 'R'){\n count++;\n if(max < count){\n max = count;\n }\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 String s = sc.next();\n int max = 0;\n int count = 0;\n for(int i=0; i<3; i++){\n if(s.charAt(i) == 'S'){\n count = 0;\n }\n else if(s.charAt(i) == 'R'){\n count++;\n if(max < count){\n max = count;\n }\n }\n }\n System.out.println(max);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n\n String s = sc.next();\n int max = 0;\n int count = 0;\n for(int i=0; i<3; i++){\n if(s.charAt(i) == 'S'){\n count = 0;\n }\n else if(s.charAt(i) == 'R'){\n count++;\n if(max < count){\n max = count;\n }\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 count = 0;", "count", "0", "for(int i=0; i<3; i++){\n if(s.charAt(i) == 'S'){\n count = 0;\n }\n else if(s.charAt(i) == 'R'){\n count++;\n if(max < count){\n max = count;\n }\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<3", "i", "3", "i++", "i++", "i", "{\n if(s.charAt(i) == 'S'){\n count = 0;\n }\n else if(s.charAt(i) == 'R'){\n count++;\n if(max < count){\n max = count;\n }\n }\n }", "{\n if(s.charAt(i) == 'S'){\n count = 0;\n }\n else if(s.charAt(i) == 'R'){\n count++;\n if(max < count){\n max = count;\n }\n }\n }", "if(s.charAt(i) == 'S'){\n count = 0;\n }\n else if(s.charAt(i) == 'R'){\n count++;\n if(max < count){\n max = count;\n }\n }", "s.charAt(i) == 'S'", "s.charAt(i)", "s.charAt", "s", "i", "'S'", "{\n count = 0;\n }", "count = 0", "count", "0", "if(s.charAt(i) == 'R'){\n count++;\n if(max < count){\n max = count;\n }\n }", "s.charAt(i) == 'R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "{\n count++;\n if(max < count){\n max = count;\n }\n }", "count++", "count", "if(max < count){\n max = count;\n }", "max < count", "max", "count", "{\n max = count;\n }", "max = count", "max", "count", "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 String s = sc.next();\n int max = 0;\n int count = 0;\n for(int i=0; i<3; i++){\n if(s.charAt(i) == 'S'){\n count = 0;\n }\n else if(s.charAt(i) == 'R'){\n count++;\n if(max < count){\n max = count;\n }\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 String s = sc.next();\n int max = 0;\n int count = 0;\n for(int i=0; i<3; i++){\n if(s.charAt(i) == 'S'){\n count = 0;\n }\n else if(s.charAt(i) == 'R'){\n count++;\n if(max < count){\n max = count;\n }\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 count = 0; for(int i=0; i<3; i++){ if(s.charAt(i) == 'S'){ count = 0; } else if(s.charAt(i) == 'R'){ count++; if(max < count){ max = count; } } } 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, 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, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 96, 5 ], [ 96, 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 ], [ 8, 90 ], [ 90, 91 ], [ 91, 92 ], [ 6, 93 ], [ 93, 94 ], [ 0, 95 ], [ 95, 96 ], [ 95, 97 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n String a = s.nextLine();\n int count = 0;\n\n if (a.equals(\"RRR\"))\n count = 3;\n if (a.equals(\"RRS\"))\n count = 2;\n if (a.equals(\"RSS\"))\n count = 1;\n if (a.equals(\"SSS\"))\n count = 0;\n if (a.equals(\"SSR\"))\n count = 1;\n if (a.equals(\"SRR\"))\n count = 2;\n if (a.equals(\"SRS\"))\n count = 1;\n if (a.equals(\"RSR\"))\n count = 1;\n\n System.out.println(count);\n\n s.close();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n String a = s.nextLine();\n int count = 0;\n\n if (a.equals(\"RRR\"))\n count = 3;\n if (a.equals(\"RRS\"))\n count = 2;\n if (a.equals(\"RSS\"))\n count = 1;\n if (a.equals(\"SSS\"))\n count = 0;\n if (a.equals(\"SSR\"))\n count = 1;\n if (a.equals(\"SRR\"))\n count = 2;\n if (a.equals(\"SRS\"))\n count = 1;\n if (a.equals(\"RSR\"))\n count = 1;\n\n System.out.println(count);\n\n s.close();\n }\n}", "Main", "public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n String a = s.nextLine();\n int count = 0;\n\n if (a.equals(\"RRR\"))\n count = 3;\n if (a.equals(\"RRS\"))\n count = 2;\n if (a.equals(\"RSS\"))\n count = 1;\n if (a.equals(\"SSS\"))\n count = 0;\n if (a.equals(\"SSR\"))\n count = 1;\n if (a.equals(\"SRR\"))\n count = 2;\n if (a.equals(\"SRS\"))\n count = 1;\n if (a.equals(\"RSR\"))\n count = 1;\n\n System.out.println(count);\n\n s.close();\n }", "main", "{\n Scanner s = new Scanner(System.in);\n String a = s.nextLine();\n int count = 0;\n\n if (a.equals(\"RRR\"))\n count = 3;\n if (a.equals(\"RRS\"))\n count = 2;\n if (a.equals(\"RSS\"))\n count = 1;\n if (a.equals(\"SSS\"))\n count = 0;\n if (a.equals(\"SSR\"))\n count = 1;\n if (a.equals(\"SRR\"))\n count = 2;\n if (a.equals(\"SRS\"))\n count = 1;\n if (a.equals(\"RSR\"))\n count = 1;\n\n System.out.println(count);\n\n s.close();\n }", "Scanner s = new Scanner(System.in);", "s", "new Scanner(System.in)", "String a = s.nextLine();", "a", "s.nextLine()", "s.nextLine", "s", "int count = 0;", "count", "0", "if (a.equals(\"RRR\"))\n count = 3;", "a.equals(\"RRR\")", "a.equals", "a", "\"RRR\"", "count = 3", "count", "3", "if (a.equals(\"RRS\"))\n count = 2;", "a.equals(\"RRS\")", "a.equals", "a", "\"RRS\"", "count = 2", "count", "2", "if (a.equals(\"RSS\"))\n count = 1;", "a.equals(\"RSS\")", "a.equals", "a", "\"RSS\"", "count = 1", "count", "1", "if (a.equals(\"SSS\"))\n count = 0;", "a.equals(\"SSS\")", "a.equals", "a", "\"SSS\"", "count = 0", "count", "0", "if (a.equals(\"SSR\"))\n count = 1;", "a.equals(\"SSR\")", "a.equals", "a", "\"SSR\"", "count = 1", "count", "1", "if (a.equals(\"SRR\"))\n count = 2;", "a.equals(\"SRR\")", "a.equals", "a", "\"SRR\"", "count = 2", "count", "2", "if (a.equals(\"SRS\"))\n count = 1;", "a.equals(\"SRS\")", "a.equals", "a", "\"SRS\"", "count = 1", "count", "1", "if (a.equals(\"RSR\"))\n count = 1;", "a.equals(\"RSR\")", "a.equals", "a", "\"RSR\"", "count = 1", "count", "1", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "s.close()", "s.close", "s", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n String a = s.nextLine();\n int count = 0;\n\n if (a.equals(\"RRR\"))\n count = 3;\n if (a.equals(\"RRS\"))\n count = 2;\n if (a.equals(\"RSS\"))\n count = 1;\n if (a.equals(\"SSS\"))\n count = 0;\n if (a.equals(\"SSR\"))\n count = 1;\n if (a.equals(\"SRR\"))\n count = 2;\n if (a.equals(\"SRS\"))\n count = 1;\n if (a.equals(\"RSR\"))\n count = 1;\n\n System.out.println(count);\n\n s.close();\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n String a = s.nextLine();\n int count = 0;\n\n if (a.equals(\"RRR\"))\n count = 3;\n if (a.equals(\"RRS\"))\n count = 2;\n if (a.equals(\"RSS\"))\n count = 1;\n if (a.equals(\"SSS\"))\n count = 0;\n if (a.equals(\"SSR\"))\n count = 1;\n if (a.equals(\"SRR\"))\n count = 2;\n if (a.equals(\"SRS\"))\n count = 1;\n if (a.equals(\"RSR\"))\n count = 1;\n\n System.out.println(count);\n\n s.close();\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); String a = s.nextLine(); int count = 0; if (a.equals("RRR")) count = 3; if (a.equals("RRS")) count = 2; if (a.equals("RSS")) count = 1; if (a.equals("SSS")) count = 0; if (a.equals("SSR")) count = 1; if (a.equals("SRR")) count = 2; if (a.equals("SRS")) count = 1; if (a.equals("RSR")) count = 1; System.out.println(count); s.close(); } }
[ 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, 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, 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 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 8, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 28, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 38, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 37, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 37, 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 ], [ 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.Scanner;\n\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\tchar[] s_one = s.toCharArray();\n\t\tboolean chain = true;\n\t\tint count = 0;\n\n\t\tif(s.equals(\"RRR\")) {\n\t\t\tcount = 3;\n\t\t}else if(s.equals(\"RRS\") || s.equals(\"SRR\")){\n\t\t\tcount = 2;\n\t\t}else if(s.equals(\"RSS\") || s.equals(\"RSR\") || s.equals(\"SSR\") || s.equals(\"SRS\")) {\n\t\t\tcount = 1;\n\t\t}\n\n\t\tSystem.out.println(count);\n\t}\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\tchar[] s_one = s.toCharArray();\n\t\tboolean chain = true;\n\t\tint count = 0;\n\n\t\tif(s.equals(\"RRR\")) {\n\t\t\tcount = 3;\n\t\t}else if(s.equals(\"RRS\") || s.equals(\"SRR\")){\n\t\t\tcount = 2;\n\t\t}else if(s.equals(\"RSS\") || s.equals(\"RSR\") || s.equals(\"SSR\") || s.equals(\"SRS\")) {\n\t\t\tcount = 1;\n\t\t}\n\n\t\tSystem.out.println(count);\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\tchar[] s_one = s.toCharArray();\n\t\tboolean chain = true;\n\t\tint count = 0;\n\n\t\tif(s.equals(\"RRR\")) {\n\t\t\tcount = 3;\n\t\t}else if(s.equals(\"RRS\") || s.equals(\"SRR\")){\n\t\t\tcount = 2;\n\t\t}else if(s.equals(\"RSS\") || s.equals(\"RSR\") || s.equals(\"SSR\") || s.equals(\"SRS\")) {\n\t\t\tcount = 1;\n\t\t}\n\n\t\tSystem.out.println(count);\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tString s = scan.next();\n\t\tchar[] s_one = s.toCharArray();\n\t\tboolean chain = true;\n\t\tint count = 0;\n\n\t\tif(s.equals(\"RRR\")) {\n\t\t\tcount = 3;\n\t\t}else if(s.equals(\"RRS\") || s.equals(\"SRR\")){\n\t\t\tcount = 2;\n\t\t}else if(s.equals(\"RSS\") || s.equals(\"RSR\") || s.equals(\"SSR\") || s.equals(\"SRS\")) {\n\t\t\tcount = 1;\n\t\t}\n\n\t\tSystem.out.println(count);\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String s = scan.next();", "s", "scan.next()", "scan.next", "scan", "char[] s_one = s.toCharArray();", "s_one", "s.toCharArray()", "s.toCharArray", "s", "boolean chain = true;", "chain", "true", "int count = 0;", "count", "0", "if(s.equals(\"RRR\")) {\n\t\t\tcount = 3;\n\t\t}else if(s.equals(\"RRS\") || s.equals(\"SRR\")){\n\t\t\tcount = 2;\n\t\t}else if(s.equals(\"RSS\") || s.equals(\"RSR\") || s.equals(\"SSR\") || s.equals(\"SRS\")) {\n\t\t\tcount = 1;\n\t\t}", "s.equals(\"RRR\")", "s.equals", "s", "\"RRR\"", "{\n\t\t\tcount = 3;\n\t\t}", "count = 3", "count", "3", "if(s.equals(\"RRS\") || s.equals(\"SRR\")){\n\t\t\tcount = 2;\n\t\t}else if(s.equals(\"RSS\") || s.equals(\"RSR\") || s.equals(\"SSR\") || s.equals(\"SRS\")) {\n\t\t\tcount = 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\tcount = 2;\n\t\t}", "count = 2", "count", "2", "if(s.equals(\"RSS\") || s.equals(\"RSR\") || s.equals(\"SSR\") || s.equals(\"SRS\")) {\n\t\t\tcount = 1;\n\t\t}", "s.equals(\"RSS\") || s.equals(\"RSR\") || s.equals(\"SSR\") || s.equals(\"SRS\")", "s.equals(\"SSR\")", "s.equals(\"RSS\") || s.equals(\"RSR\") || s.equals(\"SSR\") || s.equals(\"SRS\")", "s.equals(\"RSS\")", "s.equals", "s", "\"RSS\"", "s.equals(\"RSR\")", "s.equals", "s", "\"RSR\"", "s.equals(\"SSR\")", "s.equals", "s", "\"SSR\"", "s.equals(\"SRS\")", "s.equals", "s", "\"SRS\"", "{\n\t\t\tcount = 1;\n\t\t}", "count = 1", "count", "1", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "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\tchar[] s_one = s.toCharArray();\n\t\tboolean chain = true;\n\t\tint count = 0;\n\n\t\tif(s.equals(\"RRR\")) {\n\t\t\tcount = 3;\n\t\t}else if(s.equals(\"RRS\") || s.equals(\"SRR\")){\n\t\t\tcount = 2;\n\t\t}else if(s.equals(\"RSS\") || s.equals(\"RSR\") || s.equals(\"SSR\") || s.equals(\"SRS\")) {\n\t\t\tcount = 1;\n\t\t}\n\n\t\tSystem.out.println(count);\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\tchar[] s_one = s.toCharArray();\n\t\tboolean chain = true;\n\t\tint count = 0;\n\n\t\tif(s.equals(\"RRR\")) {\n\t\t\tcount = 3;\n\t\t}else if(s.equals(\"RRS\") || s.equals(\"SRR\")){\n\t\t\tcount = 2;\n\t\t}else if(s.equals(\"RSS\") || s.equals(\"RSR\") || s.equals(\"SSR\") || s.equals(\"SRS\")) {\n\t\t\tcount = 1;\n\t\t}\n\n\t\tSystem.out.println(count);\n\t}\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(); char[] s_one = s.toCharArray(); boolean chain = true; int count = 0; if(s.equals("RRR")) { count = 3; }else if(s.equals("RRS") || s.equals("SRR")){ count = 2; }else if(s.equals("RSS") || s.equals("RSR") || s.equals("SSR") || s.equals("SRS")) { count = 1; } System.out.println(count); } }
[ 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, 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 ], [ 62, 5 ], [ 62, 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 ], [ 27, 30 ], [ 26, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 26, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 35, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 35, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 44, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 8, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 6, 59 ], [ 59, 60 ], [ 0, 61 ], [ 61, 62 ], [ 61, 63 ] ]
[ "import java.util.Scanner;\n\n/*\n\n*/\n\npublic class Main {\n public static void main(String[] args){\n\n Scanner sc = new Scanner(System.in);\n String a = sc.next();\n String[] b = a.split(\"\");\n\n int count = 0;\n if (a.equals(\"RRR\")) {\n count = 3;\n } else if (a.contains(\"RR\")) {\n count = 2;\n } else if (a.contains(\"R\")) {\n count = 1;\n }\n // for (int i = 0; i < b.length; i++) {\n // if (b[i].equals(\"R\")) {\n // count++;\n // }\n // }\n System.out.println(count);\n // }\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 a = sc.next();\n String[] b = a.split(\"\");\n\n int count = 0;\n if (a.equals(\"RRR\")) {\n count = 3;\n } else if (a.contains(\"RR\")) {\n count = 2;\n } else if (a.contains(\"R\")) {\n count = 1;\n }\n // for (int i = 0; i < b.length; i++) {\n // if (b[i].equals(\"R\")) {\n // count++;\n // }\n // }\n System.out.println(count);\n // }\n\n }\n}", "Main", "public static void main(String[] args){\n\n Scanner sc = new Scanner(System.in);\n String a = sc.next();\n String[] b = a.split(\"\");\n\n int count = 0;\n if (a.equals(\"RRR\")) {\n count = 3;\n } else if (a.contains(\"RR\")) {\n count = 2;\n } else if (a.contains(\"R\")) {\n count = 1;\n }\n // for (int i = 0; i < b.length; i++) {\n // if (b[i].equals(\"R\")) {\n // count++;\n // }\n // }\n System.out.println(count);\n // }\n\n }", "main", "{\n\n Scanner sc = new Scanner(System.in);\n String a = sc.next();\n String[] b = a.split(\"\");\n\n int count = 0;\n if (a.equals(\"RRR\")) {\n count = 3;\n } else if (a.contains(\"RR\")) {\n count = 2;\n } else if (a.contains(\"R\")) {\n count = 1;\n }\n // for (int i = 0; i < b.length; i++) {\n // if (b[i].equals(\"R\")) {\n // count++;\n // }\n // }\n System.out.println(count);\n // }\n\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String a = sc.next();", "a", "sc.next()", "sc.next", "sc", "String[] b = a.split(\"\");", "b", "a.split(\"\")", "a.split", "a", "\"\"", "int count = 0;", "count", "0", "if (a.equals(\"RRR\")) {\n count = 3;\n } else if (a.contains(\"RR\")) {\n count = 2;\n } else if (a.contains(\"R\")) {\n count = 1;\n }", "a.equals(\"RRR\")", "a.equals", "a", "\"RRR\"", "{\n count = 3;\n }", "count = 3", "count", "3", "if (a.contains(\"RR\")) {\n count = 2;\n } else if (a.contains(\"R\")) {\n count = 1;\n }", "a.contains(\"RR\")", "a.contains", "a", "\"RR\"", "{\n count = 2;\n }", "count = 2", "count", "2", "if (a.contains(\"R\")) {\n count = 1;\n }", "a.contains(\"R\")", "a.contains", "a", "\"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\n Scanner sc = new Scanner(System.in);\n String a = sc.next();\n String[] b = a.split(\"\");\n\n int count = 0;\n if (a.equals(\"RRR\")) {\n count = 3;\n } else if (a.contains(\"RR\")) {\n count = 2;\n } else if (a.contains(\"R\")) {\n count = 1;\n }\n // for (int i = 0; i < b.length; i++) {\n // if (b[i].equals(\"R\")) {\n // count++;\n // }\n // }\n System.out.println(count);\n // }\n\n }\n}", "public class Main {\n public static void main(String[] args){\n\n Scanner sc = new Scanner(System.in);\n String a = sc.next();\n String[] b = a.split(\"\");\n\n int count = 0;\n if (a.equals(\"RRR\")) {\n count = 3;\n } else if (a.contains(\"RR\")) {\n count = 2;\n } else if (a.contains(\"R\")) {\n count = 1;\n }\n // for (int i = 0; i < b.length; i++) {\n // if (b[i].equals(\"R\")) {\n // count++;\n // }\n // }\n System.out.println(count);\n // }\n\n }\n}", "Main" ]
import java.util.Scanner; /* */ public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String a = sc.next(); String[] b = a.split(""); int count = 0; if (a.equals("RRR")) { count = 3; } else if (a.contains("RR")) { count = 2; } else if (a.contains("R")) { count = 1; } // for (int i = 0; i < b.length; i++) { // if (b[i].equals("R")) { // count++; // } // } System.out.println(count); // } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 18, 13, 13, 41, 13, 18, 13, 13, 41, 13, 20, 41, 13, 20, 41, 13, 20, 4, 18, 13, 17, 13, 13, 4, 18, 13, 23, 13, 6, 13, 12, 13, 30, 41, 13, 4, 18, 13, 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, 4, 18, 13, 13, 13, 30, 0, 13, 17, 4, 18, 13, 13, 23, 13, 23, 13, 23, 13, 6, 13, 41, 13, 41, 13, 41, 13, 17, 12, 13, 30, 0, 13, 20, 23, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 29, 4, 18, 13, 29, 17, 12, 13, 30, 42, 2, 2, 13, 17, 2, 13, 18, 13, 13, 30, 0, 13, 4, 18, 4, 13, 17, 0, 13, 17, 29, 18, 13, 40, 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, 20, 12, 13, 30, 29, 20, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 18, 13, 13, 13, 4, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 18, 13, 13, 13, 4, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 13, 0, 18, 13, 13, 4, 18, 13, 29, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 19, 20 ], [ 19, 21 ], [ 0, 22 ], [ 22, 23 ], [ 22, 24 ], [ 0, 25 ], [ 442, 26 ], [ 442, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 32, 34 ], [ 29, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 37, 39 ], [ 29, 40 ], [ 40, 41 ], [ 40, 42 ], [ 29, 43 ], [ 43, 44 ], [ 43, 45 ], [ 29, 46 ], [ 46, 47 ], [ 46, 48 ], [ 29, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 49, 53 ], [ 49, 54 ], [ 29, 55 ], [ 55, 56 ], [ 56, 57 ], [ 27, 58 ], [ 58, 59 ], [ 442, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 64, 70 ], [ 70, 71 ], [ 70, 72 ], [ 64, 73 ], [ 73, 74 ], [ 73, 75 ], [ 64, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 76, 81 ], [ 81, 82 ], [ 81, 83 ], [ 76, 84 ], [ 84, 85 ], [ 85, 86 ], [ 76, 87 ], [ 88, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 91, 94 ], [ 90, 95 ], [ 89, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 102, 103 ], [ 101, 104 ], [ 101, 105 ], [ 89, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 64, 110 ], [ 110, 111 ], [ 111, 112 ], [ 110, 113 ], [ 62, 114 ], [ 114, 115 ], [ 62, 116 ], [ 116, 117 ], [ 62, 118 ], [ 118, 119 ], [ 442, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 120, 124 ], [ 124, 125 ], [ 120, 126 ], [ 126, 127 ], [ 126, 128 ], [ 120, 129 ], [ 129, 130 ], [ 129, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 129, 135 ], [ 135, 136 ], [ 120, 137 ], [ 137, 138 ], [ 137, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 140, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 139, 152 ], [ 152, 153 ], [ 120, 154 ], [ 154, 155 ], [ 154, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 158, 162 ], [ 162, 163 ], [ 162, 164 ], [ 164, 165 ], [ 164, 166 ], [ 157, 167 ], [ 167, 168 ], [ 168, 169 ], [ 168, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 170, 174 ], [ 167, 175 ], [ 175, 176 ], [ 175, 177 ], [ 156, 178 ], [ 178, 179 ], [ 179, 180 ], [ 179, 181 ], [ 181, 182 ], [ 120, 183 ], [ 183, 184 ], [ 183, 185 ], [ 185, 186 ], [ 186, 187 ], [ 187, 188 ], [ 188, 189 ], [ 187, 190 ], [ 190, 191 ], [ 120, 192 ], [ 192, 193 ], [ 192, 194 ], [ 194, 195 ], [ 195, 196 ], [ 196, 197 ], [ 197, 198 ], [ 196, 199 ], [ 199, 200 ], [ 120, 201 ], [ 201, 202 ], [ 201, 203 ], [ 203, 204 ], [ 204, 205 ], [ 205, 206 ], [ 206, 207 ], [ 205, 208 ], [ 208, 209 ], [ 120, 210 ], [ 210, 211 ], [ 210, 212 ], [ 212, 213 ], [ 213, 214 ], [ 120, 215 ], [ 215, 216 ], [ 215, 217 ], [ 217, 218 ], [ 218, 219 ], [ 120, 220 ], [ 220, 221 ], [ 220, 222 ], [ 222, 223 ], [ 223, 224 ], [ 223, 225 ], [ 222, 227 ], [ 227, 228 ], [ 228, 229 ], [ 229, 230 ], [ 229, 231 ], [ 227, 232 ], [ 232, 233 ], [ 232, 234 ], [ 227, 235 ], [ 235, 236 ], [ 236, 237 ], [ 227, 238 ], [ 239, 239 ], [ 239, 240 ], [ 240, 241 ], [ 241, 242 ], [ 241, 243 ], [ 240, 244 ], [ 244, 245 ], [ 222, 246 ], [ 246, 247 ], [ 220, 248 ], [ 248, 249 ], [ 120, 250 ], [ 250, 251 ], [ 250, 252 ], [ 252, 253 ], [ 253, 254 ], [ 253, 255 ], [ 252, 257 ], [ 257, 258 ], [ 258, 259 ], [ 259, 260 ], [ 259, 261 ], [ 257, 262 ], [ 262, 263 ], [ 262, 264 ], [ 257, 265 ], [ 265, 266 ], [ 266, 267 ], [ 257, 268 ], [ 269, 269 ], [ 269, 270 ], [ 270, 271 ], [ 271, 272 ], [ 271, 273 ], [ 270, 274 ], [ 274, 275 ], [ 252, 276 ], [ 276, 277 ], [ 250, 278 ], [ 278, 279 ], [ 120, 280 ], [ 280, 281 ], [ 280, 282 ], [ 282, 283 ], [ 283, 284 ], [ 283, 285 ], [ 282, 287 ], [ 287, 288 ], [ 288, 289 ], [ 289, 290 ], [ 289, 291 ], [ 287, 292 ], [ 292, 293 ], [ 292, 294 ], [ 287, 295 ], [ 295, 296 ], [ 296, 297 ], [ 287, 298 ], [ 299, 299 ], [ 299, 300 ], [ 300, 301 ], [ 301, 302 ], [ 301, 303 ], [ 300, 304 ], [ 304, 305 ], [ 282, 306 ], [ 306, 307 ], [ 280, 308 ], [ 308, 309 ], [ 120, 310 ], [ 310, 311 ], [ 310, 312 ], [ 312, 313 ], [ 313, 314 ], [ 313, 315 ], [ 312, 318 ], [ 318, 319 ], [ 319, 320 ], [ 320, 321 ], [ 320, 322 ], [ 318, 323 ], [ 323, 324 ], [ 323, 325 ], [ 318, 326 ], [ 326, 327 ], [ 327, 328 ], [ 318, 329 ], [ 330, 330 ], [ 330, 331 ], [ 331, 332 ], [ 332, 333 ], [ 333, 334 ], [ 333, 335 ], [ 331, 336 ], [ 336, 337 ], [ 336, 338 ], [ 331, 339 ], [ 339, 340 ], [ 340, 341 ], [ 331, 342 ], [ 343, 343 ], [ 343, 344 ], [ 344, 345 ], [ 345, 346 ], [ 346, 347 ], [ 346, 348 ], [ 345, 349 ], [ 344, 350 ], [ 350, 351 ], [ 312, 352 ], [ 352, 353 ], [ 310, 354 ], [ 354, 355 ], [ 310, 356 ], [ 356, 357 ], [ 120, 358 ], [ 358, 359 ], [ 358, 360 ], [ 360, 361 ], [ 361, 362 ], [ 361, 363 ], [ 360, 366 ], [ 366, 367 ], [ 367, 368 ], [ 368, 369 ], [ 368, 370 ], [ 366, 371 ], [ 371, 372 ], [ 371, 373 ], [ 366, 374 ], [ 374, 375 ], [ 375, 376 ], [ 366, 377 ], [ 378, 378 ], [ 378, 379 ], [ 379, 380 ], [ 380, 381 ], [ 381, 382 ], [ 381, 383 ], [ 379, 384 ], [ 384, 385 ], [ 384, 386 ], [ 379, 387 ], [ 387, 388 ], [ 388, 389 ], [ 379, 390 ], [ 391, 391 ], [ 391, 392 ], [ 392, 393 ], [ 393, 394 ], [ 394, 395 ], [ 394, 396 ], [ 393, 397 ], [ 392, 398 ], [ 398, 399 ], [ 360, 400 ], [ 400, 401 ], [ 358, 402 ], [ 402, 403 ], [ 358, 404 ], [ 404, 405 ], [ 120, 406 ], [ 406, 407 ], [ 406, 408 ], [ 408, 409 ], [ 409, 410 ], [ 409, 411 ], [ 408, 413 ], [ 413, 414 ], [ 414, 415 ], [ 415, 416 ], [ 415, 417 ], [ 413, 418 ], [ 418, 419 ], [ 418, 420 ], [ 413, 421 ], [ 421, 422 ], [ 422, 423 ], [ 413, 424 ], [ 425, 425 ], [ 425, 426 ], [ 426, 427 ], [ 426, 428 ], [ 428, 429 ], [ 425, 430 ], [ 430, 431 ], [ 431, 432 ], [ 431, 433 ], [ 430, 434 ], [ 434, 435 ], [ 435, 436 ], [ 408, 437 ], [ 437, 438 ], [ 406, 439 ], [ 439, 440 ], [ 0, 441 ], [ 441, 442 ], [ 441, 443 ] ]
[ "\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.io.OutputStream;\nimport java.io.PrintWriter;\nimport java.math.BigDecimal;\nimport java.math.BigInteger;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tInputStream inputStream = System.in;\n\t\tOutputStream outputStream = System.out;\n\t\tFastInput in = new FastInput(inputStream);\n\t\tPrintWriter out = new PrintWriter(outputStream);\n\t\tABC175A solver = new ABC175A();\n\t\tsolver.solve(1, in, out);\n\t\tout.close();\n\t}\n\n\tstatic class ABC175A {\n\n\t\tpublic void solve(int testNum, FastInput in, PrintWriter out) {\n\t\t\t\n\t\t\tString s = in.next();\n\t\t\t\n\t\t\tint cnt = 0;\n\t\t\tint ans = 0;\n\t\t\tfor(int i = 0 ; i < 3 ;i++) {\n\t\t\t\tif(s.charAt(i) == 'R') {\n\t\t\t\t\tcnt++;\n\t\t\t\t\tans = Math.max(ans,cnt);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcnt = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tout.println(ans);\n\n\t\t}\n\n\t}\nstatic class FastInput{\n\tprivate final BufferedReader in;\n\tprivate String[] buff;\n\tprivate int index = 0;\n\t\n\tpublic FastInput(InputStream im) {\n\t\tin = new BufferedReader(new InputStreamReader(im));\n\t}\n\tString nextLine() {\n\t\ttry {\n\t\t\treturn in.readLine();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}\n\tString next() {\n\t\twhile (buff == null || index >= buff.length) {\n\t\t\tbuff = nextLine().split(\" \");\n\t\t\tindex = 0;\n\t\t}\n\t\treturn buff[index++];\n\t}\n\tint nextInt() {\n\t\treturn Integer.parseInt(next());\n\t}\n\t\n\tlong nextLong() {\n\t\treturn Long.parseLong(next());\n\t}\n\t\n\tDouble nextDouble() {\n\t\treturn Double.parseDouble(next());\n\t}\n\t\n\tBigInteger nextBigInteger() {\n\t\treturn new BigInteger(next());\n\t}\n\t\n\tBigDecimal nextBigDecimal() {\n\t\treturn new BigDecimal(next());\n\t}\n\t\n\tpublic int[] nextIntArray(final int n) {\n\t\tfinal int[] res = new int [n];\n\t\t\n\t\tfor(int i = 0 ; i < n ;i++) {\n\t\t\tres[i] = nextInt();\n\t\t}\n\t\treturn res;\n\t}\n\t\n\tpublic long[] nextLongArray(final int n) {\n\t\tfinal long[] res= new long [n];\n\t\t\n\t\tfor(int i = 0 ; i < n ;i++) {\n\t\t\tres[i] = nextLong();\n\t\t}\n\t\treturn res;\n\t}\n\t\n\tpublic double[] nextDoubleArray(final int n ) {\n\t\tfinal double[] res = new double [n];\n\t\t\n\t\tfor(int i = 0 ; i < n ;i++) {\n\t\t\tres[i] = nextDouble();\n\t\t}\n\t\treturn res;\n\t}\n\t\n\t\n\tpublic int[][] nextInt2DArray(final int n , final int m){\n\t\tint [][]res = new int [n][m];\n\t\t\n\t\tfor(int i = 0 ; i < n ;i++) {\n\t\t\tfor(int j = 0 ; j < m ;j++) {\n\t\t\t\tres[i][j] = nextInt();\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}\n\tpublic long[][] nextLong2DArray(final int n , final int m){\n\t\tlong [][]res = new long [n][m];\n\t\t\n\t\tfor(int i = 0 ; i < n ;i++) {\n\t\t\tfor(int j = 0 ; j < m ;j++) {\n\t\t\t\tres[i][j] = nextLong();\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}\n\t\n\tpublic char[][] nextChar2DArray(final int n){\n\t\tchar [][]res = new char [n][];\n\t\t\n\t\tfor(int i = 0 ; i < n ;i++) {\n\t\t\tString s = next();\n\t\t\tres[i] = s.toCharArray();\n\t\t}\n\t\t\n\t\treturn res;\n\t}\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.io.OutputStream;", "OutputStream", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.math.BigDecimal;", "BigDecimal", "java.math", "import java.math.BigInteger;", "BigInteger", "java.math", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tInputStream inputStream = System.in;\n\t\tOutputStream outputStream = System.out;\n\t\tFastInput in = new FastInput(inputStream);\n\t\tPrintWriter out = new PrintWriter(outputStream);\n\t\tABC175A solver = new ABC175A();\n\t\tsolver.solve(1, in, out);\n\t\tout.close();\n\t}\n\n\tstatic class ABC175A {\n\n\t\tpublic void solve(int testNum, FastInput in, PrintWriter out) {\n\t\t\t\n\t\t\tString s = in.next();\n\t\t\t\n\t\t\tint cnt = 0;\n\t\t\tint ans = 0;\n\t\t\tfor(int i = 0 ; i < 3 ;i++) {\n\t\t\t\tif(s.charAt(i) == 'R') {\n\t\t\t\t\tcnt++;\n\t\t\t\t\tans = Math.max(ans,cnt);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcnt = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tout.println(ans);\n\n\t\t}\n\n\t}\nstatic class FastInput{\n\tprivate final BufferedReader in;\n\tprivate String[] buff;\n\tprivate int index = 0;\n\t\n\tpublic FastInput(InputStream im) {\n\t\tin = new BufferedReader(new InputStreamReader(im));\n\t}\n\tString nextLine() {\n\t\ttry {\n\t\t\treturn in.readLine();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}\n\tString next() {\n\t\twhile (buff == null || index >= buff.length) {\n\t\t\tbuff = nextLine().split(\" \");\n\t\t\tindex = 0;\n\t\t}\n\t\treturn buff[index++];\n\t}\n\tint nextInt() {\n\t\treturn Integer.parseInt(next());\n\t}\n\t\n\tlong nextLong() {\n\t\treturn Long.parseLong(next());\n\t}\n\t\n\tDouble nextDouble() {\n\t\treturn Double.parseDouble(next());\n\t}\n\t\n\tBigInteger nextBigInteger() {\n\t\treturn new BigInteger(next());\n\t}\n\t\n\tBigDecimal nextBigDecimal() {\n\t\treturn new BigDecimal(next());\n\t}\n\t\n\tpublic int[] nextIntArray(final int n) {\n\t\tfinal int[] res = new int [n];\n\t\t\n\t\tfor(int i = 0 ; i < n ;i++) {\n\t\t\tres[i] = nextInt();\n\t\t}\n\t\treturn res;\n\t}\n\t\n\tpublic long[] nextLongArray(final int n) {\n\t\tfinal long[] res= new long [n];\n\t\t\n\t\tfor(int i = 0 ; i < n ;i++) {\n\t\t\tres[i] = nextLong();\n\t\t}\n\t\treturn res;\n\t}\n\t\n\tpublic double[] nextDoubleArray(final int n ) {\n\t\tfinal double[] res = new double [n];\n\t\t\n\t\tfor(int i = 0 ; i < n ;i++) {\n\t\t\tres[i] = nextDouble();\n\t\t}\n\t\treturn res;\n\t}\n\t\n\t\n\tpublic int[][] nextInt2DArray(final int n , final int m){\n\t\tint [][]res = new int [n][m];\n\t\t\n\t\tfor(int i = 0 ; i < n ;i++) {\n\t\t\tfor(int j = 0 ; j < m ;j++) {\n\t\t\t\tres[i][j] = nextInt();\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}\n\tpublic long[][] nextLong2DArray(final int n , final int m){\n\t\tlong [][]res = new long [n][m];\n\t\t\n\t\tfor(int i = 0 ; i < n ;i++) {\n\t\t\tfor(int j = 0 ; j < m ;j++) {\n\t\t\t\tres[i][j] = nextLong();\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}\n\t\n\tpublic char[][] nextChar2DArray(final int n){\n\t\tchar [][]res = new char [n][];\n\t\t\n\t\tfor(int i = 0 ; i < n ;i++) {\n\t\t\tString s = next();\n\t\t\tres[i] = s.toCharArray();\n\t\t}\n\t\t\n\t\treturn res;\n\t}\n}\n}", "Main", "public static void main(String[] args) {\n\t\tInputStream inputStream = System.in;\n\t\tOutputStream outputStream = System.out;\n\t\tFastInput in = new FastInput(inputStream);\n\t\tPrintWriter out = new PrintWriter(outputStream);\n\t\tABC175A solver = new ABC175A();\n\t\tsolver.solve(1, in, out);\n\t\tout.close();\n\t}", "main", "{\n\t\tInputStream inputStream = System.in;\n\t\tOutputStream outputStream = System.out;\n\t\tFastInput in = new FastInput(inputStream);\n\t\tPrintWriter out = new PrintWriter(outputStream);\n\t\tABC175A solver = new ABC175A();\n\t\tsolver.solve(1, in, out);\n\t\tout.close();\n\t}", "InputStream inputStream = System.in;", "inputStream", "System.in", "System", "System.in", "OutputStream outputStream = System.out;", "outputStream", "System.out", "System", "System.out", "FastInput in = new FastInput(inputStream);", "in", "new FastInput(inputStream)", "PrintWriter out = new PrintWriter(outputStream);", "out", "new PrintWriter(outputStream)", "ABC175A solver = new ABC175A();", "solver", "new ABC175A()", "solver.solve(1, in, out)", "solver.solve", "solver", "1", "in", "out", "out.close()", "out.close", "out", "String[] args", "args", "static class ABC175A {\n\n\t\tpublic void solve(int testNum, FastInput in, PrintWriter out) {\n\t\t\t\n\t\t\tString s = in.next();\n\t\t\t\n\t\t\tint cnt = 0;\n\t\t\tint ans = 0;\n\t\t\tfor(int i = 0 ; i < 3 ;i++) {\n\t\t\t\tif(s.charAt(i) == 'R') {\n\t\t\t\t\tcnt++;\n\t\t\t\t\tans = Math.max(ans,cnt);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcnt = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tout.println(ans);\n\n\t\t}\n\n\t}", "ABC175A", "public void solve(int testNum, FastInput in, PrintWriter out) {\n\t\t\t\n\t\t\tString s = in.next();\n\t\t\t\n\t\t\tint cnt = 0;\n\t\t\tint ans = 0;\n\t\t\tfor(int i = 0 ; i < 3 ;i++) {\n\t\t\t\tif(s.charAt(i) == 'R') {\n\t\t\t\t\tcnt++;\n\t\t\t\t\tans = Math.max(ans,cnt);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcnt = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tout.println(ans);\n\n\t\t}", "solve", "{\n\t\t\t\n\t\t\tString s = in.next();\n\t\t\t\n\t\t\tint cnt = 0;\n\t\t\tint ans = 0;\n\t\t\tfor(int i = 0 ; i < 3 ;i++) {\n\t\t\t\tif(s.charAt(i) == 'R') {\n\t\t\t\t\tcnt++;\n\t\t\t\t\tans = Math.max(ans,cnt);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcnt = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tout.println(ans);\n\n\t\t}", "String s = in.next();", "s", "in.next()", "in.next", "in", "int cnt = 0;", "cnt", "0", "int ans = 0;", "ans", "0", "for(int i = 0 ; i < 3 ;i++) {\n\t\t\t\tif(s.charAt(i) == 'R') {\n\t\t\t\t\tcnt++;\n\t\t\t\t\tans = Math.max(ans,cnt);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcnt = 0;\n\t\t\t\t}\n\t\t\t}", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < 3", "i", "3", "i++", "i++", "i", "{\n\t\t\t\tif(s.charAt(i) == 'R') {\n\t\t\t\t\tcnt++;\n\t\t\t\t\tans = Math.max(ans,cnt);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcnt = 0;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif(s.charAt(i) == 'R') {\n\t\t\t\t\tcnt++;\n\t\t\t\t\tans = Math.max(ans,cnt);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcnt = 0;\n\t\t\t\t}\n\t\t\t}", "if(s.charAt(i) == 'R') {\n\t\t\t\t\tcnt++;\n\t\t\t\t\tans = Math.max(ans,cnt);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcnt = 0;\n\t\t\t\t}", "s.charAt(i) == 'R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "{\n\t\t\t\t\tcnt++;\n\t\t\t\t\tans = Math.max(ans,cnt);\n\t\t\t\t}", "cnt++", "cnt", "ans = Math.max(ans,cnt)", "ans", "Math.max(ans,cnt)", "Math.max", "Math", "ans", "cnt", "{\n\t\t\t\t\tcnt = 0;\n\t\t\t\t}", "cnt = 0", "cnt", "0", "out.println(ans)", "out.println", "out", "ans", "int testNum", "testNum", "FastInput in", "in", "PrintWriter out", "out", "static class FastInput{\n\tprivate final BufferedReader in;\n\tprivate String[] buff;\n\tprivate int index = 0;\n\t\n\tpublic FastInput(InputStream im) {\n\t\tin = new BufferedReader(new InputStreamReader(im));\n\t}\n\tString nextLine() {\n\t\ttry {\n\t\t\treturn in.readLine();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}\n\tString next() {\n\t\twhile (buff == null || index >= buff.length) {\n\t\t\tbuff = nextLine().split(\" \");\n\t\t\tindex = 0;\n\t\t}\n\t\treturn buff[index++];\n\t}\n\tint nextInt() {\n\t\treturn Integer.parseInt(next());\n\t}\n\t\n\tlong nextLong() {\n\t\treturn Long.parseLong(next());\n\t}\n\t\n\tDouble nextDouble() {\n\t\treturn Double.parseDouble(next());\n\t}\n\t\n\tBigInteger nextBigInteger() {\n\t\treturn new BigInteger(next());\n\t}\n\t\n\tBigDecimal nextBigDecimal() {\n\t\treturn new BigDecimal(next());\n\t}\n\t\n\tpublic int[] nextIntArray(final int n) {\n\t\tfinal int[] res = new int [n];\n\t\t\n\t\tfor(int i = 0 ; i < n ;i++) {\n\t\t\tres[i] = nextInt();\n\t\t}\n\t\treturn res;\n\t}\n\t\n\tpublic long[] nextLongArray(final int n) {\n\t\tfinal long[] res= new long [n];\n\t\t\n\t\tfor(int i = 0 ; i < n ;i++) {\n\t\t\tres[i] = nextLong();\n\t\t}\n\t\treturn res;\n\t}\n\t\n\tpublic double[] nextDoubleArray(final int n ) {\n\t\tfinal double[] res = new double [n];\n\t\t\n\t\tfor(int i = 0 ; i < n ;i++) {\n\t\t\tres[i] = nextDouble();\n\t\t}\n\t\treturn res;\n\t}\n\t\n\t\n\tpublic int[][] nextInt2DArray(final int n , final int m){\n\t\tint [][]res = new int [n][m];\n\t\t\n\t\tfor(int i = 0 ; i < n ;i++) {\n\t\t\tfor(int j = 0 ; j < m ;j++) {\n\t\t\t\tres[i][j] = nextInt();\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}\n\tpublic long[][] nextLong2DArray(final int n , final int m){\n\t\tlong [][]res = new long [n][m];\n\t\t\n\t\tfor(int i = 0 ; i < n ;i++) {\n\t\t\tfor(int j = 0 ; j < m ;j++) {\n\t\t\t\tres[i][j] = nextLong();\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}\n\t\n\tpublic char[][] nextChar2DArray(final int n){\n\t\tchar [][]res = new char [n][];\n\t\t\n\t\tfor(int i = 0 ; i < n ;i++) {\n\t\t\tString s = next();\n\t\t\tres[i] = s.toCharArray();\n\t\t}\n\t\t\n\t\treturn res;\n\t}\n}", "FastInput", "private final BufferedReader in;", "in", "private String[] buff;", "buff", "private int index = 0;", "index", "0", "public FastInput(InputStream im) {\n\t\tin = new BufferedReader(new InputStreamReader(im));\n\t}", "FastInput", "{\n\t\tin = new BufferedReader(new InputStreamReader(im));\n\t}", "in = new BufferedReader(new InputStreamReader(im))", "in", "new BufferedReader(new InputStreamReader(im))", "InputStream im", "im", "String nextLine() {\n\t\ttry {\n\t\t\treturn in.readLine();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "nextLine", "{\n\t\ttry {\n\t\t\treturn in.readLine();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "try {\n\t\t\treturn in.readLine();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}", "catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}", "IOException e", "{\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\treturn in.readLine();\n\t\t}", "return in.readLine();", "in.readLine()", "in.readLine", "in", "return null;", "null", "String next() {\n\t\twhile (buff == null || index >= buff.length) {\n\t\t\tbuff = nextLine().split(\" \");\n\t\t\tindex = 0;\n\t\t}\n\t\treturn buff[index++];\n\t}", "next", "{\n\t\twhile (buff == null || index >= buff.length) {\n\t\t\tbuff = nextLine().split(\" \");\n\t\t\tindex = 0;\n\t\t}\n\t\treturn buff[index++];\n\t}", "while (buff == null || index >= buff.length) {\n\t\t\tbuff = nextLine().split(\" \");\n\t\t\tindex = 0;\n\t\t}", "buff == null || index >= buff.length", "buff == null", "buff", "null", "index >= buff.length", "index", "buff.length", "buff", "buff.length", "{\n\t\t\tbuff = nextLine().split(\" \");\n\t\t\tindex = 0;\n\t\t}", "buff = nextLine().split(\" \")", "buff", "nextLine().split(\" \")", "nextLine().split", "nextLine()", "nextLine", "\" \"", "index = 0", "index", "0", "return buff[index++];", "buff[index++]", "buff", "index++", "index", "int nextInt() {\n\t\treturn Integer.parseInt(next());\n\t}", "nextInt", "{\n\t\treturn Integer.parseInt(next());\n\t}", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "long nextLong() {\n\t\treturn Long.parseLong(next());\n\t}", "nextLong", "{\n\t\treturn Long.parseLong(next());\n\t}", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "Double nextDouble() {\n\t\treturn Double.parseDouble(next());\n\t}", "nextDouble", "{\n\t\treturn Double.parseDouble(next());\n\t}", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "BigInteger nextBigInteger() {\n\t\treturn new BigInteger(next());\n\t}", "nextBigInteger", "{\n\t\treturn new BigInteger(next());\n\t}", "return new BigInteger(next());", "new BigInteger(next())", "BigDecimal nextBigDecimal() {\n\t\treturn new BigDecimal(next());\n\t}", "nextBigDecimal", "{\n\t\treturn new BigDecimal(next());\n\t}", "return new BigDecimal(next());", "new BigDecimal(next())", "public int[] nextIntArray(final int n) {\n\t\tfinal int[] res = new int [n];\n\t\t\n\t\tfor(int i = 0 ; i < n ;i++) {\n\t\t\tres[i] = nextInt();\n\t\t}\n\t\treturn res;\n\t}", "nextIntArray", "{\n\t\tfinal int[] res = new int [n];\n\t\t\n\t\tfor(int i = 0 ; i < n ;i++) {\n\t\t\tres[i] = nextInt();\n\t\t}\n\t\treturn res;\n\t}", "final int[] res = new int [n];", "res", "new int [n]", "n", "for(int i = 0 ; i < n ;i++) {\n\t\t\tres[i] = nextInt();\n\t\t}", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tres[i] = nextInt();\n\t\t}", "{\n\t\t\tres[i] = nextInt();\n\t\t}", "res[i] = nextInt()", "res[i]", "res", "i", "nextInt()", "nextInt", "return res;", "res", "final int n", "n", "public long[] nextLongArray(final int n) {\n\t\tfinal long[] res= new long [n];\n\t\t\n\t\tfor(int i = 0 ; i < n ;i++) {\n\t\t\tres[i] = nextLong();\n\t\t}\n\t\treturn res;\n\t}", "nextLongArray", "{\n\t\tfinal long[] res= new long [n];\n\t\t\n\t\tfor(int i = 0 ; i < n ;i++) {\n\t\t\tres[i] = nextLong();\n\t\t}\n\t\treturn res;\n\t}", "final long[] res= new long [n];", "res", "new long [n]", "n", "for(int i = 0 ; i < n ;i++) {\n\t\t\tres[i] = nextLong();\n\t\t}", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tres[i] = nextLong();\n\t\t}", "{\n\t\t\tres[i] = nextLong();\n\t\t}", "res[i] = nextLong()", "res[i]", "res", "i", "nextLong()", "nextLong", "return res;", "res", "final int n", "n", "public double[] nextDoubleArray(final int n ) {\n\t\tfinal double[] res = new double [n];\n\t\t\n\t\tfor(int i = 0 ; i < n ;i++) {\n\t\t\tres[i] = nextDouble();\n\t\t}\n\t\treturn res;\n\t}", "nextDoubleArray", "{\n\t\tfinal double[] res = new double [n];\n\t\t\n\t\tfor(int i = 0 ; i < n ;i++) {\n\t\t\tres[i] = nextDouble();\n\t\t}\n\t\treturn res;\n\t}", "final double[] res = new double [n];", "res", "new double [n]", "n", "for(int i = 0 ; i < n ;i++) {\n\t\t\tres[i] = nextDouble();\n\t\t}", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tres[i] = nextDouble();\n\t\t}", "{\n\t\t\tres[i] = nextDouble();\n\t\t}", "res[i] = nextDouble()", "res[i]", "res", "i", "nextDouble()", "nextDouble", "return res;", "res", "final int n", "n", "public int[][] nextInt2DArray(final int n , final int m){\n\t\tint [][]res = new int [n][m];\n\t\t\n\t\tfor(int i = 0 ; i < n ;i++) {\n\t\t\tfor(int j = 0 ; j < m ;j++) {\n\t\t\t\tres[i][j] = nextInt();\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}", "nextInt2DArray", "{\n\t\tint [][]res = new int [n][m];\n\t\t\n\t\tfor(int i = 0 ; i < n ;i++) {\n\t\t\tfor(int j = 0 ; j < m ;j++) {\n\t\t\t\tres[i][j] = nextInt();\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}", "int [][]res = new int [n][m];", "res", "new int [n][m]", "n", "m", "for(int i = 0 ; i < n ;i++) {\n\t\t\tfor(int j = 0 ; j < m ;j++) {\n\t\t\t\tres[i][j] = nextInt();\n\t\t\t}\n\t\t}", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tfor(int j = 0 ; j < m ;j++) {\n\t\t\t\tres[i][j] = nextInt();\n\t\t\t}\n\t\t}", "{\n\t\t\tfor(int j = 0 ; j < m ;j++) {\n\t\t\t\tres[i][j] = nextInt();\n\t\t\t}\n\t\t}", "for(int j = 0 ; j < m ;j++) {\n\t\t\t\tres[i][j] = nextInt();\n\t\t\t}", "int j = 0 ;", "int j = 0 ;", "j", "0", "j < m", "j", "m", "j++", "j++", "j", "{\n\t\t\t\tres[i][j] = nextInt();\n\t\t\t}", "{\n\t\t\t\tres[i][j] = nextInt();\n\t\t\t}", "res[i][j] = nextInt()", "res[i][j]", "res[i]", "res", "i", "j", "nextInt()", "nextInt", "return res;", "res", "final int n", "n", "final int m", "m", "public long[][] nextLong2DArray(final int n , final int m){\n\t\tlong [][]res = new long [n][m];\n\t\t\n\t\tfor(int i = 0 ; i < n ;i++) {\n\t\t\tfor(int j = 0 ; j < m ;j++) {\n\t\t\t\tres[i][j] = nextLong();\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}", "nextLong2DArray", "{\n\t\tlong [][]res = new long [n][m];\n\t\t\n\t\tfor(int i = 0 ; i < n ;i++) {\n\t\t\tfor(int j = 0 ; j < m ;j++) {\n\t\t\t\tres[i][j] = nextLong();\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}", "long [][]res = new long [n][m];", "res", "new long [n][m]", "n", "m", "for(int i = 0 ; i < n ;i++) {\n\t\t\tfor(int j = 0 ; j < m ;j++) {\n\t\t\t\tres[i][j] = nextLong();\n\t\t\t}\n\t\t}", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tfor(int j = 0 ; j < m ;j++) {\n\t\t\t\tres[i][j] = nextLong();\n\t\t\t}\n\t\t}", "{\n\t\t\tfor(int j = 0 ; j < m ;j++) {\n\t\t\t\tres[i][j] = nextLong();\n\t\t\t}\n\t\t}", "for(int j = 0 ; j < m ;j++) {\n\t\t\t\tres[i][j] = nextLong();\n\t\t\t}", "int j = 0 ;", "int j = 0 ;", "j", "0", "j < m", "j", "m", "j++", "j++", "j", "{\n\t\t\t\tres[i][j] = nextLong();\n\t\t\t}", "{\n\t\t\t\tres[i][j] = nextLong();\n\t\t\t}", "res[i][j] = nextLong()", "res[i][j]", "res[i]", "res", "i", "j", "nextLong()", "nextLong", "return res;", "res", "final int n", "n", "final int m", "m", "public char[][] nextChar2DArray(final int n){\n\t\tchar [][]res = new char [n][];\n\t\t\n\t\tfor(int i = 0 ; i < n ;i++) {\n\t\t\tString s = next();\n\t\t\tres[i] = s.toCharArray();\n\t\t}\n\t\t\n\t\treturn res;\n\t}", "nextChar2DArray", "{\n\t\tchar [][]res = new char [n][];\n\t\t\n\t\tfor(int i = 0 ; i < n ;i++) {\n\t\t\tString s = next();\n\t\t\tres[i] = s.toCharArray();\n\t\t}\n\t\t\n\t\treturn res;\n\t}", "char [][]res = new char [n][];", "res", "new char [n][]", "n", "for(int i = 0 ; i < n ;i++) {\n\t\t\tString s = next();\n\t\t\tres[i] = s.toCharArray();\n\t\t}", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tString s = next();\n\t\t\tres[i] = s.toCharArray();\n\t\t}", "{\n\t\t\tString s = next();\n\t\t\tres[i] = s.toCharArray();\n\t\t}", "String s = next();", "s", "next()", "next", "res[i] = s.toCharArray()", "res[i]", "res", "i", "s.toCharArray()", "s.toCharArray", "s", "return res;", "res", "final int n", "n", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tInputStream inputStream = System.in;\n\t\tOutputStream outputStream = System.out;\n\t\tFastInput in = new FastInput(inputStream);\n\t\tPrintWriter out = new PrintWriter(outputStream);\n\t\tABC175A solver = new ABC175A();\n\t\tsolver.solve(1, in, out);\n\t\tout.close();\n\t}\n\n\tstatic class ABC175A {\n\n\t\tpublic void solve(int testNum, FastInput in, PrintWriter out) {\n\t\t\t\n\t\t\tString s = in.next();\n\t\t\t\n\t\t\tint cnt = 0;\n\t\t\tint ans = 0;\n\t\t\tfor(int i = 0 ; i < 3 ;i++) {\n\t\t\t\tif(s.charAt(i) == 'R') {\n\t\t\t\t\tcnt++;\n\t\t\t\t\tans = Math.max(ans,cnt);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcnt = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tout.println(ans);\n\n\t\t}\n\n\t}\nstatic class FastInput{\n\tprivate final BufferedReader in;\n\tprivate String[] buff;\n\tprivate int index = 0;\n\t\n\tpublic FastInput(InputStream im) {\n\t\tin = new BufferedReader(new InputStreamReader(im));\n\t}\n\tString nextLine() {\n\t\ttry {\n\t\t\treturn in.readLine();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}\n\tString next() {\n\t\twhile (buff == null || index >= buff.length) {\n\t\t\tbuff = nextLine().split(\" \");\n\t\t\tindex = 0;\n\t\t}\n\t\treturn buff[index++];\n\t}\n\tint nextInt() {\n\t\treturn Integer.parseInt(next());\n\t}\n\t\n\tlong nextLong() {\n\t\treturn Long.parseLong(next());\n\t}\n\t\n\tDouble nextDouble() {\n\t\treturn Double.parseDouble(next());\n\t}\n\t\n\tBigInteger nextBigInteger() {\n\t\treturn new BigInteger(next());\n\t}\n\t\n\tBigDecimal nextBigDecimal() {\n\t\treturn new BigDecimal(next());\n\t}\n\t\n\tpublic int[] nextIntArray(final int n) {\n\t\tfinal int[] res = new int [n];\n\t\t\n\t\tfor(int i = 0 ; i < n ;i++) {\n\t\t\tres[i] = nextInt();\n\t\t}\n\t\treturn res;\n\t}\n\t\n\tpublic long[] nextLongArray(final int n) {\n\t\tfinal long[] res= new long [n];\n\t\t\n\t\tfor(int i = 0 ; i < n ;i++) {\n\t\t\tres[i] = nextLong();\n\t\t}\n\t\treturn res;\n\t}\n\t\n\tpublic double[] nextDoubleArray(final int n ) {\n\t\tfinal double[] res = new double [n];\n\t\t\n\t\tfor(int i = 0 ; i < n ;i++) {\n\t\t\tres[i] = nextDouble();\n\t\t}\n\t\treturn res;\n\t}\n\t\n\t\n\tpublic int[][] nextInt2DArray(final int n , final int m){\n\t\tint [][]res = new int [n][m];\n\t\t\n\t\tfor(int i = 0 ; i < n ;i++) {\n\t\t\tfor(int j = 0 ; j < m ;j++) {\n\t\t\t\tres[i][j] = nextInt();\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}\n\tpublic long[][] nextLong2DArray(final int n , final int m){\n\t\tlong [][]res = new long [n][m];\n\t\t\n\t\tfor(int i = 0 ; i < n ;i++) {\n\t\t\tfor(int j = 0 ; j < m ;j++) {\n\t\t\t\tres[i][j] = nextLong();\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}\n\t\n\tpublic char[][] nextChar2DArray(final int n){\n\t\tchar [][]res = new char [n][];\n\t\t\n\t\tfor(int i = 0 ; i < n ;i++) {\n\t\t\tString s = next();\n\t\t\tres[i] = s.toCharArray();\n\t\t}\n\t\t\n\t\treturn res;\n\t}\n}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tInputStream inputStream = System.in;\n\t\tOutputStream outputStream = System.out;\n\t\tFastInput in = new FastInput(inputStream);\n\t\tPrintWriter out = new PrintWriter(outputStream);\n\t\tABC175A solver = new ABC175A();\n\t\tsolver.solve(1, in, out);\n\t\tout.close();\n\t}\n\n\tstatic class ABC175A {\n\n\t\tpublic void solve(int testNum, FastInput in, PrintWriter out) {\n\t\t\t\n\t\t\tString s = in.next();\n\t\t\t\n\t\t\tint cnt = 0;\n\t\t\tint ans = 0;\n\t\t\tfor(int i = 0 ; i < 3 ;i++) {\n\t\t\t\tif(s.charAt(i) == 'R') {\n\t\t\t\t\tcnt++;\n\t\t\t\t\tans = Math.max(ans,cnt);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcnt = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tout.println(ans);\n\n\t\t}\n\n\t}\nstatic class FastInput{\n\tprivate final BufferedReader in;\n\tprivate String[] buff;\n\tprivate int index = 0;\n\t\n\tpublic FastInput(InputStream im) {\n\t\tin = new BufferedReader(new InputStreamReader(im));\n\t}\n\tString nextLine() {\n\t\ttry {\n\t\t\treturn in.readLine();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}\n\tString next() {\n\t\twhile (buff == null || index >= buff.length) {\n\t\t\tbuff = nextLine().split(\" \");\n\t\t\tindex = 0;\n\t\t}\n\t\treturn buff[index++];\n\t}\n\tint nextInt() {\n\t\treturn Integer.parseInt(next());\n\t}\n\t\n\tlong nextLong() {\n\t\treturn Long.parseLong(next());\n\t}\n\t\n\tDouble nextDouble() {\n\t\treturn Double.parseDouble(next());\n\t}\n\t\n\tBigInteger nextBigInteger() {\n\t\treturn new BigInteger(next());\n\t}\n\t\n\tBigDecimal nextBigDecimal() {\n\t\treturn new BigDecimal(next());\n\t}\n\t\n\tpublic int[] nextIntArray(final int n) {\n\t\tfinal int[] res = new int [n];\n\t\t\n\t\tfor(int i = 0 ; i < n ;i++) {\n\t\t\tres[i] = nextInt();\n\t\t}\n\t\treturn res;\n\t}\n\t\n\tpublic long[] nextLongArray(final int n) {\n\t\tfinal long[] res= new long [n];\n\t\t\n\t\tfor(int i = 0 ; i < n ;i++) {\n\t\t\tres[i] = nextLong();\n\t\t}\n\t\treturn res;\n\t}\n\t\n\tpublic double[] nextDoubleArray(final int n ) {\n\t\tfinal double[] res = new double [n];\n\t\t\n\t\tfor(int i = 0 ; i < n ;i++) {\n\t\t\tres[i] = nextDouble();\n\t\t}\n\t\treturn res;\n\t}\n\t\n\t\n\tpublic int[][] nextInt2DArray(final int n , final int m){\n\t\tint [][]res = new int [n][m];\n\t\t\n\t\tfor(int i = 0 ; i < n ;i++) {\n\t\t\tfor(int j = 0 ; j < m ;j++) {\n\t\t\t\tres[i][j] = nextInt();\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}\n\tpublic long[][] nextLong2DArray(final int n , final int m){\n\t\tlong [][]res = new long [n][m];\n\t\t\n\t\tfor(int i = 0 ; i < n ;i++) {\n\t\t\tfor(int j = 0 ; j < m ;j++) {\n\t\t\t\tres[i][j] = nextLong();\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}\n\t\n\tpublic char[][] nextChar2DArray(final int n){\n\t\tchar [][]res = new char [n][];\n\t\t\n\t\tfor(int i = 0 ; i < n ;i++) {\n\t\t\tString s = next();\n\t\t\tres[i] = s.toCharArray();\n\t\t}\n\t\t\n\t\treturn res;\n\t}\n}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.io.PrintWriter; import java.math.BigDecimal; import java.math.BigInteger; public class Main { public static void main(String[] args) { InputStream inputStream = System.in; OutputStream outputStream = System.out; FastInput in = new FastInput(inputStream); PrintWriter out = new PrintWriter(outputStream); ABC175A solver = new ABC175A(); solver.solve(1, in, out); out.close(); } static class ABC175A { public void solve(int testNum, FastInput in, PrintWriter out) { String s = in.next(); int cnt = 0; int ans = 0; for(int i = 0 ; i < 3 ;i++) { if(s.charAt(i) == 'R') { cnt++; ans = Math.max(ans,cnt); } else { cnt = 0; } } out.println(ans); } } static class FastInput{ private final BufferedReader in; private String[] buff; private int index = 0; public FastInput(InputStream im) { in = new BufferedReader(new InputStreamReader(im)); } String nextLine() { try { return in.readLine(); } catch (IOException e) { e.printStackTrace(); } return null; } String next() { while (buff == null || index >= buff.length) { buff = nextLine().split(" "); index = 0; } return buff[index++]; } int nextInt() { return Integer.parseInt(next()); } long nextLong() { return Long.parseLong(next()); } Double nextDouble() { return Double.parseDouble(next()); } BigInteger nextBigInteger() { return new BigInteger(next()); } BigDecimal nextBigDecimal() { return new BigDecimal(next()); } public int[] nextIntArray(final int n) { final int[] res = new int [n]; for(int i = 0 ; i < n ;i++) { res[i] = nextInt(); } return res; } public long[] nextLongArray(final int n) { final long[] res= new long [n]; for(int i = 0 ; i < n ;i++) { res[i] = nextLong(); } return res; } public double[] nextDoubleArray(final int n ) { final double[] res = new double [n]; for(int i = 0 ; i < n ;i++) { res[i] = nextDouble(); } return res; } public int[][] nextInt2DArray(final int n , final int m){ int [][]res = new int [n][m]; for(int i = 0 ; i < n ;i++) { for(int j = 0 ; j < m ;j++) { res[i][j] = nextInt(); } } return res; } public long[][] nextLong2DArray(final int n , final int m){ long [][]res = new long [n][m]; for(int i = 0 ; i < n ;i++) { for(int j = 0 ; j < m ;j++) { res[i][j] = nextLong(); } } return res; } public char[][] nextChar2DArray(final int n){ char [][]res = new char [n][]; for(int i = 0 ; i < n ;i++) { String s = next(); res[i] = s.toCharArray(); } return res; } } }
[ 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, 28, 13, 13, 30, 30, 14, 2, 13, 4, 18, 13, 30, 0, 13, 4, 18, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 52, 5 ], [ 52, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 19, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 26, 29 ], [ 30, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 31, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 8, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 6, 49 ], [ 49, 50 ], [ 0, 51 ], [ 51, 52 ], [ 51, 53 ] ]
[ "import java.util.Scanner;\npublic class Main{\n\tpublic static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tString S = sc.next();\n \tString[] Rain = S.split(\"S\");\n \t\n \tint max_r = 0;\n \tfor(String r : Rain){\n \tif(max_r < r.length()){\n \tmax_r = r.length();\n }\n }\n System.out.println(max_r);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\tpublic static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tString S = sc.next();\n \tString[] Rain = S.split(\"S\");\n \t\n \tint max_r = 0;\n \tfor(String r : Rain){\n \tif(max_r < r.length()){\n \tmax_r = r.length();\n }\n }\n System.out.println(max_r);\n }\n}", "Main", "public static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tString S = sc.next();\n \tString[] Rain = S.split(\"S\");\n \t\n \tint max_r = 0;\n \tfor(String r : Rain){\n \tif(max_r < r.length()){\n \tmax_r = r.length();\n }\n }\n System.out.println(max_r);\n }", "main", "{\n \tScanner sc = new Scanner(System.in);\n \tString S = sc.next();\n \tString[] Rain = S.split(\"S\");\n \t\n \tint max_r = 0;\n \tfor(String r : Rain){\n \tif(max_r < r.length()){\n \tmax_r = r.length();\n }\n }\n System.out.println(max_r);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String S = sc.next();", "S", "sc.next()", "sc.next", "sc", "String[] Rain = S.split(\"S\");", "Rain", "S.split(\"S\")", "S.split", "S", "\"S\"", "int max_r = 0;", "max_r", "0", "for(String r : Rain){\n \tif(max_r < r.length()){\n \tmax_r = r.length();\n }\n }", "String r", "Rain", "{\n \tif(max_r < r.length()){\n \tmax_r = r.length();\n }\n }", "{\n \tif(max_r < r.length()){\n \tmax_r = r.length();\n }\n }", "if(max_r < r.length()){\n \tmax_r = r.length();\n }", "max_r < r.length()", "max_r", "r.length()", "r.length", "r", "{\n \tmax_r = r.length();\n }", "max_r = r.length()", "max_r", "r.length()", "r.length", "r", "System.out.println(max_r)", "System.out.println", "System.out", "System", "System.out", "max_r", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tString S = sc.next();\n \tString[] Rain = S.split(\"S\");\n \t\n \tint max_r = 0;\n \tfor(String r : Rain){\n \tif(max_r < r.length()){\n \tmax_r = r.length();\n }\n }\n System.out.println(max_r);\n }\n}", "public class Main{\n\tpublic static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tString S = sc.next();\n \tString[] Rain = S.split(\"S\");\n \t\n \tint max_r = 0;\n \tfor(String r : Rain){\n \tif(max_r < r.length()){\n \tmax_r = r.length();\n }\n }\n System.out.println(max_r);\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(); String[] Rain = S.split("S"); int max_r = 0; for(String r : Rain){ if(max_r < r.length()){ max_r = r.length(); } } System.out.println(max_r); } }
[ 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, 14, 2, 13, 13, 0, 13, 13, 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 ], [ 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 ], [ 45, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 52, 53 ], [ 52, 54 ], [ 38, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 8, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 6, 65 ], [ 65, 66 ] ]
[ "import java.util.*;\n \nclass Main{\n \npublic static void main(String args[]){\n \nScanner s = new Scanner(System.in);\n\t\tString s1 = s.next();\n\t\t \n\t\tint count=0;int \n\t\tmaxcount=0;\n\t\tfor(int i=0;i<s1.length();i++){\n\t\t \n\t\tif(s1.charAt(i) == 'R') {\n\t\t\tcount++;\n\t\t\tif(count>maxcount)\n\t\t maxcount=count;\n\t\t\t//System.out.println(count);\n\t\t}\n\t\telse {\n\t\t\t\n\t\tcount=0;\n\t\t \n\t\t}\n\t\t \n\t\t}\n\t\t \n\t\tSystem.out.println(maxcount);\n}\n}", "import java.util.*;", "util.*", "java", "class Main{\n \npublic static void main(String args[]){\n \nScanner s = new Scanner(System.in);\n\t\tString s1 = s.next();\n\t\t \n\t\tint count=0;int \n\t\tmaxcount=0;\n\t\tfor(int i=0;i<s1.length();i++){\n\t\t \n\t\tif(s1.charAt(i) == 'R') {\n\t\t\tcount++;\n\t\t\tif(count>maxcount)\n\t\t maxcount=count;\n\t\t\t//System.out.println(count);\n\t\t}\n\t\telse {\n\t\t\t\n\t\tcount=0;\n\t\t \n\t\t}\n\t\t \n\t\t}\n\t\t \n\t\tSystem.out.println(maxcount);\n}\n}", "Main", "public static void main(String args[]){\n \nScanner s = new Scanner(System.in);\n\t\tString s1 = s.next();\n\t\t \n\t\tint count=0;int \n\t\tmaxcount=0;\n\t\tfor(int i=0;i<s1.length();i++){\n\t\t \n\t\tif(s1.charAt(i) == 'R') {\n\t\t\tcount++;\n\t\t\tif(count>maxcount)\n\t\t maxcount=count;\n\t\t\t//System.out.println(count);\n\t\t}\n\t\telse {\n\t\t\t\n\t\tcount=0;\n\t\t \n\t\t}\n\t\t \n\t\t}\n\t\t \n\t\tSystem.out.println(maxcount);\n}", "main", "{\n \nScanner s = new Scanner(System.in);\n\t\tString s1 = s.next();\n\t\t \n\t\tint count=0;int \n\t\tmaxcount=0;\n\t\tfor(int i=0;i<s1.length();i++){\n\t\t \n\t\tif(s1.charAt(i) == 'R') {\n\t\t\tcount++;\n\t\t\tif(count>maxcount)\n\t\t maxcount=count;\n\t\t\t//System.out.println(count);\n\t\t}\n\t\telse {\n\t\t\t\n\t\tcount=0;\n\t\t \n\t\t}\n\t\t \n\t\t}\n\t\t \n\t\tSystem.out.println(maxcount);\n}", "Scanner s = new Scanner(System.in);", "s", "new Scanner(System.in)", "String s1 = s.next();", "s1", "s.next()", "s.next", "s", "int count=0;", "count", "0", "int \n\t\tmaxcount=0;", "maxcount", "0", "for(int i=0;i<s1.length();i++){\n\t\t \n\t\tif(s1.charAt(i) == 'R') {\n\t\t\tcount++;\n\t\t\tif(count>maxcount)\n\t\t maxcount=count;\n\t\t\t//System.out.println(count);\n\t\t}\n\t\telse {\n\t\t\t\n\t\tcount=0;\n\t\t \n\t\t}\n\t\t \n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<s1.length()", "i", "s1.length()", "s1.length", "s1", "i++", "i++", "i", "{\n\t\t \n\t\tif(s1.charAt(i) == 'R') {\n\t\t\tcount++;\n\t\t\tif(count>maxcount)\n\t\t maxcount=count;\n\t\t\t//System.out.println(count);\n\t\t}\n\t\telse {\n\t\t\t\n\t\tcount=0;\n\t\t \n\t\t}\n\t\t \n\t\t}", "{\n\t\t \n\t\tif(s1.charAt(i) == 'R') {\n\t\t\tcount++;\n\t\t\tif(count>maxcount)\n\t\t maxcount=count;\n\t\t\t//System.out.println(count);\n\t\t}\n\t\telse {\n\t\t\t\n\t\tcount=0;\n\t\t \n\t\t}\n\t\t \n\t\t}", "if(s1.charAt(i) == 'R') {\n\t\t\tcount++;\n\t\t\tif(count>maxcount)\n\t\t maxcount=count;\n\t\t\t//System.out.println(count);\n\t\t}\n\t\telse {\n\t\t\t\n\t\tcount=0;\n\t\t \n\t\t}", "s1.charAt(i) == 'R'", "s1.charAt(i)", "s1.charAt", "s1", "i", "'R'", "{\n\t\t\tcount++;\n\t\t\tif(count>maxcount)\n\t\t maxcount=count;\n\t\t\t//System.out.println(count);\n\t\t}", "count++", "count", "if(count>maxcount)\n\t\t maxcount=count;", "count>maxcount", "count", "maxcount", "maxcount=count", "maxcount", "count", "{\n\t\t\t\n\t\tcount=0;\n\t\t \n\t\t}", "count=0", "count", "0", "System.out.println(maxcount)", "System.out.println", "System.out", "System", "System.out", "maxcount", "String args[]", "args" ]
import java.util.*; class Main{ public static void main(String args[]){ Scanner s = new Scanner(System.in); String s1 = s.next(); int count=0;int maxcount=0; for(int i=0;i<s1.length();i++){ if(s1.charAt(i) == 'R') { count++; if(count>maxcount) maxcount=count; //System.out.println(count); } else { count=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, 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, 14, 2, 13, 13, 0, 13, 13, 0, 13, 17, 14, 2, 13, 13, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 83, 11 ], [ 83, 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 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 58, 60 ], [ 53, 61 ], [ 61, 62 ], [ 61, 63 ], [ 14, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 68, 69 ], [ 68, 70 ], [ 14, 71 ], [ 71, 72 ], [ 71, 73 ], [ 14, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 12, 80 ], [ 80, 81 ], [ 0, 82 ], [ 82, 83 ], [ 82, 84 ] ]
[ "\n\nimport java.util.*;\nimport java.lang.*;\nimport java.io.*;\n\npublic class Main\n{\n public static void main (String[] args)\n {\n // your code goes here\n Scanner s = new Scanner(System.in);\n String str = s.next();\n int max = 0;\n int c = 0;\n for(int j=0; j<str.length(); j++)\n {\n if(str.charAt(j)=='R')\n c++;\n else\n {\n if(c>max)\n max = c;\n c = 0;\n }\n }\n if(c>max)\n max = c;\n c = 0;\n System.out.println(max);\n }\n}", "import java.util.*;", "util.*", "java", "import java.lang.*;", "lang.*", "java", "import java.io.*;", "io.*", "java", "public class Main\n{\n public static void main (String[] args)\n {\n // your code goes here\n Scanner s = new Scanner(System.in);\n String str = s.next();\n int max = 0;\n int c = 0;\n for(int j=0; j<str.length(); j++)\n {\n if(str.charAt(j)=='R')\n c++;\n else\n {\n if(c>max)\n max = c;\n c = 0;\n }\n }\n if(c>max)\n max = c;\n c = 0;\n System.out.println(max);\n }\n}", "Main", "public static void main (String[] args)\n {\n // your code goes here\n Scanner s = new Scanner(System.in);\n String str = s.next();\n int max = 0;\n int c = 0;\n for(int j=0; j<str.length(); j++)\n {\n if(str.charAt(j)=='R')\n c++;\n else\n {\n if(c>max)\n max = c;\n c = 0;\n }\n }\n if(c>max)\n max = c;\n c = 0;\n System.out.println(max);\n }", "main", "{\n // your code goes here\n Scanner s = new Scanner(System.in);\n String str = s.next();\n int max = 0;\n int c = 0;\n for(int j=0; j<str.length(); j++)\n {\n if(str.charAt(j)=='R')\n c++;\n else\n {\n if(c>max)\n max = c;\n c = 0;\n }\n }\n if(c>max)\n max = c;\n c = 0;\n System.out.println(max);\n }", "Scanner s = new Scanner(System.in);", "s", "new Scanner(System.in)", "String str = s.next();", "str", "s.next()", "s.next", "s", "int max = 0;", "max", "0", "int c = 0;", "c", "0", "for(int j=0; j<str.length(); j++)\n {\n if(str.charAt(j)=='R')\n c++;\n else\n {\n if(c>max)\n max = c;\n c = 0;\n }\n }", "int j=0;", "int j=0;", "j", "0", "j<str.length()", "j", "str.length()", "str.length", "str", "j++", "j++", "j", "{\n if(str.charAt(j)=='R')\n c++;\n else\n {\n if(c>max)\n max = c;\n c = 0;\n }\n }", "{\n if(str.charAt(j)=='R')\n c++;\n else\n {\n if(c>max)\n max = c;\n c = 0;\n }\n }", "if(str.charAt(j)=='R')\n c++;\n else\n {\n if(c>max)\n max = c;\n c = 0;\n }", "str.charAt(j)=='R'", "str.charAt(j)", "str.charAt", "str", "j", "'R'", "c++", "c", "{\n if(c>max)\n max = c;\n c = 0;\n }", "if(c>max)\n max = c;", "c>max", "c", "max", "max = c", "max", "c", "c = 0", "c", "0", "if(c>max)\n max = c;", "c>max", "c", "max", "max = c", "max", "c", "c = 0", "c", "0", "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 // your code goes here\n Scanner s = new Scanner(System.in);\n String str = s.next();\n int max = 0;\n int c = 0;\n for(int j=0; j<str.length(); j++)\n {\n if(str.charAt(j)=='R')\n c++;\n else\n {\n if(c>max)\n max = c;\n c = 0;\n }\n }\n if(c>max)\n max = c;\n c = 0;\n System.out.println(max);\n }\n}", "public class Main\n{\n public static void main (String[] args)\n {\n // your code goes here\n Scanner s = new Scanner(System.in);\n String str = s.next();\n int max = 0;\n int c = 0;\n for(int j=0; j<str.length(); j++)\n {\n if(str.charAt(j)=='R')\n c++;\n else\n {\n if(c>max)\n max = c;\n c = 0;\n }\n }\n if(c>max)\n max = c;\n c = 0;\n System.out.println(max);\n }\n}", "Main" ]
import java.util.*; import java.lang.*; import java.io.*; public class Main { public static void main (String[] args) { // your code goes here Scanner s = new Scanner(System.in); String str = s.next(); int max = 0; int c = 0; for(int j=0; j<str.length(); j++) { if(str.charAt(j)=='R') c++; else { if(c>max) max = c; c = 0; } } if(c>max) max = c; c = 0; System.out.println(max); } }
[ 7, 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, 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 ], [ 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 ], [ 18, 19 ], [ 19, 20 ], [ 18, 21 ], [ 17, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 22, 27 ], [ 17, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 28, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 39, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 39, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 50, 55 ], [ 6, 56 ], [ 56, 57 ], [ 0, 58 ], [ 58, 59 ], [ 58, 60 ] ]
[ "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 if (s.equals(\"RRR\")) System.out.println(\"3\");\n else if (s.contains(\"RR\")) System.out.println(\"2\");\n else if (s.contains(\"R\")) System.out.println(\"1\");\n else System.out.println(\"0\");\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 if (s.equals(\"RRR\")) System.out.println(\"3\");\n else if (s.contains(\"RR\")) System.out.println(\"2\");\n else if (s.contains(\"R\")) System.out.println(\"1\");\n else System.out.println(\"0\");\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n if (s.equals(\"RRR\")) System.out.println(\"3\");\n else if (s.contains(\"RR\")) System.out.println(\"2\");\n else if (s.contains(\"R\")) System.out.println(\"1\");\n else System.out.println(\"0\");\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n if (s.equals(\"RRR\")) System.out.println(\"3\");\n else if (s.contains(\"RR\")) System.out.println(\"2\");\n else if (s.contains(\"R\")) System.out.println(\"1\");\n else System.out.println(\"0\");\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "if (s.equals(\"RRR\")) System.out.println(\"3\");\n else if (s.contains(\"RR\")) System.out.println(\"2\");\n else if (s.contains(\"R\")) System.out.println(\"1\");\n else System.out.println(\"0\");", "s.equals(\"RRR\")", "s.equals", "s", "\"RRR\"", "System.out.println(\"3\")", "System.out.println", "System.out", "System", "System.out", "\"3\"", "if (s.contains(\"RR\")) System.out.println(\"2\");\n else if (s.contains(\"R\")) System.out.println(\"1\");\n else System.out.println(\"0\");", "s.contains(\"RR\")", "s.contains", "s", "\"RR\"", "System.out.println(\"2\")", "System.out.println", "System.out", "System", "System.out", "\"2\"", "if (s.contains(\"R\")) System.out.println(\"1\");\n else System.out.println(\"0\");", "s.contains(\"R\")", "s.contains", "s", "\"R\"", "System.out.println(\"1\")", "System.out.println", "System.out", "System", "System.out", "\"1\"", "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 s = sc.next();\n if (s.equals(\"RRR\")) System.out.println(\"3\");\n else if (s.contains(\"RR\")) System.out.println(\"2\");\n else if (s.contains(\"R\")) System.out.println(\"1\");\n else System.out.println(\"0\");\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 if (s.equals(\"RRR\")) System.out.println(\"3\");\n else if (s.contains(\"RR\")) System.out.println(\"2\");\n else if (s.contains(\"R\")) System.out.println(\"1\");\n else System.out.println(\"0\");\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(); if (s.equals("RRR")) System.out.println("3"); else if (s.contains("RR")) System.out.println("2"); else if (s.contains("R")) System.out.println("1"); else System.out.println("0"); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 41, 13, 41, 13, 17, 41, 13, 17, 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, 41, 13, 12, 13, 30, 41, 13, 20, 0, 13, 20, 41, 13, 17, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 40, 13, 14, 4, 18, 13, 17, 40, 13, 14, 4, 18, 13, 17, 40, 13, 4, 18, 18, 13, 13, 13, 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, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 4, 13, 17, 12, 13, 30, 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, 12, 13, 30, 29, 4, 18, 13, 12, 13, 30, 4, 18, 13, 17, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 257, 8 ], [ 257, 9 ], [ 9, 10 ], [ 257, 11 ], [ 11, 12 ], [ 257, 13 ], [ 13, 14 ], [ 13, 15 ], [ 257, 16 ], [ 16, 17 ], [ 16, 18 ], [ 257, 19 ], [ 19, 20 ], [ 257, 21 ], [ 21, 22 ], [ 257, 23 ], [ 23, 24 ], [ 257, 25 ], [ 25, 26 ], [ 257, 27 ], [ 27, 28 ], [ 257, 29 ], [ 29, 30 ], [ 257, 31 ], [ 31, 32 ], [ 257, 33 ], [ 33, 34 ], [ 257, 35 ], [ 35, 36 ], [ 257, 37 ], [ 37, 38 ], [ 257, 39 ], [ 39, 40 ], [ 257, 41 ], [ 41, 42 ], [ 257, 43 ], [ 43, 44 ], [ 257, 45 ], [ 45, 46 ], [ 257, 47 ], [ 47, 48 ], [ 257, 49 ], [ 49, 50 ], [ 257, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 57, 58 ], [ 57, 59 ], [ 53, 60 ], [ 60, 61 ], [ 60, 62 ], [ 53, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 53, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 68, 73 ], [ 73, 74 ], [ 53, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 75, 80 ], [ 80, 81 ], [ 53, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 82, 87 ], [ 87, 88 ], [ 53, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 53, 95 ], [ 95, 96 ], [ 96, 97 ], [ 51, 98 ], [ 98, 99 ], [ 257, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 100, 104 ], [ 104, 105 ], [ 100, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 106, 112 ], [ 112, 113 ], [ 100, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 114, 120 ], [ 120, 121 ], [ 100, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 126, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 125, 134 ], [ 134, 135 ], [ 134, 136 ], [ 124, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 100, 141 ], [ 141, 142 ], [ 141, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 100, 148 ], [ 148, 149 ], [ 148, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 152, 155 ], [ 155, 156 ], [ 100, 157 ], [ 157, 158 ], [ 157, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 161, 164 ], [ 164, 165 ], [ 100, 166 ], [ 166, 167 ], [ 166, 168 ], [ 168, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 170, 174 ], [ 100, 175 ], [ 175, 176 ], [ 175, 177 ], [ 177, 178 ], [ 178, 179 ], [ 179, 180 ], [ 180, 181 ], [ 179, 182 ], [ 182, 183 ], [ 100, 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 ], [ 202, 203 ], [ 203, 204 ], [ 204, 205 ], [ 204, 206 ], [ 203, 207 ], [ 207, 208 ], [ 186, 209 ], [ 209, 210 ], [ 184, 211 ], [ 211, 212 ], [ 100, 213 ], [ 213, 214 ], [ 213, 215 ], [ 215, 216 ], [ 216, 217 ], [ 216, 218 ], [ 215, 220 ], [ 220, 221 ], [ 221, 222 ], [ 222, 223 ], [ 222, 224 ], [ 220, 225 ], [ 225, 226 ], [ 225, 227 ], [ 220, 228 ], [ 228, 229 ], [ 229, 230 ], [ 220, 231 ], [ 231, 232 ], [ 232, 233 ], [ 233, 234 ], [ 233, 235 ], [ 232, 236 ], [ 236, 237 ], [ 215, 238 ], [ 238, 239 ], [ 213, 240 ], [ 240, 241 ], [ 100, 242 ], [ 242, 243 ], [ 242, 244 ], [ 244, 245 ], [ 245, 246 ], [ 246, 247 ], [ 247, 248 ], [ 100, 249 ], [ 249, 250 ], [ 249, 251 ], [ 251, 252 ], [ 252, 253 ], [ 253, 254 ], [ 252, 255 ], [ 0, 256 ], [ 256, 257 ], [ 256, 258 ] ]
[ "import java.util.*;\nimport java.io.*;\n\npublic class Main {\n\tstatic PrintWriter out;\n\tstatic StringBuilder sb;\n\tstatic int mod = 1000000007;\n\tstatic long inf = (long) 1e16;\n\tstatic int[] l, r;\n\tstatic int n, c, t;\n\tstatic ArrayList<Integer>[] ad;\n\tstatic long[][][] memo;\n\tstatic boolean f;\n\tstatic boolean[] vis[];\n\tstatic int[][] mat, mat1;\n\tstatic int[] ans, a;\n\tstatic ArrayList<Integer> rr, bb, gg;\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\tout = new PrintWriter(System.out);\n int ans=0;\n String s=sc.nextLine();\n if(s.contains(\"R\"))\n \tans++;\n if(s.contains(\"RR\"))\n \tans++;\n if(s.contains(\"RRR\"))\n \tans++;\n System.out.println(ans);\n\t\tout.flush();\n\t}\n\n\tstatic class Scanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\n\t\tpublic Scanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}\n\n\t\tpublic Scanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n\n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n\n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tpublic char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}\n\n\t\tpublic Long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic int[] nextArrInt(int n) throws IOException {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic long[] nextArrLong(int n) throws IOException {\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n\n\t\tpublic void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}\n\t}\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "public class Main {\n\tstatic PrintWriter out;\n\tstatic StringBuilder sb;\n\tstatic int mod = 1000000007;\n\tstatic long inf = (long) 1e16;\n\tstatic int[] l, r;\n\tstatic int n, c, t;\n\tstatic ArrayList<Integer>[] ad;\n\tstatic long[][][] memo;\n\tstatic boolean f;\n\tstatic boolean[] vis[];\n\tstatic int[][] mat, mat1;\n\tstatic int[] ans, a;\n\tstatic ArrayList<Integer> rr, bb, gg;\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\tout = new PrintWriter(System.out);\n int ans=0;\n String s=sc.nextLine();\n if(s.contains(\"R\"))\n \tans++;\n if(s.contains(\"RR\"))\n \tans++;\n if(s.contains(\"RRR\"))\n \tans++;\n System.out.println(ans);\n\t\tout.flush();\n\t}\n\n\tstatic class Scanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\n\t\tpublic Scanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}\n\n\t\tpublic Scanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n\n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n\n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tpublic char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}\n\n\t\tpublic Long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic int[] nextArrInt(int n) throws IOException {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic long[] nextArrLong(int n) throws IOException {\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n\n\t\tpublic void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}\n\t}\n}", "Main", "static PrintWriter out;", "out", "static StringBuilder sb;", "sb", "static int mod = 1000000007;", "mod", "1000000007", "static long inf = (long) 1e16;", "inf", "(long) 1e16", "static int[] l", "l", "r;", "r", "static int n", "n", "c", "c", "t;", "t", "static ArrayList<Integer>[] ad;", "ad", "static long[][][] memo;", "memo", "static boolean f;", "f", "static boolean[] vis[];", "vis", "static int[][] mat", "mat", "mat1;", "mat1", "static int[] ans", "ans", "a;", "a", "static ArrayList<Integer> rr", "rr", "bb", "bb", "gg;", "gg", "public static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\tout = new PrintWriter(System.out);\n int ans=0;\n String s=sc.nextLine();\n if(s.contains(\"R\"))\n \tans++;\n if(s.contains(\"RR\"))\n \tans++;\n if(s.contains(\"RRR\"))\n \tans++;\n System.out.println(ans);\n\t\tout.flush();\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tout = new PrintWriter(System.out);\n int ans=0;\n String s=sc.nextLine();\n if(s.contains(\"R\"))\n \tans++;\n if(s.contains(\"RR\"))\n \tans++;\n if(s.contains(\"RRR\"))\n \tans++;\n System.out.println(ans);\n\t\tout.flush();\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "out = new PrintWriter(System.out)", "out", "new PrintWriter(System.out)", "int ans=0;", "ans", "0", "String s=sc.nextLine();", "s", "sc.nextLine()", "sc.nextLine", "sc", "if(s.contains(\"R\"))\n \tans++;", "s.contains(\"R\")", "s.contains", "s", "\"R\"", "ans++", "ans", "if(s.contains(\"RR\"))\n \tans++;", "s.contains(\"RR\")", "s.contains", "s", "\"RR\"", "ans++", "ans", "if(s.contains(\"RRR\"))\n \tans++;", "s.contains(\"RRR\")", "s.contains", "s", "\"RRR\"", "ans++", "ans", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "out.flush()", "out.flush", "out", "String[] args", "args", "static class Scanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\n\t\tpublic Scanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}\n\n\t\tpublic Scanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n\n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n\n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tpublic char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}\n\n\t\tpublic Long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic int[] nextArrInt(int n) throws IOException {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic long[] nextArrLong(int n) throws IOException {\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n\n\t\tpublic void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}\n\t}", "Scanner", "StringTokenizer st;", "st", "BufferedReader br;", "br", "public Scanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}", "Scanner", "{\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}", "br = new BufferedReader(new InputStreamReader(system))", "br", "new BufferedReader(new InputStreamReader(system))", "InputStream system", "system", "public Scanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}", "Scanner", "{\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}", "br = new BufferedReader(new FileReader(file))", "br", "new BufferedReader(new FileReader(file))", "String file", "file", "public String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}", "next", "{\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}", "while (st == null || !st.hasMoreTokens())\n\t\t\t\tst = 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 String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}", "nextLine", "{\n\t\t\treturn br.readLine();\n\t\t}", "return br.readLine();", "br.readLine()", "br.readLine", "br", "public int nextInt() throws 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 double nextDouble() throws IOException {\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 char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}", "nextChar", "{\n\t\t\treturn next().charAt(0);\n\t\t}", "return next().charAt(0);", "next().charAt(0)", "next().charAt", "next()", "next", "0", "public Long nextLong() throws 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[] nextArrInt(int n) throws IOException {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}", "nextArrInt", "{\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}", "int[] a = new int[n];", "a", "new int[n]", "n", "for (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "a[i] = nextInt();", "a[i] = nextInt()", "a[i]", "a", "i", "nextInt()", "nextInt", "return a;", "a", "int n", "n", "public long[] nextArrLong(int n) throws IOException {\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();\n\t\t\treturn a;\n\t\t}", "nextArrLong", "{\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[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++)\n\t\t\t\ta[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 boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}", "ready", "{\n\t\t\treturn br.ready();\n\t\t}", "return br.ready();", "br.ready()", "br.ready", "br", "public void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}", "waitForInput", "{\n\t\t\tThread.sleep(3000);\n\t\t}", "Thread.sleep(3000)", "Thread.sleep", "Thread", "3000", "public class Main {\n\tstatic PrintWriter out;\n\tstatic StringBuilder sb;\n\tstatic int mod = 1000000007;\n\tstatic long inf = (long) 1e16;\n\tstatic int[] l, r;\n\tstatic int n, c, t;\n\tstatic ArrayList<Integer>[] ad;\n\tstatic long[][][] memo;\n\tstatic boolean f;\n\tstatic boolean[] vis[];\n\tstatic int[][] mat, mat1;\n\tstatic int[] ans, a;\n\tstatic ArrayList<Integer> rr, bb, gg;\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\tout = new PrintWriter(System.out);\n int ans=0;\n String s=sc.nextLine();\n if(s.contains(\"R\"))\n \tans++;\n if(s.contains(\"RR\"))\n \tans++;\n if(s.contains(\"RRR\"))\n \tans++;\n System.out.println(ans);\n\t\tout.flush();\n\t}\n\n\tstatic class Scanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\n\t\tpublic Scanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}\n\n\t\tpublic Scanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n\n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n\n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tpublic char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}\n\n\t\tpublic Long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic int[] nextArrInt(int n) throws IOException {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic long[] nextArrLong(int n) throws IOException {\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n\n\t\tpublic void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}\n\t}\n}", "public class Main {\n\tstatic PrintWriter out;\n\tstatic StringBuilder sb;\n\tstatic int mod = 1000000007;\n\tstatic long inf = (long) 1e16;\n\tstatic int[] l, r;\n\tstatic int n, c, t;\n\tstatic ArrayList<Integer>[] ad;\n\tstatic long[][][] memo;\n\tstatic boolean f;\n\tstatic boolean[] vis[];\n\tstatic int[][] mat, mat1;\n\tstatic int[] ans, a;\n\tstatic ArrayList<Integer> rr, bb, gg;\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\tout = new PrintWriter(System.out);\n int ans=0;\n String s=sc.nextLine();\n if(s.contains(\"R\"))\n \tans++;\n if(s.contains(\"RR\"))\n \tans++;\n if(s.contains(\"RRR\"))\n \tans++;\n System.out.println(ans);\n\t\tout.flush();\n\t}\n\n\tstatic class Scanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\n\t\tpublic Scanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}\n\n\t\tpublic Scanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n\n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n\n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tpublic char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}\n\n\t\tpublic Long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic int[] nextArrInt(int n) throws IOException {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic long[] nextArrLong(int n) throws IOException {\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n\n\t\tpublic void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}\n\t}\n}", "Main" ]
import java.util.*; import java.io.*; public class Main { static PrintWriter out; static StringBuilder sb; static int mod = 1000000007; static long inf = (long) 1e16; static int[] l, r; static int n, c, t; static ArrayList<Integer>[] ad; static long[][][] memo; static boolean f; static boolean[] vis[]; static int[][] mat, mat1; static int[] ans, a; static ArrayList<Integer> rr, bb, gg; public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); out = new PrintWriter(System.out); int ans=0; String s=sc.nextLine(); if(s.contains("R")) ans++; if(s.contains("RR")) ans++; if(s.contains("RRR")) ans++; System.out.println(ans); out.flush(); } static class Scanner { StringTokenizer st; BufferedReader br; public Scanner(InputStream system) { br = new BufferedReader(new InputStreamReader(system)); } public Scanner(String file) throws Exception { br = new BufferedReader(new FileReader(file)); } public String next() throws IOException { while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine()); return st.nextToken(); } public String nextLine() throws IOException { return br.readLine(); } public int nextInt() throws IOException { return Integer.parseInt(next()); } public double nextDouble() throws IOException { return Double.parseDouble(next()); } public char nextChar() throws IOException { return next().charAt(0); } public Long nextLong() throws IOException { return Long.parseLong(next()); } public int[] nextArrInt(int n) throws IOException { int[] a = new int[n]; for (int i = 0; i < n; i++) a[i] = nextInt(); return a; } public long[] nextArrLong(int n) throws IOException { long[] a = new long[n]; for (int i = 0; i < n; i++) a[i] = nextLong(); return a; } public boolean ready() throws IOException { return br.ready(); } public void waitForInput() throws InterruptedException { Thread.sleep(3000); } } }
[ 7, 6, 13, 12, 13, 30, 41, 13, 4, 18, 20, 41, 13, 17, 14, 4, 18, 13, 17, 30, 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 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 3, 4 ], [ 3, 5 ], [ 5, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 5, 11 ], [ 11, 12 ], [ 11, 13 ], [ 5, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 15, 18 ], [ 14, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 25 ], [ 21, 26 ], [ 26, 27 ], [ 27, 28 ], [ 26, 29 ], [ 20, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 20, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 34, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 34, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 5, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 3, 53 ], [ 53, 54 ] ]
[ "class Main{\n public static void main(String[] args){\n String w=new java.util.Scanner(System.in).next();\n int a=0;\n if(w.equals(\"SSS\")){}\n else if(w.equals(\"SRR\")||w.equals(\"RRS\")){a=2;}\n else if(w.equals(\"RRR\")){a=3;}\n else{a=1;}\n System.out.println(a);\n }\n}", "class Main{\n public static void main(String[] args){\n String w=new java.util.Scanner(System.in).next();\n int a=0;\n if(w.equals(\"SSS\")){}\n else if(w.equals(\"SRR\")||w.equals(\"RRS\")){a=2;}\n else if(w.equals(\"RRR\")){a=3;}\n else{a=1;}\n System.out.println(a);\n }\n}", "Main", "public static void main(String[] args){\n String w=new java.util.Scanner(System.in).next();\n int a=0;\n if(w.equals(\"SSS\")){}\n else if(w.equals(\"SRR\")||w.equals(\"RRS\")){a=2;}\n else if(w.equals(\"RRR\")){a=3;}\n else{a=1;}\n System.out.println(a);\n }", "main", "{\n String w=new java.util.Scanner(System.in).next();\n int a=0;\n if(w.equals(\"SSS\")){}\n else if(w.equals(\"SRR\")||w.equals(\"RRS\")){a=2;}\n else if(w.equals(\"RRR\")){a=3;}\n else{a=1;}\n System.out.println(a);\n }", "String w=new java.util.Scanner(System.in).next();", "w", "new java.util.Scanner(System.in).next()", "new java.util.Scanner(System.in).next", "new java.util.Scanner(System.in)", "int a=0;", "a", "0", "if(w.equals(\"SSS\")){}\n else if(w.equals(\"SRR\")||w.equals(\"RRS\")){a=2;}\n else if(w.equals(\"RRR\")){a=3;}\n else{a=1;}", "w.equals(\"SSS\")", "w.equals", "w", "\"SSS\"", "{}", "if(w.equals(\"SRR\")||w.equals(\"RRS\")){a=2;}\n else if(w.equals(\"RRR\")){a=3;}\n else{a=1;}", "w.equals(\"SRR\")||w.equals(\"RRS\")", "w.equals(\"SRR\")", "w.equals", "w", "\"SRR\"", "w.equals(\"RRS\")", "w.equals", "w", "\"RRS\"", "{a=2;}", "a=2", "a", "2", "if(w.equals(\"RRR\")){a=3;}\n else{a=1;}", "w.equals(\"RRR\")", "w.equals", "w", "\"RRR\"", "{a=3;}", "a=3", "a", "3", "{a=1;}", "a=1", "a", "1", "System.out.println(a)", "System.out.println", "System.out", "System", "System.out", "a", "String[] args", "args" ]
class Main{ public static void main(String[] args){ String w=new java.util.Scanner(System.in).next(); int a=0; if(w.equals("SSS")){} else if(w.equals("SRR")||w.equals("RRS")){a=2;} else if(w.equals("RRR")){a=3;} else{a=1;} System.out.println(a); } }
[ 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, 4, 18, 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 ], [ 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 ], [ 8, 62 ], [ 62, 63 ], [ 63, 64 ], [ 6, 65 ], [ 65, 66 ], [ 0, 67 ], [ 67, 68 ], [ 67, 69 ] ]
[ "import java.util.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString s = sc.next();\n\t\tint ans = 0;\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(\"SSS\")) {\n\t\t\tans = 0;\n\t\t} else {\n\t\t\tans = 1;\n\t\t}\n\t\tSystem.out.println(ans);\n\t\t\n\t\tsc.close();\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString s = sc.next();\n\t\tint ans = 0;\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(\"SSS\")) {\n\t\t\tans = 0;\n\t\t} else {\n\t\t\tans = 1;\n\t\t}\n\t\tSystem.out.println(ans);\n\t\t\n\t\tsc.close();\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString s = sc.next();\n\t\tint ans = 0;\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(\"SSS\")) {\n\t\t\tans = 0;\n\t\t} else {\n\t\t\tans = 1;\n\t\t}\n\t\tSystem.out.println(ans);\n\t\t\n\t\tsc.close();\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString s = sc.next();\n\t\tint ans = 0;\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(\"SSS\")) {\n\t\t\tans = 0;\n\t\t} else {\n\t\t\tans = 1;\n\t\t}\n\t\tSystem.out.println(ans);\n\t\t\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 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(\"SSS\")) {\n\t\t\tans = 0;\n\t\t} else {\n\t\t\tans = 1;\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(\"SSS\")) {\n\t\t\tans = 0;\n\t\t} else {\n\t\t\tans = 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\tans = 2;\n\t\t}", "ans = 2", "ans", "2", "if(s.equals(\"SSS\")) {\n\t\t\tans = 0;\n\t\t} else {\n\t\t\tans = 1;\n\t\t}", "s.equals(\"SSS\")", "s.equals", "s", "\"SSS\"", "{\n\t\t\tans = 0;\n\t\t}", "ans = 0", "ans", "0", "{\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", "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\t\n\t\tString s = sc.next();\n\t\tint ans = 0;\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(\"SSS\")) {\n\t\t\tans = 0;\n\t\t} else {\n\t\t\tans = 1;\n\t\t}\n\t\tSystem.out.println(ans);\n\t\t\n\t\tsc.close();\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString s = sc.next();\n\t\tint ans = 0;\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(\"SSS\")) {\n\t\t\tans = 0;\n\t\t} else {\n\t\t\tans = 1;\n\t\t}\n\t\tSystem.out.println(ans);\n\t\t\n\t\tsc.close();\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(); int ans = 0; if(s.equals("RRR")) { ans = 3; } else if(s.equals("RRS")||s.equals("SRR")) { ans = 2; } else if(s.equals("SSS")) { ans = 0; } else { ans = 1; } 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, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 41, 13, 17, 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, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 72, 5 ], [ 72, 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 ], [ 28, 29 ], [ 20, 30 ], [ 30, 31 ], [ 31, 32 ], [ 20, 33 ], [ 34, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 39, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 45, 50 ], [ 38, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 54, 55 ], [ 34, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 58, 62 ], [ 8, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 6, 69 ], [ 69, 70 ], [ 0, 71 ], [ 71, 72 ], [ 71, 73 ] ]
[ "import java.util.*;\n\npublic class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner s = new Scanner(System.in);\n\t\tString k = s.next();\n\t\tint max = 0;\n\t\tfor(int i=0;i<k.length();i++) {\n\t\t\tint ctr = 0;\n\t\t\twhile(i<k.length() && k.charAt(i)=='R') {\n\t\t\t\ti++;\n\t\t\t\tctr++;\n\t\t\t}\n\t\t\tmax = Math.max(max,ctr);\n\t\t\t\n\t\t}\n\t\tSystem.out.println(max);\n\t\t\n\t\t\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner s = new Scanner(System.in);\n\t\tString k = s.next();\n\t\tint max = 0;\n\t\tfor(int i=0;i<k.length();i++) {\n\t\t\tint ctr = 0;\n\t\t\twhile(i<k.length() && k.charAt(i)=='R') {\n\t\t\t\ti++;\n\t\t\t\tctr++;\n\t\t\t}\n\t\t\tmax = Math.max(max,ctr);\n\t\t\t\n\t\t}\n\t\tSystem.out.println(max);\n\t\t\n\t\t\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\t\n\t\tScanner s = new Scanner(System.in);\n\t\tString k = s.next();\n\t\tint max = 0;\n\t\tfor(int i=0;i<k.length();i++) {\n\t\t\tint ctr = 0;\n\t\t\twhile(i<k.length() && k.charAt(i)=='R') {\n\t\t\t\ti++;\n\t\t\t\tctr++;\n\t\t\t}\n\t\t\tmax = Math.max(max,ctr);\n\t\t\t\n\t\t}\n\t\tSystem.out.println(max);\n\t\t\n\t\t\n\t}", "main", "{\n\t\t\n\t\tScanner s = new Scanner(System.in);\n\t\tString k = s.next();\n\t\tint max = 0;\n\t\tfor(int i=0;i<k.length();i++) {\n\t\t\tint ctr = 0;\n\t\t\twhile(i<k.length() && k.charAt(i)=='R') {\n\t\t\t\ti++;\n\t\t\t\tctr++;\n\t\t\t}\n\t\t\tmax = Math.max(max,ctr);\n\t\t\t\n\t\t}\n\t\tSystem.out.println(max);\n\t\t\n\t\t\n\t}", "Scanner s = new Scanner(System.in);", "s", "new Scanner(System.in)", "String k = s.next();", "k", "s.next()", "s.next", "s", "int max = 0;", "max", "0", "for(int i=0;i<k.length();i++) {\n\t\t\tint ctr = 0;\n\t\t\twhile(i<k.length() && k.charAt(i)=='R') {\n\t\t\t\ti++;\n\t\t\t\tctr++;\n\t\t\t}\n\t\t\tmax = Math.max(max,ctr);\n\t\t\t\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<k.length()", "i", "k.length()", "k.length", "k", "i++", "i++", "i", "{\n\t\t\tint ctr = 0;\n\t\t\twhile(i<k.length() && k.charAt(i)=='R') {\n\t\t\t\ti++;\n\t\t\t\tctr++;\n\t\t\t}\n\t\t\tmax = Math.max(max,ctr);\n\t\t\t\n\t\t}", "{\n\t\t\tint ctr = 0;\n\t\t\twhile(i<k.length() && k.charAt(i)=='R') {\n\t\t\t\ti++;\n\t\t\t\tctr++;\n\t\t\t}\n\t\t\tmax = Math.max(max,ctr);\n\t\t\t\n\t\t}", "int ctr = 0;", "ctr", "0", "while(i<k.length() && k.charAt(i)=='R') {\n\t\t\t\ti++;\n\t\t\t\tctr++;\n\t\t\t}", "i<k.length() && k.charAt(i)=='R'", "i<k.length()", "i", "k.length()", "k.length", "k", "k.charAt(i)=='R'", "k.charAt(i)", "k.charAt", "k", "i", "'R'", "{\n\t\t\t\ti++;\n\t\t\t\tctr++;\n\t\t\t}", "i++", "i", "ctr++", "ctr", "max = Math.max(max,ctr)", "max", "Math.max(max,ctr)", "Math.max", "Math", "max", "ctr", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args", "public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner s = new Scanner(System.in);\n\t\tString k = s.next();\n\t\tint max = 0;\n\t\tfor(int i=0;i<k.length();i++) {\n\t\t\tint ctr = 0;\n\t\t\twhile(i<k.length() && k.charAt(i)=='R') {\n\t\t\t\ti++;\n\t\t\t\tctr++;\n\t\t\t}\n\t\t\tmax = Math.max(max,ctr);\n\t\t\t\n\t\t}\n\t\tSystem.out.println(max);\n\t\t\n\t\t\n\t}\n}", "public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner s = new Scanner(System.in);\n\t\tString k = s.next();\n\t\tint max = 0;\n\t\tfor(int i=0;i<k.length();i++) {\n\t\t\tint ctr = 0;\n\t\t\twhile(i<k.length() && k.charAt(i)=='R') {\n\t\t\t\ti++;\n\t\t\t\tctr++;\n\t\t\t}\n\t\t\tmax = Math.max(max,ctr);\n\t\t\t\n\t\t}\n\t\tSystem.out.println(max);\n\t\t\n\t\t\n\t}\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); String k = s.next(); int max = 0; for(int i=0;i<k.length();i++) { int ctr = 0; while(i<k.length() && k.charAt(i)=='R') { i++; ctr++; } max = Math.max(max,ctr); } 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, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 17, 12, 13, 30, 42, 2, 13, 13, 30, 41, 13, 2, 2, 13, 13, 17, 14, 2, 18, 13, 13, 13, 29, 13, 14, 2, 18, 13, 13, 13, 0, 13, 2, 13, 17, 14, 2, 18, 13, 13, 13, 0, 13, 2, 13, 17, 29, 40, 17, 23, 13, 23, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 41, 13, 17, 0, 13, 2, 18, 13, 13, 17, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 40, 13, 30, 30, 41, 13, 18, 13, 13, 0, 18, 13, 13, 18, 13, 13, 0, 18, 13, 13, 13, 29, 4, 18, 13, 13, 23, 13, 12, 13, 30, 14, 2, 13, 17, 29, 13, 14, 2, 13, 17, 29, 13, 14, 2, 13, 13, 29, 13, 14, 2, 13, 13, 29, 4, 13, 2, 13, 13, 13, 29, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 29, 2, 2, 13, 13, 4, 13, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 40, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 29, 2, 4, 13, 13, 2, 4, 13, 13, 4, 13, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 13, 2, 13, 13, 29, 13, 23, 13, 12, 13, 30, 29, 2, 2, 13, 2, 13, 17, 17, 23, 13, 12, 13, 30, 14, 2, 13, 17, 29, 17, 14, 2, 2, 13, 17, 17, 29, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 13, 1, 0, 13, 17, 30, 30, 14, 2, 2, 13, 13, 17, 29, 17, 29, 17, 23, 13, 12, 13, 30, 41, 13, 2, 2, 2, 13, 17, 17, 17, 29, 13, 23, 13, 12, 13, 30, 41, 13, 17, 42, 2, 13, 17, 30, 14, 2, 2, 13, 17, 17, 30, 0, 13, 17, 0, 13, 17, 0, 13, 17, 0, 13, 4, 13, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 17, 42, 2, 13, 17, 30, 0, 13, 2, 13, 17, 0, 13, 17, 29, 13, 23, 13, 12, 13, 30, 41, 13, 18, 13, 13, 41, 13, 20, 41, 13, 20, 41, 13, 41, 13, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 0, 13, 17, 2, 13, 17, 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, 14, 2, 13, 17, 0, 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 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 19, 20 ], [ 19, 21 ], [ 0, 22 ], [ 22, 23 ], [ 22, 24 ], [ 0, 25 ], [ 25, 26 ], [ 25, 27 ], [ 0, 28 ], [ 28, 29 ], [ 28, 30 ], [ 0, 31 ], [ 31, 32 ], [ 31, 33 ], [ 0, 34 ], [ 34, 35 ], [ 34, 36 ], [ 0, 37 ], [ 605, 38 ], [ 605, 39 ], [ 39, 40 ], [ 39, 41 ], [ 605, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 49, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 57, 63 ], [ 63, 64 ], [ 57, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 65, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 73, 75 ], [ 65, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 76, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 84, 86 ], [ 44, 87 ], [ 87, 88 ], [ 88, 89 ], [ 42, 90 ], [ 90, 91 ], [ 42, 92 ], [ 92, 93 ], [ 42, 94 ], [ 94, 95 ], [ 42, 96 ], [ 96, 97 ], [ 605, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 104, 105 ], [ 100, 106 ], [ 106, 107 ], [ 100, 108 ], [ 108, 109 ], [ 108, 110 ], [ 100, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 113, 117 ], [ 100, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 118, 123 ], [ 123, 124 ], [ 123, 125 ], [ 118, 126 ], [ 126, 127 ], [ 127, 128 ], [ 126, 129 ], [ 129, 130 ], [ 118, 131 ], [ 132, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 135, 136 ], [ 135, 137 ], [ 132, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 138, 142 ], [ 142, 143 ], [ 142, 144 ], [ 132, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 145, 149 ], [ 100, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 151, 154 ], [ 98, 155 ], [ 155, 156 ], [ 605, 157 ], [ 157, 158 ], [ 157, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 161, 163 ], [ 160, 164 ], [ 164, 165 ], [ 159, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 166, 170 ], [ 170, 171 ], [ 159, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 172, 176 ], [ 176, 177 ], [ 159, 178 ], [ 178, 179 ], [ 179, 180 ], [ 179, 181 ], [ 178, 182 ], [ 182, 183 ], [ 183, 184 ], [ 183, 185 ], [ 185, 186 ], [ 185, 187 ], [ 183, 188 ], [ 159, 189 ], [ 189, 190 ], [ 190, 191 ], [ 190, 192 ], [ 190, 193 ], [ 193, 194 ], [ 193, 195 ], [ 157, 196 ], [ 196, 197 ], [ 157, 198 ], [ 198, 199 ], [ 605, 200 ], [ 200, 201 ], [ 200, 202 ], [ 202, 203 ], [ 203, 204 ], [ 204, 205 ], [ 205, 206 ], [ 205, 207 ], [ 204, 208 ], [ 208, 209 ], [ 208, 210 ], [ 208, 211 ], [ 200, 212 ], [ 212, 213 ], [ 200, 214 ], [ 214, 215 ], [ 605, 216 ], [ 216, 217 ], [ 216, 218 ], [ 218, 219 ], [ 219, 220 ], [ 219, 221 ], [ 218, 222 ], [ 222, 223 ], [ 223, 224 ], [ 224, 225 ], [ 224, 226 ], [ 222, 227 ], [ 227, 228 ], [ 227, 229 ], [ 222, 230 ], [ 230, 231 ], [ 231, 232 ], [ 222, 233 ], [ 234, 234 ], [ 234, 235 ], [ 235, 236 ], [ 236, 237 ], [ 237, 238 ], [ 238, 239 ], [ 238, 240 ], [ 237, 241 ], [ 236, 242 ], [ 242, 243 ], [ 243, 244 ], [ 243, 245 ], [ 242, 246 ], [ 235, 247 ], [ 247, 248 ], [ 248, 249 ], [ 218, 250 ], [ 250, 251 ], [ 216, 252 ], [ 252, 253 ], [ 216, 254 ], [ 254, 255 ], [ 605, 256 ], [ 256, 257 ], [ 256, 258 ], [ 258, 259 ], [ 259, 260 ], [ 260, 261 ], [ 261, 262 ], [ 261, 263 ], [ 260, 264 ], [ 264, 265 ], [ 265, 266 ], [ 265, 267 ], [ 264, 268 ], [ 268, 269 ], [ 268, 270 ], [ 270, 271 ], [ 270, 272 ], [ 256, 273 ], [ 273, 274 ], [ 256, 275 ], [ 275, 276 ], [ 605, 277 ], [ 277, 278 ], [ 277, 279 ], [ 279, 280 ], [ 280, 281 ], [ 280, 282 ], [ 279, 283 ], [ 283, 284 ], [ 284, 285 ], [ 285, 286 ], [ 285, 287 ], [ 283, 288 ], [ 288, 289 ], [ 288, 290 ], [ 283, 291 ], [ 291, 292 ], [ 292, 293 ], [ 283, 294 ], [ 294, 295 ], [ 295, 296 ], [ 295, 297 ], [ 297, 298 ], [ 297, 299 ], [ 279, 300 ], [ 300, 301 ], [ 277, 302 ], [ 302, 303 ], [ 605, 304 ], [ 304, 305 ], [ 304, 306 ], [ 306, 307 ], [ 307, 308 ], [ 308, 309 ], [ 309, 310 ], [ 309, 311 ], [ 311, 312 ], [ 311, 313 ], [ 308, 314 ], [ 304, 315 ], [ 315, 316 ], [ 605, 317 ], [ 317, 318 ], [ 317, 319 ], [ 319, 320 ], [ 320, 321 ], [ 321, 322 ], [ 321, 323 ], [ 320, 324 ], [ 324, 325 ], [ 319, 326 ], [ 326, 327 ], [ 327, 328 ], [ 328, 329 ], [ 328, 330 ], [ 327, 331 ], [ 326, 332 ], [ 332, 333 ], [ 319, 334 ], [ 334, 335 ], [ 335, 336 ], [ 336, 337 ], [ 336, 338 ], [ 334, 339 ], [ 339, 340 ], [ 339, 341 ], [ 341, 342 ], [ 342, 343 ], [ 341, 344 ], [ 334, 345 ], [ 345, 346 ], [ 346, 347 ], [ 346, 348 ], [ 334, 349 ], [ 350, 350 ], [ 350, 351 ], [ 351, 352 ], [ 352, 353 ], [ 353, 354 ], [ 353, 355 ], [ 352, 356 ], [ 351, 357 ], [ 357, 358 ], [ 319, 359 ], [ 359, 360 ], [ 317, 361 ], [ 361, 362 ], [ 605, 363 ], [ 363, 364 ], [ 363, 365 ], [ 365, 366 ], [ 366, 367 ], [ 366, 368 ], [ 368, 369 ], [ 369, 370 ], [ 370, 371 ], [ 370, 372 ], [ 369, 373 ], [ 368, 374 ], [ 365, 375 ], [ 375, 376 ], [ 363, 377 ], [ 377, 378 ], [ 605, 379 ], [ 379, 380 ], [ 379, 381 ], [ 381, 382 ], [ 382, 383 ], [ 382, 384 ], [ 381, 385 ], [ 385, 386 ], [ 386, 387 ], [ 386, 388 ], [ 385, 389 ], [ 389, 390 ], [ 390, 391 ], [ 391, 392 ], [ 392, 393 ], [ 392, 394 ], [ 391, 395 ], [ 390, 396 ], [ 396, 397 ], [ 397, 398 ], [ 397, 399 ], [ 390, 400 ], [ 400, 401 ], [ 400, 402 ], [ 389, 403 ], [ 403, 404 ], [ 403, 405 ], [ 381, 406 ], [ 406, 407 ], [ 406, 408 ], [ 408, 409 ], [ 408, 410 ], [ 381, 411 ], [ 411, 412 ], [ 379, 413 ], [ 413, 414 ], [ 605, 415 ], [ 415, 416 ], [ 415, 417 ], [ 417, 418 ], [ 418, 419 ], [ 418, 420 ], [ 417, 421 ], [ 421, 422 ], [ 422, 423 ], [ 422, 424 ], [ 421, 425 ], [ 425, 426 ], [ 426, 427 ], [ 426, 428 ], [ 428, 429 ], [ 428, 430 ], [ 425, 431 ], [ 431, 432 ], [ 431, 433 ], [ 417, 434 ], [ 434, 435 ], [ 415, 436 ], [ 436, 437 ], [ 605, 438 ], [ 438, 439 ], [ 438, 440 ], [ 440, 441 ], [ 441, 442 ], [ 441, 443 ], [ 443, 444 ], [ 443, 445 ], [ 440, 446 ], [ 446, 447 ], [ 446, 448 ], [ 440, 449 ], [ 449, 450 ], [ 449, 451 ], [ 440, 452 ], [ 452, 453 ], [ 440, 454 ], [ 454, 455 ], [ 440, 456 ], [ 456, 457 ], [ 456, 458 ], [ 458, 459 ], [ 459, 460 ], [ 440, 461 ], [ 461, 462 ], [ 461, 463 ], [ 440, 464 ], [ 464, 465 ], [ 464, 466 ], [ 440, 467 ], [ 467, 468 ], [ 468, 469 ], [ 469, 470 ], [ 469, 471 ], [ 467, 472 ], [ 472, 473 ], [ 472, 474 ], [ 467, 475 ], [ 475, 476 ], [ 476, 477 ], [ 467, 478 ], [ 479, 479 ], [ 479, 480 ], [ 480, 481 ], [ 481, 482 ], [ 482, 483 ], [ 483, 484 ], [ 482, 485 ], [ 481, 486 ], [ 480, 487 ], [ 487, 488 ], [ 480, 489 ], [ 489, 490 ], [ 490, 491 ], [ 490, 492 ], [ 492, 493 ], [ 493, 494 ], [ 492, 495 ], [ 492, 496 ], [ 489, 497 ], [ 497, 498 ], [ 497, 499 ], [ 440, 500 ], [ 500, 501 ], [ 501, 502 ], [ 501, 503 ], [ 500, 504 ], [ 504, 505 ], [ 504, 506 ], [ 440, 507 ], [ 507, 508 ], [ 508, 509 ], [ 507, 510 ], [ 440, 511 ], [ 511, 512 ], [ 512, 513 ], [ 438, 514 ], [ 514, 515 ], [ 605, 516 ], [ 516, 517 ], [ 516, 518 ], [ 518, 519 ], [ 516, 520 ], [ 520, 521 ], [ 516, 522 ], [ 522, 523 ], [ 522, 524 ], [ 524, 525 ], [ 525, 526 ], [ 525, 527 ], [ 516, 528 ], [ 528, 529 ], [ 528, 530 ], [ 530, 531 ], [ 531, 532 ], [ 532, 533 ], [ 533, 534 ], [ 533, 535 ], [ 532, 536 ], [ 536, 537 ], [ 537, 538 ], [ 538, 539 ], [ 531, 540 ], [ 540, 541 ], [ 541, 542 ], [ 542, 543 ], [ 542, 544 ], [ 544, 545 ], [ 545, 546 ], [ 546, 547 ], [ 541, 548 ], [ 548, 549 ], [ 549, 550 ], [ 549, 551 ], [ 530, 552 ], [ 552, 553 ], [ 553, 554 ], [ 554, 555 ], [ 516, 556 ], [ 556, 557 ], [ 556, 558 ], [ 558, 559 ], [ 559, 560 ], [ 560, 561 ], [ 561, 562 ], [ 560, 563 ], [ 563, 564 ], [ 516, 565 ], [ 565, 566 ], [ 565, 567 ], [ 567, 568 ], [ 568, 569 ], [ 569, 570 ], [ 570, 571 ], [ 569, 572 ], [ 572, 573 ], [ 516, 574 ], [ 574, 575 ], [ 574, 576 ], [ 576, 577 ], [ 577, 578 ], [ 578, 579 ], [ 579, 580 ], [ 578, 581 ], [ 581, 582 ], [ 516, 583 ], [ 583, 584 ], [ 583, 585 ], [ 585, 586 ], [ 586, 587 ], [ 586, 588 ], [ 585, 589 ], [ 589, 590 ], [ 590, 591 ], [ 590, 592 ], [ 592, 593 ], [ 593, 594 ], [ 594, 595 ], [ 589, 596 ], [ 596, 597 ], [ 597, 598 ], [ 597, 599 ], [ 599, 600 ], [ 600, 601 ], [ 585, 602 ], [ 602, 603 ], [ 0, 604 ], [ 604, 605 ], [ 604, 606 ] ]
[ "import java.io.*;\nimport java.math.*;\nimport java.security.*;\nimport java.text.*;\nimport java.util.*;\nimport java.util.concurrent.*;\nimport java.util.regex.*;\nimport java.util.Arrays;\nimport java.util.ArrayList;\nimport java.lang.Math; \nimport java.util.Arrays;\nimport java.util.Comparator;\n \n \n \npublic class Main \n{ \n static class FastReader \n { \n BufferedReader br; \n StringTokenizer st; \n \n public FastReader() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n \n String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n \n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n \n long nextLong() \n { \n return Long.parseLong(next()); \n } \n \n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n \n \n String nextLine() \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 } \n\n \n\n static int binarySearch(int a[],int k,int l,int h){\n \n while(l<=h){\n int mid = (l+h)/2;\n if(a[mid]==k) return mid;\n else if(a[mid]>k) h=mid-1;\n else if(a[mid]<k) l =mid+1;\n }\n \n return -1;\n }\n\n\n\n static String reverse(String input) \n { \n char[] a = input.toCharArray(); \n int l, r = 0; \n r = a.length - 1; \n \n for (l = 0; l < r; l++, r--) \n { \n // Swap values of l and r \n char temp = a[l]; \n a[l] = a[r]; \n a[r] = temp; \n } \n return String.valueOf(a); \n } \n\n \n \n static int gcd(int a, int b) \n { \n // Everything divides 0 \n if (a == 0) \n return b; \n if (b == 0) \n return a; \n if (a == b) \n return a; \n if (a > b) \n return gcd(a-b, b); \n return gcd(a, b-a); \n } \n\n static int lcm(int a, int b) \n { \n return (a*b)/gcd(a, b); \n } \n\n static int solve(int A, int B) \n { \n int count = 0; \n for (int i = 0; i < 21; i++) { \n if (((A >> i) & 1) != ((B >> i) & 1)) { \n count++; \n } \n } \n \n return count;\n } \n\n static long nCr(int n, int r) \n { \n return fact(n) / (fact(r) * \n fact(n - r)); \n } \n \n \n static long fact(int n) \n { \n long res = 1; \n for (int i = 2; i <= n; i++) \n res = res * i; \n return res; \n } \n \n public static long count(long k) {\n return k * (k - 1) / 2;\n }\n\n static boolean isPrime(int n) { \n // if(n==1) return false; \n if(n==2) return true;\n if (n%2==0) return false; \n \n for(int i=3;i<=Math.sqrt(n);i+=2) { \n if(n%i==0) \n return false; \n } \n return true; \n }\n\n static int negMod(int n){\n int a = (n % 1000000007 + 1000000007) % 1000000007;\n return a;\n }\n static String value(int val) {\n String bin = \"\"; \n while (val > 0) \n { \n if (val % 2 == 1) \n { \n bin += '1'; \n } \n else\n bin += '0'; \n val /= 2; \n } \n bin = reverse(bin); \n return bin;\n }\n\n public static int sum(long x) {\n int sum = 0;\n while (x > 0) {\n sum += x % 10;\n x /= 10;\n }\n return sum;\n }\n \n \n static int mod=1000003;\n public static void main(String[] args) throws Exception \n { \n \n OutputStream outputStream = System.out;\n PrintWriter w = new PrintWriter(outputStream);\n FastReader sc = new FastReader();\n // Scanner sc = new Scanner(new File(\"input.txt\"));\n // PrintWriter out = new PrintWriter(new File(\"output.txt\"));\n int i,j;\n \n String s = sc.next();\n int r = 0;\n int max = 0;\n for(i=0;i<3;i++){\n if(s.charAt(i) == 'R') r++;\n else {\n max = Math.max(r,max);\n r=0;}\n }\n if(max==0) max = r;\n w.print(max);\n w.close();\n }\n\n \n}\n\n\n\n// System.out.println();\n\n \n \n \n", "import java.io.*;", "io.*", "java", "import java.math.*;", "math.*", "java", "import java.security.*;", "security.*", "java", "import java.text.*;", "text.*", "java", "import java.util.*;", "util.*", "java", "import java.util.concurrent.*;", "concurrent.*", "java.util", "import java.util.regex.*;", "regex.*", "java.util", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.lang.Math;", "Math", "java.lang", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.Comparator;", "Comparator", "java.util", "public class Main \n{ \n static class FastReader \n { \n BufferedReader br; \n StringTokenizer st; \n \n public FastReader() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n \n String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n \n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n \n long nextLong() \n { \n return Long.parseLong(next()); \n } \n \n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n \n \n String nextLine() \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 } \n\n \n\n static int binarySearch(int a[],int k,int l,int h){\n \n while(l<=h){\n int mid = (l+h)/2;\n if(a[mid]==k) return mid;\n else if(a[mid]>k) h=mid-1;\n else if(a[mid]<k) l =mid+1;\n }\n \n return -1;\n }\n\n\n\n static String reverse(String input) \n { \n char[] a = input.toCharArray(); \n int l, r = 0; \n r = a.length - 1; \n \n for (l = 0; l < r; l++, r--) \n { \n // Swap values of l and r \n char temp = a[l]; \n a[l] = a[r]; \n a[r] = temp; \n } \n return String.valueOf(a); \n } \n\n \n \n static int gcd(int a, int b) \n { \n // Everything divides 0 \n if (a == 0) \n return b; \n if (b == 0) \n return a; \n if (a == b) \n return a; \n if (a > b) \n return gcd(a-b, b); \n return gcd(a, b-a); \n } \n\n static int lcm(int a, int b) \n { \n return (a*b)/gcd(a, b); \n } \n\n static int solve(int A, int B) \n { \n int count = 0; \n for (int i = 0; i < 21; i++) { \n if (((A >> i) & 1) != ((B >> i) & 1)) { \n count++; \n } \n } \n \n return count;\n } \n\n static long nCr(int n, int r) \n { \n return fact(n) / (fact(r) * \n fact(n - r)); \n } \n \n \n static long fact(int n) \n { \n long res = 1; \n for (int i = 2; i <= n; i++) \n res = res * i; \n return res; \n } \n \n public static long count(long k) {\n return k * (k - 1) / 2;\n }\n\n static boolean isPrime(int n) { \n // if(n==1) return false; \n if(n==2) return true;\n if (n%2==0) return false; \n \n for(int i=3;i<=Math.sqrt(n);i+=2) { \n if(n%i==0) \n return false; \n } \n return true; \n }\n\n static int negMod(int n){\n int a = (n % 1000000007 + 1000000007) % 1000000007;\n return a;\n }\n static String value(int val) {\n String bin = \"\"; \n while (val > 0) \n { \n if (val % 2 == 1) \n { \n bin += '1'; \n } \n else\n bin += '0'; \n val /= 2; \n } \n bin = reverse(bin); \n return bin;\n }\n\n public static int sum(long x) {\n int sum = 0;\n while (x > 0) {\n sum += x % 10;\n x /= 10;\n }\n return sum;\n }\n \n \n static int mod=1000003;\n public static void main(String[] args) throws Exception \n { \n \n OutputStream outputStream = System.out;\n PrintWriter w = new PrintWriter(outputStream);\n FastReader sc = new FastReader();\n // Scanner sc = new Scanner(new File(\"input.txt\"));\n // PrintWriter out = new PrintWriter(new File(\"output.txt\"));\n int i,j;\n \n String s = sc.next();\n int r = 0;\n int max = 0;\n for(i=0;i<3;i++){\n if(s.charAt(i) == 'R') r++;\n else {\n max = Math.max(r,max);\n r=0;}\n }\n if(max==0) max = r;\n w.print(max);\n w.close();\n }\n\n \n}", "Main", "static int mod=1000003;", "mod", "1000003", "static int binarySearch(int a[],int k,int l,int h){\n \n while(l<=h){\n int mid = (l+h)/2;\n if(a[mid]==k) return mid;\n else if(a[mid]>k) h=mid-1;\n else if(a[mid]<k) l =mid+1;\n }\n \n return -1;\n }", "binarySearch", "{\n \n while(l<=h){\n int mid = (l+h)/2;\n if(a[mid]==k) return mid;\n else if(a[mid]>k) h=mid-1;\n else if(a[mid]<k) l =mid+1;\n }\n \n return -1;\n }", "while(l<=h){\n int mid = (l+h)/2;\n if(a[mid]==k) return mid;\n else if(a[mid]>k) h=mid-1;\n else if(a[mid]<k) l =mid+1;\n }", "l<=h", "l", "h", "{\n int mid = (l+h)/2;\n if(a[mid]==k) return mid;\n else if(a[mid]>k) h=mid-1;\n else if(a[mid]<k) l =mid+1;\n }", "int mid = (l+h)/2;", "mid", "(l+h)/2", "(l+h)", "l", "h", "2", "if(a[mid]==k) return mid;\n else if(a[mid]>k) h=mid-1;\n else if(a[mid]<k) l =mid+1;", "a[mid]==k", "a[mid]", "a", "mid", "k", "return mid;", "mid", "if(a[mid]>k) h=mid-1;\n else if(a[mid]<k) l =mid+1;", "a[mid]>k", "a[mid]", "a", "mid", "k", "h=mid-1", "h", "mid-1", "mid", "1", "if(a[mid]<k) l =mid+1;", "a[mid]<k", "a[mid]", "a", "mid", "k", "l =mid+1", "l", "mid+1", "mid", "1", "return -1;", "-1", "1", "int a[]", "a", "int k", "k", "int l", "l", "int h", "h", "static String reverse(String input) \n { \n char[] a = input.toCharArray(); \n int l, r = 0; \n r = a.length - 1; \n \n for (l = 0; l < r; l++, r--) \n { \n // Swap values of l and r \n char temp = a[l]; \n a[l] = a[r]; \n a[r] = temp; \n } \n return String.valueOf(a); \n }", "reverse", "{ \n char[] a = input.toCharArray(); \n int l, r = 0; \n r = a.length - 1; \n \n for (l = 0; l < r; l++, r--) \n { \n // Swap values of l and r \n char temp = a[l]; \n a[l] = a[r]; \n a[r] = temp; \n } \n return String.valueOf(a); \n }", "char[] a = input.toCharArray();", "a", "input.toCharArray()", "input.toCharArray", "input", "int l", "l", "r = 0;", "r", "0", "r = a.length - 1", "r", "a.length - 1", "a.length", "a", "a.length", "1", "for (l = 0; l < r; l++, r--) \n { \n // Swap values of l and r \n char temp = a[l]; \n a[l] = a[r]; \n a[r] = temp; \n }", "l = 0;", "l = 0", "l", "0", "l < r", "l", "r", "l++, r--", "l++", "l", "r--", "r", "{ \n // Swap values of l and r \n char temp = a[l]; \n a[l] = a[r]; \n a[r] = temp; \n }", "{ \n // Swap values of l and r \n char temp = a[l]; \n a[l] = a[r]; \n a[r] = temp; \n }", "char temp = a[l];", "temp", "a[l]", "a", "l", "a[l] = a[r]", "a[l]", "a", "l", "a[r]", "a", "r", "a[r] = temp", "a[r]", "a", "r", "temp", "return String.valueOf(a);", "String.valueOf(a)", "String.valueOf", "String", "a", "String input", "input", "static int gcd(int a, int b) \n { \n // Everything divides 0 \n if (a == 0) \n return b; \n if (b == 0) \n return a; \n if (a == b) \n return a; \n if (a > b) \n return gcd(a-b, b); \n return gcd(a, b-a); \n }", "gcd", "{ \n // Everything divides 0 \n if (a == 0) \n return b; \n if (b == 0) \n return a; \n if (a == b) \n return a; \n if (a > b) \n return gcd(a-b, b); \n return gcd(a, b-a); \n }", "if (a == 0) \n return b;", "a == 0", "a", "0", "return b;", "b", "if (b == 0) \n return a;", "b == 0", "b", "0", "return a;", "a", "if (a == b) \n return a;", "a == b", "a", "b", "return a;", "a", "if (a > b) \n return gcd(a-b, b);", "a > b", "a", "b", "return gcd(a-b, b);", "gcd(a-b, b)", "gcd", "a-b", "a", "b", "b", "return gcd(a, b-a);", "gcd(a, b-a)", "gcd", "a", "b-a", "b", "a", "int a", "a", "int b", "b", "static int lcm(int a, int b) \n { \n return (a*b)/gcd(a, b); \n }", "lcm", "{ \n return (a*b)/gcd(a, b); \n }", "return (a*b)/gcd(a, b);", "(a*b)/gcd(a, b)", "(a*b)", "a", "b", "gcd(a, b)", "gcd", "a", "b", "int a", "a", "int b", "b", "static int solve(int A, int B) \n { \n int count = 0; \n for (int i = 0; i < 21; i++) { \n if (((A >> i) & 1) != ((B >> i) & 1)) { \n count++; \n } \n } \n \n return count;\n }", "solve", "{ \n int count = 0; \n for (int i = 0; i < 21; i++) { \n if (((A >> i) & 1) != ((B >> i) & 1)) { \n count++; \n } \n } \n \n return count;\n }", "int count = 0;", "count", "0", "for (int i = 0; i < 21; i++) { \n if (((A >> i) & 1) != ((B >> i) & 1)) { \n count++; \n } \n }", "int i = 0;", "int i = 0;", "i", "0", "i < 21", "i", "21", "i++", "i++", "i", "{ \n if (((A >> i) & 1) != ((B >> i) & 1)) { \n count++; \n } \n }", "{ \n if (((A >> i) & 1) != ((B >> i) & 1)) { \n count++; \n } \n }", "if (((A >> i) & 1) != ((B >> i) & 1)) { \n count++; \n }", "((A >> i) & 1) != ((B >> i) & 1)", "((A >> i) & 1)", "(A >> i)", "A", "i", "1", "((B >> i) & 1)", "(B >> i)", "B", "i", "1", "{ \n count++; \n }", "count++", "count", "return count;", "count", "int A", "A", "int B", "B", "static long nCr(int n, int r) \n { \n return fact(n) / (fact(r) * \n fact(n - r)); \n }", "nCr", "{ \n return fact(n) / (fact(r) * \n fact(n - r)); \n }", "return fact(n) / (fact(r) * \n fact(n - r));", "fact(n) / (fact(r) * \n fact(n - r))", "fact(n)", "fact", "n", "(fact(r) * \n fact(n - r))", "fact(r)", "fact", "r", "fact(n - r)", "fact", "n - r", "n", "r", "int n", "n", "int r", "r", "static long fact(int n) \n { \n long res = 1; \n for (int i = 2; i <= n; i++) \n res = res * i; \n return res; \n }", "fact", "{ \n long res = 1; \n for (int i = 2; i <= n; i++) \n res = res * i; \n return res; \n }", "long res = 1;", "res", "1", "for (int i = 2; i <= n; i++) \n res = res * i;", "int i = 2;", "int i = 2;", "i", "2", "i <= n", "i", "n", "i++", "i++", "i", "res = res * i;", "res = res * i", "res", "res * i", "res", "i", "return res;", "res", "int n", "n", "public static long count(long k) {\n return k * (k - 1) / 2;\n }", "count", "{\n return k * (k - 1) / 2;\n }", "return k * (k - 1) / 2;", "k * (k - 1) / 2", "k * (k - 1)", "k", "(k - 1)", "k", "1", "2", "long k", "k", "static boolean isPrime(int n) { \n // if(n==1) return false; \n if(n==2) return true;\n if (n%2==0) return false; \n \n for(int i=3;i<=Math.sqrt(n);i+=2) { \n if(n%i==0) \n return false; \n } \n return true; \n }", "isPrime", "{ \n // if(n==1) return false; \n if(n==2) return true;\n if (n%2==0) return false; \n \n for(int i=3;i<=Math.sqrt(n);i+=2) { \n if(n%i==0) \n return false; \n } \n return true; \n }", "if(n==2) return true;", "n==2", "n", "2", "return true;", "true", "if (n%2==0) return false;", "n%2==0", "n%2", "n", "2", "0", "return false;", "false", "for(int i=3;i<=Math.sqrt(n);i+=2) { \n if(n%i==0) \n return false; \n }", "int i=3;", "int i=3;", "i", "3", "i<=Math.sqrt(n)", "i", "Math.sqrt(n)", "Math.sqrt", "Math", "n", "i+=2", "i+=2", "i", "2", "{ \n if(n%i==0) \n return false; \n }", "{ \n if(n%i==0) \n return false; \n }", "if(n%i==0) \n return false;", "n%i==0", "n%i", "n", "i", "0", "return false;", "false", "return true;", "true", "int n", "n", "static int negMod(int n){\n int a = (n % 1000000007 + 1000000007) % 1000000007;\n return a;\n }", "negMod", "{\n int a = (n % 1000000007 + 1000000007) % 1000000007;\n return a;\n }", "int a = (n % 1000000007 + 1000000007) % 1000000007;", "a", "(n % 1000000007 + 1000000007) % 1000000007", "(n % 1000000007 + 1000000007)", "n % 1000000007", "n", "1000000007", "1000000007", "1000000007", "return a;", "a", "int n", "n", "static String value(int val) {\n String bin = \"\"; \n while (val > 0) \n { \n if (val % 2 == 1) \n { \n bin += '1'; \n } \n else\n bin += '0'; \n val /= 2; \n } \n bin = reverse(bin); \n return bin;\n }", "value", "{\n String bin = \"\"; \n while (val > 0) \n { \n if (val % 2 == 1) \n { \n bin += '1'; \n } \n else\n bin += '0'; \n val /= 2; \n } \n bin = reverse(bin); \n return bin;\n }", "String bin = \"\";", "bin", "\"\"", "while (val > 0) \n { \n if (val % 2 == 1) \n { \n bin += '1'; \n } \n else\n bin += '0'; \n val /= 2; \n }", "val > 0", "val", "0", "{ \n if (val % 2 == 1) \n { \n bin += '1'; \n } \n else\n bin += '0'; \n val /= 2; \n }", "if (val % 2 == 1) \n { \n bin += '1'; \n } \n else\n bin += '0';", "val % 2 == 1", "val % 2", "val", "2", "1", "{ \n bin += '1'; \n }", "bin += '1'", "bin", "'1'", "bin += '0'", "bin", "'0'", "val /= 2", "val", "2", "bin = reverse(bin)", "bin", "reverse(bin)", "reverse", "bin", "return bin;", "bin", "int val", "val", "public static int sum(long x) {\n int sum = 0;\n while (x > 0) {\n sum += x % 10;\n x /= 10;\n }\n return sum;\n }", "sum", "{\n int sum = 0;\n while (x > 0) {\n sum += x % 10;\n x /= 10;\n }\n return sum;\n }", "int sum = 0;", "sum", "0", "while (x > 0) {\n sum += x % 10;\n x /= 10;\n }", "x > 0", "x", "0", "{\n sum += x % 10;\n x /= 10;\n }", "sum += x % 10", "sum", "x % 10", "x", "10", "x /= 10", "x", "10", "return sum;", "sum", "long x", "x", "public static void main(String[] args) throws Exception \n { \n \n OutputStream outputStream = System.out;\n PrintWriter w = new PrintWriter(outputStream);\n FastReader sc = new FastReader();\n // Scanner sc = new Scanner(new File(\"input.txt\"));\n // PrintWriter out = new PrintWriter(new File(\"output.txt\"));\n int i,j;\n \n String s = sc.next();\n int r = 0;\n int max = 0;\n for(i=0;i<3;i++){\n if(s.charAt(i) == 'R') r++;\n else {\n max = Math.max(r,max);\n r=0;}\n }\n if(max==0) max = r;\n w.print(max);\n w.close();\n }", "main", "{ \n \n OutputStream outputStream = System.out;\n PrintWriter w = new PrintWriter(outputStream);\n FastReader sc = new FastReader();\n // Scanner sc = new Scanner(new File(\"input.txt\"));\n // PrintWriter out = new PrintWriter(new File(\"output.txt\"));\n int i,j;\n \n String s = sc.next();\n int r = 0;\n int max = 0;\n for(i=0;i<3;i++){\n if(s.charAt(i) == 'R') r++;\n else {\n max = Math.max(r,max);\n r=0;}\n }\n if(max==0) max = r;\n w.print(max);\n w.close();\n }", "OutputStream outputStream = System.out;", "outputStream", "System.out", "System", "System.out", "PrintWriter w = new PrintWriter(outputStream);", "w", "new PrintWriter(outputStream)", "FastReader sc = new FastReader();", "sc", "new FastReader()", "int i", "i", "j;", "j", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "int r = 0;", "r", "0", "int max = 0;", "max", "0", "for(i=0;i<3;i++){\n if(s.charAt(i) == 'R') r++;\n else {\n max = Math.max(r,max);\n r=0;}\n }", "i=0;", "i=0", "i", "0", "i<3", "i", "3", "i++", "i++", "i", "{\n if(s.charAt(i) == 'R') r++;\n else {\n max = Math.max(r,max);\n r=0;}\n }", "{\n if(s.charAt(i) == 'R') r++;\n else {\n max = Math.max(r,max);\n r=0;}\n }", "if(s.charAt(i) == 'R') r++;\n else {\n max = Math.max(r,max);\n r=0;}", "s.charAt(i) == 'R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "r++", "r", "{\n max = Math.max(r,max);\n r=0;}", "max = Math.max(r,max)", "max", "Math.max(r,max)", "Math.max", "Math", "r", "max", "r=0", "r", "0", "if(max==0) max = r;", "max==0", "max", "0", "max = r", "max", "r", "w.print(max)", "w.print", "w", "max", "w.close()", "w.close", "w", "String[] args", "args", "static class FastReader \n { \n BufferedReader br; \n StringTokenizer st; \n \n public FastReader() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n \n String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n \n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n \n long nextLong() \n { \n return Long.parseLong(next()); \n } \n \n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n \n \n String nextLine() \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 }", "FastReader", "BufferedReader br;", "br", "StringTokenizer st;", "st", "public FastReader() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n }", "FastReader", "{ \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n }", "br = new BufferedReader(new\n InputStreamReader(System.in))", "br", "new BufferedReader(new\n InputStreamReader(System.in))", "String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n }", "next", "{ \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n }", "while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n }", "st == null || !st.hasMoreElements()", "st == null", "st", "null", "!st.hasMoreElements()", "st.hasMoreElements()", "st.hasMoreElements", "st", "{ \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n }", "try\n { \n st = new StringTokenizer(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 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 { \n return Integer.parseInt(next()); \n }", "nextInt", "{ \n return Integer.parseInt(next()); \n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "long nextLong() \n { \n return Long.parseLong(next()); \n }", "nextLong", "{ \n return Long.parseLong(next()); \n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "double nextDouble() \n { \n return Double.parseDouble(next()); \n }", "nextDouble", "{ \n return Double.parseDouble(next()); \n }", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "String nextLine() \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 }", "nextLine", "{ \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", "public class Main \n{ \n static class FastReader \n { \n BufferedReader br; \n StringTokenizer st; \n \n public FastReader() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n \n String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n \n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n \n long nextLong() \n { \n return Long.parseLong(next()); \n } \n \n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n \n \n String nextLine() \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 } \n\n \n\n static int binarySearch(int a[],int k,int l,int h){\n \n while(l<=h){\n int mid = (l+h)/2;\n if(a[mid]==k) return mid;\n else if(a[mid]>k) h=mid-1;\n else if(a[mid]<k) l =mid+1;\n }\n \n return -1;\n }\n\n\n\n static String reverse(String input) \n { \n char[] a = input.toCharArray(); \n int l, r = 0; \n r = a.length - 1; \n \n for (l = 0; l < r; l++, r--) \n { \n // Swap values of l and r \n char temp = a[l]; \n a[l] = a[r]; \n a[r] = temp; \n } \n return String.valueOf(a); \n } \n\n \n \n static int gcd(int a, int b) \n { \n // Everything divides 0 \n if (a == 0) \n return b; \n if (b == 0) \n return a; \n if (a == b) \n return a; \n if (a > b) \n return gcd(a-b, b); \n return gcd(a, b-a); \n } \n\n static int lcm(int a, int b) \n { \n return (a*b)/gcd(a, b); \n } \n\n static int solve(int A, int B) \n { \n int count = 0; \n for (int i = 0; i < 21; i++) { \n if (((A >> i) & 1) != ((B >> i) & 1)) { \n count++; \n } \n } \n \n return count;\n } \n\n static long nCr(int n, int r) \n { \n return fact(n) / (fact(r) * \n fact(n - r)); \n } \n \n \n static long fact(int n) \n { \n long res = 1; \n for (int i = 2; i <= n; i++) \n res = res * i; \n return res; \n } \n \n public static long count(long k) {\n return k * (k - 1) / 2;\n }\n\n static boolean isPrime(int n) { \n // if(n==1) return false; \n if(n==2) return true;\n if (n%2==0) return false; \n \n for(int i=3;i<=Math.sqrt(n);i+=2) { \n if(n%i==0) \n return false; \n } \n return true; \n }\n\n static int negMod(int n){\n int a = (n % 1000000007 + 1000000007) % 1000000007;\n return a;\n }\n static String value(int val) {\n String bin = \"\"; \n while (val > 0) \n { \n if (val % 2 == 1) \n { \n bin += '1'; \n } \n else\n bin += '0'; \n val /= 2; \n } \n bin = reverse(bin); \n return bin;\n }\n\n public static int sum(long x) {\n int sum = 0;\n while (x > 0) {\n sum += x % 10;\n x /= 10;\n }\n return sum;\n }\n \n \n static int mod=1000003;\n public static void main(String[] args) throws Exception \n { \n \n OutputStream outputStream = System.out;\n PrintWriter w = new PrintWriter(outputStream);\n FastReader sc = new FastReader();\n // Scanner sc = new Scanner(new File(\"input.txt\"));\n // PrintWriter out = new PrintWriter(new File(\"output.txt\"));\n int i,j;\n \n String s = sc.next();\n int r = 0;\n int max = 0;\n for(i=0;i<3;i++){\n if(s.charAt(i) == 'R') r++;\n else {\n max = Math.max(r,max);\n r=0;}\n }\n if(max==0) max = r;\n w.print(max);\n w.close();\n }\n\n \n}", "public class Main \n{ \n static class FastReader \n { \n BufferedReader br; \n StringTokenizer st; \n \n public FastReader() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n \n String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n \n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n \n long nextLong() \n { \n return Long.parseLong(next()); \n } \n \n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n \n \n String nextLine() \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 } \n\n \n\n static int binarySearch(int a[],int k,int l,int h){\n \n while(l<=h){\n int mid = (l+h)/2;\n if(a[mid]==k) return mid;\n else if(a[mid]>k) h=mid-1;\n else if(a[mid]<k) l =mid+1;\n }\n \n return -1;\n }\n\n\n\n static String reverse(String input) \n { \n char[] a = input.toCharArray(); \n int l, r = 0; \n r = a.length - 1; \n \n for (l = 0; l < r; l++, r--) \n { \n // Swap values of l and r \n char temp = a[l]; \n a[l] = a[r]; \n a[r] = temp; \n } \n return String.valueOf(a); \n } \n\n \n \n static int gcd(int a, int b) \n { \n // Everything divides 0 \n if (a == 0) \n return b; \n if (b == 0) \n return a; \n if (a == b) \n return a; \n if (a > b) \n return gcd(a-b, b); \n return gcd(a, b-a); \n } \n\n static int lcm(int a, int b) \n { \n return (a*b)/gcd(a, b); \n } \n\n static int solve(int A, int B) \n { \n int count = 0; \n for (int i = 0; i < 21; i++) { \n if (((A >> i) & 1) != ((B >> i) & 1)) { \n count++; \n } \n } \n \n return count;\n } \n\n static long nCr(int n, int r) \n { \n return fact(n) / (fact(r) * \n fact(n - r)); \n } \n \n \n static long fact(int n) \n { \n long res = 1; \n for (int i = 2; i <= n; i++) \n res = res * i; \n return res; \n } \n \n public static long count(long k) {\n return k * (k - 1) / 2;\n }\n\n static boolean isPrime(int n) { \n // if(n==1) return false; \n if(n==2) return true;\n if (n%2==0) return false; \n \n for(int i=3;i<=Math.sqrt(n);i+=2) { \n if(n%i==0) \n return false; \n } \n return true; \n }\n\n static int negMod(int n){\n int a = (n % 1000000007 + 1000000007) % 1000000007;\n return a;\n }\n static String value(int val) {\n String bin = \"\"; \n while (val > 0) \n { \n if (val % 2 == 1) \n { \n bin += '1'; \n } \n else\n bin += '0'; \n val /= 2; \n } \n bin = reverse(bin); \n return bin;\n }\n\n public static int sum(long x) {\n int sum = 0;\n while (x > 0) {\n sum += x % 10;\n x /= 10;\n }\n return sum;\n }\n \n \n static int mod=1000003;\n public static void main(String[] args) throws Exception \n { \n \n OutputStream outputStream = System.out;\n PrintWriter w = new PrintWriter(outputStream);\n FastReader sc = new FastReader();\n // Scanner sc = new Scanner(new File(\"input.txt\"));\n // PrintWriter out = new PrintWriter(new File(\"output.txt\"));\n int i,j;\n \n String s = sc.next();\n int r = 0;\n int max = 0;\n for(i=0;i<3;i++){\n if(s.charAt(i) == 'R') r++;\n else {\n max = Math.max(r,max);\n r=0;}\n }\n if(max==0) max = r;\n w.print(max);\n w.close();\n }\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.*; import java.util.Arrays; import java.util.ArrayList; import java.lang.Math; import java.util.Arrays; import java.util.Comparator; public class Main { static class FastReader { BufferedReader br; StringTokenizer st; public FastReader() { br = new BufferedReader(new InputStreamReader(System.in)); } String next() { while (st == null || !st.hasMoreElements()) { try { st = new StringTokenizer(br.readLine()); } catch (IOException e) { e.printStackTrace(); } } return st.nextToken(); } int nextInt() { return Integer.parseInt(next()); } long nextLong() { return Long.parseLong(next()); } double nextDouble() { return Double.parseDouble(next()); } String nextLine() { String str = ""; try { str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } return str; } } static int binarySearch(int a[],int k,int l,int h){ while(l<=h){ int mid = (l+h)/2; if(a[mid]==k) return mid; else if(a[mid]>k) h=mid-1; else if(a[mid]<k) l =mid+1; } return -1; } static String reverse(String input) { char[] a = input.toCharArray(); int l, r = 0; r = a.length - 1; for (l = 0; l < r; l++, r--) { // Swap values of l and r char temp = a[l]; a[l] = a[r]; a[r] = temp; } return String.valueOf(a); } static int gcd(int a, int b) { // Everything divides 0 if (a == 0) return b; if (b == 0) return a; if (a == b) return a; if (a > b) return gcd(a-b, b); return gcd(a, b-a); } static int lcm(int a, int b) { return (a*b)/gcd(a, b); } static int solve(int A, int B) { int count = 0; for (int i = 0; i < 21; i++) { if (((A >> i) & 1) != ((B >> i) & 1)) { count++; } } return count; } static long nCr(int n, int r) { return fact(n) / (fact(r) * fact(n - r)); } static long fact(int n) { long res = 1; for (int i = 2; i <= n; i++) res = res * i; return res; } public static long count(long k) { return k * (k - 1) / 2; } static boolean isPrime(int n) { // if(n==1) return false; if(n==2) return true; if (n%2==0) return false; for(int i=3;i<=Math.sqrt(n);i+=2) { if(n%i==0) return false; } return true; } static int negMod(int n){ int a = (n % 1000000007 + 1000000007) % 1000000007; return a; } static String value(int val) { String bin = ""; while (val > 0) { if (val % 2 == 1) { bin += '1'; } else bin += '0'; val /= 2; } bin = reverse(bin); return bin; } public static int sum(long x) { int sum = 0; while (x > 0) { sum += x % 10; x /= 10; } return sum; } static int mod=1000003; public static void main(String[] args) throws Exception { OutputStream outputStream = System.out; PrintWriter w = new PrintWriter(outputStream); FastReader sc = new FastReader(); // Scanner sc = new Scanner(new File("input.txt")); // PrintWriter out = new PrintWriter(new File("output.txt")); int i,j; String s = sc.next(); int r = 0; int max = 0; for(i=0;i<3;i++){ if(s.charAt(i) == 'R') r++; else { max = Math.max(r,max); r=0;} } if(max==0) max = r; w.print(max); w.close(); } } // System.out.println();
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 4, 13, 14, 4, 18, 13, 17, 30, 4, 13, 17, 14, 4, 18, 13, 17, 30, 4, 13, 17, 14, 4, 18, 13, 17, 30, 4, 13, 17, 4, 13, 17, 23, 13, 12, 13, 30, 29, 4, 18, 13, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 18, 13, 12, 13, 30, 14, 13, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 12, 13, 30, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 42, 2, 0, 13, 2, 13, 13, 17, 30, 0, 13, 13, 0, 13, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 41, 13, 13, 0, 13, 13, 42, 2, 0, 13, 2, 13, 13, 17, 30, 0, 13, 13, 0, 13, 13, 29, 2, 13, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 186, 5 ], [ 186, 6 ], [ 6, 7 ], [ 6, 8 ], [ 186, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 11, 16 ], [ 16, 17 ], [ 17, 18 ], [ 18, 19 ], [ 17, 20 ], [ 16, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 16, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 26, 29 ], [ 25, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 25, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 34, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 34, 43 ], [ 43, 44 ], [ 43, 45 ], [ 9, 46 ], [ 46, 47 ], [ 186, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 55, 56 ], [ 56, 57 ], [ 186, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 65, 66 ], [ 66, 67 ], [ 186, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 186, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 82, 83 ], [ 83, 84 ], [ 186, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 92, 93 ], [ 93, 94 ], [ 186, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 98, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 95, 112 ], [ 112, 113 ], [ 186, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 117, 122 ], [ 114, 123 ], [ 123, 124 ], [ 186, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 128, 129 ], [ 127, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 134, 135 ], [ 134, 136 ], [ 131, 137 ], [ 130, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 138, 142 ], [ 142, 143 ], [ 142, 144 ], [ 127, 145 ], [ 145, 146 ], [ 125, 147 ], [ 147, 148 ], [ 125, 149 ], [ 149, 150 ], [ 186, 151 ], [ 151, 152 ], [ 151, 153 ], [ 153, 154 ], [ 154, 155 ], [ 153, 156 ], [ 156, 157 ], [ 156, 158 ], [ 153, 159 ], [ 159, 160 ], [ 159, 161 ], [ 153, 162 ], [ 162, 163 ], [ 163, 164 ], [ 164, 165 ], [ 164, 166 ], [ 166, 167 ], [ 166, 168 ], [ 163, 169 ], [ 162, 170 ], [ 170, 171 ], [ 171, 172 ], [ 171, 173 ], [ 170, 174 ], [ 174, 175 ], [ 174, 176 ], [ 153, 177 ], [ 177, 178 ], [ 178, 179 ], [ 178, 180 ], [ 151, 181 ], [ 181, 182 ], [ 151, 183 ], [ 183, 184 ], [ 0, 185 ], [ 185, 186 ], [ 185, 187 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static Scanner scan = new Scanner(System.in);\n public static void main(String[]args){\n String s = next();\n if(s.contains(\"RRR\")){\n print(3);\n }\n else if(s.contains(\"RR\")){\n print(2);\n }\n else if(s.contains(\"R\")){\n print(1);\n }\n else print(0);\n }\n\n\n public static int nextInt(){\n return Integer.parseInt(scan.next());\n }\n public static long nextLong(){\n return Long.parseLong(scan.next());\n }\n public static String next(){\n return scan.next();\n }\n public static double nextDouble(){\n return Double.parseDouble(scan.next());\n }\n public static float nextFloat(){\n return Float.parseFloat(scan.next());\n }\n\n //Yes or No\n public static void yesNo(boolean flag){\n if(flag) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n\n //print\n public static void print(Object a){\n System.out.println(a);\n }\n\n\n //gcd\n public static int gcd (int a, int b){\n int tmp;\n while((tmp = a%b) != 0){\n a = b;\n b = tmp;\n }\n return b;\n }\n\n\n //lcm\n public static int lcm(int a,int b){\n int tmp;\n long c = a;\n c *= b;\n while((tmp = a%b) != 0){\n a = b;\n b = tmp;\n }\n return (int)(c/b);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static Scanner scan = new Scanner(System.in);\n public static void main(String[]args){\n String s = next();\n if(s.contains(\"RRR\")){\n print(3);\n }\n else if(s.contains(\"RR\")){\n print(2);\n }\n else if(s.contains(\"R\")){\n print(1);\n }\n else print(0);\n }\n\n\n public static int nextInt(){\n return Integer.parseInt(scan.next());\n }\n public static long nextLong(){\n return Long.parseLong(scan.next());\n }\n public static String next(){\n return scan.next();\n }\n public static double nextDouble(){\n return Double.parseDouble(scan.next());\n }\n public static float nextFloat(){\n return Float.parseFloat(scan.next());\n }\n\n //Yes or No\n public static void yesNo(boolean flag){\n if(flag) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n\n //print\n public static void print(Object a){\n System.out.println(a);\n }\n\n\n //gcd\n public static int gcd (int a, int b){\n int tmp;\n while((tmp = a%b) != 0){\n a = b;\n b = tmp;\n }\n return b;\n }\n\n\n //lcm\n public static int lcm(int a,int b){\n int tmp;\n long c = a;\n c *= b;\n while((tmp = a%b) != 0){\n a = b;\n b = tmp;\n }\n return (int)(c/b);\n }\n}", "Main", "public static Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "public static void main(String[]args){\n String s = next();\n if(s.contains(\"RRR\")){\n print(3);\n }\n else if(s.contains(\"RR\")){\n print(2);\n }\n else if(s.contains(\"R\")){\n print(1);\n }\n else print(0);\n }", "main", "{\n String s = next();\n if(s.contains(\"RRR\")){\n print(3);\n }\n else if(s.contains(\"RR\")){\n print(2);\n }\n else if(s.contains(\"R\")){\n print(1);\n }\n else print(0);\n }", "String s = next();", "s", "next()", "next", "if(s.contains(\"RRR\")){\n print(3);\n }\n else if(s.contains(\"RR\")){\n print(2);\n }\n else if(s.contains(\"R\")){\n print(1);\n }\n else print(0);", "s.contains(\"RRR\")", "s.contains", "s", "\"RRR\"", "{\n print(3);\n }", "print(3)", "print", "3", "if(s.contains(\"RR\")){\n print(2);\n }\n else if(s.contains(\"R\")){\n print(1);\n }\n else print(0);", "s.contains(\"RR\")", "s.contains", "s", "\"RR\"", "{\n print(2);\n }", "print(2)", "print", "2", "if(s.contains(\"R\")){\n print(1);\n }\n else print(0);", "s.contains(\"R\")", "s.contains", "s", "\"R\"", "{\n print(1);\n }", "print(1)", "print", "1", "print(0)", "print", "0", "String[]args", "args", "public static int nextInt(){\n return Integer.parseInt(scan.next());\n }", "nextInt", "{\n return Integer.parseInt(scan.next());\n }", "return Integer.parseInt(scan.next());", "Integer.parseInt(scan.next())", "Integer.parseInt", "Integer", "scan.next()", "scan.next", "scan", "public static long nextLong(){\n return Long.parseLong(scan.next());\n }", "nextLong", "{\n return Long.parseLong(scan.next());\n }", "return Long.parseLong(scan.next());", "Long.parseLong(scan.next())", "Long.parseLong", "Long", "scan.next()", "scan.next", "scan", "public static String next(){\n return scan.next();\n }", "next", "{\n return scan.next();\n }", "return scan.next();", "scan.next()", "scan.next", "scan", "public static double nextDouble(){\n return Double.parseDouble(scan.next());\n }", "nextDouble", "{\n return Double.parseDouble(scan.next());\n }", "return Double.parseDouble(scan.next());", "Double.parseDouble(scan.next())", "Double.parseDouble", "Double", "scan.next()", "scan.next", "scan", "public static float nextFloat(){\n return Float.parseFloat(scan.next());\n }", "nextFloat", "{\n return Float.parseFloat(scan.next());\n }", "return Float.parseFloat(scan.next());", "Float.parseFloat(scan.next())", "Float.parseFloat", "Float", "scan.next()", "scan.next", "scan", "//Yes or No\n public static void yesNo(boolean flag){\n if(flag) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }", "yesNo", "{\n if(flag) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }", "if(flag) System.out.println(\"Yes\");\n else System.out.println(\"No\");", "flag", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "boolean flag", "flag", "//print\n public static void print(Object a){\n System.out.println(a);\n }", "print", "{\n System.out.println(a);\n }", "System.out.println(a)", "System.out.println", "System.out", "System", "System.out", "a", "Object a", "a", "//gcd\n public static int gcd (int a, int b){\n int tmp;\n while((tmp = a%b) != 0){\n a = b;\n b = tmp;\n }\n return b;\n }", "gcd", "{\n int tmp;\n while((tmp = a%b) != 0){\n a = b;\n b = tmp;\n }\n return b;\n }", "int tmp;", "tmp", "while((tmp = a%b) != 0){\n a = b;\n b = tmp;\n }", "(tmp = a%b) != 0", "(tmp = a%b)", "tmp", "a%b", "a", "b", "0", "{\n a = b;\n b = tmp;\n }", "a = b", "a", "b", "b = tmp", "b", "tmp", "return b;", "b", "int a", "a", "int b", "b", "//lcm\n public static int lcm(int a,int b){\n int tmp;\n long c = a;\n c *= b;\n while((tmp = a%b) != 0){\n a = b;\n b = tmp;\n }\n return (int)(c/b);\n }", "lcm", "{\n int tmp;\n long c = a;\n c *= b;\n while((tmp = a%b) != 0){\n a = b;\n b = tmp;\n }\n return (int)(c/b);\n }", "int tmp;", "tmp", "long c = a;", "c", "a", "c *= b", "c", "b", "while((tmp = a%b) != 0){\n a = b;\n b = tmp;\n }", "(tmp = a%b) != 0", "(tmp = a%b)", "tmp", "a%b", "a", "b", "0", "{\n a = b;\n b = tmp;\n }", "a = b", "a", "b", "b = tmp", "b", "tmp", "return (int)(c/b);", "(int)(c/b)", "c", "b", "int a", "a", "int b", "b", "public class Main{\n public static Scanner scan = new Scanner(System.in);\n public static void main(String[]args){\n String s = next();\n if(s.contains(\"RRR\")){\n print(3);\n }\n else if(s.contains(\"RR\")){\n print(2);\n }\n else if(s.contains(\"R\")){\n print(1);\n }\n else print(0);\n }\n\n\n public static int nextInt(){\n return Integer.parseInt(scan.next());\n }\n public static long nextLong(){\n return Long.parseLong(scan.next());\n }\n public static String next(){\n return scan.next();\n }\n public static double nextDouble(){\n return Double.parseDouble(scan.next());\n }\n public static float nextFloat(){\n return Float.parseFloat(scan.next());\n }\n\n //Yes or No\n public static void yesNo(boolean flag){\n if(flag) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n\n //print\n public static void print(Object a){\n System.out.println(a);\n }\n\n\n //gcd\n public static int gcd (int a, int b){\n int tmp;\n while((tmp = a%b) != 0){\n a = b;\n b = tmp;\n }\n return b;\n }\n\n\n //lcm\n public static int lcm(int a,int b){\n int tmp;\n long c = a;\n c *= b;\n while((tmp = a%b) != 0){\n a = b;\n b = tmp;\n }\n return (int)(c/b);\n }\n}", "public class Main{\n public static Scanner scan = new Scanner(System.in);\n public static void main(String[]args){\n String s = next();\n if(s.contains(\"RRR\")){\n print(3);\n }\n else if(s.contains(\"RR\")){\n print(2);\n }\n else if(s.contains(\"R\")){\n print(1);\n }\n else print(0);\n }\n\n\n public static int nextInt(){\n return Integer.parseInt(scan.next());\n }\n public static long nextLong(){\n return Long.parseLong(scan.next());\n }\n public static String next(){\n return scan.next();\n }\n public static double nextDouble(){\n return Double.parseDouble(scan.next());\n }\n public static float nextFloat(){\n return Float.parseFloat(scan.next());\n }\n\n //Yes or No\n public static void yesNo(boolean flag){\n if(flag) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n\n //print\n public static void print(Object a){\n System.out.println(a);\n }\n\n\n //gcd\n public static int gcd (int a, int b){\n int tmp;\n while((tmp = a%b) != 0){\n a = b;\n b = tmp;\n }\n return b;\n }\n\n\n //lcm\n public static int lcm(int a,int b){\n int tmp;\n long c = a;\n c *= b;\n while((tmp = a%b) != 0){\n a = b;\n b = tmp;\n }\n return (int)(c/b);\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static Scanner scan = new Scanner(System.in); public static void main(String[]args){ String s = next(); if(s.contains("RRR")){ print(3); } else if(s.contains("RR")){ print(2); } else if(s.contains("R")){ print(1); } else print(0); } public static int nextInt(){ return Integer.parseInt(scan.next()); } public static long nextLong(){ return Long.parseLong(scan.next()); } public static String next(){ return scan.next(); } public static double nextDouble(){ return Double.parseDouble(scan.next()); } public static float nextFloat(){ return Float.parseFloat(scan.next()); } //Yes or No public static void yesNo(boolean flag){ if(flag) System.out.println("Yes"); else System.out.println("No"); } //print public static void print(Object a){ System.out.println(a); } //gcd public static int gcd (int a, int b){ int tmp; while((tmp = a%b) != 0){ a = b; b = tmp; } return b; } //lcm public static int lcm(int a,int b){ int tmp; long c = a; c *= b; while((tmp = a%b) != 0){ a = b; b = tmp; } return (int)(c/b); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 4, 18, 18, 13, 13, 4, 13, 4, 18, 13, 23, 13, 12, 13, 30, 14, 4, 18, 13, 17, 30, 29, 17, 14, 4, 18, 13, 17, 30, 29, 17, 14, 4, 18, 13, 17, 30, 29, 17, 30, 29, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 57, 5 ], [ 57, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 14, 16 ], [ 12, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 6, 22 ], [ 22, 23 ], [ 57, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 27, 32 ], [ 32, 33 ], [ 33, 34 ], [ 27, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 35, 40 ], [ 40, 41 ], [ 41, 42 ], [ 35, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 43, 48 ], [ 48, 49 ], [ 49, 50 ], [ 43, 51 ], [ 51, 52 ], [ 52, 53 ], [ 24, 54 ], [ 54, 55 ], [ 0, 56 ], [ 56, 57 ], [ 56, 58 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n System.out.println(solve(sc.next()));\n }\n static int solve(String s){\n if(s.contains(\"RRR\")){\n return 3;\n } else if(s.contains(\"RR\")){\n return 2;\n } else if(s.contains(\"R\")){\n return 1;\n } else {\n return 0;\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n System.out.println(solve(sc.next()));\n }\n static int solve(String s){\n if(s.contains(\"RRR\")){\n return 3;\n } else if(s.contains(\"RR\")){\n return 2;\n } else if(s.contains(\"R\")){\n return 1;\n } else {\n return 0;\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n System.out.println(solve(sc.next()));\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n System.out.println(solve(sc.next()));\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "System.out.println(solve(sc.next()))", "System.out.println", "System.out", "System", "System.out", "solve(sc.next())", "solve", "sc.next()", "sc.next", "sc", "String[] args", "args", "static int solve(String s){\n if(s.contains(\"RRR\")){\n return 3;\n } else if(s.contains(\"RR\")){\n return 2;\n } else if(s.contains(\"R\")){\n return 1;\n } else {\n return 0;\n }\n }", "solve", "{\n if(s.contains(\"RRR\")){\n return 3;\n } else if(s.contains(\"RR\")){\n return 2;\n } else if(s.contains(\"R\")){\n return 1;\n } else {\n return 0;\n }\n }", "if(s.contains(\"RRR\")){\n return 3;\n } else if(s.contains(\"RR\")){\n return 2;\n } else if(s.contains(\"R\")){\n return 1;\n } else {\n return 0;\n }", "s.contains(\"RRR\")", "s.contains", "s", "\"RRR\"", "{\n return 3;\n }", "return 3;", "3", "if(s.contains(\"RR\")){\n return 2;\n } else if(s.contains(\"R\")){\n return 1;\n } else {\n return 0;\n }", "s.contains(\"RR\")", "s.contains", "s", "\"RR\"", "{\n return 2;\n }", "return 2;", "2", "if(s.contains(\"R\")){\n return 1;\n } else {\n return 0;\n }", "s.contains(\"R\")", "s.contains", "s", "\"R\"", "{\n return 1;\n }", "return 1;", "1", "{\n return 0;\n }", "return 0;", "0", "String s", "s", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n System.out.println(solve(sc.next()));\n }\n static int solve(String s){\n if(s.contains(\"RRR\")){\n return 3;\n } else if(s.contains(\"RR\")){\n return 2;\n } else if(s.contains(\"R\")){\n return 1;\n } else {\n return 0;\n }\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n System.out.println(solve(sc.next()));\n }\n static int solve(String s){\n if(s.contains(\"RRR\")){\n return 3;\n } else if(s.contains(\"RR\")){\n return 2;\n } else if(s.contains(\"R\")){\n return 1;\n } else {\n return 0;\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println(solve(sc.next())); } static int solve(String s){ if(s.contains("RRR")){ return 3; } else if(s.contains("RR")){ return 2; } else if(s.contains("R")){ return 1; } else { return 0; } } }
[ 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, 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, 30, 0, 13, 2, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 80, 14 ], [ 80, 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 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 29, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 44, 48 ], [ 48, 49 ], [ 48, 50 ], [ 41, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 51, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 17, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 62, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 17, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 15, 77 ], [ 77, 78 ], [ 0, 79 ], [ 79, 80 ], [ 79, 81 ] ]
[ "import java.util.List;\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args) {\n Scanner sn = new Scanner(System.in);\n String str = sn.next();\n int cnt = 0;\n for ( int i = 0; i < 3; i++){\n String c = str.substring(i,i+1);\n if (c.equals(\"R\")){\n cnt = cnt + 1;\n }\n }\n if ( str.equals(\"RSR\")) {\n cnt = 1;\n }\n System.out.println(cnt);\n }\n}", "import java.util.List;", "List", "java.util", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Collections;", "Collections", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n Scanner sn = new Scanner(System.in);\n String str = sn.next();\n int cnt = 0;\n for ( int i = 0; i < 3; i++){\n String c = str.substring(i,i+1);\n if (c.equals(\"R\")){\n cnt = cnt + 1;\n }\n }\n if ( str.equals(\"RSR\")) {\n cnt = 1;\n }\n System.out.println(cnt);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sn = new Scanner(System.in);\n String str = sn.next();\n int cnt = 0;\n for ( int i = 0; i < 3; i++){\n String c = str.substring(i,i+1);\n if (c.equals(\"R\")){\n cnt = cnt + 1;\n }\n }\n if ( str.equals(\"RSR\")) {\n cnt = 1;\n }\n System.out.println(cnt);\n }", "main", "{\n Scanner sn = new Scanner(System.in);\n String str = sn.next();\n int cnt = 0;\n for ( int i = 0; i < 3; i++){\n String c = str.substring(i,i+1);\n if (c.equals(\"R\")){\n cnt = cnt + 1;\n }\n }\n if ( str.equals(\"RSR\")) {\n cnt = 1;\n }\n System.out.println(cnt);\n }", "Scanner sn = new Scanner(System.in);", "sn", "new Scanner(System.in)", "String str = sn.next();", "str", "sn.next()", "sn.next", "sn", "int cnt = 0;", "cnt", "0", "for ( int i = 0; i < 3; i++){\n String c = str.substring(i,i+1);\n if (c.equals(\"R\")){\n cnt = cnt + 1;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < 3", "i", "3", "i++", "i++", "i", "{\n String c = str.substring(i,i+1);\n if (c.equals(\"R\")){\n cnt = cnt + 1;\n }\n }", "{\n String c = str.substring(i,i+1);\n if (c.equals(\"R\")){\n cnt = cnt + 1;\n }\n }", "String c = str.substring(i,i+1);", "c", "str.substring(i,i+1)", "str.substring", "str", "i", "i+1", "i", "1", "if (c.equals(\"R\")){\n cnt = cnt + 1;\n }", "c.equals(\"R\")", "c.equals", "c", "\"R\"", "{\n cnt = cnt + 1;\n }", "cnt = cnt + 1", "cnt", "cnt + 1", "cnt", "1", "if ( str.equals(\"RSR\")) {\n cnt = 1;\n }", "str.equals(\"RSR\")", "str.equals", "str", "\"RSR\"", "{\n cnt = 1;\n }", "cnt = 1", "cnt", "1", "System.out.println(cnt)", "System.out.println", "System.out", "System", "System.out", "cnt", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n Scanner sn = new Scanner(System.in);\n String str = sn.next();\n int cnt = 0;\n for ( int i = 0; i < 3; i++){\n String c = str.substring(i,i+1);\n if (c.equals(\"R\")){\n cnt = cnt + 1;\n }\n }\n if ( str.equals(\"RSR\")) {\n cnt = 1;\n }\n System.out.println(cnt);\n }\n}", "public class Main {\n\tpublic static void main(String[] args) {\n Scanner sn = new Scanner(System.in);\n String str = sn.next();\n int cnt = 0;\n for ( int i = 0; i < 3; i++){\n String c = str.substring(i,i+1);\n if (c.equals(\"R\")){\n cnt = cnt + 1;\n }\n }\n if ( str.equals(\"RSR\")) {\n cnt = 1;\n }\n System.out.println(cnt);\n }\n}", "Main" ]
import java.util.List; import java.util.ArrayList; import java.util.Collections; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sn = new Scanner(System.in); String str = sn.next(); int cnt = 0; for ( int i = 0; i < 3; i++){ String c = str.substring(i,i+1); if (c.equals("R")){ cnt = cnt + 1; } } if ( str.equals("RSR")) { cnt = 1; } System.out.println(cnt); } }
[ 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, 17, 41, 13, 4, 18, 13, 17, 17, 41, 13, 4, 18, 13, 17, 17, 41, 13, 17, 42, 2, 13, 17, 30, 14, 4, 18, 2, 2, 13, 13, 13, 17, 30, 0, 13, 17, 3, 14, 2, 4, 18, 2, 13, 13, 17, 4, 18, 2, 13, 13, 17, 30, 0, 13, 17, 3, 14, 2, 2, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 30, 0, 13, 17, 3, 40, 13, 4, 18, 18, 13, 13, 13, 4, 18, 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 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 25 ], [ 22, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 29, 33 ], [ 8, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 36, 40 ], [ 8, 41 ], [ 41, 42 ], [ 41, 43 ], [ 8, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 50, 57 ], [ 49, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 48, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 64, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 63, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 48, 82 ], [ 82, 83 ], [ 84, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 84, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 84, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 82, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 48, 102 ], [ 102, 103 ], [ 8, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 8, 110 ], [ 110, 111 ], [ 111, 112 ], [ 6, 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\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tString S = scan.next();\n\n\t\tint total = 0;\n\n\t\tString S1 = S.substring(0,1);\n\t\tString S2 = S.substring(1,2);\n\t\tString S3 = S.substring(2,3);\n\n\t\tint count = 0;\n\t\twhile(count < 1)\n\t\t{\n\t\t\tif((S1 + S2 + S3).equals(\"RRR\"))\n\t\t\t{\n\t\t\t\ttotal += 3;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif((S1 + S2).equals(\"RR\") || (S2 + S3).equals(\"RR\"))\n\t\t\t{\n\t\t\t\ttotal += 2;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif(S1.equals(\"R\") || S2.equals(\"R\") || S3.equals(\"R\"))\n\t\t\t{\n\t\t\t\ttotal += 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcount++;\n\t\t}\n\n\t\tSystem.out.println(total);\n\n\t\tscan.close();\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\tString S = scan.next();\n\n\t\tint total = 0;\n\n\t\tString S1 = S.substring(0,1);\n\t\tString S2 = S.substring(1,2);\n\t\tString S3 = S.substring(2,3);\n\n\t\tint count = 0;\n\t\twhile(count < 1)\n\t\t{\n\t\t\tif((S1 + S2 + S3).equals(\"RRR\"))\n\t\t\t{\n\t\t\t\ttotal += 3;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif((S1 + S2).equals(\"RR\") || (S2 + S3).equals(\"RR\"))\n\t\t\t{\n\t\t\t\ttotal += 2;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif(S1.equals(\"R\") || S2.equals(\"R\") || S3.equals(\"R\"))\n\t\t\t{\n\t\t\t\ttotal += 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcount++;\n\t\t}\n\n\t\tSystem.out.println(total);\n\n\t\tscan.close();\n\t}\n}", "Main", "public static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tString S = scan.next();\n\n\t\tint total = 0;\n\n\t\tString S1 = S.substring(0,1);\n\t\tString S2 = S.substring(1,2);\n\t\tString S3 = S.substring(2,3);\n\n\t\tint count = 0;\n\t\twhile(count < 1)\n\t\t{\n\t\t\tif((S1 + S2 + S3).equals(\"RRR\"))\n\t\t\t{\n\t\t\t\ttotal += 3;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif((S1 + S2).equals(\"RR\") || (S2 + S3).equals(\"RR\"))\n\t\t\t{\n\t\t\t\ttotal += 2;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif(S1.equals(\"R\") || S2.equals(\"R\") || S3.equals(\"R\"))\n\t\t\t{\n\t\t\t\ttotal += 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcount++;\n\t\t}\n\n\t\tSystem.out.println(total);\n\n\t\tscan.close();\n\t}", "main", "{\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tString S = scan.next();\n\n\t\tint total = 0;\n\n\t\tString S1 = S.substring(0,1);\n\t\tString S2 = S.substring(1,2);\n\t\tString S3 = S.substring(2,3);\n\n\t\tint count = 0;\n\t\twhile(count < 1)\n\t\t{\n\t\t\tif((S1 + S2 + S3).equals(\"RRR\"))\n\t\t\t{\n\t\t\t\ttotal += 3;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif((S1 + S2).equals(\"RR\") || (S2 + S3).equals(\"RR\"))\n\t\t\t{\n\t\t\t\ttotal += 2;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif(S1.equals(\"R\") || S2.equals(\"R\") || S3.equals(\"R\"))\n\t\t\t{\n\t\t\t\ttotal += 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcount++;\n\t\t}\n\n\t\tSystem.out.println(total);\n\n\t\tscan.close();\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String S = scan.next();", "S", "scan.next()", "scan.next", "scan", "int total = 0;", "total", "0", "String S1 = S.substring(0,1);", "S1", "S.substring(0,1)", "S.substring", "S", "0", "1", "String S2 = S.substring(1,2);", "S2", "S.substring(1,2)", "S.substring", "S", "1", "2", "String S3 = S.substring(2,3);", "S3", "S.substring(2,3)", "S.substring", "S", "2", "3", "int count = 0;", "count", "0", "while(count < 1)\n\t\t{\n\t\t\tif((S1 + S2 + S3).equals(\"RRR\"))\n\t\t\t{\n\t\t\t\ttotal += 3;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif((S1 + S2).equals(\"RR\") || (S2 + S3).equals(\"RR\"))\n\t\t\t{\n\t\t\t\ttotal += 2;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif(S1.equals(\"R\") || S2.equals(\"R\") || S3.equals(\"R\"))\n\t\t\t{\n\t\t\t\ttotal += 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcount++;\n\t\t}", "count < 1", "count", "1", "{\n\t\t\tif((S1 + S2 + S3).equals(\"RRR\"))\n\t\t\t{\n\t\t\t\ttotal += 3;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif((S1 + S2).equals(\"RR\") || (S2 + S3).equals(\"RR\"))\n\t\t\t{\n\t\t\t\ttotal += 2;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif(S1.equals(\"R\") || S2.equals(\"R\") || S3.equals(\"R\"))\n\t\t\t{\n\t\t\t\ttotal += 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcount++;\n\t\t}", "if((S1 + S2 + S3).equals(\"RRR\"))\n\t\t\t{\n\t\t\t\ttotal += 3;\n\t\t\t\tbreak;\n\t\t\t}", "(S1 + S2 + S3).equals(\"RRR\")", "(S1 + S2 + S3).equals", "(S1 + S2 + S3)", "S1 + S2 + S3", "S1", "S2", "S3", "\"RRR\"", "{\n\t\t\t\ttotal += 3;\n\t\t\t\tbreak;\n\t\t\t}", "total += 3", "total", "3", "break;", "if((S1 + S2).equals(\"RR\") || (S2 + S3).equals(\"RR\"))\n\t\t\t{\n\t\t\t\ttotal += 2;\n\t\t\t\tbreak;\n\t\t\t}", "(S1 + S2).equals(\"RR\") || (S2 + S3).equals(\"RR\")", "(S1 + S2).equals(\"RR\")", "(S1 + S2).equals", "(S1 + S2)", "S1", "S2", "\"RR\"", "(S2 + S3).equals(\"RR\")", "(S2 + S3).equals", "(S2 + S3)", "S2", "S3", "\"RR\"", "{\n\t\t\t\ttotal += 2;\n\t\t\t\tbreak;\n\t\t\t}", "total += 2", "total", "2", "break;", "if(S1.equals(\"R\") || S2.equals(\"R\") || S3.equals(\"R\"))\n\t\t\t{\n\t\t\t\ttotal += 1;\n\t\t\t\tbreak;\n\t\t\t}", "S1.equals(\"R\") || S2.equals(\"R\") || S3.equals(\"R\")", "S1.equals(\"R\") || S2.equals(\"R\") || S3.equals(\"R\")", "S1.equals(\"R\")", "S1.equals", "S1", "\"R\"", "S2.equals(\"R\")", "S2.equals", "S2", "\"R\"", "S3.equals(\"R\")", "S3.equals", "S3", "\"R\"", "{\n\t\t\t\ttotal += 1;\n\t\t\t\tbreak;\n\t\t\t}", "total += 1", "total", "1", "break;", "count++", "count", "System.out.println(total)", "System.out.println", "System.out", "System", "System.out", "total", "scan.close()", "scan.close", "scan", "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\tString S = scan.next();\n\n\t\tint total = 0;\n\n\t\tString S1 = S.substring(0,1);\n\t\tString S2 = S.substring(1,2);\n\t\tString S3 = S.substring(2,3);\n\n\t\tint count = 0;\n\t\twhile(count < 1)\n\t\t{\n\t\t\tif((S1 + S2 + S3).equals(\"RRR\"))\n\t\t\t{\n\t\t\t\ttotal += 3;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif((S1 + S2).equals(\"RR\") || (S2 + S3).equals(\"RR\"))\n\t\t\t{\n\t\t\t\ttotal += 2;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif(S1.equals(\"R\") || S2.equals(\"R\") || S3.equals(\"R\"))\n\t\t\t{\n\t\t\t\ttotal += 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcount++;\n\t\t}\n\n\t\tSystem.out.println(total);\n\n\t\tscan.close();\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\tString S = scan.next();\n\n\t\tint total = 0;\n\n\t\tString S1 = S.substring(0,1);\n\t\tString S2 = S.substring(1,2);\n\t\tString S3 = S.substring(2,3);\n\n\t\tint count = 0;\n\t\twhile(count < 1)\n\t\t{\n\t\t\tif((S1 + S2 + S3).equals(\"RRR\"))\n\t\t\t{\n\t\t\t\ttotal += 3;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif((S1 + S2).equals(\"RR\") || (S2 + S3).equals(\"RR\"))\n\t\t\t{\n\t\t\t\ttotal += 2;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif(S1.equals(\"R\") || S2.equals(\"R\") || S3.equals(\"R\"))\n\t\t\t{\n\t\t\t\ttotal += 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcount++;\n\t\t}\n\n\t\tSystem.out.println(total);\n\n\t\tscan.close();\n\t}\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 total = 0; String S1 = S.substring(0,1); String S2 = S.substring(1,2); String S3 = S.substring(2,3); int count = 0; while(count < 1) { if((S1 + S2 + S3).equals("RRR")) { total += 3; break; } if((S1 + S2).equals("RR") || (S2 + S3).equals("RR")) { total += 2; break; } if(S1.equals("R") || S2.equals("R") || S3.equals("R")) { total += 1; break; } count++; } System.out.println(total); scan.close(); } }
[ 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, 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, 13, 40, 13, 30, 14, 2, 13, 17, 0, 13, 4, 18, 13, 13, 13, 0, 13, 17, 0, 13, 4, 18, 13, 13, 14, 2, 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 ], [ 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 ], [ 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 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 14, 35 ], [ 35, 36 ], [ 35, 37 ], [ 14, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 43, 44 ], [ 43, 45 ], [ 38, 46 ], [ 46, 47 ], [ 47, 48 ], [ 38, 49 ], [ 50, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 52, 57 ], [ 51, 58 ], [ 58, 59 ], [ 51, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 61, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 67, 71 ], [ 60, 72 ], [ 72, 73 ], [ 72, 74 ], [ 60, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 14, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 87, 91 ], [ 14, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 12, 98 ], [ 98, 99 ], [ 0, 100 ], [ 100, 101 ], [ 100, 102 ] ]
[ "/*\nIf you want to aim high, aim high\nDon't let that studying and grades consume you\nJust live life young\n******************************\nWhat do you think? What do you think?\n1st on Billboard, what do you think of it\nNext is a Grammy, what do you think of it\nHowever you think, I’m sorry, but shit, I have no fcking interest\n*******************************\nI'm standing on top of my Monopoly board\nThat means I'm on top of my game and it don't stop\ntil my hip don't hop anymore\nhttps://www.a2oj.com/Ladder16.html\n*******************************\n300iq as writer = Sad!\n*/\nimport java.util.*;\nimport java.io.*;\nimport java.math.*;\n\n public class Main\n {\n public static void main(String hi[]) throws Exception\n {\n BufferedReader infile = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(infile.readLine());\n String input = st.nextToken();\n int res = 0;\n char curr = input.charAt(0);\n int size = 1;\n for(int i=1; i < 3; i++)\n {\n if(input.charAt(i) == curr)\n size++;\n else\n {\n if(curr == 'R')\n res = Math.max(res,size);\n size = 1;\n curr = input.charAt(i);\n }\n }\n if(curr == 'R')\n res = Math.max(res,size);\n System.out.println(res);\n }\n }", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "import java.math.*;", "math.*", "java", "public class Main\n {\n public static void main(String hi[]) throws Exception\n {\n BufferedReader infile = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(infile.readLine());\n String input = st.nextToken();\n int res = 0;\n char curr = input.charAt(0);\n int size = 1;\n for(int i=1; i < 3; i++)\n {\n if(input.charAt(i) == curr)\n size++;\n else\n {\n if(curr == 'R')\n res = Math.max(res,size);\n size = 1;\n curr = input.charAt(i);\n }\n }\n if(curr == 'R')\n res = Math.max(res,size);\n System.out.println(res);\n }\n }", "Main", "public static void main(String hi[]) throws Exception\n {\n BufferedReader infile = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(infile.readLine());\n String input = st.nextToken();\n int res = 0;\n char curr = input.charAt(0);\n int size = 1;\n for(int i=1; i < 3; i++)\n {\n if(input.charAt(i) == curr)\n size++;\n else\n {\n if(curr == 'R')\n res = Math.max(res,size);\n size = 1;\n curr = input.charAt(i);\n }\n }\n if(curr == 'R')\n res = Math.max(res,size);\n System.out.println(res);\n }", "main", "{\n BufferedReader infile = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(infile.readLine());\n String input = st.nextToken();\n int res = 0;\n char curr = input.charAt(0);\n int size = 1;\n for(int i=1; i < 3; i++)\n {\n if(input.charAt(i) == curr)\n size++;\n else\n {\n if(curr == 'R')\n res = Math.max(res,size);\n size = 1;\n curr = input.charAt(i);\n }\n }\n if(curr == 'R')\n res = Math.max(res,size);\n System.out.println(res);\n }", "BufferedReader infile = new BufferedReader(new InputStreamReader(System.in));", "infile", "new BufferedReader(new InputStreamReader(System.in))", "StringTokenizer st = new StringTokenizer(infile.readLine());", "st", "new StringTokenizer(infile.readLine())", "String input = st.nextToken();", "input", "st.nextToken()", "st.nextToken", "st", "int res = 0;", "res", "0", "char curr = input.charAt(0);", "curr", "input.charAt(0)", "input.charAt", "input", "0", "int size = 1;", "size", "1", "for(int i=1; i < 3; i++)\n {\n if(input.charAt(i) == curr)\n size++;\n else\n {\n if(curr == 'R')\n res = Math.max(res,size);\n size = 1;\n curr = input.charAt(i);\n }\n }", "int i=1;", "int i=1;", "i", "1", "i < 3", "i", "3", "i++", "i++", "i", "{\n if(input.charAt(i) == curr)\n size++;\n else\n {\n if(curr == 'R')\n res = Math.max(res,size);\n size = 1;\n curr = input.charAt(i);\n }\n }", "{\n if(input.charAt(i) == curr)\n size++;\n else\n {\n if(curr == 'R')\n res = Math.max(res,size);\n size = 1;\n curr = input.charAt(i);\n }\n }", "if(input.charAt(i) == curr)\n size++;\n else\n {\n if(curr == 'R')\n res = Math.max(res,size);\n size = 1;\n curr = input.charAt(i);\n }", "input.charAt(i) == curr", "input.charAt(i)", "input.charAt", "input", "i", "curr", "size++", "size", "{\n if(curr == 'R')\n res = Math.max(res,size);\n size = 1;\n curr = input.charAt(i);\n }", "if(curr == 'R')\n res = Math.max(res,size);", "curr == 'R'", "curr", "'R'", "res = Math.max(res,size)", "res", "Math.max(res,size)", "Math.max", "Math", "res", "size", "size = 1", "size", "1", "curr = input.charAt(i)", "curr", "input.charAt(i)", "input.charAt", "input", "i", "if(curr == 'R')\n res = Math.max(res,size);", "curr == 'R'", "curr", "'R'", "res = Math.max(res,size)", "res", "Math.max(res,size)", "Math.max", "Math", "res", "size", "System.out.println(res)", "System.out.println", "System.out", "System", "System.out", "res", "String hi[]", "hi", "public class Main\n {\n public static void main(String hi[]) throws Exception\n {\n BufferedReader infile = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(infile.readLine());\n String input = st.nextToken();\n int res = 0;\n char curr = input.charAt(0);\n int size = 1;\n for(int i=1; i < 3; i++)\n {\n if(input.charAt(i) == curr)\n size++;\n else\n {\n if(curr == 'R')\n res = Math.max(res,size);\n size = 1;\n curr = input.charAt(i);\n }\n }\n if(curr == 'R')\n res = Math.max(res,size);\n System.out.println(res);\n }\n }", "public class Main\n {\n public static void main(String hi[]) throws Exception\n {\n BufferedReader infile = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(infile.readLine());\n String input = st.nextToken();\n int res = 0;\n char curr = input.charAt(0);\n int size = 1;\n for(int i=1; i < 3; i++)\n {\n if(input.charAt(i) == curr)\n size++;\n else\n {\n if(curr == 'R')\n res = Math.max(res,size);\n size = 1;\n curr = input.charAt(i);\n }\n }\n if(curr == 'R')\n res = Math.max(res,size);\n System.out.println(res);\n }\n }", "Main" ]
/* If you want to aim high, aim high Don't let that studying and grades consume you Just live life young ****************************** What do you think? What do you think? 1st on Billboard, what do you think of it Next is a Grammy, what do you think of it However you think, I’m sorry, but shit, I have no fcking interest ******************************* I'm standing on top of my Monopoly board That means I'm on top of my game and it don't stop til my hip don't hop anymore https://www.a2oj.com/Ladder16.html ******************************* 300iq as writer = Sad! */ import java.util.*; import java.io.*; import java.math.*; public class Main { public static void main(String hi[]) throws Exception { BufferedReader infile = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(infile.readLine()); String input = st.nextToken(); int res = 0; char curr = input.charAt(0); int size = 1; for(int i=1; i < 3; i++) { if(input.charAt(i) == curr) size++; else { if(curr == 'R') res = Math.max(res,size); size = 1; curr = input.charAt(i); } } if(curr == 'R') res = Math.max(res,size); System.out.println(res); } }
[ 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, 14, 2, 13, 17, 30, 14, 2, 13, 17, 30, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 14, 2, 13, 17, 30, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 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 ], [ 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 ], [ 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 ], [ 36, 37 ], [ 36, 38 ], [ 35, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 40, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 50, 55 ], [ 45, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 40, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 35, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 76, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 71, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 95, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 107, 112 ], [ 6, 113 ], [ 113, 114 ], [ 0, 115 ], [ 115, 116 ], [ 115, 117 ] ]
[ "import java.util.*;\n\npublic class Main {\n\n public static void main(String args[]) {\n\n\n Scanner scan = new Scanner(System.in);\n String s = scan.next();\n\n char a = s.charAt(0);\n char b = s.charAt(1);\n char c = s.charAt(2);\n\n if (a == 'R') {\n if (b== 'R') {\n\n if (c == 'R') {\n System.out.println(3);\n } else {\n System.out.println(2);\n }\n } else {\n System.out.println(1);\n }\n } else {\n if (b== 'R') {\n if (c== 'R') {\n System.out.println(2);\n } else {\n System.out.println(1);\n }\n } else {\n if (c=='R') {\n System.out.println(1);\n } else {\n System.out.println(0);\n }\n }\n }\n\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\n public static void main(String args[]) {\n\n\n Scanner scan = new Scanner(System.in);\n String s = scan.next();\n\n char a = s.charAt(0);\n char b = s.charAt(1);\n char c = s.charAt(2);\n\n if (a == 'R') {\n if (b== 'R') {\n\n if (c == 'R') {\n System.out.println(3);\n } else {\n System.out.println(2);\n }\n } else {\n System.out.println(1);\n }\n } else {\n if (b== 'R') {\n if (c== 'R') {\n System.out.println(2);\n } else {\n System.out.println(1);\n }\n } else {\n if (c=='R') {\n System.out.println(1);\n } else {\n System.out.println(0);\n }\n }\n }\n\n }\n}", "Main", "public static void main(String args[]) {\n\n\n Scanner scan = new Scanner(System.in);\n String s = scan.next();\n\n char a = s.charAt(0);\n char b = s.charAt(1);\n char c = s.charAt(2);\n\n if (a == 'R') {\n if (b== 'R') {\n\n if (c == 'R') {\n System.out.println(3);\n } else {\n System.out.println(2);\n }\n } else {\n System.out.println(1);\n }\n } else {\n if (b== 'R') {\n if (c== 'R') {\n System.out.println(2);\n } else {\n System.out.println(1);\n }\n } else {\n if (c=='R') {\n System.out.println(1);\n } else {\n System.out.println(0);\n }\n }\n }\n\n }", "main", "{\n\n\n Scanner scan = new Scanner(System.in);\n String s = scan.next();\n\n char a = s.charAt(0);\n char b = s.charAt(1);\n char c = s.charAt(2);\n\n if (a == 'R') {\n if (b== 'R') {\n\n if (c == 'R') {\n System.out.println(3);\n } else {\n System.out.println(2);\n }\n } else {\n System.out.println(1);\n }\n } else {\n if (b== 'R') {\n if (c== 'R') {\n System.out.println(2);\n } else {\n System.out.println(1);\n }\n } else {\n if (c=='R') {\n System.out.println(1);\n } else {\n System.out.println(0);\n }\n }\n }\n\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String s = scan.next();", "s", "scan.next()", "scan.next", "scan", "char a = s.charAt(0);", "a", "s.charAt(0)", "s.charAt", "s", "0", "char b = s.charAt(1);", "b", "s.charAt(1)", "s.charAt", "s", "1", "char c = s.charAt(2);", "c", "s.charAt(2)", "s.charAt", "s", "2", "if (a == 'R') {\n if (b== 'R') {\n\n if (c == 'R') {\n System.out.println(3);\n } else {\n System.out.println(2);\n }\n } else {\n System.out.println(1);\n }\n } else {\n if (b== 'R') {\n if (c== 'R') {\n System.out.println(2);\n } else {\n System.out.println(1);\n }\n } else {\n if (c=='R') {\n System.out.println(1);\n } else {\n System.out.println(0);\n }\n }\n }", "a == 'R'", "a", "'R'", "{\n if (b== 'R') {\n\n if (c == 'R') {\n System.out.println(3);\n } else {\n System.out.println(2);\n }\n } else {\n System.out.println(1);\n }\n }", "if (b== 'R') {\n\n if (c == 'R') {\n System.out.println(3);\n } else {\n System.out.println(2);\n }\n } else {\n System.out.println(1);\n }", "b== 'R'", "b", "'R'", "{\n\n if (c == 'R') {\n System.out.println(3);\n } else {\n System.out.println(2);\n }\n }", "if (c == 'R') {\n System.out.println(3);\n } else {\n System.out.println(2);\n }", "c == 'R'", "c", "'R'", "{\n System.out.println(3);\n }", "System.out.println(3)", "System.out.println", "System.out", "System", "System.out", "3", "{\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", "{\n if (b== 'R') {\n if (c== 'R') {\n System.out.println(2);\n } else {\n System.out.println(1);\n }\n } else {\n if (c=='R') {\n System.out.println(1);\n } else {\n System.out.println(0);\n }\n }\n }", "if (b== 'R') {\n if (c== 'R') {\n System.out.println(2);\n } else {\n System.out.println(1);\n }\n } else {\n if (c=='R') {\n System.out.println(1);\n } else {\n System.out.println(0);\n }\n }", "b== 'R'", "b", "'R'", "{\n if (c== 'R') {\n System.out.println(2);\n } else {\n System.out.println(1);\n }\n }", "if (c== 'R') {\n System.out.println(2);\n } else {\n System.out.println(1);\n }", "c== 'R'", "c", "'R'", "{\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", "{\n if (c=='R') {\n System.out.println(1);\n } else {\n System.out.println(0);\n }\n }", "if (c=='R') {\n System.out.println(1);\n } else {\n System.out.println(0);\n }", "c=='R'", "c", "'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", "public class Main {\n\n public static void main(String args[]) {\n\n\n Scanner scan = new Scanner(System.in);\n String s = scan.next();\n\n char a = s.charAt(0);\n char b = s.charAt(1);\n char c = s.charAt(2);\n\n if (a == 'R') {\n if (b== 'R') {\n\n if (c == 'R') {\n System.out.println(3);\n } else {\n System.out.println(2);\n }\n } else {\n System.out.println(1);\n }\n } else {\n if (b== 'R') {\n if (c== 'R') {\n System.out.println(2);\n } else {\n System.out.println(1);\n }\n } else {\n if (c=='R') {\n System.out.println(1);\n } else {\n System.out.println(0);\n }\n }\n }\n\n }\n}", "public class Main {\n\n public static void main(String args[]) {\n\n\n Scanner scan = new Scanner(System.in);\n String s = scan.next();\n\n char a = s.charAt(0);\n char b = s.charAt(1);\n char c = s.charAt(2);\n\n if (a == 'R') {\n if (b== 'R') {\n\n if (c == 'R') {\n System.out.println(3);\n } else {\n System.out.println(2);\n }\n } else {\n System.out.println(1);\n }\n } else {\n if (b== 'R') {\n if (c== 'R') {\n System.out.println(2);\n } else {\n System.out.println(1);\n }\n } else {\n if (c=='R') {\n System.out.println(1);\n } else {\n System.out.println(0);\n }\n }\n }\n\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String args[]) { Scanner scan = new Scanner(System.in); String s = scan.next(); char a = s.charAt(0); char b = s.charAt(1); char c = s.charAt(2); if (a == 'R') { if (b== 'R') { if (c == 'R') { System.out.println(3); } else { System.out.println(2); } } else { System.out.println(1); } } else { if (b== 'R') { if (c== 'R') { System.out.println(2); } else { System.out.println(1); } } else { if (c=='R') { System.out.println(1); } else { System.out.println(0); } } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 41, 13, 4, 18, 18, 13, 13, 14, 2, 13, 17, 30, 40, 13, 14, 2, 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 ], [ 67, 5 ], [ 67, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 15, 20 ], [ 20, 21 ], [ 20, 22 ], [ 15, 23 ], [ 23, 24 ], [ 24, 25 ], [ 15, 26 ], [ 27, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 27, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 35, 39 ], [ 39, 40 ], [ 40, 41 ], [ 27, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 27, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 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.io.IOException;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tint count = 0;\n\t\tint res = 0;\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tchar data = (char) System.in.read();\n\t\t\tif (data == 'R') {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tif (data == 'S') {\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t\tif (count > res) {\n\t\t\t\tres = count;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(res);\n\t}\n\n}", "import java.io.IOException;", "IOException", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tint count = 0;\n\t\tint res = 0;\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tchar data = (char) System.in.read();\n\t\t\tif (data == 'R') {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tif (data == 'S') {\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t\tif (count > res) {\n\t\t\t\tres = count;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(res);\n\t}\n\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tint count = 0;\n\t\tint res = 0;\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tchar data = (char) System.in.read();\n\t\t\tif (data == 'R') {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tif (data == 'S') {\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t\tif (count > res) {\n\t\t\t\tres = count;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(res);\n\t}", "main", "{\n\t\tint count = 0;\n\t\tint res = 0;\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tchar data = (char) System.in.read();\n\t\t\tif (data == 'R') {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tif (data == 'S') {\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t\tif (count > res) {\n\t\t\t\tres = count;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(res);\n\t}", "int count = 0;", "count", "0", "int res = 0;", "res", "0", "for (int i = 0; i < 3; i++) {\n\t\t\tchar data = (char) System.in.read();\n\t\t\tif (data == 'R') {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tif (data == 'S') {\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t\tif (count > res) {\n\t\t\t\tres = count;\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\tchar data = (char) System.in.read();\n\t\t\tif (data == 'R') {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tif (data == 'S') {\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t\tif (count > res) {\n\t\t\t\tres = count;\n\t\t\t}\n\t\t}", "{\n\t\t\tchar data = (char) System.in.read();\n\t\t\tif (data == 'R') {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tif (data == 'S') {\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t\tif (count > res) {\n\t\t\t\tres = count;\n\t\t\t}\n\t\t}", "char data = (char) System.in.read();", "data", "(char) System.in.read()", "System.in.read", "System.in", "System", "System.in", "if (data == 'R') {\n\t\t\t\tcount++;\n\t\t\t}", "data == 'R'", "data", "'R'", "{\n\t\t\t\tcount++;\n\t\t\t}", "count++", "count", "if (data == 'S') {\n\t\t\t\tcount = 0;\n\t\t\t}", "data == 'S'", "data", "'S'", "{\n\t\t\t\tcount = 0;\n\t\t\t}", "count = 0", "count", "0", "if (count > res) {\n\t\t\t\tres = count;\n\t\t\t}", "count > res", "count", "res", "{\n\t\t\t\tres = count;\n\t\t\t}", "res = count", "res", "count", "System.out.println(res)", "System.out.println", "System.out", "System", "System.out", "res", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tint count = 0;\n\t\tint res = 0;\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tchar data = (char) System.in.read();\n\t\t\tif (data == 'R') {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tif (data == 'S') {\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t\tif (count > res) {\n\t\t\t\tres = count;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(res);\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tint count = 0;\n\t\tint res = 0;\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tchar data = (char) System.in.read();\n\t\t\tif (data == 'R') {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tif (data == 'S') {\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t\tif (count > res) {\n\t\t\t\tres = count;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(res);\n\t}\n\n}", "Main" ]
import java.io.IOException; public class Main { public static void main(String[] args) throws IOException { int count = 0; int res = 0; for (int i = 0; i < 3; i++) { char data = (char) System.in.read(); if (data == 'R') { count++; } if (data == 'S') { count = 0; } if (count > res) { res = count; } } System.out.println(res); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 14, 2, 4, 18, 13, 17, 4, 18, 13, 17, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 13, 17, 14, 2, 4, 18, 13, 17, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 13, 17, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 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 ], [ 23, 26 ], [ 8, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 27, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 32, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 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 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 8, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 64, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 69, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 64, 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.Scanner;\npublic class Main{\n static public void main(String args[]){\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n if(S.length()!=3)System.exit(0);\n if(S.equals(\"RRR\")){\n System.out.println(\"3\");\n System.exit(0);\n }\n if(S.equals(\"RRS\") || S.equals(\"SRR\")){\n System.out.println(\"2\");\n System.exit(0);\n } if (S.equals(\"SSS\")){\n System.out.println(\"0\");\n System.exit(0);\n } else {\n System.out.println(\"1\");\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n static public void main(String args[]){\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n if(S.length()!=3)System.exit(0);\n if(S.equals(\"RRR\")){\n System.out.println(\"3\");\n System.exit(0);\n }\n if(S.equals(\"RRS\") || S.equals(\"SRR\")){\n System.out.println(\"2\");\n System.exit(0);\n } if (S.equals(\"SSS\")){\n System.out.println(\"0\");\n System.exit(0);\n } else {\n System.out.println(\"1\");\n }\n }\n}", "Main", "static public void main(String args[]){\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n if(S.length()!=3)System.exit(0);\n if(S.equals(\"RRR\")){\n System.out.println(\"3\");\n System.exit(0);\n }\n if(S.equals(\"RRS\") || S.equals(\"SRR\")){\n System.out.println(\"2\");\n System.exit(0);\n } if (S.equals(\"SSS\")){\n System.out.println(\"0\");\n System.exit(0);\n } else {\n System.out.println(\"1\");\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n if(S.length()!=3)System.exit(0);\n if(S.equals(\"RRR\")){\n System.out.println(\"3\");\n System.exit(0);\n }\n if(S.equals(\"RRS\") || S.equals(\"SRR\")){\n System.out.println(\"2\");\n System.exit(0);\n } if (S.equals(\"SSS\")){\n System.out.println(\"0\");\n System.exit(0);\n } else {\n System.out.println(\"1\");\n }\n }", "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)System.exit(0);", "S.length()!=3", "S.length()", "S.length", "S", "3", "System.exit(0)", "System.exit", "System", "0", "if(S.equals(\"RRR\")){\n System.out.println(\"3\");\n System.exit(0);\n }", "S.equals(\"RRR\")", "S.equals", "S", "\"RRR\"", "{\n System.out.println(\"3\");\n System.exit(0);\n }", "System.out.println(\"3\")", "System.out.println", "System.out", "System", "System.out", "\"3\"", "System.exit(0)", "System.exit", "System", "0", "if(S.equals(\"RRS\") || S.equals(\"SRR\")){\n System.out.println(\"2\");\n System.exit(0);\n }", "S.equals(\"RRS\") || S.equals(\"SRR\")", "S.equals(\"RRS\")", "S.equals", "S", "\"RRS\"", "S.equals(\"SRR\")", "S.equals", "S", "\"SRR\"", "{\n System.out.println(\"2\");\n System.exit(0);\n }", "System.out.println(\"2\")", "System.out.println", "System.out", "System", "System.out", "\"2\"", "System.exit(0)", "System.exit", "System", "0", "if (S.equals(\"SSS\")){\n System.out.println(\"0\");\n System.exit(0);\n } else {\n System.out.println(\"1\");\n }", "S.equals(\"SSS\")", "S.equals", "S", "\"SSS\"", "{\n System.out.println(\"0\");\n System.exit(0);\n }", "System.out.println(\"0\")", "System.out.println", "System.out", "System", "System.out", "\"0\"", "System.exit(0)", "System.exit", "System", "0", "{\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 static public void main(String args[]){\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n if(S.length()!=3)System.exit(0);\n if(S.equals(\"RRR\")){\n System.out.println(\"3\");\n System.exit(0);\n }\n if(S.equals(\"RRS\") || S.equals(\"SRR\")){\n System.out.println(\"2\");\n System.exit(0);\n } if (S.equals(\"SSS\")){\n System.out.println(\"0\");\n System.exit(0);\n } else {\n System.out.println(\"1\");\n }\n }\n}", "public class Main{\n static public void main(String args[]){\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n if(S.length()!=3)System.exit(0);\n if(S.equals(\"RRR\")){\n System.out.println(\"3\");\n System.exit(0);\n }\n if(S.equals(\"RRS\") || S.equals(\"SRR\")){\n System.out.println(\"2\");\n System.exit(0);\n } if (S.equals(\"SSS\")){\n System.out.println(\"0\");\n System.exit(0);\n } else {\n System.out.println(\"1\");\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ static public void main(String args[]){ Scanner sc = new Scanner(System.in); String S = sc.next(); if(S.length()!=3)System.exit(0); if(S.equals("RRR")){ System.out.println("3"); System.exit(0); } if(S.equals("RRS") || S.equals("SRR")){ System.out.println("2"); System.exit(0); } if (S.equals("SSS")){ System.out.println("0"); System.exit(0); } else { System.out.println("1"); } } }
[ 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, 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, 18, 13, 17, 17, 2, 18, 13, 17, 17, 30, 0, 13, 17, 14, 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 ], [ 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 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 8, 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 ], [ 44, 45 ], [ 44, 46 ], [ 25, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 48, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 47, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 47, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 64, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 63, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 63, 79 ], [ 79, 80 ], [ 81, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 81, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 81, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 92, 96 ], [ 79, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 8, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 6, 107 ], [ 107, 108 ], [ 0, 109 ], [ 109, 110 ], [ 109, 111 ] ]
[ "import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n String s = sc.next();\n \n int cnt = 0;\n char[] c = s.toCharArray();\n if(c[0] == 'R' && c[1] == 'R' && c[2] == 'R') {\n cnt = 3;\n } else if(c[0] == 'R' && c[1] == 'R') {\n cnt = 2;\n } else if(c[1] == 'R' && c[2] == 'R') {\n cnt = 2;\n } else if(c[0] == 'R' || c[1] == 'R' || c[2] == 'R') {\n cnt = 1;\n }\n System.out.println(cnt);\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 String s = sc.next();\n \n int cnt = 0;\n char[] c = s.toCharArray();\n if(c[0] == 'R' && c[1] == 'R' && c[2] == 'R') {\n cnt = 3;\n } else if(c[0] == 'R' && c[1] == 'R') {\n cnt = 2;\n } else if(c[1] == 'R' && c[2] == 'R') {\n cnt = 2;\n } else if(c[0] == 'R' || c[1] == 'R' || c[2] == 'R') {\n cnt = 1;\n }\n System.out.println(cnt);\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n String s = sc.next();\n \n int cnt = 0;\n char[] c = s.toCharArray();\n if(c[0] == 'R' && c[1] == 'R' && c[2] == 'R') {\n cnt = 3;\n } else if(c[0] == 'R' && c[1] == 'R') {\n cnt = 2;\n } else if(c[1] == 'R' && c[2] == 'R') {\n cnt = 2;\n } else if(c[0] == 'R' || c[1] == 'R' || c[2] == 'R') {\n cnt = 1;\n }\n System.out.println(cnt);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n \n String s = sc.next();\n \n int cnt = 0;\n char[] c = s.toCharArray();\n if(c[0] == 'R' && c[1] == 'R' && c[2] == 'R') {\n cnt = 3;\n } else if(c[0] == 'R' && c[1] == 'R') {\n cnt = 2;\n } else if(c[1] == 'R' && c[2] == 'R') {\n cnt = 2;\n } else if(c[0] == 'R' || c[1] == 'R' || c[2] == 'R') {\n cnt = 1;\n }\n System.out.println(cnt);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "int cnt = 0;", "cnt", "0", "char[] c = s.toCharArray();", "c", "s.toCharArray()", "s.toCharArray", "s", "if(c[0] == 'R' && c[1] == 'R' && c[2] == 'R') {\n cnt = 3;\n } else if(c[0] == 'R' && c[1] == 'R') {\n cnt = 2;\n } else if(c[1] == 'R' && c[2] == 'R') {\n cnt = 2;\n } else if(c[0] == 'R' || c[1] == 'R' || c[2] == 'R') {\n cnt = 1;\n }", "c[0] == 'R' && c[1] == 'R' && c[2] == 'R'", "c[0] == 'R' && c[1] == 'R' && c[2] == 'R'", "c[0] == 'R'", "c[0]", "c", "0", "'R'", "c[1] == 'R'", "c[1]", "c", "1", "'R'", "c[2] == 'R'", "c[2]", "c", "2", "'R'", "{\n cnt = 3;\n }", "cnt = 3", "cnt", "3", "if(c[0] == 'R' && c[1] == 'R') {\n cnt = 2;\n } else if(c[1] == 'R' && c[2] == 'R') {\n cnt = 2;\n } else if(c[0] == 'R' || c[1] == 'R' || c[2] == 'R') {\n cnt = 1;\n }", "c[0] == 'R' && c[1] == 'R'", "c[0] == 'R'", "c[0]", "c", "0", "'R'", "c[1] == 'R'", "c[1]", "c", "1", "'R'", "{\n cnt = 2;\n }", "cnt = 2", "cnt", "2", "if(c[1] == 'R' && c[2] == 'R') {\n cnt = 2;\n } else if(c[0] == 'R' || c[1] == 'R' || c[2] == 'R') {\n cnt = 1;\n }", "c[1] == 'R' && c[2] == 'R'", "c[1] == 'R'", "c[1]", "c", "1", "'R'", "c[2] == 'R'", "c[2]", "c", "2", "'R'", "{\n cnt = 2;\n }", "cnt = 2", "cnt", "2", "if(c[0] == 'R' || c[1] == 'R' || c[2] == 'R') {\n cnt = 1;\n }", "c[0] == 'R' || c[1] == 'R' || c[2] == 'R'", "c[0] == 'R' || c[1] == 'R' || c[2] == 'R'", "c[0] == 'R'", "c[0]", "c", "0", "'R'", "c[1] == 'R'", "c[1]", "c", "1", "'R'", "c[2] == 'R'", "c[2]", "c", "2", "'R'", "{\n cnt = 1;\n }", "cnt = 1", "cnt", "1", "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 \n String s = sc.next();\n \n int cnt = 0;\n char[] c = s.toCharArray();\n if(c[0] == 'R' && c[1] == 'R' && c[2] == 'R') {\n cnt = 3;\n } else if(c[0] == 'R' && c[1] == 'R') {\n cnt = 2;\n } else if(c[1] == 'R' && c[2] == 'R') {\n cnt = 2;\n } else if(c[0] == 'R' || c[1] == 'R' || c[2] == 'R') {\n cnt = 1;\n }\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 \n String s = sc.next();\n \n int cnt = 0;\n char[] c = s.toCharArray();\n if(c[0] == 'R' && c[1] == 'R' && c[2] == 'R') {\n cnt = 3;\n } else if(c[0] == 'R' && c[1] == 'R') {\n cnt = 2;\n } else if(c[1] == 'R' && c[2] == 'R') {\n cnt = 2;\n } else if(c[0] == 'R' || c[1] == 'R' || c[2] == 'R') {\n cnt = 1;\n }\n System.out.println(cnt);\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 cnt = 0; char[] c = s.toCharArray(); if(c[0] == 'R' && c[1] == 'R' && c[2] == 'R') { cnt = 3; } else if(c[0] == 'R' && c[1] == 'R') { cnt = 2; } else if(c[1] == 'R' && c[2] == 'R') { cnt = 2; } else if(c[0] == 'R' || c[1] == 'R' || c[2] == 'R') { cnt = 1; } System.out.println(cnt); } }
[ 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, 42, 2, 13, 17, 30, 41, 13, 13, 42, 2, 2, 13, 17, 2, 4, 18, 13, 13, 17, 30, 40, 13, 0, 13, 4, 18, 13, 13, 2, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 6, 13, 41, 13, 20, 41, 13, 20, 12, 13, 30, 42, 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, 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, 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 ], [ 154, 14 ], [ 154, 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 ], [ 33, 35 ], [ 32, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 45, 50 ], [ 40, 51 ], [ 51, 52 ], [ 52, 53 ], [ 36, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 56, 60 ], [ 60, 61 ], [ 60, 62 ], [ 36, 63 ], [ 63, 64 ], [ 17, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 15, 71 ], [ 71, 72 ], [ 154, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 78, 79 ], [ 78, 80 ], [ 73, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 84, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 90, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 83, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 73, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 109, 112 ], [ 112, 113 ], [ 73, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 116, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 121, 126 ], [ 126, 127 ], [ 126, 128 ], [ 121, 129 ], [ 129, 130 ], [ 130, 131 ], [ 121, 132 ], [ 133, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 134, 138 ], [ 138, 139 ], [ 116, 140 ], [ 140, 141 ], [ 114, 142 ], [ 142, 143 ], [ 73, 144 ], [ 144, 145 ], [ 144, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 148, 151 ], [ 151, 152 ], [ 0, 153 ], [ 153, 154 ], [ 153, 155 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n String s = fs.next();\n int maxCount = 0;\n int idx = 0;\n while (idx < 3) {\n int start = idx;\n while (idx < 3 && s.charAt(idx) == 'R') {\n idx++;\n }\n maxCount = Math.max(maxCount, idx - start);\n idx++;\n }\n System.out.println(maxCount);\n }\n\n static class FastScanner {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while (!st.hasMoreTokens()) {\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 int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\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\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n String s = fs.next();\n int maxCount = 0;\n int idx = 0;\n while (idx < 3) {\n int start = idx;\n while (idx < 3 && s.charAt(idx) == 'R') {\n idx++;\n }\n maxCount = Math.max(maxCount, idx - start);\n idx++;\n }\n System.out.println(maxCount);\n }\n\n static class FastScanner {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while (!st.hasMoreTokens()) {\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 int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n}", "Main", "public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n String s = fs.next();\n int maxCount = 0;\n int idx = 0;\n while (idx < 3) {\n int start = idx;\n while (idx < 3 && s.charAt(idx) == 'R') {\n idx++;\n }\n maxCount = Math.max(maxCount, idx - start);\n idx++;\n }\n System.out.println(maxCount);\n }", "main", "{\n FastScanner fs = new FastScanner();\n String s = fs.next();\n int maxCount = 0;\n int idx = 0;\n while (idx < 3) {\n int start = idx;\n while (idx < 3 && s.charAt(idx) == 'R') {\n idx++;\n }\n maxCount = Math.max(maxCount, idx - start);\n idx++;\n }\n System.out.println(maxCount);\n }", "FastScanner fs = new FastScanner();", "fs", "new FastScanner()", "String s = fs.next();", "s", "fs.next()", "fs.next", "fs", "int maxCount = 0;", "maxCount", "0", "int idx = 0;", "idx", "0", "while (idx < 3) {\n int start = idx;\n while (idx < 3 && s.charAt(idx) == 'R') {\n idx++;\n }\n maxCount = Math.max(maxCount, idx - start);\n idx++;\n }", "idx < 3", "idx", "3", "{\n int start = idx;\n while (idx < 3 && s.charAt(idx) == 'R') {\n idx++;\n }\n maxCount = Math.max(maxCount, idx - start);\n idx++;\n }", "int start = idx;", "start", "idx", "while (idx < 3 && s.charAt(idx) == 'R') {\n idx++;\n }", "idx < 3 && s.charAt(idx) == 'R'", "idx < 3", "idx", "3", "s.charAt(idx) == 'R'", "s.charAt(idx)", "s.charAt", "s", "idx", "'R'", "{\n idx++;\n }", "idx++", "idx", "maxCount = Math.max(maxCount, idx - start)", "maxCount", "Math.max(maxCount, idx - start)", "Math.max", "Math", "maxCount", "idx - start", "idx", "start", "idx++", "idx", "System.out.println(maxCount)", "System.out.println", "System.out", "System", "System.out", "maxCount", "String[] args", "args", "static class FastScanner {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while (!st.hasMoreTokens()) {\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 int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }", "FastScanner", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringTokenizer st = new StringTokenizer(\"\");", "st", "new StringTokenizer(\"\")", "String next() {\n while (!st.hasMoreTokens()) {\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.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }", "while (!st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "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", "int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }", "readArray", "{\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }", "int[] a = new int[n];", "a", "new int[n]", "n", "for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n a[i] = nextInt();\n }", "{\n a[i] = nextInt();\n }", "a[i] = nextInt()", "a[i]", "a", "i", "nextInt()", "nextInt", "return a;", "a", "int n", "n", "long nextLong() {\n return Long.parseLong(next());\n }", "nextLong", "{\n return Long.parseLong(next());\n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "public class Main {\n\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n String s = fs.next();\n int maxCount = 0;\n int idx = 0;\n while (idx < 3) {\n int start = idx;\n while (idx < 3 && s.charAt(idx) == 'R') {\n idx++;\n }\n maxCount = Math.max(maxCount, idx - start);\n idx++;\n }\n System.out.println(maxCount);\n }\n\n static class FastScanner {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while (!st.hasMoreTokens()) {\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 int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n String s = fs.next();\n int maxCount = 0;\n int idx = 0;\n while (idx < 3) {\n int start = idx;\n while (idx < 3 && s.charAt(idx) == 'R') {\n idx++;\n }\n maxCount = Math.max(maxCount, idx - start);\n idx++;\n }\n System.out.println(maxCount);\n }\n\n static class FastScanner {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while (!st.hasMoreTokens()) {\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 int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\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) { FastScanner fs = new FastScanner(); String s = fs.next(); int maxCount = 0; int idx = 0; while (idx < 3) { int start = idx; while (idx < 3 && s.charAt(idx) == 'R') { idx++; } maxCount = Math.max(maxCount, idx - start); idx++; } System.out.println(maxCount); } static class FastScanner { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(""); String next() { while (!st.hasMoreTokens()) { try { st = new StringTokenizer(br.readLine()); } catch (IOException e) { e.printStackTrace(); } } return st.nextToken(); } int nextInt() { return Integer.parseInt(next()); } int[] readArray(int n) { int[] a = new int[n]; for (int i = 0; i < n; i++) { a[i] = nextInt(); } return a; } long nextLong() { return Long.parseLong(next()); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 17, 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, 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 ], [ 176, 11 ], [ 176, 12 ], [ 12, 13 ], [ 12, 14 ], [ 176, 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 ], [ 58, 59 ], [ 50, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 63, 67 ], [ 60, 68 ], [ 68, 69 ], [ 68, 70 ], [ 17, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 73, 77 ], [ 17, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 17, 82 ], [ 82, 83 ], [ 83, 84 ], [ 15, 85 ], [ 85, 86 ], [ 176, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 87, 91 ], [ 91, 92 ], [ 87, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 87, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 102, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 112, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 101, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 87, 127 ], [ 127, 128 ], [ 127, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 131, 134 ], [ 134, 135 ], [ 87, 136 ], [ 136, 137 ], [ 136, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 140, 143 ], [ 143, 144 ], [ 87, 145 ], [ 145, 146 ], [ 145, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 149, 152 ], [ 152, 153 ], [ 87, 154 ], [ 154, 155 ], [ 154, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 156, 160 ], [ 160, 161 ], [ 161, 162 ], [ 161, 163 ], [ 163, 164 ], [ 164, 165 ], [ 165, 166 ], [ 160, 167 ], [ 167, 168 ], [ 168, 169 ], [ 168, 170 ], [ 170, 171 ], [ 171, 172 ], [ 156, 173 ], [ 173, 174 ], [ 0, 175 ], [ 175, 176 ], [ 175, 177 ] ]
[ "import java.io.*;\nimport java.math.*;\nimport java.util.*;\n \npublic class Main {\n\tstatic final long MOD = 1000000007L;\n\tpublic static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner();\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\t\n\t\tString s = sc.next();\n\t\tint ans = 0;\n\t\tint cur = 0;\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tif (s.charAt(i)=='R') {\n\t\t\t\tcur++;\n\t\t\t} else {\n\t\t\t\tans = Math.max(ans, cur);\n\t\t\t\tcur = 0;\n\t\t\t}\n\t\t}\n\t\tans = Math.max(ans, cur);\n\t\tpw.println(ans);\n\t\t\n\t\tpw.close();\n\t}\n\t\n static class FastScanner { \n BufferedReader br; \n StringTokenizer st; \n \n public FastScanner() { \n br = new BufferedReader(new InputStreamReader(System.in)); \n } \n \n String next() { \n while (st == null || !st.hasMoreElements()) { \n try { \n st = new StringTokenizer(br.readLine());\n } catch (IOException e) { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n }\n \n int ni() { \n return Integer.parseInt(next()); \n }\n \n long nl() { \n return Long.parseLong(next()); \n } \n \n double nd() { \n return Double.parseDouble(next()); \n } \n \n String nextLine() {\n String str = \"\"; \n try { \n str = br.readLine(); \n } catch (IOException e) {\n e.printStackTrace(); \n } \n return str;\n }\n }\n}", "import java.io.*;", "io.*", "java", "import java.math.*;", "math.*", "java", "import java.util.*;", "util.*", "java", "public class Main {\n\tstatic final long MOD = 1000000007L;\n\tpublic static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner();\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\t\n\t\tString s = sc.next();\n\t\tint ans = 0;\n\t\tint cur = 0;\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tif (s.charAt(i)=='R') {\n\t\t\t\tcur++;\n\t\t\t} else {\n\t\t\t\tans = Math.max(ans, cur);\n\t\t\t\tcur = 0;\n\t\t\t}\n\t\t}\n\t\tans = Math.max(ans, cur);\n\t\tpw.println(ans);\n\t\t\n\t\tpw.close();\n\t}\n\t\n static class FastScanner { \n BufferedReader br; \n StringTokenizer st; \n \n public FastScanner() { \n br = new BufferedReader(new InputStreamReader(System.in)); \n } \n \n String next() { \n while (st == null || !st.hasMoreElements()) { \n try { \n st = new StringTokenizer(br.readLine());\n } catch (IOException e) { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n }\n \n int ni() { \n return Integer.parseInt(next()); \n }\n \n long nl() { \n return Long.parseLong(next()); \n } \n \n double nd() { \n return Double.parseDouble(next()); \n } \n \n String nextLine() {\n String str = \"\"; \n try { \n str = br.readLine(); \n } catch (IOException e) {\n e.printStackTrace(); \n } \n return str;\n }\n }\n}", "Main", "static final long MOD = 1000000007L;", "MOD", "1000000007L", "public static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner();\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\t\n\t\tString s = sc.next();\n\t\tint ans = 0;\n\t\tint cur = 0;\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tif (s.charAt(i)=='R') {\n\t\t\t\tcur++;\n\t\t\t} else {\n\t\t\t\tans = Math.max(ans, cur);\n\t\t\t\tcur = 0;\n\t\t\t}\n\t\t}\n\t\tans = Math.max(ans, cur);\n\t\tpw.println(ans);\n\t\t\n\t\tpw.close();\n\t}", "main", "{\n\t\tFastScanner sc = new FastScanner();\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\t\n\t\tString s = sc.next();\n\t\tint ans = 0;\n\t\tint cur = 0;\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tif (s.charAt(i)=='R') {\n\t\t\t\tcur++;\n\t\t\t} else {\n\t\t\t\tans = Math.max(ans, cur);\n\t\t\t\tcur = 0;\n\t\t\t}\n\t\t}\n\t\tans = Math.max(ans, cur);\n\t\tpw.println(ans);\n\t\t\n\t\tpw.close();\n\t}", "FastScanner sc = new FastScanner();", "sc", "new FastScanner()", "PrintWriter pw = new PrintWriter(System.out);", "pw", "new PrintWriter(System.out)", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "int ans = 0;", "ans", "0", "int cur = 0;", "cur", "0", "for (int i = 0; i < s.length(); i++) {\n\t\t\tif (s.charAt(i)=='R') {\n\t\t\t\tcur++;\n\t\t\t} else {\n\t\t\t\tans = Math.max(ans, cur);\n\t\t\t\tcur = 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') {\n\t\t\t\tcur++;\n\t\t\t} else {\n\t\t\t\tans = Math.max(ans, cur);\n\t\t\t\tcur = 0;\n\t\t\t}\n\t\t}", "{\n\t\t\tif (s.charAt(i)=='R') {\n\t\t\t\tcur++;\n\t\t\t} else {\n\t\t\t\tans = Math.max(ans, cur);\n\t\t\t\tcur = 0;\n\t\t\t}\n\t\t}", "if (s.charAt(i)=='R') {\n\t\t\t\tcur++;\n\t\t\t} else {\n\t\t\t\tans = Math.max(ans, cur);\n\t\t\t\tcur = 0;\n\t\t\t}", "s.charAt(i)=='R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "{\n\t\t\t\tcur++;\n\t\t\t}", "cur++", "cur", "{\n\t\t\t\tans = Math.max(ans, cur);\n\t\t\t\tcur = 0;\n\t\t\t}", "ans = Math.max(ans, cur)", "ans", "Math.max(ans, cur)", "Math.max", "Math", "ans", "cur", "cur = 0", "cur", "0", "ans = Math.max(ans, cur)", "ans", "Math.max(ans, cur)", "Math.max", "Math", "ans", "cur", "pw.println(ans)", "pw.println", "pw", "ans", "pw.close()", "pw.close", "pw", "String[] args", "args", "static class FastScanner { \n BufferedReader br; \n StringTokenizer st; \n \n public FastScanner() { \n br = new BufferedReader(new InputStreamReader(System.in)); \n } \n \n String next() { \n while (st == null || !st.hasMoreElements()) { \n try { \n st = new StringTokenizer(br.readLine());\n } catch (IOException e) { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n }\n \n int ni() { \n return Integer.parseInt(next()); \n }\n \n long nl() { \n return Long.parseLong(next()); \n } \n \n double nd() { \n return Double.parseDouble(next()); \n } \n \n String nextLine() {\n String str = \"\"; \n try { \n str = br.readLine(); \n } catch (IOException e) {\n e.printStackTrace(); \n } \n return str;\n }\n }", "FastScanner", "BufferedReader br;", "br", "StringTokenizer st;", "st", "public FastScanner() { \n br = new BufferedReader(new InputStreamReader(System.in)); \n }", "FastScanner", "{ \n br = new BufferedReader(new InputStreamReader(System.in)); \n }", "br = new BufferedReader(new InputStreamReader(System.in))", "br", "new BufferedReader(new InputStreamReader(System.in))", "String next() { \n while (st == null || !st.hasMoreElements()) { \n try { \n st = new StringTokenizer(br.readLine());\n } catch (IOException e) { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n }", "next", "{ \n while (st == null || !st.hasMoreElements()) { \n try { \n st = new StringTokenizer(br.readLine());\n } catch (IOException e) { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n }", "while (st == null || !st.hasMoreElements()) { \n try { \n st = new StringTokenizer(br.readLine());\n } catch (IOException e) { \n e.printStackTrace(); \n } \n }", "st == null || !st.hasMoreElements()", "st == null", "st", "null", "!st.hasMoreElements()", "st.hasMoreElements()", "st.hasMoreElements", "st", "{ \n try { \n st = new StringTokenizer(br.readLine());\n } catch (IOException e) { \n e.printStackTrace(); \n } \n }", "try { \n st = new StringTokenizer(br.readLine());\n } catch (IOException e) { \n e.printStackTrace(); \n }", "catch (IOException e) { \n e.printStackTrace(); \n }", "IOException e", "{ \n e.printStackTrace(); \n }", "e.printStackTrace()", "e.printStackTrace", "e", "{ \n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "int ni() { \n return Integer.parseInt(next()); \n }", "ni", "{ \n return Integer.parseInt(next()); \n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "long nl() { \n return Long.parseLong(next()); \n }", "nl", "{ \n return Long.parseLong(next()); \n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "double nd() { \n return Double.parseDouble(next()); \n }", "nd", "{ \n return Double.parseDouble(next()); \n }", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "String nextLine() {\n String str = \"\"; \n try { \n str = br.readLine(); \n } catch (IOException e) {\n e.printStackTrace(); \n } \n return str;\n }", "nextLine", "{\n String str = \"\"; \n try { \n str = br.readLine(); \n } catch (IOException e) {\n e.printStackTrace(); \n } \n return str;\n }", "String str = \"\";", "str", "\"\"", "try { \n str = br.readLine(); \n } catch (IOException e) {\n e.printStackTrace(); \n }", "catch (IOException e) {\n e.printStackTrace(); \n }", "IOException e", "{\n e.printStackTrace(); \n }", "e.printStackTrace()", "e.printStackTrace", "e", "{ \n str = br.readLine(); \n }", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "return str;", "str", "public class Main {\n\tstatic final long MOD = 1000000007L;\n\tpublic static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner();\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\t\n\t\tString s = sc.next();\n\t\tint ans = 0;\n\t\tint cur = 0;\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tif (s.charAt(i)=='R') {\n\t\t\t\tcur++;\n\t\t\t} else {\n\t\t\t\tans = Math.max(ans, cur);\n\t\t\t\tcur = 0;\n\t\t\t}\n\t\t}\n\t\tans = Math.max(ans, cur);\n\t\tpw.println(ans);\n\t\t\n\t\tpw.close();\n\t}\n\t\n static class FastScanner { \n BufferedReader br; \n StringTokenizer st; \n \n public FastScanner() { \n br = new BufferedReader(new InputStreamReader(System.in)); \n } \n \n String next() { \n while (st == null || !st.hasMoreElements()) { \n try { \n st = new StringTokenizer(br.readLine());\n } catch (IOException e) { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n }\n \n int ni() { \n return Integer.parseInt(next()); \n }\n \n long nl() { \n return Long.parseLong(next()); \n } \n \n double nd() { \n return Double.parseDouble(next()); \n } \n \n String nextLine() {\n String str = \"\"; \n try { \n str = br.readLine(); \n } catch (IOException e) {\n e.printStackTrace(); \n } \n return str;\n }\n }\n}", "public class Main {\n\tstatic final long MOD = 1000000007L;\n\tpublic static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner();\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\t\n\t\tString s = sc.next();\n\t\tint ans = 0;\n\t\tint cur = 0;\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tif (s.charAt(i)=='R') {\n\t\t\t\tcur++;\n\t\t\t} else {\n\t\t\t\tans = Math.max(ans, cur);\n\t\t\t\tcur = 0;\n\t\t\t}\n\t\t}\n\t\tans = Math.max(ans, cur);\n\t\tpw.println(ans);\n\t\t\n\t\tpw.close();\n\t}\n\t\n static class FastScanner { \n BufferedReader br; \n StringTokenizer st; \n \n public FastScanner() { \n br = new BufferedReader(new InputStreamReader(System.in)); \n } \n \n String next() { \n while (st == null || !st.hasMoreElements()) { \n try { \n st = new StringTokenizer(br.readLine());\n } catch (IOException e) { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n }\n \n int ni() { \n return Integer.parseInt(next()); \n }\n \n long nl() { \n return Long.parseLong(next()); \n } \n \n double nd() { \n return Double.parseDouble(next()); \n } \n \n String nextLine() {\n String str = \"\"; \n try { \n str = br.readLine(); \n } catch (IOException e) {\n e.printStackTrace(); \n } \n return str;\n }\n }\n}", "Main" ]
import java.io.*; import java.math.*; import java.util.*; public class Main { static final long MOD = 1000000007L; public static void main(String[] args) { FastScanner sc = new FastScanner(); PrintWriter pw = new PrintWriter(System.out); String s = sc.next(); int ans = 0; int cur = 0; for (int i = 0; i < s.length(); i++) { if (s.charAt(i)=='R') { cur++; } else { ans = Math.max(ans, cur); cur = 0; } } ans = Math.max(ans, cur); pw.println(ans); pw.close(); } static class FastScanner { BufferedReader br; StringTokenizer st; public FastScanner() { br = new BufferedReader(new InputStreamReader(System.in)); } String next() { while (st == null || !st.hasMoreElements()) { try { st = new StringTokenizer(br.readLine()); } catch (IOException e) { e.printStackTrace(); } } return st.nextToken(); } int ni() { return Integer.parseInt(next()); } long nl() { return Long.parseLong(next()); } double nd() { return Double.parseDouble(next()); } String nextLine() { String str = ""; try { str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } return str; } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 14, 4, 18, 13, 17, 30, 14, 2, 2, 4, 18, 13, 17, 4, 18, 13, 17, 2, 4, 18, 13, 17, 4, 18, 13, 17, 30, 0, 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, 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 ], [ 95, 5 ], [ 95, 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 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 27, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 37, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 26, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 26, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 53, 58 ], [ 52, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 59, 64 ], [ 51, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 66, 71 ], [ 65, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 72, 77 ], [ 50, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 50, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 8, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 6, 92 ], [ 92, 93 ], [ 0, 94 ], [ 94, 95 ], [ 94, 96 ] ]
[ "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.next();\n\t\tint count = 0;\n\t\tif(s.contains(\"R\")){\n\t\t\t if(s.charAt(0)==s.charAt(1)&&\n\t\t\t\t\t\ts.charAt(0)==s.charAt(2)){\n\t\t\t\t\tcount = 3;\n\t\t\t\t}\n\t\t\telse if(s.charAt(0)=='R'&&s.charAt(1)=='R'\n\t\t\t\t\t|| s.charAt(1)=='R'&&s.charAt(2)=='R') {\n\t\t\t\tcount = 2;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcount = 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\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.next();\n\t\tint count = 0;\n\t\tif(s.contains(\"R\")){\n\t\t\t if(s.charAt(0)==s.charAt(1)&&\n\t\t\t\t\t\ts.charAt(0)==s.charAt(2)){\n\t\t\t\t\tcount = 3;\n\t\t\t\t}\n\t\t\telse if(s.charAt(0)=='R'&&s.charAt(1)=='R'\n\t\t\t\t\t|| s.charAt(1)=='R'&&s.charAt(2)=='R') {\n\t\t\t\tcount = 2;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcount = 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\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\tint count = 0;\n\t\tif(s.contains(\"R\")){\n\t\t\t if(s.charAt(0)==s.charAt(1)&&\n\t\t\t\t\t\ts.charAt(0)==s.charAt(2)){\n\t\t\t\t\tcount = 3;\n\t\t\t\t}\n\t\t\telse if(s.charAt(0)=='R'&&s.charAt(1)=='R'\n\t\t\t\t\t|| s.charAt(1)=='R'&&s.charAt(2)=='R') {\n\t\t\t\tcount = 2;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcount = 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tint count = 0;\n\t\tif(s.contains(\"R\")){\n\t\t\t if(s.charAt(0)==s.charAt(1)&&\n\t\t\t\t\t\ts.charAt(0)==s.charAt(2)){\n\t\t\t\t\tcount = 3;\n\t\t\t\t}\n\t\t\telse if(s.charAt(0)=='R'&&s.charAt(1)=='R'\n\t\t\t\t\t|| s.charAt(1)=='R'&&s.charAt(2)=='R') {\n\t\t\t\tcount = 2;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcount = 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "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", "if(s.contains(\"R\")){\n\t\t\t if(s.charAt(0)==s.charAt(1)&&\n\t\t\t\t\t\ts.charAt(0)==s.charAt(2)){\n\t\t\t\t\tcount = 3;\n\t\t\t\t}\n\t\t\telse if(s.charAt(0)=='R'&&s.charAt(1)=='R'\n\t\t\t\t\t|| s.charAt(1)=='R'&&s.charAt(2)=='R') {\n\t\t\t\tcount = 2;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcount = 1;\n\t\t\t}\n\t\t}", "s.contains(\"R\")", "s.contains", "s", "\"R\"", "{\n\t\t\t if(s.charAt(0)==s.charAt(1)&&\n\t\t\t\t\t\ts.charAt(0)==s.charAt(2)){\n\t\t\t\t\tcount = 3;\n\t\t\t\t}\n\t\t\telse if(s.charAt(0)=='R'&&s.charAt(1)=='R'\n\t\t\t\t\t|| s.charAt(1)=='R'&&s.charAt(2)=='R') {\n\t\t\t\tcount = 2;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcount = 1;\n\t\t\t}\n\t\t}", "if(s.charAt(0)==s.charAt(1)&&\n\t\t\t\t\t\ts.charAt(0)==s.charAt(2)){\n\t\t\t\t\tcount = 3;\n\t\t\t\t}\n\t\t\telse if(s.charAt(0)=='R'&&s.charAt(1)=='R'\n\t\t\t\t\t|| s.charAt(1)=='R'&&s.charAt(2)=='R') {\n\t\t\t\tcount = 2;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcount = 1;\n\t\t\t}", "s.charAt(0)==s.charAt(1)&&\n\t\t\t\t\t\ts.charAt(0)==s.charAt(2)", "s.charAt(0)==s.charAt(1)", "s.charAt(0)", "s.charAt", "s", "0", "s.charAt(1)", "s.charAt", "s", "1", "s.charAt(0)==s.charAt(2)", "s.charAt(0)", "s.charAt", "s", "0", "s.charAt(2)", "s.charAt", "s", "2", "{\n\t\t\t\t\tcount = 3;\n\t\t\t\t}", "count = 3", "count", "3", "if(s.charAt(0)=='R'&&s.charAt(1)=='R'\n\t\t\t\t\t|| s.charAt(1)=='R'&&s.charAt(2)=='R') {\n\t\t\t\tcount = 2;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcount = 1;\n\t\t\t}", "s.charAt(0)=='R'&&s.charAt(1)=='R'\n\t\t\t\t\t|| 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'", "{\n\t\t\t\tcount = 2;\n\t\t\t}", "count = 2", "count", "2", "{\n\t\t\t\tcount = 1;\n\t\t\t}", "count = 1", "count", "1", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "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.next();\n\t\tint count = 0;\n\t\tif(s.contains(\"R\")){\n\t\t\t if(s.charAt(0)==s.charAt(1)&&\n\t\t\t\t\t\ts.charAt(0)==s.charAt(2)){\n\t\t\t\t\tcount = 3;\n\t\t\t\t}\n\t\t\telse if(s.charAt(0)=='R'&&s.charAt(1)=='R'\n\t\t\t\t\t|| s.charAt(1)=='R'&&s.charAt(2)=='R') {\n\t\t\t\tcount = 2;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcount = 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\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.next();\n\t\tint count = 0;\n\t\tif(s.contains(\"R\")){\n\t\t\t if(s.charAt(0)==s.charAt(1)&&\n\t\t\t\t\t\ts.charAt(0)==s.charAt(2)){\n\t\t\t\t\tcount = 3;\n\t\t\t\t}\n\t\t\telse if(s.charAt(0)=='R'&&s.charAt(1)=='R'\n\t\t\t\t\t|| s.charAt(1)=='R'&&s.charAt(2)=='R') {\n\t\t\t\tcount = 2;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcount = 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\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(); int count = 0; if(s.contains("R")){ if(s.charAt(0)==s.charAt(1)&& s.charAt(0)==s.charAt(2)){ count = 3; } else if(s.charAt(0)=='R'&&s.charAt(1)=='R' || s.charAt(1)=='R'&&s.charAt(2)=='R') { count = 2; } else { count = 1; } } System.out.println(count); } }
[ 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, 4, 18, 13, 1, 40, 13, 30, 30, 41, 13, 17, 11, 1, 41, 13, 13, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 17, 30, 40, 13, 30, 3, 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 ], [ 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 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 20, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 20, 30 ], [ 30, 31 ], [ 31, 32 ], [ 20, 33 ], [ 34, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 38, 48 ], [ 48, 49 ], [ 49, 50 ], [ 38, 51 ], [ 52, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 54, 59 ], [ 53, 60 ], [ 60, 61 ], [ 61, 62 ], [ 53, 63 ], [ 63, 64 ], [ 34, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 67, 71 ], [ 8, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 8, 78 ], [ 78, 79 ], [ 79, 80 ], [ 6, 81 ], [ 81, 82 ], [ 0, 83 ], [ 83, 84 ], [ 83, 85 ] ]
[ "import java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner ob = new Scanner(System.in);\n\t\tString patt = ob.next();\n\t\tint result = 0;\n\t\t\n\t\tfor(int i = 0; i < patt.length(); i++) {\n\t\t\tint temp = 0;\n\t\t\tfor(int j = i; j < patt.length(); j++) {\n\t\t\t\tif(patt.charAt(j) == 'R'){\n\t\t\t\t\ttemp++;\n\t\t\t\t}else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tresult = Math.max(result, temp);\n\t\t}\n\t\tSystem.out.println(result);\n\t\tob.close();\n\t}\n\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner ob = new Scanner(System.in);\n\t\tString patt = ob.next();\n\t\tint result = 0;\n\t\t\n\t\tfor(int i = 0; i < patt.length(); i++) {\n\t\t\tint temp = 0;\n\t\t\tfor(int j = i; j < patt.length(); j++) {\n\t\t\t\tif(patt.charAt(j) == 'R'){\n\t\t\t\t\ttemp++;\n\t\t\t\t}else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tresult = Math.max(result, temp);\n\t\t}\n\t\tSystem.out.println(result);\n\t\tob.close();\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t\n\t\tScanner ob = new Scanner(System.in);\n\t\tString patt = ob.next();\n\t\tint result = 0;\n\t\t\n\t\tfor(int i = 0; i < patt.length(); i++) {\n\t\t\tint temp = 0;\n\t\t\tfor(int j = i; j < patt.length(); j++) {\n\t\t\t\tif(patt.charAt(j) == 'R'){\n\t\t\t\t\ttemp++;\n\t\t\t\t}else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tresult = Math.max(result, temp);\n\t\t}\n\t\tSystem.out.println(result);\n\t\tob.close();\n\t}", "main", "{\n\t\t\n\t\tScanner ob = new Scanner(System.in);\n\t\tString patt = ob.next();\n\t\tint result = 0;\n\t\t\n\t\tfor(int i = 0; i < patt.length(); i++) {\n\t\t\tint temp = 0;\n\t\t\tfor(int j = i; j < patt.length(); j++) {\n\t\t\t\tif(patt.charAt(j) == 'R'){\n\t\t\t\t\ttemp++;\n\t\t\t\t}else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tresult = Math.max(result, temp);\n\t\t}\n\t\tSystem.out.println(result);\n\t\tob.close();\n\t}", "Scanner ob = new Scanner(System.in);", "ob", "new Scanner(System.in)", "String patt = ob.next();", "patt", "ob.next()", "ob.next", "ob", "int result = 0;", "result", "0", "for(int i = 0; i < patt.length(); i++) {\n\t\t\tint temp = 0;\n\t\t\tfor(int j = i; j < patt.length(); j++) {\n\t\t\t\tif(patt.charAt(j) == 'R'){\n\t\t\t\t\ttemp++;\n\t\t\t\t}else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tresult = Math.max(result, temp);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < patt.length()", "i", "patt.length()", "patt.length", "patt", "i++", "i++", "i", "{\n\t\t\tint temp = 0;\n\t\t\tfor(int j = i; j < patt.length(); j++) {\n\t\t\t\tif(patt.charAt(j) == 'R'){\n\t\t\t\t\ttemp++;\n\t\t\t\t}else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tresult = Math.max(result, temp);\n\t\t}", "{\n\t\t\tint temp = 0;\n\t\t\tfor(int j = i; j < patt.length(); j++) {\n\t\t\t\tif(patt.charAt(j) == 'R'){\n\t\t\t\t\ttemp++;\n\t\t\t\t}else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tresult = Math.max(result, temp);\n\t\t}", "int temp = 0;", "temp", "0", "for(int j = i; j < patt.length(); j++) {\n\t\t\t\tif(patt.charAt(j) == 'R'){\n\t\t\t\t\ttemp++;\n\t\t\t\t}else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "int j = i;", "int j = i;", "j", "i", "j < patt.length()", "j", "patt.length()", "patt.length", "patt", "j++", "j++", "j", "{\n\t\t\t\tif(patt.charAt(j) == 'R'){\n\t\t\t\t\ttemp++;\n\t\t\t\t}else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif(patt.charAt(j) == 'R'){\n\t\t\t\t\ttemp++;\n\t\t\t\t}else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "if(patt.charAt(j) == 'R'){\n\t\t\t\t\ttemp++;\n\t\t\t\t}else {\n\t\t\t\t\tbreak;\n\t\t\t\t}", "patt.charAt(j) == 'R'", "patt.charAt(j)", "patt.charAt", "patt", "j", "'R'", "{\n\t\t\t\t\ttemp++;\n\t\t\t\t}", "temp++", "temp", "{\n\t\t\t\t\tbreak;\n\t\t\t\t}", "break;", "result = Math.max(result, temp)", "result", "Math.max(result, temp)", "Math.max", "Math", "result", "temp", "System.out.println(result)", "System.out.println", "System.out", "System", "System.out", "result", "ob.close()", "ob.close", "ob", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner ob = new Scanner(System.in);\n\t\tString patt = ob.next();\n\t\tint result = 0;\n\t\t\n\t\tfor(int i = 0; i < patt.length(); i++) {\n\t\t\tint temp = 0;\n\t\t\tfor(int j = i; j < patt.length(); j++) {\n\t\t\t\tif(patt.charAt(j) == 'R'){\n\t\t\t\t\ttemp++;\n\t\t\t\t}else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tresult = Math.max(result, temp);\n\t\t}\n\t\tSystem.out.println(result);\n\t\tob.close();\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner ob = new Scanner(System.in);\n\t\tString patt = ob.next();\n\t\tint result = 0;\n\t\t\n\t\tfor(int i = 0; i < patt.length(); i++) {\n\t\t\tint temp = 0;\n\t\t\tfor(int j = i; j < patt.length(); j++) {\n\t\t\t\tif(patt.charAt(j) == 'R'){\n\t\t\t\t\ttemp++;\n\t\t\t\t}else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tresult = Math.max(result, temp);\n\t\t}\n\t\tSystem.out.println(result);\n\t\tob.close();\n\t}\n\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner ob = new Scanner(System.in); String patt = ob.next(); int result = 0; for(int i = 0; i < patt.length(); i++) { int temp = 0; for(int j = i; j < patt.length(); j++) { if(patt.charAt(j) == 'R'){ temp++; }else { break; } } result = Math.max(result, temp); } System.out.println(result); ob.close(); } }
[ 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, 13, 41, 13, 4, 18, 13, 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, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 13, 17, 2, 13, 17, 2, 2, 13, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 2, 13, 17, 2, 13, 40, 17, 2, 2, 13, 17, 2, 13, 40, 17, 2, 2, 13, 17, 2, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 14, 4, 18, 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 ], [ 17, 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 ], [ 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 ], [ 57, 60 ], [ 56, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 56, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 68, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 68, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 86, 88 ], [ 81, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 93, 94 ], [ 93, 95 ], [ 80, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 80, 103 ], [ 103, 104 ], [ 106, 105 ], [ 122, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 111, 112 ], [ 111, 113 ], [ 106, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 114, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 122, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 122, 126 ], [ 126, 127 ], [ 126, 128 ], [ 128, 129 ], [ 106, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 130, 134 ], [ 134, 135 ], [ 134, 136 ], [ 136, 137 ], [ 103, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 139, 144 ], [ 103, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 146, 149 ], [ 145, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 151, 156 ], [ 6, 157 ], [ 157, 158 ] ]
[ "import java.util.*;\n\nclass Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String r = \"R\";\n int count = s.indexOf(r);\n int lastcount = s.lastIndexOf(r);\n if(s.contentEquals(\"RRR\")){\n System.out.println(\"3\");\n }else if(s.contentEquals(\"SSR\")){\n System.out.println(\"1\");\n }else if(s.contentEquals(\"SRS\")){\n System.out.println(\"1\"); \n }else if(s.contentEquals(\"RSS\")){\n System.out.println(\"1\");\n }else if(count == 0 && lastcount == 1 || count == 1 && lastcount == 2){\n System.out.println(\"2\");\n }else if(count == 0 && lastcount == 2 || count == 2 && lastcount == -1|| count == 0 && lastcount == -1|| count == 1 && lastcount == -1 ){\n System.out.println(\"1\");\n }else if(s.contentEquals(\"SSS\")){\n System.out.println(\"0\");\n\n }\n }\n}\n", "import java.util.*;", "util.*", "java", "class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String r = \"R\";\n int count = s.indexOf(r);\n int lastcount = s.lastIndexOf(r);\n if(s.contentEquals(\"RRR\")){\n System.out.println(\"3\");\n }else if(s.contentEquals(\"SSR\")){\n System.out.println(\"1\");\n }else if(s.contentEquals(\"SRS\")){\n System.out.println(\"1\"); \n }else if(s.contentEquals(\"RSS\")){\n System.out.println(\"1\");\n }else if(count == 0 && lastcount == 1 || count == 1 && lastcount == 2){\n System.out.println(\"2\");\n }else if(count == 0 && lastcount == 2 || count == 2 && lastcount == -1|| count == 0 && lastcount == -1|| count == 1 && lastcount == -1 ){\n System.out.println(\"1\");\n }else if(s.contentEquals(\"SSS\")){\n System.out.println(\"0\");\n\n }\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String r = \"R\";\n int count = s.indexOf(r);\n int lastcount = s.lastIndexOf(r);\n if(s.contentEquals(\"RRR\")){\n System.out.println(\"3\");\n }else if(s.contentEquals(\"SSR\")){\n System.out.println(\"1\");\n }else if(s.contentEquals(\"SRS\")){\n System.out.println(\"1\"); \n }else if(s.contentEquals(\"RSS\")){\n System.out.println(\"1\");\n }else if(count == 0 && lastcount == 1 || count == 1 && lastcount == 2){\n System.out.println(\"2\");\n }else if(count == 0 && lastcount == 2 || count == 2 && lastcount == -1|| count == 0 && lastcount == -1|| count == 1 && lastcount == -1 ){\n System.out.println(\"1\");\n }else if(s.contentEquals(\"SSS\")){\n System.out.println(\"0\");\n\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String r = \"R\";\n int count = s.indexOf(r);\n int lastcount = s.lastIndexOf(r);\n if(s.contentEquals(\"RRR\")){\n System.out.println(\"3\");\n }else if(s.contentEquals(\"SSR\")){\n System.out.println(\"1\");\n }else if(s.contentEquals(\"SRS\")){\n System.out.println(\"1\"); \n }else if(s.contentEquals(\"RSS\")){\n System.out.println(\"1\");\n }else if(count == 0 && lastcount == 1 || count == 1 && lastcount == 2){\n System.out.println(\"2\");\n }else if(count == 0 && lastcount == 2 || count == 2 && lastcount == -1|| count == 0 && lastcount == -1|| count == 1 && lastcount == -1 ){\n System.out.println(\"1\");\n }else if(s.contentEquals(\"SSS\")){\n System.out.println(\"0\");\n\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.nextLine();", "s", "sc.nextLine()", "sc.nextLine", "sc", "String r = \"R\";", "r", "\"R\"", "int count = s.indexOf(r);", "count", "s.indexOf(r)", "s.indexOf", "s", "r", "int lastcount = s.lastIndexOf(r);", "lastcount", "s.lastIndexOf(r)", "s.lastIndexOf", "s", "r", "if(s.contentEquals(\"RRR\")){\n System.out.println(\"3\");\n }else if(s.contentEquals(\"SSR\")){\n System.out.println(\"1\");\n }else if(s.contentEquals(\"SRS\")){\n System.out.println(\"1\"); \n }else if(s.contentEquals(\"RSS\")){\n System.out.println(\"1\");\n }else if(count == 0 && lastcount == 1 || count == 1 && lastcount == 2){\n System.out.println(\"2\");\n }else if(count == 0 && lastcount == 2 || count == 2 && lastcount == -1|| count == 0 && lastcount == -1|| count == 1 && lastcount == -1 ){\n System.out.println(\"1\");\n }else if(s.contentEquals(\"SSS\")){\n System.out.println(\"0\");\n\n }", "s.contentEquals(\"RRR\")", "s.contentEquals", "s", "\"RRR\"", "{\n System.out.println(\"3\");\n }", "System.out.println(\"3\")", "System.out.println", "System.out", "System", "System.out", "\"3\"", "if(s.contentEquals(\"SSR\")){\n System.out.println(\"1\");\n }else if(s.contentEquals(\"SRS\")){\n System.out.println(\"1\"); \n }else if(s.contentEquals(\"RSS\")){\n System.out.println(\"1\");\n }else if(count == 0 && lastcount == 1 || count == 1 && lastcount == 2){\n System.out.println(\"2\");\n }else if(count == 0 && lastcount == 2 || count == 2 && lastcount == -1|| count == 0 && lastcount == -1|| count == 1 && lastcount == -1 ){\n System.out.println(\"1\");\n }else if(s.contentEquals(\"SSS\")){\n System.out.println(\"0\");\n\n }", "s.contentEquals(\"SSR\")", "s.contentEquals", "s", "\"SSR\"", "{\n System.out.println(\"1\");\n }", "System.out.println(\"1\")", "System.out.println", "System.out", "System", "System.out", "\"1\"", "if(s.contentEquals(\"SRS\")){\n System.out.println(\"1\"); \n }else if(s.contentEquals(\"RSS\")){\n System.out.println(\"1\");\n }else if(count == 0 && lastcount == 1 || count == 1 && lastcount == 2){\n System.out.println(\"2\");\n }else if(count == 0 && lastcount == 2 || count == 2 && lastcount == -1|| count == 0 && lastcount == -1|| count == 1 && lastcount == -1 ){\n System.out.println(\"1\");\n }else if(s.contentEquals(\"SSS\")){\n System.out.println(\"0\");\n\n }", "s.contentEquals(\"SRS\")", "s.contentEquals", "s", "\"SRS\"", "{\n System.out.println(\"1\"); \n }", "System.out.println(\"1\")", "System.out.println", "System.out", "System", "System.out", "\"1\"", "if(s.contentEquals(\"RSS\")){\n System.out.println(\"1\");\n }else if(count == 0 && lastcount == 1 || count == 1 && lastcount == 2){\n System.out.println(\"2\");\n }else if(count == 0 && lastcount == 2 || count == 2 && lastcount == -1|| count == 0 && lastcount == -1|| count == 1 && lastcount == -1 ){\n System.out.println(\"1\");\n }else if(s.contentEquals(\"SSS\")){\n System.out.println(\"0\");\n\n }", "s.contentEquals(\"RSS\")", "s.contentEquals", "s", "\"RSS\"", "{\n System.out.println(\"1\");\n }", "System.out.println(\"1\")", "System.out.println", "System.out", "System", "System.out", "\"1\"", "if(count == 0 && lastcount == 1 || count == 1 && lastcount == 2){\n System.out.println(\"2\");\n }else if(count == 0 && lastcount == 2 || count == 2 && lastcount == -1|| count == 0 && lastcount == -1|| count == 1 && lastcount == -1 ){\n System.out.println(\"1\");\n }else if(s.contentEquals(\"SSS\")){\n System.out.println(\"0\");\n\n }", "count == 0 && lastcount == 1 || count == 1 && lastcount == 2", "count == 0 && lastcount == 1", "count == 0", "count", "0", "lastcount == 1", "lastcount", "1", "count == 1 && lastcount == 2", "count == 1", "count", "1", "lastcount == 2", "lastcount", "2", "{\n System.out.println(\"2\");\n }", "System.out.println(\"2\")", "System.out.println", "System.out", "System", "System.out", "\"2\"", "if(count == 0 && lastcount == 2 || count == 2 && lastcount == -1|| count == 0 && lastcount == -1|| count == 1 && lastcount == -1 ){\n System.out.println(\"1\");\n }else if(s.contentEquals(\"SSS\")){\n System.out.println(\"0\");\n\n }", "count == 0 && lastcount == 2 || count == 2 && lastcount == -1|| count == 0 && lastcount == -1|| count == 1 && lastcount == -1", "count == 0 && lastcount == -1", "count == 0 && lastcount == 2 || count == 2 && lastcount == -1|| count == 0 && lastcount == -1|| count == 1 && lastcount == -1", "count == 0 && lastcount == 2", "count == 0", "count", "0", "lastcount == 2", "lastcount", "2", "count == 2 && lastcount == -1", "count == 2", "count", "2", "lastcount == -1", "lastcount", "-1", "1", "count == 0 && lastcount == -1", "count == 0", "count", "0", "lastcount == -1", "lastcount", "-1", "1", "count == 1 && lastcount == -1", "count == 1", "count", "1", "lastcount == -1", "lastcount", "-1", "1", "{\n System.out.println(\"1\");\n }", "System.out.println(\"1\")", "System.out.println", "System.out", "System", "System.out", "\"1\"", "if(s.contentEquals(\"SSS\")){\n System.out.println(\"0\");\n\n }", "s.contentEquals(\"SSS\")", "s.contentEquals", "s", "\"SSS\"", "{\n System.out.println(\"0\");\n\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 s = sc.nextLine(); String r = "R"; int count = s.indexOf(r); int lastcount = s.lastIndexOf(r); if(s.contentEquals("RRR")){ System.out.println("3"); }else if(s.contentEquals("SSR")){ System.out.println("1"); }else if(s.contentEquals("SRS")){ System.out.println("1"); }else if(s.contentEquals("RSS")){ System.out.println("1"); }else if(count == 0 && lastcount == 1 || count == 1 && lastcount == 2){ System.out.println("2"); }else if(count == 0 && lastcount == 2 || count == 2 && lastcount == -1|| count == 0 && lastcount == -1|| count == 1 && lastcount == -1 ){ System.out.println("1"); }else if(s.contentEquals("SSS")){ System.out.println("0"); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 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, 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, 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 ], [ 194, 26 ], [ 194, 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 ], [ 40, 41 ], [ 41, 42 ], [ 29, 43 ], [ 43, 44 ], [ 43, 45 ], [ 29, 46 ], [ 46, 47 ], [ 46, 48 ], [ 29, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 54, 55 ], [ 54, 56 ], [ 49, 57 ], [ 57, 58 ], [ 58, 59 ], [ 49, 60 ], [ 61, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 70, 72 ], [ 63, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 62, 78 ], [ 78, 79 ], [ 79, 80 ], [ 29, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 86, 87 ], [ 86, 88 ], [ 81, 89 ], [ 89, 90 ], [ 90, 91 ], [ 81, 92 ], [ 93, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 94, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 29, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 107, 112 ], [ 112, 113 ], [ 112, 114 ], [ 104, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 116, 121 ], [ 27, 122 ], [ 122, 123 ], [ 194, 124 ], [ 124, 125 ], [ 124, 126 ], [ 126, 127 ], [ 126, 128 ], [ 124, 129 ], [ 129, 130 ], [ 129, 131 ], [ 124, 132 ], [ 132, 133 ], [ 132, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 135, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 140, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 134, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 124, 155 ], [ 155, 156 ], [ 155, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 159, 162 ], [ 162, 163 ], [ 124, 164 ], [ 164, 165 ], [ 164, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 166, 171 ], [ 171, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 171, 176 ], [ 176, 177 ], [ 176, 178 ], [ 171, 179 ], [ 179, 180 ], [ 180, 181 ], [ 171, 182 ], [ 182, 183 ], [ 183, 184 ], [ 184, 185 ], [ 184, 186 ], [ 183, 187 ], [ 187, 188 ], [ 166, 189 ], [ 189, 190 ], [ 164, 191 ], [ 191, 192 ], [ 0, 193 ], [ 193, 194 ], [ 193, 195 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.*;\nimport java.lang.Math;\nimport java.util.Map;\nimport java.util.ArrayList;\nimport java.util.Collections;\n\npublic class Main {\n\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n String s = fs.next();\n char[] S = s.toCharArray();\n\n int c = 0;\n boolean rain = false;\n for (int i = 0; i<2; i++) {\n if (S[i] == S[i+1] && S[i] == 'R') {\n c++;\n\n }\n }\n for (int i = 0; i<3;i++) {\n if (S[i] == 'R') {\n rain = true;\n }\n }\n if (rain) {\n System.out.println(c+1);\n } else {\n System.out.println(0);\n }\n\n\n\n }\n\n\n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n\n public String next() {\n while (!st.hasMoreElements())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n }\n\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.*;", "util.*", "java", "import java.lang.Math;", "Math", "java.lang", "import java.util.Map;", "Map", "java.util", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Collections;", "Collections", "java.util", "public class Main {\n\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n String s = fs.next();\n char[] S = s.toCharArray();\n\n int c = 0;\n boolean rain = false;\n for (int i = 0; i<2; i++) {\n if (S[i] == S[i+1] && S[i] == 'R') {\n c++;\n\n }\n }\n for (int i = 0; i<3;i++) {\n if (S[i] == 'R') {\n rain = true;\n }\n }\n if (rain) {\n System.out.println(c+1);\n } else {\n System.out.println(0);\n }\n\n\n\n }\n\n\n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n\n public String next() {\n while (!st.hasMoreElements())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n }\n\n}", "Main", "public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n String s = fs.next();\n char[] S = s.toCharArray();\n\n int c = 0;\n boolean rain = false;\n for (int i = 0; i<2; i++) {\n if (S[i] == S[i+1] && S[i] == 'R') {\n c++;\n\n }\n }\n for (int i = 0; i<3;i++) {\n if (S[i] == 'R') {\n rain = true;\n }\n }\n if (rain) {\n System.out.println(c+1);\n } else {\n System.out.println(0);\n }\n\n\n\n }", "main", "{\n FastScanner fs = new FastScanner();\n String s = fs.next();\n char[] S = s.toCharArray();\n\n int c = 0;\n boolean rain = false;\n for (int i = 0; i<2; i++) {\n if (S[i] == S[i+1] && S[i] == 'R') {\n c++;\n\n }\n }\n for (int i = 0; i<3;i++) {\n if (S[i] == 'R') {\n rain = true;\n }\n }\n if (rain) {\n System.out.println(c+1);\n } else {\n System.out.println(0);\n }\n\n\n\n }", "FastScanner fs = new FastScanner();", "fs", "new FastScanner()", "String s = fs.next();", "s", "fs.next()", "fs.next", "fs", "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 if (S[i] == S[i+1] && S[i] == 'R') {\n c++;\n\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i<2", "i", "2", "i++", "i++", "i", "{\n if (S[i] == S[i+1] && S[i] == 'R') {\n c++;\n\n }\n }", "{\n if (S[i] == S[i+1] && S[i] == 'R') {\n c++;\n\n }\n }", "if (S[i] == S[i+1] && S[i] == 'R') {\n c++;\n\n }", "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 c++;\n\n }", "c++", "c", "for (int i = 0; i<3;i++) {\n if (S[i] == 'R') {\n rain = true;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i<3", "i", "3", "i++", "i++", "i", "{\n if (S[i] == 'R') {\n rain = true;\n }\n }", "{\n if (S[i] == 'R') {\n rain = true;\n }\n }", "if (S[i] == 'R') {\n rain = true;\n }", "S[i] == 'R'", "S[i]", "S", "i", "'R'", "{\n rain = true;\n }", "rain = true", "rain", "true", "if (rain) {\n System.out.println(c+1);\n } else {\n System.out.println(0);\n }", "rain", "{\n System.out.println(c+1);\n }", "System.out.println(c+1)", "System.out.println", "System.out", "System", "System.out", "c+1", "c", "1", "{\n System.out.println(0);\n }", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "String[] args", "args", "static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n\n public String next() {\n while (!st.hasMoreElements())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n }", "FastScanner", "BufferedReader br=new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringTokenizer st=new StringTokenizer(\"\");", "st", "new StringTokenizer(\"\")", "public String next() {\n while (!st.hasMoreElements())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }", "next", "{\n while (!st.hasMoreElements())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }", "while (!st.hasMoreElements())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }", "!st.hasMoreElements()", "st.hasMoreElements()", "st.hasMoreElements", "st", "try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n st=new StringTokenizer(br.readLine());\n }", "st=new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "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", "int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }", "readArray", "{\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }", "int[] a=new int[n];", "a", "new int[n]", "n", "for (int i=0; i<n; i++) a[i]=nextInt();", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "a[i]=nextInt();", "a[i]=nextInt()", "a[i]", "a", "i", "nextInt()", "nextInt", "return a;", "a", "int n", "n", "public class Main {\n\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n String s = fs.next();\n char[] S = s.toCharArray();\n\n int c = 0;\n boolean rain = false;\n for (int i = 0; i<2; i++) {\n if (S[i] == S[i+1] && S[i] == 'R') {\n c++;\n\n }\n }\n for (int i = 0; i<3;i++) {\n if (S[i] == 'R') {\n rain = true;\n }\n }\n if (rain) {\n System.out.println(c+1);\n } else {\n System.out.println(0);\n }\n\n\n\n }\n\n\n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n\n public String next() {\n while (!st.hasMoreElements())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n }\n\n}", "public class Main {\n\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n String s = fs.next();\n char[] S = s.toCharArray();\n\n int c = 0;\n boolean rain = false;\n for (int i = 0; i<2; i++) {\n if (S[i] == S[i+1] && S[i] == 'R') {\n c++;\n\n }\n }\n for (int i = 0; i<3;i++) {\n if (S[i] == 'R') {\n rain = true;\n }\n }\n if (rain) {\n System.out.println(c+1);\n } else {\n System.out.println(0);\n }\n\n\n\n }\n\n\n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n\n public String next() {\n while (!st.hasMoreElements())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n }\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.*; import java.lang.Math; import java.util.Map; import java.util.ArrayList; import java.util.Collections; public class Main { public static void main(String[] args) { FastScanner fs = new FastScanner(); String s = fs.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); } } static class FastScanner { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st=new StringTokenizer(""); public String next() { while (!st.hasMoreElements()) 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; } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 40, 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, 30, 0, 13, 17, 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 ], [ 8, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 25 ], [ 21, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 21, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 30, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 30, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 39, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 39, 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\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n String str = sc.next();\n int count = -1;\n\n if(str.matches(\".*R{3}.*\")){\n count = 3;\n }\n else if(str.matches(\".*R{2}.*\")){\n count = 2;\n }\n else if(str.matches(\".*R{1}.*\")){\n count = 1;\n }\n else{\n count = 0;\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\n String str = sc.next();\n int count = -1;\n\n if(str.matches(\".*R{3}.*\")){\n count = 3;\n }\n else if(str.matches(\".*R{2}.*\")){\n count = 2;\n }\n else if(str.matches(\".*R{1}.*\")){\n count = 1;\n }\n else{\n count = 0;\n }\n System.out.println(count);\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n String str = sc.next();\n int count = -1;\n\n if(str.matches(\".*R{3}.*\")){\n count = 3;\n }\n else if(str.matches(\".*R{2}.*\")){\n count = 2;\n }\n else if(str.matches(\".*R{1}.*\")){\n count = 1;\n }\n else{\n count = 0;\n }\n System.out.println(count);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n\n String str = sc.next();\n int count = -1;\n\n if(str.matches(\".*R{3}.*\")){\n count = 3;\n }\n else if(str.matches(\".*R{2}.*\")){\n count = 2;\n }\n else if(str.matches(\".*R{1}.*\")){\n count = 1;\n }\n else{\n count = 0;\n }\n System.out.println(count);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String str = sc.next();", "str", "sc.next()", "sc.next", "sc", "int count = -1;", "count", "-1", "1", "if(str.matches(\".*R{3}.*\")){\n count = 3;\n }\n else if(str.matches(\".*R{2}.*\")){\n count = 2;\n }\n else if(str.matches(\".*R{1}.*\")){\n count = 1;\n }\n else{\n count = 0;\n }", "str.matches(\".*R{3}.*\")", "str.matches", "str", "\".*R{3}.*\"", "{\n count = 3;\n }", "count = 3", "count", "3", "if(str.matches(\".*R{2}.*\")){\n count = 2;\n }\n else if(str.matches(\".*R{1}.*\")){\n count = 1;\n }\n else{\n count = 0;\n }", "str.matches(\".*R{2}.*\")", "str.matches", "str", "\".*R{2}.*\"", "{\n count = 2;\n }", "count = 2", "count", "2", "if(str.matches(\".*R{1}.*\")){\n count = 1;\n }\n else{\n count = 0;\n }", "str.matches(\".*R{1}.*\")", "str.matches", "str", "\".*R{1}.*\"", "{\n count = 1;\n }", "count = 1", "count", "1", "{\n count = 0;\n }", "count = 0", "count", "0", "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\n String str = sc.next();\n int count = -1;\n\n if(str.matches(\".*R{3}.*\")){\n count = 3;\n }\n else if(str.matches(\".*R{2}.*\")){\n count = 2;\n }\n else if(str.matches(\".*R{1}.*\")){\n count = 1;\n }\n else{\n count = 0;\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\n String str = sc.next();\n int count = -1;\n\n if(str.matches(\".*R{3}.*\")){\n count = 3;\n }\n else if(str.matches(\".*R{2}.*\")){\n count = 2;\n }\n else if(str.matches(\".*R{1}.*\")){\n count = 1;\n }\n else{\n count = 0;\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 str = sc.next(); int count = -1; if(str.matches(".*R{3}.*")){ count = 3; } else if(str.matches(".*R{2}.*")){ count = 2; } else if(str.matches(".*R{1}.*")){ count = 1; } else{ count = 0; } 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, 41, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 17, 30, 40, 13, 14, 2, 13, 13, 0, 13, 13, 30, 14, 2, 13, 13, 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 ], [ 97, 5 ], [ 97, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 32, 33 ], [ 32, 34 ], [ 27, 35 ], [ 35, 36 ], [ 36, 37 ], [ 27, 38 ], [ 39, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 40, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 8, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 53, 54 ], [ 53, 55 ], [ 48, 56 ], [ 56, 57 ], [ 57, 58 ], [ 48, 59 ], [ 60, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 61, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 74, 76 ], [ 61, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 82, 84 ], [ 77, 85 ], [ 85, 86 ], [ 85, 87 ], [ 8, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 6, 94 ], [ 94, 95 ], [ 0, 96 ], [ 96, 97 ], [ 96, 98 ] ]
[ "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.next();\n\t\tint count=0;\n\t\tint tmp=0;\n\t\tchar[] weather=new char[3];\n\t\tfor(int i=0;i<3;i++){\n\t\t\tweather[i]=S.charAt(i);\n\t\t}\n\t\tfor(int j=0;j<3;j++){\n\t\t\tif(weather[j]=='R'){\n\t\t\t\ttmp++;\n\t\t\t\tif(count<tmp)count=tmp;\n\t\t\t}else{\n\t\t\t\tif(count<tmp)count=tmp;\n\t\t\t\ttmp=0;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(count);\n\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S=sc.next();\n\t\tint count=0;\n\t\tint tmp=0;\n\t\tchar[] weather=new char[3];\n\t\tfor(int i=0;i<3;i++){\n\t\t\tweather[i]=S.charAt(i);\n\t\t}\n\t\tfor(int j=0;j<3;j++){\n\t\t\tif(weather[j]=='R'){\n\t\t\t\ttmp++;\n\t\t\t\tif(count<tmp)count=tmp;\n\t\t\t}else{\n\t\t\t\tif(count<tmp)count=tmp;\n\t\t\t\ttmp=0;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(count);\n\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\tint count=0;\n\t\tint tmp=0;\n\t\tchar[] weather=new char[3];\n\t\tfor(int i=0;i<3;i++){\n\t\t\tweather[i]=S.charAt(i);\n\t\t}\n\t\tfor(int j=0;j<3;j++){\n\t\t\tif(weather[j]=='R'){\n\t\t\t\ttmp++;\n\t\t\t\tif(count<tmp)count=tmp;\n\t\t\t}else{\n\t\t\t\tif(count<tmp)count=tmp;\n\t\t\t\ttmp=0;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(count);\n\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S=sc.next();\n\t\tint count=0;\n\t\tint tmp=0;\n\t\tchar[] weather=new char[3];\n\t\tfor(int i=0;i<3;i++){\n\t\t\tweather[i]=S.charAt(i);\n\t\t}\n\t\tfor(int j=0;j<3;j++){\n\t\t\tif(weather[j]=='R'){\n\t\t\t\ttmp++;\n\t\t\t\tif(count<tmp)count=tmp;\n\t\t\t}else{\n\t\t\t\tif(count<tmp)count=tmp;\n\t\t\t\ttmp=0;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(count);\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 count=0;", "count", "0", "int tmp=0;", "tmp", "0", "char[] weather=new char[3];", "weather", "new char[3]", "3", "for(int i=0;i<3;i++){\n\t\t\tweather[i]=S.charAt(i);\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<3", "i", "3", "i++", "i++", "i", "{\n\t\t\tweather[i]=S.charAt(i);\n\t\t}", "{\n\t\t\tweather[i]=S.charAt(i);\n\t\t}", "weather[i]=S.charAt(i)", "weather[i]", "weather", "i", "S.charAt(i)", "S.charAt", "S", "i", "for(int j=0;j<3;j++){\n\t\t\tif(weather[j]=='R'){\n\t\t\t\ttmp++;\n\t\t\t\tif(count<tmp)count=tmp;\n\t\t\t}else{\n\t\t\t\tif(count<tmp)count=tmp;\n\t\t\t\ttmp=0;\n\t\t\t}\n\t\t\t\n\t\t}", "int j=0;", "int j=0;", "j", "0", "j<3", "j", "3", "j++", "j++", "j", "{\n\t\t\tif(weather[j]=='R'){\n\t\t\t\ttmp++;\n\t\t\t\tif(count<tmp)count=tmp;\n\t\t\t}else{\n\t\t\t\tif(count<tmp)count=tmp;\n\t\t\t\ttmp=0;\n\t\t\t}\n\t\t\t\n\t\t}", "{\n\t\t\tif(weather[j]=='R'){\n\t\t\t\ttmp++;\n\t\t\t\tif(count<tmp)count=tmp;\n\t\t\t}else{\n\t\t\t\tif(count<tmp)count=tmp;\n\t\t\t\ttmp=0;\n\t\t\t}\n\t\t\t\n\t\t}", "if(weather[j]=='R'){\n\t\t\t\ttmp++;\n\t\t\t\tif(count<tmp)count=tmp;\n\t\t\t}else{\n\t\t\t\tif(count<tmp)count=tmp;\n\t\t\t\ttmp=0;\n\t\t\t}", "weather[j]=='R'", "weather[j]", "weather", "j", "'R'", "{\n\t\t\t\ttmp++;\n\t\t\t\tif(count<tmp)count=tmp;\n\t\t\t}", "tmp++", "tmp", "if(count<tmp)count=tmp;", "count<tmp", "count", "tmp", "count=tmp", "count", "tmp", "{\n\t\t\t\tif(count<tmp)count=tmp;\n\t\t\t\ttmp=0;\n\t\t\t}", "if(count<tmp)count=tmp;", "count<tmp", "count", "tmp", "count=tmp", "count", "tmp", "tmp=0", "tmp", "0", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "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.next();\n\t\tint count=0;\n\t\tint tmp=0;\n\t\tchar[] weather=new char[3];\n\t\tfor(int i=0;i<3;i++){\n\t\t\tweather[i]=S.charAt(i);\n\t\t}\n\t\tfor(int j=0;j<3;j++){\n\t\t\tif(weather[j]=='R'){\n\t\t\t\ttmp++;\n\t\t\t\tif(count<tmp)count=tmp;\n\t\t\t}else{\n\t\t\t\tif(count<tmp)count=tmp;\n\t\t\t\ttmp=0;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(count);\n\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.next();\n\t\tint count=0;\n\t\tint tmp=0;\n\t\tchar[] weather=new char[3];\n\t\tfor(int i=0;i<3;i++){\n\t\t\tweather[i]=S.charAt(i);\n\t\t}\n\t\tfor(int j=0;j<3;j++){\n\t\t\tif(weather[j]=='R'){\n\t\t\t\ttmp++;\n\t\t\t\tif(count<tmp)count=tmp;\n\t\t\t}else{\n\t\t\t\tif(count<tmp)count=tmp;\n\t\t\t\ttmp=0;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(count);\n\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(); int count=0; int tmp=0; char[] weather=new char[3]; for(int i=0;i<3;i++){ weather[i]=S.charAt(i); } for(int j=0;j<3;j++){ if(weather[j]=='R'){ tmp++; if(count<tmp)count=tmp; }else{ if(count<tmp)count=tmp; tmp=0; } } System.out.println(count); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 4, 18, 13, 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, 18, 13, 13, 30, 40, 13, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 18, 13, 13, 4, 18, 18, 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 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 19, 20 ], [ 19, 21 ], [ 0, 22 ], [ 22, 23 ], [ 22, 24 ], [ 0, 25 ], [ 25, 26 ], [ 25, 27 ], [ 0, 28 ], [ 28, 29 ], [ 28, 30 ], [ 0, 31 ], [ 119, 32 ], [ 119, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 35, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 35, 44 ], [ 44, 45 ], [ 44, 46 ], [ 47, 48 ], [ 48, 49 ], [ 35, 50 ], [ 50, 51 ], [ 50, 52 ], [ 35, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 53, 63 ], [ 63, 64 ], [ 64, 65 ], [ 53, 66 ], [ 67, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 69, 74 ], [ 68, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 68, 80 ], [ 80, 81 ], [ 81, 82 ], [ 35, 83 ], [ 83, 84 ], [ 83, 85 ], [ 35, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 86, 96 ], [ 96, 97 ], [ 97, 98 ], [ 86, 99 ], [ 100, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 101, 104 ], [ 104, 105 ], [ 104, 106 ], [ 35, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 107, 112 ], [ 112, 113 ], [ 113, 114 ], [ 112, 115 ], [ 33, 116 ], [ 116, 117 ], [ 0, 118 ], [ 118, 119 ], [ 118, 120 ] ]
[ "\nimport java.util.Arrays;\nimport java.util.Collection;\nimport java.util.Collections;\nimport java.util.HashMap;\nimport java.util.HashSet;\nimport java.util.Iterator;\nimport java.util.List;\nimport java.util.Map;\nimport java.util.Scanner;\nimport java.util.Vector;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner ob=new Scanner(System.in);\n\t\tString s=ob.next();\n\t\tint a[]=new int[s.length()];\n\t\tint k=0;\n\t\tfor (int i=0; i<s.length(); i++) {\n\t\t\tif (s.charAt(i)=='R') {\n\t\t\t\ta[k]++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tk++;\n\t\t\t}\n\t\t}\n\t Vector v=new Vector ();\n\t\tfor(int i=0;i<a.length;i++){v.add(a[i]);}\n\t\tSystem.out.println(Collections.max(v));\n\t}\n}", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.Collection;", "Collection", "java.util", "import java.util.Collections;", "Collections", "java.util", "import java.util.HashMap;", "HashMap", "java.util", "import java.util.HashSet;", "HashSet", "java.util", "import java.util.Iterator;", "Iterator", "java.util", "import java.util.List;", "List", "java.util", "import java.util.Map;", "Map", "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 ob=new Scanner(System.in);\n\t\tString s=ob.next();\n\t\tint a[]=new int[s.length()];\n\t\tint k=0;\n\t\tfor (int i=0; i<s.length(); i++) {\n\t\t\tif (s.charAt(i)=='R') {\n\t\t\t\ta[k]++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tk++;\n\t\t\t}\n\t\t}\n\t Vector v=new Vector ();\n\t\tfor(int i=0;i<a.length;i++){v.add(a[i]);}\n\t\tSystem.out.println(Collections.max(v));\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner ob=new Scanner(System.in);\n\t\tString s=ob.next();\n\t\tint a[]=new int[s.length()];\n\t\tint k=0;\n\t\tfor (int i=0; i<s.length(); i++) {\n\t\t\tif (s.charAt(i)=='R') {\n\t\t\t\ta[k]++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tk++;\n\t\t\t}\n\t\t}\n\t Vector v=new Vector ();\n\t\tfor(int i=0;i<a.length;i++){v.add(a[i]);}\n\t\tSystem.out.println(Collections.max(v));\n\t}", "main", "{\n\t\tScanner ob=new Scanner(System.in);\n\t\tString s=ob.next();\n\t\tint a[]=new int[s.length()];\n\t\tint k=0;\n\t\tfor (int i=0; i<s.length(); i++) {\n\t\t\tif (s.charAt(i)=='R') {\n\t\t\t\ta[k]++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tk++;\n\t\t\t}\n\t\t}\n\t Vector v=new Vector ();\n\t\tfor(int i=0;i<a.length;i++){v.add(a[i]);}\n\t\tSystem.out.println(Collections.max(v));\n\t}", "Scanner ob=new Scanner(System.in);", "ob", "new Scanner(System.in)", "String s=ob.next();", "s", "ob.next()", "ob.next", "ob", "int a[]=new int[s.length()];", "a", "new int[s.length()]", "s.length()", "s.length", "s", "int k=0;", "k", "0", "for (int i=0; i<s.length(); i++) {\n\t\t\tif (s.charAt(i)=='R') {\n\t\t\t\ta[k]++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tk++;\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') {\n\t\t\t\ta[k]++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tk++;\n\t\t\t}\n\t\t}", "{\n\t\t\tif (s.charAt(i)=='R') {\n\t\t\t\ta[k]++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tk++;\n\t\t\t}\n\t\t}", "if (s.charAt(i)=='R') {\n\t\t\t\ta[k]++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tk++;\n\t\t\t}", "s.charAt(i)=='R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "{\n\t\t\t\ta[k]++;\n\t\t\t}", "a[k]++", "a[k]", "a", "k", "{\n\t\t\t\tk++;\n\t\t\t}", "k++", "k", "Vector v=new Vector ();", "v", "new Vector ()", "for(int i=0;i<a.length;i++){v.add(a[i]);}", "int i=0;", "int i=0;", "i", "0", "i<a.length", "i", "a.length", "a", "a.length", "i++", "i++", "i", "{v.add(a[i]);}", "{v.add(a[i]);}", "v.add(a[i])", "v.add", "v", "a[i]", "a", "i", "System.out.println(Collections.max(v))", "System.out.println", "System.out", "System", "System.out", "Collections.max(v)", "Collections.max", "Collections", "v", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner ob=new Scanner(System.in);\n\t\tString s=ob.next();\n\t\tint a[]=new int[s.length()];\n\t\tint k=0;\n\t\tfor (int i=0; i<s.length(); i++) {\n\t\t\tif (s.charAt(i)=='R') {\n\t\t\t\ta[k]++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tk++;\n\t\t\t}\n\t\t}\n\t Vector v=new Vector ();\n\t\tfor(int i=0;i<a.length;i++){v.add(a[i]);}\n\t\tSystem.out.println(Collections.max(v));\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner ob=new Scanner(System.in);\n\t\tString s=ob.next();\n\t\tint a[]=new int[s.length()];\n\t\tint k=0;\n\t\tfor (int i=0; i<s.length(); i++) {\n\t\t\tif (s.charAt(i)=='R') {\n\t\t\t\ta[k]++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tk++;\n\t\t\t}\n\t\t}\n\t Vector v=new Vector ();\n\t\tfor(int i=0;i<a.length;i++){v.add(a[i]);}\n\t\tSystem.out.println(Collections.max(v));\n\t}\n}", "Main" ]
import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Scanner; import java.util.Vector; public class Main { public static void main(String[] args) { Scanner ob=new Scanner(System.in); String s=ob.next(); int a[]=new int[s.length()]; int k=0; for (int i=0; i<s.length(); i++) { if (s.charAt(i)=='R') { a[k]++; } else { k++; } } Vector v=new Vector (); for(int i=0;i<a.length;i++){v.add(a[i]);} System.out.println(Collections.max(v)); } }
[ 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, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 17, 30, 40, 13, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 13, 30, 14, 2, 18, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 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 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 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 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 38, 44 ], [ 44, 45 ], [ 45, 46 ], [ 8, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 47, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 59, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 59, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 6, 79 ], [ 79, 80 ], [ 0, 81 ], [ 81, 82 ], [ 81, 83 ] ]
[ "import java.util.Scanner;\npublic class Main {\n public static void main(String[] args){\n \n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n char[]ss = S.toCharArray();\n \n int cou = 0;\n for(int i=0; i<3; i++) {\n \tif(ss[i] == 'R') {\n \t\tcou++;\n \t}\n }\n if(cou != 2) {\n \tSystem.out.println(cou);\n }else {\n \tif(ss[1] != 'R') {\n \t\tSystem.out.println(1);\n \t}else {\n \t\tSystem.out.println(cou);\n \t}\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 S = sc.next();\n char[]ss = S.toCharArray();\n \n int cou = 0;\n for(int i=0; i<3; i++) {\n \tif(ss[i] == 'R') {\n \t\tcou++;\n \t}\n }\n if(cou != 2) {\n \tSystem.out.println(cou);\n }else {\n \tif(ss[1] != 'R') {\n \t\tSystem.out.println(1);\n \t}else {\n \t\tSystem.out.println(cou);\n \t}\n }\n }\n}", "Main", "public static void main(String[] args){\n \n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n char[]ss = S.toCharArray();\n \n int cou = 0;\n for(int i=0; i<3; i++) {\n \tif(ss[i] == 'R') {\n \t\tcou++;\n \t}\n }\n if(cou != 2) {\n \tSystem.out.println(cou);\n }else {\n \tif(ss[1] != 'R') {\n \t\tSystem.out.println(1);\n \t}else {\n \t\tSystem.out.println(cou);\n \t}\n }\n }", "main", "{\n \n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n char[]ss = S.toCharArray();\n \n int cou = 0;\n for(int i=0; i<3; i++) {\n \tif(ss[i] == 'R') {\n \t\tcou++;\n \t}\n }\n if(cou != 2) {\n \tSystem.out.println(cou);\n }else {\n \tif(ss[1] != 'R') {\n \t\tSystem.out.println(1);\n \t}else {\n \t\tSystem.out.println(cou);\n \t}\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String S = sc.next();", "S", "sc.next()", "sc.next", "sc", "char[]ss = S.toCharArray();", "ss", "S.toCharArray()", "S.toCharArray", "S", "int cou = 0;", "cou", "0", "for(int i=0; i<3; i++) {\n \tif(ss[i] == 'R') {\n \t\tcou++;\n \t}\n }", "int i=0;", "int i=0;", "i", "0", "i<3", "i", "3", "i++", "i++", "i", "{\n \tif(ss[i] == 'R') {\n \t\tcou++;\n \t}\n }", "{\n \tif(ss[i] == 'R') {\n \t\tcou++;\n \t}\n }", "if(ss[i] == 'R') {\n \t\tcou++;\n \t}", "ss[i] == 'R'", "ss[i]", "ss", "i", "'R'", "{\n \t\tcou++;\n \t}", "cou++", "cou", "if(cou != 2) {\n \tSystem.out.println(cou);\n }else {\n \tif(ss[1] != 'R') {\n \t\tSystem.out.println(1);\n \t}else {\n \t\tSystem.out.println(cou);\n \t}\n }", "cou != 2", "cou", "2", "{\n \tSystem.out.println(cou);\n }", "System.out.println(cou)", "System.out.println", "System.out", "System", "System.out", "cou", "{\n \tif(ss[1] != 'R') {\n \t\tSystem.out.println(1);\n \t}else {\n \t\tSystem.out.println(cou);\n \t}\n }", "if(ss[1] != 'R') {\n \t\tSystem.out.println(1);\n \t}else {\n \t\tSystem.out.println(cou);\n \t}", "ss[1] != 'R'", "ss[1]", "ss", "1", "'R'", "{\n \t\tSystem.out.println(1);\n \t}", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "{\n \t\tSystem.out.println(cou);\n \t}", "System.out.println(cou)", "System.out.println", "System.out", "System", "System.out", "cou", "String[] args", "args", "public class Main {\n public static void main(String[] args){\n \n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n char[]ss = S.toCharArray();\n \n int cou = 0;\n for(int i=0; i<3; i++) {\n \tif(ss[i] == 'R') {\n \t\tcou++;\n \t}\n }\n if(cou != 2) {\n \tSystem.out.println(cou);\n }else {\n \tif(ss[1] != 'R') {\n \t\tSystem.out.println(1);\n \t}else {\n \t\tSystem.out.println(cou);\n \t}\n }\n }\n}", "public class Main {\n public static void main(String[] args){\n \n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n char[]ss = S.toCharArray();\n \n int cou = 0;\n for(int i=0; i<3; i++) {\n \tif(ss[i] == 'R') {\n \t\tcou++;\n \t}\n }\n if(cou != 2) {\n \tSystem.out.println(cou);\n }else {\n \tif(ss[1] != 'R') {\n \t\tSystem.out.println(1);\n \t}else {\n \t\tSystem.out.println(cou);\n \t}\n }\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(); char[]ss = S.toCharArray(); int cou = 0; for(int i=0; i<3; i++) { if(ss[i] == 'R') { cou++; } } if(cou != 2) { System.out.println(cou); }else { if(ss[1] != 'R') { System.out.println(1); }else { System.out.println(cou); } } } }
[ 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, 13, 13, 4, 18, 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, 12, 13, 30, 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, 0, 13, 4, 18, 13, 13, 13, 4, 18, 13, 13, 23, 13, 23, 13, 6, 13, 41, 13, 41, 13, 20, 12, 13, 30, 0, 18, 36, 13, 20, 23, 13, 12, 13, 30, 42, 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, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 19, 20 ], [ 19, 21 ], [ 0, 22 ], [ 243, 23 ], [ 243, 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 ], [ 26, 51 ], [ 51, 52 ], [ 52, 53 ], [ 24, 54 ], [ 54, 55 ], [ 243, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 62, 63 ], [ 62, 64 ], [ 62, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 58, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 58, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 81, 83 ], [ 74, 84 ], [ 84, 85 ], [ 85, 86 ], [ 74, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 56, 96 ], [ 96, 97 ], [ 243, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 106, 107 ], [ 102, 108 ], [ 108, 109 ], [ 108, 110 ], [ 102, 111 ], [ 111, 112 ], [ 111, 113 ], [ 102, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 114, 119 ], [ 119, 120 ], [ 119, 121 ], [ 114, 122 ], [ 122, 123 ], [ 123, 124 ], [ 114, 125 ], [ 126, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 129, 132 ], [ 128, 133 ], [ 127, 134 ], [ 134, 135 ], [ 127, 136 ], [ 136, 137 ], [ 136, 138 ], [ 126, 139 ], [ 139, 140 ], [ 139, 141 ], [ 141, 142 ], [ 142, 143 ], [ 141, 144 ], [ 141, 145 ], [ 102, 146 ], [ 146, 147 ], [ 147, 148 ], [ 146, 149 ], [ 100, 150 ], [ 150, 151 ], [ 100, 152 ], [ 152, 153 ], [ 243, 154 ], [ 154, 155 ], [ 154, 156 ], [ 156, 157 ], [ 154, 158 ], [ 158, 159 ], [ 158, 160 ], [ 154, 161 ], [ 161, 162 ], [ 161, 163 ], [ 163, 164 ], [ 164, 165 ], [ 165, 166 ], [ 165, 167 ], [ 164, 168 ], [ 161, 169 ], [ 169, 170 ], [ 154, 171 ], [ 171, 172 ], [ 171, 173 ], [ 173, 174 ], [ 174, 175 ], [ 175, 176 ], [ 176, 177 ], [ 177, 178 ], [ 174, 179 ], [ 179, 180 ], [ 180, 181 ], [ 181, 182 ], [ 181, 183 ], [ 183, 184 ], [ 184, 185 ], [ 185, 186 ], [ 180, 187 ], [ 187, 188 ], [ 188, 189 ], [ 188, 190 ], [ 173, 191 ], [ 191, 192 ], [ 192, 193 ], [ 193, 194 ], [ 154, 195 ], [ 195, 196 ], [ 195, 197 ], [ 197, 198 ], [ 198, 199 ], [ 199, 200 ], [ 200, 201 ], [ 199, 202 ], [ 202, 203 ], [ 154, 204 ], [ 204, 205 ], [ 204, 206 ], [ 206, 207 ], [ 207, 208 ], [ 208, 209 ], [ 209, 210 ], [ 208, 211 ], [ 211, 212 ], [ 154, 213 ], [ 213, 214 ], [ 213, 215 ], [ 215, 216 ], [ 216, 217 ], [ 216, 218 ], [ 215, 220 ], [ 220, 221 ], [ 221, 222 ], [ 222, 223 ], [ 222, 224 ], [ 220, 225 ], [ 225, 226 ], [ 225, 227 ], [ 220, 228 ], [ 228, 229 ], [ 229, 230 ], [ 220, 231 ], [ 231, 232 ], [ 232, 233 ], [ 233, 234 ], [ 233, 235 ], [ 232, 236 ], [ 236, 237 ], [ 215, 238 ], [ 238, 239 ], [ 213, 240 ], [ 240, 241 ], [ 0, 242 ], [ 242, 243 ], [ 242, 244 ] ]
[ "import javax.management.Query;\nimport javax.print.attribute.SupportedValuesAttribute;\nimport java.io.*;\nimport java.lang.reflect.Array;\nimport java.security.interfaces.DSAKeyPairGenerator;\nimport java.util.*;\nimport java.util.function.Predicate;\n\n\npublic class Main {\n\n static class TaskB {\n\n public void solve(InputReader in, PrintWriter out) {\n String s= in.next();\n int cnt = 0;\n int ans = 0;\n for(int i = 0; i < 3; i++)\n {\n if(s.charAt(i)=='R')cnt++;\n else cnt = 0;\n ans = Math.max(ans, cnt);\n }\n out.print(ans);\n }\n }\n\n\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 TaskB solver = new TaskB();\n solver.solve(in, out);\n out.close();\n }\n\n\n\n static void sort(int[] a)\n {\n ArrayList<Integer> list = new ArrayList<>();\n for(int i: a)list.add(i);\n Collections.sort(list);\n for(int i = 0; i < a.length; i++)a[i]=list.get(i);\n }\n\n\n static class InputReader {\n private BufferedReader reader;\n private StringTokenizer tokenizer = new StringTokenizer(\"\");\n\n public InputReader(InputStream inputStream) {\n this.reader = new BufferedReader(\n new InputStreamReader(inputStream));\n }\n\n public String next() {\n while (!tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public int[] nextIntArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n }\n}", "import javax.management.Query;", "Query", "javax.management", "import javax.print.attribute.SupportedValuesAttribute;", "SupportedValuesAttribute", "javax.print.attribute", "import java.io.*;", "io.*", "java", "import java.lang.reflect.Array;", "Array", "java.lang.reflect", "import java.security.interfaces.DSAKeyPairGenerator;", "DSAKeyPairGenerator", "java.security.interfaces", "import java.util.*;", "util.*", "java", "import java.util.function.Predicate;", "Predicate", "java.util.function", "public class Main {\n\n static class TaskB {\n\n public void solve(InputReader in, PrintWriter out) {\n String s= in.next();\n int cnt = 0;\n int ans = 0;\n for(int i = 0; i < 3; i++)\n {\n if(s.charAt(i)=='R')cnt++;\n else cnt = 0;\n ans = Math.max(ans, cnt);\n }\n out.print(ans);\n }\n }\n\n\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 TaskB solver = new TaskB();\n solver.solve(in, out);\n out.close();\n }\n\n\n\n static void sort(int[] a)\n {\n ArrayList<Integer> list = new ArrayList<>();\n for(int i: a)list.add(i);\n Collections.sort(list);\n for(int i = 0; i < a.length; i++)a[i]=list.get(i);\n }\n\n\n static class InputReader {\n private BufferedReader reader;\n private StringTokenizer tokenizer = new StringTokenizer(\"\");\n\n public InputReader(InputStream inputStream) {\n this.reader = new BufferedReader(\n new InputStreamReader(inputStream));\n }\n\n public String next() {\n while (!tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public int[] nextIntArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n }\n}", "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 TaskB solver = new TaskB();\n solver.solve(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 TaskB solver = new TaskB();\n solver.solve(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)", "TaskB solver = new TaskB();", "solver", "new TaskB()", "solver.solve(in, out)", "solver.solve", "solver", "in", "out", "out.close()", "out.close", "out", "String[] args", "args", "static void sort(int[] a)\n {\n ArrayList<Integer> list = new ArrayList<>();\n for(int i: a)list.add(i);\n Collections.sort(list);\n for(int i = 0; i < a.length; i++)a[i]=list.get(i);\n }", "sort", "{\n ArrayList<Integer> list = new ArrayList<>();\n for(int i: a)list.add(i);\n Collections.sort(list);\n for(int i = 0; i < a.length; i++)a[i]=list.get(i);\n }", "ArrayList<Integer> list = new ArrayList<>();", "list", "new ArrayList<>()", "for(int i: a)list.add(i);", "int i", "a", "list.add(i);", "list.add(i)", "list.add", "list", "i", "Collections.sort(list)", "Collections.sort", "Collections", "list", "for(int i = 0; i < a.length; i++)a[i]=list.get(i);", "int i = 0;", "int i = 0;", "i", "0", "i < a.length", "i", "a.length", "a", "a.length", "i++", "i++", "i", "a[i]=list.get(i);", "a[i]=list.get(i)", "a[i]", "a", "i", "list.get(i)", "list.get", "list", "i", "int[] a", "a", "static class TaskB {\n\n public void solve(InputReader in, PrintWriter out) {\n String s= in.next();\n int cnt = 0;\n int ans = 0;\n for(int i = 0; i < 3; i++)\n {\n if(s.charAt(i)=='R')cnt++;\n else cnt = 0;\n ans = Math.max(ans, cnt);\n }\n out.print(ans);\n }\n }", "TaskB", "public void solve(InputReader in, PrintWriter out) {\n String s= in.next();\n int cnt = 0;\n int ans = 0;\n for(int i = 0; i < 3; i++)\n {\n if(s.charAt(i)=='R')cnt++;\n else cnt = 0;\n ans = Math.max(ans, cnt);\n }\n out.print(ans);\n }", "solve", "{\n String s= in.next();\n int cnt = 0;\n int ans = 0;\n for(int i = 0; i < 3; i++)\n {\n if(s.charAt(i)=='R')cnt++;\n else cnt = 0;\n ans = Math.max(ans, cnt);\n }\n out.print(ans);\n }", "String s= in.next();", "s", "in.next()", "in.next", "in", "int cnt = 0;", "cnt", "0", "int ans = 0;", "ans", "0", "for(int i = 0; i < 3; i++)\n {\n if(s.charAt(i)=='R')cnt++;\n else cnt = 0;\n ans = Math.max(ans, cnt);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < 3", "i", "3", "i++", "i++", "i", "{\n if(s.charAt(i)=='R')cnt++;\n else cnt = 0;\n ans = Math.max(ans, cnt);\n }", "{\n if(s.charAt(i)=='R')cnt++;\n else cnt = 0;\n ans = Math.max(ans, cnt);\n }", "if(s.charAt(i)=='R')cnt++;\n else cnt = 0;", "s.charAt(i)=='R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "cnt++", "cnt", "cnt = 0", "cnt", "0", "ans = Math.max(ans, cnt)", "ans", "Math.max(ans, cnt)", "Math.max", "Math", "ans", "cnt", "out.print(ans)", "out.print", "out", "ans", "InputReader in", "in", "PrintWriter out", "out", "static class InputReader {\n private BufferedReader reader;\n private StringTokenizer tokenizer = new StringTokenizer(\"\");\n\n public InputReader(InputStream inputStream) {\n this.reader = new BufferedReader(\n new InputStreamReader(inputStream));\n }\n\n public String next() {\n while (!tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public int[] nextIntArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n }", "InputReader", "private BufferedReader reader;", "reader", "private StringTokenizer tokenizer = new StringTokenizer(\"\");", "tokenizer", "new StringTokenizer(\"\")", "public InputReader(InputStream inputStream) {\n this.reader = new BufferedReader(\n new InputStreamReader(inputStream));\n }", "InputReader", "{\n this.reader = new BufferedReader(\n new InputStreamReader(inputStream));\n }", "this.reader = new BufferedReader(\n new InputStreamReader(inputStream))", "this.reader", "this", "this.reader", "new BufferedReader(\n new InputStreamReader(inputStream))", "InputStream inputStream", "inputStream", "public String next() {\n while (!tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return tokenizer.nextToken();\n }", "next", "{\n while (!tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return tokenizer.nextToken();\n }", "while (!tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "!tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens", "tokenizer", "{\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "try {\n tokenizer = new StringTokenizer(reader.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 tokenizer = new StringTokenizer(reader.readLine());\n }", "tokenizer = new StringTokenizer(reader.readLine())", "tokenizer", "new StringTokenizer(reader.readLine())", "return tokenizer.nextToken();", "tokenizer.nextToken()", "tokenizer.nextToken", "tokenizer", "public int nextInt() {\n return Integer.parseInt(next());\n }", "nextInt", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "public long nextLong() {\n return Long.parseLong(next());\n }", "nextLong", "{\n return Long.parseLong(next());\n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "public int[] nextIntArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }", "nextIntArray", "{\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }", "int[] a = new int[n];", "a", "new int[n]", "n", "for (int i = 0; i < n; i++)\n a[i] = nextInt();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "a[i] = nextInt();", "a[i] = nextInt()", "a[i]", "a", "i", "nextInt()", "nextInt", "return a;", "a", "int n", "n", "public class Main {\n\n static class TaskB {\n\n public void solve(InputReader in, PrintWriter out) {\n String s= in.next();\n int cnt = 0;\n int ans = 0;\n for(int i = 0; i < 3; i++)\n {\n if(s.charAt(i)=='R')cnt++;\n else cnt = 0;\n ans = Math.max(ans, cnt);\n }\n out.print(ans);\n }\n }\n\n\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 TaskB solver = new TaskB();\n solver.solve(in, out);\n out.close();\n }\n\n\n\n static void sort(int[] a)\n {\n ArrayList<Integer> list = new ArrayList<>();\n for(int i: a)list.add(i);\n Collections.sort(list);\n for(int i = 0; i < a.length; i++)a[i]=list.get(i);\n }\n\n\n static class InputReader {\n private BufferedReader reader;\n private StringTokenizer tokenizer = new StringTokenizer(\"\");\n\n public InputReader(InputStream inputStream) {\n this.reader = new BufferedReader(\n new InputStreamReader(inputStream));\n }\n\n public String next() {\n while (!tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public int[] nextIntArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n }\n}", "public class Main {\n\n static class TaskB {\n\n public void solve(InputReader in, PrintWriter out) {\n String s= in.next();\n int cnt = 0;\n int ans = 0;\n for(int i = 0; i < 3; i++)\n {\n if(s.charAt(i)=='R')cnt++;\n else cnt = 0;\n ans = Math.max(ans, cnt);\n }\n out.print(ans);\n }\n }\n\n\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 TaskB solver = new TaskB();\n solver.solve(in, out);\n out.close();\n }\n\n\n\n static void sort(int[] a)\n {\n ArrayList<Integer> list = new ArrayList<>();\n for(int i: a)list.add(i);\n Collections.sort(list);\n for(int i = 0; i < a.length; i++)a[i]=list.get(i);\n }\n\n\n static class InputReader {\n private BufferedReader reader;\n private StringTokenizer tokenizer = new StringTokenizer(\"\");\n\n public InputReader(InputStream inputStream) {\n this.reader = new BufferedReader(\n new InputStreamReader(inputStream));\n }\n\n public String next() {\n while (!tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public int[] nextIntArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n }\n}", "Main" ]
import javax.management.Query; import javax.print.attribute.SupportedValuesAttribute; import java.io.*; import java.lang.reflect.Array; import java.security.interfaces.DSAKeyPairGenerator; import java.util.*; import java.util.function.Predicate; public class Main { static class TaskB { public void solve(InputReader in, PrintWriter out) { String s= in.next(); int cnt = 0; int ans = 0; for(int i = 0; i < 3; i++) { if(s.charAt(i)=='R')cnt++; else cnt = 0; ans = Math.max(ans, cnt); } out.print(ans); } } public static void main(String[] args) { InputStream inputStream = System.in; OutputStream outputStream = System.out; InputReader in = new InputReader(inputStream); PrintWriter out = new PrintWriter(outputStream); TaskB solver = new TaskB(); solver.solve(in, out); out.close(); } static void sort(int[] a) { ArrayList<Integer> list = new ArrayList<>(); for(int i: a)list.add(i); Collections.sort(list); for(int i = 0; i < a.length; i++)a[i]=list.get(i); } static class InputReader { private BufferedReader reader; private StringTokenizer tokenizer = new StringTokenizer(""); public InputReader(InputStream inputStream) { this.reader = new BufferedReader( new InputStreamReader(inputStream)); } public String next() { while (!tokenizer.hasMoreTokens()) { try { tokenizer = new StringTokenizer(reader.readLine()); } catch (IOException e) { e.printStackTrace(); } } return tokenizer.nextToken(); } public int nextInt() { return Integer.parseInt(next()); } public long nextLong() { return Long.parseLong(next()); } public int[] nextIntArray(int n) { int[] a = new int[n]; for (int i = 0; i < n; i++) a[i] = nextInt(); return a; } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 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, 14, 2, 2, 13, 17, 2, 4, 18, 13, 17, 17, 0, 13, 17, 40, 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 ], [ 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 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 37, 42 ], [ 36, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 49, 54 ], [ 44, 55 ], [ 55, 56 ], [ 55, 57 ], [ 43, 58 ], [ 58, 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.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\t\tint r = 0;\n\t\tfor(int i=0; i < 3; i++) {\n\t\t\tif(s.charAt(i)=='R') {\n\t\t\t\tif(i==2&&s.charAt(1)=='S')r=0;\n\t\t\t\tr++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(r);\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\t\tint r = 0;\n\t\tfor(int i=0; i < 3; i++) {\n\t\t\tif(s.charAt(i)=='R') {\n\t\t\t\tif(i==2&&s.charAt(1)=='S')r=0;\n\t\t\t\tr++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(r);\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\t\tint r = 0;\n\t\tfor(int i=0; i < 3; i++) {\n\t\t\tif(s.charAt(i)=='R') {\n\t\t\t\tif(i==2&&s.charAt(1)=='S')r=0;\n\t\t\t\tr++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(r);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tsc.close();\n\t\tint r = 0;\n\t\tfor(int i=0; i < 3; i++) {\n\t\t\tif(s.charAt(i)=='R') {\n\t\t\t\tif(i==2&&s.charAt(1)=='S')r=0;\n\t\t\t\tr++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(r);\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 r = 0;", "r", "0", "for(int i=0; i < 3; i++) {\n\t\t\tif(s.charAt(i)=='R') {\n\t\t\t\tif(i==2&&s.charAt(1)=='S')r=0;\n\t\t\t\tr++;\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\tif(i==2&&s.charAt(1)=='S')r=0;\n\t\t\t\tr++;\n\t\t\t}\n\t\t}", "{\n\t\t\tif(s.charAt(i)=='R') {\n\t\t\t\tif(i==2&&s.charAt(1)=='S')r=0;\n\t\t\t\tr++;\n\t\t\t}\n\t\t}", "if(s.charAt(i)=='R') {\n\t\t\t\tif(i==2&&s.charAt(1)=='S')r=0;\n\t\t\t\tr++;\n\t\t\t}", "s.charAt(i)=='R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "{\n\t\t\t\tif(i==2&&s.charAt(1)=='S')r=0;\n\t\t\t\tr++;\n\t\t\t}", "if(i==2&&s.charAt(1)=='S')r=0;", "i==2&&s.charAt(1)=='S'", "i==2", "i", "2", "s.charAt(1)=='S'", "s.charAt(1)", "s.charAt", "s", "1", "'S'", "r=0", "r", "0", "r++", "r", "System.out.println(r)", "System.out.println", "System.out", "System", "System.out", "r", "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\tsc.close();\n\t\tint r = 0;\n\t\tfor(int i=0; i < 3; i++) {\n\t\t\tif(s.charAt(i)=='R') {\n\t\t\t\tif(i==2&&s.charAt(1)=='S')r=0;\n\t\t\t\tr++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(r);\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\t\tint r = 0;\n\t\tfor(int i=0; i < 3; i++) {\n\t\t\tif(s.charAt(i)=='R') {\n\t\t\t\tif(i==2&&s.charAt(1)=='S')r=0;\n\t\t\t\tr++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(r);\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(); int r = 0; for(int i=0; i < 3; i++) { if(s.charAt(i)=='R') { if(i==2&&s.charAt(1)=='S')r=0; r++; } } System.out.println(r); } }
[ 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, 4, 18, 4, 18, 13, 13, 2, 13, 17, 17, 30, 0, 13, 40, 13, 14, 2, 13, 13, 30, 0, 13, 13, 14, 4, 18, 4, 18, 13, 13, 2, 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 ], [ 86, 5 ], [ 86, 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 ], [ 42, 43 ], [ 41, 44 ], [ 41, 45 ], [ 45, 46 ], [ 45, 47 ], [ 39, 48 ], [ 38, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 49, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 38, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 65, 69 ], [ 69, 70 ], [ 69, 71 ], [ 63, 72 ], [ 62, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 8, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 77, 82 ], [ 6, 83 ], [ 83, 84 ], [ 0, 85 ], [ 85, 86 ], [ 85, 87 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n String scLine = sc.nextLine();\n int result = 0;\n int maxResult = 0;\n\n for (int i = 0; i < scLine.length(); i++){\n \tif(scLine.substring(i,i + 1).equals(\"R\")){\n \t\tresult = ++result;\n \t\tif(result > maxResult){\n \t\t\tmaxResult = result;\n \t\t}\n \t}\n \telse if(scLine.substring(i, i + 1).equals(\"S\")){\n \t\tresult = 0;\n \t}\n }\n\n System.out.println(maxResult);\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 String scLine = sc.nextLine();\n int result = 0;\n int maxResult = 0;\n\n for (int i = 0; i < scLine.length(); i++){\n \tif(scLine.substring(i,i + 1).equals(\"R\")){\n \t\tresult = ++result;\n \t\tif(result > maxResult){\n \t\t\tmaxResult = result;\n \t\t}\n \t}\n \telse if(scLine.substring(i, i + 1).equals(\"S\")){\n \t\tresult = 0;\n \t}\n }\n\n System.out.println(maxResult);\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n String scLine = sc.nextLine();\n int result = 0;\n int maxResult = 0;\n\n for (int i = 0; i < scLine.length(); i++){\n \tif(scLine.substring(i,i + 1).equals(\"R\")){\n \t\tresult = ++result;\n \t\tif(result > maxResult){\n \t\t\tmaxResult = result;\n \t\t}\n \t}\n \telse if(scLine.substring(i, i + 1).equals(\"S\")){\n \t\tresult = 0;\n \t}\n }\n\n System.out.println(maxResult);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n String scLine = sc.nextLine();\n int result = 0;\n int maxResult = 0;\n\n for (int i = 0; i < scLine.length(); i++){\n \tif(scLine.substring(i,i + 1).equals(\"R\")){\n \t\tresult = ++result;\n \t\tif(result > maxResult){\n \t\t\tmaxResult = result;\n \t\t}\n \t}\n \telse if(scLine.substring(i, i + 1).equals(\"S\")){\n \t\tresult = 0;\n \t}\n }\n\n System.out.println(maxResult);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String scLine = sc.nextLine();", "scLine", "sc.nextLine()", "sc.nextLine", "sc", "int result = 0;", "result", "0", "int maxResult = 0;", "maxResult", "0", "for (int i = 0; i < scLine.length(); i++){\n \tif(scLine.substring(i,i + 1).equals(\"R\")){\n \t\tresult = ++result;\n \t\tif(result > maxResult){\n \t\t\tmaxResult = result;\n \t\t}\n \t}\n \telse if(scLine.substring(i, i + 1).equals(\"S\")){\n \t\tresult = 0;\n \t}\n }", "int i = 0;", "int i = 0;", "i", "0", "i < scLine.length()", "i", "scLine.length()", "scLine.length", "scLine", "i++", "i++", "i", "{\n \tif(scLine.substring(i,i + 1).equals(\"R\")){\n \t\tresult = ++result;\n \t\tif(result > maxResult){\n \t\t\tmaxResult = result;\n \t\t}\n \t}\n \telse if(scLine.substring(i, i + 1).equals(\"S\")){\n \t\tresult = 0;\n \t}\n }", "{\n \tif(scLine.substring(i,i + 1).equals(\"R\")){\n \t\tresult = ++result;\n \t\tif(result > maxResult){\n \t\t\tmaxResult = result;\n \t\t}\n \t}\n \telse if(scLine.substring(i, i + 1).equals(\"S\")){\n \t\tresult = 0;\n \t}\n }", "if(scLine.substring(i,i + 1).equals(\"R\")){\n \t\tresult = ++result;\n \t\tif(result > maxResult){\n \t\t\tmaxResult = result;\n \t\t}\n \t}\n \telse if(scLine.substring(i, i + 1).equals(\"S\")){\n \t\tresult = 0;\n \t}", "scLine.substring(i,i + 1).equals(\"R\")", "scLine.substring(i,i + 1).equals", "scLine.substring(i,i + 1)", "scLine.substring", "scLine", "i", "i + 1", "i", "1", "\"R\"", "{\n \t\tresult = ++result;\n \t\tif(result > maxResult){\n \t\t\tmaxResult = result;\n \t\t}\n \t}", "result = ++result", "result", "++result", "result", "if(result > maxResult){\n \t\t\tmaxResult = result;\n \t\t}", "result > maxResult", "result", "maxResult", "{\n \t\t\tmaxResult = result;\n \t\t}", "maxResult = result", "maxResult", "result", "if(scLine.substring(i, i + 1).equals(\"S\")){\n \t\tresult = 0;\n \t}", "scLine.substring(i, i + 1).equals(\"S\")", "scLine.substring(i, i + 1).equals", "scLine.substring(i, i + 1)", "scLine.substring", "scLine", "i", "i + 1", "i", "1", "\"S\"", "{\n \t\tresult = 0;\n \t}", "result = 0", "result", "0", "System.out.println(maxResult)", "System.out.println", "System.out", "System", "System.out", "maxResult", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n String scLine = sc.nextLine();\n int result = 0;\n int maxResult = 0;\n\n for (int i = 0; i < scLine.length(); i++){\n \tif(scLine.substring(i,i + 1).equals(\"R\")){\n \t\tresult = ++result;\n \t\tif(result > maxResult){\n \t\t\tmaxResult = result;\n \t\t}\n \t}\n \telse if(scLine.substring(i, i + 1).equals(\"S\")){\n \t\tresult = 0;\n \t}\n }\n\n System.out.println(maxResult);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n String scLine = sc.nextLine();\n int result = 0;\n int maxResult = 0;\n\n for (int i = 0; i < scLine.length(); i++){\n \tif(scLine.substring(i,i + 1).equals(\"R\")){\n \t\tresult = ++result;\n \t\tif(result > maxResult){\n \t\t\tmaxResult = result;\n \t\t}\n \t}\n \telse if(scLine.substring(i, i + 1).equals(\"S\")){\n \t\tresult = 0;\n \t}\n }\n\n System.out.println(maxResult);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String scLine = sc.nextLine(); int result = 0; int maxResult = 0; for (int i = 0; i < scLine.length(); i++){ if(scLine.substring(i,i + 1).equals("R")){ result = ++result; if(result > maxResult){ maxResult = result; } } else if(scLine.substring(i, i + 1).equals("S")){ result = 0; } } System.out.println(maxResult); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 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, 13, 17, 30, 40, 13, 14, 2, 13, 17, 30, 40, 13, 14, 2, 13, 17, 30, 40, 13, 30, 30, 14, 2, 13, 17, 30, 30, 30, 14, 2, 13, 17, 30, 40, 13, 14, 2, 13, 17, 30, 40, 13, 30, 30, 14, 2, 13, 17, 30, 40, 13, 30, 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 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 10, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 10, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 27, 30 ], [ 10, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 10, 37 ], [ 37, 38 ], [ 37, 39 ], [ 10, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 40, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 59, 60 ], [ 54, 61 ], [ 47, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 63, 68 ], [ 40, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 81, 82 ], [ 82, 83 ], [ 77, 84 ], [ 70, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 90, 91 ], [ 91, 92 ], [ 86, 93 ], [ 10, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 6, 100 ], [ 100, 101 ], [ 0, 102 ], [ 102, 103 ], [ 102, 104 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[]args) {\n\t\ttry(Scanner scan = new Scanner(System.in)){\n\t\t\t\n\t\t\tString S = scan.next();\n\t\t\t\n\t\t\n\t\t\tchar one = S.charAt(0);\t\t\t\n\t\t\tchar two = S.charAt(1);\t\t\t\n\t\t\tchar thr = S.charAt(2);\n\t\t\t\n\t\t\t\n\t\t\tint max = 0;\n\t\t\n\t\t\tif(one=='R') {\n\t\t\t\t\n\t\t\t\tmax++;\n\t\t\t\tif(two=='R') {\n\t\t\t\t\tmax++;\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\tmax++;\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\t\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tif(two=='R') {\n\t\t\t\t\tmax++;\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\tmax++;\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\tmax++;\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(max);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\n\t\t\n\t}\n\t\t\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[]args) {\n\t\ttry(Scanner scan = new Scanner(System.in)){\n\t\t\t\n\t\t\tString S = scan.next();\n\t\t\t\n\t\t\n\t\t\tchar one = S.charAt(0);\t\t\t\n\t\t\tchar two = S.charAt(1);\t\t\t\n\t\t\tchar thr = S.charAt(2);\n\t\t\t\n\t\t\t\n\t\t\tint max = 0;\n\t\t\n\t\t\tif(one=='R') {\n\t\t\t\t\n\t\t\t\tmax++;\n\t\t\t\tif(two=='R') {\n\t\t\t\t\tmax++;\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\tmax++;\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\t\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tif(two=='R') {\n\t\t\t\t\tmax++;\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\tmax++;\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\tmax++;\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(max);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\n\t\t\n\t}\n\t\t\n\n}", "Main", "public static void main(String[]args) {\n\t\ttry(Scanner scan = new Scanner(System.in)){\n\t\t\t\n\t\t\tString S = scan.next();\n\t\t\t\n\t\t\n\t\t\tchar one = S.charAt(0);\t\t\t\n\t\t\tchar two = S.charAt(1);\t\t\t\n\t\t\tchar thr = S.charAt(2);\n\t\t\t\n\t\t\t\n\t\t\tint max = 0;\n\t\t\n\t\t\tif(one=='R') {\n\t\t\t\t\n\t\t\t\tmax++;\n\t\t\t\tif(two=='R') {\n\t\t\t\t\tmax++;\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\tmax++;\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\t\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tif(two=='R') {\n\t\t\t\t\tmax++;\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\tmax++;\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\tmax++;\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(max);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\n\t\t\n\t}", "main", "{\n\t\ttry(Scanner scan = new Scanner(System.in)){\n\t\t\t\n\t\t\tString S = scan.next();\n\t\t\t\n\t\t\n\t\t\tchar one = S.charAt(0);\t\t\t\n\t\t\tchar two = S.charAt(1);\t\t\t\n\t\t\tchar thr = S.charAt(2);\n\t\t\t\n\t\t\t\n\t\t\tint max = 0;\n\t\t\n\t\t\tif(one=='R') {\n\t\t\t\t\n\t\t\t\tmax++;\n\t\t\t\tif(two=='R') {\n\t\t\t\t\tmax++;\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\tmax++;\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\t\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tif(two=='R') {\n\t\t\t\t\tmax++;\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\tmax++;\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\tmax++;\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(max);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\n\t\t\n\t}", "try(Scanner scan = new Scanner(System.in)){\n\t\t\t\n\t\t\tString S = scan.next();\n\t\t\t\n\t\t\n\t\t\tchar one = S.charAt(0);\t\t\t\n\t\t\tchar two = S.charAt(1);\t\t\t\n\t\t\tchar thr = S.charAt(2);\n\t\t\t\n\t\t\t\n\t\t\tint max = 0;\n\t\t\n\t\t\tif(one=='R') {\n\t\t\t\t\n\t\t\t\tmax++;\n\t\t\t\tif(two=='R') {\n\t\t\t\t\tmax++;\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\tmax++;\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\t\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tif(two=='R') {\n\t\t\t\t\tmax++;\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\tmax++;\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\tmax++;\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(max);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}", "{\n\t\t\t\n\t\t\tString S = scan.next();\n\t\t\t\n\t\t\n\t\t\tchar one = S.charAt(0);\t\t\t\n\t\t\tchar two = S.charAt(1);\t\t\t\n\t\t\tchar thr = S.charAt(2);\n\t\t\t\n\t\t\t\n\t\t\tint max = 0;\n\t\t\n\t\t\tif(one=='R') {\n\t\t\t\t\n\t\t\t\tmax++;\n\t\t\t\tif(two=='R') {\n\t\t\t\t\tmax++;\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\tmax++;\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\t\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tif(two=='R') {\n\t\t\t\t\tmax++;\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\tmax++;\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\tmax++;\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(max);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}", "Scanner scan = new Scanner(System.in)", "Scanner scan = new Scanner(System.in)", "new Scanner(System.in)", "String S = scan.next();", "S", "scan.next()", "scan.next", "scan", "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 thr = S.charAt(2);", "thr", "S.charAt(2)", "S.charAt", "S", "2", "int max = 0;", "max", "0", "if(one=='R') {\n\t\t\t\t\n\t\t\t\tmax++;\n\t\t\t\tif(two=='R') {\n\t\t\t\t\tmax++;\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\tmax++;\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\t\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tif(two=='R') {\n\t\t\t\t\tmax++;\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\tmax++;\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\tmax++;\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}", "one=='R'", "one", "'R'", "{\n\t\t\t\t\n\t\t\t\tmax++;\n\t\t\t\tif(two=='R') {\n\t\t\t\t\tmax++;\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\tmax++;\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\t\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}", "max++", "max", "if(two=='R') {\n\t\t\t\t\tmax++;\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\tmax++;\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\t\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}", "two=='R'", "two", "'R'", "{\n\t\t\t\t\tmax++;\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\tmax++;\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}", "max++", "max", "if(thr=='R') {\n\t\t\t\t\t\tmax++;\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "thr=='R'", "thr", "'R'", "{\n\t\t\t\t\t\tmax++;\n\t\t\t\t\t}", "max++", "max", "{\n\t\t\t\t\t\t\n\t\t\t\t\t}", "{\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\t\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}", "if(thr=='R') {\n\t\t\t\t\t\t\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "thr=='R'", "thr", "'R'", "{\n\t\t\t\t\t\t\n\t\t\t\t\t}", "{\n\t\t\t\t\t\t\n\t\t\t\t\t}", "{\n\t\t\t\tif(two=='R') {\n\t\t\t\t\tmax++;\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\tmax++;\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\tmax++;\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}", "if(two=='R') {\n\t\t\t\t\tmax++;\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\tmax++;\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\tmax++;\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}", "two=='R'", "two", "'R'", "{\n\t\t\t\t\tmax++;\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\tmax++;\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}", "max++", "max", "if(thr=='R') {\n\t\t\t\t\t\tmax++;\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "thr=='R'", "thr", "'R'", "{\n\t\t\t\t\t\tmax++;\n\t\t\t\t\t}", "max++", "max", "{\n\t\t\t\t\t\t\n\t\t\t\t\t}", "{\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\tmax++;\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}", "if(thr=='R') {\n\t\t\t\t\t\tmax++;\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "thr=='R'", "thr", "'R'", "{\n\t\t\t\t\t\tmax++;\n\t\t\t\t\t}", "max++", "max", "{\n\t\t\t\t\t\t\n\t\t\t\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\ttry(Scanner scan = new Scanner(System.in)){\n\t\t\t\n\t\t\tString S = scan.next();\n\t\t\t\n\t\t\n\t\t\tchar one = S.charAt(0);\t\t\t\n\t\t\tchar two = S.charAt(1);\t\t\t\n\t\t\tchar thr = S.charAt(2);\n\t\t\t\n\t\t\t\n\t\t\tint max = 0;\n\t\t\n\t\t\tif(one=='R') {\n\t\t\t\t\n\t\t\t\tmax++;\n\t\t\t\tif(two=='R') {\n\t\t\t\t\tmax++;\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\tmax++;\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\t\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tif(two=='R') {\n\t\t\t\t\tmax++;\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\tmax++;\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\tmax++;\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(max);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\n\t\t\n\t}\n\t\t\n\n}", "public class Main {\n\tpublic static void main(String[]args) {\n\t\ttry(Scanner scan = new Scanner(System.in)){\n\t\t\t\n\t\t\tString S = scan.next();\n\t\t\t\n\t\t\n\t\t\tchar one = S.charAt(0);\t\t\t\n\t\t\tchar two = S.charAt(1);\t\t\t\n\t\t\tchar thr = S.charAt(2);\n\t\t\t\n\t\t\t\n\t\t\tint max = 0;\n\t\t\n\t\t\tif(one=='R') {\n\t\t\t\t\n\t\t\t\tmax++;\n\t\t\t\tif(two=='R') {\n\t\t\t\t\tmax++;\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\tmax++;\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\t\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tif(two=='R') {\n\t\t\t\t\tmax++;\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\tmax++;\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tif(thr=='R') {\n\t\t\t\t\t\tmax++;\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(max);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\n\t\t\n\t}\n\t\t\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[]args) { try(Scanner scan = new Scanner(System.in)){ String S = scan.next(); char one = S.charAt(0); char two = S.charAt(1); char thr = S.charAt(2); int max = 0; if(one=='R') { max++; if(two=='R') { max++; if(thr=='R') { max++; }else { } }else { if(thr=='R') { }else { } } }else { if(two=='R') { max++; if(thr=='R') { max++; }else { } }else { if(thr=='R') { max++; }else { } } } System.out.println(max); } } }
[ 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, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 18, 13, 13, 17, 30, 40, 13, 0, 13, 4, 18, 13, 13, 13, 30, 0, 13, 17, 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 ], [ 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 ], [ 36, 37 ], [ 36, 38 ], [ 29, 39 ], [ 39, 40 ], [ 40, 41 ], [ 29, 42 ], [ 43, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 44, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 56, 60 ], [ 44, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 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.Scanner;\n\npublic class Main {\n\tpublic static void main(String args[]) {\n \tScanner sn = new Scanner(System.in);\n String s = sn.next();\n String[] a = s.split(\"\");\n int max = 0;\n int aux = 0;\n for(int i = 0; i < a.length; i++) {\n \tif(a[i].equals(\"R\")) {\n \taux++;\n \tmax = Math.max(max, aux);\n } else {\n \taux = 0;\n }\n }\n System.out.println(max);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String args[]) {\n \tScanner sn = new Scanner(System.in);\n String s = sn.next();\n String[] a = s.split(\"\");\n int max = 0;\n int aux = 0;\n for(int i = 0; i < a.length; i++) {\n \tif(a[i].equals(\"R\")) {\n \taux++;\n \tmax = Math.max(max, aux);\n } else {\n \taux = 0;\n }\n }\n System.out.println(max);\n }\n}", "Main", "public static void main(String args[]) {\n \tScanner sn = new Scanner(System.in);\n String s = sn.next();\n String[] a = s.split(\"\");\n int max = 0;\n int aux = 0;\n for(int i = 0; i < a.length; i++) {\n \tif(a[i].equals(\"R\")) {\n \taux++;\n \tmax = Math.max(max, aux);\n } else {\n \taux = 0;\n }\n }\n System.out.println(max);\n }", "main", "{\n \tScanner sn = new Scanner(System.in);\n String s = sn.next();\n String[] a = s.split(\"\");\n int max = 0;\n int aux = 0;\n for(int i = 0; i < a.length; i++) {\n \tif(a[i].equals(\"R\")) {\n \taux++;\n \tmax = Math.max(max, aux);\n } else {\n \taux = 0;\n }\n }\n System.out.println(max);\n }", "Scanner sn = new Scanner(System.in);", "sn", "new Scanner(System.in)", "String s = sn.next();", "s", "sn.next()", "sn.next", "sn", "String[] a = s.split(\"\");", "a", "s.split(\"\")", "s.split", "s", "\"\"", "int max = 0;", "max", "0", "int aux = 0;", "aux", "0", "for(int i = 0; i < a.length; i++) {\n \tif(a[i].equals(\"R\")) {\n \taux++;\n \tmax = Math.max(max, aux);\n } else {\n \taux = 0;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < a.length", "i", "a.length", "a", "a.length", "i++", "i++", "i", "{\n \tif(a[i].equals(\"R\")) {\n \taux++;\n \tmax = Math.max(max, aux);\n } else {\n \taux = 0;\n }\n }", "{\n \tif(a[i].equals(\"R\")) {\n \taux++;\n \tmax = Math.max(max, aux);\n } else {\n \taux = 0;\n }\n }", "if(a[i].equals(\"R\")) {\n \taux++;\n \tmax = Math.max(max, aux);\n } else {\n \taux = 0;\n }", "a[i].equals(\"R\")", "a[i].equals", "a[i]", "a", "i", "\"R\"", "{\n \taux++;\n \tmax = Math.max(max, aux);\n }", "aux++", "aux", "max = Math.max(max, aux)", "max", "Math.max(max, aux)", "Math.max", "Math", "max", "aux", "{\n \taux = 0;\n }", "aux = 0", "aux", "0", "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 \tScanner sn = new Scanner(System.in);\n String s = sn.next();\n String[] a = s.split(\"\");\n int max = 0;\n int aux = 0;\n for(int i = 0; i < a.length; i++) {\n \tif(a[i].equals(\"R\")) {\n \taux++;\n \tmax = Math.max(max, aux);\n } else {\n \taux = 0;\n }\n }\n System.out.println(max);\n }\n}", "public class Main {\n\tpublic static void main(String args[]) {\n \tScanner sn = new Scanner(System.in);\n String s = sn.next();\n String[] a = s.split(\"\");\n int max = 0;\n int aux = 0;\n for(int i = 0; i < a.length; i++) {\n \tif(a[i].equals(\"R\")) {\n \taux++;\n \tmax = Math.max(max, aux);\n } else {\n \taux = 0;\n }\n }\n System.out.println(max);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner sn = new Scanner(System.in); String s = sn.next(); String[] a = s.split(""); int max = 0; int aux = 0; for(int i = 0; i < a.length; i++) { if(a[i].equals("R")) { aux++; max = Math.max(max, aux); } else { aux = 0; } } System.out.println(max); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 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, 14, 13, 30, 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 ], [ 73, 5 ], [ 73, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 10, 19 ], [ 19, 20 ], [ 19, 21 ], [ 10, 22 ], [ 22, 23 ], [ 22, 24 ], [ 10, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 25, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 25, 35 ], [ 35, 36 ], [ 36, 37 ], [ 25, 38 ], [ 39, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 41, 46 ], [ 40, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 48, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 47, 57 ], [ 57, 58 ], [ 57, 59 ], [ 40, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 10, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 6, 70 ], [ 70, 71 ], [ 0, 72 ], [ 72, 73 ], [ 72, 74 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\t\t\t\n\t\t\tString s = sc.next();\n\t\t\t\n\t\t\t\n\t\t\tboolean isRain = false;\n\t\t\tint duration = 0;\n\t\t\tfor(int i = 0 ; i < s.length() ; i++ ) {\n\t\t\t\t\n\t\t\t\tif ( s.charAt(i) == 'R') {\n\t\t\t\t\tif ( isRain) {\n\t\t\t\t\t\tduration++;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tduration = 1;\n\t\t\t\t\t}\n\t\t\t\t\tisRain = true;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tisRain = false;\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(duration);\n\t\t}\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args){\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\t\t\t\n\t\t\tString s = sc.next();\n\t\t\t\n\t\t\t\n\t\t\tboolean isRain = false;\n\t\t\tint duration = 0;\n\t\t\tfor(int i = 0 ; i < s.length() ; i++ ) {\n\t\t\t\t\n\t\t\t\tif ( s.charAt(i) == 'R') {\n\t\t\t\t\tif ( isRain) {\n\t\t\t\t\t\tduration++;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tduration = 1;\n\t\t\t\t\t}\n\t\t\t\t\tisRain = true;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tisRain = false;\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(duration);\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args){\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\t\t\t\n\t\t\tString s = sc.next();\n\t\t\t\n\t\t\t\n\t\t\tboolean isRain = false;\n\t\t\tint duration = 0;\n\t\t\tfor(int i = 0 ; i < s.length() ; i++ ) {\n\t\t\t\t\n\t\t\t\tif ( s.charAt(i) == 'R') {\n\t\t\t\t\tif ( isRain) {\n\t\t\t\t\t\tduration++;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tduration = 1;\n\t\t\t\t\t}\n\t\t\t\t\tisRain = true;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tisRain = false;\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(duration);\n\t\t}\n\t}", "main", "{\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\t\t\t\n\t\t\tString s = sc.next();\n\t\t\t\n\t\t\t\n\t\t\tboolean isRain = false;\n\t\t\tint duration = 0;\n\t\t\tfor(int i = 0 ; i < s.length() ; i++ ) {\n\t\t\t\t\n\t\t\t\tif ( s.charAt(i) == 'R') {\n\t\t\t\t\tif ( isRain) {\n\t\t\t\t\t\tduration++;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tduration = 1;\n\t\t\t\t\t}\n\t\t\t\t\tisRain = true;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tisRain = false;\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(duration);\n\t\t}\n\t}", "try(Scanner sc = new Scanner(System.in)) {\n\t\t\t\n\t\t\tString s = sc.next();\n\t\t\t\n\t\t\t\n\t\t\tboolean isRain = false;\n\t\t\tint duration = 0;\n\t\t\tfor(int i = 0 ; i < s.length() ; i++ ) {\n\t\t\t\t\n\t\t\t\tif ( s.charAt(i) == 'R') {\n\t\t\t\t\tif ( isRain) {\n\t\t\t\t\t\tduration++;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tduration = 1;\n\t\t\t\t\t}\n\t\t\t\t\tisRain = true;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tisRain = false;\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(duration);\n\t\t}", "{\n\t\t\t\n\t\t\tString s = sc.next();\n\t\t\t\n\t\t\t\n\t\t\tboolean isRain = false;\n\t\t\tint duration = 0;\n\t\t\tfor(int i = 0 ; i < s.length() ; i++ ) {\n\t\t\t\t\n\t\t\t\tif ( s.charAt(i) == 'R') {\n\t\t\t\t\tif ( isRain) {\n\t\t\t\t\t\tduration++;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tduration = 1;\n\t\t\t\t\t}\n\t\t\t\t\tisRain = true;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tisRain = false;\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(duration);\n\t\t}", "Scanner sc = new Scanner(System.in)", "Scanner sc = new Scanner(System.in)", "new Scanner(System.in)", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "boolean isRain = false;", "isRain", "false", "int duration = 0;", "duration", "0", "for(int i = 0 ; i < s.length() ; i++ ) {\n\t\t\t\t\n\t\t\t\tif ( s.charAt(i) == 'R') {\n\t\t\t\t\tif ( isRain) {\n\t\t\t\t\t\tduration++;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tduration = 1;\n\t\t\t\t\t}\n\t\t\t\t\tisRain = true;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tisRain = false;\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\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\t\n\t\t\t\tif ( s.charAt(i) == 'R') {\n\t\t\t\t\tif ( isRain) {\n\t\t\t\t\t\tduration++;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tduration = 1;\n\t\t\t\t\t}\n\t\t\t\t\tisRain = true;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tisRain = false;\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t}", "{\n\t\t\t\t\n\t\t\t\tif ( s.charAt(i) == 'R') {\n\t\t\t\t\tif ( isRain) {\n\t\t\t\t\t\tduration++;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tduration = 1;\n\t\t\t\t\t}\n\t\t\t\t\tisRain = true;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tisRain = false;\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t}", "if ( s.charAt(i) == 'R') {\n\t\t\t\t\tif ( isRain) {\n\t\t\t\t\t\tduration++;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tduration = 1;\n\t\t\t\t\t}\n\t\t\t\t\tisRain = true;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tisRain = false;\n\t\t\t\t}", "s.charAt(i) == 'R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "{\n\t\t\t\t\tif ( isRain) {\n\t\t\t\t\t\tduration++;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tduration = 1;\n\t\t\t\t\t}\n\t\t\t\t\tisRain = true;\n\t\t\t\t}", "if ( isRain) {\n\t\t\t\t\t\tduration++;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tduration = 1;\n\t\t\t\t\t}", "isRain", "{\n\t\t\t\t\t\tduration++;\n\t\t\t\t\t}", "duration++", "duration", "{\n\t\t\t\t\t\tduration = 1;\n\t\t\t\t\t}", "duration = 1", "duration", "1", "isRain = true", "isRain", "true", "{\n\t\t\t\t\tisRain = false;\n\t\t\t\t}", "isRain = false", "isRain", "false", "System.out.println(duration)", "System.out.println", "System.out", "System", "System.out", "duration", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args){\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\t\t\t\n\t\t\tString s = sc.next();\n\t\t\t\n\t\t\t\n\t\t\tboolean isRain = false;\n\t\t\tint duration = 0;\n\t\t\tfor(int i = 0 ; i < s.length() ; i++ ) {\n\t\t\t\t\n\t\t\t\tif ( s.charAt(i) == 'R') {\n\t\t\t\t\tif ( isRain) {\n\t\t\t\t\t\tduration++;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tduration = 1;\n\t\t\t\t\t}\n\t\t\t\t\tisRain = true;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tisRain = false;\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(duration);\n\t\t}\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\t\t\t\n\t\t\tString s = sc.next();\n\t\t\t\n\t\t\t\n\t\t\tboolean isRain = false;\n\t\t\tint duration = 0;\n\t\t\tfor(int i = 0 ; i < s.length() ; i++ ) {\n\t\t\t\t\n\t\t\t\tif ( s.charAt(i) == 'R') {\n\t\t\t\t\tif ( isRain) {\n\t\t\t\t\t\tduration++;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tduration = 1;\n\t\t\t\t\t}\n\t\t\t\t\tisRain = true;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tisRain = false;\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(duration);\n\t\t}\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ try(Scanner sc = new Scanner(System.in)) { String s = sc.next(); boolean isRain = false; int duration = 0; for(int i = 0 ; i < s.length() ; i++ ) { if ( s.charAt(i) == 'R') { if ( isRain) { duration++; } else { duration = 1; } isRain = true; } else { isRain = false; } } System.out.println(duration); } } }
[ 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, 28, 13, 13, 30, 30, 14, 2, 13, 17, 40, 13, 14, 2, 2, 13, 17, 2, 18, 13, 17, 17, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 58, 5 ], [ 58, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 20, 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 ], [ 8, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 36, 46 ], [ 46, 47 ], [ 46, 48 ], [ 8, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 6, 55 ], [ 55, 56 ], [ 0, 57 ], [ 57, 58 ], [ 57, 59 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n 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 for(char c: s) {\n if(c == 'R') cnt++;\n }\n if(cnt == 2 && s[1] == 'S') cnt = 1;\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 for(char c: s) {\n if(c == 'R') cnt++;\n }\n if(cnt == 2 && s[1] == 'S') cnt = 1;\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 for(char c: s) {\n if(c == 'R') cnt++;\n }\n if(cnt == 2 && s[1] == 'S') cnt = 1;\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 for(char c: s) {\n if(c == 'R') cnt++;\n }\n if(cnt == 2 && s[1] == 'S') cnt = 1;\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", "for(char c: s) {\n if(c == 'R') cnt++;\n }", "char c", "s", "{\n if(c == 'R') cnt++;\n }", "{\n if(c == 'R') cnt++;\n }", "if(c == 'R') cnt++;", "c == 'R'", "c", "'R'", "cnt++", "cnt", "if(cnt == 2 && s[1] == 'S') cnt = 1;", "cnt == 2 && s[1] == 'S'", "cnt == 2", "cnt", "2", "s[1] == 'S'", "s[1]", "s", "1", "'S'", "cnt = 1", "cnt", "1", "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 for(char c: s) {\n if(c == 'R') cnt++;\n }\n if(cnt == 2 && s[1] == 'S') cnt = 1;\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 for(char c: s) {\n if(c == 'R') cnt++;\n }\n if(cnt == 2 && s[1] == 'S') cnt = 1;\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; for(char c: s) { if(c == 'R') cnt++; } if(cnt == 2 && s[1] == 'S') cnt = 1; System.out.println(cnt); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 14, 2, 4, 18, 13, 17, 40, 17, 30, 0, 13, 17, 14, 2, 4, 18, 13, 17, 40, 17, 30, 0, 13, 17, 14, 2, 4, 18, 13, 17, 40, 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 ], [ 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 ], [ 8, 19 ], [ 19, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 25, 26 ], [ 19, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 19, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 32, 37 ], [ 37, 38 ], [ 31, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 31, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 44, 49 ], [ 49, 50 ], [ 43, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 43, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 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.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n String S = sc.next();\n int r;\n \n if (S.indexOf(\"RRR\") != -1) {\n r = 3;\n }else if (S.indexOf(\"RR\") != -1) {\n r = 2;\n }else if (S.indexOf('R') != -1) {\n r = 1;\n }else{\n r = 0;\n }\n \n System.out.println(r);\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 String S = sc.next();\n int r;\n \n if (S.indexOf(\"RRR\") != -1) {\n r = 3;\n }else if (S.indexOf(\"RR\") != -1) {\n r = 2;\n }else if (S.indexOf('R') != -1) {\n r = 1;\n }else{\n r = 0;\n }\n \n System.out.println(r);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n String S = sc.next();\n int r;\n \n if (S.indexOf(\"RRR\") != -1) {\n r = 3;\n }else if (S.indexOf(\"RR\") != -1) {\n r = 2;\n }else if (S.indexOf('R') != -1) {\n r = 1;\n }else{\n r = 0;\n }\n \n System.out.println(r);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n \n String S = sc.next();\n int r;\n \n if (S.indexOf(\"RRR\") != -1) {\n r = 3;\n }else if (S.indexOf(\"RR\") != -1) {\n r = 2;\n }else if (S.indexOf('R') != -1) {\n r = 1;\n }else{\n r = 0;\n }\n \n System.out.println(r);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String S = sc.next();", "S", "sc.next()", "sc.next", "sc", "int r;", "r", "if (S.indexOf(\"RRR\") != -1) {\n r = 3;\n }else if (S.indexOf(\"RR\") != -1) {\n r = 2;\n }else if (S.indexOf('R') != -1) {\n r = 1;\n }else{\n r = 0;\n }", "S.indexOf(\"RRR\") != -1", "S.indexOf(\"RRR\")", "S.indexOf", "S", "\"RRR\"", "-1", "1", "{\n r = 3;\n }", "r = 3", "r", "3", "if (S.indexOf(\"RR\") != -1) {\n r = 2;\n }else if (S.indexOf('R') != -1) {\n r = 1;\n }else{\n r = 0;\n }", "S.indexOf(\"RR\") != -1", "S.indexOf(\"RR\")", "S.indexOf", "S", "\"RR\"", "-1", "1", "{\n r = 2;\n }", "r = 2", "r", "2", "if (S.indexOf('R') != -1) {\n r = 1;\n }else{\n r = 0;\n }", "S.indexOf('R') != -1", "S.indexOf('R')", "S.indexOf", "S", "'R'", "-1", "1", "{\n r = 1;\n }", "r = 1", "r", "1", "{\n r = 0;\n }", "r = 0", "r", "0", "System.out.println(r)", "System.out.println", "System.out", "System", "System.out", "r", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n String S = sc.next();\n int r;\n \n if (S.indexOf(\"RRR\") != -1) {\n r = 3;\n }else if (S.indexOf(\"RR\") != -1) {\n r = 2;\n }else if (S.indexOf('R') != -1) {\n r = 1;\n }else{\n r = 0;\n }\n \n System.out.println(r);\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n String S = sc.next();\n int r;\n \n if (S.indexOf(\"RRR\") != -1) {\n r = 3;\n }else if (S.indexOf(\"RR\") != -1) {\n r = 2;\n }else if (S.indexOf('R') != -1) {\n r = 1;\n }else{\n r = 0;\n }\n \n System.out.println(r);\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 r; if (S.indexOf("RRR") != -1) { r = 3; }else if (S.indexOf("RR") != -1) { r = 2; }else if (S.indexOf('R') != -1) { r = 1; }else{ r = 0; } System.out.println(r); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 42, 4, 18, 13, 30, 41, 13, 17, 0, 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, 0, 13, 17, 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 ], [ 11, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 18, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 22, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 22, 31 ], [ 31, 32 ], [ 34, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 34, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 33, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 34, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 31, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 31, 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 ], [ 66, 68 ], [ 55, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 69, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 69, 78 ], [ 78, 79 ], [ 78, 80 ], [ 22, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 9, 87 ], [ 87, 88 ] ]
[ "import java.util.*;\nimport java.lang.*;\n\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = \"\";\n while(sc.hasNext()) {\n int count = 0;\n s = sc.nextLine();\n if (s.equalsIgnoreCase(\"ssr\") || s.equalsIgnoreCase(\"srs\") || s.equalsIgnoreCase(\"rss\") || s.equalsIgnoreCase(\"rsr\")) {\n count = 1;\n }\n else if (s.equalsIgnoreCase(\"rrs\") || s.equalsIgnoreCase(\"srr\")) {\n count = 2;\n }\n else if(s.equalsIgnoreCase(\"rrr\")) {\n count = 3;\n }\n else\n count = 0;\n System.out.println(count); \n }\n \n }\n}", "import java.util.*;", "util.*", "java", "import java.lang.*;", "lang.*", "java", "class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = \"\";\n while(sc.hasNext()) {\n int count = 0;\n s = sc.nextLine();\n if (s.equalsIgnoreCase(\"ssr\") || s.equalsIgnoreCase(\"srs\") || s.equalsIgnoreCase(\"rss\") || s.equalsIgnoreCase(\"rsr\")) {\n count = 1;\n }\n else if (s.equalsIgnoreCase(\"rrs\") || s.equalsIgnoreCase(\"srr\")) {\n count = 2;\n }\n else if(s.equalsIgnoreCase(\"rrr\")) {\n count = 3;\n }\n else\n count = 0;\n System.out.println(count); \n }\n \n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = \"\";\n while(sc.hasNext()) {\n int count = 0;\n s = sc.nextLine();\n if (s.equalsIgnoreCase(\"ssr\") || s.equalsIgnoreCase(\"srs\") || s.equalsIgnoreCase(\"rss\") || s.equalsIgnoreCase(\"rsr\")) {\n count = 1;\n }\n else if (s.equalsIgnoreCase(\"rrs\") || s.equalsIgnoreCase(\"srr\")) {\n count = 2;\n }\n else if(s.equalsIgnoreCase(\"rrr\")) {\n count = 3;\n }\n else\n count = 0;\n System.out.println(count); \n }\n \n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String s = \"\";\n while(sc.hasNext()) {\n int count = 0;\n s = sc.nextLine();\n if (s.equalsIgnoreCase(\"ssr\") || s.equalsIgnoreCase(\"srs\") || s.equalsIgnoreCase(\"rss\") || s.equalsIgnoreCase(\"rsr\")) {\n count = 1;\n }\n else if (s.equalsIgnoreCase(\"rrs\") || s.equalsIgnoreCase(\"srr\")) {\n count = 2;\n }\n else if(s.equalsIgnoreCase(\"rrr\")) {\n count = 3;\n }\n else\n count = 0;\n System.out.println(count); \n }\n \n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = \"\";", "s", "\"\"", "while(sc.hasNext()) {\n int count = 0;\n s = sc.nextLine();\n if (s.equalsIgnoreCase(\"ssr\") || s.equalsIgnoreCase(\"srs\") || s.equalsIgnoreCase(\"rss\") || s.equalsIgnoreCase(\"rsr\")) {\n count = 1;\n }\n else if (s.equalsIgnoreCase(\"rrs\") || s.equalsIgnoreCase(\"srr\")) {\n count = 2;\n }\n else if(s.equalsIgnoreCase(\"rrr\")) {\n count = 3;\n }\n else\n count = 0;\n System.out.println(count); \n }", "sc.hasNext()", "sc.hasNext", "sc", "{\n int count = 0;\n s = sc.nextLine();\n if (s.equalsIgnoreCase(\"ssr\") || s.equalsIgnoreCase(\"srs\") || s.equalsIgnoreCase(\"rss\") || s.equalsIgnoreCase(\"rsr\")) {\n count = 1;\n }\n else if (s.equalsIgnoreCase(\"rrs\") || s.equalsIgnoreCase(\"srr\")) {\n count = 2;\n }\n else if(s.equalsIgnoreCase(\"rrr\")) {\n count = 3;\n }\n else\n count = 0;\n System.out.println(count); \n }", "int count = 0;", "count", "0", "s = sc.nextLine()", "s", "sc.nextLine()", "sc.nextLine", "sc", "if (s.equalsIgnoreCase(\"ssr\") || s.equalsIgnoreCase(\"srs\") || s.equalsIgnoreCase(\"rss\") || s.equalsIgnoreCase(\"rsr\")) {\n count = 1;\n }\n else if (s.equalsIgnoreCase(\"rrs\") || s.equalsIgnoreCase(\"srr\")) {\n count = 2;\n }\n else if(s.equalsIgnoreCase(\"rrr\")) {\n count = 3;\n }\n else\n count = 0;", "s.equalsIgnoreCase(\"ssr\") || s.equalsIgnoreCase(\"srs\") || s.equalsIgnoreCase(\"rss\") || s.equalsIgnoreCase(\"rsr\")", "s.equalsIgnoreCase(\"rss\")", "s.equalsIgnoreCase(\"ssr\") || s.equalsIgnoreCase(\"srs\") || s.equalsIgnoreCase(\"rss\") || s.equalsIgnoreCase(\"rsr\")", "s.equalsIgnoreCase(\"ssr\")", "s.equalsIgnoreCase", "s", "\"ssr\"", "s.equalsIgnoreCase(\"srs\")", "s.equalsIgnoreCase", "s", "\"srs\"", "s.equalsIgnoreCase(\"rss\")", "s.equalsIgnoreCase", "s", "\"rss\"", "s.equalsIgnoreCase(\"rsr\")", "s.equalsIgnoreCase", "s", "\"rsr\"", "{\n count = 1;\n }", "count = 1", "count", "1", "if (s.equalsIgnoreCase(\"rrs\") || s.equalsIgnoreCase(\"srr\")) {\n count = 2;\n }\n else if(s.equalsIgnoreCase(\"rrr\")) {\n count = 3;\n }\n else\n count = 0;", "s.equalsIgnoreCase(\"rrs\") || s.equalsIgnoreCase(\"srr\")", "s.equalsIgnoreCase(\"rrs\")", "s.equalsIgnoreCase", "s", "\"rrs\"", "s.equalsIgnoreCase(\"srr\")", "s.equalsIgnoreCase", "s", "\"srr\"", "{\n count = 2;\n }", "count = 2", "count", "2", "if(s.equalsIgnoreCase(\"rrr\")) {\n count = 3;\n }\n else\n count = 0;", "s.equalsIgnoreCase(\"rrr\")", "s.equalsIgnoreCase", "s", "\"rrr\"", "{\n count = 3;\n }", "count = 3", "count", "3", "count = 0", "count", "0", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args" ]
import java.util.*; import java.lang.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = ""; while(sc.hasNext()) { int count = 0; s = sc.nextLine(); if (s.equalsIgnoreCase("ssr") || s.equalsIgnoreCase("srs") || s.equalsIgnoreCase("rss") || s.equalsIgnoreCase("rsr")) { count = 1; } else if (s.equalsIgnoreCase("rrs") || s.equalsIgnoreCase("srr")) { count = 2; } else if(s.equalsIgnoreCase("rrr")) { count = 3; } else count = 0; System.out.println(count); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 17, 30, 40, 13, 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 ], [ 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 ], [ 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 ], [ 8, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 46, 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.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String S = scanner.next();\n int count = 0;\n\n scanner.close();\n\n for (int i = 0; i < 3; i++){\n if (S.charAt(i) == 'R'){\n count++;\n }\n }\n if (S.equals(\"RSR\")){\n count = 1;\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 Scanner scanner = new Scanner(System.in);\n String S = scanner.next();\n int count = 0;\n\n scanner.close();\n\n for (int i = 0; i < 3; i++){\n if (S.charAt(i) == 'R'){\n count++;\n }\n }\n if (S.equals(\"RSR\")){\n count = 1;\n }\n \n System.out.println(count);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String S = scanner.next();\n int count = 0;\n\n scanner.close();\n\n for (int i = 0; i < 3; i++){\n if (S.charAt(i) == 'R'){\n count++;\n }\n }\n if (S.equals(\"RSR\")){\n count = 1;\n }\n \n System.out.println(count);\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n String S = scanner.next();\n int count = 0;\n\n scanner.close();\n\n for (int i = 0; i < 3; i++){\n if (S.charAt(i) == 'R'){\n count++;\n }\n }\n if (S.equals(\"RSR\")){\n count = 1;\n }\n \n System.out.println(count);\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "String S = scanner.next();", "S", "scanner.next()", "scanner.next", "scanner", "int count = 0;", "count", "0", "scanner.close()", "scanner.close", "scanner", "for (int i = 0; i < 3; i++){\n if (S.charAt(i) == 'R'){\n count++;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < 3", "i", "3", "i++", "i++", "i", "{\n if (S.charAt(i) == 'R'){\n count++;\n }\n }", "{\n if (S.charAt(i) == 'R'){\n count++;\n }\n }", "if (S.charAt(i) == 'R'){\n count++;\n }", "S.charAt(i) == 'R'", "S.charAt(i)", "S.charAt", "S", "i", "'R'", "{\n count++;\n }", "count++", "count", "if (S.equals(\"RSR\")){\n count = 1;\n }", "S.equals(\"RSR\")", "S.equals", "S", "\"RSR\"", "{\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 String S = scanner.next();\n int count = 0;\n\n scanner.close();\n\n for (int i = 0; i < 3; i++){\n if (S.charAt(i) == 'R'){\n count++;\n }\n }\n if (S.equals(\"RSR\")){\n count = 1;\n }\n \n System.out.println(count);\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String S = scanner.next();\n int count = 0;\n\n scanner.close();\n\n for (int i = 0; i < 3; i++){\n if (S.charAt(i) == 'R'){\n count++;\n }\n }\n if (S.equals(\"RSR\")){\n count = 1;\n }\n \n System.out.println(count);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String S = scanner.next(); int count = 0; scanner.close(); for (int i = 0; i < 3; i++){ if (S.charAt(i) == 'R'){ count++; } } if (S.equals("RSR")){ count = 1; } System.out.println(count); } }
[ 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, 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, 14, 2, 13, 13, 30, 0, 13, 13, 0, 13, 17, 14, 2, 13, 13, 30, 0, 13, 13, 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, 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 ], [ 133, 17 ], [ 133, 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 ], [ 29, 31 ], [ 20, 32 ], [ 32, 33 ], [ 32, 34 ], [ 20, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 40, 41 ], [ 40, 42 ], [ 35, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 47, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 49, 54 ], [ 48, 55 ], [ 55, 56 ], [ 56, 57 ], [ 48, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 58, 67 ], [ 67, 68 ], [ 67, 69 ], [ 20, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 20, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 78, 83 ], [ 18, 84 ], [ 84, 85 ], [ 133, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 91, 92 ], [ 91, 93 ], [ 86, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 100, 101 ], [ 100, 102 ], [ 94, 103 ], [ 103, 104 ], [ 86, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 109, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 108, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 121, 122 ], [ 122, 123 ], [ 118, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 107, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 0, 132 ], [ 132, 133 ], [ 132, 134 ] ]
[ "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\n\tpublic static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner(System.in);\n\n\t\tString str = sc.next();\n\n\t\tint rain = 0;\n\t\tint count = 0;\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tif (str.charAt(i)=='R') {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (count > rain) {\n\t\t\t\t\train = count;\n\t\t\t\t}\n\t\t\t\tcount=0;\n\t\t\t}\n\t\t}\n\t\tif (count > rain) {\n\t\t\train = count;\n\t\t}\n\t\tSystem.out.println(rain);\n\t}\n\n\tprivate static class FastScanner {\n\t\tprivate BufferedReader reader = null;\n\t\tprivate StringTokenizer tokenizer = null;\n\n\t\tpublic FastScanner(InputStream in) {\n\t\t\treader = new BufferedReader(new InputStreamReader(in));\n\t\t\ttokenizer = null;\n\t\t}\n\n\t\tpublic String next() {\n\t\t\tif (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn tokenizer.nextToken();\n\t\t}\n\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\n\tpublic static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner(System.in);\n\n\t\tString str = sc.next();\n\n\t\tint rain = 0;\n\t\tint count = 0;\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tif (str.charAt(i)=='R') {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (count > rain) {\n\t\t\t\t\train = count;\n\t\t\t\t}\n\t\t\t\tcount=0;\n\t\t\t}\n\t\t}\n\t\tif (count > rain) {\n\t\t\train = count;\n\t\t}\n\t\tSystem.out.println(rain);\n\t}\n\n\tprivate static class FastScanner {\n\t\tprivate BufferedReader reader = null;\n\t\tprivate StringTokenizer tokenizer = null;\n\n\t\tpublic FastScanner(InputStream in) {\n\t\t\treader = new BufferedReader(new InputStreamReader(in));\n\t\t\ttokenizer = null;\n\t\t}\n\n\t\tpublic String next() {\n\t\t\tif (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn tokenizer.nextToken();\n\t\t}\n\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner(System.in);\n\n\t\tString str = sc.next();\n\n\t\tint rain = 0;\n\t\tint count = 0;\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tif (str.charAt(i)=='R') {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (count > rain) {\n\t\t\t\t\train = count;\n\t\t\t\t}\n\t\t\t\tcount=0;\n\t\t\t}\n\t\t}\n\t\tif (count > rain) {\n\t\t\train = count;\n\t\t}\n\t\tSystem.out.println(rain);\n\t}", "main", "{\n\t\tFastScanner sc = new FastScanner(System.in);\n\n\t\tString str = sc.next();\n\n\t\tint rain = 0;\n\t\tint count = 0;\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tif (str.charAt(i)=='R') {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (count > rain) {\n\t\t\t\t\train = count;\n\t\t\t\t}\n\t\t\t\tcount=0;\n\t\t\t}\n\t\t}\n\t\tif (count > rain) {\n\t\t\train = count;\n\t\t}\n\t\tSystem.out.println(rain);\n\t}", "FastScanner sc = new FastScanner(System.in);", "sc", "new FastScanner(System.in)", "String str = sc.next();", "str", "sc.next()", "sc.next", "sc", "int rain = 0;", "rain", "0", "int count = 0;", "count", "0", "for (int i = 0; i < 3; i++) {\n\t\t\tif (str.charAt(i)=='R') {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (count > rain) {\n\t\t\t\t\train = count;\n\t\t\t\t}\n\t\t\t\tcount=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\tcount++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (count > rain) {\n\t\t\t\t\train = count;\n\t\t\t\t}\n\t\t\t\tcount=0;\n\t\t\t}\n\t\t}", "{\n\t\t\tif (str.charAt(i)=='R') {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (count > rain) {\n\t\t\t\t\train = count;\n\t\t\t\t}\n\t\t\t\tcount=0;\n\t\t\t}\n\t\t}", "if (str.charAt(i)=='R') {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (count > rain) {\n\t\t\t\t\train = count;\n\t\t\t\t}\n\t\t\t\tcount=0;\n\t\t\t}", "str.charAt(i)=='R'", "str.charAt(i)", "str.charAt", "str", "i", "'R'", "{\n\t\t\t\tcount++;\n\t\t\t}", "count++", "count", "{\n\t\t\t\tif (count > rain) {\n\t\t\t\t\train = count;\n\t\t\t\t}\n\t\t\t\tcount=0;\n\t\t\t}", "if (count > rain) {\n\t\t\t\t\train = count;\n\t\t\t\t}", "count > rain", "count", "rain", "{\n\t\t\t\t\train = count;\n\t\t\t\t}", "rain = count", "rain", "count", "count=0", "count", "0", "if (count > rain) {\n\t\t\train = count;\n\t\t}", "count > rain", "count", "rain", "{\n\t\t\train = count;\n\t\t}", "rain = count", "rain", "count", "System.out.println(rain)", "System.out.println", "System.out", "System", "System.out", "rain", "String[] args", "args", "private static class FastScanner {\n\t\tprivate BufferedReader reader = null;\n\t\tprivate StringTokenizer tokenizer = null;\n\n\t\tpublic FastScanner(InputStream in) {\n\t\t\treader = new BufferedReader(new InputStreamReader(in));\n\t\t\ttokenizer = null;\n\t\t}\n\n\t\tpublic String next() {\n\t\t\tif (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn tokenizer.nextToken();\n\t\t}\n\n\t}", "FastScanner", "private BufferedReader reader = null;", "reader", "null", "private StringTokenizer tokenizer = null;", "tokenizer", "null", "public FastScanner(InputStream in) {\n\t\t\treader = new BufferedReader(new InputStreamReader(in));\n\t\t\ttokenizer = null;\n\t\t}", "FastScanner", "{\n\t\t\treader = new BufferedReader(new InputStreamReader(in));\n\t\t\ttokenizer = null;\n\t\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\t\tif (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn tokenizer.nextToken();\n\t\t}", "next", "{\n\t\t\tif (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn tokenizer.nextToken();\n\t\t}", "if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}", "tokenizer == null || !tokenizer.hasMoreTokens()", "tokenizer == null", "tokenizer", "null", "!tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens", "tokenizer", "{\n\t\t\t\ttry {\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}", "try {\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}", "catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}", "IOException e", "{\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}", "throw new RuntimeException(e);", "new RuntimeException(e)", "{\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t}", "tokenizer = new StringTokenizer(reader.readLine())", "tokenizer", "new StringTokenizer(reader.readLine())", "return tokenizer.nextToken();", "tokenizer.nextToken()", "tokenizer.nextToken", "tokenizer", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner(System.in);\n\n\t\tString str = sc.next();\n\n\t\tint rain = 0;\n\t\tint count = 0;\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tif (str.charAt(i)=='R') {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (count > rain) {\n\t\t\t\t\train = count;\n\t\t\t\t}\n\t\t\t\tcount=0;\n\t\t\t}\n\t\t}\n\t\tif (count > rain) {\n\t\t\train = count;\n\t\t}\n\t\tSystem.out.println(rain);\n\t}\n\n\tprivate static class FastScanner {\n\t\tprivate BufferedReader reader = null;\n\t\tprivate StringTokenizer tokenizer = null;\n\n\t\tpublic FastScanner(InputStream in) {\n\t\t\treader = new BufferedReader(new InputStreamReader(in));\n\t\t\ttokenizer = null;\n\t\t}\n\n\t\tpublic String next() {\n\t\t\tif (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn tokenizer.nextToken();\n\t\t}\n\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner(System.in);\n\n\t\tString str = sc.next();\n\n\t\tint rain = 0;\n\t\tint count = 0;\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tif (str.charAt(i)=='R') {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (count > rain) {\n\t\t\t\t\train = count;\n\t\t\t\t}\n\t\t\t\tcount=0;\n\t\t\t}\n\t\t}\n\t\tif (count > rain) {\n\t\t\train = count;\n\t\t}\n\t\tSystem.out.println(rain);\n\t}\n\n\tprivate static class FastScanner {\n\t\tprivate BufferedReader reader = null;\n\t\tprivate StringTokenizer tokenizer = null;\n\n\t\tpublic FastScanner(InputStream in) {\n\t\t\treader = new BufferedReader(new InputStreamReader(in));\n\t\t\ttokenizer = null;\n\t\t}\n\n\t\tpublic String next() {\n\t\t\tif (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn tokenizer.nextToken();\n\t\t}\n\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); String str = sc.next(); int rain = 0; int count = 0; for (int i = 0; i < 3; i++) { if (str.charAt(i)=='R') { count++; } else { if (count > rain) { rain = count; } count=0; } } if (count > rain) { rain = count; } System.out.println(rain); } private static class FastScanner { private BufferedReader reader = null; private StringTokenizer tokenizer = null; public FastScanner(InputStream in) { reader = new BufferedReader(new InputStreamReader(in)); tokenizer = null; } public String next() { if (tokenizer == null || !tokenizer.hasMoreTokens()) { try { tokenizer = new StringTokenizer(reader.readLine()); } catch (IOException e) { throw new RuntimeException(e); } } return tokenizer.nextToken(); } } }
[ 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, 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, 40, 13, 30, 14, 2, 13, 13, 30, 0, 13, 13, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 86, 8 ], [ 86, 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 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 43, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 55, 56 ], [ 50, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 66, 67 ], [ 66, 68 ], [ 11, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 11, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 77, 82 ], [ 9, 83 ], [ 83, 84 ], [ 0, 85 ], [ 85, 86 ], [ 85, 87 ] ]
[ "import java.io.IOException;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString str = sc.next();\n\t\tsc.close();\n\n\t\tint max = 0;\n\t\tint temp = 0;\n\t\tfor(int i=0; i < str.length(); i++) {\n\t\t\tchar c = str.charAt(i);\n\t\t\tif(c == 'R'){\n\t\t\t\ttemp++;\n\t\t\t} else {\n\t\t\t\tif(max < temp){\n\t\t\t\t\tmax = temp;\n\t\t\t\t\ttemp = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(max < temp){\n\t\t\tmax = temp;\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n\n}", "import java.io.IOException;", "IOException", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString str = sc.next();\n\t\tsc.close();\n\n\t\tint max = 0;\n\t\tint temp = 0;\n\t\tfor(int i=0; i < str.length(); i++) {\n\t\t\tchar c = str.charAt(i);\n\t\t\tif(c == 'R'){\n\t\t\t\ttemp++;\n\t\t\t} else {\n\t\t\t\tif(max < temp){\n\t\t\t\t\tmax = temp;\n\t\t\t\t\ttemp = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(max < temp){\n\t\t\tmax = temp;\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString str = sc.next();\n\t\tsc.close();\n\n\t\tint max = 0;\n\t\tint temp = 0;\n\t\tfor(int i=0; i < str.length(); i++) {\n\t\t\tchar c = str.charAt(i);\n\t\t\tif(c == 'R'){\n\t\t\t\ttemp++;\n\t\t\t} else {\n\t\t\t\tif(max < temp){\n\t\t\t\t\tmax = temp;\n\t\t\t\t\ttemp = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(max < temp){\n\t\t\tmax = temp;\n\t\t}\n\t\tSystem.out.println(max);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString str = sc.next();\n\t\tsc.close();\n\n\t\tint max = 0;\n\t\tint temp = 0;\n\t\tfor(int i=0; i < str.length(); i++) {\n\t\t\tchar c = str.charAt(i);\n\t\t\tif(c == 'R'){\n\t\t\t\ttemp++;\n\t\t\t} else {\n\t\t\t\tif(max < temp){\n\t\t\t\t\tmax = temp;\n\t\t\t\t\ttemp = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(max < temp){\n\t\t\tmax = temp;\n\t\t}\n\t\tSystem.out.println(max);\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", "int max = 0;", "max", "0", "int temp = 0;", "temp", "0", "for(int i=0; i < str.length(); i++) {\n\t\t\tchar c = str.charAt(i);\n\t\t\tif(c == 'R'){\n\t\t\t\ttemp++;\n\t\t\t} else {\n\t\t\t\tif(max < temp){\n\t\t\t\t\tmax = temp;\n\t\t\t\t\ttemp = 0;\n\t\t\t\t}\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 c = str.charAt(i);\n\t\t\tif(c == 'R'){\n\t\t\t\ttemp++;\n\t\t\t} else {\n\t\t\t\tif(max < temp){\n\t\t\t\t\tmax = temp;\n\t\t\t\t\ttemp = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "{\n\t\t\tchar c = str.charAt(i);\n\t\t\tif(c == 'R'){\n\t\t\t\ttemp++;\n\t\t\t} else {\n\t\t\t\tif(max < temp){\n\t\t\t\t\tmax = temp;\n\t\t\t\t\ttemp = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "char c = str.charAt(i);", "c", "str.charAt(i)", "str.charAt", "str", "i", "if(c == 'R'){\n\t\t\t\ttemp++;\n\t\t\t} else {\n\t\t\t\tif(max < temp){\n\t\t\t\t\tmax = temp;\n\t\t\t\t\ttemp = 0;\n\t\t\t\t}\n\t\t\t}", "c == 'R'", "c", "'R'", "{\n\t\t\t\ttemp++;\n\t\t\t}", "temp++", "temp", "{\n\t\t\t\tif(max < temp){\n\t\t\t\t\tmax = temp;\n\t\t\t\t\ttemp = 0;\n\t\t\t\t}\n\t\t\t}", "if(max < temp){\n\t\t\t\t\tmax = temp;\n\t\t\t\t\ttemp = 0;\n\t\t\t\t}", "max < temp", "max", "temp", "{\n\t\t\t\t\tmax = temp;\n\t\t\t\t\ttemp = 0;\n\t\t\t\t}", "max = temp", "max", "temp", "temp = 0", "temp", "0", "if(max < temp){\n\t\t\tmax = temp;\n\t\t}", "max < temp", "max", "temp", "{\n\t\t\tmax = temp;\n\t\t}", "max = temp", "max", "temp", "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) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString str = sc.next();\n\t\tsc.close();\n\n\t\tint max = 0;\n\t\tint temp = 0;\n\t\tfor(int i=0; i < str.length(); i++) {\n\t\t\tchar c = str.charAt(i);\n\t\t\tif(c == 'R'){\n\t\t\t\ttemp++;\n\t\t\t} else {\n\t\t\t\tif(max < temp){\n\t\t\t\t\tmax = temp;\n\t\t\t\t\ttemp = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(max < temp){\n\t\t\tmax = temp;\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString str = sc.next();\n\t\tsc.close();\n\n\t\tint max = 0;\n\t\tint temp = 0;\n\t\tfor(int i=0; i < str.length(); i++) {\n\t\t\tchar c = str.charAt(i);\n\t\t\tif(c == 'R'){\n\t\t\t\ttemp++;\n\t\t\t} else {\n\t\t\t\tif(max < temp){\n\t\t\t\t\tmax = temp;\n\t\t\t\t\ttemp = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(max < temp){\n\t\t\tmax = temp;\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n\n}", "Main" ]
import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { Scanner sc = new Scanner(System.in); String str = sc.next(); sc.close(); int max = 0; int temp = 0; for(int i=0; i < str.length(); i++) { char c = str.charAt(i); if(c == 'R'){ temp++; } else { if(max < temp){ max = temp; temp = 0; } } } if(max < temp){ max = temp; } System.out.println(max); } }
[ 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, 4, 18, 13, 13, 13, 0, 13, 17, 4, 18, 18, 13, 13, 4, 18, 13, 13, 13, 4, 18, 13, 29, 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 ], [ 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 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 51, 55 ], [ 48, 56 ], [ 56, 57 ], [ 56, 58 ], [ 8, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 64, 68 ], [ 8, 69 ], [ 69, 70 ], [ 70, 71 ], [ 8, 72 ], [ 6, 73 ], [ 73, 74 ], [ 0, 75 ], [ 75, 76 ], [ 75, 77 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String s = scanner.nextLine();\n int ans = 0;\n int max = 0;\n\n for(int i=0; i<s.length(); i++){\n if(s.charAt(i) == 'R'){\n ans ++;\n }else{\n max = Math.max(ans,max);\n ans = 0;\n }\n }\n \n System.out.println(Math.max(ans,max));\n \n scanner.close();\n return;\n }\n \n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String s = scanner.nextLine();\n int ans = 0;\n int max = 0;\n\n for(int i=0; i<s.length(); i++){\n if(s.charAt(i) == 'R'){\n ans ++;\n }else{\n max = Math.max(ans,max);\n ans = 0;\n }\n }\n \n System.out.println(Math.max(ans,max));\n \n scanner.close();\n return;\n }\n \n}", "Main", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String s = scanner.nextLine();\n int ans = 0;\n int max = 0;\n\n for(int i=0; i<s.length(); i++){\n if(s.charAt(i) == 'R'){\n ans ++;\n }else{\n max = Math.max(ans,max);\n ans = 0;\n }\n }\n \n System.out.println(Math.max(ans,max));\n \n scanner.close();\n return;\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n String s = scanner.nextLine();\n int ans = 0;\n int max = 0;\n\n for(int i=0; i<s.length(); i++){\n if(s.charAt(i) == 'R'){\n ans ++;\n }else{\n max = Math.max(ans,max);\n ans = 0;\n }\n }\n \n System.out.println(Math.max(ans,max));\n \n scanner.close();\n return;\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "String s = scanner.nextLine();", "s", "scanner.nextLine()", "scanner.nextLine", "scanner", "int ans = 0;", "ans", "0", "int max = 0;", "max", "0", "for(int i=0; i<s.length(); i++){\n if(s.charAt(i) == 'R'){\n ans ++;\n }else{\n max = Math.max(ans,max);\n ans = 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 ans ++;\n }else{\n max = Math.max(ans,max);\n ans = 0;\n }\n }", "{\n if(s.charAt(i) == 'R'){\n ans ++;\n }else{\n max = Math.max(ans,max);\n ans = 0;\n }\n }", "if(s.charAt(i) == 'R'){\n ans ++;\n }else{\n max = Math.max(ans,max);\n ans = 0;\n }", "s.charAt(i) == 'R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "{\n ans ++;\n }", "ans ++", "ans", "{\n max = Math.max(ans,max);\n ans = 0;\n }", "max = Math.max(ans,max)", "max", "Math.max(ans,max)", "Math.max", "Math", "ans", "max", "ans = 0", "ans", "0", "System.out.println(Math.max(ans,max))", "System.out.println", "System.out", "System", "System.out", "Math.max(ans,max)", "Math.max", "Math", "ans", "max", "scanner.close()", "scanner.close", "scanner", "return;", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String s = scanner.nextLine();\n int ans = 0;\n int max = 0;\n\n for(int i=0; i<s.length(); i++){\n if(s.charAt(i) == 'R'){\n ans ++;\n }else{\n max = Math.max(ans,max);\n ans = 0;\n }\n }\n \n System.out.println(Math.max(ans,max));\n \n scanner.close();\n return;\n }\n \n}", "public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String s = scanner.nextLine();\n int ans = 0;\n int max = 0;\n\n for(int i=0; i<s.length(); i++){\n if(s.charAt(i) == 'R'){\n ans ++;\n }else{\n max = Math.max(ans,max);\n ans = 0;\n }\n }\n \n System.out.println(Math.max(ans,max));\n \n scanner.close();\n return;\n }\n \n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String s = scanner.nextLine(); int ans = 0; int max = 0; for(int i=0; i<s.length(); i++){ if(s.charAt(i) == 'R'){ ans ++; }else{ max = Math.max(ans,max); ans = 0; } } System.out.println(Math.max(ans,max)); scanner.close(); return; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 14, 2, 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, 13, 4, 18, 13, 2, 13, 17, 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, 40, 13, 4, 18, 13, 13, 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 ], [ 118, 5 ], [ 118, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 24, 29 ], [ 23, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 35, 39 ], [ 8, 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 ], [ 59, 60 ], [ 58, 61 ], [ 57, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 65, 66 ], [ 65, 67 ], [ 56, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 68, 73 ], [ 55, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 79, 83 ], [ 55, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 85, 90 ], [ 84, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 95, 96 ], [ 91, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 97, 101 ], [ 8, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 104, 108 ], [ 8, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 109, 114 ], [ 6, 115 ], [ 115, 116 ], [ 0, 117 ], [ 117, 118 ], [ 117, 119 ] ]
[ "import java.util.*;\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 int max=0;\n if(s.charAt(0)=='R'){\n ans++;\n max=Math.max(max,ans);\n }\n for(int i=1;i<s.length();i++){\n if(s.charAt(i)==s.charAt(i-1) && s.charAt(i)=='R'){\n ans++;\n max=Math.max(max,ans);\n }\n else if(s.charAt(i)=='R'){\n ans=0;\n ans++;\n Math.max(max,ans);\n }\n }\n max =Math.max(max,ans);\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 sc = new Scanner(System.in);\n String s = sc.next();\n int ans=0;\n int max=0;\n if(s.charAt(0)=='R'){\n ans++;\n max=Math.max(max,ans);\n }\n for(int i=1;i<s.length();i++){\n if(s.charAt(i)==s.charAt(i-1) && s.charAt(i)=='R'){\n ans++;\n max=Math.max(max,ans);\n }\n else if(s.charAt(i)=='R'){\n ans=0;\n ans++;\n Math.max(max,ans);\n }\n }\n max =Math.max(max,ans);\n System.out.println(max);\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 int max=0;\n if(s.charAt(0)=='R'){\n ans++;\n max=Math.max(max,ans);\n }\n for(int i=1;i<s.length();i++){\n if(s.charAt(i)==s.charAt(i-1) && s.charAt(i)=='R'){\n ans++;\n max=Math.max(max,ans);\n }\n else if(s.charAt(i)=='R'){\n ans=0;\n ans++;\n Math.max(max,ans);\n }\n }\n max =Math.max(max,ans);\n System.out.println(max);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n int ans=0;\n int max=0;\n if(s.charAt(0)=='R'){\n ans++;\n max=Math.max(max,ans);\n }\n for(int i=1;i<s.length();i++){\n if(s.charAt(i)==s.charAt(i-1) && s.charAt(i)=='R'){\n ans++;\n max=Math.max(max,ans);\n }\n else if(s.charAt(i)=='R'){\n ans=0;\n ans++;\n Math.max(max,ans);\n }\n }\n max =Math.max(max,ans);\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 ans=0;", "ans", "0", "int max=0;", "max", "0", "if(s.charAt(0)=='R'){\n ans++;\n max=Math.max(max,ans);\n }", "s.charAt(0)=='R'", "s.charAt(0)", "s.charAt", "s", "0", "'R'", "{\n ans++;\n max=Math.max(max,ans);\n }", "ans++", "ans", "max=Math.max(max,ans)", "max", "Math.max(max,ans)", "Math.max", "Math", "max", "ans", "for(int i=1;i<s.length();i++){\n if(s.charAt(i)==s.charAt(i-1) && s.charAt(i)=='R'){\n ans++;\n max=Math.max(max,ans);\n }\n else if(s.charAt(i)=='R'){\n ans=0;\n ans++;\n Math.max(max,ans);\n }\n }", "int i=1;", "int i=1;", "i", "1", "i<s.length()", "i", "s.length()", "s.length", "s", "i++", "i++", "i", "{\n if(s.charAt(i)==s.charAt(i-1) && s.charAt(i)=='R'){\n ans++;\n max=Math.max(max,ans);\n }\n else if(s.charAt(i)=='R'){\n ans=0;\n ans++;\n Math.max(max,ans);\n }\n }", "{\n if(s.charAt(i)==s.charAt(i-1) && s.charAt(i)=='R'){\n ans++;\n max=Math.max(max,ans);\n }\n else if(s.charAt(i)=='R'){\n ans=0;\n ans++;\n Math.max(max,ans);\n }\n }", "if(s.charAt(i)==s.charAt(i-1) && s.charAt(i)=='R'){\n ans++;\n max=Math.max(max,ans);\n }\n else if(s.charAt(i)=='R'){\n ans=0;\n ans++;\n Math.max(max,ans);\n }", "s.charAt(i)==s.charAt(i-1) && s.charAt(i)=='R'", "s.charAt(i)==s.charAt(i-1)", "s.charAt(i)", "s.charAt", "s", "i", "s.charAt(i-1)", "s.charAt", "s", "i-1", "i", "1", "s.charAt(i)=='R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "{\n ans++;\n max=Math.max(max,ans);\n }", "ans++", "ans", "max=Math.max(max,ans)", "max", "Math.max(max,ans)", "Math.max", "Math", "max", "ans", "if(s.charAt(i)=='R'){\n ans=0;\n ans++;\n Math.max(max,ans);\n }", "s.charAt(i)=='R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "{\n ans=0;\n ans++;\n Math.max(max,ans);\n }", "ans=0", "ans", "0", "ans++", "ans", "Math.max(max,ans)", "Math.max", "Math", "max", "ans", "max =Math.max(max,ans)", "max", "Math.max(max,ans)", "Math.max", "Math", "max", "ans", "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 String s = sc.next();\n int ans=0;\n int max=0;\n if(s.charAt(0)=='R'){\n ans++;\n max=Math.max(max,ans);\n }\n for(int i=1;i<s.length();i++){\n if(s.charAt(i)==s.charAt(i-1) && s.charAt(i)=='R'){\n ans++;\n max=Math.max(max,ans);\n }\n else if(s.charAt(i)=='R'){\n ans=0;\n ans++;\n Math.max(max,ans);\n }\n }\n max =Math.max(max,ans);\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 String s = sc.next();\n int ans=0;\n int max=0;\n if(s.charAt(0)=='R'){\n ans++;\n max=Math.max(max,ans);\n }\n for(int i=1;i<s.length();i++){\n if(s.charAt(i)==s.charAt(i-1) && s.charAt(i)=='R'){\n ans++;\n max=Math.max(max,ans);\n }\n else if(s.charAt(i)=='R'){\n ans=0;\n ans++;\n Math.max(max,ans);\n }\n }\n max =Math.max(max,ans);\n System.out.println(max);\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; int max=0; if(s.charAt(0)=='R'){ ans++; max=Math.max(max,ans); } for(int i=1;i<s.length();i++){ if(s.charAt(i)==s.charAt(i-1) && s.charAt(i)=='R'){ ans++; max=Math.max(max,ans); } else if(s.charAt(i)=='R'){ ans=0; ans++; Math.max(max,ans); } } max =Math.max(max,ans); System.out.println(max); } }
[ 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, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 17, 30, 40, 13, 0, 13, 13, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 63, 5 ], [ 63, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 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 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 38, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 47, 48 ], [ 47, 49 ], [ 38, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 8, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 6, 60 ], [ 60, 61 ], [ 0, 62 ], [ 62, 63 ], [ 62, 64 ] ]
[ "import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n char[] S = sc.next().toCharArray();\n \n int res=0;\n int count=0;\n for(int i=0; i<3; i++){\n if(S[i]=='R'){\n res++;\n count = res;\n }else{\n res = 0;\n }\n }\n \n System.out.println(count);\n \n \n \n \n \n \n \n }\n }", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n char[] S = sc.next().toCharArray();\n \n int res=0;\n int count=0;\n for(int i=0; i<3; i++){\n if(S[i]=='R'){\n res++;\n count = res;\n }else{\n res = 0;\n }\n }\n \n System.out.println(count);\n \n \n \n \n \n \n \n }\n }", "Main", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n char[] S = sc.next().toCharArray();\n \n int res=0;\n int count=0;\n for(int i=0; i<3; i++){\n if(S[i]=='R'){\n res++;\n count = res;\n }else{\n res = 0;\n }\n }\n \n System.out.println(count);\n \n \n \n \n \n \n \n }", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n char[] S = sc.next().toCharArray();\n \n int res=0;\n int count=0;\n for(int i=0; i<3; i++){\n if(S[i]=='R'){\n res++;\n count = res;\n }else{\n res = 0;\n }\n }\n \n System.out.println(count);\n \n \n \n \n \n \n \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 res=0;", "res", "0", "int count=0;", "count", "0", "for(int i=0; i<3; i++){\n if(S[i]=='R'){\n res++;\n count = res;\n }else{\n res = 0;\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<3", "i", "3", "i++", "i++", "i", "{\n if(S[i]=='R'){\n res++;\n count = res;\n }else{\n res = 0;\n }\n }", "{\n if(S[i]=='R'){\n res++;\n count = res;\n }else{\n res = 0;\n }\n }", "if(S[i]=='R'){\n res++;\n count = res;\n }else{\n res = 0;\n }", "S[i]=='R'", "S[i]", "S", "i", "'R'", "{\n res++;\n count = res;\n }", "res++", "res", "count = res", "count", "res", "{\n res = 0;\n }", "res = 0", "res", "0", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n char[] S = sc.next().toCharArray();\n \n int res=0;\n int count=0;\n for(int i=0; i<3; i++){\n if(S[i]=='R'){\n res++;\n count = res;\n }else{\n res = 0;\n }\n }\n \n System.out.println(count);\n \n \n \n \n \n \n \n }\n }", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n char[] S = sc.next().toCharArray();\n \n int res=0;\n int count=0;\n for(int i=0; i<3; i++){\n if(S[i]=='R'){\n res++;\n count = res;\n }else{\n res = 0;\n }\n }\n \n System.out.println(count);\n \n \n \n \n \n \n \n }\n }", "Main" ]
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); char[] S = sc.next().toCharArray(); int res=0; int count=0; for(int i=0; i<3; i++){ if(S[i]=='R'){ res++; count = res; }else{ res = 0; } } System.out.println(count); } }
[ 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, 41, 13, 17, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 13, 14, 4, 18, 13, 30, 4, 18, 18, 13, 13, 17, 14, 4, 18, 13, 30, 4, 18, 18, 13, 13, 17, 14, 4, 18, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 111, 11 ], [ 111, 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 ], [ 29, 31 ], [ 14, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 14, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 14, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 14, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 14, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 14, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 14, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 68, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 68, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 79, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 79, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 90, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 90, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 102, 107 ], [ 12, 108 ], [ 108, 109 ], [ 0, 110 ], [ 110, 111 ], [ 110, 112 ] ]
[ "import java.util.Scanner;\nimport java.util.regex.Matcher;\nimport java.util.regex.Pattern;\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\tString s = sc.next();\n\t\tString reg1 = \"RRR\";\n\t\tString reg2 = \"RR\";\n\t\tString reg3 = \"R\";\n\t\tPattern p1 = Pattern.compile(reg1);\n\t\tPattern p2 = Pattern.compile(reg2);\n\t\tPattern p3 = Pattern.compile(reg3);\n\t\tMatcher m1 = p1.matcher(s);\t\n\t\tMatcher m2 = p2.matcher(s);\t\n\t\tMatcher m3 = p3.matcher(s);\t\n\n\t\tif(m1.find()) {\n\t\t\tSystem.out.println(\"3\");\n\t\t}else if(m2.find()) {\n\t\t\tSystem.out.println(\"2\");\n\t\t}else if(m3.find()) {\n\t\t\tSystem.out.println(\"1\");\n\t\t}else {\n\t\t\tSystem.out.println(\"0\");\n\t\t}\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.regex.Matcher;", "Matcher", "java.util.regex", "import java.util.regex.Pattern;", "Pattern", "java.util.regex", "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\tString s = sc.next();\n\t\tString reg1 = \"RRR\";\n\t\tString reg2 = \"RR\";\n\t\tString reg3 = \"R\";\n\t\tPattern p1 = Pattern.compile(reg1);\n\t\tPattern p2 = Pattern.compile(reg2);\n\t\tPattern p3 = Pattern.compile(reg3);\n\t\tMatcher m1 = p1.matcher(s);\t\n\t\tMatcher m2 = p2.matcher(s);\t\n\t\tMatcher m3 = p3.matcher(s);\t\n\n\t\tif(m1.find()) {\n\t\t\tSystem.out.println(\"3\");\n\t\t}else if(m2.find()) {\n\t\t\tSystem.out.println(\"2\");\n\t\t}else if(m3.find()) {\n\t\t\tSystem.out.println(\"1\");\n\t\t}else {\n\t\t\tSystem.out.println(\"0\");\n\t\t}\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\tString s = sc.next();\n\t\tString reg1 = \"RRR\";\n\t\tString reg2 = \"RR\";\n\t\tString reg3 = \"R\";\n\t\tPattern p1 = Pattern.compile(reg1);\n\t\tPattern p2 = Pattern.compile(reg2);\n\t\tPattern p3 = Pattern.compile(reg3);\n\t\tMatcher m1 = p1.matcher(s);\t\n\t\tMatcher m2 = p2.matcher(s);\t\n\t\tMatcher m3 = p3.matcher(s);\t\n\n\t\tif(m1.find()) {\n\t\t\tSystem.out.println(\"3\");\n\t\t}else if(m2.find()) {\n\t\t\tSystem.out.println(\"2\");\n\t\t}else if(m3.find()) {\n\t\t\tSystem.out.println(\"1\");\n\t\t}else {\n\t\t\tSystem.out.println(\"0\");\n\t\t}\n\t}", "main", "{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString reg1 = \"RRR\";\n\t\tString reg2 = \"RR\";\n\t\tString reg3 = \"R\";\n\t\tPattern p1 = Pattern.compile(reg1);\n\t\tPattern p2 = Pattern.compile(reg2);\n\t\tPattern p3 = Pattern.compile(reg3);\n\t\tMatcher m1 = p1.matcher(s);\t\n\t\tMatcher m2 = p2.matcher(s);\t\n\t\tMatcher m3 = p3.matcher(s);\t\n\n\t\tif(m1.find()) {\n\t\t\tSystem.out.println(\"3\");\n\t\t}else if(m2.find()) {\n\t\t\tSystem.out.println(\"2\");\n\t\t}else if(m3.find()) {\n\t\t\tSystem.out.println(\"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", "String reg1 = \"RRR\";", "reg1", "\"RRR\"", "String reg2 = \"RR\";", "reg2", "\"RR\"", "String reg3 = \"R\";", "reg3", "\"R\"", "Pattern p1 = Pattern.compile(reg1);", "p1", "Pattern.compile(reg1)", "Pattern.compile", "Pattern", "reg1", "Pattern p2 = Pattern.compile(reg2);", "p2", "Pattern.compile(reg2)", "Pattern.compile", "Pattern", "reg2", "Pattern p3 = Pattern.compile(reg3);", "p3", "Pattern.compile(reg3)", "Pattern.compile", "Pattern", "reg3", "Matcher m1 = p1.matcher(s);", "m1", "p1.matcher(s)", "p1.matcher", "p1", "s", "Matcher m2 = p2.matcher(s);", "m2", "p2.matcher(s)", "p2.matcher", "p2", "s", "Matcher m3 = p3.matcher(s);", "m3", "p3.matcher(s)", "p3.matcher", "p3", "s", "if(m1.find()) {\n\t\t\tSystem.out.println(\"3\");\n\t\t}else if(m2.find()) {\n\t\t\tSystem.out.println(\"2\");\n\t\t}else if(m3.find()) {\n\t\t\tSystem.out.println(\"1\");\n\t\t}else {\n\t\t\tSystem.out.println(\"0\");\n\t\t}", "m1.find()", "m1.find", "m1", "{\n\t\t\tSystem.out.println(\"3\");\n\t\t}", "System.out.println(\"3\")", "System.out.println", "System.out", "System", "System.out", "\"3\"", "if(m2.find()) {\n\t\t\tSystem.out.println(\"2\");\n\t\t}else if(m3.find()) {\n\t\t\tSystem.out.println(\"1\");\n\t\t}else {\n\t\t\tSystem.out.println(\"0\");\n\t\t}", "m2.find()", "m2.find", "m2", "{\n\t\t\tSystem.out.println(\"2\");\n\t\t}", "System.out.println(\"2\")", "System.out.println", "System.out", "System", "System.out", "\"2\"", "if(m3.find()) {\n\t\t\tSystem.out.println(\"1\");\n\t\t}else {\n\t\t\tSystem.out.println(\"0\");\n\t\t}", "m3.find()", "m3.find", "m3", "{\n\t\t\tSystem.out.println(\"1\");\n\t\t}", "System.out.println(\"1\")", "System.out.println", "System.out", "System", "System.out", "\"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\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString reg1 = \"RRR\";\n\t\tString reg2 = \"RR\";\n\t\tString reg3 = \"R\";\n\t\tPattern p1 = Pattern.compile(reg1);\n\t\tPattern p2 = Pattern.compile(reg2);\n\t\tPattern p3 = Pattern.compile(reg3);\n\t\tMatcher m1 = p1.matcher(s);\t\n\t\tMatcher m2 = p2.matcher(s);\t\n\t\tMatcher m3 = p3.matcher(s);\t\n\n\t\tif(m1.find()) {\n\t\t\tSystem.out.println(\"3\");\n\t\t}else if(m2.find()) {\n\t\t\tSystem.out.println(\"2\");\n\t\t}else if(m3.find()) {\n\t\t\tSystem.out.println(\"1\");\n\t\t}else {\n\t\t\tSystem.out.println(\"0\");\n\t\t}\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString reg1 = \"RRR\";\n\t\tString reg2 = \"RR\";\n\t\tString reg3 = \"R\";\n\t\tPattern p1 = Pattern.compile(reg1);\n\t\tPattern p2 = Pattern.compile(reg2);\n\t\tPattern p3 = Pattern.compile(reg3);\n\t\tMatcher m1 = p1.matcher(s);\t\n\t\tMatcher m2 = p2.matcher(s);\t\n\t\tMatcher m3 = p3.matcher(s);\t\n\n\t\tif(m1.find()) {\n\t\t\tSystem.out.println(\"3\");\n\t\t}else if(m2.find()) {\n\t\t\tSystem.out.println(\"2\");\n\t\t}else if(m3.find()) {\n\t\t\tSystem.out.println(\"1\");\n\t\t}else {\n\t\t\tSystem.out.println(\"0\");\n\t\t}\n\t}\n\n}", "Main" ]
import java.util.Scanner; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner(System.in); String s = sc.next(); String reg1 = "RRR"; String reg2 = "RR"; String reg3 = "R"; Pattern p1 = Pattern.compile(reg1); Pattern p2 = Pattern.compile(reg2); Pattern p3 = Pattern.compile(reg3); Matcher m1 = p1.matcher(s); Matcher m2 = p2.matcher(s); Matcher m3 = p3.matcher(s); if(m1.find()) { System.out.println("3"); }else if(m2.find()) { System.out.println("2"); }else if(m3.find()) { 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, 13, 41, 13, 4, 18, 13, 17, 41, 13, 17, 14, 2, 2, 40, 4, 18, 18, 13, 17, 17, 40, 4, 18, 18, 13, 17, 17, 40, 4, 18, 18, 13, 17, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 29, 14, 2, 2, 4, 18, 18, 13, 17, 17, 4, 18, 18, 13, 17, 17, 4, 18, 18, 13, 17, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 29, 14, 2, 4, 18, 18, 13, 17, 17, 4, 18, 18, 13, 17, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 29, 14, 2, 4, 18, 18, 13, 17, 17, 4, 18, 18, 13, 17, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 29, 14, 4, 18, 18, 13, 17, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 29, 14, 4, 18, 18, 13, 17, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 29, 14, 4, 18, 18, 13, 17, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 29, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 206, 5 ], [ 206, 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 ], [ 28, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 28, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 28, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 26, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 50, 60 ], [ 8, 61 ], [ 61, 62 ], [ 63, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 63, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 63, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 76, 81 ], [ 61, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 82, 92 ], [ 8, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 94, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 93, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 111, 116 ], [ 107, 117 ], [ 8, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 120, 125 ], [ 119, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 126, 131 ], [ 118, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 132, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 136, 141 ], [ 132, 142 ], [ 8, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 144, 149 ], [ 143, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 150, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 154, 159 ], [ 150, 160 ], [ 8, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 164, 165 ], [ 164, 166 ], [ 162, 167 ], [ 161, 168 ], [ 168, 169 ], [ 169, 170 ], [ 169, 171 ], [ 168, 172 ], [ 172, 173 ], [ 173, 174 ], [ 174, 175 ], [ 174, 176 ], [ 172, 177 ], [ 168, 178 ], [ 8, 179 ], [ 179, 180 ], [ 180, 181 ], [ 181, 182 ], [ 182, 183 ], [ 182, 184 ], [ 180, 185 ], [ 179, 186 ], [ 186, 187 ], [ 187, 188 ], [ 187, 189 ], [ 186, 190 ], [ 190, 191 ], [ 191, 192 ], [ 192, 193 ], [ 192, 194 ], [ 190, 195 ], [ 186, 196 ], [ 8, 197 ], [ 197, 198 ], [ 198, 199 ], [ 199, 200 ], [ 199, 201 ], [ 197, 202 ], [ 6, 203 ], [ 203, 204 ], [ 0, 205 ], [ 205, 206 ], [ 205, 207 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\t\tString S = scan.next();\n\t\tString[] Sarray = S.split(\"\");\n\n//\t\tfor (int i = 0; i < 3; i++) {\n//\t\t\tSarray[i] = S.charAt(i);\n//\t\t}\n\n\n\t\tint count = 0;\n\t\tif(!(Sarray[0].equals(\"R\")) && !(Sarray[1].equals(\"R\")) && !(Sarray[2].equals(\"R\"))){\n\t\t\tcount = 0;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}\n\t\tif(Sarray[0].equals(\"R\") && Sarray[1].equals(\"R\") && Sarray[2].equals(\"R\")){\n\t\t\tcount = 3;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}\n\t\tif(Sarray[0].equals(\"R\") && Sarray[1].equals(\"R\")){\n\t\t\tcount = 2;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}\n\t\tif(Sarray[1].equals(\"R\") && Sarray[2].equals(\"R\")){\n\t\t\tcount = 2;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}\n\n\t\tif(Sarray[0].equals(\"R\")){\n\t\t\tcount = 1;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}\n\t\tif(Sarray[1].equals(\"R\")){\n\t\t\tcount = 1;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}\n\t\tif(Sarray[2].equals(\"R\")){\n\t\t\tcount = 1;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}\n\n\n\n\t\tSystem.out.println(count);\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\t\tString S = scan.next();\n\t\tString[] Sarray = S.split(\"\");\n\n//\t\tfor (int i = 0; i < 3; i++) {\n//\t\t\tSarray[i] = S.charAt(i);\n//\t\t}\n\n\n\t\tint count = 0;\n\t\tif(!(Sarray[0].equals(\"R\")) && !(Sarray[1].equals(\"R\")) && !(Sarray[2].equals(\"R\"))){\n\t\t\tcount = 0;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}\n\t\tif(Sarray[0].equals(\"R\") && Sarray[1].equals(\"R\") && Sarray[2].equals(\"R\")){\n\t\t\tcount = 3;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}\n\t\tif(Sarray[0].equals(\"R\") && Sarray[1].equals(\"R\")){\n\t\t\tcount = 2;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}\n\t\tif(Sarray[1].equals(\"R\") && Sarray[2].equals(\"R\")){\n\t\t\tcount = 2;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}\n\n\t\tif(Sarray[0].equals(\"R\")){\n\t\t\tcount = 1;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}\n\t\tif(Sarray[1].equals(\"R\")){\n\t\t\tcount = 1;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}\n\t\tif(Sarray[2].equals(\"R\")){\n\t\t\tcount = 1;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}\n\n\n\n\t\tSystem.out.println(count);\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\t\tString S = scan.next();\n\t\tString[] Sarray = S.split(\"\");\n\n//\t\tfor (int i = 0; i < 3; i++) {\n//\t\t\tSarray[i] = S.charAt(i);\n//\t\t}\n\n\n\t\tint count = 0;\n\t\tif(!(Sarray[0].equals(\"R\")) && !(Sarray[1].equals(\"R\")) && !(Sarray[2].equals(\"R\"))){\n\t\t\tcount = 0;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}\n\t\tif(Sarray[0].equals(\"R\") && Sarray[1].equals(\"R\") && Sarray[2].equals(\"R\")){\n\t\t\tcount = 3;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}\n\t\tif(Sarray[0].equals(\"R\") && Sarray[1].equals(\"R\")){\n\t\t\tcount = 2;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}\n\t\tif(Sarray[1].equals(\"R\") && Sarray[2].equals(\"R\")){\n\t\t\tcount = 2;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}\n\n\t\tif(Sarray[0].equals(\"R\")){\n\t\t\tcount = 1;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}\n\t\tif(Sarray[1].equals(\"R\")){\n\t\t\tcount = 1;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}\n\t\tif(Sarray[2].equals(\"R\")){\n\t\t\tcount = 1;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}\n\n\n\n\t\tSystem.out.println(count);\n\t}", "main", "{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\t\tString S = scan.next();\n\t\tString[] Sarray = S.split(\"\");\n\n//\t\tfor (int i = 0; i < 3; i++) {\n//\t\t\tSarray[i] = S.charAt(i);\n//\t\t}\n\n\n\t\tint count = 0;\n\t\tif(!(Sarray[0].equals(\"R\")) && !(Sarray[1].equals(\"R\")) && !(Sarray[2].equals(\"R\"))){\n\t\t\tcount = 0;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}\n\t\tif(Sarray[0].equals(\"R\") && Sarray[1].equals(\"R\") && Sarray[2].equals(\"R\")){\n\t\t\tcount = 3;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}\n\t\tif(Sarray[0].equals(\"R\") && Sarray[1].equals(\"R\")){\n\t\t\tcount = 2;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}\n\t\tif(Sarray[1].equals(\"R\") && Sarray[2].equals(\"R\")){\n\t\t\tcount = 2;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}\n\n\t\tif(Sarray[0].equals(\"R\")){\n\t\t\tcount = 1;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}\n\t\tif(Sarray[1].equals(\"R\")){\n\t\t\tcount = 1;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}\n\t\tif(Sarray[2].equals(\"R\")){\n\t\t\tcount = 1;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}\n\n\n\n\t\tSystem.out.println(count);\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String S = scan.next();", "S", "scan.next()", "scan.next", "scan", "String[] Sarray = S.split(\"\");", "Sarray", "S.split(\"\")", "S.split", "S", "\"\"", "int count = 0;", "count", "0", "if(!(Sarray[0].equals(\"R\")) && !(Sarray[1].equals(\"R\")) && !(Sarray[2].equals(\"R\"))){\n\t\t\tcount = 0;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}", "!(Sarray[0].equals(\"R\")) && !(Sarray[1].equals(\"R\")) && !(Sarray[2].equals(\"R\"))", "!(Sarray[0].equals(\"R\")) && !(Sarray[1].equals(\"R\")) && !(Sarray[2].equals(\"R\"))", "!(Sarray[0].equals(\"R\"))", "(Sarray[0].equals(\"R\"))", "Sarray[0].equals", "Sarray[0]", "Sarray", "0", "\"R\"", "!(Sarray[1].equals(\"R\"))", "(Sarray[1].equals(\"R\"))", "Sarray[1].equals", "Sarray[1]", "Sarray", "1", "\"R\"", "!(Sarray[2].equals(\"R\"))", "(Sarray[2].equals(\"R\"))", "Sarray[2].equals", "Sarray[2]", "Sarray", "2", "\"R\"", "{\n\t\t\tcount = 0;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}", "count = 0", "count", "0", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "return;", "if(Sarray[0].equals(\"R\") && Sarray[1].equals(\"R\") && Sarray[2].equals(\"R\")){\n\t\t\tcount = 3;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}", "Sarray[0].equals(\"R\") && Sarray[1].equals(\"R\") && Sarray[2].equals(\"R\")", "Sarray[0].equals(\"R\") && Sarray[1].equals(\"R\") && Sarray[2].equals(\"R\")", "Sarray[0].equals(\"R\")", "Sarray[0].equals", "Sarray[0]", "Sarray", "0", "\"R\"", "Sarray[1].equals(\"R\")", "Sarray[1].equals", "Sarray[1]", "Sarray", "1", "\"R\"", "Sarray[2].equals(\"R\")", "Sarray[2].equals", "Sarray[2]", "Sarray", "2", "\"R\"", "{\n\t\t\tcount = 3;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}", "count = 3", "count", "3", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "return;", "if(Sarray[0].equals(\"R\") && Sarray[1].equals(\"R\")){\n\t\t\tcount = 2;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}", "Sarray[0].equals(\"R\") && Sarray[1].equals(\"R\")", "Sarray[0].equals(\"R\")", "Sarray[0].equals", "Sarray[0]", "Sarray", "0", "\"R\"", "Sarray[1].equals(\"R\")", "Sarray[1].equals", "Sarray[1]", "Sarray", "1", "\"R\"", "{\n\t\t\tcount = 2;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}", "count = 2", "count", "2", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "return;", "if(Sarray[1].equals(\"R\") && Sarray[2].equals(\"R\")){\n\t\t\tcount = 2;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}", "Sarray[1].equals(\"R\") && Sarray[2].equals(\"R\")", "Sarray[1].equals(\"R\")", "Sarray[1].equals", "Sarray[1]", "Sarray", "1", "\"R\"", "Sarray[2].equals(\"R\")", "Sarray[2].equals", "Sarray[2]", "Sarray", "2", "\"R\"", "{\n\t\t\tcount = 2;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}", "count = 2", "count", "2", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "return;", "if(Sarray[0].equals(\"R\")){\n\t\t\tcount = 1;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}", "Sarray[0].equals(\"R\")", "Sarray[0].equals", "Sarray[0]", "Sarray", "0", "\"R\"", "{\n\t\t\tcount = 1;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}", "count = 1", "count", "1", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "return;", "if(Sarray[1].equals(\"R\")){\n\t\t\tcount = 1;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}", "Sarray[1].equals(\"R\")", "Sarray[1].equals", "Sarray[1]", "Sarray", "1", "\"R\"", "{\n\t\t\tcount = 1;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}", "count = 1", "count", "1", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "return;", "if(Sarray[2].equals(\"R\")){\n\t\t\tcount = 1;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}", "Sarray[2].equals(\"R\")", "Sarray[2].equals", "Sarray[2]", "Sarray", "2", "\"R\"", "{\n\t\t\tcount = 1;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}", "count = 1", "count", "1", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "return;", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\t\tString S = scan.next();\n\t\tString[] Sarray = S.split(\"\");\n\n//\t\tfor (int i = 0; i < 3; i++) {\n//\t\t\tSarray[i] = S.charAt(i);\n//\t\t}\n\n\n\t\tint count = 0;\n\t\tif(!(Sarray[0].equals(\"R\")) && !(Sarray[1].equals(\"R\")) && !(Sarray[2].equals(\"R\"))){\n\t\t\tcount = 0;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}\n\t\tif(Sarray[0].equals(\"R\") && Sarray[1].equals(\"R\") && Sarray[2].equals(\"R\")){\n\t\t\tcount = 3;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}\n\t\tif(Sarray[0].equals(\"R\") && Sarray[1].equals(\"R\")){\n\t\t\tcount = 2;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}\n\t\tif(Sarray[1].equals(\"R\") && Sarray[2].equals(\"R\")){\n\t\t\tcount = 2;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}\n\n\t\tif(Sarray[0].equals(\"R\")){\n\t\t\tcount = 1;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}\n\t\tif(Sarray[1].equals(\"R\")){\n\t\t\tcount = 1;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}\n\t\tif(Sarray[2].equals(\"R\")){\n\t\t\tcount = 1;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}\n\n\n\n\t\tSystem.out.println(count);\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\t\tString S = scan.next();\n\t\tString[] Sarray = S.split(\"\");\n\n//\t\tfor (int i = 0; i < 3; i++) {\n//\t\t\tSarray[i] = S.charAt(i);\n//\t\t}\n\n\n\t\tint count = 0;\n\t\tif(!(Sarray[0].equals(\"R\")) && !(Sarray[1].equals(\"R\")) && !(Sarray[2].equals(\"R\"))){\n\t\t\tcount = 0;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}\n\t\tif(Sarray[0].equals(\"R\") && Sarray[1].equals(\"R\") && Sarray[2].equals(\"R\")){\n\t\t\tcount = 3;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}\n\t\tif(Sarray[0].equals(\"R\") && Sarray[1].equals(\"R\")){\n\t\t\tcount = 2;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}\n\t\tif(Sarray[1].equals(\"R\") && Sarray[2].equals(\"R\")){\n\t\t\tcount = 2;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}\n\n\t\tif(Sarray[0].equals(\"R\")){\n\t\t\tcount = 1;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}\n\t\tif(Sarray[1].equals(\"R\")){\n\t\t\tcount = 1;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}\n\t\tif(Sarray[2].equals(\"R\")){\n\t\t\tcount = 1;\n\t\t\tSystem.out.println(count);\n\t\t\treturn;\n\t\t}\n\n\n\n\t\tSystem.out.println(count);\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner scan = new Scanner(System.in); String S = scan.next(); String[] Sarray = S.split(""); // for (int i = 0; i < 3; i++) { // Sarray[i] = S.charAt(i); // } int count = 0; if(!(Sarray[0].equals("R")) && !(Sarray[1].equals("R")) && !(Sarray[2].equals("R"))){ count = 0; System.out.println(count); return; } if(Sarray[0].equals("R") && Sarray[1].equals("R") && Sarray[2].equals("R")){ count = 3; System.out.println(count); return; } if(Sarray[0].equals("R") && Sarray[1].equals("R")){ count = 2; System.out.println(count); return; } if(Sarray[1].equals("R") && Sarray[2].equals("R")){ count = 2; System.out.println(count); return; } if(Sarray[0].equals("R")){ count = 1; System.out.println(count); return; } if(Sarray[1].equals("R")){ count = 1; System.out.println(count); return; } if(Sarray[2].equals("R")){ count = 1; System.out.println(count); return; } System.out.println(count); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 4, 18, 17, 12, 13, 30, 42, 2, 13, 13, 30, 14, 2, 13, 13, 0, 13, 13, 0, 13, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 18, 13, 2, 13, 17, 29, 17, 29, 17, 23, 13, 23, 13, 12, 13, 30, 14, 2, 13, 17, 29, 17, 14, 2, 2, 13, 17, 17, 29, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 0, 13, 17, 30, 30, 14, 2, 2, 13, 13, 17, 29, 17, 29, 17, 23, 13, 12, 13, 30, 14, 2, 13, 17, 29, 17, 14, 2, 2, 13, 17, 17, 29, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 0, 13, 17, 30, 30, 14, 2, 2, 13, 13, 17, 29, 17, 29, 17, 23, 13, 12, 13, 30, 28, 13, 13, 30, 30, 4, 18, 18, 13, 13, 2, 13, 17, 4, 18, 18, 13, 13, 23, 13, 12, 13, 30, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 13, 2, 13, 13, 29, 13, 23, 13, 12, 13, 30, 14, 2, 2, 13, 17, 17, 29, 2, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 0, 13, 17, 30, 30, 14, 2, 2, 13, 13, 17, 29, 2, 13, 13, 29, 17, 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, 14, 2, 13, 17, 0, 13, 4, 18, 13, 13, 13, 30, 0, 13, 4, 18, 13, 13, 13, 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, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 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 ], [ 475, 8 ], [ 475, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 475, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 22, 26 ], [ 26, 27 ], [ 26, 28 ], [ 22, 29 ], [ 29, 30 ], [ 29, 31 ], [ 16, 32 ], [ 32, 33 ], [ 14, 34 ], [ 34, 35 ], [ 14, 36 ], [ 36, 37 ], [ 475, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 46, 47 ], [ 46, 48 ], [ 41, 49 ], [ 49, 50 ], [ 50, 51 ], [ 41, 52 ], [ 53, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 61, 63 ], [ 54, 64 ], [ 64, 65 ], [ 40, 66 ], [ 66, 67 ], [ 38, 68 ], [ 68, 69 ], [ 38, 70 ], [ 70, 71 ], [ 475, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 79, 80 ], [ 75, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 81, 87 ], [ 87, 88 ], [ 74, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 96, 98 ], [ 89, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 89, 103 ], [ 104, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 105, 111 ], [ 111, 112 ], [ 74, 113 ], [ 113, 114 ], [ 72, 115 ], [ 115, 116 ], [ 475, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 120, 124 ], [ 124, 125 ], [ 120, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 127, 131 ], [ 126, 132 ], [ 132, 133 ], [ 119, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 134, 139 ], [ 139, 140 ], [ 139, 141 ], [ 141, 142 ], [ 141, 143 ], [ 134, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 134, 148 ], [ 149, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 151, 155 ], [ 150, 156 ], [ 156, 157 ], [ 119, 158 ], [ 158, 159 ], [ 117, 160 ], [ 160, 161 ], [ 475, 162 ], [ 162, 163 ], [ 162, 164 ], [ 164, 165 ], [ 165, 166 ], [ 165, 167 ], [ 165, 168 ], [ 169, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 170, 175 ], [ 175, 176 ], [ 175, 177 ], [ 164, 178 ], [ 178, 179 ], [ 179, 180 ], [ 180, 181 ], [ 180, 182 ], [ 162, 183 ], [ 183, 184 ], [ 475, 185 ], [ 185, 186 ], [ 185, 187 ], [ 187, 188 ], [ 188, 189 ], [ 188, 190 ], [ 187, 191 ], [ 191, 192 ], [ 192, 193 ], [ 193, 194 ], [ 193, 195 ], [ 191, 196 ], [ 196, 197 ], [ 196, 198 ], [ 191, 199 ], [ 199, 200 ], [ 200, 201 ], [ 191, 202 ], [ 202, 203 ], [ 203, 204 ], [ 203, 205 ], [ 205, 206 ], [ 205, 207 ], [ 187, 208 ], [ 208, 209 ], [ 185, 210 ], [ 210, 211 ], [ 475, 212 ], [ 212, 213 ], [ 212, 214 ], [ 214, 215 ], [ 215, 216 ], [ 216, 217 ], [ 217, 218 ], [ 217, 219 ], [ 216, 220 ], [ 215, 221 ], [ 221, 222 ], [ 222, 223 ], [ 222, 224 ], [ 215, 225 ], [ 225, 226 ], [ 226, 227 ], [ 227, 228 ], [ 228, 229 ], [ 228, 230 ], [ 226, 231 ], [ 231, 232 ], [ 231, 233 ], [ 233, 234 ], [ 233, 235 ], [ 226, 236 ], [ 236, 237 ], [ 237, 238 ], [ 237, 239 ], [ 226, 240 ], [ 241, 241 ], [ 241, 242 ], [ 242, 243 ], [ 243, 244 ], [ 244, 245 ], [ 244, 246 ], [ 243, 247 ], [ 242, 248 ], [ 248, 249 ], [ 249, 250 ], [ 249, 251 ], [ 214, 252 ], [ 252, 253 ], [ 212, 254 ], [ 254, 255 ], [ 475, 256 ], [ 256, 257 ], [ 256, 258 ], [ 258, 259 ], [ 259, 260 ], [ 259, 261 ], [ 258, 262 ], [ 262, 263 ], [ 262, 264 ], [ 264, 265 ], [ 265, 266 ], [ 258, 267 ], [ 267, 268 ], [ 267, 269 ], [ 258, 270 ], [ 270, 271 ], [ 270, 272 ], [ 258, 273 ], [ 273, 274 ], [ 274, 275 ], [ 275, 276 ], [ 275, 277 ], [ 273, 278 ], [ 278, 279 ], [ 278, 280 ], [ 280, 281 ], [ 281, 282 ], [ 273, 283 ], [ 283, 284 ], [ 284, 285 ], [ 273, 286 ], [ 287, 287 ], [ 287, 288 ], [ 288, 289 ], [ 289, 290 ], [ 290, 291 ], [ 291, 292 ], [ 290, 293 ], [ 289, 294 ], [ 288, 295 ], [ 295, 296 ], [ 296, 297 ], [ 295, 298 ], [ 298, 299 ], [ 299, 300 ], [ 299, 301 ], [ 298, 302 ], [ 302, 303 ], [ 302, 304 ], [ 304, 305 ], [ 305, 306 ], [ 304, 307 ], [ 304, 308 ], [ 288, 309 ], [ 309, 310 ], [ 310, 311 ], [ 310, 312 ], [ 312, 313 ], [ 313, 314 ], [ 312, 315 ], [ 312, 316 ], [ 309, 317 ], [ 317, 318 ], [ 317, 319 ], [ 258, 320 ], [ 320, 321 ], [ 321, 322 ], [ 322, 323 ], [ 322, 324 ], [ 320, 325 ], [ 256, 326 ], [ 326, 327 ], [ 475, 328 ], [ 328, 329 ], [ 328, 330 ], [ 330, 331 ], [ 328, 332 ], [ 332, 333 ], [ 328, 334 ], [ 334, 335 ], [ 334, 336 ], [ 336, 337 ], [ 337, 338 ], [ 337, 339 ], [ 328, 340 ], [ 340, 341 ], [ 340, 342 ], [ 342, 343 ], [ 343, 344 ], [ 344, 345 ], [ 345, 346 ], [ 345, 347 ], [ 344, 348 ], [ 348, 349 ], [ 349, 350 ], [ 350, 351 ], [ 343, 352 ], [ 352, 353 ], [ 353, 354 ], [ 354, 355 ], [ 354, 356 ], [ 356, 357 ], [ 357, 358 ], [ 358, 359 ], [ 353, 360 ], [ 360, 361 ], [ 361, 362 ], [ 361, 363 ], [ 342, 364 ], [ 364, 365 ], [ 365, 366 ], [ 366, 367 ], [ 328, 368 ], [ 368, 369 ], [ 368, 370 ], [ 370, 371 ], [ 371, 372 ], [ 372, 373 ], [ 373, 374 ], [ 372, 375 ], [ 375, 376 ], [ 328, 377 ], [ 377, 378 ], [ 377, 379 ], [ 379, 380 ], [ 380, 381 ], [ 381, 382 ], [ 382, 383 ], [ 381, 384 ], [ 384, 385 ], [ 328, 386 ], [ 386, 387 ], [ 386, 388 ], [ 388, 389 ], [ 389, 390 ], [ 390, 391 ], [ 391, 392 ], [ 390, 393 ], [ 393, 394 ], [ 328, 395 ], [ 395, 396 ], [ 395, 397 ], [ 397, 398 ], [ 398, 399 ], [ 398, 400 ], [ 397, 402 ], [ 402, 403 ], [ 403, 404 ], [ 404, 405 ], [ 404, 406 ], [ 402, 407 ], [ 407, 408 ], [ 407, 409 ], [ 402, 410 ], [ 410, 411 ], [ 411, 412 ], [ 402, 413 ], [ 413, 414 ], [ 414, 415 ], [ 415, 416 ], [ 415, 417 ], [ 414, 418 ], [ 418, 419 ], [ 397, 420 ], [ 420, 421 ], [ 395, 422 ], [ 422, 423 ], [ 328, 424 ], [ 424, 425 ], [ 424, 426 ], [ 426, 427 ], [ 427, 428 ], [ 427, 429 ], [ 426, 431 ], [ 431, 432 ], [ 432, 433 ], [ 433, 434 ], [ 433, 435 ], [ 431, 436 ], [ 436, 437 ], [ 436, 438 ], [ 431, 439 ], [ 439, 440 ], [ 440, 441 ], [ 431, 442 ], [ 442, 443 ], [ 443, 444 ], [ 444, 445 ], [ 444, 446 ], [ 443, 447 ], [ 447, 448 ], [ 426, 449 ], [ 449, 450 ], [ 424, 451 ], [ 451, 452 ], [ 328, 453 ], [ 453, 454 ], [ 453, 455 ], [ 455, 456 ], [ 456, 457 ], [ 456, 458 ], [ 455, 459 ], [ 459, 460 ], [ 460, 461 ], [ 460, 462 ], [ 462, 463 ], [ 463, 464 ], [ 464, 465 ], [ 459, 466 ], [ 466, 467 ], [ 467, 468 ], [ 467, 469 ], [ 469, 470 ], [ 470, 471 ], [ 455, 472 ], [ 472, 473 ], [ 0, 474 ], [ 474, 475 ], [ 474, 476 ] ]
[ "import java.io.*;\nimport java.util.*;\n\npublic class Main{\n final static String alpha = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".toLowerCase();//.toCharArray();\n static class FastReader{\n BufferedReader br;\n StringTokenizer st;\n public FastReader(){br = new BufferedReader(new InputStreamReader(System.in));}\n String next(){while (st == null || !st.hasMoreElements()){try{st = new StringTokenizer(br.readLine());}catch (IOException e){e.printStackTrace();}}return st.nextToken();}\n int nextInt(){return Integer.parseInt(next());}\n long nextLong(){return Long.parseLong(next());}\n double nextDouble(){return Double.parseDouble(next());}\n int[] readArray(int n){int[] a=new int[n];for (int i=0; i<n; i++) a[i]=nextInt();return a;}\n long[] readLongArray(int n){long[] a=new long[n];for (int i=0; i<n; i++) a[i]=nextLong();return a;}\n String nextLine(){String str = \"\";try{str = br.readLine();}catch (IOException e){e.printStackTrace();}return str;}\n }\n static int getGcd(int n1,int n2){\n while(n1 != n2){\n if(n1 > n2) n1 -= n2;\n else n2 -= n1;\n }\n return n1;\n }\n static boolean isSorted(int[] arr, int n){\n for(int i=1;i<n;i++){\n if(arr[i]<arr[i-1]) return false;\n }\n return true;\n }\n static boolean isPrime(long n){\n if(n==2) return true;\n else if(n%2==0) return false;\n for(int i=3;i<=n/2;i+=2){\n if(n%i==0) return false;\n }\n return true;\n }\n static boolean isPrime(int n){\n if(n==2) return true;\n else if(n%2==0) return false;\n for(int i=3;i<=n/2;i+=2){\n if(n%i==0) return false;\n }\n return true;\n }\n static void printArray(int[] arr){\n for(int x:arr){\n System.out.print(x+\" \");\n }\n System.out.println();\n }\n static long Fact(int n){\n //int p=1000000007;\n long result = 1;\n for (int i = 1; i <= n; i++) result = (result*i);\n //for (int i = 1; i <= n; i++) result = (result*i)%p;\n return result;\n }\n static int findLargestDiv(int n){\n if(n%2==0) return n/2;\n else{\n for(int i=3;i<=n/2;i+=2){\n if(n%i==0) return n/i;\n }\n }\n return 1;\n }\n public static void main(String[] args) throws NumberFormatException, IOException {\n FastReader s = new FastReader();\n String str = s.nextLine();\n int count=0,ans=0;\n for(int i=0;i<str.length();i++){\n if(str.charAt(i)=='R'){\n count++;\n if(i==(2)) ans=Math.max(ans,count);\n }\n else{\n ans=Math.max(ans,count);\n count=0;\n }\n }\n System.out.println(ans);\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "public class Main{\n final static String alpha = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".toLowerCase();//.toCharArray();\n static class FastReader{\n BufferedReader br;\n StringTokenizer st;\n public FastReader(){br = new BufferedReader(new InputStreamReader(System.in));}\n String next(){while (st == null || !st.hasMoreElements()){try{st = new StringTokenizer(br.readLine());}catch (IOException e){e.printStackTrace();}}return st.nextToken();}\n int nextInt(){return Integer.parseInt(next());}\n long nextLong(){return Long.parseLong(next());}\n double nextDouble(){return Double.parseDouble(next());}\n int[] readArray(int n){int[] a=new int[n];for (int i=0; i<n; i++) a[i]=nextInt();return a;}\n long[] readLongArray(int n){long[] a=new long[n];for (int i=0; i<n; i++) a[i]=nextLong();return a;}\n String nextLine(){String str = \"\";try{str = br.readLine();}catch (IOException e){e.printStackTrace();}return str;}\n }\n static int getGcd(int n1,int n2){\n while(n1 != n2){\n if(n1 > n2) n1 -= n2;\n else n2 -= n1;\n }\n return n1;\n }\n static boolean isSorted(int[] arr, int n){\n for(int i=1;i<n;i++){\n if(arr[i]<arr[i-1]) return false;\n }\n return true;\n }\n static boolean isPrime(long n){\n if(n==2) return true;\n else if(n%2==0) return false;\n for(int i=3;i<=n/2;i+=2){\n if(n%i==0) return false;\n }\n return true;\n }\n static boolean isPrime(int n){\n if(n==2) return true;\n else if(n%2==0) return false;\n for(int i=3;i<=n/2;i+=2){\n if(n%i==0) return false;\n }\n return true;\n }\n static void printArray(int[] arr){\n for(int x:arr){\n System.out.print(x+\" \");\n }\n System.out.println();\n }\n static long Fact(int n){\n //int p=1000000007;\n long result = 1;\n for (int i = 1; i <= n; i++) result = (result*i);\n //for (int i = 1; i <= n; i++) result = (result*i)%p;\n return result;\n }\n static int findLargestDiv(int n){\n if(n%2==0) return n/2;\n else{\n for(int i=3;i<=n/2;i+=2){\n if(n%i==0) return n/i;\n }\n }\n return 1;\n }\n public static void main(String[] args) throws NumberFormatException, IOException {\n FastReader s = new FastReader();\n String str = s.nextLine();\n int count=0,ans=0;\n for(int i=0;i<str.length();i++){\n if(str.charAt(i)=='R'){\n count++;\n if(i==(2)) ans=Math.max(ans,count);\n }\n else{\n ans=Math.max(ans,count);\n count=0;\n }\n }\n System.out.println(ans);\n }\n}", "Main", "final static String alpha = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".toLowerCase();//.toCharArray();", "alpha", "\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".toLowerCase()", "\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".toLowerCase", "\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"", "static int getGcd(int n1,int n2){\n while(n1 != n2){\n if(n1 > n2) n1 -= n2;\n else n2 -= n1;\n }\n return n1;\n }", "getGcd", "{\n while(n1 != n2){\n if(n1 > n2) n1 -= n2;\n else n2 -= n1;\n }\n return n1;\n }", "while(n1 != n2){\n if(n1 > n2) n1 -= n2;\n else n2 -= n1;\n }", "n1 != n2", "n1", "n2", "{\n if(n1 > n2) n1 -= n2;\n else n2 -= n1;\n }", "if(n1 > n2) n1 -= n2;\n else n2 -= n1;", "n1 > n2", "n1", "n2", "n1 -= n2", "n1", "n2", "n2 -= n1", "n2", "n1", "return n1;", "n1", "int n1", "n1", "int n2", "n2", "static boolean isSorted(int[] arr, int n){\n for(int i=1;i<n;i++){\n if(arr[i]<arr[i-1]) return false;\n }\n return true;\n }", "isSorted", "{\n for(int i=1;i<n;i++){\n if(arr[i]<arr[i-1]) return false;\n }\n return true;\n }", "for(int i=1;i<n;i++){\n if(arr[i]<arr[i-1]) return false;\n }", "int i=1;", "int i=1;", "i", "1", "i<n", "i", "n", "i++", "i++", "i", "{\n if(arr[i]<arr[i-1]) return false;\n }", "{\n if(arr[i]<arr[i-1]) return false;\n }", "if(arr[i]<arr[i-1]) return false;", "arr[i]<arr[i-1]", "arr[i]", "arr", "i", "arr[i-1]", "arr", "i-1", "i", "1", "return false;", "false", "return true;", "true", "int[] arr", "arr", "int n", "n", "static boolean isPrime(long n){\n if(n==2) return true;\n else if(n%2==0) return false;\n for(int i=3;i<=n/2;i+=2){\n if(n%i==0) return false;\n }\n return true;\n }", "isPrime", "{\n if(n==2) return true;\n else if(n%2==0) return false;\n for(int i=3;i<=n/2;i+=2){\n if(n%i==0) return false;\n }\n return true;\n }", "if(n==2) return true;\n else if(n%2==0) return false;", "n==2", "n", "2", "return true;", "true", "if(n%2==0) return false;", "n%2==0", "n%2", "n", "2", "0", "return false;", "false", "for(int i=3;i<=n/2;i+=2){\n if(n%i==0) return false;\n }", "int i=3;", "int i=3;", "i", "3", "i<=n/2", "i", "n/2", "n", "2", "i+=2", "i+=2", "i", "2", "{\n if(n%i==0) return false;\n }", "{\n if(n%i==0) return false;\n }", "if(n%i==0) return false;", "n%i==0", "n%i", "n", "i", "0", "return false;", "false", "return true;", "true", "long n", "n", "static boolean isPrime(int n){\n if(n==2) return true;\n else if(n%2==0) return false;\n for(int i=3;i<=n/2;i+=2){\n if(n%i==0) return false;\n }\n return true;\n }", "isPrime", "{\n if(n==2) return true;\n else if(n%2==0) return false;\n for(int i=3;i<=n/2;i+=2){\n if(n%i==0) return false;\n }\n return true;\n }", "if(n==2) return true;\n else if(n%2==0) return false;", "n==2", "n", "2", "return true;", "true", "if(n%2==0) return false;", "n%2==0", "n%2", "n", "2", "0", "return false;", "false", "for(int i=3;i<=n/2;i+=2){\n if(n%i==0) return false;\n }", "int i=3;", "int i=3;", "i", "3", "i<=n/2", "i", "n/2", "n", "2", "i+=2", "i+=2", "i", "2", "{\n if(n%i==0) return false;\n }", "{\n if(n%i==0) return false;\n }", "if(n%i==0) return false;", "n%i==0", "n%i", "n", "i", "0", "return false;", "false", "return true;", "true", "int n", "n", "static void printArray(int[] arr){\n for(int x:arr){\n System.out.print(x+\" \");\n }\n System.out.println();\n }", "printArray", "{\n for(int x:arr){\n System.out.print(x+\" \");\n }\n System.out.println();\n }", "for(int x:arr){\n System.out.print(x+\" \");\n }", "int x", "arr", "{\n System.out.print(x+\" \");\n }", "{\n System.out.print(x+\" \");\n }", "System.out.print(x+\" \")", "System.out.print", "System.out", "System", "System.out", "x+\" \"", "x", "\" \"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "int[] arr", "arr", "static long Fact(int n){\n //int p=1000000007;\n long result = 1;\n for (int i = 1; i <= n; i++) result = (result*i);\n //for (int i = 1; i <= n; i++) result = (result*i)%p;\n return result;\n }", "Fact", "{\n //int p=1000000007;\n long result = 1;\n for (int i = 1; i <= n; i++) result = (result*i);\n //for (int i = 1; i <= n; i++) result = (result*i)%p;\n return result;\n }", "long result = 1;", "result", "1", "for (int i = 1; i <= n; i++) result = (result*i);", "int i = 1;", "int i = 1;", "i", "1", "i <= n", "i", "n", "i++", "i++", "i", "result = (result*i);", "result = (result*i)", "result", "(result*i)", "result", "i", "return result;", "result", "int n", "n", "static int findLargestDiv(int n){\n if(n%2==0) return n/2;\n else{\n for(int i=3;i<=n/2;i+=2){\n if(n%i==0) return n/i;\n }\n }\n return 1;\n }", "findLargestDiv", "{\n if(n%2==0) return n/2;\n else{\n for(int i=3;i<=n/2;i+=2){\n if(n%i==0) return n/i;\n }\n }\n return 1;\n }", "if(n%2==0) return n/2;\n else{\n for(int i=3;i<=n/2;i+=2){\n if(n%i==0) return n/i;\n }\n }", "n%2==0", "n%2", "n", "2", "0", "return n/2;", "n/2", "n", "2", "{\n for(int i=3;i<=n/2;i+=2){\n if(n%i==0) return n/i;\n }\n }", "for(int i=3;i<=n/2;i+=2){\n if(n%i==0) return n/i;\n }", "int i=3;", "int i=3;", "i", "3", "i<=n/2", "i", "n/2", "n", "2", "i+=2", "i+=2", "i", "2", "{\n if(n%i==0) return n/i;\n }", "{\n if(n%i==0) return n/i;\n }", "if(n%i==0) return n/i;", "n%i==0", "n%i", "n", "i", "0", "return n/i;", "n/i", "n", "i", "return 1;", "1", "int n", "n", "public static void main(String[] args) throws NumberFormatException, IOException {\n FastReader s = new FastReader();\n String str = s.nextLine();\n int count=0,ans=0;\n for(int i=0;i<str.length();i++){\n if(str.charAt(i)=='R'){\n count++;\n if(i==(2)) ans=Math.max(ans,count);\n }\n else{\n ans=Math.max(ans,count);\n count=0;\n }\n }\n System.out.println(ans);\n }", "main", "{\n FastReader s = new FastReader();\n String str = s.nextLine();\n int count=0,ans=0;\n for(int i=0;i<str.length();i++){\n if(str.charAt(i)=='R'){\n count++;\n if(i==(2)) ans=Math.max(ans,count);\n }\n else{\n ans=Math.max(ans,count);\n count=0;\n }\n }\n System.out.println(ans);\n }", "FastReader s = new FastReader();", "s", "new FastReader()", "String str = s.nextLine();", "str", "s.nextLine()", "s.nextLine", "s", "int count=0", "count", "0", "ans=0;", "ans", "0", "for(int i=0;i<str.length();i++){\n if(str.charAt(i)=='R'){\n count++;\n if(i==(2)) ans=Math.max(ans,count);\n }\n else{\n ans=Math.max(ans,count);\n count=0;\n }\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 if(i==(2)) ans=Math.max(ans,count);\n }\n else{\n ans=Math.max(ans,count);\n count=0;\n }\n }", "{\n if(str.charAt(i)=='R'){\n count++;\n if(i==(2)) ans=Math.max(ans,count);\n }\n else{\n ans=Math.max(ans,count);\n count=0;\n }\n }", "if(str.charAt(i)=='R'){\n count++;\n if(i==(2)) ans=Math.max(ans,count);\n }\n else{\n ans=Math.max(ans,count);\n count=0;\n }", "str.charAt(i)=='R'", "str.charAt(i)", "str.charAt", "str", "i", "'R'", "{\n count++;\n if(i==(2)) ans=Math.max(ans,count);\n }", "count++", "count", "if(i==(2)) ans=Math.max(ans,count);", "i==(2)", "i", "(2)", "ans=Math.max(ans,count)", "ans", "Math.max(ans,count)", "Math.max", "Math", "ans", "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", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "static class FastReader{\n BufferedReader br;\n StringTokenizer st;\n public FastReader(){br = new BufferedReader(new InputStreamReader(System.in));}\n String next(){while (st == null || !st.hasMoreElements()){try{st = new StringTokenizer(br.readLine());}catch (IOException e){e.printStackTrace();}}return st.nextToken();}\n int nextInt(){return Integer.parseInt(next());}\n long nextLong(){return Long.parseLong(next());}\n double nextDouble(){return Double.parseDouble(next());}\n int[] readArray(int n){int[] a=new int[n];for (int i=0; i<n; i++) a[i]=nextInt();return a;}\n long[] readLongArray(int n){long[] a=new long[n];for (int i=0; i<n; i++) a[i]=nextLong();return a;}\n String nextLine(){String str = \"\";try{str = br.readLine();}catch (IOException e){e.printStackTrace();}return str;}\n }", "FastReader", "BufferedReader br;", "br", "StringTokenizer st;", "st", "public FastReader(){br = new BufferedReader(new InputStreamReader(System.in));}", "FastReader", "{br = new BufferedReader(new InputStreamReader(System.in));}", "br = new BufferedReader(new InputStreamReader(System.in))", "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();}", "next", "{while (st == null || !st.hasMoreElements()){try{st = new StringTokenizer(br.readLine());}catch (IOException e){e.printStackTrace();}}return st.nextToken();}", "while (st == null || !st.hasMoreElements()){try{st = new StringTokenizer(br.readLine());}catch (IOException e){e.printStackTrace();}}", "st == null || !st.hasMoreElements()", "st == null", "st", "null", "!st.hasMoreElements()", "st.hasMoreElements()", "st.hasMoreElements", "st", "{try{st = new StringTokenizer(br.readLine());}catch (IOException e){e.printStackTrace();}}", "try{st = new StringTokenizer(br.readLine());}catch (IOException e){e.printStackTrace();}", "catch (IOException e){e.printStackTrace();}", "IOException e", "{e.printStackTrace();}", "e.printStackTrace()", "e.printStackTrace", "e", "{st = new StringTokenizer(br.readLine());}", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "int nextInt(){return Integer.parseInt(next());}", "nextInt", "{return Integer.parseInt(next());}", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "long nextLong(){return Long.parseLong(next());}", "nextLong", "{return Long.parseLong(next());}", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "double nextDouble(){return Double.parseDouble(next());}", "nextDouble", "{return Double.parseDouble(next());}", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "int[] readArray(int n){int[] a=new int[n];for (int i=0; i<n; i++) a[i]=nextInt();return a;}", "readArray", "{int[] a=new int[n];for (int i=0; i<n; i++) a[i]=nextInt();return a;}", "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[] readLongArray(int n){long[] a=new long[n];for (int i=0; i<n; i++) a[i]=nextLong();return a;}", "readLongArray", "{long[] a=new long[n];for (int i=0; i<n; i++) a[i]=nextLong();return a;}", "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", "String nextLine(){String str = \"\";try{str = br.readLine();}catch (IOException e){e.printStackTrace();}return str;}", "nextLine", "{String str = \"\";try{str = br.readLine();}catch (IOException e){e.printStackTrace();}return str;}", "String str = \"\";", "str", "\"\"", "try{str = br.readLine();}catch (IOException e){e.printStackTrace();}", "catch (IOException e){e.printStackTrace();}", "IOException e", "{e.printStackTrace();}", "e.printStackTrace()", "e.printStackTrace", "e", "{str = br.readLine();}", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "return str;", "str", "public class Main{\n final static String alpha = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".toLowerCase();//.toCharArray();\n static class FastReader{\n BufferedReader br;\n StringTokenizer st;\n public FastReader(){br = new BufferedReader(new InputStreamReader(System.in));}\n String next(){while (st == null || !st.hasMoreElements()){try{st = new StringTokenizer(br.readLine());}catch (IOException e){e.printStackTrace();}}return st.nextToken();}\n int nextInt(){return Integer.parseInt(next());}\n long nextLong(){return Long.parseLong(next());}\n double nextDouble(){return Double.parseDouble(next());}\n int[] readArray(int n){int[] a=new int[n];for (int i=0; i<n; i++) a[i]=nextInt();return a;}\n long[] readLongArray(int n){long[] a=new long[n];for (int i=0; i<n; i++) a[i]=nextLong();return a;}\n String nextLine(){String str = \"\";try{str = br.readLine();}catch (IOException e){e.printStackTrace();}return str;}\n }\n static int getGcd(int n1,int n2){\n while(n1 != n2){\n if(n1 > n2) n1 -= n2;\n else n2 -= n1;\n }\n return n1;\n }\n static boolean isSorted(int[] arr, int n){\n for(int i=1;i<n;i++){\n if(arr[i]<arr[i-1]) return false;\n }\n return true;\n }\n static boolean isPrime(long n){\n if(n==2) return true;\n else if(n%2==0) return false;\n for(int i=3;i<=n/2;i+=2){\n if(n%i==0) return false;\n }\n return true;\n }\n static boolean isPrime(int n){\n if(n==2) return true;\n else if(n%2==0) return false;\n for(int i=3;i<=n/2;i+=2){\n if(n%i==0) return false;\n }\n return true;\n }\n static void printArray(int[] arr){\n for(int x:arr){\n System.out.print(x+\" \");\n }\n System.out.println();\n }\n static long Fact(int n){\n //int p=1000000007;\n long result = 1;\n for (int i = 1; i <= n; i++) result = (result*i);\n //for (int i = 1; i <= n; i++) result = (result*i)%p;\n return result;\n }\n static int findLargestDiv(int n){\n if(n%2==0) return n/2;\n else{\n for(int i=3;i<=n/2;i+=2){\n if(n%i==0) return n/i;\n }\n }\n return 1;\n }\n public static void main(String[] args) throws NumberFormatException, IOException {\n FastReader s = new FastReader();\n String str = s.nextLine();\n int count=0,ans=0;\n for(int i=0;i<str.length();i++){\n if(str.charAt(i)=='R'){\n count++;\n if(i==(2)) ans=Math.max(ans,count);\n }\n else{\n ans=Math.max(ans,count);\n count=0;\n }\n }\n System.out.println(ans);\n }\n}", "public class Main{\n final static String alpha = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".toLowerCase();//.toCharArray();\n static class FastReader{\n BufferedReader br;\n StringTokenizer st;\n public FastReader(){br = new BufferedReader(new InputStreamReader(System.in));}\n String next(){while (st == null || !st.hasMoreElements()){try{st = new StringTokenizer(br.readLine());}catch (IOException e){e.printStackTrace();}}return st.nextToken();}\n int nextInt(){return Integer.parseInt(next());}\n long nextLong(){return Long.parseLong(next());}\n double nextDouble(){return Double.parseDouble(next());}\n int[] readArray(int n){int[] a=new int[n];for (int i=0; i<n; i++) a[i]=nextInt();return a;}\n long[] readLongArray(int n){long[] a=new long[n];for (int i=0; i<n; i++) a[i]=nextLong();return a;}\n String nextLine(){String str = \"\";try{str = br.readLine();}catch (IOException e){e.printStackTrace();}return str;}\n }\n static int getGcd(int n1,int n2){\n while(n1 != n2){\n if(n1 > n2) n1 -= n2;\n else n2 -= n1;\n }\n return n1;\n }\n static boolean isSorted(int[] arr, int n){\n for(int i=1;i<n;i++){\n if(arr[i]<arr[i-1]) return false;\n }\n return true;\n }\n static boolean isPrime(long n){\n if(n==2) return true;\n else if(n%2==0) return false;\n for(int i=3;i<=n/2;i+=2){\n if(n%i==0) return false;\n }\n return true;\n }\n static boolean isPrime(int n){\n if(n==2) return true;\n else if(n%2==0) return false;\n for(int i=3;i<=n/2;i+=2){\n if(n%i==0) return false;\n }\n return true;\n }\n static void printArray(int[] arr){\n for(int x:arr){\n System.out.print(x+\" \");\n }\n System.out.println();\n }\n static long Fact(int n){\n //int p=1000000007;\n long result = 1;\n for (int i = 1; i <= n; i++) result = (result*i);\n //for (int i = 1; i <= n; i++) result = (result*i)%p;\n return result;\n }\n static int findLargestDiv(int n){\n if(n%2==0) return n/2;\n else{\n for(int i=3;i<=n/2;i+=2){\n if(n%i==0) return n/i;\n }\n }\n return 1;\n }\n public static void main(String[] args) throws NumberFormatException, IOException {\n FastReader s = new FastReader();\n String str = s.nextLine();\n int count=0,ans=0;\n for(int i=0;i<str.length();i++){\n if(str.charAt(i)=='R'){\n count++;\n if(i==(2)) ans=Math.max(ans,count);\n }\n else{\n ans=Math.max(ans,count);\n count=0;\n }\n }\n System.out.println(ans);\n }\n}", "Main" ]
import java.io.*; import java.util.*; public class Main{ final static String alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".toLowerCase();//.toCharArray(); 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());} int[] readArray(int n){int[] a=new int[n];for (int i=0; i<n; i++) a[i]=nextInt();return a;} long[] readLongArray(int n){long[] a=new long[n];for (int i=0; i<n; i++) a[i]=nextLong();return a;} String nextLine(){String str = "";try{str = br.readLine();}catch (IOException e){e.printStackTrace();}return str;} } static int getGcd(int n1,int n2){ while(n1 != n2){ if(n1 > n2) n1 -= n2; else n2 -= n1; } return n1; } static boolean isSorted(int[] arr, int n){ for(int i=1;i<n;i++){ if(arr[i]<arr[i-1]) return false; } return true; } static boolean isPrime(long n){ if(n==2) return true; else if(n%2==0) return false; for(int i=3;i<=n/2;i+=2){ if(n%i==0) return false; } return true; } static boolean isPrime(int n){ if(n==2) return true; else if(n%2==0) return false; for(int i=3;i<=n/2;i+=2){ if(n%i==0) return false; } return true; } static void printArray(int[] arr){ for(int x:arr){ System.out.print(x+" "); } System.out.println(); } static long Fact(int n){ //int p=1000000007; long result = 1; for (int i = 1; i <= n; i++) result = (result*i); //for (int i = 1; i <= n; i++) result = (result*i)%p; return result; } static int findLargestDiv(int n){ if(n%2==0) return n/2; else{ for(int i=3;i<=n/2;i+=2){ if(n%i==0) return n/i; } } return 1; } public static void main(String[] args) throws NumberFormatException, IOException { FastReader s = new FastReader(); String str = s.nextLine(); int count=0,ans=0; for(int i=0;i<str.length();i++){ if(str.charAt(i)=='R'){ count++; if(i==(2)) ans=Math.max(ans,count); } else{ ans=Math.max(ans,count); count=0; } } System.out.println(ans); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 14, 2, 13, 17, 29, 13, 41, 13, 2, 13, 13, 29, 4, 13, 13, 13, 23, 13, 23, 13, 12, 13, 30, 29, 2, 2, 13, 13, 4, 13, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 18, 13, 13, 41, 13, 18, 13, 13, 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, 4, 18, 13, 4, 18, 13, 13, 13, 4, 18, 13, 23, 13, 6, 13, 41, 13, 41, 13, 20, 17, 41, 13, 41, 13, 41, 13, 41, 13, 20, 12, 13, 30, 0, 18, 36, 13, 13, 23, 13, 12, 13, 30, 14, 2, 13, 40, 17, 37, 20, 14, 2, 13, 13, 30, 0, 13, 17, 38, 5, 13, 30, 37, 20, 30, 0, 13, 4, 18, 13, 13, 14, 2, 13, 17, 29, 40, 17, 29, 18, 13, 40, 13, 12, 13, 30, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 29, 13, 12, 13, 30, 41, 13, 4, 13, 42, 4, 13, 13, 0, 13, 4, 13, 41, 13, 17, 14, 2, 13, 17, 30, 0, 13, 40, 17, 0, 13, 4, 13, 41, 13, 17, 42, 40, 4, 13, 13, 30, 14, 2, 2, 13, 17, 2, 13, 17, 37, 20, 0, 13, 17, 0, 13, 2, 13, 17, 0, 13, 4, 13, 29, 2, 13, 13, 12, 13, 30, 41, 13, 4, 13, 42, 4, 13, 13, 0, 13, 4, 13, 41, 13, 17, 14, 2, 13, 17, 30, 0, 13, 40, 17, 0, 13, 4, 13, 41, 13, 17, 42, 40, 4, 13, 13, 30, 14, 2, 2, 13, 17, 2, 13, 17, 37, 20, 0, 13, 17, 0, 13, 2, 13, 17, 0, 13, 4, 13, 29, 2, 13, 13, 12, 13, 30, 41, 13, 4, 13, 42, 4, 13, 13, 0, 13, 4, 13, 41, 13, 17, 14, 2, 13, 17, 30, 0, 13, 40, 17, 0, 13, 4, 13, 41, 13, 17, 42, 2, 40, 4, 13, 13, 2, 13, 17, 30, 14, 2, 2, 13, 17, 2, 13, 17, 29, 2, 13, 4, 18, 13, 17, 4, 13, 14, 2, 2, 13, 17, 2, 13, 17, 37, 20, 0, 13, 17, 0, 13, 2, 13, 17, 0, 13, 4, 13, 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, 29, 2, 13, 4, 18, 13, 17, 4, 13, 14, 2, 2, 13, 17, 2, 13, 17, 37, 20, 0, 13, 17, 0, 13, 2, 2, 13, 17, 13, 0, 13, 4, 13, 29, 2, 13, 13, 12, 13, 30, 41, 13, 4, 13, 42, 4, 13, 13, 0, 13, 4, 13, 41, 13, 20, 42, 40, 4, 13, 13, 30, 4, 18, 13, 13, 0, 13, 4, 13, 29, 4, 18, 13, 12, 13, 30, 14, 2, 13, 17, 29, 4, 18, 13, 13, 29, 2, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 40, 17, 23, 13, 12, 13, 30, 29, 4, 13, 6, 13, 12, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 12, 13, 30, 0, 18, 36, 13, 13, 23, 13, 12, 13, 30, 0, 18, 36, 13, 13, 0, 18, 36, 13, 13, 23, 13, 23, 13, 6, 13, 41, 13, 41, 13, 41, 13, 12, 13, 30, 12, 13, 30, 0, 18, 36, 13, 13, 23, 13, 12, 13, 30, 0, 18, 36, 13, 13, 0, 18, 36, 13, 13, 0, 18, 36, 13, 13, 23, 13, 23, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 12, 13, 30, 0, 13, 13, 23, 13, 12, 13, 30, 0, 13, 13, 0, 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 ], [ 693, 11 ], [ 693, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 15, 19 ], [ 19, 20 ], [ 14, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 23, 25 ], [ 14, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 27, 30 ], [ 12, 31 ], [ 31, 32 ], [ 12, 33 ], [ 33, 34 ], [ 693, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 43, 44 ], [ 43, 45 ], [ 43, 46 ], [ 35, 47 ], [ 47, 48 ], [ 35, 49 ], [ 49, 50 ], [ 693, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 56, 58 ], [ 53, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 61, 63 ], [ 53, 64 ], [ 64, 65 ], [ 64, 66 ], [ 53, 67 ], [ 67, 68 ], [ 67, 69 ], [ 53, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 73, 74 ], [ 53, 75 ], [ 75, 76 ], [ 75, 77 ], [ 53, 78 ], [ 78, 79 ], [ 78, 80 ], [ 53, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 89, 90 ], [ 81, 91 ], [ 91, 92 ], [ 92, 93 ], [ 81, 94 ], [ 95, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 98, 101 ], [ 97, 102 ], [ 96, 103 ], [ 103, 104 ], [ 96, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 109, 110 ], [ 108, 111 ], [ 108, 112 ], [ 105, 113 ], [ 113, 114 ], [ 113, 115 ], [ 53, 116 ], [ 116, 117 ], [ 117, 118 ], [ 116, 119 ], [ 119, 120 ], [ 120, 121 ], [ 119, 122 ], [ 119, 123 ], [ 53, 124 ], [ 124, 125 ], [ 125, 126 ], [ 51, 127 ], [ 127, 128 ], [ 693, 129 ], [ 129, 130 ], [ 129, 131 ], [ 131, 132 ], [ 129, 133 ], [ 133, 134 ], [ 133, 135 ], [ 129, 137 ], [ 137, 138 ], [ 129, 139 ], [ 139, 140 ], [ 129, 141 ], [ 141, 142 ], [ 129, 143 ], [ 143, 144 ], [ 143, 145 ], [ 129, 146 ], [ 146, 147 ], [ 146, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 149, 153 ], [ 146, 154 ], [ 154, 155 ], [ 129, 156 ], [ 156, 157 ], [ 156, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 160, 162 ], [ 162, 163 ], [ 159, 164 ], [ 164, 165 ], [ 158, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 166, 170 ], [ 170, 171 ], [ 171, 172 ], [ 171, 173 ], [ 170, 174 ], [ 174, 175 ], [ 175, 176 ], [ 175, 177 ], [ 177, 178 ], [ 178, 179 ], [ 174, 180 ], [ 180, 181 ], [ 181, 182 ], [ 181, 183 ], [ 183, 184 ], [ 184, 185 ], [ 183, 186 ], [ 170, 187 ], [ 187, 188 ], [ 188, 189 ], [ 188, 190 ], [ 187, 191 ], [ 191, 192 ], [ 192, 193 ], [ 158, 194 ], [ 194, 195 ], [ 195, 196 ], [ 195, 197 ], [ 197, 198 ], [ 129, 199 ], [ 199, 200 ], [ 199, 201 ], [ 201, 202 ], [ 202, 203 ], [ 202, 204 ], [ 201, 205 ], [ 205, 206 ], [ 206, 207 ], [ 206, 208 ], [ 208, 209 ], [ 209, 210 ], [ 210, 211 ], [ 205, 212 ], [ 212, 213 ], [ 213, 214 ], [ 213, 215 ], [ 215, 216 ], [ 216, 217 ], [ 201, 218 ], [ 218, 219 ], [ 129, 220 ], [ 220, 221 ], [ 220, 222 ], [ 222, 223 ], [ 223, 224 ], [ 223, 225 ], [ 225, 226 ], [ 222, 227 ], [ 227, 228 ], [ 228, 229 ], [ 228, 230 ], [ 227, 231 ], [ 231, 232 ], [ 231, 233 ], [ 233, 234 ], [ 222, 235 ], [ 235, 236 ], [ 235, 237 ], [ 222, 238 ], [ 238, 239 ], [ 239, 240 ], [ 239, 241 ], [ 238, 242 ], [ 242, 243 ], [ 243, 244 ], [ 243, 245 ], [ 245, 246 ], [ 242, 247 ], [ 247, 248 ], [ 247, 249 ], [ 249, 250 ], [ 222, 251 ], [ 251, 252 ], [ 251, 253 ], [ 222, 254 ], [ 254, 255 ], [ 255, 256 ], [ 256, 257 ], [ 256, 258 ], [ 254, 259 ], [ 259, 260 ], [ 260, 261 ], [ 261, 262 ], [ 262, 263 ], [ 262, 264 ], [ 261, 265 ], [ 265, 266 ], [ 265, 267 ], [ 260, 268 ], [ 268, 269 ], [ 259, 270 ], [ 270, 271 ], [ 270, 272 ], [ 259, 273 ], [ 273, 274 ], [ 273, 275 ], [ 275, 276 ], [ 275, 277 ], [ 259, 278 ], [ 278, 279 ], [ 278, 280 ], [ 280, 281 ], [ 222, 282 ], [ 282, 283 ], [ 283, 284 ], [ 283, 285 ], [ 129, 286 ], [ 286, 287 ], [ 286, 288 ], [ 288, 289 ], [ 289, 290 ], [ 289, 291 ], [ 291, 292 ], [ 288, 293 ], [ 293, 294 ], [ 294, 295 ], [ 294, 296 ], [ 293, 297 ], [ 297, 298 ], [ 297, 299 ], [ 299, 300 ], [ 288, 301 ], [ 301, 302 ], [ 301, 303 ], [ 288, 304 ], [ 304, 305 ], [ 305, 306 ], [ 305, 307 ], [ 304, 308 ], [ 308, 309 ], [ 309, 310 ], [ 309, 311 ], [ 311, 312 ], [ 308, 313 ], [ 313, 314 ], [ 313, 315 ], [ 315, 316 ], [ 288, 317 ], [ 317, 318 ], [ 317, 319 ], [ 288, 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 ], [ 325, 336 ], [ 336, 337 ], [ 336, 338 ], [ 325, 339 ], [ 339, 340 ], [ 339, 341 ], [ 341, 342 ], [ 341, 343 ], [ 325, 344 ], [ 344, 345 ], [ 344, 346 ], [ 346, 347 ], [ 288, 348 ], [ 348, 349 ], [ 349, 350 ], [ 349, 351 ], [ 129, 352 ], [ 352, 353 ], [ 352, 354 ], [ 354, 355 ], [ 355, 356 ], [ 355, 357 ], [ 357, 358 ], [ 354, 359 ], [ 359, 360 ], [ 360, 361 ], [ 360, 362 ], [ 359, 363 ], [ 363, 364 ], [ 363, 365 ], [ 365, 366 ], [ 354, 367 ], [ 367, 368 ], [ 367, 369 ], [ 354, 370 ], [ 370, 371 ], [ 371, 372 ], [ 371, 373 ], [ 370, 374 ], [ 374, 375 ], [ 375, 376 ], [ 375, 377 ], [ 377, 378 ], [ 374, 379 ], [ 379, 380 ], [ 379, 381 ], [ 381, 382 ], [ 354, 383 ], [ 383, 384 ], [ 383, 385 ], [ 354, 386 ], [ 386, 387 ], [ 387, 388 ], [ 388, 389 ], [ 389, 390 ], [ 389, 391 ], [ 387, 392 ], [ 392, 393 ], [ 392, 394 ], [ 386, 395 ], [ 395, 396 ], [ 396, 397 ], [ 397, 398 ], [ 398, 399 ], [ 398, 400 ], [ 397, 401 ], [ 401, 402 ], [ 401, 403 ], [ 396, 404 ], [ 404, 405 ], [ 405, 406 ], [ 405, 407 ], [ 407, 408 ], [ 408, 409 ], [ 407, 410 ], [ 407, 411 ], [ 411, 412 ], [ 395, 413 ], [ 413, 414 ], [ 414, 415 ], [ 415, 416 ], [ 415, 417 ], [ 414, 418 ], [ 418, 419 ], [ 418, 420 ], [ 413, 421 ], [ 421, 422 ], [ 395, 423 ], [ 423, 424 ], [ 423, 425 ], [ 395, 426 ], [ 426, 427 ], [ 426, 428 ], [ 428, 429 ], [ 428, 430 ], [ 395, 431 ], [ 431, 432 ], [ 431, 433 ], [ 433, 434 ], [ 354, 435 ], [ 435, 436 ], [ 436, 437 ], [ 436, 438 ], [ 435, 439 ], [ 439, 440 ], [ 440, 441 ], [ 440, 442 ], [ 442, 443 ], [ 439, 444 ], [ 444, 445 ], [ 444, 446 ], [ 439, 447 ], [ 447, 448 ], [ 448, 449 ], [ 449, 450 ], [ 449, 451 ], [ 447, 452 ], [ 452, 453 ], [ 453, 454 ], [ 454, 455 ], [ 455, 456 ], [ 455, 457 ], [ 454, 458 ], [ 458, 459 ], [ 458, 460 ], [ 453, 461 ], [ 461, 462 ], [ 462, 463 ], [ 462, 464 ], [ 464, 465 ], [ 465, 466 ], [ 464, 467 ], [ 464, 468 ], [ 468, 469 ], [ 452, 470 ], [ 470, 471 ], [ 471, 472 ], [ 472, 473 ], [ 472, 474 ], [ 471, 475 ], [ 475, 476 ], [ 475, 477 ], [ 470, 478 ], [ 478, 479 ], [ 452, 480 ], [ 480, 481 ], [ 480, 482 ], [ 452, 483 ], [ 483, 484 ], [ 483, 485 ], [ 485, 486 ], [ 486, 487 ], [ 486, 488 ], [ 485, 489 ], [ 452, 490 ], [ 490, 491 ], [ 490, 492 ], [ 492, 493 ], [ 354, 494 ], [ 494, 495 ], [ 495, 496 ], [ 495, 497 ], [ 129, 498 ], [ 498, 499 ], [ 498, 500 ], [ 500, 501 ], [ 501, 502 ], [ 501, 503 ], [ 503, 504 ], [ 500, 505 ], [ 505, 506 ], [ 506, 507 ], [ 506, 508 ], [ 505, 509 ], [ 509, 510 ], [ 509, 511 ], [ 511, 512 ], [ 500, 513 ], [ 513, 514 ], [ 513, 515 ], [ 500, 516 ], [ 516, 517 ], [ 517, 518 ], [ 518, 519 ], [ 518, 520 ], [ 516, 521 ], [ 521, 522 ], [ 522, 523 ], [ 523, 524 ], [ 522, 525 ], [ 521, 526 ], [ 526, 527 ], [ 526, 528 ], [ 528, 529 ], [ 500, 530 ], [ 530, 531 ], [ 531, 532 ], [ 532, 533 ], [ 129, 534 ], [ 534, 535 ], [ 534, 536 ], [ 536, 537 ], [ 537, 538 ], [ 538, 539 ], [ 538, 540 ], [ 537, 541 ], [ 541, 542 ], [ 542, 543 ], [ 543, 544 ], [ 542, 545 ], [ 536, 546 ], [ 546, 547 ], [ 550, 548 ], [ 560, 549 ], [ 557, 550 ], [ 550, 551 ], [ 551, 552 ], [ 551, 553 ], [ 550, 554 ], [ 554, 555 ], [ 554, 556 ], [ 557, 557 ], [ 557, 558 ], [ 557, 559 ], [ 560, 560 ], [ 560, 561 ], [ 560, 562 ], [ 550, 563 ], [ 563, 564 ], [ 563, 565 ], [ 565, 566 ], [ 534, 567 ], [ 567, 568 ], [ 129, 569 ], [ 569, 570 ], [ 569, 571 ], [ 571, 572 ], [ 572, 573 ], [ 573, 574 ], [ 129, 575 ], [ 575, 576 ], [ 575, 577 ], [ 577, 578 ], [ 577, 579 ], [ 579, 580 ], [ 693, 581 ], [ 581, 582 ], [ 581, 583 ], [ 583, 584 ], [ 581, 585 ], [ 585, 586 ], [ 581, 587 ], [ 587, 588 ], [ 587, 589 ], [ 581, 590 ], [ 590, 591 ], [ 590, 592 ], [ 592, 593 ], [ 593, 594 ], [ 594, 595 ], [ 594, 596 ], [ 593, 597 ], [ 590, 598 ], [ 598, 599 ], [ 581, 600 ], [ 600, 601 ], [ 600, 602 ], [ 602, 603 ], [ 603, 604 ], [ 604, 605 ], [ 604, 606 ], [ 603, 607 ], [ 602, 608 ], [ 608, 609 ], [ 609, 610 ], [ 609, 611 ], [ 608, 612 ], [ 600, 613 ], [ 613, 614 ], [ 600, 615 ], [ 615, 616 ], [ 693, 617 ], [ 617, 618 ], [ 617, 619 ], [ 619, 620 ], [ 617, 621 ], [ 621, 622 ], [ 617, 623 ], [ 623, 624 ], [ 617, 625 ], [ 625, 626 ], [ 625, 627 ], [ 617, 628 ], [ 628, 629 ], [ 628, 630 ], [ 630, 631 ], [ 631, 632 ], [ 632, 633 ], [ 632, 634 ], [ 631, 635 ], [ 628, 636 ], [ 636, 637 ], [ 617, 638 ], [ 638, 639 ], [ 638, 640 ], [ 640, 641 ], [ 641, 642 ], [ 642, 643 ], [ 642, 644 ], [ 641, 645 ], [ 640, 646 ], [ 646, 647 ], [ 647, 648 ], [ 647, 649 ], [ 646, 650 ], [ 640, 651 ], [ 651, 652 ], [ 652, 653 ], [ 652, 654 ], [ 651, 655 ], [ 638, 656 ], [ 656, 657 ], [ 638, 658 ], [ 658, 659 ], [ 638, 660 ], [ 660, 661 ], [ 693, 662 ], [ 662, 663 ], [ 662, 664 ], [ 664, 665 ], [ 662, 666 ], [ 666, 667 ], [ 662, 668 ], [ 668, 669 ], [ 668, 670 ], [ 662, 671 ], [ 671, 672 ], [ 671, 673 ], [ 673, 674 ], [ 674, 675 ], [ 674, 676 ], [ 671, 677 ], [ 677, 678 ], [ 662, 679 ], [ 679, 680 ], [ 679, 681 ], [ 681, 682 ], [ 682, 683 ], [ 682, 684 ], [ 681, 685 ], [ 685, 686 ], [ 685, 687 ], [ 679, 688 ], [ 688, 689 ], [ 679, 690 ], [ 690, 691 ], [ 0, 692 ], [ 692, 693 ], [ 692, 694 ] ]
[ "import java.util.*;\nimport java.lang.*;\nimport java.io.*;\n/* Name of the class has to be \"Main\" only if the class is public. */\npublic class Main {\n // Complete the maximumSum function below.\n public static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private SpaceCharFilter filter;\n private BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\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\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public 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 int nextInt() {\n int c = read();\n\n while (isSpaceChar(c))\n c = read();\n\n int sgn = 1;\n\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n\n int res = 0;\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public double nextDouble() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n double res = 0;\n while (!isSpaceChar(c) && c != '.') {\n if (c == 'e' || c == 'E')\n return res * Math.pow(10, nextInt());\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n if (c == '.') {\n c = read();\n double m = 1;\n while (!isSpaceChar(c)) {\n if (c == 'e' || c == 'E')\n return res * Math.pow(10, nextInt());\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n m /= 10;\n res += (c - '0') * m;\n c = read();\n }\n }\n return res * sgn;\n }\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n }\n while (!isSpaceChar(c));\n\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null)\n return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public String next() {\n return readString();\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n }\n }\n\n\n public static long gcd(long a, long b) {\n if (b == 0)\n return a;\n long r = a % b;\n return gcd(b, r);\n }\n\n static long lcm(long a, long b) {\n return (a * b) / gcd(a, b);\n }\n\n\n public class ListNode {\n int val;\n ListNode next;\n\n ListNode() {\n }\n\n ListNode(int val) {\n this.val = val;\n }\n\n ListNode(int val, ListNode next) {\n this.val = val;\n this.next = next;\n }\n }\n\n public class TreeNode {\n int val;\n TreeNode left;\n TreeNode right;\n\n TreeNode() {\n }\n\n TreeNode(int val) {\n this.val = val;\n }\n\n TreeNode(int val, TreeNode left, TreeNode right) {\n this.val = val;\n this.left = left;\n this.right = right;\n }\n }\n\n class Node {\n public int val;\n public List<Node> children;\n\n public Node() {\n }\n\n public Node(int _val) {\n val = _val;\n }\n\n public Node(int _val, List<Node> _children) {\n val = _val;\n children = _children;\n }\n }\n\n\n public static void main(String[] args) throws IOException {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader scanner = new InputReader(inputStream);\n PrintWriter w = new PrintWriter(outputStream);\n String p=scanner.next();\n int max=0;\n int l=0;\n for(int i=0;i<p.length();i++){\n if(p.charAt(i)=='R')\n l++;\n else {\n max=Math.max(l,max);\n l=0;\n }\n }\n w.println(Math.max(max,l));\n w.close();\n }\n}", "import java.util.*;", "util.*", "java", "import java.lang.*;", "lang.*", "java", "import java.io.*;", "io.*", "java", "public class Main {\n // Complete the maximumSum function below.\n public static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private SpaceCharFilter filter;\n private BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\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\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public 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 int nextInt() {\n int c = read();\n\n while (isSpaceChar(c))\n c = read();\n\n int sgn = 1;\n\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n\n int res = 0;\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public double nextDouble() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n double res = 0;\n while (!isSpaceChar(c) && c != '.') {\n if (c == 'e' || c == 'E')\n return res * Math.pow(10, nextInt());\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n if (c == '.') {\n c = read();\n double m = 1;\n while (!isSpaceChar(c)) {\n if (c == 'e' || c == 'E')\n return res * Math.pow(10, nextInt());\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n m /= 10;\n res += (c - '0') * m;\n c = read();\n }\n }\n return res * sgn;\n }\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n }\n while (!isSpaceChar(c));\n\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null)\n return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public String next() {\n return readString();\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n }\n }\n\n\n public static long gcd(long a, long b) {\n if (b == 0)\n return a;\n long r = a % b;\n return gcd(b, r);\n }\n\n static long lcm(long a, long b) {\n return (a * b) / gcd(a, b);\n }\n\n\n public class ListNode {\n int val;\n ListNode next;\n\n ListNode() {\n }\n\n ListNode(int val) {\n this.val = val;\n }\n\n ListNode(int val, ListNode next) {\n this.val = val;\n this.next = next;\n }\n }\n\n public class TreeNode {\n int val;\n TreeNode left;\n TreeNode right;\n\n TreeNode() {\n }\n\n TreeNode(int val) {\n this.val = val;\n }\n\n TreeNode(int val, TreeNode left, TreeNode right) {\n this.val = val;\n this.left = left;\n this.right = right;\n }\n }\n\n class Node {\n public int val;\n public List<Node> children;\n\n public Node() {\n }\n\n public Node(int _val) {\n val = _val;\n }\n\n public Node(int _val, List<Node> _children) {\n val = _val;\n children = _children;\n }\n }\n\n\n public static void main(String[] args) throws IOException {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader scanner = new InputReader(inputStream);\n PrintWriter w = new PrintWriter(outputStream);\n String p=scanner.next();\n int max=0;\n int l=0;\n for(int i=0;i<p.length();i++){\n if(p.charAt(i)=='R')\n l++;\n else {\n max=Math.max(l,max);\n l=0;\n }\n }\n w.println(Math.max(max,l));\n w.close();\n }\n}", "Main", "public static long gcd(long a, long b) {\n if (b == 0)\n return a;\n long r = a % b;\n return gcd(b, r);\n }", "gcd", "{\n if (b == 0)\n return a;\n long r = a % b;\n return gcd(b, r);\n }", "if (b == 0)\n return a;", "b == 0", "b", "0", "return a;", "a", "long r = a % b;", "r", "a % b", "a", "b", "return gcd(b, r);", "gcd(b, r)", "gcd", "b", "r", "long a", "a", "long b", "b", "static long lcm(long a, long b) {\n return (a * b) / gcd(a, b);\n }", "lcm", "{\n return (a * b) / gcd(a, b);\n }", "return (a * b) / gcd(a, b);", "(a * b) / gcd(a, b)", "(a * b)", "a", "b", "gcd(a, b)", "gcd", "a", "b", "long a", "a", "long b", "b", "public static void main(String[] args) throws IOException {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader scanner = new InputReader(inputStream);\n PrintWriter w = new PrintWriter(outputStream);\n String p=scanner.next();\n int max=0;\n int l=0;\n for(int i=0;i<p.length();i++){\n if(p.charAt(i)=='R')\n l++;\n else {\n max=Math.max(l,max);\n l=0;\n }\n }\n w.println(Math.max(max,l));\n w.close();\n }", "main", "{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader scanner = new InputReader(inputStream);\n PrintWriter w = new PrintWriter(outputStream);\n String p=scanner.next();\n int max=0;\n int l=0;\n for(int i=0;i<p.length();i++){\n if(p.charAt(i)=='R')\n l++;\n else {\n max=Math.max(l,max);\n l=0;\n }\n }\n w.println(Math.max(max,l));\n w.close();\n }", "InputStream inputStream = System.in;", "inputStream", "System.in", "System", "System.in", "OutputStream outputStream = System.out;", "outputStream", "System.out", "System", "System.out", "InputReader scanner = new InputReader(inputStream);", "scanner", "new InputReader(inputStream)", "PrintWriter w = new PrintWriter(outputStream);", "w", "new PrintWriter(outputStream)", "String p=scanner.next();", "p", "scanner.next()", "scanner.next", "scanner", "int max=0;", "max", "0", "int l=0;", "l", "0", "for(int i=0;i<p.length();i++){\n if(p.charAt(i)=='R')\n l++;\n else {\n max=Math.max(l,max);\n l=0;\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<p.length()", "i", "p.length()", "p.length", "p", "i++", "i++", "i", "{\n if(p.charAt(i)=='R')\n l++;\n else {\n max=Math.max(l,max);\n l=0;\n }\n }", "{\n if(p.charAt(i)=='R')\n l++;\n else {\n max=Math.max(l,max);\n l=0;\n }\n }", "if(p.charAt(i)=='R')\n l++;\n else {\n max=Math.max(l,max);\n l=0;\n }", "p.charAt(i)=='R'", "p.charAt(i)", "p.charAt", "p", "i", "'R'", "l++", "l", "{\n max=Math.max(l,max);\n l=0;\n }", "max=Math.max(l,max)", "max", "Math.max(l,max)", "Math.max", "Math", "l", "max", "l=0", "l", "0", "w.println(Math.max(max,l))", "w.println", "w", "Math.max(max,l)", "Math.max", "Math", "max", "l", "w.close()", "w.close", "w", "String[] args", "args", "public static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private SpaceCharFilter filter;\n private BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\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\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public 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 int nextInt() {\n int c = read();\n\n while (isSpaceChar(c))\n c = read();\n\n int sgn = 1;\n\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n\n int res = 0;\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public double nextDouble() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n double res = 0;\n while (!isSpaceChar(c) && c != '.') {\n if (c == 'e' || c == 'E')\n return res * Math.pow(10, nextInt());\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n if (c == '.') {\n c = read();\n double m = 1;\n while (!isSpaceChar(c)) {\n if (c == 'e' || c == 'E')\n return res * Math.pow(10, nextInt());\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n m /= 10;\n res += (c - '0') * m;\n c = read();\n }\n }\n return res * sgn;\n }\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n }\n while (!isSpaceChar(c));\n\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null)\n return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public String next() {\n return readString();\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n }\n }", "InputReader", "private InputStream stream;", "stream", "private byte[] buf = new byte[1024];", "buf", "new byte[1024]", "1024", "private int curChar;", "curChar", "private int numChars;", "numChars", "private SpaceCharFilter filter;", "filter", "private BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "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\n if (numChars <= 0)\n return -1;\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\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }", "if (numChars == -1)\n throw new InputMismatchException();", "numChars == -1", "numChars", "-1", "1", "throw new InputMismatchException();", "new InputMismatchException()", "if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n\n if (numChars <= 0)\n return -1;\n }", "curChar >= numChars", "curChar", "numChars", "{\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n\n if (numChars <= 0)\n return -1;\n }", "curChar = 0", "curChar", "0", "try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }", "catch (IOException e) {\n throw new InputMismatchException();\n }", "IOException e", "{\n throw new InputMismatchException();\n }", "throw new InputMismatchException();", "new InputMismatchException()", "{\n numChars = stream.read(buf);\n }", "numChars = stream.read(buf)", "numChars", "stream.read(buf)", "stream.read", "stream", "buf", "if (numChars <= 0)\n return -1;", "numChars <= 0", "numChars", "0", "return -1;", "-1", "1", "return buf[curChar++];", "buf[curChar++]", "buf", "curChar++", "curChar", "public 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 int nextInt() {\n int c = read();\n\n while (isSpaceChar(c))\n c = read();\n\n int sgn = 1;\n\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n\n int res = 0;\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n\n return res * sgn;\n }", "nextInt", "{\n int c = read();\n\n while (isSpaceChar(c))\n c = read();\n\n int sgn = 1;\n\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n\n int res = 0;\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n\n return res * sgn;\n }", "int c = read();", "c", "read()", "read", "while (isSpaceChar(c))\n c = read();", "isSpaceChar(c)", "isSpaceChar", "c", "c = read()", "c", "read()", "read", "int sgn = 1;", "sgn", "1", "if (c == '-') {\n sgn = -1;\n c = read();\n }", "c == '-'", "c", "'-'", "{\n sgn = -1;\n c = read();\n }", "sgn = -1", "sgn", "-1", "1", "c = read()", "c", "read()", "read", "int res = 0;", "res", "0", "do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));", "!isSpaceChar(c)", "isSpaceChar(c)", "isSpaceChar", "c", "{\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }", "if (c < '0' || c > '9')\n throw new InputMismatchException();", "c < '0' || c > '9'", "c < '0'", "c", "'0'", "c > '9'", "c", "'9'", "throw new InputMismatchException();", "new InputMismatchException()", "res *= 10", "res", "10", "res += c - '0'", "res", "c - '0'", "c", "'0'", "c = read()", "c", "read()", "read", "return res * sgn;", "res * sgn", "res", "sgn", "public long nextLong() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }", "nextLong", "{\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }", "int c = read();", "c", "read()", "read", "while (isSpaceChar(c))\n c = read();", "isSpaceChar(c)", "isSpaceChar", "c", "c = read()", "c", "read()", "read", "int sgn = 1;", "sgn", "1", "if (c == '-') {\n sgn = -1;\n c = read();\n }", "c == '-'", "c", "'-'", "{\n sgn = -1;\n c = read();\n }", "sgn = -1", "sgn", "-1", "1", "c = read()", "c", "read()", "read", "long res = 0;", "res", "0", "do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));", "!isSpaceChar(c)", "isSpaceChar(c)", "isSpaceChar", "c", "{\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }", "if (c < '0' || c > '9')\n throw new InputMismatchException();", "c < '0' || c > '9'", "c < '0'", "c", "'0'", "c > '9'", "c", "'9'", "throw new InputMismatchException();", "new InputMismatchException()", "res *= 10", "res", "10", "res += c - '0'", "res", "c - '0'", "c", "'0'", "c = read()", "c", "read()", "read", "return res * sgn;", "res * sgn", "res", "sgn", "public double nextDouble() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n double res = 0;\n while (!isSpaceChar(c) && c != '.') {\n if (c == 'e' || c == 'E')\n return res * Math.pow(10, nextInt());\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n if (c == '.') {\n c = read();\n double m = 1;\n while (!isSpaceChar(c)) {\n if (c == 'e' || c == 'E')\n return res * Math.pow(10, nextInt());\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n m /= 10;\n res += (c - '0') * m;\n c = read();\n }\n }\n return res * sgn;\n }", "nextDouble", "{\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n double res = 0;\n while (!isSpaceChar(c) && c != '.') {\n if (c == 'e' || c == 'E')\n return res * Math.pow(10, nextInt());\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n if (c == '.') {\n c = read();\n double m = 1;\n while (!isSpaceChar(c)) {\n if (c == 'e' || c == 'E')\n return res * Math.pow(10, nextInt());\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n m /= 10;\n res += (c - '0') * m;\n c = read();\n }\n }\n return res * sgn;\n }", "int c = read();", "c", "read()", "read", "while (isSpaceChar(c))\n c = read();", "isSpaceChar(c)", "isSpaceChar", "c", "c = read()", "c", "read()", "read", "int sgn = 1;", "sgn", "1", "if (c == '-') {\n sgn = -1;\n c = read();\n }", "c == '-'", "c", "'-'", "{\n sgn = -1;\n c = read();\n }", "sgn = -1", "sgn", "-1", "1", "c = read()", "c", "read()", "read", "double res = 0;", "res", "0", "while (!isSpaceChar(c) && c != '.') {\n if (c == 'e' || c == 'E')\n return res * Math.pow(10, nextInt());\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }", "!isSpaceChar(c) && c != '.'", "!isSpaceChar(c)", "isSpaceChar(c)", "isSpaceChar", "c", "c != '.'", "c", "'.'", "{\n if (c == 'e' || c == 'E')\n return res * Math.pow(10, nextInt());\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }", "if (c == 'e' || c == 'E')\n return res * Math.pow(10, nextInt());", "c == 'e' || c == 'E'", "c == 'e'", "c", "'e'", "c == 'E'", "c", "'E'", "return res * Math.pow(10, nextInt());", "res * Math.pow(10, nextInt())", "res", "Math.pow(10, nextInt())", "Math.pow", "Math", "10", "nextInt()", "nextInt", "if (c < '0' || c > '9')\n throw new InputMismatchException();", "c < '0' || c > '9'", "c < '0'", "c", "'0'", "c > '9'", "c", "'9'", "throw new InputMismatchException();", "new InputMismatchException()", "res *= 10", "res", "10", "res += c - '0'", "res", "c - '0'", "c", "'0'", "c = read()", "c", "read()", "read", "if (c == '.') {\n c = read();\n double m = 1;\n while (!isSpaceChar(c)) {\n if (c == 'e' || c == 'E')\n return res * Math.pow(10, nextInt());\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n m /= 10;\n res += (c - '0') * m;\n c = read();\n }\n }", "c == '.'", "c", "'.'", "{\n c = read();\n double m = 1;\n while (!isSpaceChar(c)) {\n if (c == 'e' || c == 'E')\n return res * Math.pow(10, nextInt());\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n m /= 10;\n res += (c - '0') * m;\n c = read();\n }\n }", "c = read()", "c", "read()", "read", "double m = 1;", "m", "1", "while (!isSpaceChar(c)) {\n if (c == 'e' || c == 'E')\n return res * Math.pow(10, nextInt());\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n m /= 10;\n res += (c - '0') * m;\n c = read();\n }", "!isSpaceChar(c)", "isSpaceChar(c)", "isSpaceChar", "c", "{\n if (c == 'e' || c == 'E')\n return res * Math.pow(10, nextInt());\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n m /= 10;\n res += (c - '0') * m;\n c = read();\n }", "if (c == 'e' || c == 'E')\n return res * Math.pow(10, nextInt());", "c == 'e' || c == 'E'", "c == 'e'", "c", "'e'", "c == 'E'", "c", "'E'", "return res * Math.pow(10, nextInt());", "res * Math.pow(10, nextInt())", "res", "Math.pow(10, nextInt())", "Math.pow", "Math", "10", "nextInt()", "nextInt", "if (c < '0' || c > '9')\n throw new InputMismatchException();", "c < '0' || c > '9'", "c < '0'", "c", "'0'", "c > '9'", "c", "'9'", "throw new InputMismatchException();", "new InputMismatchException()", "m /= 10", "m", "10", "res += (c - '0') * m", "res", "(c - '0') * m", "(c - '0')", "c", "'0'", "m", "c = read()", "c", "read()", "read", "return res * sgn;", "res * sgn", "res", "sgn", "public String readString() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n }\n while (!isSpaceChar(c));\n\n return res.toString();\n }", "readString", "{\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n }\n while (!isSpaceChar(c));\n\n return res.toString();\n }", "int c = read();", "c", "read()", "read", "while (isSpaceChar(c))\n c = read();", "isSpaceChar(c)", "isSpaceChar", "c", "c = read()", "c", "read()", "read", "StringBuilder res = new StringBuilder();", "res", "new StringBuilder()", "do {\n res.appendCodePoint(c);\n c = read();\n }\n while (!isSpaceChar(c));", "!isSpaceChar(c)", "isSpaceChar(c)", "isSpaceChar", "c", "{\n res.appendCodePoint(c);\n c = read();\n }", "res.appendCodePoint(c)", "res.appendCodePoint", "res", "c", "c = read()", "c", "read()", "read", "return res.toString();", "res.toString()", "res.toString", "res", "public boolean isSpaceChar(int c) {\n if (filter != null)\n return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }", "isSpaceChar", "{\n if (filter != null)\n return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }", "if (filter != null)\n return filter.isSpaceChar(c);", "filter != null", "filter", "null", "return filter.isSpaceChar(c);", "filter.isSpaceChar(c)", "filter.isSpaceChar", "filter", "c", "return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;", "c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1", "c == '\\t'", "c == '\\r'", "c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1", "c == ' '", "c", "' '", "c == '\\n'", "c", "'\\n'", "c == '\\r'", "c", "'\\r'", "c == '\\t'", "c", "'\\t'", "c == -1", "c", "-1", "1", "int c", "c", "public String next() {\n return readString();\n }", "next", "{\n return readString();\n }", "return readString();", "readString()", "readString", "public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n }", "SpaceCharFilter", "public boolean isSpaceChar(int ch);", "isSpaceChar", "int ch", "ch", "public class ListNode {\n int val;\n ListNode next;\n\n ListNode() {\n }\n\n ListNode(int val) {\n this.val = val;\n }\n\n ListNode(int val, ListNode next) {\n this.val = val;\n this.next = next;\n }\n }", "ListNode", "int val;", "val", "ListNode next;", "next", "ListNode() {\n }", "ListNode", "{\n }", "ListNode(int val) {\n this.val = val;\n }", "ListNode", "{\n this.val = val;\n }", "this.val = val", "this.val", "this", "this.val", "val", "int val", "val", "ListNode(int val, ListNode next) {\n this.val = val;\n this.next = next;\n }", "ListNode", "{\n this.val = val;\n this.next = next;\n }", "this.val = val", "this.val", "this", "this.val", "val", "this.next = next", "this.next", "this", "this.next", "next", "int val", "val", "ListNode next", "next", "public class TreeNode {\n int val;\n TreeNode left;\n TreeNode right;\n\n TreeNode() {\n }\n\n TreeNode(int val) {\n this.val = val;\n }\n\n TreeNode(int val, TreeNode left, TreeNode right) {\n this.val = val;\n this.left = left;\n this.right = right;\n }\n }", "TreeNode", "int val;", "val", "TreeNode left;", "left", "TreeNode right;", "right", "TreeNode() {\n }", "TreeNode", "{\n }", "TreeNode(int val) {\n this.val = val;\n }", "TreeNode", "{\n this.val = val;\n }", "this.val = val", "this.val", "this", "this.val", "val", "int val", "val", "TreeNode(int val, TreeNode left, TreeNode right) {\n this.val = val;\n this.left = left;\n this.right = right;\n }", "TreeNode", "{\n this.val = val;\n this.left = left;\n this.right = right;\n }", "this.val = val", "this.val", "this", "this.val", "val", "this.left = left", "this.left", "this", "this.left", "left", "this.right = right", "this.right", "this", "this.right", "right", "int val", "val", "TreeNode left", "left", "TreeNode right", "right", "class Node {\n public int val;\n public List<Node> children;\n\n public Node() {\n }\n\n public Node(int _val) {\n val = _val;\n }\n\n public Node(int _val, List<Node> _children) {\n val = _val;\n children = _children;\n }\n }", "Node", "public int val;", "val", "public List<Node> children;", "children", "public Node() {\n }", "Node", "{\n }", "public Node(int _val) {\n val = _val;\n }", "Node", "{\n val = _val;\n }", "val = _val", "val", "_val", "int _val", "_val", "public Node(int _val, List<Node> _children) {\n val = _val;\n children = _children;\n }", "Node", "{\n val = _val;\n children = _children;\n }", "val = _val", "val", "_val", "children = _children", "children", "_children", "int _val", "_val", "List<Node> _children", "_children", "public class Main {\n // Complete the maximumSum function below.\n public static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private SpaceCharFilter filter;\n private BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\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\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public 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 int nextInt() {\n int c = read();\n\n while (isSpaceChar(c))\n c = read();\n\n int sgn = 1;\n\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n\n int res = 0;\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public double nextDouble() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n double res = 0;\n while (!isSpaceChar(c) && c != '.') {\n if (c == 'e' || c == 'E')\n return res * Math.pow(10, nextInt());\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n if (c == '.') {\n c = read();\n double m = 1;\n while (!isSpaceChar(c)) {\n if (c == 'e' || c == 'E')\n return res * Math.pow(10, nextInt());\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n m /= 10;\n res += (c - '0') * m;\n c = read();\n }\n }\n return res * sgn;\n }\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n }\n while (!isSpaceChar(c));\n\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null)\n return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public String next() {\n return readString();\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n }\n }\n\n\n public static long gcd(long a, long b) {\n if (b == 0)\n return a;\n long r = a % b;\n return gcd(b, r);\n }\n\n static long lcm(long a, long b) {\n return (a * b) / gcd(a, b);\n }\n\n\n public class ListNode {\n int val;\n ListNode next;\n\n ListNode() {\n }\n\n ListNode(int val) {\n this.val = val;\n }\n\n ListNode(int val, ListNode next) {\n this.val = val;\n this.next = next;\n }\n }\n\n public class TreeNode {\n int val;\n TreeNode left;\n TreeNode right;\n\n TreeNode() {\n }\n\n TreeNode(int val) {\n this.val = val;\n }\n\n TreeNode(int val, TreeNode left, TreeNode right) {\n this.val = val;\n this.left = left;\n this.right = right;\n }\n }\n\n class Node {\n public int val;\n public List<Node> children;\n\n public Node() {\n }\n\n public Node(int _val) {\n val = _val;\n }\n\n public Node(int _val, List<Node> _children) {\n val = _val;\n children = _children;\n }\n }\n\n\n public static void main(String[] args) throws IOException {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader scanner = new InputReader(inputStream);\n PrintWriter w = new PrintWriter(outputStream);\n String p=scanner.next();\n int max=0;\n int l=0;\n for(int i=0;i<p.length();i++){\n if(p.charAt(i)=='R')\n l++;\n else {\n max=Math.max(l,max);\n l=0;\n }\n }\n w.println(Math.max(max,l));\n w.close();\n }\n}", "public class Main {\n // Complete the maximumSum function below.\n public static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private SpaceCharFilter filter;\n private BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\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\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public 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 int nextInt() {\n int c = read();\n\n while (isSpaceChar(c))\n c = read();\n\n int sgn = 1;\n\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n\n int res = 0;\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n\n do {\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public double nextDouble() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n double res = 0;\n while (!isSpaceChar(c) && c != '.') {\n if (c == 'e' || c == 'E')\n return res * Math.pow(10, nextInt());\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n if (c == '.') {\n c = read();\n double m = 1;\n while (!isSpaceChar(c)) {\n if (c == 'e' || c == 'E')\n return res * Math.pow(10, nextInt());\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n m /= 10;\n res += (c - '0') * m;\n c = read();\n }\n }\n return res * sgn;\n }\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n }\n while (!isSpaceChar(c));\n\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null)\n return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public String next() {\n return readString();\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n }\n }\n\n\n public static long gcd(long a, long b) {\n if (b == 0)\n return a;\n long r = a % b;\n return gcd(b, r);\n }\n\n static long lcm(long a, long b) {\n return (a * b) / gcd(a, b);\n }\n\n\n public class ListNode {\n int val;\n ListNode next;\n\n ListNode() {\n }\n\n ListNode(int val) {\n this.val = val;\n }\n\n ListNode(int val, ListNode next) {\n this.val = val;\n this.next = next;\n }\n }\n\n public class TreeNode {\n int val;\n TreeNode left;\n TreeNode right;\n\n TreeNode() {\n }\n\n TreeNode(int val) {\n this.val = val;\n }\n\n TreeNode(int val, TreeNode left, TreeNode right) {\n this.val = val;\n this.left = left;\n this.right = right;\n }\n }\n\n class Node {\n public int val;\n public List<Node> children;\n\n public Node() {\n }\n\n public Node(int _val) {\n val = _val;\n }\n\n public Node(int _val, List<Node> _children) {\n val = _val;\n children = _children;\n }\n }\n\n\n public static void main(String[] args) throws IOException {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader scanner = new InputReader(inputStream);\n PrintWriter w = new PrintWriter(outputStream);\n String p=scanner.next();\n int max=0;\n int l=0;\n for(int i=0;i<p.length();i++){\n if(p.charAt(i)=='R')\n l++;\n else {\n max=Math.max(l,max);\n l=0;\n }\n }\n w.println(Math.max(max,l));\n w.close();\n }\n}", "Main" ]
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 { // Complete the maximumSum function below. public static class InputReader { private InputStream stream; private byte[] buf = new byte[1024]; private int curChar; private int numChars; private SpaceCharFilter filter; private BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); 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 nextLine() { String str = ""; try { str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } return str; } public int nextInt() { int c = read(); while (isSpaceChar(c)) c = read(); int sgn = 1; if (c == '-') { sgn = -1; c = read(); } int res = 0; do { if (c < '0' || c > '9') throw new InputMismatchException(); res *= 10; res += c - '0'; c = read(); } while (!isSpaceChar(c)); return res * sgn; } public long nextLong() { int c = read(); while (isSpaceChar(c)) c = read(); int sgn = 1; if (c == '-') { sgn = -1; c = read(); } long res = 0; do { if (c < '0' || c > '9') throw new InputMismatchException(); res *= 10; res += c - '0'; c = read(); } while (!isSpaceChar(c)); return res * sgn; } public double nextDouble() { int c = read(); while (isSpaceChar(c)) c = read(); int sgn = 1; if (c == '-') { sgn = -1; c = read(); } double res = 0; while (!isSpaceChar(c) && c != '.') { if (c == 'e' || c == 'E') return res * Math.pow(10, nextInt()); if (c < '0' || c > '9') throw new InputMismatchException(); res *= 10; res += c - '0'; c = read(); } if (c == '.') { c = read(); double m = 1; while (!isSpaceChar(c)) { if (c == 'e' || c == 'E') return res * Math.pow(10, nextInt()); if (c < '0' || c > '9') throw new InputMismatchException(); m /= 10; res += (c - '0') * m; c = read(); } } return res * sgn; } public String readString() { int c = read(); while (isSpaceChar(c)) c = read(); StringBuilder res = new StringBuilder(); do { res.appendCodePoint(c); c = read(); } while (!isSpaceChar(c)); return res.toString(); } public boolean isSpaceChar(int c) { if (filter != null) return filter.isSpaceChar(c); return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1; } public String next() { return readString(); } public interface SpaceCharFilter { public boolean isSpaceChar(int ch); } } public static long gcd(long a, long b) { if (b == 0) return a; long r = a % b; return gcd(b, r); } static long lcm(long a, long b) { return (a * b) / gcd(a, b); } public class ListNode { int val; ListNode next; ListNode() { } ListNode(int val) { this.val = val; } ListNode(int val, ListNode next) { this.val = val; this.next = next; } } public class TreeNode { int val; TreeNode left; TreeNode right; TreeNode() { } TreeNode(int val) { this.val = val; } TreeNode(int val, TreeNode left, TreeNode right) { this.val = val; this.left = left; this.right = right; } } class Node { public int val; public List<Node> children; public Node() { } public Node(int _val) { val = _val; } public Node(int _val, List<Node> _children) { val = _val; children = _children; } } public static void main(String[] args) throws IOException { InputStream inputStream = System.in; OutputStream outputStream = System.out; InputReader scanner = new InputReader(inputStream); PrintWriter w = new PrintWriter(outputStream); String p=scanner.next(); int max=0; int l=0; for(int i=0;i<p.length();i++){ if(p.charAt(i)=='R') l++; else { max=Math.max(l,max); l=0; } } w.println(Math.max(max,l)); w.close(); } }
[ 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, 42, 2, 13, 18, 13, 13, 30, 14, 2, 18, 13, 13, 17, 30, 40, 13, 9, 41, 13, 17, 42, 2, 2, 13, 18, 13, 13, 2, 18, 13, 13, 17, 30, 40, 13, 40, 13, 0, 13, 4, 18, 13, 13, 13, 40, 13, 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 ], [ 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 ], [ 29, 31 ], [ 31, 32 ], [ 31, 33 ], [ 28, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 35, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 34, 45 ], [ 45, 46 ], [ 45, 47 ], [ 34, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 52, 54 ], [ 49, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 48, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 63, 64 ], [ 34, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 67, 71 ], [ 34, 72 ], [ 72, 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.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n String str = s.next();\n char[] ch = str.toCharArray();\n int i = 0;\n int maxcount = 0;\n while(i < ch.length) {\n if(ch[i] != 'R') {\n i++;\n continue;\n }\n int count= 0;\n while ( i < ch.length && ch[i] == 'R') {\n count++;\n i++;\n }\n\n maxcount = Math.max(maxcount, count);\n i++;\n }\n\n System.out.println(maxcount);\n }\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n String str = s.next();\n char[] ch = str.toCharArray();\n int i = 0;\n int maxcount = 0;\n while(i < ch.length) {\n if(ch[i] != 'R') {\n i++;\n continue;\n }\n int count= 0;\n while ( i < ch.length && ch[i] == 'R') {\n count++;\n i++;\n }\n\n maxcount = Math.max(maxcount, count);\n i++;\n }\n\n System.out.println(maxcount);\n }\n\n}", "Main", "public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n String str = s.next();\n char[] ch = str.toCharArray();\n int i = 0;\n int maxcount = 0;\n while(i < ch.length) {\n if(ch[i] != 'R') {\n i++;\n continue;\n }\n int count= 0;\n while ( i < ch.length && ch[i] == 'R') {\n count++;\n i++;\n }\n\n maxcount = Math.max(maxcount, count);\n i++;\n }\n\n System.out.println(maxcount);\n }", "main", "{\n Scanner s = new Scanner(System.in);\n String str = s.next();\n char[] ch = str.toCharArray();\n int i = 0;\n int maxcount = 0;\n while(i < ch.length) {\n if(ch[i] != 'R') {\n i++;\n continue;\n }\n int count= 0;\n while ( i < ch.length && ch[i] == 'R') {\n count++;\n i++;\n }\n\n maxcount = Math.max(maxcount, count);\n i++;\n }\n\n System.out.println(maxcount);\n }", "Scanner s = new Scanner(System.in);", "s", "new Scanner(System.in)", "String str = s.next();", "str", "s.next()", "s.next", "s", "char[] ch = str.toCharArray();", "ch", "str.toCharArray()", "str.toCharArray", "str", "int i = 0;", "i", "0", "int maxcount = 0;", "maxcount", "0", "while(i < ch.length) {\n if(ch[i] != 'R') {\n i++;\n continue;\n }\n int count= 0;\n while ( i < ch.length && ch[i] == 'R') {\n count++;\n i++;\n }\n\n maxcount = Math.max(maxcount, count);\n i++;\n }", "i < ch.length", "i", "ch.length", "ch", "ch.length", "{\n if(ch[i] != 'R') {\n i++;\n continue;\n }\n int count= 0;\n while ( i < ch.length && ch[i] == 'R') {\n count++;\n i++;\n }\n\n maxcount = Math.max(maxcount, count);\n i++;\n }", "if(ch[i] != 'R') {\n i++;\n continue;\n }", "ch[i] != 'R'", "ch[i]", "ch", "i", "'R'", "{\n i++;\n continue;\n }", "i++", "i", "continue;", "int count= 0;", "count", "0", "while ( i < ch.length && ch[i] == 'R') {\n count++;\n i++;\n }", "i < ch.length && ch[i] == 'R'", "i < ch.length", "i", "ch.length", "ch", "ch.length", "ch[i] == 'R'", "ch[i]", "ch", "i", "'R'", "{\n count++;\n i++;\n }", "count++", "count", "i++", "i", "maxcount = Math.max(maxcount, count)", "maxcount", "Math.max(maxcount, count)", "Math.max", "Math", "maxcount", "count", "i++", "i", "System.out.println(maxcount)", "System.out.println", "System.out", "System", "System.out", "maxcount", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n String str = s.next();\n char[] ch = str.toCharArray();\n int i = 0;\n int maxcount = 0;\n while(i < ch.length) {\n if(ch[i] != 'R') {\n i++;\n continue;\n }\n int count= 0;\n while ( i < ch.length && ch[i] == 'R') {\n count++;\n i++;\n }\n\n maxcount = Math.max(maxcount, count);\n i++;\n }\n\n System.out.println(maxcount);\n }\n\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n String str = s.next();\n char[] ch = str.toCharArray();\n int i = 0;\n int maxcount = 0;\n while(i < ch.length) {\n if(ch[i] != 'R') {\n i++;\n continue;\n }\n int count= 0;\n while ( i < ch.length && ch[i] == 'R') {\n count++;\n i++;\n }\n\n maxcount = Math.max(maxcount, count);\n i++;\n }\n\n System.out.println(maxcount);\n }\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); String str = s.next(); char[] ch = str.toCharArray(); int i = 0; int maxcount = 0; while(i < ch.length) { if(ch[i] != 'R') { i++; continue; } int count= 0; while ( i < ch.length && ch[i] == 'R') { count++; i++; } maxcount = Math.max(maxcount, count); i++; } System.out.println(maxcount); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 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, 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 ], [ 57, 5 ], [ 57, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 10, 19 ], [ 19, 20 ], [ 19, 21 ], [ 10, 22 ], [ 22, 23 ], [ 22, 24 ], [ 10, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 25, 30 ], [ 31, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 32, 36 ], [ 36, 37 ], [ 32, 38 ], [ 38, 39 ], [ 38, 40 ], [ 31, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 45, 46 ], [ 45, 47 ], [ 10, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 6, 54 ], [ 54, 55 ], [ 0, 56 ], [ 56, 57 ], [ 56, 58 ] ]
[ "import java.util.Scanner;\n\npublic class Main \n{\n public static void main( String[] args )\n {\n try (Scanner scan = new Scanner(System.in)) {\n String input = scan.nextLine();\n int rain = 0, repeat = 0;\n for (char c : input.toCharArray()) {\n if (c == 'R') repeat++;\n else repeat = 0;\n if (rain < repeat) rain = repeat;\n }\n System.out.println(rain);\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main \n{\n public static void main( String[] args )\n {\n try (Scanner scan = new Scanner(System.in)) {\n String input = scan.nextLine();\n int rain = 0, repeat = 0;\n for (char c : input.toCharArray()) {\n if (c == 'R') repeat++;\n else repeat = 0;\n if (rain < repeat) rain = repeat;\n }\n System.out.println(rain);\n }\n }\n}", "Main", "public static void main( String[] args )\n {\n try (Scanner scan = new Scanner(System.in)) {\n String input = scan.nextLine();\n int rain = 0, repeat = 0;\n for (char c : input.toCharArray()) {\n if (c == 'R') repeat++;\n else repeat = 0;\n if (rain < repeat) rain = repeat;\n }\n System.out.println(rain);\n }\n }", "main", "{\n try (Scanner scan = new Scanner(System.in)) {\n String input = scan.nextLine();\n int rain = 0, repeat = 0;\n for (char c : input.toCharArray()) {\n if (c == 'R') repeat++;\n else repeat = 0;\n if (rain < repeat) rain = repeat;\n }\n System.out.println(rain);\n }\n }", "try (Scanner scan = new Scanner(System.in)) {\n String input = scan.nextLine();\n int rain = 0, repeat = 0;\n for (char c : input.toCharArray()) {\n if (c == 'R') repeat++;\n else repeat = 0;\n if (rain < repeat) rain = repeat;\n }\n System.out.println(rain);\n }", "{\n String input = scan.nextLine();\n int rain = 0, repeat = 0;\n for (char c : input.toCharArray()) {\n if (c == 'R') repeat++;\n else repeat = 0;\n if (rain < repeat) rain = repeat;\n }\n System.out.println(rain);\n }", "Scanner scan = new Scanner(System.in)", "Scanner scan = new Scanner(System.in)", "new Scanner(System.in)", "String input = scan.nextLine();", "input", "scan.nextLine()", "scan.nextLine", "scan", "int rain = 0", "rain", "0", "repeat = 0;", "repeat", "0", "for (char c : input.toCharArray()) {\n if (c == 'R') repeat++;\n else repeat = 0;\n if (rain < repeat) rain = repeat;\n }", "char c", "input.toCharArray()", "input.toCharArray", "input", "{\n if (c == 'R') repeat++;\n else repeat = 0;\n if (rain < repeat) rain = repeat;\n }", "{\n if (c == 'R') repeat++;\n else repeat = 0;\n if (rain < repeat) rain = repeat;\n }", "if (c == 'R') repeat++;\n else repeat = 0;", "c == 'R'", "c", "'R'", "repeat++", "repeat", "repeat = 0", "repeat", "0", "if (rain < repeat) rain = repeat;", "rain < repeat", "rain", "repeat", "rain = repeat", "rain", "repeat", "System.out.println(rain)", "System.out.println", "System.out", "System", "System.out", "rain", "String[] args", "args", "public class Main \n{\n public static void main( String[] args )\n {\n try (Scanner scan = new Scanner(System.in)) {\n String input = scan.nextLine();\n int rain = 0, repeat = 0;\n for (char c : input.toCharArray()) {\n if (c == 'R') repeat++;\n else repeat = 0;\n if (rain < repeat) rain = repeat;\n }\n System.out.println(rain);\n }\n }\n}", "public class Main \n{\n public static void main( String[] args )\n {\n try (Scanner scan = new Scanner(System.in)) {\n String input = scan.nextLine();\n int rain = 0, repeat = 0;\n for (char c : input.toCharArray()) {\n if (c == 'R') repeat++;\n else repeat = 0;\n if (rain < repeat) rain = repeat;\n }\n System.out.println(rain);\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main( String[] args ) { try (Scanner scan = new Scanner(System.in)) { String input = scan.nextLine(); int rain = 0, repeat = 0; for (char c : input.toCharArray()) { if (c == 'R') repeat++; else repeat = 0; if (rain < repeat) rain = repeat; } System.out.println(rain); } } }
[ 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, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 85, 5 ], [ 85, 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 ], [ 20, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 33, 34 ], [ 33, 35 ], [ 28, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 36, 41 ], [ 41, 42 ], [ 41, 43 ], [ 36, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 44, 49 ], [ 49, 50 ], [ 49, 51 ], [ 44, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 52, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 60, 65 ], [ 65, 66 ], [ 65, 67 ], [ 60, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 68, 73 ], [ 73, 74 ], [ 73, 75 ], [ 8, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 76, 81 ], [ 6, 82 ], [ 82, 83 ], [ 0, 84 ], [ 84, 85 ], [ 84, 86 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner scan = new Scanner(System.in);\n String S = scan.next();\n int x = 0;\n if(S.equals(\"RRR\")) x = 3;\n else if(S.equals(\"RRS\")) x = 2;\n else if(S.equals(\"SRR\")) x = 2;\n else if(S.equals(\"RSR\")) x = 1;\n else if(S.equals(\"RSS\")) x = 1;\n else if(S.equals(\"SSR\")) x = 1;\n else if(S.equals(\"SRS\")) x = 1;\n \n System.out.println(x);\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner scan = new Scanner(System.in);\n String S = scan.next();\n int x = 0;\n if(S.equals(\"RRR\")) x = 3;\n else if(S.equals(\"RRS\")) x = 2;\n else if(S.equals(\"SRR\")) x = 2;\n else if(S.equals(\"RSR\")) x = 1;\n else if(S.equals(\"RSS\")) x = 1;\n else if(S.equals(\"SSR\")) x = 1;\n else if(S.equals(\"SRS\")) x = 1;\n \n System.out.println(x);\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n Scanner scan = new Scanner(System.in);\n String S = scan.next();\n int x = 0;\n if(S.equals(\"RRR\")) x = 3;\n else if(S.equals(\"RRS\")) x = 2;\n else if(S.equals(\"SRR\")) x = 2;\n else if(S.equals(\"RSR\")) x = 1;\n else if(S.equals(\"RSS\")) x = 1;\n else if(S.equals(\"SSR\")) x = 1;\n else if(S.equals(\"SRS\")) x = 1;\n \n System.out.println(x);\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n String S = scan.next();\n int x = 0;\n if(S.equals(\"RRR\")) x = 3;\n else if(S.equals(\"RRS\")) x = 2;\n else if(S.equals(\"SRR\")) x = 2;\n else if(S.equals(\"RSR\")) x = 1;\n else if(S.equals(\"RSS\")) x = 1;\n else if(S.equals(\"SSR\")) x = 1;\n else if(S.equals(\"SRS\")) x = 1;\n \n System.out.println(x);\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String S = scan.next();", "S", "scan.next()", "scan.next", "scan", "int x = 0;", "x", "0", "if(S.equals(\"RRR\")) x = 3;\n else if(S.equals(\"RRS\")) x = 2;\n else if(S.equals(\"SRR\")) x = 2;\n else if(S.equals(\"RSR\")) x = 1;\n else if(S.equals(\"RSS\")) x = 1;\n else if(S.equals(\"SSR\")) x = 1;\n else if(S.equals(\"SRS\")) x = 1;", "S.equals(\"RRR\")", "S.equals", "S", "\"RRR\"", "x = 3", "x", "3", "if(S.equals(\"RRS\")) x = 2;\n else if(S.equals(\"SRR\")) x = 2;\n else if(S.equals(\"RSR\")) x = 1;\n else if(S.equals(\"RSS\")) x = 1;\n else if(S.equals(\"SSR\")) x = 1;\n else if(S.equals(\"SRS\")) x = 1;", "S.equals(\"RRS\")", "S.equals", "S", "\"RRS\"", "x = 2", "x", "2", "if(S.equals(\"SRR\")) x = 2;\n else if(S.equals(\"RSR\")) x = 1;\n else if(S.equals(\"RSS\")) x = 1;\n else if(S.equals(\"SSR\")) x = 1;\n else if(S.equals(\"SRS\")) x = 1;", "S.equals(\"SRR\")", "S.equals", "S", "\"SRR\"", "x = 2", "x", "2", "if(S.equals(\"RSR\")) x = 1;\n else if(S.equals(\"RSS\")) x = 1;\n else if(S.equals(\"SSR\")) x = 1;\n else if(S.equals(\"SRS\")) x = 1;", "S.equals(\"RSR\")", "S.equals", "S", "\"RSR\"", "x = 1", "x", "1", "if(S.equals(\"RSS\")) x = 1;\n else if(S.equals(\"SSR\")) x = 1;\n else if(S.equals(\"SRS\")) x = 1;", "S.equals(\"RSS\")", "S.equals", "S", "\"RSS\"", "x = 1", "x", "1", "if(S.equals(\"SSR\")) x = 1;\n else if(S.equals(\"SRS\")) x = 1;", "S.equals(\"SSR\")", "S.equals", "S", "\"SSR\"", "x = 1", "x", "1", "if(S.equals(\"SRS\")) x = 1;", "S.equals(\"SRS\")", "S.equals", "S", "\"SRS\"", "x = 1", "x", "1", "System.out.println(x)", "System.out.println", "System.out", "System", "System.out", "x", "String[] args", "args", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner scan = new Scanner(System.in);\n String S = scan.next();\n int x = 0;\n if(S.equals(\"RRR\")) x = 3;\n else if(S.equals(\"RRS\")) x = 2;\n else if(S.equals(\"SRR\")) x = 2;\n else if(S.equals(\"RSR\")) x = 1;\n else if(S.equals(\"RSS\")) x = 1;\n else if(S.equals(\"SSR\")) x = 1;\n else if(S.equals(\"SRS\")) x = 1;\n \n System.out.println(x);\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner scan = new Scanner(System.in);\n String S = scan.next();\n int x = 0;\n if(S.equals(\"RRR\")) x = 3;\n else if(S.equals(\"RRS\")) x = 2;\n else if(S.equals(\"SRR\")) x = 2;\n else if(S.equals(\"RSR\")) x = 1;\n else if(S.equals(\"RSS\")) x = 1;\n else if(S.equals(\"SSR\")) x = 1;\n else if(S.equals(\"SRS\")) x = 1;\n \n System.out.println(x);\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner scan = new Scanner(System.in); String S = scan.next(); int x = 0; if(S.equals("RRR")) x = 3; else if(S.equals("RRS")) x = 2; else if(S.equals("SRR")) x = 2; else if(S.equals("RSR")) x = 1; else if(S.equals("RSS")) x = 1; else if(S.equals("SSR")) x = 1; else if(S.equals("SRS")) x = 1; System.out.println(x); } }
[ 7, 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, 14, 4, 18, 13, 17, 30, 29, 17, 14, 4, 18, 13, 17, 30, 29, 17, 14, 4, 18, 13, 17, 30, 29, 17, 30, 29, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 63, 5 ], [ 63, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 22, 27 ], [ 6, 28 ], [ 28, 29 ], [ 63, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 33, 38 ], [ 38, 39 ], [ 39, 40 ], [ 33, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 41, 46 ], [ 46, 47 ], [ 47, 48 ], [ 41, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 49, 54 ], [ 54, 55 ], [ 55, 56 ], [ 49, 57 ], [ 57, 58 ], [ 58, 59 ], [ 30, 60 ], [ 60, 61 ], [ 0, 62 ], [ 62, 63 ], [ 62, 64 ] ]
[ "import java.util.*;\n\npublic class Main{\n /**\n * メインメソッド\n */\n public static void main(final String[] args) {\n Scanner sc = new Scanner(System.in);\n final String S = sc.next();\n final int answer = weatherReport(S);\n System.out.println(answer);\n }\n\n /**\n * ロジック\n */\n public static int weatherReport(String S) {\n if (S.matches(\"R{3}\")){\n return 3;\n } else if (S.matches(\".*R{2}.*\")) {\n return 2;\n } else if (S.matches(\".*R.*\")) {\n return 1;\n } else {\n return 0;\n }\n }\n}", "import java.util.*;", "util.*", "java", "public class Main{\n /**\n * メインメソッド\n */\n public static void main(final String[] args) {\n Scanner sc = new Scanner(System.in);\n final String S = sc.next();\n final int answer = weatherReport(S);\n System.out.println(answer);\n }\n\n /**\n * ロジック\n */\n public static int weatherReport(String S) {\n if (S.matches(\"R{3}\")){\n return 3;\n } else if (S.matches(\".*R{2}.*\")) {\n return 2;\n } else if (S.matches(\".*R.*\")) {\n return 1;\n } else {\n return 0;\n }\n }\n}", "Main", "/**\n * メインメソッド\n */\n public static void main(final String[] args) {\n Scanner sc = new Scanner(System.in);\n final String S = sc.next();\n final int answer = weatherReport(S);\n System.out.println(answer);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n final String S = sc.next();\n final int answer = weatherReport(S);\n System.out.println(answer);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "final String S = sc.next();", "S", "sc.next()", "sc.next", "sc", "final int answer = weatherReport(S);", "answer", "weatherReport(S)", "weatherReport", "S", "System.out.println(answer)", "System.out.println", "System.out", "System", "System.out", "answer", "final String[] args", "args", "/**\n * ロジック\n */\n public static int weatherReport(String S) {\n if (S.matches(\"R{3}\")){\n return 3;\n } else if (S.matches(\".*R{2}.*\")) {\n return 2;\n } else if (S.matches(\".*R.*\")) {\n return 1;\n } else {\n return 0;\n }\n }", "weatherReport", "{\n if (S.matches(\"R{3}\")){\n return 3;\n } else if (S.matches(\".*R{2}.*\")) {\n return 2;\n } else if (S.matches(\".*R.*\")) {\n return 1;\n } else {\n return 0;\n }\n }", "if (S.matches(\"R{3}\")){\n return 3;\n } else if (S.matches(\".*R{2}.*\")) {\n return 2;\n } else if (S.matches(\".*R.*\")) {\n return 1;\n } else {\n return 0;\n }", "S.matches(\"R{3}\")", "S.matches", "S", "\"R{3}\"", "{\n return 3;\n }", "return 3;", "3", "if (S.matches(\".*R{2}.*\")) {\n return 2;\n } else if (S.matches(\".*R.*\")) {\n return 1;\n } else {\n return 0;\n }", "S.matches(\".*R{2}.*\")", "S.matches", "S", "\".*R{2}.*\"", "{\n return 2;\n }", "return 2;", "2", "if (S.matches(\".*R.*\")) {\n return 1;\n } else {\n return 0;\n }", "S.matches(\".*R.*\")", "S.matches", "S", "\".*R.*\"", "{\n return 1;\n }", "return 1;", "1", "{\n return 0;\n }", "return 0;", "0", "String S", "S", "public class Main{\n /**\n * メインメソッド\n */\n public static void main(final String[] args) {\n Scanner sc = new Scanner(System.in);\n final String S = sc.next();\n final int answer = weatherReport(S);\n System.out.println(answer);\n }\n\n /**\n * ロジック\n */\n public static int weatherReport(String S) {\n if (S.matches(\"R{3}\")){\n return 3;\n } else if (S.matches(\".*R{2}.*\")) {\n return 2;\n } else if (S.matches(\".*R.*\")) {\n return 1;\n } else {\n return 0;\n }\n }\n}", "public class Main{\n /**\n * メインメソッド\n */\n public static void main(final String[] args) {\n Scanner sc = new Scanner(System.in);\n final String S = sc.next();\n final int answer = weatherReport(S);\n System.out.println(answer);\n }\n\n /**\n * ロジック\n */\n public static int weatherReport(String S) {\n if (S.matches(\"R{3}\")){\n return 3;\n } else if (S.matches(\".*R{2}.*\")) {\n return 2;\n } else if (S.matches(\".*R.*\")) {\n return 1;\n } else {\n return 0;\n }\n }\n}", "Main" ]
import java.util.*; public class Main{ /** * メインメソッド */ public static void main(final String[] args) { Scanner sc = new Scanner(System.in); final String S = sc.next(); final int answer = weatherReport(S); System.out.println(answer); } /** * ロジック */ public static int weatherReport(String S) { if (S.matches("R{3}")){ return 3; } else if (S.matches(".*R{2}.*")) { return 2; } else if (S.matches(".*R.*")) { return 1; } else { return 0; } } }
[ 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, 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, 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, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 111, 5 ], [ 111, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 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 ], [ 42, 45 ], [ 41, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 41, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 53, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 53, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 65, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 65, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 77, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 77, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 89, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 89, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 102, 107 ], [ 6, 108 ], [ 108, 109 ], [ 0, 110 ], [ 110, 111 ], [ 110, 112 ] ]
[ "import java.util.Scanner;\npublic class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String s = scan.next();\n if (s.equals(\"RRR\")){\n System.out.println(3);\n }else if (s.equals(\"RRS\")){\n System.out.println(2);\n }else if (s.equals(\"SRR\")){\n System.out.println(2);\n }else if (s.equals(\"RSR\")){\n System.out.println(1);\n }else if (s.equals(\"RSS\")){\n System.out.println(1);\n }else if (s.equals(\"SRS\")){\n System.out.println(1);\n }else if (s.equals(\"SSR\")){\n System.out.println(1);\n }else{\n System.out.println(0);\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 s = scan.next();\n if (s.equals(\"RRR\")){\n System.out.println(3);\n }else if (s.equals(\"RRS\")){\n System.out.println(2);\n }else if (s.equals(\"SRR\")){\n System.out.println(2);\n }else if (s.equals(\"RSR\")){\n System.out.println(1);\n }else if (s.equals(\"RSS\")){\n System.out.println(1);\n }else if (s.equals(\"SRS\")){\n System.out.println(1);\n }else if (s.equals(\"SSR\")){\n System.out.println(1);\n }else{\n System.out.println(0);\n }\n }\n}", "Main", "public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String s = scan.next();\n if (s.equals(\"RRR\")){\n System.out.println(3);\n }else if (s.equals(\"RRS\")){\n System.out.println(2);\n }else if (s.equals(\"SRR\")){\n System.out.println(2);\n }else if (s.equals(\"RSR\")){\n System.out.println(1);\n }else if (s.equals(\"RSS\")){\n System.out.println(1);\n }else if (s.equals(\"SRS\")){\n System.out.println(1);\n }else if (s.equals(\"SSR\")){\n System.out.println(1);\n }else{\n System.out.println(0);\n }\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n String s = scan.next();\n if (s.equals(\"RRR\")){\n System.out.println(3);\n }else if (s.equals(\"RRS\")){\n System.out.println(2);\n }else if (s.equals(\"SRR\")){\n System.out.println(2);\n }else if (s.equals(\"RSR\")){\n System.out.println(1);\n }else if (s.equals(\"RSS\")){\n System.out.println(1);\n }else if (s.equals(\"SRS\")){\n System.out.println(1);\n }else if (s.equals(\"SSR\")){\n System.out.println(1);\n }else{\n System.out.println(0);\n }\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String s = scan.next();", "s", "scan.next()", "scan.next", "scan", "if (s.equals(\"RRR\")){\n System.out.println(3);\n }else if (s.equals(\"RRS\")){\n System.out.println(2);\n }else if (s.equals(\"SRR\")){\n System.out.println(2);\n }else if (s.equals(\"RSR\")){\n System.out.println(1);\n }else if (s.equals(\"RSS\")){\n System.out.println(1);\n }else if (s.equals(\"SRS\")){\n System.out.println(1);\n }else if (s.equals(\"SSR\")){\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.equals(\"RRS\")){\n System.out.println(2);\n }else if (s.equals(\"SRR\")){\n System.out.println(2);\n }else if (s.equals(\"RSR\")){\n System.out.println(1);\n }else if (s.equals(\"RSS\")){\n System.out.println(1);\n }else if (s.equals(\"SRS\")){\n System.out.println(1);\n }else if (s.equals(\"SSR\")){\n System.out.println(1);\n }else{\n System.out.println(0);\n }", "s.equals(\"RRS\")", "s.equals", "s", "\"RRS\"", "{\n System.out.println(2);\n }", "System.out.println(2)", "System.out.println", "System.out", "System", "System.out", "2", "if (s.equals(\"SRR\")){\n System.out.println(2);\n }else if (s.equals(\"RSR\")){\n System.out.println(1);\n }else if (s.equals(\"RSS\")){\n System.out.println(1);\n }else if (s.equals(\"SRS\")){\n System.out.println(1);\n }else if (s.equals(\"SSR\")){\n System.out.println(1);\n }else{\n System.out.println(0);\n }", "s.equals(\"SRR\")", "s.equals", "s", "\"SRR\"", "{\n System.out.println(2);\n }", "System.out.println(2)", "System.out.println", "System.out", "System", "System.out", "2", "if (s.equals(\"RSR\")){\n System.out.println(1);\n }else if (s.equals(\"RSS\")){\n System.out.println(1);\n }else if (s.equals(\"SRS\")){\n System.out.println(1);\n }else if (s.equals(\"SSR\")){\n System.out.println(1);\n }else{\n System.out.println(0);\n }", "s.equals(\"RSR\")", "s.equals", "s", "\"RSR\"", "{\n System.out.println(1);\n }", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "if (s.equals(\"RSS\")){\n System.out.println(1);\n }else if (s.equals(\"SRS\")){\n System.out.println(1);\n }else if (s.equals(\"SSR\")){\n System.out.println(1);\n }else{\n System.out.println(0);\n }", "s.equals(\"RSS\")", "s.equals", "s", "\"RSS\"", "{\n System.out.println(1);\n }", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "if (s.equals(\"SRS\")){\n System.out.println(1);\n }else if (s.equals(\"SSR\")){\n System.out.println(1);\n }else{\n System.out.println(0);\n }", "s.equals(\"SRS\")", "s.equals", "s", "\"SRS\"", "{\n System.out.println(1);\n }", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "if (s.equals(\"SSR\")){\n System.out.println(1);\n }else{\n System.out.println(0);\n }", "s.equals(\"SSR\")", "s.equals", "s", "\"SSR\"", "{\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", "public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String s = scan.next();\n if (s.equals(\"RRR\")){\n System.out.println(3);\n }else if (s.equals(\"RRS\")){\n System.out.println(2);\n }else if (s.equals(\"SRR\")){\n System.out.println(2);\n }else if (s.equals(\"RSR\")){\n System.out.println(1);\n }else if (s.equals(\"RSS\")){\n System.out.println(1);\n }else if (s.equals(\"SRS\")){\n System.out.println(1);\n }else if (s.equals(\"SSR\")){\n System.out.println(1);\n }else{\n System.out.println(0);\n }\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String s = scan.next();\n if (s.equals(\"RRR\")){\n System.out.println(3);\n }else if (s.equals(\"RRS\")){\n System.out.println(2);\n }else if (s.equals(\"SRR\")){\n System.out.println(2);\n }else if (s.equals(\"RSR\")){\n System.out.println(1);\n }else if (s.equals(\"RSS\")){\n System.out.println(1);\n }else if (s.equals(\"SRS\")){\n System.out.println(1);\n }else if (s.equals(\"SSR\")){\n System.out.println(1);\n }else{\n System.out.println(0);\n }\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(); if (s.equals("RRR")){ System.out.println(3); }else if (s.equals("RRS")){ System.out.println(2); }else if (s.equals("SRR")){ System.out.println(2); }else if (s.equals("RSR")){ System.out.println(1); }else if (s.equals("RSS")){ System.out.println(1); }else if (s.equals("SRS")){ System.out.println(1); }else if (s.equals("SSR")){ System.out.println(1); }else{ System.out.println(0); } } }
[ 7, 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, 4, 18, 13, 17, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 17, 14, 2, 2, 2, 4, 18, 13, 17, 2, 4, 18, 13, 17, 2, 4, 18, 13, 17, 30, 4, 18, 13, 17, 14, 2, 2, 2, 2, 4, 18, 13, 17, 2, 4, 18, 13, 17, 2, 4, 18, 13, 17, 2, 2, 2, 4, 18, 13, 17, 2, 4, 18, 13, 17, 2, 4, 18, 13, 17, 30, 4, 18, 13, 17, 14, 2, 2, 2, 2, 2, 2, 4, 18, 13, 17, 2, 4, 18, 13, 17, 2, 4, 18, 13, 17, 2, 2, 2, 4, 18, 13, 17, 2, 4, 18, 13, 17, 2, 4, 18, 13, 17, 2, 2, 2, 4, 18, 13, 17, 2, 4, 18, 13, 17, 2, 4, 18, 13, 17, 2, 2, 2, 4, 18, 13, 17, 2, 4, 18, 13, 17, 2, 4, 18, 13, 17, 30, 4, 18, 13, 17, 14, 2, 2, 2, 4, 18, 13, 17, 2, 4, 18, 13, 17, 2, 4, 18, 13, 17, 30, 4, 18, 13, 17, 23, 13, 23, 13, 23, 13, 6, 13, 41, 13, 12, 13, 30, 0, 13, 20, 23, 13, 12, 13, 30, 0, 18, 36, 13, 20, 23, 13, 12, 13, 30, 4, 18, 13, 12, 13, 30, 4, 18, 13, 13, 23, 13, 6, 13, 41, 13, 41, 13, 20, 17, 41, 13, 41, 13, 41, 13, 12, 13, 30, 0, 18, 36, 13, 13, 23, 13, 12, 13, 30, 14, 2, 13, 40, 17, 30, 37, 20, 14, 2, 13, 13, 30, 0, 13, 17, 38, 5, 13, 30, 37, 20, 30, 0, 13, 4, 18, 13, 13, 14, 2, 13, 17, 30, 29, 40, 17, 29, 18, 13, 40, 13, 12, 13, 30, 41, 13, 4, 13, 42, 4, 13, 13, 30, 0, 13, 4, 13, 41, 13, 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 ], [ 447, 8 ], [ 447, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 14, 16 ], [ 11, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 19, 21 ], [ 11, 22 ], [ 22, 23 ], [ 22, 24 ], [ 11, 25 ], [ 25, 26 ], [ 25, 27 ], [ 11, 28 ], [ 28, 29 ], [ 28, 30 ], [ 11, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 31, 35 ], [ 31, 36 ], [ 11, 37 ], [ 37, 38 ], [ 38, 39 ], [ 9, 40 ], [ 40, 41 ], [ 447, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 46, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 46, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 46, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 46, 70 ], [ 70, 71 ], [ 72, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 73, 77 ], [ 72, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 78, 82 ], [ 72, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 83, 87 ], [ 70, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 70, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 97, 101 ], [ 96, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 102, 106 ], [ 95, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 107, 111 ], [ 94, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 114, 118 ], [ 113, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 119, 123 ], [ 112, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 124, 128 ], [ 93, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 130, 133 ], [ 93, 134 ], [ 134, 135 ], [ 137, 136 ], [ 172, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 140, 144 ], [ 139, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 145, 149 ], [ 138, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 150, 154 ], [ 137, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 157, 161 ], [ 156, 162 ], [ 162, 163 ], [ 163, 164 ], [ 164, 165 ], [ 162, 166 ], [ 155, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 167, 171 ], [ 172, 172 ], [ 172, 173 ], [ 173, 174 ], [ 174, 175 ], [ 175, 176 ], [ 176, 177 ], [ 174, 178 ], [ 173, 179 ], [ 179, 180 ], [ 180, 181 ], [ 181, 182 ], [ 179, 183 ], [ 172, 184 ], [ 184, 185 ], [ 185, 186 ], [ 186, 187 ], [ 184, 188 ], [ 137, 189 ], [ 189, 190 ], [ 190, 191 ], [ 191, 192 ], [ 192, 193 ], [ 193, 194 ], [ 191, 195 ], [ 190, 196 ], [ 196, 197 ], [ 197, 198 ], [ 198, 199 ], [ 196, 200 ], [ 189, 201 ], [ 201, 202 ], [ 202, 203 ], [ 203, 204 ], [ 201, 205 ], [ 134, 206 ], [ 206, 207 ], [ 207, 208 ], [ 208, 209 ], [ 207, 210 ], [ 134, 211 ], [ 211, 212 ], [ 213, 213 ], [ 213, 214 ], [ 214, 215 ], [ 215, 216 ], [ 216, 217 ], [ 214, 218 ], [ 213, 219 ], [ 219, 220 ], [ 220, 221 ], [ 221, 222 ], [ 219, 223 ], [ 213, 224 ], [ 224, 225 ], [ 225, 226 ], [ 226, 227 ], [ 224, 228 ], [ 211, 229 ], [ 229, 230 ], [ 230, 231 ], [ 231, 232 ], [ 230, 233 ], [ 44, 234 ], [ 234, 235 ], [ 44, 236 ], [ 236, 237 ], [ 44, 238 ], [ 238, 239 ], [ 447, 240 ], [ 240, 241 ], [ 240, 242 ], [ 242, 243 ], [ 240, 244 ], [ 244, 245 ], [ 244, 246 ], [ 246, 247 ], [ 247, 248 ], [ 247, 249 ], [ 244, 250 ], [ 250, 251 ], [ 240, 252 ], [ 252, 253 ], [ 252, 254 ], [ 254, 255 ], [ 255, 256 ], [ 256, 257 ], [ 256, 258 ], [ 255, 259 ], [ 252, 260 ], [ 260, 261 ], [ 240, 262 ], [ 262, 263 ], [ 262, 264 ], [ 264, 265 ], [ 265, 266 ], [ 266, 267 ], [ 240, 268 ], [ 268, 269 ], [ 268, 270 ], [ 270, 271 ], [ 271, 272 ], [ 272, 273 ], [ 271, 274 ], [ 268, 275 ], [ 275, 276 ], [ 447, 277 ], [ 277, 278 ], [ 277, 279 ], [ 279, 280 ], [ 277, 281 ], [ 281, 282 ], [ 281, 283 ], [ 277, 285 ], [ 285, 286 ], [ 277, 287 ], [ 287, 288 ], [ 277, 289 ], [ 289, 290 ], [ 277, 291 ], [ 291, 292 ], [ 291, 293 ], [ 293, 294 ], [ 294, 295 ], [ 295, 296 ], [ 295, 297 ], [ 294, 298 ], [ 291, 299 ], [ 299, 300 ], [ 277, 301 ], [ 301, 302 ], [ 301, 303 ], [ 303, 304 ], [ 304, 305 ], [ 305, 306 ], [ 305, 307 ], [ 307, 308 ], [ 304, 309 ], [ 309, 310 ], [ 310, 311 ], [ 303, 312 ], [ 312, 313 ], [ 313, 314 ], [ 313, 315 ], [ 312, 316 ], [ 316, 317 ], [ 317, 318 ], [ 317, 319 ], [ 316, 320 ], [ 320, 321 ], [ 321, 322 ], [ 321, 323 ], [ 323, 324 ], [ 324, 325 ], [ 320, 326 ], [ 326, 327 ], [ 327, 328 ], [ 327, 329 ], [ 329, 330 ], [ 330, 331 ], [ 329, 332 ], [ 316, 333 ], [ 333, 334 ], [ 334, 335 ], [ 334, 336 ], [ 333, 337 ], [ 337, 338 ], [ 338, 339 ], [ 339, 340 ], [ 303, 341 ], [ 341, 342 ], [ 342, 343 ], [ 342, 344 ], [ 344, 345 ], [ 277, 346 ], [ 346, 347 ], [ 346, 348 ], [ 348, 349 ], [ 349, 350 ], [ 349, 351 ], [ 351, 352 ], [ 348, 353 ], [ 353, 354 ], [ 354, 355 ], [ 354, 356 ], [ 353, 357 ], [ 357, 358 ], [ 358, 359 ], [ 358, 360 ], [ 360, 361 ], [ 348, 362 ], [ 362, 363 ], [ 362, 364 ], [ 348, 365 ], [ 365, 366 ], [ 366, 367 ], [ 367, 368 ], [ 367, 369 ], [ 365, 370 ], [ 370, 371 ], [ 371, 372 ], [ 372, 373 ], [ 373, 374 ], [ 372, 375 ], [ 371, 376 ], [ 376, 377 ], [ 377, 378 ], [ 378, 379 ], [ 377, 380 ], [ 370, 381 ], [ 381, 382 ], [ 381, 383 ], [ 383, 384 ], [ 348, 385 ], [ 385, 386 ], [ 386, 387 ], [ 387, 388 ], [ 277, 389 ], [ 389, 390 ], [ 389, 391 ], [ 391, 392 ], [ 392, 393 ], [ 393, 394 ], [ 393, 395 ], [ 392, 396 ], [ 396, 397 ], [ 397, 398 ], [ 398, 399 ], [ 399, 400 ], [ 398, 401 ], [ 391, 402 ], [ 402, 403 ], [ 403, 404 ], [ 403, 405 ], [ 389, 406 ], [ 406, 407 ], [ 277, 408 ], [ 408, 409 ], [ 408, 410 ], [ 410, 411 ], [ 411, 412 ], [ 415, 413 ], [ 425, 414 ], [ 422, 415 ], [ 415, 416 ], [ 416, 417 ], [ 416, 418 ], [ 415, 419 ], [ 419, 420 ], [ 419, 421 ], [ 422, 422 ], [ 422, 423 ], [ 422, 424 ], [ 425, 425 ], [ 425, 426 ], [ 425, 427 ], [ 415, 428 ], [ 428, 429 ], [ 428, 430 ], [ 430, 431 ], [ 408, 432 ], [ 432, 433 ], [ 277, 434 ], [ 434, 435 ], [ 434, 436 ], [ 436, 437 ], [ 437, 438 ], [ 438, 439 ], [ 277, 440 ], [ 440, 441 ], [ 440, 442 ], [ 442, 443 ], [ 442, 444 ], [ 444, 445 ], [ 0, 446 ], [ 446, 447 ], [ 446, 448 ] ]
[ "import java.io.*;\nimport java.util.InputMismatchException;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n ARainySeasonEditorial solver = new ARainySeasonEditorial();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ARainySeasonEditorial {\n public void solve(int testNumber, InputReader in, OutputWriter out) {\n String str = in.next();\n Character left = str.charAt(0);\n Character middle = str.charAt(1);\n Character right = str.charAt(2);\n if (left.charValue() == 'R' && middle.charValue() == 'R'\n && right.charValue() == 'R') {\n out.println(3);\n } else if ((left.charValue() == 'R' && middle.charValue() == 'R' && right.charValue() == 'S')\n || (middle.charValue() == 'R' && right.charValue() == 'R' && left.charValue() == 'S')) {\n out.println(2);\n } else if ((left.charValue() == 'R' && middle.charValue() == 'S' && right.charValue() == 'S')\n || (left.charValue() == 'S' && middle.charValue() == 'R' && right.charValue() == 'S')\n || (left.charValue() == 'S' && middle.charValue() == 'S' && right.charValue() == 'R')\n || (left.charValue() == 'R' && right.charValue() == 'R' && middle.charValue() == 'S')) {\n out.println(1);\n } else if (left.charValue() == 'S' && middle.charValue() == 'S' && right.charValue() == 'S') {\n out.println(0);\n }\n }\n\n }\n\n static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void close() {\n writer.close();\n }\n\n public void println(int i) {\n writer.println(i);\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public 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.*;", "io.*", "java", "import java.util.InputMismatchException;", "InputMismatchException", "java.util", "public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n ARainySeasonEditorial solver = new ARainySeasonEditorial();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ARainySeasonEditorial {\n public void solve(int testNumber, InputReader in, OutputWriter out) {\n String str = in.next();\n Character left = str.charAt(0);\n Character middle = str.charAt(1);\n Character right = str.charAt(2);\n if (left.charValue() == 'R' && middle.charValue() == 'R'\n && right.charValue() == 'R') {\n out.println(3);\n } else if ((left.charValue() == 'R' && middle.charValue() == 'R' && right.charValue() == 'S')\n || (middle.charValue() == 'R' && right.charValue() == 'R' && left.charValue() == 'S')) {\n out.println(2);\n } else if ((left.charValue() == 'R' && middle.charValue() == 'S' && right.charValue() == 'S')\n || (left.charValue() == 'S' && middle.charValue() == 'R' && right.charValue() == 'S')\n || (left.charValue() == 'S' && middle.charValue() == 'S' && right.charValue() == 'R')\n || (left.charValue() == 'R' && right.charValue() == 'R' && middle.charValue() == 'S')) {\n out.println(1);\n } else if (left.charValue() == 'S' && middle.charValue() == 'S' && right.charValue() == 'S') {\n out.println(0);\n }\n }\n\n }\n\n static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void close() {\n writer.close();\n }\n\n public void println(int i) {\n writer.println(i);\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public 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 OutputWriter out = new OutputWriter(outputStream);\n ARainySeasonEditorial solver = new ARainySeasonEditorial();\n solver.solve(1, in, out);\n out.close();\n }", "main", "{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n ARainySeasonEditorial solver = new ARainySeasonEditorial();\n solver.solve(1, in, out);\n out.close();\n }", "InputStream inputStream = System.in;", "inputStream", "System.in", "System", "System.in", "OutputStream outputStream = System.out;", "outputStream", "System.out", "System", "System.out", "InputReader in = new InputReader(inputStream);", "in", "new InputReader(inputStream)", "OutputWriter out = new OutputWriter(outputStream);", "out", "new OutputWriter(outputStream)", "ARainySeasonEditorial solver = new ARainySeasonEditorial();", "solver", "new ARainySeasonEditorial()", "solver.solve(1, in, out)", "solver.solve", "solver", "1", "in", "out", "out.close()", "out.close", "out", "String[] args", "args", "static class ARainySeasonEditorial {\n public void solve(int testNumber, InputReader in, OutputWriter out) {\n String str = in.next();\n Character left = str.charAt(0);\n Character middle = str.charAt(1);\n Character right = str.charAt(2);\n if (left.charValue() == 'R' && middle.charValue() == 'R'\n && right.charValue() == 'R') {\n out.println(3);\n } else if ((left.charValue() == 'R' && middle.charValue() == 'R' && right.charValue() == 'S')\n || (middle.charValue() == 'R' && right.charValue() == 'R' && left.charValue() == 'S')) {\n out.println(2);\n } else if ((left.charValue() == 'R' && middle.charValue() == 'S' && right.charValue() == 'S')\n || (left.charValue() == 'S' && middle.charValue() == 'R' && right.charValue() == 'S')\n || (left.charValue() == 'S' && middle.charValue() == 'S' && right.charValue() == 'R')\n || (left.charValue() == 'R' && right.charValue() == 'R' && middle.charValue() == 'S')) {\n out.println(1);\n } else if (left.charValue() == 'S' && middle.charValue() == 'S' && right.charValue() == 'S') {\n out.println(0);\n }\n }\n\n }", "ARainySeasonEditorial", "public void solve(int testNumber, InputReader in, OutputWriter out) {\n String str = in.next();\n Character left = str.charAt(0);\n Character middle = str.charAt(1);\n Character right = str.charAt(2);\n if (left.charValue() == 'R' && middle.charValue() == 'R'\n && right.charValue() == 'R') {\n out.println(3);\n } else if ((left.charValue() == 'R' && middle.charValue() == 'R' && right.charValue() == 'S')\n || (middle.charValue() == 'R' && right.charValue() == 'R' && left.charValue() == 'S')) {\n out.println(2);\n } else if ((left.charValue() == 'R' && middle.charValue() == 'S' && right.charValue() == 'S')\n || (left.charValue() == 'S' && middle.charValue() == 'R' && right.charValue() == 'S')\n || (left.charValue() == 'S' && middle.charValue() == 'S' && right.charValue() == 'R')\n || (left.charValue() == 'R' && right.charValue() == 'R' && middle.charValue() == 'S')) {\n out.println(1);\n } else if (left.charValue() == 'S' && middle.charValue() == 'S' && right.charValue() == 'S') {\n out.println(0);\n }\n }", "solve", "{\n String str = in.next();\n Character left = str.charAt(0);\n Character middle = str.charAt(1);\n Character right = str.charAt(2);\n if (left.charValue() == 'R' && middle.charValue() == 'R'\n && right.charValue() == 'R') {\n out.println(3);\n } else if ((left.charValue() == 'R' && middle.charValue() == 'R' && right.charValue() == 'S')\n || (middle.charValue() == 'R' && right.charValue() == 'R' && left.charValue() == 'S')) {\n out.println(2);\n } else if ((left.charValue() == 'R' && middle.charValue() == 'S' && right.charValue() == 'S')\n || (left.charValue() == 'S' && middle.charValue() == 'R' && right.charValue() == 'S')\n || (left.charValue() == 'S' && middle.charValue() == 'S' && right.charValue() == 'R')\n || (left.charValue() == 'R' && right.charValue() == 'R' && middle.charValue() == 'S')) {\n out.println(1);\n } else if (left.charValue() == 'S' && middle.charValue() == 'S' && right.charValue() == 'S') {\n out.println(0);\n }\n }", "String str = in.next();", "str", "in.next()", "in.next", "in", "Character left = str.charAt(0);", "left", "str.charAt(0)", "str.charAt", "str", "0", "Character middle = str.charAt(1);", "middle", "str.charAt(1)", "str.charAt", "str", "1", "Character right = str.charAt(2);", "right", "str.charAt(2)", "str.charAt", "str", "2", "if (left.charValue() == 'R' && middle.charValue() == 'R'\n && right.charValue() == 'R') {\n out.println(3);\n } else if ((left.charValue() == 'R' && middle.charValue() == 'R' && right.charValue() == 'S')\n || (middle.charValue() == 'R' && right.charValue() == 'R' && left.charValue() == 'S')) {\n out.println(2);\n } else if ((left.charValue() == 'R' && middle.charValue() == 'S' && right.charValue() == 'S')\n || (left.charValue() == 'S' && middle.charValue() == 'R' && right.charValue() == 'S')\n || (left.charValue() == 'S' && middle.charValue() == 'S' && right.charValue() == 'R')\n || (left.charValue() == 'R' && right.charValue() == 'R' && middle.charValue() == 'S')) {\n out.println(1);\n } else if (left.charValue() == 'S' && middle.charValue() == 'S' && right.charValue() == 'S') {\n out.println(0);\n }", "left.charValue() == 'R' && middle.charValue() == 'R'\n && right.charValue() == 'R'", "left.charValue() == 'R' && middle.charValue() == 'R'\n && right.charValue() == 'R'", "left.charValue() == 'R'", "left.charValue()", "left.charValue", "left", "'R'", "middle.charValue() == 'R'", "middle.charValue()", "middle.charValue", "middle", "'R'", "right.charValue() == 'R'", "right.charValue()", "right.charValue", "right", "'R'", "{\n out.println(3);\n }", "out.println(3)", "out.println", "out", "3", "if ((left.charValue() == 'R' && middle.charValue() == 'R' && right.charValue() == 'S')\n || (middle.charValue() == 'R' && right.charValue() == 'R' && left.charValue() == 'S')) {\n out.println(2);\n } else if ((left.charValue() == 'R' && middle.charValue() == 'S' && right.charValue() == 'S')\n || (left.charValue() == 'S' && middle.charValue() == 'R' && right.charValue() == 'S')\n || (left.charValue() == 'S' && middle.charValue() == 'S' && right.charValue() == 'R')\n || (left.charValue() == 'R' && right.charValue() == 'R' && middle.charValue() == 'S')) {\n out.println(1);\n } else if (left.charValue() == 'S' && middle.charValue() == 'S' && right.charValue() == 'S') {\n out.println(0);\n }", "(left.charValue() == 'R' && middle.charValue() == 'R' && right.charValue() == 'S')\n || (middle.charValue() == 'R' && right.charValue() == 'R' && left.charValue() == 'S')", "(left.charValue() == 'R' && middle.charValue() == 'R' && right.charValue() == 'S')", "left.charValue() == 'R' && middle.charValue() == 'R' && right.charValue() == 'S'", "left.charValue() == 'R'", "left.charValue()", "left.charValue", "left", "'R'", "middle.charValue() == 'R'", "middle.charValue()", "middle.charValue", "middle", "'R'", "right.charValue() == 'S'", "right.charValue()", "right.charValue", "right", "'S'", "(middle.charValue() == 'R' && right.charValue() == 'R' && left.charValue() == 'S')", "middle.charValue() == 'R' && right.charValue() == 'R' && left.charValue() == 'S'", "middle.charValue() == 'R'", "middle.charValue()", "middle.charValue", "middle", "'R'", "right.charValue() == 'R'", "right.charValue()", "right.charValue", "right", "'R'", "left.charValue() == 'S'", "left.charValue()", "left.charValue", "left", "'S'", "{\n out.println(2);\n }", "out.println(2)", "out.println", "out", "2", "if ((left.charValue() == 'R' && middle.charValue() == 'S' && right.charValue() == 'S')\n || (left.charValue() == 'S' && middle.charValue() == 'R' && right.charValue() == 'S')\n || (left.charValue() == 'S' && middle.charValue() == 'S' && right.charValue() == 'R')\n || (left.charValue() == 'R' && right.charValue() == 'R' && middle.charValue() == 'S')) {\n out.println(1);\n } else if (left.charValue() == 'S' && middle.charValue() == 'S' && right.charValue() == 'S') {\n out.println(0);\n }", "(left.charValue() == 'R' && middle.charValue() == 'S' && right.charValue() == 'S')\n || (left.charValue() == 'S' && middle.charValue() == 'R' && right.charValue() == 'S')\n || (left.charValue() == 'S' && middle.charValue() == 'S' && right.charValue() == 'R')\n || (left.charValue() == 'R' && right.charValue() == 'R' && middle.charValue() == 'S')", "(left.charValue() == 'S' && middle.charValue() == 'S' && right.charValue() == 'R')", "(left.charValue() == 'R' && middle.charValue() == 'S' && right.charValue() == 'S')\n || (left.charValue() == 'S' && middle.charValue() == 'R' && right.charValue() == 'S')\n || (left.charValue() == 'S' && middle.charValue() == 'S' && right.charValue() == 'R')\n || (left.charValue() == 'R' && right.charValue() == 'R' && middle.charValue() == 'S')", "(left.charValue() == 'R' && middle.charValue() == 'S' && right.charValue() == 'S')", "left.charValue() == 'R' && middle.charValue() == 'S' && right.charValue() == 'S'", "left.charValue() == 'R'", "left.charValue()", "left.charValue", "left", "'R'", "middle.charValue() == 'S'", "middle.charValue()", "middle.charValue", "middle", "'S'", "right.charValue() == 'S'", "right.charValue()", "right.charValue", "right", "'S'", "(left.charValue() == 'S' && middle.charValue() == 'R' && right.charValue() == 'S')", "left.charValue() == 'S' && middle.charValue() == 'R' && right.charValue() == 'S'", "left.charValue() == 'S'", "left.charValue()", "left.charValue", "left", "'S'", "middle.charValue() == 'R'", "middle.charValue()", "middle.charValue", "middle", "'R'", "right.charValue() == 'S'", "right.charValue()", "right.charValue", "right", "'S'", "(left.charValue() == 'S' && middle.charValue() == 'S' && right.charValue() == 'R')", "left.charValue() == 'S' && middle.charValue() == 'S' && right.charValue() == 'R'", "left.charValue() == 'S'", "left.charValue()", "left.charValue", "left", "'S'", "middle.charValue() == 'S'", "middle.charValue()", "middle.charValue", "middle", "'S'", "right.charValue() == 'R'", "right.charValue()", "right.charValue", "right", "'R'", "(left.charValue() == 'R' && right.charValue() == 'R' && middle.charValue() == 'S')", "left.charValue() == 'R' && right.charValue() == 'R' && middle.charValue() == 'S'", "left.charValue() == 'R'", "left.charValue()", "left.charValue", "left", "'R'", "right.charValue() == 'R'", "right.charValue()", "right.charValue", "right", "'R'", "middle.charValue() == 'S'", "middle.charValue()", "middle.charValue", "middle", "'S'", "{\n out.println(1);\n }", "out.println(1)", "out.println", "out", "1", "if (left.charValue() == 'S' && middle.charValue() == 'S' && right.charValue() == 'S') {\n out.println(0);\n }", "left.charValue() == 'S' && middle.charValue() == 'S' && right.charValue() == 'S'", "left.charValue() == 'S' && middle.charValue() == 'S' && right.charValue() == 'S'", "left.charValue() == 'S'", "left.charValue()", "left.charValue", "left", "'S'", "middle.charValue() == 'S'", "middle.charValue()", "middle.charValue", "middle", "'S'", "right.charValue() == 'S'", "right.charValue()", "right.charValue", "right", "'S'", "{\n out.println(0);\n }", "out.println(0)", "out.println", "out", "0", "int testNumber", "testNumber", "InputReader in", "in", "OutputWriter out", "out", "static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void close() {\n writer.close();\n }\n\n public void println(int i) {\n writer.println(i);\n }\n\n }", "OutputWriter", "private final PrintWriter writer;", "writer", "public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }", "OutputWriter", "{\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }", "writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)))", "writer", "new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)))", "OutputStream outputStream", "outputStream", "public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }", "OutputWriter", "{\n this.writer = new PrintWriter(writer);\n }", "this.writer = new PrintWriter(writer)", "this.writer", "this", "this.writer", "new PrintWriter(writer)", "Writer writer", "writer", "public void close() {\n writer.close();\n }", "close", "{\n writer.close();\n }", "writer.close()", "writer.close", "writer", "public void println(int i) {\n writer.println(i);\n }", "println", "{\n writer.println(i);\n }", "writer.println(i)", "writer.println", "writer", "i", "int i", "i", "static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public 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 InputStream stream;", "stream", "private byte[] buf = new byte[1024];", "buf", "new byte[1024]", "1024", "private int curChar;", "curChar", "private int numChars;", "numChars", "private InputReader.SpaceCharFilter filter;", "filter", "public InputReader(InputStream stream) {\n this.stream = stream;\n }", "InputReader", "{\n this.stream = stream;\n }", "this.stream = stream", "this.stream", "this", "this.stream", "stream", "InputStream stream", "stream", "public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }", "read", "{\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }", "if (numChars == -1) {\n throw new InputMismatchException();\n }", "numChars == -1", "numChars", "-1", "1", "{\n throw new InputMismatchException();\n }", "throw new InputMismatchException();", "new InputMismatchException()", "if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }", "curChar >= numChars", "curChar", "numChars", "{\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }", "curChar = 0", "curChar", "0", "try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }", "catch (IOException e) {\n throw new InputMismatchException();\n }", "IOException e", "{\n throw new InputMismatchException();\n }", "throw new InputMismatchException();", "new InputMismatchException()", "{\n numChars = stream.read(buf);\n }", "numChars = stream.read(buf)", "numChars", "stream.read(buf)", "stream.read", "stream", "buf", "if (numChars <= 0) {\n return -1;\n }", "numChars <= 0", "numChars", "0", "{\n return -1;\n }", "return -1;", "-1", "1", "return buf[curChar++];", "buf[curChar++]", "buf", "curChar++", "curChar", "public 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 OutputWriter out = new OutputWriter(outputStream);\n ARainySeasonEditorial solver = new ARainySeasonEditorial();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ARainySeasonEditorial {\n public void solve(int testNumber, InputReader in, OutputWriter out) {\n String str = in.next();\n Character left = str.charAt(0);\n Character middle = str.charAt(1);\n Character right = str.charAt(2);\n if (left.charValue() == 'R' && middle.charValue() == 'R'\n && right.charValue() == 'R') {\n out.println(3);\n } else if ((left.charValue() == 'R' && middle.charValue() == 'R' && right.charValue() == 'S')\n || (middle.charValue() == 'R' && right.charValue() == 'R' && left.charValue() == 'S')) {\n out.println(2);\n } else if ((left.charValue() == 'R' && middle.charValue() == 'S' && right.charValue() == 'S')\n || (left.charValue() == 'S' && middle.charValue() == 'R' && right.charValue() == 'S')\n || (left.charValue() == 'S' && middle.charValue() == 'S' && right.charValue() == 'R')\n || (left.charValue() == 'R' && right.charValue() == 'R' && middle.charValue() == 'S')) {\n out.println(1);\n } else if (left.charValue() == 'S' && middle.charValue() == 'S' && right.charValue() == 'S') {\n out.println(0);\n }\n }\n\n }\n\n static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void close() {\n writer.close();\n }\n\n public void println(int i) {\n writer.println(i);\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public 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 OutputWriter out = new OutputWriter(outputStream);\n ARainySeasonEditorial solver = new ARainySeasonEditorial();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ARainySeasonEditorial {\n public void solve(int testNumber, InputReader in, OutputWriter out) {\n String str = in.next();\n Character left = str.charAt(0);\n Character middle = str.charAt(1);\n Character right = str.charAt(2);\n if (left.charValue() == 'R' && middle.charValue() == 'R'\n && right.charValue() == 'R') {\n out.println(3);\n } else if ((left.charValue() == 'R' && middle.charValue() == 'R' && right.charValue() == 'S')\n || (middle.charValue() == 'R' && right.charValue() == 'R' && left.charValue() == 'S')) {\n out.println(2);\n } else if ((left.charValue() == 'R' && middle.charValue() == 'S' && right.charValue() == 'S')\n || (left.charValue() == 'S' && middle.charValue() == 'R' && right.charValue() == 'S')\n || (left.charValue() == 'S' && middle.charValue() == 'S' && right.charValue() == 'R')\n || (left.charValue() == 'R' && right.charValue() == 'R' && middle.charValue() == 'S')) {\n out.println(1);\n } else if (left.charValue() == 'S' && middle.charValue() == 'S' && right.charValue() == 'S') {\n out.println(0);\n }\n }\n\n }\n\n static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void close() {\n writer.close();\n }\n\n public void println(int i) {\n writer.println(i);\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public 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.*; import java.util.InputMismatchException; /** * Built using CHelper plug-in * Actual solution is at the top */ public class Main { public static void main(String[] args) { InputStream inputStream = System.in; OutputStream outputStream = System.out; InputReader in = new InputReader(inputStream); OutputWriter out = new OutputWriter(outputStream); ARainySeasonEditorial solver = new ARainySeasonEditorial(); solver.solve(1, in, out); out.close(); } static class ARainySeasonEditorial { public void solve(int testNumber, InputReader in, OutputWriter out) { String str = in.next(); Character left = str.charAt(0); Character middle = str.charAt(1); Character right = str.charAt(2); if (left.charValue() == 'R' && middle.charValue() == 'R' && right.charValue() == 'R') { out.println(3); } else if ((left.charValue() == 'R' && middle.charValue() == 'R' && right.charValue() == 'S') || (middle.charValue() == 'R' && right.charValue() == 'R' && left.charValue() == 'S')) { out.println(2); } else if ((left.charValue() == 'R' && middle.charValue() == 'S' && right.charValue() == 'S') || (left.charValue() == 'S' && middle.charValue() == 'R' && right.charValue() == 'S') || (left.charValue() == 'S' && middle.charValue() == 'S' && right.charValue() == 'R') || (left.charValue() == 'R' && right.charValue() == 'R' && middle.charValue() == 'S')) { out.println(1); } else if (left.charValue() == 'S' && middle.charValue() == 'S' && right.charValue() == 'S') { out.println(0); } } } static class OutputWriter { private final PrintWriter writer; public OutputWriter(OutputStream outputStream) { writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream))); } public OutputWriter(Writer writer) { this.writer = new PrintWriter(writer); } public void close() { writer.close(); } public void println(int i) { writer.println(i); } } static class InputReader { private InputStream stream; private byte[] buf = new byte[1024]; private int curChar; private int numChars; private InputReader.SpaceCharFilter filter; public InputReader(InputStream stream) { this.stream = stream; } public int read() { if (numChars == -1) { throw new InputMismatchException(); } if (curChar >= numChars) { curChar = 0; try { numChars = stream.read(buf); } catch (IOException e) { throw new InputMismatchException(); } if (numChars <= 0) { return -1; } } return buf[curChar++]; } public 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, 6, 13, 12, 13, 30, 41, 13, 20, 41, 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, 30, 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, 30, 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, 30, 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, 30, 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, 30, 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, 30, 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, 30, 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, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 244, 5 ], [ 244, 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 ], [ 19, 19 ], [ 19, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 19, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 27, 30 ], [ 26, 31 ], [ 19, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 32, 37 ], [ 17, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 17, 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 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 45, 73 ], [ 73, 74 ], [ 75, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 76, 81 ], [ 75, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 82, 87 ], [ 75, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 88, 93 ], [ 73, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 73, 101 ], [ 101, 102 ], [ 103, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 105, 108 ], [ 104, 109 ], [ 103, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 111, 114 ], [ 110, 115 ], [ 103, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 117, 120 ], [ 116, 121 ], [ 101, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 123, 128 ], [ 101, 129 ], [ 129, 130 ], [ 131, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 133, 136 ], [ 132, 137 ], [ 131, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 139, 142 ], [ 138, 143 ], [ 131, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 145, 148 ], [ 144, 149 ], [ 129, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 151, 156 ], [ 129, 157 ], [ 157, 158 ], [ 159, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 161, 164 ], [ 160, 165 ], [ 159, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 167, 170 ], [ 166, 171 ], [ 159, 172 ], [ 172, 173 ], [ 173, 174 ], [ 174, 175 ], [ 173, 176 ], [ 172, 177 ], [ 157, 178 ], [ 178, 179 ], [ 179, 180 ], [ 180, 181 ], [ 181, 182 ], [ 181, 183 ], [ 179, 184 ], [ 157, 185 ], [ 185, 186 ], [ 187, 187 ], [ 187, 188 ], [ 188, 189 ], [ 189, 190 ], [ 190, 191 ], [ 189, 192 ], [ 188, 193 ], [ 187, 194 ], [ 194, 195 ], [ 195, 196 ], [ 196, 197 ], [ 195, 198 ], [ 194, 199 ], [ 187, 200 ], [ 200, 201 ], [ 201, 202 ], [ 202, 203 ], [ 201, 204 ], [ 200, 205 ], [ 185, 206 ], [ 206, 207 ], [ 207, 208 ], [ 208, 209 ], [ 209, 210 ], [ 209, 211 ], [ 207, 212 ], [ 185, 213 ], [ 213, 214 ], [ 215, 215 ], [ 215, 216 ], [ 216, 217 ], [ 217, 218 ], [ 218, 219 ], [ 217, 220 ], [ 216, 221 ], [ 215, 222 ], [ 222, 223 ], [ 223, 224 ], [ 224, 225 ], [ 223, 226 ], [ 222, 227 ], [ 215, 228 ], [ 228, 229 ], [ 229, 230 ], [ 230, 231 ], [ 229, 232 ], [ 228, 233 ], [ 213, 234 ], [ 234, 235 ], [ 235, 236 ], [ 236, 237 ], [ 237, 238 ], [ 237, 239 ], [ 235, 240 ], [ 6, 241 ], [ 241, 242 ], [ 0, 243 ], [ 243, 244 ], [ 243, 245 ] ]
[ "\nimport java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner input =new Scanner(System.in);\n\t\tString s=input.next();\n\t\tif(s.charAt(0)=='R' && s.charAt(1)=='R' &&s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(2);\n\t\t}\n\t\t\n\t\telse if(s.charAt(1)=='R' && s.charAt(2)=='R' &&s.charAt(0)=='S')\n\t\t{\n\t\t\tSystem.out.println(2);\n\t\t}\n\t\telse if(s.charAt(0)=='R' &&s.charAt(1)=='S' && s.charAt(2)=='R')\n\t\t{\n\t\t\tSystem.out.println(1);\n\t\t}\n\t\telse if(s.charAt(0)=='S' &&s.charAt(1)=='S' && s.charAt(2)=='R')\n\t\t{\n\t\t\tSystem.out.println(1);\n\t\t}\n\t\telse if(s.charAt(0)=='R' &&s.charAt(1)=='S' && s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(1);\n\t\t}\n\t\telse if(s.charAt(0)=='S' &&s.charAt(1)=='R' && s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(1);\n\t\t}\n\t\telse if(s.charAt(0)=='R' && s.charAt(1)=='R' && s.charAt(2)=='R')\n\t\t{\n\t\t\tSystem.out.println(3);\t \n\t\t}\n\t\telse if(s.charAt(0)=='S' && s.charAt(1)=='S' && s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(0);\t \n\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 input =new Scanner(System.in);\n\t\tString s=input.next();\n\t\tif(s.charAt(0)=='R' && s.charAt(1)=='R' &&s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(2);\n\t\t}\n\t\t\n\t\telse if(s.charAt(1)=='R' && s.charAt(2)=='R' &&s.charAt(0)=='S')\n\t\t{\n\t\t\tSystem.out.println(2);\n\t\t}\n\t\telse if(s.charAt(0)=='R' &&s.charAt(1)=='S' && s.charAt(2)=='R')\n\t\t{\n\t\t\tSystem.out.println(1);\n\t\t}\n\t\telse if(s.charAt(0)=='S' &&s.charAt(1)=='S' && s.charAt(2)=='R')\n\t\t{\n\t\t\tSystem.out.println(1);\n\t\t}\n\t\telse if(s.charAt(0)=='R' &&s.charAt(1)=='S' && s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(1);\n\t\t}\n\t\telse if(s.charAt(0)=='S' &&s.charAt(1)=='R' && s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(1);\n\t\t}\n\t\telse if(s.charAt(0)=='R' && s.charAt(1)=='R' && s.charAt(2)=='R')\n\t\t{\n\t\t\tSystem.out.println(3);\t \n\t\t}\n\t\telse if(s.charAt(0)=='S' && s.charAt(1)=='S' && s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(0);\t \n\t\t}\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner input =new Scanner(System.in);\n\t\tString s=input.next();\n\t\tif(s.charAt(0)=='R' && s.charAt(1)=='R' &&s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(2);\n\t\t}\n\t\t\n\t\telse if(s.charAt(1)=='R' && s.charAt(2)=='R' &&s.charAt(0)=='S')\n\t\t{\n\t\t\tSystem.out.println(2);\n\t\t}\n\t\telse if(s.charAt(0)=='R' &&s.charAt(1)=='S' && s.charAt(2)=='R')\n\t\t{\n\t\t\tSystem.out.println(1);\n\t\t}\n\t\telse if(s.charAt(0)=='S' &&s.charAt(1)=='S' && s.charAt(2)=='R')\n\t\t{\n\t\t\tSystem.out.println(1);\n\t\t}\n\t\telse if(s.charAt(0)=='R' &&s.charAt(1)=='S' && s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(1);\n\t\t}\n\t\telse if(s.charAt(0)=='S' &&s.charAt(1)=='R' && s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(1);\n\t\t}\n\t\telse if(s.charAt(0)=='R' && s.charAt(1)=='R' && s.charAt(2)=='R')\n\t\t{\n\t\t\tSystem.out.println(3);\t \n\t\t}\n\t\telse if(s.charAt(0)=='S' && s.charAt(1)=='S' && s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(0);\t \n\t\t}\n\n\t}", "main", "{\n\t\tScanner input =new Scanner(System.in);\n\t\tString s=input.next();\n\t\tif(s.charAt(0)=='R' && s.charAt(1)=='R' &&s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(2);\n\t\t}\n\t\t\n\t\telse if(s.charAt(1)=='R' && s.charAt(2)=='R' &&s.charAt(0)=='S')\n\t\t{\n\t\t\tSystem.out.println(2);\n\t\t}\n\t\telse if(s.charAt(0)=='R' &&s.charAt(1)=='S' && s.charAt(2)=='R')\n\t\t{\n\t\t\tSystem.out.println(1);\n\t\t}\n\t\telse if(s.charAt(0)=='S' &&s.charAt(1)=='S' && s.charAt(2)=='R')\n\t\t{\n\t\t\tSystem.out.println(1);\n\t\t}\n\t\telse if(s.charAt(0)=='R' &&s.charAt(1)=='S' && s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(1);\n\t\t}\n\t\telse if(s.charAt(0)=='S' &&s.charAt(1)=='R' && s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(1);\n\t\t}\n\t\telse if(s.charAt(0)=='R' && s.charAt(1)=='R' && s.charAt(2)=='R')\n\t\t{\n\t\t\tSystem.out.println(3);\t \n\t\t}\n\t\telse if(s.charAt(0)=='S' && s.charAt(1)=='S' && s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(0);\t \n\t\t}\n\n\t}", "Scanner input =new Scanner(System.in);", "input", "new Scanner(System.in)", "String s=input.next();", "s", "input.next()", "input.next", "input", "if(s.charAt(0)=='R' && s.charAt(1)=='R' &&s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(2);\n\t\t}\n\t\t\n\t\telse if(s.charAt(1)=='R' && s.charAt(2)=='R' &&s.charAt(0)=='S')\n\t\t{\n\t\t\tSystem.out.println(2);\n\t\t}\n\t\telse if(s.charAt(0)=='R' &&s.charAt(1)=='S' && s.charAt(2)=='R')\n\t\t{\n\t\t\tSystem.out.println(1);\n\t\t}\n\t\telse if(s.charAt(0)=='S' &&s.charAt(1)=='S' && s.charAt(2)=='R')\n\t\t{\n\t\t\tSystem.out.println(1);\n\t\t}\n\t\telse if(s.charAt(0)=='R' &&s.charAt(1)=='S' && s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(1);\n\t\t}\n\t\telse if(s.charAt(0)=='S' &&s.charAt(1)=='R' && s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(1);\n\t\t}\n\t\telse if(s.charAt(0)=='R' && s.charAt(1)=='R' && s.charAt(2)=='R')\n\t\t{\n\t\t\tSystem.out.println(3);\t \n\t\t}\n\t\telse if(s.charAt(0)=='S' && s.charAt(1)=='S' && s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(0);\t \n\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\tSystem.out.println(2);\n\t\t}", "System.out.println(2)", "System.out.println", "System.out", "System", "System.out", "2", "if(s.charAt(1)=='R' && s.charAt(2)=='R' &&s.charAt(0)=='S')\n\t\t{\n\t\t\tSystem.out.println(2);\n\t\t}\n\t\telse if(s.charAt(0)=='R' &&s.charAt(1)=='S' && s.charAt(2)=='R')\n\t\t{\n\t\t\tSystem.out.println(1);\n\t\t}\n\t\telse if(s.charAt(0)=='S' &&s.charAt(1)=='S' && s.charAt(2)=='R')\n\t\t{\n\t\t\tSystem.out.println(1);\n\t\t}\n\t\telse if(s.charAt(0)=='R' &&s.charAt(1)=='S' && s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(1);\n\t\t}\n\t\telse if(s.charAt(0)=='S' &&s.charAt(1)=='R' && s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(1);\n\t\t}\n\t\telse if(s.charAt(0)=='R' && s.charAt(1)=='R' && s.charAt(2)=='R')\n\t\t{\n\t\t\tSystem.out.println(3);\t \n\t\t}\n\t\telse if(s.charAt(0)=='S' && s.charAt(1)=='S' && s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(0);\t \n\t\t}", "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(1)=='R'", "s.charAt(1)", "s.charAt", "s", "1", "'R'", "s.charAt(2)=='R'", "s.charAt(2)", "s.charAt", "s", "2", "'R'", "s.charAt(0)=='S'", "s.charAt(0)", "s.charAt", "s", "0", "'S'", "{\n\t\t\tSystem.out.println(2);\n\t\t}", "System.out.println(2)", "System.out.println", "System.out", "System", "System.out", "2", "if(s.charAt(0)=='R' &&s.charAt(1)=='S' && s.charAt(2)=='R')\n\t\t{\n\t\t\tSystem.out.println(1);\n\t\t}\n\t\telse if(s.charAt(0)=='S' &&s.charAt(1)=='S' && s.charAt(2)=='R')\n\t\t{\n\t\t\tSystem.out.println(1);\n\t\t}\n\t\telse if(s.charAt(0)=='R' &&s.charAt(1)=='S' && s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(1);\n\t\t}\n\t\telse if(s.charAt(0)=='S' &&s.charAt(1)=='R' && s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(1);\n\t\t}\n\t\telse if(s.charAt(0)=='R' && s.charAt(1)=='R' && s.charAt(2)=='R')\n\t\t{\n\t\t\tSystem.out.println(3);\t \n\t\t}\n\t\telse if(s.charAt(0)=='S' && s.charAt(1)=='S' && s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(0);\t \n\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\tSystem.out.println(1);\n\t\t}", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "if(s.charAt(0)=='S' &&s.charAt(1)=='S' && s.charAt(2)=='R')\n\t\t{\n\t\t\tSystem.out.println(1);\n\t\t}\n\t\telse if(s.charAt(0)=='R' &&s.charAt(1)=='S' && s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(1);\n\t\t}\n\t\telse if(s.charAt(0)=='S' &&s.charAt(1)=='R' && s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(1);\n\t\t}\n\t\telse if(s.charAt(0)=='R' && s.charAt(1)=='R' && s.charAt(2)=='R')\n\t\t{\n\t\t\tSystem.out.println(3);\t \n\t\t}\n\t\telse if(s.charAt(0)=='S' && s.charAt(1)=='S' && s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(0);\t \n\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\tSystem.out.println(1);\n\t\t}", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "if(s.charAt(0)=='R' &&s.charAt(1)=='S' && s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(1);\n\t\t}\n\t\telse if(s.charAt(0)=='S' &&s.charAt(1)=='R' && s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(1);\n\t\t}\n\t\telse if(s.charAt(0)=='R' && s.charAt(1)=='R' && s.charAt(2)=='R')\n\t\t{\n\t\t\tSystem.out.println(3);\t \n\t\t}\n\t\telse if(s.charAt(0)=='S' && s.charAt(1)=='S' && s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(0);\t \n\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\tSystem.out.println(1);\n\t\t}", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "if(s.charAt(0)=='S' &&s.charAt(1)=='R' && s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(1);\n\t\t}\n\t\telse if(s.charAt(0)=='R' && s.charAt(1)=='R' && s.charAt(2)=='R')\n\t\t{\n\t\t\tSystem.out.println(3);\t \n\t\t}\n\t\telse if(s.charAt(0)=='S' && s.charAt(1)=='S' && s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(0);\t \n\t\t}", "s.charAt(0)=='S' &&s.charAt(1)=='R' && s.charAt(2)=='S'", "s.charAt(0)=='S' &&s.charAt(1)=='R' && s.charAt(2)=='S'", "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)=='S'", "s.charAt(2)", "s.charAt", "s", "2", "'S'", "{\n\t\t\tSystem.out.println(1);\n\t\t}", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "if(s.charAt(0)=='R' && s.charAt(1)=='R' && s.charAt(2)=='R')\n\t\t{\n\t\t\tSystem.out.println(3);\t \n\t\t}\n\t\telse if(s.charAt(0)=='S' && s.charAt(1)=='S' && s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(0);\t \n\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\tSystem.out.println(3);\t \n\t\t}", "System.out.println(3)", "System.out.println", "System.out", "System", "System.out", "3", "if(s.charAt(0)=='S' && s.charAt(1)=='S' && s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(0);\t \n\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\tSystem.out.println(0);\t \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 input =new Scanner(System.in);\n\t\tString s=input.next();\n\t\tif(s.charAt(0)=='R' && s.charAt(1)=='R' &&s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(2);\n\t\t}\n\t\t\n\t\telse if(s.charAt(1)=='R' && s.charAt(2)=='R' &&s.charAt(0)=='S')\n\t\t{\n\t\t\tSystem.out.println(2);\n\t\t}\n\t\telse if(s.charAt(0)=='R' &&s.charAt(1)=='S' && s.charAt(2)=='R')\n\t\t{\n\t\t\tSystem.out.println(1);\n\t\t}\n\t\telse if(s.charAt(0)=='S' &&s.charAt(1)=='S' && s.charAt(2)=='R')\n\t\t{\n\t\t\tSystem.out.println(1);\n\t\t}\n\t\telse if(s.charAt(0)=='R' &&s.charAt(1)=='S' && s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(1);\n\t\t}\n\t\telse if(s.charAt(0)=='S' &&s.charAt(1)=='R' && s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(1);\n\t\t}\n\t\telse if(s.charAt(0)=='R' && s.charAt(1)=='R' && s.charAt(2)=='R')\n\t\t{\n\t\t\tSystem.out.println(3);\t \n\t\t}\n\t\telse if(s.charAt(0)=='S' && s.charAt(1)=='S' && s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(0);\t \n\t\t}\n\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner input =new Scanner(System.in);\n\t\tString s=input.next();\n\t\tif(s.charAt(0)=='R' && s.charAt(1)=='R' &&s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(2);\n\t\t}\n\t\t\n\t\telse if(s.charAt(1)=='R' && s.charAt(2)=='R' &&s.charAt(0)=='S')\n\t\t{\n\t\t\tSystem.out.println(2);\n\t\t}\n\t\telse if(s.charAt(0)=='R' &&s.charAt(1)=='S' && s.charAt(2)=='R')\n\t\t{\n\t\t\tSystem.out.println(1);\n\t\t}\n\t\telse if(s.charAt(0)=='S' &&s.charAt(1)=='S' && s.charAt(2)=='R')\n\t\t{\n\t\t\tSystem.out.println(1);\n\t\t}\n\t\telse if(s.charAt(0)=='R' &&s.charAt(1)=='S' && s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(1);\n\t\t}\n\t\telse if(s.charAt(0)=='S' &&s.charAt(1)=='R' && s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(1);\n\t\t}\n\t\telse if(s.charAt(0)=='R' && s.charAt(1)=='R' && s.charAt(2)=='R')\n\t\t{\n\t\t\tSystem.out.println(3);\t \n\t\t}\n\t\telse if(s.charAt(0)=='S' && s.charAt(1)=='S' && s.charAt(2)=='S')\n\t\t{\n\t\t\tSystem.out.println(0);\t \n\t\t}\n\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner input =new Scanner(System.in); String s=input.next(); if(s.charAt(0)=='R' && s.charAt(1)=='R' &&s.charAt(2)=='S') { System.out.println(2); } else if(s.charAt(1)=='R' && s.charAt(2)=='R' &&s.charAt(0)=='S') { System.out.println(2); } else if(s.charAt(0)=='R' &&s.charAt(1)=='S' && s.charAt(2)=='R') { System.out.println(1); } else if(s.charAt(0)=='S' &&s.charAt(1)=='S' && s.charAt(2)=='R') { System.out.println(1); } else if(s.charAt(0)=='R' &&s.charAt(1)=='S' && s.charAt(2)=='S') { System.out.println(1); } else if(s.charAt(0)=='S' &&s.charAt(1)=='R' && s.charAt(2)=='S') { System.out.println(1); } else if(s.charAt(0)=='R' && s.charAt(1)=='R' && s.charAt(2)=='R') { System.out.println(3); } else if(s.charAt(0)=='S' && s.charAt(1)=='S' && s.charAt(2)=='S') { System.out.println(0); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 14, 2, 4, 18, 13, 13, 17, 30, 40, 13, 14, 2, 4, 18, 13, 2, 13, 17, 17, 30, 40, 13, 14, 2, 4, 18, 13, 2, 13, 17, 17, 30, 40, 13, 14, 2, 4, 18, 13, 2, 13, 17, 17, 30, 40, 13, 14, 2, 4, 18, 13, 2, 13, 17, 17, 30, 40, 13, 30, 14, 2, 4, 18, 13, 2, 13, 17, 17, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 24, 29 ], [ 23, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 38, 39 ], [ 38, 40 ], [ 34, 41 ], [ 33, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 50, 51 ], [ 50, 52 ], [ 46, 53 ], [ 45, 54 ], [ 54, 55 ], [ 55, 56 ], [ 23, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 62, 63 ], [ 62, 64 ], [ 58, 65 ], [ 57, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 74, 75 ], [ 74, 76 ], [ 70, 77 ], [ 69, 78 ], [ 78, 79 ], [ 79, 80 ], [ 57, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 87, 88 ], [ 87, 89 ], [ 83, 90 ], [ 82, 91 ], [ 91, 92 ], [ 92, 93 ], [ 8, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 6, 100 ], [ 100, 101 ] ]
[ "import java.util.Scanner;\n \nclass Main {\n public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n int ans = 0;\n int i = 0;\n if(s.charAt(i) == 'R'){\n ans++;\n if(s.charAt(i + 1) == 'R'){\n ans++;\n if(s.charAt(i + 2) == 'R'){\n \tans++;\n \n }\n }\n }else if(s.charAt(i + 1) == 'R'){\n ans++;\n if(s.charAt(i + 2) == 'R'){\n ans++;\n \n }\n }else{\n if(s.charAt(i + 2) == 'R'){\n ans++;\n \n }\n }\n \nSystem.out.print(ans);\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 s = sc.nextLine();\n int ans = 0;\n int i = 0;\n if(s.charAt(i) == 'R'){\n ans++;\n if(s.charAt(i + 1) == 'R'){\n ans++;\n if(s.charAt(i + 2) == 'R'){\n \tans++;\n \n }\n }\n }else if(s.charAt(i + 1) == 'R'){\n ans++;\n if(s.charAt(i + 2) == 'R'){\n ans++;\n \n }\n }else{\n if(s.charAt(i + 2) == 'R'){\n ans++;\n \n }\n }\n \nSystem.out.print(ans);\n }\n}", "Main", "public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n int ans = 0;\n int i = 0;\n if(s.charAt(i) == 'R'){\n ans++;\n if(s.charAt(i + 1) == 'R'){\n ans++;\n if(s.charAt(i + 2) == 'R'){\n \tans++;\n \n }\n }\n }else if(s.charAt(i + 1) == 'R'){\n ans++;\n if(s.charAt(i + 2) == 'R'){\n ans++;\n \n }\n }else{\n if(s.charAt(i + 2) == 'R'){\n ans++;\n \n }\n }\n \nSystem.out.print(ans);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n int ans = 0;\n int i = 0;\n if(s.charAt(i) == 'R'){\n ans++;\n if(s.charAt(i + 1) == 'R'){\n ans++;\n if(s.charAt(i + 2) == 'R'){\n \tans++;\n \n }\n }\n }else if(s.charAt(i + 1) == 'R'){\n ans++;\n if(s.charAt(i + 2) == 'R'){\n ans++;\n \n }\n }else{\n if(s.charAt(i + 2) == 'R'){\n ans++;\n \n }\n }\n \nSystem.out.print(ans);\n }", "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", "int i = 0;", "i", "0", "if(s.charAt(i) == 'R'){\n ans++;\n if(s.charAt(i + 1) == 'R'){\n ans++;\n if(s.charAt(i + 2) == 'R'){\n \tans++;\n \n }\n }\n }else if(s.charAt(i + 1) == 'R'){\n ans++;\n if(s.charAt(i + 2) == 'R'){\n ans++;\n \n }\n }else{\n if(s.charAt(i + 2) == 'R'){\n ans++;\n \n }\n }", "s.charAt(i) == 'R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "{\n ans++;\n if(s.charAt(i + 1) == 'R'){\n ans++;\n if(s.charAt(i + 2) == 'R'){\n \tans++;\n \n }\n }\n }", "ans++", "ans", "if(s.charAt(i + 1) == 'R'){\n ans++;\n if(s.charAt(i + 2) == 'R'){\n \tans++;\n \n }\n }", "s.charAt(i + 1) == 'R'", "s.charAt(i + 1)", "s.charAt", "s", "i + 1", "i", "1", "'R'", "{\n ans++;\n if(s.charAt(i + 2) == 'R'){\n \tans++;\n \n }\n }", "ans++", "ans", "if(s.charAt(i + 2) == 'R'){\n \tans++;\n \n }", "s.charAt(i + 2) == 'R'", "s.charAt(i + 2)", "s.charAt", "s", "i + 2", "i", "2", "'R'", "{\n \tans++;\n \n }", "ans++", "ans", "if(s.charAt(i + 1) == 'R'){\n ans++;\n if(s.charAt(i + 2) == 'R'){\n ans++;\n \n }\n }else{\n if(s.charAt(i + 2) == 'R'){\n ans++;\n \n }\n }", "s.charAt(i + 1) == 'R'", "s.charAt(i + 1)", "s.charAt", "s", "i + 1", "i", "1", "'R'", "{\n ans++;\n if(s.charAt(i + 2) == 'R'){\n ans++;\n \n }\n }", "ans++", "ans", "if(s.charAt(i + 2) == 'R'){\n ans++;\n \n }", "s.charAt(i + 2) == 'R'", "s.charAt(i + 2)", "s.charAt", "s", "i + 2", "i", "2", "'R'", "{\n ans++;\n \n }", "ans++", "ans", "{\n if(s.charAt(i + 2) == 'R'){\n ans++;\n \n }\n }", "if(s.charAt(i + 2) == 'R'){\n ans++;\n \n }", "s.charAt(i + 2) == 'R'", "s.charAt(i + 2)", "s.charAt", "s", "i + 2", "i", "2", "'R'", "{\n ans++;\n \n }", "ans++", "ans", "System.out.print(ans)", "System.out.print", "System.out", "System", "System.out", "ans", "String args[]", "args" ]
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); String s = sc.nextLine(); int ans = 0; int i = 0; if(s.charAt(i) == 'R'){ ans++; if(s.charAt(i + 1) == 'R'){ ans++; if(s.charAt(i + 2) == 'R'){ ans++; } } }else if(s.charAt(i + 1) == 'R'){ ans++; if(s.charAt(i + 2) == 'R'){ ans++; } }else{ if(s.charAt(i + 2) == 'R'){ ans++; } } System.out.print(ans); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 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, 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 ], [ 110, 8 ], [ 110, 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 ], [ 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 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 20, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 49, 54 ], [ 48, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 56, 61 ], [ 55, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 62, 67 ], [ 47, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 47, 74 ], [ 74, 75 ], [ 76, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 77, 82 ], [ 76, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 83, 88 ], [ 76, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 89, 94 ], [ 74, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 74, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 9, 107 ], [ 107, 108 ], [ 0, 109 ], [ 109, 110 ], [ 109, 111 ] ]
[ "import java.util.*;\nimport java.lang.*;\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 if(s.charAt(0)=='R' && s.charAt(1)=='R' && s.charAt(2)=='R')\n System.out.println(3);\n else if(s.charAt(1)=='R' && (s.charAt(0)=='R' || s.charAt(2)=='R'))\n System.out.println(2);\n else if(s.charAt(0)=='R' || s.charAt(1)=='R' || s.charAt(2)=='R')\n System.out.println(1);\n else\n System.out.println(0);\n\t}\n}", "import java.util.*;", "util.*", "java", "import java.lang.*;", "lang.*", "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 if(s.charAt(0)=='R' && s.charAt(1)=='R' && s.charAt(2)=='R')\n System.out.println(3);\n else if(s.charAt(1)=='R' && (s.charAt(0)=='R' || s.charAt(2)=='R'))\n System.out.println(2);\n else if(s.charAt(0)=='R' || s.charAt(1)=='R' || s.charAt(2)=='R')\n System.out.println(1);\n else\n System.out.println(0);\n\t}\n}", "Main", "public static void main(String args[])\n {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n if(s.charAt(0)=='R' && s.charAt(1)=='R' && s.charAt(2)=='R')\n System.out.println(3);\n else if(s.charAt(1)=='R' && (s.charAt(0)=='R' || s.charAt(2)=='R'))\n System.out.println(2);\n else if(s.charAt(0)=='R' || s.charAt(1)=='R' || s.charAt(2)=='R')\n System.out.println(1);\n else\n System.out.println(0);\n\t}", "main", "{\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n if(s.charAt(0)=='R' && s.charAt(1)=='R' && s.charAt(2)=='R')\n System.out.println(3);\n else if(s.charAt(1)=='R' && (s.charAt(0)=='R' || s.charAt(2)=='R'))\n System.out.println(2);\n else if(s.charAt(0)=='R' || s.charAt(1)=='R' || s.charAt(2)=='R')\n System.out.println(1);\n else\n System.out.println(0);\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.charAt(0)=='R' && s.charAt(1)=='R' && s.charAt(2)=='R')\n System.out.println(3);\n else if(s.charAt(1)=='R' && (s.charAt(0)=='R' || s.charAt(2)=='R'))\n System.out.println(2);\n else if(s.charAt(0)=='R' || s.charAt(1)=='R' || s.charAt(2)=='R')\n System.out.println(1);\n else\n System.out.println(0);", "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(1)=='R' && (s.charAt(0)=='R' || s.charAt(2)=='R'))\n System.out.println(2);\n else if(s.charAt(0)=='R' || s.charAt(1)=='R' || s.charAt(2)=='R')\n System.out.println(1);\n else\n System.out.println(0);", "s.charAt(1)=='R' && (s.charAt(0)=='R' || s.charAt(2)=='R')", "s.charAt(1)=='R'", "s.charAt(1)", "s.charAt", "s", "1", "'R'", "(s.charAt(0)=='R' || s.charAt(2)=='R')", "s.charAt(0)=='R'", "s.charAt(0)", "s.charAt", "s", "0", "'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)=='R' || s.charAt(1)=='R' || s.charAt(2)=='R')\n System.out.println(1);\n else\n System.out.println(0);", "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(1)", "System.out.println", "System.out", "System", "System.out", "1", "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 String s = sc.next();\n if(s.charAt(0)=='R' && s.charAt(1)=='R' && s.charAt(2)=='R')\n System.out.println(3);\n else if(s.charAt(1)=='R' && (s.charAt(0)=='R' || s.charAt(2)=='R'))\n System.out.println(2);\n else if(s.charAt(0)=='R' || s.charAt(1)=='R' || s.charAt(2)=='R')\n System.out.println(1);\n else\n System.out.println(0);\n\t}\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 if(s.charAt(0)=='R' && s.charAt(1)=='R' && s.charAt(2)=='R')\n System.out.println(3);\n else if(s.charAt(1)=='R' && (s.charAt(0)=='R' || s.charAt(2)=='R'))\n System.out.println(2);\n else if(s.charAt(0)=='R' || s.charAt(1)=='R' || s.charAt(2)=='R')\n System.out.println(1);\n else\n System.out.println(0);\n\t}\n}", "Main" ]
import java.util.*; import java.lang.*; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); String s = sc.next(); if(s.charAt(0)=='R' && s.charAt(1)=='R' && s.charAt(2)=='R') System.out.println(3); else if(s.charAt(1)=='R' && (s.charAt(0)=='R' || s.charAt(2)=='R')) System.out.println(2); else if(s.charAt(0)=='R' || s.charAt(1)=='R' || s.charAt(2)=='R') System.out.println(1); else System.out.println(0); } }
[ 7, 15, 13, 17, 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, 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, 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 ], [ 90, 8 ], [ 90, 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 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 27, 31 ], [ 23, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 23, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 23, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 23, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 23, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 23, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 23, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 11, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 9, 87 ], [ 87, 88 ], [ 0, 89 ], [ 89, 90 ], [ 89, 91 ] ]
[ "import java.io.FileNotFoundException;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) throws FileNotFoundException {\n\n\t\t// \tFile file = new File(\"src/in.txt\");\n\t\t// \tScanner sc = new Scanner(file);\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString S = sc.next();\n\n\t\tint ans = 0;\n\n\t\tswitch(S) {\n\t\tcase \"SSS\":\n\t\t\tans = 0;\n\t\t\tbreak;\n\t\tcase \"SSR\":\n\t\t\tans = 1;\n\t\t\tbreak;\n\t\tcase \"SRS\":\n\t\t\tans = 1;\n\t\t\tbreak;\n\t\tcase \"SRR\":\n\t\t\tans = 2;\n\t\t\tbreak;\n\t\tcase \"RSS\":\n\t\t\tans = 1;\n\t\t\tbreak;\n\t\tcase \"RSR\":\n\t\t\tans = 1;\n\t\t\tbreak;\n\t\tcase \"RRS\":\n\t\t\tans = 2;\n\t\t\tbreak;\n\t\tcase \"RRR\":\n\t\t\tans = 3;\n\t\t\tbreak;\n\t\t}\n\t\tSystem.out.println(ans);\n\n\t}\n}", "import java.io.FileNotFoundException;", "FileNotFoundException", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) throws FileNotFoundException {\n\n\t\t// \tFile file = new File(\"src/in.txt\");\n\t\t// \tScanner sc = new Scanner(file);\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString S = sc.next();\n\n\t\tint ans = 0;\n\n\t\tswitch(S) {\n\t\tcase \"SSS\":\n\t\t\tans = 0;\n\t\t\tbreak;\n\t\tcase \"SSR\":\n\t\t\tans = 1;\n\t\t\tbreak;\n\t\tcase \"SRS\":\n\t\t\tans = 1;\n\t\t\tbreak;\n\t\tcase \"SRR\":\n\t\t\tans = 2;\n\t\t\tbreak;\n\t\tcase \"RSS\":\n\t\t\tans = 1;\n\t\t\tbreak;\n\t\tcase \"RSR\":\n\t\t\tans = 1;\n\t\t\tbreak;\n\t\tcase \"RRS\":\n\t\t\tans = 2;\n\t\t\tbreak;\n\t\tcase \"RRR\":\n\t\t\tans = 3;\n\t\t\tbreak;\n\t\t}\n\t\tSystem.out.println(ans);\n\n\t}\n}", "Main", "public static void main(String[] args) throws FileNotFoundException {\n\n\t\t// \tFile file = new File(\"src/in.txt\");\n\t\t// \tScanner sc = new Scanner(file);\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString S = sc.next();\n\n\t\tint ans = 0;\n\n\t\tswitch(S) {\n\t\tcase \"SSS\":\n\t\t\tans = 0;\n\t\t\tbreak;\n\t\tcase \"SSR\":\n\t\t\tans = 1;\n\t\t\tbreak;\n\t\tcase \"SRS\":\n\t\t\tans = 1;\n\t\t\tbreak;\n\t\tcase \"SRR\":\n\t\t\tans = 2;\n\t\t\tbreak;\n\t\tcase \"RSS\":\n\t\t\tans = 1;\n\t\t\tbreak;\n\t\tcase \"RSR\":\n\t\t\tans = 1;\n\t\t\tbreak;\n\t\tcase \"RRS\":\n\t\t\tans = 2;\n\t\t\tbreak;\n\t\tcase \"RRR\":\n\t\t\tans = 3;\n\t\t\tbreak;\n\t\t}\n\t\tSystem.out.println(ans);\n\n\t}", "main", "{\n\n\t\t// \tFile file = new File(\"src/in.txt\");\n\t\t// \tScanner sc = new Scanner(file);\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString S = sc.next();\n\n\t\tint ans = 0;\n\n\t\tswitch(S) {\n\t\tcase \"SSS\":\n\t\t\tans = 0;\n\t\t\tbreak;\n\t\tcase \"SSR\":\n\t\t\tans = 1;\n\t\t\tbreak;\n\t\tcase \"SRS\":\n\t\t\tans = 1;\n\t\t\tbreak;\n\t\tcase \"SRR\":\n\t\t\tans = 2;\n\t\t\tbreak;\n\t\tcase \"RSS\":\n\t\t\tans = 1;\n\t\t\tbreak;\n\t\tcase \"RSR\":\n\t\t\tans = 1;\n\t\t\tbreak;\n\t\tcase \"RRS\":\n\t\t\tans = 2;\n\t\t\tbreak;\n\t\tcase \"RRR\":\n\t\t\tans = 3;\n\t\t\tbreak;\n\t\t}\n\t\tSystem.out.println(ans);\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 ans = 0;", "ans", "0", "switch(S) {\n\t\tcase \"SSS\":\n\t\t\tans = 0;\n\t\t\tbreak;\n\t\tcase \"SSR\":\n\t\t\tans = 1;\n\t\t\tbreak;\n\t\tcase \"SRS\":\n\t\t\tans = 1;\n\t\t\tbreak;\n\t\tcase \"SRR\":\n\t\t\tans = 2;\n\t\t\tbreak;\n\t\tcase \"RSS\":\n\t\t\tans = 1;\n\t\t\tbreak;\n\t\tcase \"RSR\":\n\t\t\tans = 1;\n\t\t\tbreak;\n\t\tcase \"RRS\":\n\t\t\tans = 2;\n\t\t\tbreak;\n\t\tcase \"RRR\":\n\t\t\tans = 3;\n\t\t\tbreak;\n\t\t}", "S", "case \"SSS\":", "\"SSS\"", "case \"SSS\":", "ans = 0", "ans", "0", "break;", "case \"SSR\":", "\"SSR\"", "case \"SSR\":", "ans = 1", "ans", "1", "break;", "case \"SRS\":", "\"SRS\"", "case \"SRS\":", "ans = 1", "ans", "1", "break;", "case \"SRR\":", "\"SRR\"", "case \"SRR\":", "ans = 2", "ans", "2", "break;", "case \"RSS\":", "\"RSS\"", "case \"RSS\":", "ans = 1", "ans", "1", "break;", "case \"RSR\":", "\"RSR\"", "case \"RSR\":", "ans = 1", "ans", "1", "break;", "case \"RRS\":", "\"RRS\"", "case \"RRS\":", "ans = 2", "ans", "2", "break;", "case \"RRR\":", "\"RRR\"", "case \"RRR\":", "ans = 3", "ans", "3", "break;", "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) throws FileNotFoundException {\n\n\t\t// \tFile file = new File(\"src/in.txt\");\n\t\t// \tScanner sc = new Scanner(file);\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString S = sc.next();\n\n\t\tint ans = 0;\n\n\t\tswitch(S) {\n\t\tcase \"SSS\":\n\t\t\tans = 0;\n\t\t\tbreak;\n\t\tcase \"SSR\":\n\t\t\tans = 1;\n\t\t\tbreak;\n\t\tcase \"SRS\":\n\t\t\tans = 1;\n\t\t\tbreak;\n\t\tcase \"SRR\":\n\t\t\tans = 2;\n\t\t\tbreak;\n\t\tcase \"RSS\":\n\t\t\tans = 1;\n\t\t\tbreak;\n\t\tcase \"RSR\":\n\t\t\tans = 1;\n\t\t\tbreak;\n\t\tcase \"RRS\":\n\t\t\tans = 2;\n\t\t\tbreak;\n\t\tcase \"RRR\":\n\t\t\tans = 3;\n\t\t\tbreak;\n\t\t}\n\t\tSystem.out.println(ans);\n\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws FileNotFoundException {\n\n\t\t// \tFile file = new File(\"src/in.txt\");\n\t\t// \tScanner sc = new Scanner(file);\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString S = sc.next();\n\n\t\tint ans = 0;\n\n\t\tswitch(S) {\n\t\tcase \"SSS\":\n\t\t\tans = 0;\n\t\t\tbreak;\n\t\tcase \"SSR\":\n\t\t\tans = 1;\n\t\t\tbreak;\n\t\tcase \"SRS\":\n\t\t\tans = 1;\n\t\t\tbreak;\n\t\tcase \"SRR\":\n\t\t\tans = 2;\n\t\t\tbreak;\n\t\tcase \"RSS\":\n\t\t\tans = 1;\n\t\t\tbreak;\n\t\tcase \"RSR\":\n\t\t\tans = 1;\n\t\t\tbreak;\n\t\tcase \"RRS\":\n\t\t\tans = 2;\n\t\t\tbreak;\n\t\tcase \"RRR\":\n\t\t\tans = 3;\n\t\t\tbreak;\n\t\t}\n\t\tSystem.out.println(ans);\n\n\t}\n}", "Main" ]
import java.io.FileNotFoundException; import java.util.Scanner; public class Main { public static void main(String[] args) throws FileNotFoundException { // File file = new File("src/in.txt"); // Scanner sc = new Scanner(file); Scanner sc = new Scanner(System.in); String S = sc.next(); int ans = 0; switch(S) { case "SSS": ans = 0; break; case "SSR": ans = 1; break; case "SRS": ans = 1; break; case "SRR": ans = 2; break; case "RSS": ans = 1; break; case "RSR": ans = 1; break; case "RRS": ans = 2; break; case "RRR": ans = 3; break; } 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, 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, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 30, 14, 2, 18, 13, 17, 17, 30, 4, 18, 18, 13, 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 ], [ 107, 5 ], [ 107, 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 ], [ 23, 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 ], [ 43, 45 ], [ 42, 46 ], [ 41, 47 ], [ 47, 48 ], [ 48, 49 ], [ 8, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 50, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 61, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 61, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 77, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 77, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 91, 96 ], [ 72, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 6, 104 ], [ 104, 105 ], [ 0, 106 ], [ 106, 107 ], [ 106, 108 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tString b = scan.next();\n\t\tchar c[] = b.toCharArray();\n\n\t\tscan.close();\n\n\t\tint count = 0;\n\n\t\tfor(int i=0;i<3;i++) {\n\t\t\tif(c[i]=='R') {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tif(count==3) {\n\t\t\tSystem.out.println(\"3\");\n\t\t}else if(count==1) {\n\t\t\tSystem.out.println(\"1\");\n\t\t}else if(count==2){\n\t\t\tif(c[1]=='S') {\n\t\t\t\tSystem.out.println(\"1\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"2\");\n\t\t\t}\n\t\t}else {\n\t\t\tSystem.out.println(\"0\");\n\t\t}\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tString b = scan.next();\n\t\tchar c[] = b.toCharArray();\n\n\t\tscan.close();\n\n\t\tint count = 0;\n\n\t\tfor(int i=0;i<3;i++) {\n\t\t\tif(c[i]=='R') {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tif(count==3) {\n\t\t\tSystem.out.println(\"3\");\n\t\t}else if(count==1) {\n\t\t\tSystem.out.println(\"1\");\n\t\t}else if(count==2){\n\t\t\tif(c[1]=='S') {\n\t\t\t\tSystem.out.println(\"1\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"2\");\n\t\t\t}\n\t\t}else {\n\t\t\tSystem.out.println(\"0\");\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tString b = scan.next();\n\t\tchar c[] = b.toCharArray();\n\n\t\tscan.close();\n\n\t\tint count = 0;\n\n\t\tfor(int i=0;i<3;i++) {\n\t\t\tif(c[i]=='R') {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tif(count==3) {\n\t\t\tSystem.out.println(\"3\");\n\t\t}else if(count==1) {\n\t\t\tSystem.out.println(\"1\");\n\t\t}else if(count==2){\n\t\t\tif(c[1]=='S') {\n\t\t\t\tSystem.out.println(\"1\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"2\");\n\t\t\t}\n\t\t}else {\n\t\t\tSystem.out.println(\"0\");\n\t\t}\n\t}", "main", "{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tString b = scan.next();\n\t\tchar c[] = b.toCharArray();\n\n\t\tscan.close();\n\n\t\tint count = 0;\n\n\t\tfor(int i=0;i<3;i++) {\n\t\t\tif(c[i]=='R') {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tif(count==3) {\n\t\t\tSystem.out.println(\"3\");\n\t\t}else if(count==1) {\n\t\t\tSystem.out.println(\"1\");\n\t\t}else if(count==2){\n\t\t\tif(c[1]=='S') {\n\t\t\t\tSystem.out.println(\"1\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"2\");\n\t\t\t}\n\t\t}else {\n\t\t\tSystem.out.println(\"0\");\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String b = scan.next();", "b", "scan.next()", "scan.next", "scan", "char c[] = b.toCharArray();", "c", "b.toCharArray()", "b.toCharArray", "b", "scan.close()", "scan.close", "scan", "int count = 0;", "count", "0", "for(int i=0;i<3;i++) {\n\t\t\tif(c[i]=='R') {\n\t\t\t\tcount++;\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(c[i]=='R') {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "{\n\t\t\tif(c[i]=='R') {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "if(c[i]=='R') {\n\t\t\t\tcount++;\n\t\t\t}", "c[i]=='R'", "c[i]", "c", "i", "'R'", "{\n\t\t\t\tcount++;\n\t\t\t}", "count++", "count", "if(count==3) {\n\t\t\tSystem.out.println(\"3\");\n\t\t}else if(count==1) {\n\t\t\tSystem.out.println(\"1\");\n\t\t}else if(count==2){\n\t\t\tif(c[1]=='S') {\n\t\t\t\tSystem.out.println(\"1\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"2\");\n\t\t\t}\n\t\t}else {\n\t\t\tSystem.out.println(\"0\");\n\t\t}", "count==3", "count", "3", "{\n\t\t\tSystem.out.println(\"3\");\n\t\t}", "System.out.println(\"3\")", "System.out.println", "System.out", "System", "System.out", "\"3\"", "if(count==1) {\n\t\t\tSystem.out.println(\"1\");\n\t\t}else if(count==2){\n\t\t\tif(c[1]=='S') {\n\t\t\t\tSystem.out.println(\"1\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"2\");\n\t\t\t}\n\t\t}else {\n\t\t\tSystem.out.println(\"0\");\n\t\t}", "count==1", "count", "1", "{\n\t\t\tSystem.out.println(\"1\");\n\t\t}", "System.out.println(\"1\")", "System.out.println", "System.out", "System", "System.out", "\"1\"", "if(count==2){\n\t\t\tif(c[1]=='S') {\n\t\t\t\tSystem.out.println(\"1\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"2\");\n\t\t\t}\n\t\t}else {\n\t\t\tSystem.out.println(\"0\");\n\t\t}", "count==2", "count", "2", "{\n\t\t\tif(c[1]=='S') {\n\t\t\t\tSystem.out.println(\"1\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"2\");\n\t\t\t}\n\t\t}", "if(c[1]=='S') {\n\t\t\t\tSystem.out.println(\"1\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"2\");\n\t\t\t}", "c[1]=='S'", "c[1]", "c", "1", "'S'", "{\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(\"2\");\n\t\t\t}", "System.out.println(\"2\")", "System.out.println", "System.out", "System", "System.out", "\"2\"", "{\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\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tString b = scan.next();\n\t\tchar c[] = b.toCharArray();\n\n\t\tscan.close();\n\n\t\tint count = 0;\n\n\t\tfor(int i=0;i<3;i++) {\n\t\t\tif(c[i]=='R') {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tif(count==3) {\n\t\t\tSystem.out.println(\"3\");\n\t\t}else if(count==1) {\n\t\t\tSystem.out.println(\"1\");\n\t\t}else if(count==2){\n\t\t\tif(c[1]=='S') {\n\t\t\t\tSystem.out.println(\"1\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"2\");\n\t\t\t}\n\t\t}else {\n\t\t\tSystem.out.println(\"0\");\n\t\t}\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tString b = scan.next();\n\t\tchar c[] = b.toCharArray();\n\n\t\tscan.close();\n\n\t\tint count = 0;\n\n\t\tfor(int i=0;i<3;i++) {\n\t\t\tif(c[i]=='R') {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tif(count==3) {\n\t\t\tSystem.out.println(\"3\");\n\t\t}else if(count==1) {\n\t\t\tSystem.out.println(\"1\");\n\t\t}else if(count==2){\n\t\t\tif(c[1]=='S') {\n\t\t\t\tSystem.out.println(\"1\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"2\");\n\t\t\t}\n\t\t}else {\n\t\t\tSystem.out.println(\"0\");\n\t\t}\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner scan = new Scanner(System.in); String b = scan.next(); char c[] = b.toCharArray(); scan.close(); int count = 0; for(int i=0;i<3;i++) { if(c[i]=='R') { count++; } } if(count==3) { System.out.println("3"); }else if(count==1) { System.out.println("1"); }else if(count==2){ if(c[1]=='S') { System.out.println("1"); }else { System.out.println("2"); } }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, 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, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 80, 5 ], [ 80, 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 ], [ 68, 70 ], [ 8, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 6, 77 ], [ 77, 78 ], [ 0, 79 ], [ 79, 80 ], [ 79, 81 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tString S = in.next();\n\t\tint a = 0;\n\t\tif(S.equals(\"RRR\")) {\n\t\t\ta = 3;\n\t\t}else if(S.equals(\"RRS\") || S.equals(\"SRR\")) {\n\t\t\ta = 2;\n\t\t}else if(S.equals(\"RSS\") || S.equals(\"RSR\") || S.equals(\"SRS\") || S.equals(\"SSR\")) {\n\t\t\ta = 1;\n\t\t}else {\n\t\t\ta = 0;\n\t\t}\n\t\tSystem.out.println(a);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tString S = in.next();\n\t\tint a = 0;\n\t\tif(S.equals(\"RRR\")) {\n\t\t\ta = 3;\n\t\t}else if(S.equals(\"RRS\") || S.equals(\"SRR\")) {\n\t\t\ta = 2;\n\t\t}else if(S.equals(\"RSS\") || S.equals(\"RSR\") || S.equals(\"SRS\") || S.equals(\"SSR\")) {\n\t\t\ta = 1;\n\t\t}else {\n\t\t\ta = 0;\n\t\t}\n\t\tSystem.out.println(a);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tString S = in.next();\n\t\tint a = 0;\n\t\tif(S.equals(\"RRR\")) {\n\t\t\ta = 3;\n\t\t}else if(S.equals(\"RRS\") || S.equals(\"SRR\")) {\n\t\t\ta = 2;\n\t\t}else if(S.equals(\"RSS\") || S.equals(\"RSR\") || S.equals(\"SRS\") || S.equals(\"SSR\")) {\n\t\t\ta = 1;\n\t\t}else {\n\t\t\ta = 0;\n\t\t}\n\t\tSystem.out.println(a);\n\t}", "main", "{\n\t\tScanner in = new Scanner(System.in);\n\t\tString S = in.next();\n\t\tint a = 0;\n\t\tif(S.equals(\"RRR\")) {\n\t\t\ta = 3;\n\t\t}else if(S.equals(\"RRS\") || S.equals(\"SRR\")) {\n\t\t\ta = 2;\n\t\t}else if(S.equals(\"RSS\") || S.equals(\"RSR\") || S.equals(\"SRS\") || S.equals(\"SSR\")) {\n\t\t\ta = 1;\n\t\t}else {\n\t\t\ta = 0;\n\t\t}\n\t\tSystem.out.println(a);\n\t}", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "String S = in.next();", "S", "in.next()", "in.next", "in", "int a = 0;", "a", "0", "if(S.equals(\"RRR\")) {\n\t\t\ta = 3;\n\t\t}else if(S.equals(\"RRS\") || S.equals(\"SRR\")) {\n\t\t\ta = 2;\n\t\t}else if(S.equals(\"RSS\") || S.equals(\"RSR\") || S.equals(\"SRS\") || S.equals(\"SSR\")) {\n\t\t\ta = 1;\n\t\t}else {\n\t\t\ta = 0;\n\t\t}", "S.equals(\"RRR\")", "S.equals", "S", "\"RRR\"", "{\n\t\t\ta = 3;\n\t\t}", "a = 3", "a", "3", "if(S.equals(\"RRS\") || S.equals(\"SRR\")) {\n\t\t\ta = 2;\n\t\t}else if(S.equals(\"RSS\") || S.equals(\"RSR\") || S.equals(\"SRS\") || S.equals(\"SSR\")) {\n\t\t\ta = 1;\n\t\t}else {\n\t\t\ta = 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\ta = 2;\n\t\t}", "a = 2", "a", "2", "if(S.equals(\"RSS\") || S.equals(\"RSR\") || S.equals(\"SRS\") || S.equals(\"SSR\")) {\n\t\t\ta = 1;\n\t\t}else {\n\t\t\ta = 0;\n\t\t}", "S.equals(\"RSS\") || S.equals(\"RSR\") || S.equals(\"SRS\") || S.equals(\"SSR\")", "S.equals(\"SRS\")", "S.equals(\"RSS\") || S.equals(\"RSR\") || S.equals(\"SRS\") || S.equals(\"SSR\")", "S.equals(\"RSS\")", "S.equals", "S", "\"RSS\"", "S.equals(\"RSR\")", "S.equals", "S", "\"RSR\"", "S.equals(\"SRS\")", "S.equals", "S", "\"SRS\"", "S.equals(\"SSR\")", "S.equals", "S", "\"SSR\"", "{\n\t\t\ta = 1;\n\t\t}", "a = 1", "a", "1", "{\n\t\t\ta = 0;\n\t\t}", "a = 0", "a", "0", "System.out.println(a)", "System.out.println", "System.out", "System", "System.out", "a", "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 S = in.next();\n\t\tint a = 0;\n\t\tif(S.equals(\"RRR\")) {\n\t\t\ta = 3;\n\t\t}else if(S.equals(\"RRS\") || S.equals(\"SRR\")) {\n\t\t\ta = 2;\n\t\t}else if(S.equals(\"RSS\") || S.equals(\"RSR\") || S.equals(\"SRS\") || S.equals(\"SSR\")) {\n\t\t\ta = 1;\n\t\t}else {\n\t\t\ta = 0;\n\t\t}\n\t\tSystem.out.println(a);\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tString S = in.next();\n\t\tint a = 0;\n\t\tif(S.equals(\"RRR\")) {\n\t\t\ta = 3;\n\t\t}else if(S.equals(\"RRS\") || S.equals(\"SRR\")) {\n\t\t\ta = 2;\n\t\t}else if(S.equals(\"RSS\") || S.equals(\"RSR\") || S.equals(\"SRS\") || S.equals(\"SSR\")) {\n\t\t\ta = 1;\n\t\t}else {\n\t\t\ta = 0;\n\t\t}\n\t\tSystem.out.println(a);\n\t}\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 a = 0; if(S.equals("RRR")) { a = 3; }else if(S.equals("RRS") || S.equals("SRR")) { a = 2; }else if(S.equals("RSS") || S.equals("RSR") || S.equals("SRS") || S.equals("SSR")) { a = 1; }else { a = 0; } System.out.println(a); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 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, 41, 13, 17, 28, 13, 13, 30, 30, 14, 2, 13, 17, 30, 40, 13, 0, 13, 4, 18, 13, 13, 13, 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 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 19, 20 ], [ 19, 21 ], [ 0, 22 ], [ 22, 23 ], [ 22, 24 ], [ 0, 25 ], [ 25, 26 ], [ 25, 27 ], [ 0, 28 ], [ 28, 29 ], [ 28, 30 ], [ 0, 31 ], [ 31, 32 ], [ 31, 33 ], [ 0, 34 ], [ 87, 35 ], [ 87, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 38, 49 ], [ 49, 50 ], [ 49, 51 ], [ 38, 52 ], [ 52, 53 ], [ 52, 54 ], [ 38, 55 ], [ 55, 56 ], [ 55, 57 ], [ 55, 58 ], [ 59, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 69, 73 ], [ 60, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 38, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 78, 83 ], [ 36, 84 ], [ 84, 85 ], [ 0, 86 ], [ 86, 87 ], [ 86, 88 ] ]
[ "import java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Collections;\nimport java.util.Comparator;\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Map;\nimport java.util.Map.Entry;\nimport java.util.PriorityQueue;\nimport java.util.Queue;\nimport java.util.Scanner;\n\npublic class Main{\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tchar[] n = scanner.nextLine().toCharArray();\n\t\tint ans = 0;\n\t\tint cnt = 0;\n\n\t\tfor(char x : n) {\n\n\t\t\tif(x == 'R') {\n\t\t\t\tcnt++;\n\t\t\t\tans = Math.max(ans, cnt);\n\t\t\t}else {\n\t\t\t\tcnt = 0;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}\n}", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.Collections;", "Collections", "java.util", "import java.util.Comparator;", "Comparator", "java.util", "import java.util.HashMap;", "HashMap", "java.util", "import java.util.List;", "List", "java.util", "import java.util.Map;", "Map", "java.util", "import java.util.Map.Entry;", "Entry", "java.util.Map", "import java.util.PriorityQueue;", "PriorityQueue", "java.util", "import java.util.Queue;", "Queue", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tchar[] n = scanner.nextLine().toCharArray();\n\t\tint ans = 0;\n\t\tint cnt = 0;\n\n\t\tfor(char x : n) {\n\n\t\t\tif(x == 'R') {\n\t\t\t\tcnt++;\n\t\t\t\tans = Math.max(ans, cnt);\n\t\t\t}else {\n\t\t\t\tcnt = 0;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}\n}", "Main", "public static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tchar[] n = scanner.nextLine().toCharArray();\n\t\tint ans = 0;\n\t\tint cnt = 0;\n\n\t\tfor(char x : n) {\n\n\t\t\tif(x == 'R') {\n\t\t\t\tcnt++;\n\t\t\t\tans = Math.max(ans, cnt);\n\t\t\t}else {\n\t\t\t\tcnt = 0;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}", "main", "{\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tchar[] n = scanner.nextLine().toCharArray();\n\t\tint ans = 0;\n\t\tint cnt = 0;\n\n\t\tfor(char x : n) {\n\n\t\t\tif(x == 'R') {\n\t\t\t\tcnt++;\n\t\t\t\tans = Math.max(ans, cnt);\n\t\t\t}else {\n\t\t\t\tcnt = 0;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "char[] n = scanner.nextLine().toCharArray();", "n", "scanner.nextLine().toCharArray()", "scanner.nextLine().toCharArray", "scanner.nextLine()", "scanner.nextLine", "scanner", "int ans = 0;", "ans", "0", "int cnt = 0;", "cnt", "0", "for(char x : n) {\n\n\t\t\tif(x == 'R') {\n\t\t\t\tcnt++;\n\t\t\t\tans = Math.max(ans, cnt);\n\t\t\t}else {\n\t\t\t\tcnt = 0;\n\t\t\t}\n\t\t}", "char x", "n", "{\n\n\t\t\tif(x == 'R') {\n\t\t\t\tcnt++;\n\t\t\t\tans = Math.max(ans, cnt);\n\t\t\t}else {\n\t\t\t\tcnt = 0;\n\t\t\t}\n\t\t}", "{\n\n\t\t\tif(x == 'R') {\n\t\t\t\tcnt++;\n\t\t\t\tans = Math.max(ans, cnt);\n\t\t\t}else {\n\t\t\t\tcnt = 0;\n\t\t\t}\n\t\t}", "if(x == 'R') {\n\t\t\t\tcnt++;\n\t\t\t\tans = Math.max(ans, cnt);\n\t\t\t}else {\n\t\t\t\tcnt = 0;\n\t\t\t}", "x == 'R'", "x", "'R'", "{\n\t\t\t\tcnt++;\n\t\t\t\tans = Math.max(ans, cnt);\n\t\t\t}", "cnt++", "cnt", "ans = Math.max(ans, cnt)", "ans", "Math.max(ans, cnt)", "Math.max", "Math", "ans", "cnt", "{\n\t\t\t\tcnt = 0;\n\t\t\t}", "cnt = 0", "cnt", "0", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main{\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tchar[] n = scanner.nextLine().toCharArray();\n\t\tint ans = 0;\n\t\tint cnt = 0;\n\n\t\tfor(char x : n) {\n\n\t\t\tif(x == 'R') {\n\t\t\t\tcnt++;\n\t\t\t\tans = Math.max(ans, cnt);\n\t\t\t}else {\n\t\t\t\tcnt = 0;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}\n}", "public class Main{\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tchar[] n = scanner.nextLine().toCharArray();\n\t\tint ans = 0;\n\t\tint cnt = 0;\n\n\t\tfor(char x : n) {\n\n\t\t\tif(x == 'R') {\n\t\t\t\tcnt++;\n\t\t\t\tans = Math.max(ans, cnt);\n\t\t\t}else {\n\t\t\t\tcnt = 0;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}\n}", "Main" ]
import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.PriorityQueue; import java.util.Queue; import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner scanner = new Scanner(System.in); char[] n = scanner.nextLine().toCharArray(); int ans = 0; int cnt = 0; for(char x : n) { if(x == 'R') { cnt++; ans = Math.max(ans, cnt); }else { cnt = 0; } } 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, 41, 13, 17, 41, 13, 17, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 17, 30, 0, 13, 2, 13, 17, 14, 2, 13, 13, 30, 0, 13, 13, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 79, 5 ], [ 79, 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 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 8, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 38, 39 ], [ 38, 40 ], [ 33, 41 ], [ 41, 42 ], [ 42, 43 ], [ 33, 44 ], [ 45, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 46, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 55, 57 ], [ 52, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 46, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 8, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 6, 76 ], [ 76, 77 ], [ 0, 78 ], [ 78, 79 ], [ 78, 80 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\t\n\t\t\tString s = sc.next();\n\t\t\t\n\t\t\tint len = s.length();\n\t\t\tint cnt = 0;\n\t\t\tint max = 0;\n\t\t\tchar[] sChars = s.toCharArray();\n\t\t\t\n\t\t\tfor(int i=0;i<len;i++) {\n\t\t\t\tif(sChars[i]=='R') {\n\t\t\t\t\tcnt=cnt+1;\n\t\t\t\t\tif(max<cnt) {\n\t\t\t\t\t\tmax=cnt;\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tcnt=0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(max);\n\t}\t\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\t\n\t\t\tString s = sc.next();\n\t\t\t\n\t\t\tint len = s.length();\n\t\t\tint cnt = 0;\n\t\t\tint max = 0;\n\t\t\tchar[] sChars = s.toCharArray();\n\t\t\t\n\t\t\tfor(int i=0;i<len;i++) {\n\t\t\t\tif(sChars[i]=='R') {\n\t\t\t\t\tcnt=cnt+1;\n\t\t\t\t\tif(max<cnt) {\n\t\t\t\t\t\tmax=cnt;\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tcnt=0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(max);\n\t}\t\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\t\n\t\t\tString s = sc.next();\n\t\t\t\n\t\t\tint len = s.length();\n\t\t\tint cnt = 0;\n\t\t\tint max = 0;\n\t\t\tchar[] sChars = s.toCharArray();\n\t\t\t\n\t\t\tfor(int i=0;i<len;i++) {\n\t\t\t\tif(sChars[i]=='R') {\n\t\t\t\t\tcnt=cnt+1;\n\t\t\t\t\tif(max<cnt) {\n\t\t\t\t\t\tmax=cnt;\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tcnt=0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(max);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\t\n\t\t\tString s = sc.next();\n\t\t\t\n\t\t\tint len = s.length();\n\t\t\tint cnt = 0;\n\t\t\tint max = 0;\n\t\t\tchar[] sChars = s.toCharArray();\n\t\t\t\n\t\t\tfor(int i=0;i<len;i++) {\n\t\t\t\tif(sChars[i]=='R') {\n\t\t\t\t\tcnt=cnt+1;\n\t\t\t\t\tif(max<cnt) {\n\t\t\t\t\t\tmax=cnt;\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tcnt=0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(max);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "int len = s.length();", "len", "s.length()", "s.length", "s", "int cnt = 0;", "cnt", "0", "int max = 0;", "max", "0", "char[] sChars = s.toCharArray();", "sChars", "s.toCharArray()", "s.toCharArray", "s", "for(int i=0;i<len;i++) {\n\t\t\t\tif(sChars[i]=='R') {\n\t\t\t\t\tcnt=cnt+1;\n\t\t\t\t\tif(max<cnt) {\n\t\t\t\t\t\tmax=cnt;\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tcnt=0;\n\t\t\t\t}\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<len", "i", "len", "i++", "i++", "i", "{\n\t\t\t\tif(sChars[i]=='R') {\n\t\t\t\t\tcnt=cnt+1;\n\t\t\t\t\tif(max<cnt) {\n\t\t\t\t\t\tmax=cnt;\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tcnt=0;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif(sChars[i]=='R') {\n\t\t\t\t\tcnt=cnt+1;\n\t\t\t\t\tif(max<cnt) {\n\t\t\t\t\t\tmax=cnt;\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tcnt=0;\n\t\t\t\t}\n\t\t\t}", "if(sChars[i]=='R') {\n\t\t\t\t\tcnt=cnt+1;\n\t\t\t\t\tif(max<cnt) {\n\t\t\t\t\t\tmax=cnt;\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tcnt=0;\n\t\t\t\t}", "sChars[i]=='R'", "sChars[i]", "sChars", "i", "'R'", "{\n\t\t\t\t\tcnt=cnt+1;\n\t\t\t\t\tif(max<cnt) {\n\t\t\t\t\t\tmax=cnt;\n\t\t\t\t\t}\n\t\t\t\t}", "cnt=cnt+1", "cnt", "cnt+1", "cnt", "1", "if(max<cnt) {\n\t\t\t\t\t\tmax=cnt;\n\t\t\t\t\t}", "max<cnt", "max", "cnt", "{\n\t\t\t\t\t\tmax=cnt;\n\t\t\t\t\t}", "max=cnt", "max", "cnt", "{\n\t\t\t\t\tcnt=0;\n\t\t\t\t}", "cnt=0", "cnt", "0", "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\t\t\n\t\t\tString s = sc.next();\n\t\t\t\n\t\t\tint len = s.length();\n\t\t\tint cnt = 0;\n\t\t\tint max = 0;\n\t\t\tchar[] sChars = s.toCharArray();\n\t\t\t\n\t\t\tfor(int i=0;i<len;i++) {\n\t\t\t\tif(sChars[i]=='R') {\n\t\t\t\t\tcnt=cnt+1;\n\t\t\t\t\tif(max<cnt) {\n\t\t\t\t\t\tmax=cnt;\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tcnt=0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(max);\n\t}\t\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\t\n\t\t\tString s = sc.next();\n\t\t\t\n\t\t\tint len = s.length();\n\t\t\tint cnt = 0;\n\t\t\tint max = 0;\n\t\t\tchar[] sChars = s.toCharArray();\n\t\t\t\n\t\t\tfor(int i=0;i<len;i++) {\n\t\t\t\tif(sChars[i]=='R') {\n\t\t\t\t\tcnt=cnt+1;\n\t\t\t\t\tif(max<cnt) {\n\t\t\t\t\t\tmax=cnt;\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tcnt=0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(max);\n\t}\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(); int len = s.length(); int cnt = 0; int max = 0; char[] sChars = s.toCharArray(); for(int i=0;i<len;i++) { if(sChars[i]=='R') { cnt=cnt+1; if(max<cnt) { max=cnt; } }else { cnt=0; } } System.out.println(max); } }
[ 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, 30, 40, 13, 0, 13, 4, 18, 13, 13, 13, 0, 13, 17, 4, 18, 18, 13, 13, 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, 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, 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, 41, 13, 4, 13, 14, 2, 2, 13, 18, 13, 13, 2, 13, 18, 13, 13, 37, 20, 29, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 323, 11 ], [ 323, 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 ], [ 52, 53 ], [ 51, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 56, 60 ], [ 44, 61 ], [ 61, 62 ], [ 61, 63 ], [ 14, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 12, 70 ], [ 70, 71 ], [ 0, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 76, 78 ], [ 72, 79 ], [ 79, 80 ], [ 79, 81 ], [ 72, 83 ], [ 83, 84 ], [ 83, 85 ], [ 72, 86 ], [ 86, 87 ], [ 86, 88 ], [ 72, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 92, 96 ], [ 96, 97 ], [ 97, 98 ], [ 92, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 103, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 114, 115 ], [ 113, 116 ], [ 99, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 117, 121 ], [ 121, 122 ], [ 122, 123 ], [ 91, 124 ], [ 124, 125 ], [ 72, 126 ], [ 126, 127 ], [ 126, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 129, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 135, 136 ], [ 129, 137 ], [ 137, 138 ], [ 138, 139 ], [ 72, 140 ], [ 140, 141 ], [ 140, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 144, 148 ], [ 148, 149 ], [ 148, 150 ], [ 140, 151 ], [ 151, 152 ], [ 72, 153 ], [ 153, 154 ], [ 153, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 157, 160 ], [ 160, 161 ], [ 161, 162 ], [ 161, 163 ], [ 163, 164 ], [ 163, 165 ], [ 156, 166 ], [ 166, 167 ], [ 155, 168 ], [ 168, 169 ], [ 169, 170 ], [ 72, 171 ], [ 171, 172 ], [ 171, 173 ], [ 173, 174 ], [ 174, 175 ], [ 175, 176 ], [ 176, 177 ], [ 174, 178 ], [ 178, 179 ], [ 173, 180 ], [ 180, 181 ], [ 180, 182 ], [ 173, 183 ], [ 183, 184 ], [ 183, 185 ], [ 185, 186 ], [ 173, 187 ], [ 187, 188 ], [ 188, 189 ], [ 188, 190 ], [ 187, 191 ], [ 191, 192 ], [ 192, 193 ], [ 193, 194 ], [ 192, 195 ], [ 191, 196 ], [ 196, 197 ], [ 196, 198 ], [ 198, 199 ], [ 173, 200 ], [ 200, 201 ], [ 201, 202 ], [ 202, 203 ], [ 72, 204 ], [ 204, 205 ], [ 204, 206 ], [ 206, 207 ], [ 207, 208 ], [ 208, 209 ], [ 209, 210 ], [ 207, 211 ], [ 211, 212 ], [ 206, 213 ], [ 213, 214 ], [ 213, 215 ], [ 206, 216 ], [ 216, 217 ], [ 216, 218 ], [ 206, 219 ], [ 219, 220 ], [ 219, 221 ], [ 221, 222 ], [ 206, 223 ], [ 223, 224 ], [ 224, 225 ], [ 224, 226 ], [ 223, 227 ], [ 227, 228 ], [ 228, 229 ], [ 228, 230 ], [ 227, 231 ], [ 231, 232 ], [ 231, 233 ], [ 233, 234 ], [ 206, 235 ], [ 235, 236 ], [ 236, 237 ], [ 237, 238 ], [ 237, 239 ], [ 236, 240 ], [ 240, 241 ], [ 240, 242 ], [ 235, 243 ], [ 243, 244 ], [ 244, 245 ], [ 206, 246 ], [ 246, 247 ], [ 246, 248 ], [ 248, 249 ], [ 249, 250 ], [ 250, 251 ], [ 251, 252 ], [ 251, 253 ], [ 250, 254 ], [ 254, 255 ], [ 254, 256 ], [ 249, 257 ], [ 257, 258 ], [ 258, 259 ], [ 258, 260 ], [ 257, 261 ], [ 261, 262 ], [ 261, 263 ], [ 263, 264 ], [ 263, 265 ], [ 249, 266 ], [ 266, 267 ], [ 267, 268 ], [ 268, 269 ], [ 268, 270 ], [ 270, 271 ], [ 267, 272 ], [ 272, 273 ], [ 273, 274 ], [ 273, 275 ], [ 266, 276 ], [ 276, 277 ], [ 277, 278 ], [ 278, 279 ], [ 278, 280 ], [ 280, 281 ], [ 278, 282 ], [ 266, 283 ], [ 283, 284 ], [ 284, 285 ], [ 248, 286 ], [ 286, 287 ], [ 286, 288 ], [ 288, 289 ], [ 72, 290 ], [ 290, 291 ], [ 290, 292 ], [ 292, 293 ], [ 293, 294 ], [ 293, 295 ], [ 295, 296 ], [ 292, 297 ], [ 297, 298 ], [ 298, 299 ], [ 299, 300 ], [ 299, 301 ], [ 301, 302 ], [ 301, 303 ], [ 298, 304 ], [ 304, 305 ], [ 304, 306 ], [ 306, 307 ], [ 306, 308 ], [ 297, 309 ], [ 309, 310 ], [ 292, 311 ], [ 311, 312 ], [ 72, 313 ], [ 313, 314 ], [ 313, 315 ], [ 315, 316 ], [ 316, 317 ], [ 317, 318 ], [ 318, 319 ], [ 317, 320 ], [ 320, 321 ], [ 0, 322 ], [ 322, 323 ], [ 322, 324 ] ]
[ "import java.io.IOException;\nimport java.io.InputStream;\nimport java.util.*;\n\npublic class Main {\n\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n String s = fs.next();\n\n int cnt = 0;\n int ans = 0;\n for (int i = 0; i < s.length(); ++i) {\n if (s.charAt(i) == 'R') {\n ++cnt;\n ans = Math.max(ans, cnt);\n }\n else cnt = 0;\n }\n\n System.out.println(ans);\n }\n}\n\nclass FastScanner {\n private final InputStream in = System.in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n\n private boolean hasNextByte() {\n if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }\n\n private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}\n private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}\n public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}\n\n public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n\n public long nextLong() {\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b)){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\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 double nextDouble() { return Double.parseDouble(next());}\n}\n\n", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "import java.util.*;", "util.*", "java", "public class Main {\n\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n String s = fs.next();\n\n int cnt = 0;\n int ans = 0;\n for (int i = 0; i < s.length(); ++i) {\n if (s.charAt(i) == 'R') {\n ++cnt;\n ans = Math.max(ans, cnt);\n }\n else cnt = 0;\n }\n\n System.out.println(ans);\n }\n}", "Main", "public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n String s = fs.next();\n\n int cnt = 0;\n int ans = 0;\n for (int i = 0; i < s.length(); ++i) {\n if (s.charAt(i) == 'R') {\n ++cnt;\n ans = Math.max(ans, cnt);\n }\n else cnt = 0;\n }\n\n System.out.println(ans);\n }", "main", "{\n FastScanner fs = new FastScanner();\n String s = fs.next();\n\n int cnt = 0;\n int ans = 0;\n for (int i = 0; i < s.length(); ++i) {\n if (s.charAt(i) == 'R') {\n ++cnt;\n ans = Math.max(ans, cnt);\n }\n else cnt = 0;\n }\n\n System.out.println(ans);\n }", "FastScanner fs = new FastScanner();", "fs", "new FastScanner()", "String s = fs.next();", "s", "fs.next()", "fs.next", "fs", "int cnt = 0;", "cnt", "0", "int ans = 0;", "ans", "0", "for (int i = 0; i < s.length(); ++i) {\n if (s.charAt(i) == 'R') {\n ++cnt;\n ans = Math.max(ans, cnt);\n }\n else cnt = 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') {\n ++cnt;\n ans = Math.max(ans, cnt);\n }\n else cnt = 0;\n }", "{\n if (s.charAt(i) == 'R') {\n ++cnt;\n ans = Math.max(ans, cnt);\n }\n else cnt = 0;\n }", "if (s.charAt(i) == 'R') {\n ++cnt;\n ans = Math.max(ans, cnt);\n }\n else cnt = 0;", "s.charAt(i) == 'R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "{\n ++cnt;\n ans = Math.max(ans, cnt);\n }", "++cnt", "cnt", "ans = Math.max(ans, cnt)", "ans", "Math.max(ans, cnt)", "Math.max", "Math", "ans", "cnt", "cnt = 0", "cnt", "0", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "class FastScanner {\n private final InputStream in = System.in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n\n private boolean hasNextByte() {\n if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }\n\n private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}\n private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}\n public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}\n\n public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n\n public long nextLong() {\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b)){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\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 double nextDouble() { return Double.parseDouble(next());}\n}", "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 if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }", "hasNextByte", "{\n if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }", "if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }", "ptr < buflen", "ptr", "buflen", "{\n return true;\n }", "return true;", "true", "{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }", "ptr = 0", "ptr", "0", "try {\n buflen = in.read(buffer);\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 buflen = in.read(buffer);\n }", "buflen = in.read(buffer)", "buflen", "in.read(buffer)", "in.read", "in", "buffer", "if (buflen <= 0) {\n return false;\n }", "buflen <= 0", "buflen", "0", "{\n return false;\n }", "return false;", "false", "return true;", "true", "private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}", "readByte", "{ if (hasNextByte()) return buffer[ptr++]; else return -1;}", "if (hasNextByte()) return buffer[ptr++]; else return -1;", "hasNextByte()", "hasNextByte", "return buffer[ptr++];", "buffer[ptr++]", "buffer", "ptr++", "ptr", "return -1;", "-1", "1", "private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}", "isPrintableChar", "{ return 33 <= c && c <= 126;}", "return 33 <= c && c <= 126;", "33 <= c && c <= 126", "33 <= c", "33", "c", "c <= 126", "c", "126", "int c", "c", "public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}", "hasNext", "{ while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}", "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", "return hasNextByte();", "hasNextByte()", "hasNextByte", "public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }", "next", "{\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }", "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 sb.appendCodePoint(b);\n b = readByte();\n }", "isPrintableChar(b)", "isPrintableChar", "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 long nextLong() {\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b)){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }", "nextLong", "{\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b)){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }", "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 minus = true;\n b = readByte();\n }", "b == '-'", "b", "'-'", "{\n minus = true;\n b = readByte();\n }", "minus = true", "minus", "true", "b = readByte()", "b", "readByte()", "readByte", "if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }", "b < '0' || '9' < b", "b < '0'", "b", "'0'", "'9' < b", "'9'", "b", "{\n throw new NumberFormatException();\n }", "throw new NumberFormatException();", "new NumberFormatException()", "while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b)){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }", "true", "{\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b)){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }", "if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b)){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }", "'0' <= b && b <= '9'", "'0' <= b", "'0'", "b", "b <= '9'", "b", "'9'", "{\n n *= 10;\n n += b - '0';\n }", "n *= 10", "n", "10", "n += b - '0'", "n", "b - '0'", "b", "'0'", "if(b == -1 || !isPrintableChar(b)){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }", "b == -1 || !isPrintableChar(b)", "b == -1", "b", "-1", "1", "!isPrintableChar(b)", "isPrintableChar(b)", "isPrintableChar", "b", "{\n return minus ? -n : n;\n }", "return minus ? -n : n;", "minus ? -n : n", "minus", "-n", "n", "n", "{\n throw new NumberFormatException();\n }", "throw new NumberFormatException();", "new NumberFormatException()", "b = readByte()", "b", "readByte()", "readByte", "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 double nextDouble() { return Double.parseDouble(next());}", "nextDouble", "{ return Double.parseDouble(next());}", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "public class Main {\n\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n String s = fs.next();\n\n int cnt = 0;\n int ans = 0;\n for (int i = 0; i < s.length(); ++i) {\n if (s.charAt(i) == 'R') {\n ++cnt;\n ans = Math.max(ans, cnt);\n }\n else cnt = 0;\n }\n\n System.out.println(ans);\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n String s = fs.next();\n\n int cnt = 0;\n int ans = 0;\n for (int i = 0; i < s.length(); ++i) {\n if (s.charAt(i) == 'R') {\n ++cnt;\n ans = Math.max(ans, cnt);\n }\n else cnt = 0;\n }\n\n System.out.println(ans);\n }\n}", "Main" ]
import java.io.IOException; import java.io.InputStream; import java.util.*; public class Main { public static void main(String[] args) { FastScanner fs = new FastScanner(); String s = fs.next(); int cnt = 0; int ans = 0; for (int i = 0; i < s.length(); ++i) { if (s.charAt(i) == 'R') { ++cnt; ans = Math.max(ans, cnt); } else cnt = 0; } System.out.println(ans); } } 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;} public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; 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 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() { long nl = nextLong(); if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException(); return (int) nl; } public double nextDouble() { return Double.parseDouble(next());} }
[ 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, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 17, 40, 13, 0, 13, 17, 0, 13, 4, 18, 13, 13, 13, 4, 18, 13, 13, 4, 18, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 76, 8 ], [ 76, 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 ], [ 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 ], [ 53, 55 ], [ 43, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 58, 62 ], [ 11, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 11, 67 ], [ 67, 68 ], [ 68, 69 ], [ 11, 70 ], [ 70, 71 ], [ 71, 72 ], [ 9, 73 ], [ 73, 74 ], [ 0, 75 ], [ 75, 76 ], [ 75, 77 ] ]
[ "import java.util.*;\nimport java.io.*;\npublic class Main\n{\n public static void main(String args[])throws Exception\n {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n PrintWriter pw=new PrintWriter(System.out);\n String s=br.readLine();\n int max=0,cnt=0;\n for(int i=0;i<s.length();i++)\n {\n if(s.charAt(i)=='R')\n cnt++;\n else\n cnt=0;\n max=Math.max(max,cnt);\n }\n pw.println(max);\n pw.flush();\n pw.close();\n }\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "public class Main\n{\n public static void main(String args[])throws Exception\n {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n PrintWriter pw=new PrintWriter(System.out);\n String s=br.readLine();\n int max=0,cnt=0;\n for(int i=0;i<s.length();i++)\n {\n if(s.charAt(i)=='R')\n cnt++;\n else\n cnt=0;\n max=Math.max(max,cnt);\n }\n pw.println(max);\n pw.flush();\n pw.close();\n }\n}", "Main", "public static void main(String args[])throws Exception\n {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n PrintWriter pw=new PrintWriter(System.out);\n String s=br.readLine();\n int max=0,cnt=0;\n for(int i=0;i<s.length();i++)\n {\n if(s.charAt(i)=='R')\n cnt++;\n else\n cnt=0;\n max=Math.max(max,cnt);\n }\n pw.println(max);\n pw.flush();\n pw.close();\n }", "main", "{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n PrintWriter pw=new PrintWriter(System.out);\n String s=br.readLine();\n int max=0,cnt=0;\n for(int i=0;i<s.length();i++)\n {\n if(s.charAt(i)=='R')\n cnt++;\n else\n cnt=0;\n max=Math.max(max,cnt);\n }\n pw.println(max);\n pw.flush();\n pw.close();\n }", "BufferedReader br=new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "PrintWriter pw=new PrintWriter(System.out);", "pw", "new PrintWriter(System.out)", "String s=br.readLine();", "s", "br.readLine()", "br.readLine", "br", "int max=0", "max", "0", "cnt=0;", "cnt", "0", "for(int i=0;i<s.length();i++)\n {\n if(s.charAt(i)=='R')\n cnt++;\n else\n cnt=0;\n max=Math.max(max,cnt);\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 cnt=0;\n max=Math.max(max,cnt);\n }", "{\n if(s.charAt(i)=='R')\n cnt++;\n else\n cnt=0;\n max=Math.max(max,cnt);\n }", "if(s.charAt(i)=='R')\n cnt++;\n else\n cnt=0;", "s.charAt(i)=='R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "cnt++", "cnt", "cnt=0", "cnt", "0", "max=Math.max(max,cnt)", "max", "Math.max(max,cnt)", "Math.max", "Math", "max", "cnt", "pw.println(max)", "pw.println", "pw", "max", "pw.flush()", "pw.flush", "pw", "pw.close()", "pw.close", "pw", "String args[]", "args", "public class Main\n{\n public static void main(String args[])throws Exception\n {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n PrintWriter pw=new PrintWriter(System.out);\n String s=br.readLine();\n int max=0,cnt=0;\n for(int i=0;i<s.length();i++)\n {\n if(s.charAt(i)=='R')\n cnt++;\n else\n cnt=0;\n max=Math.max(max,cnt);\n }\n pw.println(max);\n pw.flush();\n pw.close();\n }\n}", "public class Main\n{\n public static void main(String args[])throws Exception\n {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n PrintWriter pw=new PrintWriter(System.out);\n String s=br.readLine();\n int max=0,cnt=0;\n for(int i=0;i<s.length();i++)\n {\n if(s.charAt(i)=='R')\n cnt++;\n else\n cnt=0;\n max=Math.max(max,cnt);\n }\n pw.println(max);\n pw.flush();\n pw.close();\n }\n}", "Main" ]
import java.util.*; import java.io.*; public class Main { public static void main(String args[])throws Exception { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); PrintWriter pw=new PrintWriter(System.out); String s=br.readLine(); int max=0,cnt=0; for(int i=0;i<s.length();i++) { if(s.charAt(i)=='R') cnt++; else cnt=0; max=Math.max(max,cnt); } pw.println(max); pw.flush(); pw.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, 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, 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 ], [ 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 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 20, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 20, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 20, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 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\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tint ans = 0;\n\t\tswitch (s){\n\t\t\tcase \"RRR\":\n\t\t\t\tans = 3;\n\t\t\t\tbreak;\n\t\t\tcase \"RRS\":\n\t\t\t\tans = 2;\n\t\t\t\tbreak;\n\t\t\tcase \"SRR\":\n\t\t\t\tans = 2;\n\t\t\t\tbreak;\n\t\t\tcase \"RSR\":\n\t\t\t\tans = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"SSR\":\n\t\t\t\tans = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"SRS\":\n\t\t\t\tans = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"RSS\":\n\t\t\t\tans = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"SSS\":\n\t\t\t\tans = 0;\n\t\t\t\tbreak;\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 sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tint ans = 0;\n\t\tswitch (s){\n\t\t\tcase \"RRR\":\n\t\t\t\tans = 3;\n\t\t\t\tbreak;\n\t\t\tcase \"RRS\":\n\t\t\t\tans = 2;\n\t\t\t\tbreak;\n\t\t\tcase \"SRR\":\n\t\t\t\tans = 2;\n\t\t\t\tbreak;\n\t\t\tcase \"RSR\":\n\t\t\t\tans = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"SSR\":\n\t\t\t\tans = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"SRS\":\n\t\t\t\tans = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"RSS\":\n\t\t\t\tans = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"SSS\":\n\t\t\t\tans = 0;\n\t\t\t\tbreak;\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tint ans = 0;\n\t\tswitch (s){\n\t\t\tcase \"RRR\":\n\t\t\t\tans = 3;\n\t\t\t\tbreak;\n\t\t\tcase \"RRS\":\n\t\t\t\tans = 2;\n\t\t\t\tbreak;\n\t\t\tcase \"SRR\":\n\t\t\t\tans = 2;\n\t\t\t\tbreak;\n\t\t\tcase \"RSR\":\n\t\t\t\tans = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"SSR\":\n\t\t\t\tans = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"SRS\":\n\t\t\t\tans = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"RSS\":\n\t\t\t\tans = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"SSS\":\n\t\t\t\tans = 0;\n\t\t\t\tbreak;\n\t\t}\n\t\tSystem.out.println(ans);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tint ans = 0;\n\t\tswitch (s){\n\t\t\tcase \"RRR\":\n\t\t\t\tans = 3;\n\t\t\t\tbreak;\n\t\t\tcase \"RRS\":\n\t\t\t\tans = 2;\n\t\t\t\tbreak;\n\t\t\tcase \"SRR\":\n\t\t\t\tans = 2;\n\t\t\t\tbreak;\n\t\t\tcase \"RSR\":\n\t\t\t\tans = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"SSR\":\n\t\t\t\tans = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"SRS\":\n\t\t\t\tans = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"RSS\":\n\t\t\t\tans = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"SSS\":\n\t\t\t\tans = 0;\n\t\t\t\tbreak;\n\t\t}\n\t\tSystem.out.println(ans);\n\t}", "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", "switch (s){\n\t\t\tcase \"RRR\":\n\t\t\t\tans = 3;\n\t\t\t\tbreak;\n\t\t\tcase \"RRS\":\n\t\t\t\tans = 2;\n\t\t\t\tbreak;\n\t\t\tcase \"SRR\":\n\t\t\t\tans = 2;\n\t\t\t\tbreak;\n\t\t\tcase \"RSR\":\n\t\t\t\tans = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"SSR\":\n\t\t\t\tans = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"SRS\":\n\t\t\t\tans = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"RSS\":\n\t\t\t\tans = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"SSS\":\n\t\t\t\tans = 0;\n\t\t\t\tbreak;\n\t\t}", "s", "case \"RRR\":", "\"RRR\"", "case \"RRR\":", "ans = 3", "ans", "3", "break;", "case \"RRS\":", "\"RRS\"", "case \"RRS\":", "ans = 2", "ans", "2", "break;", "case \"SRR\":", "\"SRR\"", "case \"SRR\":", "ans = 2", "ans", "2", "break;", "case \"RSR\":", "\"RSR\"", "case \"RSR\":", "ans = 1", "ans", "1", "break;", "case \"SSR\":", "\"SSR\"", "case \"SSR\":", "ans = 1", "ans", "1", "break;", "case \"SRS\":", "\"SRS\"", "case \"SRS\":", "ans = 1", "ans", "1", "break;", "case \"RSS\":", "\"RSS\"", "case \"RSS\":", "ans = 1", "ans", "1", "break;", "case \"SSS\":", "\"SSS\"", "case \"SSS\":", "ans = 0", "ans", "0", "break;", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tint ans = 0;\n\t\tswitch (s){\n\t\t\tcase \"RRR\":\n\t\t\t\tans = 3;\n\t\t\t\tbreak;\n\t\t\tcase \"RRS\":\n\t\t\t\tans = 2;\n\t\t\t\tbreak;\n\t\t\tcase \"SRR\":\n\t\t\t\tans = 2;\n\t\t\t\tbreak;\n\t\t\tcase \"RSR\":\n\t\t\t\tans = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"SSR\":\n\t\t\t\tans = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"SRS\":\n\t\t\t\tans = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"RSS\":\n\t\t\t\tans = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"SSS\":\n\t\t\t\tans = 0;\n\t\t\t\tbreak;\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tint ans = 0;\n\t\tswitch (s){\n\t\t\tcase \"RRR\":\n\t\t\t\tans = 3;\n\t\t\t\tbreak;\n\t\t\tcase \"RRS\":\n\t\t\t\tans = 2;\n\t\t\t\tbreak;\n\t\t\tcase \"SRR\":\n\t\t\t\tans = 2;\n\t\t\t\tbreak;\n\t\t\tcase \"RSR\":\n\t\t\t\tans = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"SSR\":\n\t\t\t\tans = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"SRS\":\n\t\t\t\tans = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"RSS\":\n\t\t\t\tans = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"SSS\":\n\t\t\t\tans = 0;\n\t\t\t\tbreak;\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 sc = new Scanner(System.in); String s = sc.next(); int ans = 0; switch (s){ case "RRR": ans = 3; break; case "RRS": ans = 2; break; case "SRR": ans = 2; break; case "RSR": ans = 1; break; case "SSR": ans = 1; break; case "SRS": ans = 1; break; case "RSS": ans = 1; break; case "SSS": ans = 0; break; } System.out.println(ans); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 41, 13, 4, 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, 0, 13, 17, 0, 13, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 0, 13, 20, 29, 4, 18, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 126, 8 ], [ 126, 9 ], [ 9, 10 ], [ 126, 11 ], [ 11, 12 ], [ 126, 13 ], [ 13, 14 ], [ 126, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 17, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 17, 30 ], [ 30, 31 ], [ 30, 32 ], [ 17, 33 ], [ 33, 34 ], [ 33, 35 ], [ 17, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 43, 45 ], [ 36, 46 ], [ 46, 47 ], [ 47, 48 ], [ 36, 49 ], [ 50, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 51, 57 ], [ 57, 58 ], [ 58, 59 ], [ 51, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 50, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 66, 70 ], [ 17, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 15, 77 ], [ 77, 78 ], [ 126, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 86, 87 ], [ 126, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 95, 96 ], [ 126, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 101, 104 ], [ 104, 105 ], [ 126, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 110, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 109, 118 ], [ 118, 119 ], [ 118, 120 ], [ 108, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 0, 125 ], [ 125, 126 ], [ 125, 127 ] ]
[ "import java.util.*; \nimport java.io.*;\n\npublic class Main {\n static StringTokenizer st;\n static BufferedReader br; \n static PrintWriter out;\n \n public static void main(String[] args) throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n\n String S = next();\n\n char[] list = S.toCharArray();\n\n int count = 0;\n int max = 0;\n for (int i=0; i<list.length; i++) {\n if(list[i]=='R'){\n count++;\n }\n else {\n count = 0;\n }\n max = Math.max(max, count);\n }\n\n System.out.println(max);\n\n\n }\n \n \n public static int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n public static long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public static double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n static String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "public class Main {\n static StringTokenizer st;\n static BufferedReader br; \n static PrintWriter out;\n \n public static void main(String[] args) throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n\n String S = next();\n\n char[] list = S.toCharArray();\n\n int count = 0;\n int max = 0;\n for (int i=0; i<list.length; i++) {\n if(list[i]=='R'){\n count++;\n }\n else {\n count = 0;\n }\n max = Math.max(max, count);\n }\n\n System.out.println(max);\n\n\n }\n \n \n public static int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n public static long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public static double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n static String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }\n}", "Main", "static StringTokenizer st;", "st", "static BufferedReader br;", "br", "static PrintWriter out;", "out", "public static void main(String[] args) throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n\n String S = next();\n\n char[] list = S.toCharArray();\n\n int count = 0;\n int max = 0;\n for (int i=0; i<list.length; i++) {\n if(list[i]=='R'){\n count++;\n }\n else {\n count = 0;\n }\n max = Math.max(max, count);\n }\n\n System.out.println(max);\n\n\n }", "main", "{\n br = new BufferedReader(new InputStreamReader(System.in));\n\n String S = next();\n\n char[] list = S.toCharArray();\n\n int count = 0;\n int max = 0;\n for (int i=0; i<list.length; i++) {\n if(list[i]=='R'){\n count++;\n }\n else {\n count = 0;\n }\n max = Math.max(max, count);\n }\n\n System.out.println(max);\n\n\n }", "br = new BufferedReader(new InputStreamReader(System.in))", "br", "new BufferedReader(new InputStreamReader(System.in))", "String S = next();", "S", "next()", "next", "char[] list = S.toCharArray();", "list", "S.toCharArray()", "S.toCharArray", "S", "int count = 0;", "count", "0", "int max = 0;", "max", "0", "for (int i=0; i<list.length; i++) {\n if(list[i]=='R'){\n count++;\n }\n else {\n count = 0;\n }\n max = Math.max(max, count);\n }", "int i=0;", "int i=0;", "i", "0", "i<list.length", "i", "list.length", "list", "list.length", "i++", "i++", "i", "{\n if(list[i]=='R'){\n count++;\n }\n else {\n count = 0;\n }\n max = Math.max(max, count);\n }", "{\n if(list[i]=='R'){\n count++;\n }\n else {\n count = 0;\n }\n max = Math.max(max, count);\n }", "if(list[i]=='R'){\n count++;\n }\n else {\n count = 0;\n }", "list[i]=='R'", "list[i]", "list", "i", "'R'", "{\n count++;\n }", "count++", "count", "{\n count = 0;\n }", "count = 0", "count", "0", "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 static 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 static 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 static 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", "static String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }", "next", "{\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }", "while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());", "st == null || !st.hasMoreTokens()", "st == null", "st", "null", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "st = new StringTokenizer(br.readLine().trim())", "st", "new StringTokenizer(br.readLine().trim())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "public class Main {\n static StringTokenizer st;\n static BufferedReader br; \n static PrintWriter out;\n \n public static void main(String[] args) throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n\n String S = next();\n\n char[] list = S.toCharArray();\n\n int count = 0;\n int max = 0;\n for (int i=0; i<list.length; i++) {\n if(list[i]=='R'){\n count++;\n }\n else {\n count = 0;\n }\n max = Math.max(max, count);\n }\n\n System.out.println(max);\n\n\n }\n \n \n public static int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n public static long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public static double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n static String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }\n}", "public class Main {\n static StringTokenizer st;\n static BufferedReader br; \n static PrintWriter out;\n \n public static void main(String[] args) throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n\n String S = next();\n\n char[] list = S.toCharArray();\n\n int count = 0;\n int max = 0;\n for (int i=0; i<list.length; i++) {\n if(list[i]=='R'){\n count++;\n }\n else {\n count = 0;\n }\n max = Math.max(max, count);\n }\n\n System.out.println(max);\n\n\n }\n \n \n public static int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n public static long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public static double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n static String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }\n}", "Main" ]
import java.util.*; import java.io.*; public class Main { static StringTokenizer st; static BufferedReader br; static PrintWriter out; public static void main(String[] args) throws IOException { br = new BufferedReader(new InputStreamReader(System.in)); String S = next(); char[] list = S.toCharArray(); int count = 0; int max = 0; for (int i=0; i<list.length; i++) { if(list[i]=='R'){ count++; } else { count = 0; } max = Math.max(max, count); } System.out.println(max); } public static int nextInt() throws IOException { return Integer.parseInt(next()); } public static long nextLong() throws IOException { return Long.parseLong(next()); } public static double nextDouble() throws IOException { return Double.parseDouble(next()); } static String next() throws IOException { while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine().trim()); return st.nextToken(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 40, 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, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 4, 18, 18, 13, 17, 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 ], [ 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 ], [ 20, 21 ], [ 19, 22 ], [ 19, 23 ], [ 23, 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 ], [ 42, 47 ], [ 41, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 8, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 52, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 63, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 63, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 81, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 6, 99 ], [ 99, 100 ], [ 0, 101 ], [ 101, 102 ], [ 101, 103 ] ]
[ "import java.util.*;\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String w[] = s.split(\"\", -1);\n int cnt = 0;\n for(int i = 0; i < 3; i++){\n if(w[i].equals(\"R\")){\n cnt += 1;\n }\n }\n\n if(cnt == 3){\n System.out.println(\"3\");\n }else if(cnt == 2 && w[1].equals(\"R\")){\n System.out.println(\"2\");\n }else if(cnt == 0){\n System.out.println(\"0\");\n }else{\n System.out.println(\"1\");\n }\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String w[] = s.split(\"\", -1);\n int cnt = 0;\n for(int i = 0; i < 3; i++){\n if(w[i].equals(\"R\")){\n cnt += 1;\n }\n }\n\n if(cnt == 3){\n System.out.println(\"3\");\n }else if(cnt == 2 && w[1].equals(\"R\")){\n System.out.println(\"2\");\n }else if(cnt == 0){\n System.out.println(\"0\");\n }else{\n System.out.println(\"1\");\n }\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String w[] = s.split(\"\", -1);\n int cnt = 0;\n for(int i = 0; i < 3; i++){\n if(w[i].equals(\"R\")){\n cnt += 1;\n }\n }\n\n if(cnt == 3){\n System.out.println(\"3\");\n }else if(cnt == 2 && w[1].equals(\"R\")){\n System.out.println(\"2\");\n }else if(cnt == 0){\n System.out.println(\"0\");\n }else{\n System.out.println(\"1\");\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String w[] = s.split(\"\", -1);\n int cnt = 0;\n for(int i = 0; i < 3; i++){\n if(w[i].equals(\"R\")){\n cnt += 1;\n }\n }\n\n if(cnt == 3){\n System.out.println(\"3\");\n }else if(cnt == 2 && w[1].equals(\"R\")){\n System.out.println(\"2\");\n }else if(cnt == 0){\n System.out.println(\"0\");\n }else{\n System.out.println(\"1\");\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.nextLine();", "s", "sc.nextLine()", "sc.nextLine", "sc", "String w[] = s.split(\"\", -1);", "w", "s.split(\"\", -1)", "s.split", "s", "\"\"", "-1", "1", "int cnt = 0;", "cnt", "0", "for(int i = 0; i < 3; i++){\n if(w[i].equals(\"R\")){\n cnt += 1;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < 3", "i", "3", "i++", "i++", "i", "{\n if(w[i].equals(\"R\")){\n cnt += 1;\n }\n }", "{\n if(w[i].equals(\"R\")){\n cnt += 1;\n }\n }", "if(w[i].equals(\"R\")){\n cnt += 1;\n }", "w[i].equals(\"R\")", "w[i].equals", "w[i]", "w", "i", "\"R\"", "{\n cnt += 1;\n }", "cnt += 1", "cnt", "1", "if(cnt == 3){\n System.out.println(\"3\");\n }else if(cnt == 2 && w[1].equals(\"R\")){\n System.out.println(\"2\");\n }else if(cnt == 0){\n System.out.println(\"0\");\n }else{\n System.out.println(\"1\");\n }", "cnt == 3", "cnt", "3", "{\n System.out.println(\"3\");\n }", "System.out.println(\"3\")", "System.out.println", "System.out", "System", "System.out", "\"3\"", "if(cnt == 2 && w[1].equals(\"R\")){\n System.out.println(\"2\");\n }else if(cnt == 0){\n System.out.println(\"0\");\n }else{\n System.out.println(\"1\");\n }", "cnt == 2 && w[1].equals(\"R\")", "cnt == 2", "cnt", "2", "w[1].equals(\"R\")", "w[1].equals", "w[1]", "w", "1", "\"R\"", "{\n System.out.println(\"2\");\n }", "System.out.println(\"2\")", "System.out.println", "System.out", "System", "System.out", "\"2\"", "if(cnt == 0){\n System.out.println(\"0\");\n }else{\n System.out.println(\"1\");\n }", "cnt == 0", "cnt", "0", "{\n System.out.println(\"0\");\n }", "System.out.println(\"0\")", "System.out.println", "System.out", "System", "System.out", "\"0\"", "{\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 sc = new Scanner(System.in);\n String s = sc.nextLine();\n String w[] = s.split(\"\", -1);\n int cnt = 0;\n for(int i = 0; i < 3; i++){\n if(w[i].equals(\"R\")){\n cnt += 1;\n }\n }\n\n if(cnt == 3){\n System.out.println(\"3\");\n }else if(cnt == 2 && w[1].equals(\"R\")){\n System.out.println(\"2\");\n }else if(cnt == 0){\n System.out.println(\"0\");\n }else{\n System.out.println(\"1\");\n }\n }\n}", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String w[] = s.split(\"\", -1);\n int cnt = 0;\n for(int i = 0; i < 3; i++){\n if(w[i].equals(\"R\")){\n cnt += 1;\n }\n }\n\n if(cnt == 3){\n System.out.println(\"3\");\n }else if(cnt == 2 && w[1].equals(\"R\")){\n System.out.println(\"2\");\n }else if(cnt == 0){\n System.out.println(\"0\");\n }else{\n System.out.println(\"1\");\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.nextLine(); String w[] = s.split("", -1); int cnt = 0; for(int i = 0; i < 3; i++){ if(w[i].equals("R")){ cnt += 1; } } if(cnt == 3){ System.out.println("3"); }else if(cnt == 2 && w[1].equals("R")){ System.out.println("2"); }else if(cnt == 0){ 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, 4, 18, 13, 17, 4, 18, 18, 13, 13, 17, 14, 4, 18, 13, 17, 4, 18, 18, 13, 13, 17, 14, 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 ], [ 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 ], [ 18, 19 ], [ 19, 20 ], [ 18, 21 ], [ 17, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 22, 27 ], [ 17, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 28, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 39, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 39, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 50, 55 ], [ 6, 56 ], [ 56, 57 ], [ 0, 58 ], [ 58, 59 ], [ 58, 60 ] ]
[ "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\n if (s.contains(\"RRR\")) System.out.println(3);\n else if (s.contains(\"RR\")) System.out.println(2);\n else if (s.contains(\"R\")) System.out.println(1);\n else System.out.println(0);\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 if (s.contains(\"RRR\")) System.out.println(3);\n else if (s.contains(\"RR\")) System.out.println(2);\n else if (s.contains(\"R\")) System.out.println(1);\n else System.out.println(0);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n\n if (s.contains(\"RRR\")) System.out.println(3);\n else if (s.contains(\"RR\")) System.out.println(2);\n else if (s.contains(\"R\")) System.out.println(1);\n else System.out.println(0);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n\n if (s.contains(\"RRR\")) System.out.println(3);\n else if (s.contains(\"RR\")) System.out.println(2);\n else if (s.contains(\"R\")) System.out.println(1);\n else System.out.println(0);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "if (s.contains(\"RRR\")) System.out.println(3);\n else if (s.contains(\"RR\")) System.out.println(2);\n else if (s.contains(\"R\")) System.out.println(1);\n else System.out.println(0);", "s.contains(\"RRR\")", "s.contains", "s", "\"RRR\"", "System.out.println(3)", "System.out.println", "System.out", "System", "System.out", "3", "if (s.contains(\"RR\")) System.out.println(2);\n else if (s.contains(\"R\")) System.out.println(1);\n else System.out.println(0);", "s.contains(\"RR\")", "s.contains", "s", "\"RR\"", "System.out.println(2)", "System.out.println", "System.out", "System", "System.out", "2", "if (s.contains(\"R\")) System.out.println(1);\n else System.out.println(0);", "s.contains(\"R\")", "s.contains", "s", "\"R\"", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "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 s = sc.next();\n\n if (s.contains(\"RRR\")) System.out.println(3);\n else if (s.contains(\"RR\")) System.out.println(2);\n else if (s.contains(\"R\")) System.out.println(1);\n else System.out.println(0);\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 if (s.contains(\"RRR\")) System.out.println(3);\n else if (s.contains(\"RR\")) System.out.println(2);\n else if (s.contains(\"R\")) System.out.println(1);\n else System.out.println(0);\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(); if (s.contains("RRR")) System.out.println(3); else if (s.contains("RR")) System.out.println(2); else if (s.contains("R")) System.out.println(1); else System.out.println(0); } }