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, 17, 41, 13, 4, 18, 13, 42, 17, 30, 41, 13, 4, 18, 4, 18, 13, 17, 14, 4, 18, 18, 13, 17, 17, 30, 3, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 4, 18, 18, 13, 13, 13, 30, 40, 13, 4, 18, 13, 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 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 25, 30 ], [ 22, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 31, 38 ], [ 38, 39 ], [ 31, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 48, 50 ], [ 41, 51 ], [ 51, 52 ], [ 52, 53 ], [ 41, 54 ], [ 55, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 57, 64 ], [ 56, 65 ], [ 65, 66 ], [ 66, 67 ], [ 8, 68 ], [ 68, 69 ], [ 69, 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.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int count = 0;\n String w = sc.nextLine();\n while(true) {\n String[] str = sc.nextLine().split(\" \");\n if(str[0].equals(\"END_OF_TEXT\")) {\n break;\n } else {\n for(int i = 0; i < str.length; i++) {\n if(str[i].toLowerCase().equals(w)) {\n count++;\n }\n }\n }\n }\n sc.close();\n System.out.println(count);\n }\n}\n", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int count = 0;\n String w = sc.nextLine();\n while(true) {\n String[] str = sc.nextLine().split(\" \");\n if(str[0].equals(\"END_OF_TEXT\")) {\n break;\n } else {\n for(int i = 0; i < str.length; i++) {\n if(str[i].toLowerCase().equals(w)) {\n count++;\n }\n }\n }\n }\n sc.close();\n System.out.println(count);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int count = 0;\n String w = sc.nextLine();\n while(true) {\n String[] str = sc.nextLine().split(\" \");\n if(str[0].equals(\"END_OF_TEXT\")) {\n break;\n } else {\n for(int i = 0; i < str.length; i++) {\n if(str[i].toLowerCase().equals(w)) {\n count++;\n }\n }\n }\n }\n sc.close();\n System.out.println(count);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int count = 0;\n String w = sc.nextLine();\n while(true) {\n String[] str = sc.nextLine().split(\" \");\n if(str[0].equals(\"END_OF_TEXT\")) {\n break;\n } else {\n for(int i = 0; i < str.length; i++) {\n if(str[i].toLowerCase().equals(w)) {\n count++;\n }\n }\n }\n }\n sc.close();\n System.out.println(count);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int count = 0;", "count", "0", "String w = sc.nextLine();", "w", "sc.nextLine()", "sc.nextLine", "sc", "while(true) {\n String[] str = sc.nextLine().split(\" \");\n if(str[0].equals(\"END_OF_TEXT\")) {\n break;\n } else {\n for(int i = 0; i < str.length; i++) {\n if(str[i].toLowerCase().equals(w)) {\n count++;\n }\n }\n }\n }", "true", "{\n String[] str = sc.nextLine().split(\" \");\n if(str[0].equals(\"END_OF_TEXT\")) {\n break;\n } else {\n for(int i = 0; i < str.length; i++) {\n if(str[i].toLowerCase().equals(w)) {\n count++;\n }\n }\n }\n }", "String[] str = sc.nextLine().split(\" \");", "str", "sc.nextLine().split(\" \")", "sc.nextLine().split", "sc.nextLine()", "sc.nextLine", "sc", "\" \"", "if(str[0].equals(\"END_OF_TEXT\")) {\n break;\n } else {\n for(int i = 0; i < str.length; i++) {\n if(str[i].toLowerCase().equals(w)) {\n count++;\n }\n }\n }", "str[0].equals(\"END_OF_TEXT\")", "str[0].equals", "str[0]", "str", "0", "\"END_OF_TEXT\"", "{\n break;\n }", "break;", "{\n for(int i = 0; i < str.length; i++) {\n if(str[i].toLowerCase().equals(w)) {\n count++;\n }\n }\n }", "for(int i = 0; i < str.length; i++) {\n if(str[i].toLowerCase().equals(w)) {\n count++;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < str.length", "i", "str.length", "str", "str.length", "i++", "i++", "i", "{\n if(str[i].toLowerCase().equals(w)) {\n count++;\n }\n }", "{\n if(str[i].toLowerCase().equals(w)) {\n count++;\n }\n }", "if(str[i].toLowerCase().equals(w)) {\n count++;\n }", "str[i].toLowerCase().equals(w)", "str[i].toLowerCase().equals", "str[i].toLowerCase()", "str[i].toLowerCase", "str[i]", "str", "i", "w", "{\n count++;\n }", "count++", "count", "sc.close()", "sc.close", "sc", "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 int count = 0;\n String w = sc.nextLine();\n while(true) {\n String[] str = sc.nextLine().split(\" \");\n if(str[0].equals(\"END_OF_TEXT\")) {\n break;\n } else {\n for(int i = 0; i < str.length; i++) {\n if(str[i].toLowerCase().equals(w)) {\n count++;\n }\n }\n }\n }\n sc.close();\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 int count = 0;\n String w = sc.nextLine();\n while(true) {\n String[] str = sc.nextLine().split(\" \");\n if(str[0].equals(\"END_OF_TEXT\")) {\n break;\n } else {\n for(int i = 0; i < str.length; i++) {\n if(str[i].toLowerCase().equals(w)) {\n count++;\n }\n }\n }\n }\n sc.close();\n System.out.println(count);\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int count = 0; String w = sc.nextLine(); while(true) { String[] str = sc.nextLine().split(" "); if(str[0].equals("END_OF_TEXT")) { break; } else { for(int i = 0; i < str.length; i++) { if(str[i].toLowerCase().equals(w)) { count++; } } } } sc.close(); System.out.println(count); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 4, 18, 4, 18, 13, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 14, 4, 18, 18, 13, 17, 17, 3, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 18, 13, 13, 14, 4, 18, 13, 13, 40, 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 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 91, 14 ], [ 91, 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 ], [ 28, 29 ], [ 29, 30 ], [ 17, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 33, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 33, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 46, 51 ], [ 45, 52 ], [ 33, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 53, 63 ], [ 63, 64 ], [ 64, 65 ], [ 53, 66 ], [ 67, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 67, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 75, 80 ], [ 80, 81 ], [ 17, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 15, 88 ], [ 88, 89 ], [ 0, 90 ], [ 90, 91 ], [ 90, 92 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.*;\nimport java.util.regex.*;\npublic class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int count = 0;\n String target = br.readLine().toLowerCase();\n while(true) {\n String line = br.readLine();\n String[] line2 = line.split(\" \");\n if(line2[0].equals(\"END_OF_TEXT\"))break;\n for(int i=0;i<line2.length;i++){\n String s= line2[i].toLowerCase();\n if(s.equals(target))count++;\n }\n }\n System.out.println(count);\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.*;", "util.*", "java", "import java.util.regex.*;", "regex.*", "java.util", "public class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int count = 0;\n String target = br.readLine().toLowerCase();\n while(true) {\n String line = br.readLine();\n String[] line2 = line.split(\" \");\n if(line2[0].equals(\"END_OF_TEXT\"))break;\n for(int i=0;i<line2.length;i++){\n String s= line2[i].toLowerCase();\n if(s.equals(target))count++;\n }\n }\n System.out.println(count);\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int count = 0;\n String target = br.readLine().toLowerCase();\n while(true) {\n String line = br.readLine();\n String[] line2 = line.split(\" \");\n if(line2[0].equals(\"END_OF_TEXT\"))break;\n for(int i=0;i<line2.length;i++){\n String s= line2[i].toLowerCase();\n if(s.equals(target))count++;\n }\n }\n System.out.println(count);\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int count = 0;\n String target = br.readLine().toLowerCase();\n while(true) {\n String line = br.readLine();\n String[] line2 = line.split(\" \");\n if(line2[0].equals(\"END_OF_TEXT\"))break;\n for(int i=0;i<line2.length;i++){\n String s= line2[i].toLowerCase();\n if(s.equals(target))count++;\n }\n }\n System.out.println(count);\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int count = 0;", "count", "0", "String target = br.readLine().toLowerCase();", "target", "br.readLine().toLowerCase()", "br.readLine().toLowerCase", "br.readLine()", "br.readLine", "br", "while(true) {\n String line = br.readLine();\n String[] line2 = line.split(\" \");\n if(line2[0].equals(\"END_OF_TEXT\"))break;\n for(int i=0;i<line2.length;i++){\n String s= line2[i].toLowerCase();\n if(s.equals(target))count++;\n }\n }", "true", "{\n String line = br.readLine();\n String[] line2 = line.split(\" \");\n if(line2[0].equals(\"END_OF_TEXT\"))break;\n for(int i=0;i<line2.length;i++){\n String s= line2[i].toLowerCase();\n if(s.equals(target))count++;\n }\n }", "String line = br.readLine();", "line", "br.readLine()", "br.readLine", "br", "String[] line2 = line.split(\" \");", "line2", "line.split(\" \")", "line.split", "line", "\" \"", "if(line2[0].equals(\"END_OF_TEXT\"))break;", "line2[0].equals(\"END_OF_TEXT\")", "line2[0].equals", "line2[0]", "line2", "0", "\"END_OF_TEXT\"", "break;", "for(int i=0;i<line2.length;i++){\n String s= line2[i].toLowerCase();\n if(s.equals(target))count++;\n }", "int i=0;", "int i=0;", "i", "0", "i<line2.length", "i", "line2.length", "line2", "line2.length", "i++", "i++", "i", "{\n String s= line2[i].toLowerCase();\n if(s.equals(target))count++;\n }", "{\n String s= line2[i].toLowerCase();\n if(s.equals(target))count++;\n }", "String s= line2[i].toLowerCase();", "s", "line2[i].toLowerCase()", "line2[i].toLowerCase", "line2[i]", "line2", "i", "if(s.equals(target))count++;", "s.equals(target)", "s.equals", "s", "target", "count++", "count", "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) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int count = 0;\n String target = br.readLine().toLowerCase();\n while(true) {\n String line = br.readLine();\n String[] line2 = line.split(\" \");\n if(line2[0].equals(\"END_OF_TEXT\"))break;\n for(int i=0;i<line2.length;i++){\n String s= line2[i].toLowerCase();\n if(s.equals(target))count++;\n }\n }\n System.out.println(count);\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int count = 0;\n String target = br.readLine().toLowerCase();\n while(true) {\n String line = br.readLine();\n String[] line2 = line.split(\" \");\n if(line2[0].equals(\"END_OF_TEXT\"))break;\n for(int i=0;i<line2.length;i++){\n String s= line2[i].toLowerCase();\n if(s.equals(target))count++;\n }\n }\n System.out.println(count);\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.*; import java.util.regex.*; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int count = 0; String target = br.readLine().toLowerCase(); while(true) { String line = br.readLine(); String[] line2 = line.split(" "); if(line2[0].equals("END_OF_TEXT"))break; for(int i=0;i<line2.length;i++){ String s= line2[i].toLowerCase(); if(s.equals(target))count++; } } System.out.println(count); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 41, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 41, 13, 17, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 18, 13, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 14, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 14, 35 ], [ 35, 36 ], [ 35, 37 ], [ 14, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 40, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 46, 51 ], [ 40, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 40, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 59, 63 ], [ 40, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 71, 73 ], [ 64, 74 ], [ 74, 75 ], [ 75, 76 ], [ 64, 77 ], [ 78, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 79, 86 ], [ 86, 87 ], [ 87, 88 ], [ 14, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 12, 95 ], [ 95, 96 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nclass Main {\n\n\tpublic static void main(String args[]) throws IOException {\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\t\t\t\t\n\t\tString str, str2;\n\t\t\n\t\tstr = br.readLine();\n\t\tstr = str.toLowerCase();\n\n\t\tint sum = 0;\n\t\t\n\t\twhile(true){\n\t\t\tstr2 = br.readLine();\t\n\t\t\tif (str2.equals(\"END_OF_TEXT\")) break;\n\t\t\t\n\t\t\tstr2 = str2.toLowerCase();\n\t\t\tString st[] = str2.split(\" \", 0);\n\t\t\tfor(int i = 0; i < st.length; i++){\n\t\t\t\tif(st[i].equals(str)){\n\t\t\t\t\tsum++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "class Main {\n\n\tpublic static void main(String args[]) throws IOException {\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\t\t\t\t\n\t\tString str, str2;\n\t\t\n\t\tstr = br.readLine();\n\t\tstr = str.toLowerCase();\n\n\t\tint sum = 0;\n\t\t\n\t\twhile(true){\n\t\t\tstr2 = br.readLine();\t\n\t\t\tif (str2.equals(\"END_OF_TEXT\")) break;\n\t\t\t\n\t\t\tstr2 = str2.toLowerCase();\n\t\t\tString st[] = str2.split(\" \", 0);\n\t\t\tfor(int i = 0; i < st.length; i++){\n\t\t\t\tif(st[i].equals(str)){\n\t\t\t\t\tsum++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}\n}", "Main", "public static void main(String args[]) throws IOException {\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\t\t\t\t\n\t\tString str, str2;\n\t\t\n\t\tstr = br.readLine();\n\t\tstr = str.toLowerCase();\n\n\t\tint sum = 0;\n\t\t\n\t\twhile(true){\n\t\t\tstr2 = br.readLine();\t\n\t\t\tif (str2.equals(\"END_OF_TEXT\")) break;\n\t\t\t\n\t\t\tstr2 = str2.toLowerCase();\n\t\t\tString st[] = str2.split(\" \", 0);\n\t\t\tfor(int i = 0; i < st.length; i++){\n\t\t\t\tif(st[i].equals(str)){\n\t\t\t\t\tsum++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}", "main", "{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\t\t\t\t\n\t\tString str, str2;\n\t\t\n\t\tstr = br.readLine();\n\t\tstr = str.toLowerCase();\n\n\t\tint sum = 0;\n\t\t\n\t\twhile(true){\n\t\t\tstr2 = br.readLine();\t\n\t\t\tif (str2.equals(\"END_OF_TEXT\")) break;\n\t\t\t\n\t\t\tstr2 = str2.toLowerCase();\n\t\t\tString st[] = str2.split(\" \", 0);\n\t\t\tfor(int i = 0; i < st.length; i++){\n\t\t\t\tif(st[i].equals(str)){\n\t\t\t\t\tsum++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}", "InputStreamReader isr = new InputStreamReader(System.in);", "isr", "new InputStreamReader(System.in)", "BufferedReader br = new BufferedReader(isr);", "br", "new BufferedReader(isr)", "String str", "str", "str2;", "str2", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "str = str.toLowerCase()", "str", "str.toLowerCase()", "str.toLowerCase", "str", "int sum = 0;", "sum", "0", "while(true){\n\t\t\tstr2 = br.readLine();\t\n\t\t\tif (str2.equals(\"END_OF_TEXT\")) break;\n\t\t\t\n\t\t\tstr2 = str2.toLowerCase();\n\t\t\tString st[] = str2.split(\" \", 0);\n\t\t\tfor(int i = 0; i < st.length; i++){\n\t\t\t\tif(st[i].equals(str)){\n\t\t\t\t\tsum++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tstr2 = br.readLine();\t\n\t\t\tif (str2.equals(\"END_OF_TEXT\")) break;\n\t\t\t\n\t\t\tstr2 = str2.toLowerCase();\n\t\t\tString st[] = str2.split(\" \", 0);\n\t\t\tfor(int i = 0; i < st.length; i++){\n\t\t\t\tif(st[i].equals(str)){\n\t\t\t\t\tsum++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "str2 = br.readLine()", "str2", "br.readLine()", "br.readLine", "br", "if (str2.equals(\"END_OF_TEXT\")) break;", "str2.equals(\"END_OF_TEXT\")", "str2.equals", "str2", "\"END_OF_TEXT\"", "break;", "str2 = str2.toLowerCase()", "str2", "str2.toLowerCase()", "str2.toLowerCase", "str2", "String st[] = str2.split(\" \", 0);", "st", "str2.split(\" \", 0)", "str2.split", "str2", "\" \"", "0", "for(int i = 0; i < st.length; i++){\n\t\t\t\tif(st[i].equals(str)){\n\t\t\t\t\tsum++;\n\t\t\t\t}\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < st.length", "i", "st.length", "st", "st.length", "i++", "i++", "i", "{\n\t\t\t\tif(st[i].equals(str)){\n\t\t\t\t\tsum++;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif(st[i].equals(str)){\n\t\t\t\t\tsum++;\n\t\t\t\t}\n\t\t\t}", "if(st[i].equals(str)){\n\t\t\t\t\tsum++;\n\t\t\t\t}", "st[i].equals(str)", "st[i].equals", "st[i]", "st", "i", "str", "{\n\t\t\t\t\tsum++;\n\t\t\t\t}", "sum++", "sum", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String args[]", "args" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; class Main { public static void main(String args[]) throws IOException { InputStreamReader isr = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(isr); String str, str2; str = br.readLine(); str = str.toLowerCase(); int sum = 0; while(true){ str2 = br.readLine(); if (str2.equals("END_OF_TEXT")) break; str2 = str2.toLowerCase(); String st[] = str2.split(" ", 0); for(int i = 0; i < st.length; i++){ if(st[i].equals(str)){ sum++; } } } System.out.println(sum); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 42, 40, 4, 18, 0, 13, 4, 18, 13, 17, 30, 28, 13, 4, 18, 13, 17, 30, 30, 14, 4, 18, 13, 13, 30, 40, 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 ], [ 65, 11 ], [ 65, 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 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 31, 38 ], [ 29, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 40, 46 ], [ 47, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 48, 53 ], [ 53, 54 ], [ 54, 55 ], [ 14, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 12, 62 ], [ 62, 63 ], [ 0, 64 ], [ 64, 65 ], [ 64, 66 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String w = br.readLine();\n int sum = 0;\n String line=\"\";\n while (!(line = br.readLine()).equals(\"END_OF_TEXT\")) {\n for(String s:line.split(\" \")){\n if(s.equalsIgnoreCase(w)){\n sum++;\n }\n }\n }\n System.out.println(sum);\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String w = br.readLine();\n int sum = 0;\n String line=\"\";\n while (!(line = br.readLine()).equals(\"END_OF_TEXT\")) {\n for(String s:line.split(\" \")){\n if(s.equalsIgnoreCase(w)){\n sum++;\n }\n }\n }\n System.out.println(sum);\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String w = br.readLine();\n int sum = 0;\n String line=\"\";\n while (!(line = br.readLine()).equals(\"END_OF_TEXT\")) {\n for(String s:line.split(\" \")){\n if(s.equalsIgnoreCase(w)){\n sum++;\n }\n }\n }\n System.out.println(sum);\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String w = br.readLine();\n int sum = 0;\n String line=\"\";\n while (!(line = br.readLine()).equals(\"END_OF_TEXT\")) {\n for(String s:line.split(\" \")){\n if(s.equalsIgnoreCase(w)){\n sum++;\n }\n }\n }\n System.out.println(sum);\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String w = br.readLine();", "w", "br.readLine()", "br.readLine", "br", "int sum = 0;", "sum", "0", "String line=\"\";", "line", "\"\"", "while (!(line = br.readLine()).equals(\"END_OF_TEXT\")) {\n for(String s:line.split(\" \")){\n if(s.equalsIgnoreCase(w)){\n sum++;\n }\n }\n }", "!(line = br.readLine()).equals(\"END_OF_TEXT\")", "(line = br.readLine()).equals(\"END_OF_TEXT\")", "(line = br.readLine()).equals", "(line = br.readLine())", "line", "br.readLine()", "br.readLine", "br", "\"END_OF_TEXT\"", "{\n for(String s:line.split(\" \")){\n if(s.equalsIgnoreCase(w)){\n sum++;\n }\n }\n }", "for(String s:line.split(\" \")){\n if(s.equalsIgnoreCase(w)){\n sum++;\n }\n }", "String s", "line.split(\" \")", "line.split", "line", "\" \"", "{\n if(s.equalsIgnoreCase(w)){\n sum++;\n }\n }", "{\n if(s.equalsIgnoreCase(w)){\n sum++;\n }\n }", "if(s.equalsIgnoreCase(w)){\n sum++;\n }", "s.equalsIgnoreCase(w)", "s.equalsIgnoreCase", "s", "w", "{\n sum++;\n }", "sum++", "sum", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String w = br.readLine();\n int sum = 0;\n String line=\"\";\n while (!(line = br.readLine()).equals(\"END_OF_TEXT\")) {\n for(String s:line.split(\" \")){\n if(s.equalsIgnoreCase(w)){\n sum++;\n }\n }\n }\n System.out.println(sum);\n }\n}", "public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String w = br.readLine();\n int sum = 0;\n String line=\"\";\n while (!(line = br.readLine()).equals(\"END_OF_TEXT\")) {\n for(String s:line.split(\" \")){\n if(s.equalsIgnoreCase(w)){\n sum++;\n }\n }\n }\n System.out.println(sum);\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String w = br.readLine(); int sum = 0; String line=""; while (!(line = br.readLine()).equals("END_OF_TEXT")) { for(String s:line.split(" ")){ if(s.equalsIgnoreCase(w)){ sum++; } } } System.out.println(sum); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 40, 4, 18, 0, 13, 4, 18, 13, 17, 30, 30, 41, 13, 4, 18, 13, 17, 28, 13, 13, 30, 30, 14, 4, 18, 13, 13, 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 ], [ 8, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 25, 32 ], [ 22, 33 ], [ 34, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 34, 41 ], [ 41, 42 ], [ 41, 43 ], [ 41, 44 ], [ 45, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 46, 51 ], [ 51, 52 ], [ 8, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 6, 59 ], [ 59, 60 ] ]
[ "import java.io.*;\n\n\nclass Main {\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString str;\n\t\tString x = br.readLine();\n\t\tint count = 0;\n\t\tfor (; !((str = br.readLine()).equals(\"END_OF_TEXT\"));) {\n\t\t\tString[] stg = str.split(\" \");\n\t\t\tfor (String i : stg) {\n\t\t\t\tif (i.equalsIgnoreCase(x))\n\t\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\n}", "import java.io.*;", "io.*", "java", "class Main {\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString str;\n\t\tString x = br.readLine();\n\t\tint count = 0;\n\t\tfor (; !((str = br.readLine()).equals(\"END_OF_TEXT\"));) {\n\t\t\tString[] stg = str.split(\" \");\n\t\t\tfor (String i : stg) {\n\t\t\t\tif (i.equalsIgnoreCase(x))\n\t\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\n}", "Main", "public static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString str;\n\t\tString x = br.readLine();\n\t\tint count = 0;\n\t\tfor (; !((str = br.readLine()).equals(\"END_OF_TEXT\"));) {\n\t\t\tString[] stg = str.split(\" \");\n\t\t\tfor (String i : stg) {\n\t\t\t\tif (i.equalsIgnoreCase(x))\n\t\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "main", "{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString str;\n\t\tString x = br.readLine();\n\t\tint count = 0;\n\t\tfor (; !((str = br.readLine()).equals(\"END_OF_TEXT\"));) {\n\t\t\tString[] stg = str.split(\" \");\n\t\t\tfor (String i : stg) {\n\t\t\t\tif (i.equalsIgnoreCase(x))\n\t\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String str;", "str", "String x = br.readLine();", "x", "br.readLine()", "br.readLine", "br", "int count = 0;", "count", "0", "for (; !((str = br.readLine()).equals(\"END_OF_TEXT\"));) {\n\t\t\tString[] stg = str.split(\" \");\n\t\t\tfor (String i : stg) {\n\t\t\t\tif (i.equalsIgnoreCase(x))\n\t\t\t\t\tcount++;\n\t\t\t}\n\t\t}", ";", "!((str = br.readLine()).equals(\"END_OF_TEXT\"))", "((str = br.readLine()).equals(\"END_OF_TEXT\"))", "(str = br.readLine()).equals", "(str = br.readLine())", "str", "br.readLine()", "br.readLine", "br", "\"END_OF_TEXT\"", "{\n\t\t\tString[] stg = str.split(\" \");\n\t\t\tfor (String i : stg) {\n\t\t\t\tif (i.equalsIgnoreCase(x))\n\t\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "{\n\t\t\tString[] stg = str.split(\" \");\n\t\t\tfor (String i : stg) {\n\t\t\t\tif (i.equalsIgnoreCase(x))\n\t\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "String[] stg = str.split(\" \");", "stg", "str.split(\" \")", "str.split", "str", "\" \"", "for (String i : stg) {\n\t\t\t\tif (i.equalsIgnoreCase(x))\n\t\t\t\t\tcount++;\n\t\t\t}", "String i", "stg", "{\n\t\t\t\tif (i.equalsIgnoreCase(x))\n\t\t\t\t\tcount++;\n\t\t\t}", "{\n\t\t\t\tif (i.equalsIgnoreCase(x))\n\t\t\t\t\tcount++;\n\t\t\t}", "if (i.equalsIgnoreCase(x))\n\t\t\t\t\tcount++;", "i.equalsIgnoreCase(x)", "i.equalsIgnoreCase", "i", "x", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args" ]
import java.io.*; class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str; String x = br.readLine(); int count = 0; for (; !((str = br.readLine()).equals("END_OF_TEXT"));) { String[] stg = str.split(" "); for (String i : stg) { if (i.equalsIgnoreCase(x)) count++; } } 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, 41, 13, 17, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 17, 40, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 4, 18, 18, 13, 13, 13, 30, 40, 13, 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 ], [ 16, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 27, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 33, 38 ], [ 38, 39 ], [ 27, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 42, 46 ], [ 46, 47 ], [ 27, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 55, 57 ], [ 48, 58 ], [ 58, 59 ], [ 59, 60 ], [ 48, 61 ], [ 62, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 64, 71 ], [ 63, 72 ], [ 72, 73 ], [ 73, 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\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = (sc.nextLine()).toUpperCase();\n\n\t\tString T = \"\";\n\t\tint count = 0;\n\t\twhile (true) {\n\t\t\tT = sc.nextLine();\n\t\t\tif (T.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] str = T.split(\" \", -1);\n\t\t\tfor (int i = 0; i < str.length; i++) {\n\t\t\t\tif ((str[i].toUpperCase()).equals(W)) {\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\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 W = (sc.nextLine()).toUpperCase();\n\n\t\tString T = \"\";\n\t\tint count = 0;\n\t\twhile (true) {\n\t\t\tT = sc.nextLine();\n\t\t\tif (T.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] str = T.split(\" \", -1);\n\t\t\tfor (int i = 0; i < str.length; i++) {\n\t\t\t\tif ((str[i].toUpperCase()).equals(W)) {\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\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = (sc.nextLine()).toUpperCase();\n\n\t\tString T = \"\";\n\t\tint count = 0;\n\t\twhile (true) {\n\t\t\tT = sc.nextLine();\n\t\t\tif (T.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] str = T.split(\" \", -1);\n\t\t\tfor (int i = 0; i < str.length; i++) {\n\t\t\t\tif ((str[i].toUpperCase()).equals(W)) {\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\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = (sc.nextLine()).toUpperCase();\n\n\t\tString T = \"\";\n\t\tint count = 0;\n\t\twhile (true) {\n\t\t\tT = sc.nextLine();\n\t\t\tif (T.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] str = T.split(\" \", -1);\n\t\t\tfor (int i = 0; i < str.length; i++) {\n\t\t\t\tif ((str[i].toUpperCase()).equals(W)) {\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\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String W = (sc.nextLine()).toUpperCase();", "W", "(sc.nextLine()).toUpperCase()", "(sc.nextLine()).toUpperCase", "(sc.nextLine())", "sc.nextLine", "sc", "String T = \"\";", "T", "\"\"", "int count = 0;", "count", "0", "while (true) {\n\t\t\tT = sc.nextLine();\n\t\t\tif (T.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] str = T.split(\" \", -1);\n\t\t\tfor (int i = 0; i < str.length; i++) {\n\t\t\t\tif ((str[i].toUpperCase()).equals(W)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}", "true", "{\n\t\t\tT = sc.nextLine();\n\t\t\tif (T.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] str = T.split(\" \", -1);\n\t\t\tfor (int i = 0; i < str.length; i++) {\n\t\t\t\tif ((str[i].toUpperCase()).equals(W)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}", "T = sc.nextLine()", "T", "sc.nextLine()", "sc.nextLine", "sc", "if (T.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}", "T.equals(\"END_OF_TEXT\")", "T.equals", "T", "\"END_OF_TEXT\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "String[] str = T.split(\" \", -1);", "str", "T.split(\" \", -1)", "T.split", "T", "\" \"", "-1", "1", "for (int i = 0; i < str.length; i++) {\n\t\t\t\tif ((str[i].toUpperCase()).equals(W)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < str.length", "i", "str.length", "str", "str.length", "i++", "i++", "i", "{\n\t\t\t\tif ((str[i].toUpperCase()).equals(W)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif ((str[i].toUpperCase()).equals(W)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}", "if ((str[i].toUpperCase()).equals(W)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}", "(str[i].toUpperCase()).equals(W)", "(str[i].toUpperCase()).equals", "(str[i].toUpperCase())", "str[i].toUpperCase", "str[i]", "str", "i", "W", "{\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\t\tScanner sc = new Scanner(System.in);\n\t\tString W = (sc.nextLine()).toUpperCase();\n\n\t\tString T = \"\";\n\t\tint count = 0;\n\t\twhile (true) {\n\t\t\tT = sc.nextLine();\n\t\t\tif (T.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] str = T.split(\" \", -1);\n\t\t\tfor (int i = 0; i < str.length; i++) {\n\t\t\t\tif ((str[i].toUpperCase()).equals(W)) {\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\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = (sc.nextLine()).toUpperCase();\n\n\t\tString T = \"\";\n\t\tint count = 0;\n\t\twhile (true) {\n\t\t\tT = sc.nextLine();\n\t\t\tif (T.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] str = T.split(\" \", -1);\n\t\t\tfor (int i = 0; i < str.length; i++) {\n\t\t\t\tif ((str[i].toUpperCase()).equals(W)) {\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\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String W = (sc.nextLine()).toUpperCase(); String T = ""; int count = 0; while (true) { T = sc.nextLine(); if (T.equals("END_OF_TEXT")) { break; } String[] str = T.split(" ", -1); for (int i = 0; i < str.length; i++) { if ((str[i].toUpperCase()).equals(W)) { 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, 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, 41, 13, 12, 13, 30, 0, 13, 20, 0, 13, 20, 41, 13, 20, 4, 18, 13, 4, 18, 13, 23, 13, 6, 13, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 14, 4, 18, 4, 18, 13, 13, 30, 40, 13, 4, 18, 13, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 23, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 4, 18, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 4, 18, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 4, 18, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 19, 20 ], [ 19, 21 ], [ 0, 22 ], [ 22, 23 ], [ 22, 24 ], [ 0, 25 ], [ 25, 26 ], [ 25, 27 ], [ 0, 28 ], [ 28, 29 ], [ 28, 30 ], [ 0, 31 ], [ 31, 32 ], [ 31, 33 ], [ 0, 34 ], [ 34, 35 ], [ 34, 36 ], [ 0, 37 ], [ 37, 38 ], [ 37, 39 ], [ 0, 40 ], [ 40, 41 ], [ 40, 42 ], [ 0, 43 ], [ 43, 44 ], [ 43, 45 ], [ 0, 46 ], [ 46, 47 ], [ 46, 48 ], [ 0, 49 ], [ 221, 50 ], [ 221, 51 ], [ 51, 52 ], [ 221, 53 ], [ 53, 54 ], [ 221, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 61, 63 ], [ 57, 64 ], [ 64, 65 ], [ 64, 66 ], [ 57, 67 ], [ 67, 68 ], [ 68, 69 ], [ 57, 70 ], [ 70, 71 ], [ 71, 72 ], [ 55, 73 ], [ 73, 74 ], [ 221, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 79, 85 ], [ 85, 86 ], [ 85, 87 ], [ 79, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 94, 95 ], [ 90, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 96, 101 ], [ 101, 102 ], [ 90, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 104, 109 ], [ 103, 110 ], [ 110, 111 ], [ 111, 112 ], [ 79, 113 ], [ 113, 114 ], [ 114, 115 ], [ 113, 116 ], [ 221, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 117, 121 ], [ 121, 122 ], [ 117, 123 ], [ 123, 124 ], [ 123, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 123, 129 ], [ 129, 130 ], [ 117, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 135, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 134, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 133, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 148, 151 ], [ 151, 152 ], [ 152, 153 ], [ 117, 154 ], [ 154, 155 ], [ 154, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 158, 162 ], [ 162, 163 ], [ 163, 164 ], [ 164, 165 ], [ 157, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 156, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 171, 174 ], [ 174, 175 ], [ 175, 176 ], [ 117, 177 ], [ 177, 178 ], [ 177, 179 ], [ 179, 180 ], [ 180, 181 ], [ 181, 182 ], [ 182, 183 ], [ 182, 184 ], [ 181, 185 ], [ 185, 186 ], [ 186, 187 ], [ 187, 188 ], [ 180, 189 ], [ 189, 190 ], [ 190, 191 ], [ 190, 192 ], [ 179, 193 ], [ 193, 194 ], [ 194, 195 ], [ 195, 196 ], [ 117, 197 ], [ 197, 198 ], [ 197, 199 ], [ 199, 200 ], [ 200, 201 ], [ 201, 202 ], [ 202, 203 ], [ 202, 204 ], [ 201, 205 ], [ 205, 206 ], [ 206, 207 ], [ 207, 208 ], [ 200, 209 ], [ 209, 210 ], [ 210, 211 ], [ 210, 212 ], [ 199, 213 ], [ 213, 214 ], [ 214, 215 ], [ 215, 216 ], [ 214, 217 ], [ 217, 218 ], [ 218, 219 ], [ 0, 220 ], [ 220, 221 ], [ 220, 222 ] ]
[ "import java.awt.Frame;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.OutputStream;\nimport java.io.PrintWriter;\nimport java.util.Arrays;\nimport java.util.StringTokenizer;\nimport javax.sql.rowset.FilteredRowSet;\nimport javax.swing.BorderFactory;\nimport javax.xml.parsers.DocumentBuilder;\nimport javax.xml.stream.events.EndDocument;\nimport java.math.BigInteger;\nimport java.time.chrono.MinguoChronology;\nimport java.util.Scanner;\n\npublic class Main {\n static InputReader in;\n static PrintWriter out;\n \n static class Solution {\n void solve() throws IOException {\n String W = in.next();\n int cnt = 0;\n while (true) {\n String T = in.next();\n if (T.equals(\"END_OF_TEXT\")) {\n break;\n }\n \n if (T.toLowerCase().equals(W)){\n cnt++;\n }\n }\n \n out.println(cnt);\n \n// End solve()\n }\n \n// End solution\n } \n \n\n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n \n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n \n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n \n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken()); \n }\n \n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n \n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n \n }\n \n}", "import java.awt.Frame;", "Frame", "java.awt", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "import java.io.OutputStream;", "OutputStream", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "import javax.sql.rowset.FilteredRowSet;", "FilteredRowSet", "javax.sql.rowset", "import javax.swing.BorderFactory;", "BorderFactory", "javax.swing", "import javax.xml.parsers.DocumentBuilder;", "DocumentBuilder", "javax.xml.parsers", "import javax.xml.stream.events.EndDocument;", "EndDocument", "javax.xml.stream.events", "import java.math.BigInteger;", "BigInteger", "java.math", "import java.time.chrono.MinguoChronology;", "MinguoChronology", "java.time.chrono", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n static InputReader in;\n static PrintWriter out;\n \n static class Solution {\n void solve() throws IOException {\n String W = in.next();\n int cnt = 0;\n while (true) {\n String T = in.next();\n if (T.equals(\"END_OF_TEXT\")) {\n break;\n }\n \n if (T.toLowerCase().equals(W)){\n cnt++;\n }\n }\n \n out.println(cnt);\n \n// End solve()\n }\n \n// End solution\n } \n \n\n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n \n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n \n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n \n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken()); \n }\n \n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n \n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n \n }\n \n}", "Main", "static InputReader in;", "in", "static PrintWriter out;", "out", "public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}", "main", "{\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}", "in = new InputReader(System.in)", "in", "new InputReader(System.in)", "out = new PrintWriter(System.out)", "out", "new PrintWriter(System.out)", "Solution solver = new Solution();", "solver", "new Solution()", "solver.solve()", "solver.solve", "solver", "out.close()", "out.close", "out", "String[] args", "args", "static class Solution {\n void solve() throws IOException {\n String W = in.next();\n int cnt = 0;\n while (true) {\n String T = in.next();\n if (T.equals(\"END_OF_TEXT\")) {\n break;\n }\n \n if (T.toLowerCase().equals(W)){\n cnt++;\n }\n }\n \n out.println(cnt);\n \n// End solve()\n }\n \n// End solution\n }", "Solution", "void solve() throws IOException {\n String W = in.next();\n int cnt = 0;\n while (true) {\n String T = in.next();\n if (T.equals(\"END_OF_TEXT\")) {\n break;\n }\n \n if (T.toLowerCase().equals(W)){\n cnt++;\n }\n }\n \n out.println(cnt);\n \n// End solve()\n }", "solve", "{\n String W = in.next();\n int cnt = 0;\n while (true) {\n String T = in.next();\n if (T.equals(\"END_OF_TEXT\")) {\n break;\n }\n \n if (T.toLowerCase().equals(W)){\n cnt++;\n }\n }\n \n out.println(cnt);\n \n// End solve()\n }", "String W = in.next();", "W", "in.next()", "in.next", "in", "int cnt = 0;", "cnt", "0", "while (true) {\n String T = in.next();\n if (T.equals(\"END_OF_TEXT\")) {\n break;\n }\n \n if (T.toLowerCase().equals(W)){\n cnt++;\n }\n }", "true", "{\n String T = in.next();\n if (T.equals(\"END_OF_TEXT\")) {\n break;\n }\n \n if (T.toLowerCase().equals(W)){\n cnt++;\n }\n }", "String T = in.next();", "T", "in.next()", "in.next", "in", "if (T.equals(\"END_OF_TEXT\")) {\n break;\n }", "T.equals(\"END_OF_TEXT\")", "T.equals", "T", "\"END_OF_TEXT\"", "{\n break;\n }", "break;", "if (T.toLowerCase().equals(W)){\n cnt++;\n }", "T.toLowerCase().equals(W)", "T.toLowerCase().equals", "T.toLowerCase()", "T.toLowerCase", "T", "W", "{\n cnt++;\n }", "cnt++", "cnt", "out.println(cnt)", "out.println", "out", "cnt", "static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n \n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n \n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n \n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken()); \n }\n \n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n \n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n \n }", "InputReader", "public BufferedReader br;", "br", "public StringTokenizer st;", "st", "public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }", "InputReader", "{\n br = new BufferedReader(new InputStreamReader(stream));\n }", "br = new BufferedReader(new InputStreamReader(stream))", "br", "new BufferedReader(new InputStreamReader(stream))", "InputStream stream", "stream", "public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }", "nextInt", "{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }", "while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }", "st == null || !st.hasMoreTokens()", "st == null", "st", "null", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return Integer.parseInt(st.nextToken());", "Integer.parseInt(st.nextToken())", "Integer.parseInt", "Integer", "st.nextToken()", "st.nextToken", "st", "public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken()); \n }", "nextLong", "{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken()); \n }", "while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }", "st == null || !st.hasMoreTokens()", "st == null", "st", "null", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return Long.parseLong(st.nextToken());", "Long.parseLong(st.nextToken())", "Long.parseLong", "Long", "st.nextToken()", "st.nextToken", "st", "public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }", "next", "{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }", "while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }", "st == null || !st.hasMoreTokens()", "st == null", "st", "null", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }", "nextDouble", "{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }", "while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }", "st == null || !st.hasMoreTokens()", "st == null", "st", "null", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return Double.parseDouble(st.nextToken());", "Double.parseDouble(st.nextToken())", "Double.parseDouble", "Double", "st.nextToken()", "st.nextToken", "st", "public class Main {\n static InputReader in;\n static PrintWriter out;\n \n static class Solution {\n void solve() throws IOException {\n String W = in.next();\n int cnt = 0;\n while (true) {\n String T = in.next();\n if (T.equals(\"END_OF_TEXT\")) {\n break;\n }\n \n if (T.toLowerCase().equals(W)){\n cnt++;\n }\n }\n \n out.println(cnt);\n \n// End solve()\n }\n \n// End solution\n } \n \n\n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n \n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n \n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n \n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken()); \n }\n \n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n \n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n \n }\n \n}", "public class Main {\n static InputReader in;\n static PrintWriter out;\n \n static class Solution {\n void solve() throws IOException {\n String W = in.next();\n int cnt = 0;\n while (true) {\n String T = in.next();\n if (T.equals(\"END_OF_TEXT\")) {\n break;\n }\n \n if (T.toLowerCase().equals(W)){\n cnt++;\n }\n }\n \n out.println(cnt);\n \n// End solve()\n }\n \n// End solution\n } \n \n\n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n \n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n \n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n \n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken()); \n }\n \n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n \n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n \n }\n \n}", "Main" ]
import java.awt.Frame; import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.PrintWriter; import java.util.Arrays; import java.util.StringTokenizer; import javax.sql.rowset.FilteredRowSet; import javax.swing.BorderFactory; import javax.xml.parsers.DocumentBuilder; import javax.xml.stream.events.EndDocument; import java.math.BigInteger; import java.time.chrono.MinguoChronology; import java.util.Scanner; public class Main { static InputReader in; static PrintWriter out; static class Solution { void solve() throws IOException { String W = in.next(); int cnt = 0; while (true) { String T = in.next(); if (T.equals("END_OF_TEXT")) { break; } if (T.toLowerCase().equals(W)){ cnt++; } } out.println(cnt); // End solve() } // End solution } public static void main(String[] args) throws IOException { in = new InputReader(System.in); out = new PrintWriter(System.out); Solution solver = new Solution(); solver.solve(); out.close(); } static class InputReader { public BufferedReader br; public StringTokenizer st; public InputReader(InputStream stream) { br = new BufferedReader(new InputStreamReader(stream)); } public int nextInt() throws IOException { while (st == null || !st.hasMoreTokens()) { st = new StringTokenizer(br.readLine()); } return Integer.parseInt(st.nextToken()); } public long nextLong() throws IOException { while (st == null || !st.hasMoreTokens()) { st = new StringTokenizer(br.readLine()); } return Long.parseLong(st.nextToken()); } public String next() throws IOException { while (st == null || !st.hasMoreTokens()) { st = new StringTokenizer(br.readLine()); } return st.nextToken(); } public double nextDouble() throws IOException { while (st == null || !st.hasMoreTokens()) { st = new StringTokenizer(br.readLine()); } return Double.parseDouble(st.nextToken()); } } }
[ 7, 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, 41, 13, 17, 42, 40, 4, 18, 0, 13, 4, 18, 13, 17, 30, 41, 13, 4, 18, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 18, 13, 13, 13, 30, 40, 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 ], [ 83, 11 ], [ 83, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 14, 27 ], [ 27, 28 ], [ 27, 29 ], [ 14, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 32, 39 ], [ 30, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 43, 48 ], [ 40, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 56, 58 ], [ 49, 59 ], [ 59, 60 ], [ 60, 61 ], [ 49, 62 ], [ 63, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 64, 71 ], [ 71, 72 ], [ 72, 73 ], [ 14, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 12, 80 ], [ 80, 81 ], [ 0, 82 ], [ 82, 83 ], [ 82, 84 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\n\npublic class Main {\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String W = br.readLine().toLowerCase();\n String T;\n int count = 0;\n while(!(T=br.readLine()).equals(\"END_OF_TEXT\")){\n \tString TList[] = T.toLowerCase().split(\" \");\n \tfor(int i=0;i<TList.length;i++){\n \t\tif(TList[i].equals(W)){\n \t\t\tcount++;\n \t\t}\n \t}\n\n }\n System.out.println(count);\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String W = br.readLine().toLowerCase();\n String T;\n int count = 0;\n while(!(T=br.readLine()).equals(\"END_OF_TEXT\")){\n \tString TList[] = T.toLowerCase().split(\" \");\n \tfor(int i=0;i<TList.length;i++){\n \t\tif(TList[i].equals(W)){\n \t\t\tcount++;\n \t\t}\n \t}\n\n }\n System.out.println(count);\n }\n}", "Main", "public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String W = br.readLine().toLowerCase();\n String T;\n int count = 0;\n while(!(T=br.readLine()).equals(\"END_OF_TEXT\")){\n \tString TList[] = T.toLowerCase().split(\" \");\n \tfor(int i=0;i<TList.length;i++){\n \t\tif(TList[i].equals(W)){\n \t\t\tcount++;\n \t\t}\n \t}\n\n }\n System.out.println(count);\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String W = br.readLine().toLowerCase();\n String T;\n int count = 0;\n while(!(T=br.readLine()).equals(\"END_OF_TEXT\")){\n \tString TList[] = T.toLowerCase().split(\" \");\n \tfor(int i=0;i<TList.length;i++){\n \t\tif(TList[i].equals(W)){\n \t\t\tcount++;\n \t\t}\n \t}\n\n }\n System.out.println(count);\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String W = br.readLine().toLowerCase();", "W", "br.readLine().toLowerCase()", "br.readLine().toLowerCase", "br.readLine()", "br.readLine", "br", "String T;", "T", "int count = 0;", "count", "0", "while(!(T=br.readLine()).equals(\"END_OF_TEXT\")){\n \tString TList[] = T.toLowerCase().split(\" \");\n \tfor(int i=0;i<TList.length;i++){\n \t\tif(TList[i].equals(W)){\n \t\t\tcount++;\n \t\t}\n \t}\n\n }", "!(T=br.readLine()).equals(\"END_OF_TEXT\")", "(T=br.readLine()).equals(\"END_OF_TEXT\")", "(T=br.readLine()).equals", "(T=br.readLine())", "T", "br.readLine()", "br.readLine", "br", "\"END_OF_TEXT\"", "{\n \tString TList[] = T.toLowerCase().split(\" \");\n \tfor(int i=0;i<TList.length;i++){\n \t\tif(TList[i].equals(W)){\n \t\t\tcount++;\n \t\t}\n \t}\n\n }", "String TList[] = T.toLowerCase().split(\" \");", "TList", "T.toLowerCase().split(\" \")", "T.toLowerCase().split", "T.toLowerCase()", "T.toLowerCase", "T", "\" \"", "for(int i=0;i<TList.length;i++){\n \t\tif(TList[i].equals(W)){\n \t\t\tcount++;\n \t\t}\n \t}", "int i=0;", "int i=0;", "i", "0", "i<TList.length", "i", "TList.length", "TList", "TList.length", "i++", "i++", "i", "{\n \t\tif(TList[i].equals(W)){\n \t\t\tcount++;\n \t\t}\n \t}", "{\n \t\tif(TList[i].equals(W)){\n \t\t\tcount++;\n \t\t}\n \t}", "if(TList[i].equals(W)){\n \t\t\tcount++;\n \t\t}", "TList[i].equals(W)", "TList[i].equals", "TList[i]", "TList", "i", "W", "{\n \t\t\tcount++;\n \t\t}", "count++", "count", "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) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String W = br.readLine().toLowerCase();\n String T;\n int count = 0;\n while(!(T=br.readLine()).equals(\"END_OF_TEXT\")){\n \tString TList[] = T.toLowerCase().split(\" \");\n \tfor(int i=0;i<TList.length;i++){\n \t\tif(TList[i].equals(W)){\n \t\t\tcount++;\n \t\t}\n \t}\n\n }\n System.out.println(count);\n }\n}", "public class Main {\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String W = br.readLine().toLowerCase();\n String T;\n int count = 0;\n while(!(T=br.readLine()).equals(\"END_OF_TEXT\")){\n \tString TList[] = T.toLowerCase().split(\" \");\n \tfor(int i=0;i<TList.length;i++){\n \t\tif(TList[i].equals(W)){\n \t\t\tcount++;\n \t\t}\n \t}\n\n }\n System.out.println(count);\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String W = br.readLine().toLowerCase(); String T; int count = 0; while(!(T=br.readLine()).equals("END_OF_TEXT")){ String TList[] = T.toLowerCase().split(" "); for(int i=0;i<TList.length;i++){ if(TList[i].equals(W)){ count++; } } } System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 42, 17, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 4, 18, 13, 13, 40, 13, 14, 4, 18, 13, 17, 3, 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 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 8, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 33, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 33, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 44, 49 ], [ 49, 50 ], [ 44, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 51, 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.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int count = 0;\n String w = sc.next();\n String w2 = w.toLowerCase();\n String t = \"\",t2=\"\";\n while (true) {\n t = sc.next();\n t2 = t.toLowerCase();\n if (w2.equals(t2)) count++;\n else if (t.equals(\"END_OF_TEXT\")) break;\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 sc = new Scanner(System.in);\n int count = 0;\n String w = sc.next();\n String w2 = w.toLowerCase();\n String t = \"\",t2=\"\";\n while (true) {\n t = sc.next();\n t2 = t.toLowerCase();\n if (w2.equals(t2)) count++;\n else if (t.equals(\"END_OF_TEXT\")) break;\n }\n System.out.println(count);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int count = 0;\n String w = sc.next();\n String w2 = w.toLowerCase();\n String t = \"\",t2=\"\";\n while (true) {\n t = sc.next();\n t2 = t.toLowerCase();\n if (w2.equals(t2)) count++;\n else if (t.equals(\"END_OF_TEXT\")) break;\n }\n System.out.println(count);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int count = 0;\n String w = sc.next();\n String w2 = w.toLowerCase();\n String t = \"\",t2=\"\";\n while (true) {\n t = sc.next();\n t2 = t.toLowerCase();\n if (w2.equals(t2)) count++;\n else if (t.equals(\"END_OF_TEXT\")) break;\n }\n System.out.println(count);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int count = 0;", "count", "0", "String w = sc.next();", "w", "sc.next()", "sc.next", "sc", "String w2 = w.toLowerCase();", "w2", "w.toLowerCase()", "w.toLowerCase", "w", "String t = \"\"", "t", "\"\"", "t2=\"\";", "t2", "\"\"", "while (true) {\n t = sc.next();\n t2 = t.toLowerCase();\n if (w2.equals(t2)) count++;\n else if (t.equals(\"END_OF_TEXT\")) break;\n }", "true", "{\n t = sc.next();\n t2 = t.toLowerCase();\n if (w2.equals(t2)) count++;\n else if (t.equals(\"END_OF_TEXT\")) break;\n }", "t = sc.next()", "t", "sc.next()", "sc.next", "sc", "t2 = t.toLowerCase()", "t2", "t.toLowerCase()", "t.toLowerCase", "t", "if (w2.equals(t2)) count++;\n else if (t.equals(\"END_OF_TEXT\")) break;", "w2.equals(t2)", "w2.equals", "w2", "t2", "count++", "count", "if (t.equals(\"END_OF_TEXT\")) break;", "t.equals(\"END_OF_TEXT\")", "t.equals", "t", "\"END_OF_TEXT\"", "break;", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int count = 0;\n String w = sc.next();\n String w2 = w.toLowerCase();\n String t = \"\",t2=\"\";\n while (true) {\n t = sc.next();\n t2 = t.toLowerCase();\n if (w2.equals(t2)) count++;\n else if (t.equals(\"END_OF_TEXT\")) break;\n }\n System.out.println(count);\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int count = 0;\n String w = sc.next();\n String w2 = w.toLowerCase();\n String t = \"\",t2=\"\";\n while (true) {\n t = sc.next();\n t2 = t.toLowerCase();\n if (w2.equals(t2)) count++;\n else if (t.equals(\"END_OF_TEXT\")) break;\n }\n System.out.println(count);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int count = 0; String w = sc.next(); String w2 = w.toLowerCase(); String t = "",t2=""; while (true) { t = sc.next(); t2 = t.toLowerCase(); if (w2.equals(t2)) count++; else if (t.equals("END_OF_TEXT")) break; } 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, 0, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 42, 2, 13, 17, 30, 40, 13, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 0, 13, 17, 3, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 18, 13, 13, 13, 30, 40, 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 ], [ 104, 11 ], [ 104, 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 ], [ 25, 26 ], [ 26, 27 ], [ 14, 28 ], [ 28, 29 ], [ 28, 30 ], [ 14, 31 ], [ 31, 32 ], [ 31, 33 ], [ 14, 34 ], [ 34, 35 ], [ 34, 36 ], [ 14, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 41, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 49, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 41, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 41, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 41, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 77, 79 ], [ 70, 80 ], [ 80, 81 ], [ 81, 82 ], [ 70, 83 ], [ 84, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 85, 92 ], [ 92, 93 ], [ 93, 94 ], [ 14, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 12, 101 ], [ 101, 102 ], [ 0, 103 ], [ 103, 104 ], [ 103, 105 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\npublic class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString w=br.readLine();\n\t\tw=w.toLowerCase();\n\t\tint cnt=0;\n\t\tint sw=0;\n\t\tint ln=0;\n\t\twhile(sw==0){\n\t\t\tln++;\n\t\t\tString str=br.readLine();\n\t\t\tif(str.equals(\"END_OF_TEXT\")){ sw=1;break;}\n\t\t\tstr=str.toLowerCase();\n\t\t\tString[] t=str.split(\" \");\n\t\t\tfor(int i=0;i<t.length;i++){\n\t\t\t\tif(t[i].equals(w))\t{cnt++;}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t\t\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString w=br.readLine();\n\t\tw=w.toLowerCase();\n\t\tint cnt=0;\n\t\tint sw=0;\n\t\tint ln=0;\n\t\twhile(sw==0){\n\t\t\tln++;\n\t\t\tString str=br.readLine();\n\t\t\tif(str.equals(\"END_OF_TEXT\")){ sw=1;break;}\n\t\t\tstr=str.toLowerCase();\n\t\t\tString[] t=str.split(\" \");\n\t\t\tfor(int i=0;i<t.length;i++){\n\t\t\t\tif(t[i].equals(w))\t{cnt++;}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t\t\n\t}\n\n}", "Main", "public static void main(String[] args) throws IOException{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString w=br.readLine();\n\t\tw=w.toLowerCase();\n\t\tint cnt=0;\n\t\tint sw=0;\n\t\tint ln=0;\n\t\twhile(sw==0){\n\t\t\tln++;\n\t\t\tString str=br.readLine();\n\t\t\tif(str.equals(\"END_OF_TEXT\")){ sw=1;break;}\n\t\t\tstr=str.toLowerCase();\n\t\t\tString[] t=str.split(\" \");\n\t\t\tfor(int i=0;i<t.length;i++){\n\t\t\t\tif(t[i].equals(w))\t{cnt++;}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t\t\n\t}", "main", "{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString w=br.readLine();\n\t\tw=w.toLowerCase();\n\t\tint cnt=0;\n\t\tint sw=0;\n\t\tint ln=0;\n\t\twhile(sw==0){\n\t\t\tln++;\n\t\t\tString str=br.readLine();\n\t\t\tif(str.equals(\"END_OF_TEXT\")){ sw=1;break;}\n\t\t\tstr=str.toLowerCase();\n\t\t\tString[] t=str.split(\" \");\n\t\t\tfor(int i=0;i<t.length;i++){\n\t\t\t\tif(t[i].equals(w))\t{cnt++;}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t\t\n\t}", "BufferedReader br=new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String w=br.readLine();", "w", "br.readLine()", "br.readLine", "br", "w=w.toLowerCase()", "w", "w.toLowerCase()", "w.toLowerCase", "w", "int cnt=0;", "cnt", "0", "int sw=0;", "sw", "0", "int ln=0;", "ln", "0", "while(sw==0){\n\t\t\tln++;\n\t\t\tString str=br.readLine();\n\t\t\tif(str.equals(\"END_OF_TEXT\")){ sw=1;break;}\n\t\t\tstr=str.toLowerCase();\n\t\t\tString[] t=str.split(\" \");\n\t\t\tfor(int i=0;i<t.length;i++){\n\t\t\t\tif(t[i].equals(w))\t{cnt++;}\n\t\t\t}\n\t\t}", "sw==0", "sw", "0", "{\n\t\t\tln++;\n\t\t\tString str=br.readLine();\n\t\t\tif(str.equals(\"END_OF_TEXT\")){ sw=1;break;}\n\t\t\tstr=str.toLowerCase();\n\t\t\tString[] t=str.split(\" \");\n\t\t\tfor(int i=0;i<t.length;i++){\n\t\t\t\tif(t[i].equals(w))\t{cnt++;}\n\t\t\t}\n\t\t}", "ln++", "ln", "String str=br.readLine();", "str", "br.readLine()", "br.readLine", "br", "if(str.equals(\"END_OF_TEXT\")){ sw=1;break;}", "str.equals(\"END_OF_TEXT\")", "str.equals", "str", "\"END_OF_TEXT\"", "{ sw=1;break;}", "sw=1", "sw", "1", "break;", "str=str.toLowerCase()", "str", "str.toLowerCase()", "str.toLowerCase", "str", "String[] t=str.split(\" \");", "t", "str.split(\" \")", "str.split", "str", "\" \"", "for(int i=0;i<t.length;i++){\n\t\t\t\tif(t[i].equals(w))\t{cnt++;}\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<t.length", "i", "t.length", "t", "t.length", "i++", "i++", "i", "{\n\t\t\t\tif(t[i].equals(w))\t{cnt++;}\n\t\t\t}", "{\n\t\t\t\tif(t[i].equals(w))\t{cnt++;}\n\t\t\t}", "if(t[i].equals(w))\t{cnt++;}", "t[i].equals(w)", "t[i].equals", "t[i]", "t", "i", "w", "{cnt++;}", "cnt++", "cnt", "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) throws IOException{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString w=br.readLine();\n\t\tw=w.toLowerCase();\n\t\tint cnt=0;\n\t\tint sw=0;\n\t\tint ln=0;\n\t\twhile(sw==0){\n\t\t\tln++;\n\t\t\tString str=br.readLine();\n\t\t\tif(str.equals(\"END_OF_TEXT\")){ sw=1;break;}\n\t\t\tstr=str.toLowerCase();\n\t\t\tString[] t=str.split(\" \");\n\t\t\tfor(int i=0;i<t.length;i++){\n\t\t\t\tif(t[i].equals(w))\t{cnt++;}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t\t\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString w=br.readLine();\n\t\tw=w.toLowerCase();\n\t\tint cnt=0;\n\t\tint sw=0;\n\t\tint ln=0;\n\t\twhile(sw==0){\n\t\t\tln++;\n\t\t\tString str=br.readLine();\n\t\t\tif(str.equals(\"END_OF_TEXT\")){ sw=1;break;}\n\t\t\tstr=str.toLowerCase();\n\t\t\tString[] t=str.split(\" \");\n\t\t\tfor(int i=0;i<t.length;i++){\n\t\t\t\tif(t[i].equals(w))\t{cnt++;}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t\t\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException{ BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); String w=br.readLine(); w=w.toLowerCase(); int cnt=0; int sw=0; int ln=0; while(sw==0){ ln++; String str=br.readLine(); if(str.equals("END_OF_TEXT")){ sw=1;break;} str=str.toLowerCase(); String[] t=str.split(" "); for(int i=0;i<t.length;i++){ if(t[i].equals(w)) {cnt++;} } } System.out.println(cnt); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 41, 13, 41, 13, 20, 38, 5, 13, 30, 30, 41, 13, 4, 18, 13, 0, 13, 13, 42, 17, 30, 0, 13, 4, 18, 13, 28, 13, 4, 18, 13, 17, 30, 30, 14, 4, 18, 13, 13, 40, 13, 14, 4, 18, 13, 17, 0, 13, 17, 14, 2, 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 ], [ 81, 8 ], [ 81, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 11, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 27, 33 ], [ 33, 34 ], [ 33, 35 ], [ 27, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 38, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 44, 50 ], [ 51, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 52, 57 ], [ 57, 58 ], [ 51, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 59, 64 ], [ 64, 65 ], [ 64, 66 ], [ 38, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 11, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 9, 78 ], [ 78, 79 ], [ 0, 80 ], [ 80, 81 ], [ 80, 82 ] ]
[ "import java.io.*;\nimport java.util.ArrayList;\npublic class Main{\n\tpublic static void main(String args[]){\n int a=0,end = 0;\n String ans;\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try{\n String line = reader.readLine();\n ans = line;\n \n while (true) {\n line = reader.readLine();\n for(String splitted: line.split(\" \")){\n if (ans.equalsIgnoreCase(splitted)) a++;\n if (splitted.equals(\"END_OF_TEXT\")) end = 1;\n }\n if(end == 1) break;\n }\n \n\t\t}catch(Exception e){\n }\n System.out.println(a);\n\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.ArrayList;", "ArrayList", "java.util", "public class Main{\n\tpublic static void main(String args[]){\n int a=0,end = 0;\n String ans;\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try{\n String line = reader.readLine();\n ans = line;\n \n while (true) {\n line = reader.readLine();\n for(String splitted: line.split(\" \")){\n if (ans.equalsIgnoreCase(splitted)) a++;\n if (splitted.equals(\"END_OF_TEXT\")) end = 1;\n }\n if(end == 1) break;\n }\n \n\t\t}catch(Exception e){\n }\n System.out.println(a);\n\n }\n}", "Main", "public static void main(String args[]){\n int a=0,end = 0;\n String ans;\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try{\n String line = reader.readLine();\n ans = line;\n \n while (true) {\n line = reader.readLine();\n for(String splitted: line.split(\" \")){\n if (ans.equalsIgnoreCase(splitted)) a++;\n if (splitted.equals(\"END_OF_TEXT\")) end = 1;\n }\n if(end == 1) break;\n }\n \n\t\t}catch(Exception e){\n }\n System.out.println(a);\n\n }", "main", "{\n int a=0,end = 0;\n String ans;\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try{\n String line = reader.readLine();\n ans = line;\n \n while (true) {\n line = reader.readLine();\n for(String splitted: line.split(\" \")){\n if (ans.equalsIgnoreCase(splitted)) a++;\n if (splitted.equals(\"END_OF_TEXT\")) end = 1;\n }\n if(end == 1) break;\n }\n \n\t\t}catch(Exception e){\n }\n System.out.println(a);\n\n }", "int a=0", "a", "0", "end = 0;", "end", "0", "String ans;", "ans", "BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));", "reader", "new BufferedReader(new InputStreamReader(System.in))", "try{\n String line = reader.readLine();\n ans = line;\n \n while (true) {\n line = reader.readLine();\n for(String splitted: line.split(\" \")){\n if (ans.equalsIgnoreCase(splitted)) a++;\n if (splitted.equals(\"END_OF_TEXT\")) end = 1;\n }\n if(end == 1) break;\n }\n \n\t\t}catch(Exception e){\n }", "catch(Exception e){\n }", "Exception e", "{\n }", "{\n String line = reader.readLine();\n ans = line;\n \n while (true) {\n line = reader.readLine();\n for(String splitted: line.split(\" \")){\n if (ans.equalsIgnoreCase(splitted)) a++;\n if (splitted.equals(\"END_OF_TEXT\")) end = 1;\n }\n if(end == 1) break;\n }\n \n\t\t}", "String line = reader.readLine();", "line", "reader.readLine()", "reader.readLine", "reader", "ans = line", "ans", "line", "while (true) {\n line = reader.readLine();\n for(String splitted: line.split(\" \")){\n if (ans.equalsIgnoreCase(splitted)) a++;\n if (splitted.equals(\"END_OF_TEXT\")) end = 1;\n }\n if(end == 1) break;\n }", "true", "{\n line = reader.readLine();\n for(String splitted: line.split(\" \")){\n if (ans.equalsIgnoreCase(splitted)) a++;\n if (splitted.equals(\"END_OF_TEXT\")) end = 1;\n }\n if(end == 1) break;\n }", "line = reader.readLine()", "line", "reader.readLine()", "reader.readLine", "reader", "for(String splitted: line.split(\" \")){\n if (ans.equalsIgnoreCase(splitted)) a++;\n if (splitted.equals(\"END_OF_TEXT\")) end = 1;\n }", "String splitted", "line.split(\" \")", "line.split", "line", "\" \"", "{\n if (ans.equalsIgnoreCase(splitted)) a++;\n if (splitted.equals(\"END_OF_TEXT\")) end = 1;\n }", "{\n if (ans.equalsIgnoreCase(splitted)) a++;\n if (splitted.equals(\"END_OF_TEXT\")) end = 1;\n }", "if (ans.equalsIgnoreCase(splitted)) a++;", "ans.equalsIgnoreCase(splitted)", "ans.equalsIgnoreCase", "ans", "splitted", "a++", "a", "if (splitted.equals(\"END_OF_TEXT\")) end = 1;", "splitted.equals(\"END_OF_TEXT\")", "splitted.equals", "splitted", "\"END_OF_TEXT\"", "end = 1", "end", "1", "if(end == 1) break;", "end == 1", "end", "1", "break;", "System.out.println(a)", "System.out.println", "System.out", "System", "System.out", "a", "String args[]", "args", "public class Main{\n\tpublic static void main(String args[]){\n int a=0,end = 0;\n String ans;\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try{\n String line = reader.readLine();\n ans = line;\n \n while (true) {\n line = reader.readLine();\n for(String splitted: line.split(\" \")){\n if (ans.equalsIgnoreCase(splitted)) a++;\n if (splitted.equals(\"END_OF_TEXT\")) end = 1;\n }\n if(end == 1) break;\n }\n \n\t\t}catch(Exception e){\n }\n System.out.println(a);\n\n }\n}", "public class Main{\n\tpublic static void main(String args[]){\n int a=0,end = 0;\n String ans;\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try{\n String line = reader.readLine();\n ans = line;\n \n while (true) {\n line = reader.readLine();\n for(String splitted: line.split(\" \")){\n if (ans.equalsIgnoreCase(splitted)) a++;\n if (splitted.equals(\"END_OF_TEXT\")) end = 1;\n }\n if(end == 1) break;\n }\n \n\t\t}catch(Exception e){\n }\n System.out.println(a);\n\n }\n}", "Main" ]
import java.io.*; import java.util.ArrayList; public class Main{ public static void main(String args[]){ int a=0,end = 0; String ans; BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); try{ String line = reader.readLine(); ans = line; while (true) { line = reader.readLine(); for(String splitted: line.split(" ")){ if (ans.equalsIgnoreCase(splitted)) a++; if (splitted.equals("END_OF_TEXT")) end = 1; } if(end == 1) break; } }catch(Exception e){ } System.out.println(a); } }
[ 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, 42, 4, 18, 13, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 14, 4, 18, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 61, 5 ], [ 61, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 25, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 29, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 35, 40 ], [ 40, 41 ], [ 29, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 43, 48 ], [ 42, 49 ], [ 49, 50 ], [ 50, 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/**\n * Finding a Word\n */\npublic class Main {\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n String keyword = scan.next().toLowerCase();\n String str = null;\n int match = 0;\n while (scan.hasNext()) {\n str = scan.next();\n if (str.matches(\"END_OF_TEXT\")) {\n break;\n }\n if (str.toLowerCase().matches(keyword)) {\n match ++ ;\n }\n }\n System.out.println(match);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n String keyword = scan.next().toLowerCase();\n String str = null;\n int match = 0;\n while (scan.hasNext()) {\n str = scan.next();\n if (str.matches(\"END_OF_TEXT\")) {\n break;\n }\n if (str.toLowerCase().matches(keyword)) {\n match ++ ;\n }\n }\n System.out.println(match);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n String keyword = scan.next().toLowerCase();\n String str = null;\n int match = 0;\n while (scan.hasNext()) {\n str = scan.next();\n if (str.matches(\"END_OF_TEXT\")) {\n break;\n }\n if (str.toLowerCase().matches(keyword)) {\n match ++ ;\n }\n }\n System.out.println(match);\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n\n String keyword = scan.next().toLowerCase();\n String str = null;\n int match = 0;\n while (scan.hasNext()) {\n str = scan.next();\n if (str.matches(\"END_OF_TEXT\")) {\n break;\n }\n if (str.toLowerCase().matches(keyword)) {\n match ++ ;\n }\n }\n System.out.println(match);\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String keyword = scan.next().toLowerCase();", "keyword", "scan.next().toLowerCase()", "scan.next().toLowerCase", "scan.next()", "scan.next", "scan", "String str = null;", "str", "null", "int match = 0;", "match", "0", "while (scan.hasNext()) {\n str = scan.next();\n if (str.matches(\"END_OF_TEXT\")) {\n break;\n }\n if (str.toLowerCase().matches(keyword)) {\n match ++ ;\n }\n }", "scan.hasNext()", "scan.hasNext", "scan", "{\n str = scan.next();\n if (str.matches(\"END_OF_TEXT\")) {\n break;\n }\n if (str.toLowerCase().matches(keyword)) {\n match ++ ;\n }\n }", "str = scan.next()", "str", "scan.next()", "scan.next", "scan", "if (str.matches(\"END_OF_TEXT\")) {\n break;\n }", "str.matches(\"END_OF_TEXT\")", "str.matches", "str", "\"END_OF_TEXT\"", "{\n break;\n }", "break;", "if (str.toLowerCase().matches(keyword)) {\n match ++ ;\n }", "str.toLowerCase().matches(keyword)", "str.toLowerCase().matches", "str.toLowerCase()", "str.toLowerCase", "str", "keyword", "{\n match ++ ;\n }", "match ++", "match", "System.out.println(match)", "System.out.println", "System.out", "System", "System.out", "match", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n String keyword = scan.next().toLowerCase();\n String str = null;\n int match = 0;\n while (scan.hasNext()) {\n str = scan.next();\n if (str.matches(\"END_OF_TEXT\")) {\n break;\n }\n if (str.toLowerCase().matches(keyword)) {\n match ++ ;\n }\n }\n System.out.println(match);\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n String keyword = scan.next().toLowerCase();\n String str = null;\n int match = 0;\n while (scan.hasNext()) {\n str = scan.next();\n if (str.matches(\"END_OF_TEXT\")) {\n break;\n }\n if (str.toLowerCase().matches(keyword)) {\n match ++ ;\n }\n }\n System.out.println(match);\n }\n}", "Main" ]
import java.util.Scanner; /** * Finding a Word */ public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String keyword = scan.next().toLowerCase(); String str = null; int match = 0; while (scan.hasNext()) { str = scan.next(); if (str.matches("END_OF_TEXT")) { break; } if (str.toLowerCase().matches(keyword)) { match ++ ; } } System.out.println(match); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 12, 13, 30, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 14, 4, 18, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 50, 5 ], [ 50, 6 ], [ 6, 7 ], [ 6, 8 ], [ 50, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 50, 14 ], [ 14, 15 ], [ 14, 16 ], [ 50, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 22, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 34, 39 ], [ 39, 40 ], [ 19, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 17, 47 ], [ 47, 48 ], [ 0, 49 ], [ 49, 50 ], [ 49, 51 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tprivate static Scanner sc=new Scanner(System.in);\n\tprivate static String word=sc.next();\n\tprivate static int counter=0;\n\tpublic static void main (String[] args){\n\t\twhile(true){\n\t\t\tString w=sc.next();\n\t\t\tif(w.equals(\"END_OF_TEXT\")) break;\n\t\t\tif(w.equalsIgnoreCase(word)) counter++;\n\t\t}\n\t\tSystem.out.println(counter);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tprivate static Scanner sc=new Scanner(System.in);\n\tprivate static String word=sc.next();\n\tprivate static int counter=0;\n\tpublic static void main (String[] args){\n\t\twhile(true){\n\t\t\tString w=sc.next();\n\t\t\tif(w.equals(\"END_OF_TEXT\")) break;\n\t\t\tif(w.equalsIgnoreCase(word)) counter++;\n\t\t}\n\t\tSystem.out.println(counter);\n\t}\n}", "Main", "private static Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "private static String word=sc.next();", "word", "sc.next()", "sc.next", "sc", "private static int counter=0;", "counter", "0", "public static void main (String[] args){\n\t\twhile(true){\n\t\t\tString w=sc.next();\n\t\t\tif(w.equals(\"END_OF_TEXT\")) break;\n\t\t\tif(w.equalsIgnoreCase(word)) counter++;\n\t\t}\n\t\tSystem.out.println(counter);\n\t}", "main", "{\n\t\twhile(true){\n\t\t\tString w=sc.next();\n\t\t\tif(w.equals(\"END_OF_TEXT\")) break;\n\t\t\tif(w.equalsIgnoreCase(word)) counter++;\n\t\t}\n\t\tSystem.out.println(counter);\n\t}", "while(true){\n\t\t\tString w=sc.next();\n\t\t\tif(w.equals(\"END_OF_TEXT\")) break;\n\t\t\tif(w.equalsIgnoreCase(word)) counter++;\n\t\t}", "true", "{\n\t\t\tString w=sc.next();\n\t\t\tif(w.equals(\"END_OF_TEXT\")) break;\n\t\t\tif(w.equalsIgnoreCase(word)) counter++;\n\t\t}", "String w=sc.next();", "w", "sc.next()", "sc.next", "sc", "if(w.equals(\"END_OF_TEXT\")) break;", "w.equals(\"END_OF_TEXT\")", "w.equals", "w", "\"END_OF_TEXT\"", "break;", "if(w.equalsIgnoreCase(word)) counter++;", "w.equalsIgnoreCase(word)", "w.equalsIgnoreCase", "w", "word", "counter++", "counter", "System.out.println(counter)", "System.out.println", "System.out", "System", "System.out", "counter", "String[] args", "args", "public class Main {\n\tprivate static Scanner sc=new Scanner(System.in);\n\tprivate static String word=sc.next();\n\tprivate static int counter=0;\n\tpublic static void main (String[] args){\n\t\twhile(true){\n\t\t\tString w=sc.next();\n\t\t\tif(w.equals(\"END_OF_TEXT\")) break;\n\t\t\tif(w.equalsIgnoreCase(word)) counter++;\n\t\t}\n\t\tSystem.out.println(counter);\n\t}\n}", "public class Main {\n\tprivate static Scanner sc=new Scanner(System.in);\n\tprivate static String word=sc.next();\n\tprivate static int counter=0;\n\tpublic static void main (String[] args){\n\t\twhile(true){\n\t\t\tString w=sc.next();\n\t\t\tif(w.equals(\"END_OF_TEXT\")) break;\n\t\t\tif(w.equalsIgnoreCase(word)) counter++;\n\t\t}\n\t\tSystem.out.println(counter);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { private static Scanner sc=new Scanner(System.in); private static String word=sc.next(); private static int counter=0; public static void main (String[] args){ while(true){ String w=sc.next(); if(w.equals("END_OF_TEXT")) break; if(w.equalsIgnoreCase(word)) counter++; } System.out.println(counter); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 41, 13, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 4, 18, 13, 2, 13, 17, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 4, 18, 18, 13, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 94, 5 ], [ 94, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 8, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 29, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 35, 40 ], [ 29, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 44, 45 ], [ 44, 46 ], [ 8, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 49, 54 ], [ 8, 55 ], [ 55, 56 ], [ 55, 57 ], [ 8, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 58, 68 ], [ 68, 69 ], [ 69, 70 ], [ 58, 71 ], [ 72, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 74, 81 ], [ 73, 82 ], [ 82, 83 ], [ 83, 84 ], [ 8, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 6, 91 ], [ 91, 92 ], [ 0, 93 ], [ 93, 94 ], [ 93, 95 ] ]
[ "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\tStringBuilder sb = new StringBuilder();\n\n\t\tString w = scan.next();\n\t\tw = w.toLowerCase();\n\t\tString ti;\n\t\twhile (true) {\n\t\t\tti = scan.next();\n\t\t\tif ( ti.equals(\"END_OF_TEXT\") ) break;\n\t\t\tsb.append(ti + \" \");\n\t\t}\n\t\tString[] stary = sb.toString().split(\" \");\n\t\tint count = 0;\n\t\tfor (int i = 0; i < stary.length; i++) {\n\t\t\tif (stary[i].toLowerCase().equals(w)) {\n\t\t\t\tcount++;\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\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tString w = scan.next();\n\t\tw = w.toLowerCase();\n\t\tString ti;\n\t\twhile (true) {\n\t\t\tti = scan.next();\n\t\t\tif ( ti.equals(\"END_OF_TEXT\") ) break;\n\t\t\tsb.append(ti + \" \");\n\t\t}\n\t\tString[] stary = sb.toString().split(\" \");\n\t\tint count = 0;\n\t\tfor (int i = 0; i < stary.length; i++) {\n\t\t\tif (stary[i].toLowerCase().equals(w)) {\n\t\t\t\tcount++;\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\t// TODO ?????????????????????????????????????????????\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tString w = scan.next();\n\t\tw = w.toLowerCase();\n\t\tString ti;\n\t\twhile (true) {\n\t\t\tti = scan.next();\n\t\t\tif ( ti.equals(\"END_OF_TEXT\") ) break;\n\t\t\tsb.append(ti + \" \");\n\t\t}\n\t\tString[] stary = sb.toString().split(\" \");\n\t\tint count = 0;\n\t\tfor (int i = 0; i < stary.length; i++) {\n\t\t\tif (stary[i].toLowerCase().equals(w)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "main", "{\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tString w = scan.next();\n\t\tw = w.toLowerCase();\n\t\tString ti;\n\t\twhile (true) {\n\t\t\tti = scan.next();\n\t\t\tif ( ti.equals(\"END_OF_TEXT\") ) break;\n\t\t\tsb.append(ti + \" \");\n\t\t}\n\t\tString[] stary = sb.toString().split(\" \");\n\t\tint count = 0;\n\t\tfor (int i = 0; i < stary.length; i++) {\n\t\t\tif (stary[i].toLowerCase().equals(w)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "String w = scan.next();", "w", "scan.next()", "scan.next", "scan", "w = w.toLowerCase()", "w", "w.toLowerCase()", "w.toLowerCase", "w", "String ti;", "ti", "while (true) {\n\t\t\tti = scan.next();\n\t\t\tif ( ti.equals(\"END_OF_TEXT\") ) break;\n\t\t\tsb.append(ti + \" \");\n\t\t}", "true", "{\n\t\t\tti = scan.next();\n\t\t\tif ( ti.equals(\"END_OF_TEXT\") ) break;\n\t\t\tsb.append(ti + \" \");\n\t\t}", "ti = scan.next()", "ti", "scan.next()", "scan.next", "scan", "if ( ti.equals(\"END_OF_TEXT\") ) break;", "ti.equals(\"END_OF_TEXT\")", "ti.equals", "ti", "\"END_OF_TEXT\"", "break;", "sb.append(ti + \" \")", "sb.append", "sb", "ti + \" \"", "ti", "\" \"", "String[] stary = sb.toString().split(\" \");", "stary", "sb.toString().split(\" \")", "sb.toString().split", "sb.toString()", "sb.toString", "sb", "\" \"", "int count = 0;", "count", "0", "for (int i = 0; i < stary.length; i++) {\n\t\t\tif (stary[i].toLowerCase().equals(w)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < stary.length", "i", "stary.length", "stary", "stary.length", "i++", "i++", "i", "{\n\t\t\tif (stary[i].toLowerCase().equals(w)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "{\n\t\t\tif (stary[i].toLowerCase().equals(w)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "if (stary[i].toLowerCase().equals(w)) {\n\t\t\t\tcount++;\n\t\t\t}", "stary[i].toLowerCase().equals(w)", "stary[i].toLowerCase().equals", "stary[i].toLowerCase()", "stary[i].toLowerCase", "stary[i]", "stary", "i", "w", "{\n\t\t\t\tcount++;\n\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\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tString w = scan.next();\n\t\tw = w.toLowerCase();\n\t\tString ti;\n\t\twhile (true) {\n\t\t\tti = scan.next();\n\t\t\tif ( ti.equals(\"END_OF_TEXT\") ) break;\n\t\t\tsb.append(ti + \" \");\n\t\t}\n\t\tString[] stary = sb.toString().split(\" \");\n\t\tint count = 0;\n\t\tfor (int i = 0; i < stary.length; i++) {\n\t\t\tif (stary[i].toLowerCase().equals(w)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\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\tStringBuilder sb = new StringBuilder();\n\n\t\tString w = scan.next();\n\t\tw = w.toLowerCase();\n\t\tString ti;\n\t\twhile (true) {\n\t\t\tti = scan.next();\n\t\t\tif ( ti.equals(\"END_OF_TEXT\") ) break;\n\t\t\tsb.append(ti + \" \");\n\t\t}\n\t\tString[] stary = sb.toString().split(\" \");\n\t\tint count = 0;\n\t\tfor (int i = 0; i < stary.length; i++) {\n\t\t\tif (stary[i].toLowerCase().equals(w)) {\n\t\t\t\tcount++;\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) { // TODO ????????????????????????????????????????????? Scanner scan = new Scanner(System.in); StringBuilder sb = new StringBuilder(); String w = scan.next(); w = w.toLowerCase(); String ti; while (true) { ti = scan.next(); if ( ti.equals("END_OF_TEXT") ) break; sb.append(ti + " "); } String[] stary = sb.toString().split(" "); int count = 0; for (int i = 0; i < stary.length; i++) { if (stary[i].toLowerCase().equals(w)) { count++; } } System.out.println(count); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 17, 13, 30, 3, 14, 4, 18, 13, 13, 30, 40, 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 ], [ 55, 8 ], [ 55, 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 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 25, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 31, 36 ], [ 36, 37 ], [ 31, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 38, 43 ], [ 43, 44 ], [ 44, 45 ], [ 11, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 46, 51 ], [ 9, 52 ], [ 52, 53 ], [ 0, 54 ], [ 54, 55 ], [ 54, 56 ] ]
[ "\n\nimport java.io.IOException;\nimport java.util.Scanner;\n\npublic class Main{\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t/*\n\t\t * ?????? ???.length < 10 ?????? ??´.length < 1000\n\t\t *\n\t\t * T.contains \" \" or Enter Ti\n\t\t *\n\t\t * All Ti -> T.contains cnt?\n\t\t *\n\t\t * Example) input- W : computer\n\t\t *\n\t\t * T1: Nurtures computer scientists and highly-skilled computerengineers\n\t\t * T2: who will create and exploit \"knowledge\" for the newera.\n\t\t * T3: Provides an outstanding computer environment.\n\t\t * T4: END_OF_TEXT if(t4.equl(\"END_OF_TEXT\"))break;\n\t\t *\n\t\t * output- 3\n\t\t */\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// sample input\n\t\tfinal String infoW = sc.next();\n\t\t// Count variable declear\n\t\tint cnt = 0;\n\t\t// while section\n\n\t\twhile (true) {\n\t\t\tfinal String strT = sc.next();\n\t\t\t// break condition\n\t\t\tif (\"END_OF_TEXT\".equals(strT)) {\n\t\t\t\tbreak;\n\t\t\t\t// equlas() ?°?????????¨??§??????????????\\\n\t\t\t\t// equalsignorecase() ?°?????????¨??§??????????????\\?????????\n\t\t\t\t// ????????????????????????????????????\n\t\t\t} else if (infoW.equalsIgnoreCase(strT)) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\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\t/*\n\t\t * ?????? ???.length < 10 ?????? ??´.length < 1000\n\t\t *\n\t\t * T.contains \" \" or Enter Ti\n\t\t *\n\t\t * All Ti -> T.contains cnt?\n\t\t *\n\t\t * Example) input- W : computer\n\t\t *\n\t\t * T1: Nurtures computer scientists and highly-skilled computerengineers\n\t\t * T2: who will create and exploit \"knowledge\" for the newera.\n\t\t * T3: Provides an outstanding computer environment.\n\t\t * T4: END_OF_TEXT if(t4.equl(\"END_OF_TEXT\"))break;\n\t\t *\n\t\t * output- 3\n\t\t */\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// sample input\n\t\tfinal String infoW = sc.next();\n\t\t// Count variable declear\n\t\tint cnt = 0;\n\t\t// while section\n\n\t\twhile (true) {\n\t\t\tfinal String strT = sc.next();\n\t\t\t// break condition\n\t\t\tif (\"END_OF_TEXT\".equals(strT)) {\n\t\t\t\tbreak;\n\t\t\t\t// equlas() ?°?????????¨??§??????????????\\\n\t\t\t\t// equalsignorecase() ?°?????????¨??§??????????????\\?????????\n\t\t\t\t// ????????????????????????????????????\n\t\t\t} else if (infoW.equalsIgnoreCase(strT)) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\t/*\n\t\t * ?????? ???.length < 10 ?????? ??´.length < 1000\n\t\t *\n\t\t * T.contains \" \" or Enter Ti\n\t\t *\n\t\t * All Ti -> T.contains cnt?\n\t\t *\n\t\t * Example) input- W : computer\n\t\t *\n\t\t * T1: Nurtures computer scientists and highly-skilled computerengineers\n\t\t * T2: who will create and exploit \"knowledge\" for the newera.\n\t\t * T3: Provides an outstanding computer environment.\n\t\t * T4: END_OF_TEXT if(t4.equl(\"END_OF_TEXT\"))break;\n\t\t *\n\t\t * output- 3\n\t\t */\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// sample input\n\t\tfinal String infoW = sc.next();\n\t\t// Count variable declear\n\t\tint cnt = 0;\n\t\t// while section\n\n\t\twhile (true) {\n\t\t\tfinal String strT = sc.next();\n\t\t\t// break condition\n\t\t\tif (\"END_OF_TEXT\".equals(strT)) {\n\t\t\t\tbreak;\n\t\t\t\t// equlas() ?°?????????¨??§??????????????\\\n\t\t\t\t// equalsignorecase() ?°?????????¨??§??????????????\\?????????\n\t\t\t\t// ????????????????????????????????????\n\t\t\t} else if (infoW.equalsIgnoreCase(strT)) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}", "main", "{\n\t\t/*\n\t\t * ?????? ???.length < 10 ?????? ??´.length < 1000\n\t\t *\n\t\t * T.contains \" \" or Enter Ti\n\t\t *\n\t\t * All Ti -> T.contains cnt?\n\t\t *\n\t\t * Example) input- W : computer\n\t\t *\n\t\t * T1: Nurtures computer scientists and highly-skilled computerengineers\n\t\t * T2: who will create and exploit \"knowledge\" for the newera.\n\t\t * T3: Provides an outstanding computer environment.\n\t\t * T4: END_OF_TEXT if(t4.equl(\"END_OF_TEXT\"))break;\n\t\t *\n\t\t * output- 3\n\t\t */\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// sample input\n\t\tfinal String infoW = sc.next();\n\t\t// Count variable declear\n\t\tint cnt = 0;\n\t\t// while section\n\n\t\twhile (true) {\n\t\t\tfinal String strT = sc.next();\n\t\t\t// break condition\n\t\t\tif (\"END_OF_TEXT\".equals(strT)) {\n\t\t\t\tbreak;\n\t\t\t\t// equlas() ?°?????????¨??§??????????????\\\n\t\t\t\t// equalsignorecase() ?°?????????¨??§??????????????\\?????????\n\t\t\t\t// ????????????????????????????????????\n\t\t\t} else if (infoW.equalsIgnoreCase(strT)) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "final String infoW = sc.next();", "infoW", "sc.next()", "sc.next", "sc", "int cnt = 0;", "cnt", "0", "while (true) {\n\t\t\tfinal String strT = sc.next();\n\t\t\t// break condition\n\t\t\tif (\"END_OF_TEXT\".equals(strT)) {\n\t\t\t\tbreak;\n\t\t\t\t// equlas() ?°?????????¨??§??????????????\\\n\t\t\t\t// equalsignorecase() ?°?????????¨??§??????????????\\?????????\n\t\t\t\t// ????????????????????????????????????\n\t\t\t} else if (infoW.equalsIgnoreCase(strT)) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tfinal String strT = sc.next();\n\t\t\t// break condition\n\t\t\tif (\"END_OF_TEXT\".equals(strT)) {\n\t\t\t\tbreak;\n\t\t\t\t// equlas() ?°?????????¨??§??????????????\\\n\t\t\t\t// equalsignorecase() ?°?????????¨??§??????????????\\?????????\n\t\t\t\t// ????????????????????????????????????\n\t\t\t} else if (infoW.equalsIgnoreCase(strT)) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}", "final String strT = sc.next();", "strT", "sc.next()", "sc.next", "sc", "if (\"END_OF_TEXT\".equals(strT)) {\n\t\t\t\tbreak;\n\t\t\t\t// equlas() ?°?????????¨??§??????????????\\\n\t\t\t\t// equalsignorecase() ?°?????????¨??§??????????????\\?????????\n\t\t\t\t// ????????????????????????????????????\n\t\t\t} else if (infoW.equalsIgnoreCase(strT)) {\n\t\t\t\tcnt++;\n\t\t\t}", "\"END_OF_TEXT\".equals(strT)", "\"END_OF_TEXT\".equals", "\"END_OF_TEXT\"", "strT", "{\n\t\t\t\tbreak;\n\t\t\t\t// equlas() ?°?????????¨??§??????????????\\\n\t\t\t\t// equalsignorecase() ?°?????????¨??§??????????????\\?????????\n\t\t\t\t// ????????????????????????????????????\n\t\t\t}", "break;", "if (infoW.equalsIgnoreCase(strT)) {\n\t\t\t\tcnt++;\n\t\t\t}", "infoW.equalsIgnoreCase(strT)", "infoW.equalsIgnoreCase", "infoW", "strT", "{\n\t\t\t\tcnt++;\n\t\t\t}", "cnt++", "cnt", "System.out.println(cnt)", "System.out.println", "System.out", "System", "System.out", "cnt", "String[] args", "args", "public class Main{\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t/*\n\t\t * ?????? ???.length < 10 ?????? ??´.length < 1000\n\t\t *\n\t\t * T.contains \" \" or Enter Ti\n\t\t *\n\t\t * All Ti -> T.contains cnt?\n\t\t *\n\t\t * Example) input- W : computer\n\t\t *\n\t\t * T1: Nurtures computer scientists and highly-skilled computerengineers\n\t\t * T2: who will create and exploit \"knowledge\" for the newera.\n\t\t * T3: Provides an outstanding computer environment.\n\t\t * T4: END_OF_TEXT if(t4.equl(\"END_OF_TEXT\"))break;\n\t\t *\n\t\t * output- 3\n\t\t */\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// sample input\n\t\tfinal String infoW = sc.next();\n\t\t// Count variable declear\n\t\tint cnt = 0;\n\t\t// while section\n\n\t\twhile (true) {\n\t\t\tfinal String strT = sc.next();\n\t\t\t// break condition\n\t\t\tif (\"END_OF_TEXT\".equals(strT)) {\n\t\t\t\tbreak;\n\t\t\t\t// equlas() ?°?????????¨??§??????????????\\\n\t\t\t\t// equalsignorecase() ?°?????????¨??§??????????????\\?????????\n\t\t\t\t// ????????????????????????????????????\n\t\t\t} else if (infoW.equalsIgnoreCase(strT)) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}", "public class Main{\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t/*\n\t\t * ?????? ???.length < 10 ?????? ??´.length < 1000\n\t\t *\n\t\t * T.contains \" \" or Enter Ti\n\t\t *\n\t\t * All Ti -> T.contains cnt?\n\t\t *\n\t\t * Example) input- W : computer\n\t\t *\n\t\t * T1: Nurtures computer scientists and highly-skilled computerengineers\n\t\t * T2: who will create and exploit \"knowledge\" for the newera.\n\t\t * T3: Provides an outstanding computer environment.\n\t\t * T4: END_OF_TEXT if(t4.equl(\"END_OF_TEXT\"))break;\n\t\t *\n\t\t * output- 3\n\t\t */\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// sample input\n\t\tfinal String infoW = sc.next();\n\t\t// Count variable declear\n\t\tint cnt = 0;\n\t\t// while section\n\n\t\twhile (true) {\n\t\t\tfinal String strT = sc.next();\n\t\t\t// break condition\n\t\t\tif (\"END_OF_TEXT\".equals(strT)) {\n\t\t\t\tbreak;\n\t\t\t\t// equlas() ?°?????????¨??§??????????????\\\n\t\t\t\t// equalsignorecase() ?°?????????¨??§??????????????\\?????????\n\t\t\t\t// ????????????????????????????????????\n\t\t\t} else if (infoW.equalsIgnoreCase(strT)) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}", "Main" ]
import java.io.IOException; import java.util.Scanner; public class Main{ public static void main(String[] args) throws IOException { /* * ?????? ???.length < 10 ?????? ??´.length < 1000 * * T.contains " " or Enter Ti * * All Ti -> T.contains cnt? * * Example) input- W : computer * * T1: Nurtures computer scientists and highly-skilled computerengineers * T2: who will create and exploit "knowledge" for the newera. * T3: Provides an outstanding computer environment. * T4: END_OF_TEXT if(t4.equl("END_OF_TEXT"))break; * * output- 3 */ Scanner sc = new Scanner(System.in); // sample input final String infoW = sc.next(); // Count variable declear int cnt = 0; // while section while (true) { final String strT = sc.next(); // break condition if ("END_OF_TEXT".equals(strT)) { break; // equlas() ?°?????????¨??§??????????????\ // equalsignorecase() ?°?????????¨??§??????????????\????????? // ???????????????????????????????????? } else if (infoW.equalsIgnoreCase(strT)) { cnt++; } } System.out.println(cnt); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 18, 13, 13, 13, 30, 40, 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 ], [ 84, 11 ], [ 84, 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 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 31, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 37, 42 ], [ 42, 43 ], [ 31, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 31, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 50, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 57, 59 ], [ 50, 60 ], [ 60, 61 ], [ 61, 62 ], [ 50, 63 ], [ 64, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 65, 72 ], [ 72, 73 ], [ 73, 74 ], [ 14, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 12, 81 ], [ 81, 82 ], [ 0, 83 ], [ 83, 84 ], [ 83, 85 ] ]
[ "\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString keyword = input.readLine();\n\n\t\tString str_containing_key = \"\";\n\n\t\tint count=0;\n\n\n\n\t\twhile (true) {\n\n\t\t\tstr_containing_key = input.readLine();\n\n\t\t\tif (str_containing_key.equals(\"END_OF_TEXT\")) {\n\n\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\tString []str_array=str_containing_key.split(\" \");\n\n\t\t\tfor(int array_spot=0; array_spot<str_array.length; array_spot++){\n\n\n\t\t\tif(str_array[array_spot].equalsIgnoreCase(keyword)){\n\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println(count);\n\t}\n}//??§???????°?????????????????°????????????????????????????", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString keyword = input.readLine();\n\n\t\tString str_containing_key = \"\";\n\n\t\tint count=0;\n\n\n\n\t\twhile (true) {\n\n\t\t\tstr_containing_key = input.readLine();\n\n\t\t\tif (str_containing_key.equals(\"END_OF_TEXT\")) {\n\n\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\tString []str_array=str_containing_key.split(\" \");\n\n\t\t\tfor(int array_spot=0; array_spot<str_array.length; array_spot++){\n\n\n\t\t\tif(str_array[array_spot].equalsIgnoreCase(keyword)){\n\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println(count);\n\t}\n}//??§???????°?????????????????°????????????????????????????", "Main", "public static void main(String[] args) throws IOException {\n\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString keyword = input.readLine();\n\n\t\tString str_containing_key = \"\";\n\n\t\tint count=0;\n\n\n\n\t\twhile (true) {\n\n\t\t\tstr_containing_key = input.readLine();\n\n\t\t\tif (str_containing_key.equals(\"END_OF_TEXT\")) {\n\n\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\tString []str_array=str_containing_key.split(\" \");\n\n\t\t\tfor(int array_spot=0; array_spot<str_array.length; array_spot++){\n\n\n\t\t\tif(str_array[array_spot].equalsIgnoreCase(keyword)){\n\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println(count);\n\t}", "main", "{\n\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString keyword = input.readLine();\n\n\t\tString str_containing_key = \"\";\n\n\t\tint count=0;\n\n\n\n\t\twhile (true) {\n\n\t\t\tstr_containing_key = input.readLine();\n\n\t\t\tif (str_containing_key.equals(\"END_OF_TEXT\")) {\n\n\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\tString []str_array=str_containing_key.split(\" \");\n\n\t\t\tfor(int array_spot=0; array_spot<str_array.length; array_spot++){\n\n\n\t\t\tif(str_array[array_spot].equalsIgnoreCase(keyword)){\n\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println(count);\n\t}", "BufferedReader input = new BufferedReader(new InputStreamReader(System.in));", "input", "new BufferedReader(new InputStreamReader(System.in))", "String keyword = input.readLine();", "keyword", "input.readLine()", "input.readLine", "input", "String str_containing_key = \"\";", "str_containing_key", "\"\"", "int count=0;", "count", "0", "while (true) {\n\n\t\t\tstr_containing_key = input.readLine();\n\n\t\t\tif (str_containing_key.equals(\"END_OF_TEXT\")) {\n\n\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\tString []str_array=str_containing_key.split(\" \");\n\n\t\t\tfor(int array_spot=0; array_spot<str_array.length; array_spot++){\n\n\n\t\t\tif(str_array[array_spot].equalsIgnoreCase(keyword)){\n\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\t}\n\n\t\t}", "true", "{\n\n\t\t\tstr_containing_key = input.readLine();\n\n\t\t\tif (str_containing_key.equals(\"END_OF_TEXT\")) {\n\n\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\tString []str_array=str_containing_key.split(\" \");\n\n\t\t\tfor(int array_spot=0; array_spot<str_array.length; array_spot++){\n\n\n\t\t\tif(str_array[array_spot].equalsIgnoreCase(keyword)){\n\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\t}\n\n\t\t}", "str_containing_key = input.readLine()", "str_containing_key", "input.readLine()", "input.readLine", "input", "if (str_containing_key.equals(\"END_OF_TEXT\")) {\n\n\t\t\t\tbreak;\n\n\t\t\t}", "str_containing_key.equals(\"END_OF_TEXT\")", "str_containing_key.equals", "str_containing_key", "\"END_OF_TEXT\"", "{\n\n\t\t\t\tbreak;\n\n\t\t\t}", "break;", "String []str_array=str_containing_key.split(\" \");", "str_array", "str_containing_key.split(\" \")", "str_containing_key.split", "str_containing_key", "\" \"", "for(int array_spot=0; array_spot<str_array.length; array_spot++){\n\n\n\t\t\tif(str_array[array_spot].equalsIgnoreCase(keyword)){\n\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\t}", "int array_spot=0;", "int array_spot=0;", "array_spot", "0", "array_spot<str_array.length", "array_spot", "str_array.length", "str_array", "str_array.length", "array_spot++", "array_spot++", "array_spot", "{\n\n\n\t\t\tif(str_array[array_spot].equalsIgnoreCase(keyword)){\n\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\t}", "{\n\n\n\t\t\tif(str_array[array_spot].equalsIgnoreCase(keyword)){\n\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\t}", "if(str_array[array_spot].equalsIgnoreCase(keyword)){\n\n\t\t\t\tcount++;\n\t\t\t}", "str_array[array_spot].equalsIgnoreCase(keyword)", "str_array[array_spot].equalsIgnoreCase", "str_array[array_spot]", "str_array", "array_spot", "keyword", "{\n\n\t\t\t\tcount++;\n\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\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString keyword = input.readLine();\n\n\t\tString str_containing_key = \"\";\n\n\t\tint count=0;\n\n\n\n\t\twhile (true) {\n\n\t\t\tstr_containing_key = input.readLine();\n\n\t\t\tif (str_containing_key.equals(\"END_OF_TEXT\")) {\n\n\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\tString []str_array=str_containing_key.split(\" \");\n\n\t\t\tfor(int array_spot=0; array_spot<str_array.length; array_spot++){\n\n\n\t\t\tif(str_array[array_spot].equalsIgnoreCase(keyword)){\n\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println(count);\n\t}\n}//??§???????°?????????????????°????????????????????????????", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString keyword = input.readLine();\n\n\t\tString str_containing_key = \"\";\n\n\t\tint count=0;\n\n\n\n\t\twhile (true) {\n\n\t\t\tstr_containing_key = input.readLine();\n\n\t\t\tif (str_containing_key.equals(\"END_OF_TEXT\")) {\n\n\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\tString []str_array=str_containing_key.split(\" \");\n\n\t\t\tfor(int array_spot=0; array_spot<str_array.length; array_spot++){\n\n\n\t\t\tif(str_array[array_spot].equalsIgnoreCase(keyword)){\n\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println(count);\n\t}\n}//??§???????°?????????????????°????????????????????????????", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); String keyword = input.readLine(); String str_containing_key = ""; int count=0; while (true) { str_containing_key = input.readLine(); if (str_containing_key.equals("END_OF_TEXT")) { break; } String []str_array=str_containing_key.split(" "); for(int array_spot=0; array_spot<str_array.length; array_spot++){ if(str_array[array_spot].equalsIgnoreCase(keyword)){ count++; } } } System.out.println(count); } }//??§???????°?????????????????°????????????????????????????
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 20, 41, 13, 17, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 4, 18, 13, 3, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 56, 5 ], [ 56, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 23, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 29, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 34, 38 ], [ 23, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 39, 44 ], [ 44, 45 ], [ 45, 46 ], [ 8, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 6, 53 ], [ 53, 54 ], [ 0, 55 ], [ 55, 56 ], [ 55, 57 ] ]
[ "import java.util.Scanner;\npublic class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n String s1 = new String(sc.nextLine());\n String s2 = new String();\n int c=0;\n \n while(true){\n \ts2 = sc.next();\n \tif(s2.equals(\"END_OF_TEXT\")){\n \t\tsc.close();\n \t\tbreak;\n \t}\n \tif(s2.equalsIgnoreCase(s1)){\n \t\tc++;\n \t}\n }\n System.out.println(c);\n }\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n String s1 = new String(sc.nextLine());\n String s2 = new String();\n int c=0;\n \n while(true){\n \ts2 = sc.next();\n \tif(s2.equals(\"END_OF_TEXT\")){\n \t\tsc.close();\n \t\tbreak;\n \t}\n \tif(s2.equalsIgnoreCase(s1)){\n \t\tc++;\n \t}\n }\n System.out.println(c);\n }\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n String s1 = new String(sc.nextLine());\n String s2 = new String();\n int c=0;\n \n while(true){\n \ts2 = sc.next();\n \tif(s2.equals(\"END_OF_TEXT\")){\n \t\tsc.close();\n \t\tbreak;\n \t}\n \tif(s2.equalsIgnoreCase(s1)){\n \t\tc++;\n \t}\n }\n System.out.println(c);\n }", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n String s1 = new String(sc.nextLine());\n String s2 = new String();\n int c=0;\n \n while(true){\n \ts2 = sc.next();\n \tif(s2.equals(\"END_OF_TEXT\")){\n \t\tsc.close();\n \t\tbreak;\n \t}\n \tif(s2.equalsIgnoreCase(s1)){\n \t\tc++;\n \t}\n }\n System.out.println(c);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s1 = new String(sc.nextLine());", "s1", "new String(sc.nextLine())", "String s2 = new String();", "s2", "new String()", "int c=0;", "c", "0", "while(true){\n \ts2 = sc.next();\n \tif(s2.equals(\"END_OF_TEXT\")){\n \t\tsc.close();\n \t\tbreak;\n \t}\n \tif(s2.equalsIgnoreCase(s1)){\n \t\tc++;\n \t}\n }", "true", "{\n \ts2 = sc.next();\n \tif(s2.equals(\"END_OF_TEXT\")){\n \t\tsc.close();\n \t\tbreak;\n \t}\n \tif(s2.equalsIgnoreCase(s1)){\n \t\tc++;\n \t}\n }", "s2 = sc.next()", "s2", "sc.next()", "sc.next", "sc", "if(s2.equals(\"END_OF_TEXT\")){\n \t\tsc.close();\n \t\tbreak;\n \t}", "s2.equals(\"END_OF_TEXT\")", "s2.equals", "s2", "\"END_OF_TEXT\"", "{\n \t\tsc.close();\n \t\tbreak;\n \t}", "sc.close()", "sc.close", "sc", "break;", "if(s2.equalsIgnoreCase(s1)){\n \t\tc++;\n \t}", "s2.equalsIgnoreCase(s1)", "s2.equalsIgnoreCase", "s2", "s1", "{\n \t\tc++;\n \t}", "c++", "c", "System.out.println(c)", "System.out.println", "System.out", "System", "System.out", "c", "String[] args", "args", "public class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n String s1 = new String(sc.nextLine());\n String s2 = new String();\n int c=0;\n \n while(true){\n \ts2 = sc.next();\n \tif(s2.equals(\"END_OF_TEXT\")){\n \t\tsc.close();\n \t\tbreak;\n \t}\n \tif(s2.equalsIgnoreCase(s1)){\n \t\tc++;\n \t}\n }\n System.out.println(c);\n }\n\n}", "public class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n String s1 = new String(sc.nextLine());\n String s2 = new String();\n int c=0;\n \n while(true){\n \ts2 = sc.next();\n \tif(s2.equals(\"END_OF_TEXT\")){\n \t\tsc.close();\n \t\tbreak;\n \t}\n \tif(s2.equalsIgnoreCase(s1)){\n \t\tc++;\n \t}\n }\n System.out.println(c);\n }\n\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s1 = new String(sc.nextLine()); String s2 = new String(); int c=0; while(true){ s2 = sc.next(); if(s2.equals("END_OF_TEXT")){ sc.close(); break; } if(s2.equalsIgnoreCase(s1)){ c++; } } System.out.println(c); } }
[ 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, 4, 18, 13, 41, 13, 17, 41, 13, 17, 42, 17, 30, 40, 13, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 14, 4, 18, 13, 4, 18, 13, 30, 40, 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 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 70, 14 ], [ 70, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 17, 28 ], [ 28, 29 ], [ 28, 30 ], [ 17, 31 ], [ 31, 32 ], [ 31, 33 ], [ 17, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 36, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 44, 49 ], [ 49, 50 ], [ 36, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 55, 56 ], [ 56, 57 ], [ 51, 58 ], [ 58, 59 ], [ 59, 60 ], [ 17, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 15, 67 ], [ 67, 68 ], [ 0, 69 ], [ 69, 70 ], [ 69, 71 ] ]
[ "import java.util.ArrayList;\nimport java.util.Iterator;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String W = scan.next().toLowerCase();\n int count = 0;\n int sys_count = 0;\n\n while(true){\n\n sys_count++;\n String T = scan.next();\n \n if(T.equals(\"END_OF_TEXT\")){\n break;\n }\n\n if(W.equals(T.toLowerCase())){\n ++count;\n }\n\n }\n System.out.println(count);\n }\n}", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Iterator;", "Iterator", "java.util", "import java.util.List;", "List", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String W = scan.next().toLowerCase();\n int count = 0;\n int sys_count = 0;\n\n while(true){\n\n sys_count++;\n String T = scan.next();\n \n if(T.equals(\"END_OF_TEXT\")){\n break;\n }\n\n if(W.equals(T.toLowerCase())){\n ++count;\n }\n\n }\n System.out.println(count);\n }\n}", "Main", "public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String W = scan.next().toLowerCase();\n int count = 0;\n int sys_count = 0;\n\n while(true){\n\n sys_count++;\n String T = scan.next();\n \n if(T.equals(\"END_OF_TEXT\")){\n break;\n }\n\n if(W.equals(T.toLowerCase())){\n ++count;\n }\n\n }\n System.out.println(count);\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n String W = scan.next().toLowerCase();\n int count = 0;\n int sys_count = 0;\n\n while(true){\n\n sys_count++;\n String T = scan.next();\n \n if(T.equals(\"END_OF_TEXT\")){\n break;\n }\n\n if(W.equals(T.toLowerCase())){\n ++count;\n }\n\n }\n System.out.println(count);\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String W = scan.next().toLowerCase();", "W", "scan.next().toLowerCase()", "scan.next().toLowerCase", "scan.next()", "scan.next", "scan", "int count = 0;", "count", "0", "int sys_count = 0;", "sys_count", "0", "while(true){\n\n sys_count++;\n String T = scan.next();\n \n if(T.equals(\"END_OF_TEXT\")){\n break;\n }\n\n if(W.equals(T.toLowerCase())){\n ++count;\n }\n\n }", "true", "{\n\n sys_count++;\n String T = scan.next();\n \n if(T.equals(\"END_OF_TEXT\")){\n break;\n }\n\n if(W.equals(T.toLowerCase())){\n ++count;\n }\n\n }", "sys_count++", "sys_count", "String T = scan.next();", "T", "scan.next()", "scan.next", "scan", "if(T.equals(\"END_OF_TEXT\")){\n break;\n }", "T.equals(\"END_OF_TEXT\")", "T.equals", "T", "\"END_OF_TEXT\"", "{\n break;\n }", "break;", "if(W.equals(T.toLowerCase())){\n ++count;\n }", "W.equals(T.toLowerCase())", "W.equals", "W", "T.toLowerCase()", "T.toLowerCase", "T", "{\n ++count;\n }", "++count", "count", "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 scan = new Scanner(System.in);\n String W = scan.next().toLowerCase();\n int count = 0;\n int sys_count = 0;\n\n while(true){\n\n sys_count++;\n String T = scan.next();\n \n if(T.equals(\"END_OF_TEXT\")){\n break;\n }\n\n if(W.equals(T.toLowerCase())){\n ++count;\n }\n\n }\n System.out.println(count);\n }\n}", "public class Main {\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String W = scan.next().toLowerCase();\n int count = 0;\n int sys_count = 0;\n\n while(true){\n\n sys_count++;\n String T = scan.next();\n \n if(T.equals(\"END_OF_TEXT\")){\n break;\n }\n\n if(W.equals(T.toLowerCase())){\n ++count;\n }\n\n }\n System.out.println(count);\n }\n}", "Main" ]
import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner scan = new Scanner(System.in); String W = scan.next().toLowerCase(); int count = 0; int sys_count = 0; while(true){ sys_count++; String T = scan.next(); if(T.equals("END_OF_TEXT")){ break; } if(W.equals(T.toLowerCase())){ ++count; } } System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 28, 13, 4, 18, 13, 17, 30, 30, 4, 18, 13, 4, 18, 13, 4, 18, 13, 17, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 17, 13, 3, 41, 13, 20, 28, 13, 4, 18, 13, 17, 30, 30, 14, 4, 18, 13, 4, 18, 13, 17, 4, 18, 13, 4, 18, 13, 4, 18, 13, 17, 14, 4, 18, 4, 18, 13, 4, 18, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 104, 5 ], [ 104, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 25 ], [ 20, 26 ], [ 27, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 8, 38 ], [ 38, 39 ], [ 38, 40 ], [ 8, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 43, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 49, 54 ], [ 43, 55 ], [ 55, 56 ], [ 55, 57 ], [ 43, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 58, 64 ], [ 65, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 66, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 43, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 85, 90 ], [ 90, 91 ], [ 91, 92 ], [ 84, 93 ], [ 93, 94 ], [ 8, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 6, 101 ], [ 101, 102 ], [ 0, 103 ], [ 103, 104 ], [ 103, 105 ] ]
[ "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 W = sc.next();\n\n StringBuilder Wt = new StringBuilder();\n for (String s : W.split(\"\")) {\n Wt.append(Character.toLowerCase(s.charAt(0)));\n }\n\n int sum = 0;\n while (true) {\n String T = sc.next();\n if (\"END_OF_TEXT\".equals(T)) break;\n\n StringBuilder tmp = new StringBuilder();\n for(String s : T.split(\"\")) {\n if (Character.isLetter(s.charAt(0))) tmp.append(Character.toLowerCase(s.charAt(0)));\n }\n\n if (tmp.toString().equals(Wt.toString())) sum++;\n }\n System.out.println(sum);\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 W = sc.next();\n\n StringBuilder Wt = new StringBuilder();\n for (String s : W.split(\"\")) {\n Wt.append(Character.toLowerCase(s.charAt(0)));\n }\n\n int sum = 0;\n while (true) {\n String T = sc.next();\n if (\"END_OF_TEXT\".equals(T)) break;\n\n StringBuilder tmp = new StringBuilder();\n for(String s : T.split(\"\")) {\n if (Character.isLetter(s.charAt(0))) tmp.append(Character.toLowerCase(s.charAt(0)));\n }\n\n if (tmp.toString().equals(Wt.toString())) sum++;\n }\n System.out.println(sum);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n String W = sc.next();\n\n StringBuilder Wt = new StringBuilder();\n for (String s : W.split(\"\")) {\n Wt.append(Character.toLowerCase(s.charAt(0)));\n }\n\n int sum = 0;\n while (true) {\n String T = sc.next();\n if (\"END_OF_TEXT\".equals(T)) break;\n\n StringBuilder tmp = new StringBuilder();\n for(String s : T.split(\"\")) {\n if (Character.isLetter(s.charAt(0))) tmp.append(Character.toLowerCase(s.charAt(0)));\n }\n\n if (tmp.toString().equals(Wt.toString())) sum++;\n }\n System.out.println(sum);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n\n String W = sc.next();\n\n StringBuilder Wt = new StringBuilder();\n for (String s : W.split(\"\")) {\n Wt.append(Character.toLowerCase(s.charAt(0)));\n }\n\n int sum = 0;\n while (true) {\n String T = sc.next();\n if (\"END_OF_TEXT\".equals(T)) break;\n\n StringBuilder tmp = new StringBuilder();\n for(String s : T.split(\"\")) {\n if (Character.isLetter(s.charAt(0))) tmp.append(Character.toLowerCase(s.charAt(0)));\n }\n\n if (tmp.toString().equals(Wt.toString())) sum++;\n }\n System.out.println(sum);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String W = sc.next();", "W", "sc.next()", "sc.next", "sc", "StringBuilder Wt = new StringBuilder();", "Wt", "new StringBuilder()", "for (String s : W.split(\"\")) {\n Wt.append(Character.toLowerCase(s.charAt(0)));\n }", "String s", "W.split(\"\")", "W.split", "W", "\"\"", "{\n Wt.append(Character.toLowerCase(s.charAt(0)));\n }", "{\n Wt.append(Character.toLowerCase(s.charAt(0)));\n }", "Wt.append(Character.toLowerCase(s.charAt(0)))", "Wt.append", "Wt", "Character.toLowerCase(s.charAt(0))", "Character.toLowerCase", "Character", "s.charAt(0)", "s.charAt", "s", "0", "int sum = 0;", "sum", "0", "while (true) {\n String T = sc.next();\n if (\"END_OF_TEXT\".equals(T)) break;\n\n StringBuilder tmp = new StringBuilder();\n for(String s : T.split(\"\")) {\n if (Character.isLetter(s.charAt(0))) tmp.append(Character.toLowerCase(s.charAt(0)));\n }\n\n if (tmp.toString().equals(Wt.toString())) sum++;\n }", "true", "{\n String T = sc.next();\n if (\"END_OF_TEXT\".equals(T)) break;\n\n StringBuilder tmp = new StringBuilder();\n for(String s : T.split(\"\")) {\n if (Character.isLetter(s.charAt(0))) tmp.append(Character.toLowerCase(s.charAt(0)));\n }\n\n if (tmp.toString().equals(Wt.toString())) sum++;\n }", "String T = sc.next();", "T", "sc.next()", "sc.next", "sc", "if (\"END_OF_TEXT\".equals(T)) break;", "\"END_OF_TEXT\".equals(T)", "\"END_OF_TEXT\".equals", "\"END_OF_TEXT\"", "T", "break;", "StringBuilder tmp = new StringBuilder();", "tmp", "new StringBuilder()", "for(String s : T.split(\"\")) {\n if (Character.isLetter(s.charAt(0))) tmp.append(Character.toLowerCase(s.charAt(0)));\n }", "String s", "T.split(\"\")", "T.split", "T", "\"\"", "{\n if (Character.isLetter(s.charAt(0))) tmp.append(Character.toLowerCase(s.charAt(0)));\n }", "{\n if (Character.isLetter(s.charAt(0))) tmp.append(Character.toLowerCase(s.charAt(0)));\n }", "if (Character.isLetter(s.charAt(0))) tmp.append(Character.toLowerCase(s.charAt(0)));", "Character.isLetter(s.charAt(0))", "Character.isLetter", "Character", "s.charAt(0)", "s.charAt", "s", "0", "tmp.append(Character.toLowerCase(s.charAt(0)))", "tmp.append", "tmp", "Character.toLowerCase(s.charAt(0))", "Character.toLowerCase", "Character", "s.charAt(0)", "s.charAt", "s", "0", "if (tmp.toString().equals(Wt.toString())) sum++;", "tmp.toString().equals(Wt.toString())", "tmp.toString().equals", "tmp.toString()", "tmp.toString", "tmp", "Wt.toString()", "Wt.toString", "Wt", "sum++", "sum", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n String W = sc.next();\n\n StringBuilder Wt = new StringBuilder();\n for (String s : W.split(\"\")) {\n Wt.append(Character.toLowerCase(s.charAt(0)));\n }\n\n int sum = 0;\n while (true) {\n String T = sc.next();\n if (\"END_OF_TEXT\".equals(T)) break;\n\n StringBuilder tmp = new StringBuilder();\n for(String s : T.split(\"\")) {\n if (Character.isLetter(s.charAt(0))) tmp.append(Character.toLowerCase(s.charAt(0)));\n }\n\n if (tmp.toString().equals(Wt.toString())) sum++;\n }\n System.out.println(sum);\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n String W = sc.next();\n\n StringBuilder Wt = new StringBuilder();\n for (String s : W.split(\"\")) {\n Wt.append(Character.toLowerCase(s.charAt(0)));\n }\n\n int sum = 0;\n while (true) {\n String T = sc.next();\n if (\"END_OF_TEXT\".equals(T)) break;\n\n StringBuilder tmp = new StringBuilder();\n for(String s : T.split(\"\")) {\n if (Character.isLetter(s.charAt(0))) tmp.append(Character.toLowerCase(s.charAt(0)));\n }\n\n if (tmp.toString().equals(Wt.toString())) sum++;\n }\n System.out.println(sum);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String W = sc.next(); StringBuilder Wt = new StringBuilder(); for (String s : W.split("")) { Wt.append(Character.toLowerCase(s.charAt(0))); } int sum = 0; while (true) { String T = sc.next(); if ("END_OF_TEXT".equals(T)) break; StringBuilder tmp = new StringBuilder(); for(String s : T.split("")) { if (Character.isLetter(s.charAt(0))) tmp.append(Character.toLowerCase(s.charAt(0))); } if (tmp.toString().equals(Wt.toString())) sum++; } System.out.println(sum); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 41, 13, 17, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 0, 13, 4, 18, 13, 17, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 18, 13, 13, 14, 4, 18, 18, 13, 13, 13, 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 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 27, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 33, 38 ], [ 27, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 41, 45 ], [ 27, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 46, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 53, 55 ], [ 46, 56 ], [ 56, 57 ], [ 57, 58 ], [ 46, 59 ], [ 60, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 61, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 60, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 70, 77 ], [ 77, 78 ], [ 8, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 6, 85 ], [ 85, 86 ] ]
[ "import java.util.*;\n\nclass Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n String W = sc.nextLine();\n String T = \"\";\n String[] T_split;\n\n int count = 0;\n while(true){\n T = sc.nextLine();\n if(T.equals(\"END_OF_TEXT\")) break; //終了条件\n T_split = T.split(\" \",0);\n for(int i = 0;i < T_split.length;i++){\n T_split[i] = T_split[i].toLowerCase();\n if(T_split[i].matches(W)) count++;\n }\n }\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\n String W = sc.nextLine();\n String T = \"\";\n String[] T_split;\n\n int count = 0;\n while(true){\n T = sc.nextLine();\n if(T.equals(\"END_OF_TEXT\")) break; //終了条件\n T_split = T.split(\" \",0);\n for(int i = 0;i < T_split.length;i++){\n T_split[i] = T_split[i].toLowerCase();\n if(T_split[i].matches(W)) count++;\n }\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 W = sc.nextLine();\n String T = \"\";\n String[] T_split;\n\n int count = 0;\n while(true){\n T = sc.nextLine();\n if(T.equals(\"END_OF_TEXT\")) break; //終了条件\n T_split = T.split(\" \",0);\n for(int i = 0;i < T_split.length;i++){\n T_split[i] = T_split[i].toLowerCase();\n if(T_split[i].matches(W)) count++;\n }\n }\n System.out.println(count);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n\n String W = sc.nextLine();\n String T = \"\";\n String[] T_split;\n\n int count = 0;\n while(true){\n T = sc.nextLine();\n if(T.equals(\"END_OF_TEXT\")) break; //終了条件\n T_split = T.split(\" \",0);\n for(int i = 0;i < T_split.length;i++){\n T_split[i] = T_split[i].toLowerCase();\n if(T_split[i].matches(W)) count++;\n }\n }\n System.out.println(count);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String W = sc.nextLine();", "W", "sc.nextLine()", "sc.nextLine", "sc", "String T = \"\";", "T", "\"\"", "String[] T_split;", "T_split", "int count = 0;", "count", "0", "while(true){\n T = sc.nextLine();\n if(T.equals(\"END_OF_TEXT\")) break; //終了条件\n T_split = T.split(\" \",0);\n for(int i = 0;i < T_split.length;i++){\n T_split[i] = T_split[i].toLowerCase();\n if(T_split[i].matches(W)) count++;\n }\n }", "true", "{\n T = sc.nextLine();\n if(T.equals(\"END_OF_TEXT\")) break; //終了条件\n T_split = T.split(\" \",0);\n for(int i = 0;i < T_split.length;i++){\n T_split[i] = T_split[i].toLowerCase();\n if(T_split[i].matches(W)) count++;\n }\n }", "T = sc.nextLine()", "T", "sc.nextLine()", "sc.nextLine", "sc", "if(T.equals(\"END_OF_TEXT\")) break; //終了条件", "T.equals(\"END_OF_TEXT\")", "T.equals", "T", "\"END_OF_TEXT\"", "break; //終了条件", "T_split = T.split(\" \",0)", "T_split", "T.split(\" \",0)", "T.split", "T", "\" \"", "0", "for(int i = 0;i < T_split.length;i++){\n T_split[i] = T_split[i].toLowerCase();\n if(T_split[i].matches(W)) count++;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < T_split.length", "i", "T_split.length", "T_split", "T_split.length", "i++", "i++", "i", "{\n T_split[i] = T_split[i].toLowerCase();\n if(T_split[i].matches(W)) count++;\n }", "{\n T_split[i] = T_split[i].toLowerCase();\n if(T_split[i].matches(W)) count++;\n }", "T_split[i] = T_split[i].toLowerCase()", "T_split[i]", "T_split", "i", "T_split[i].toLowerCase()", "T_split[i].toLowerCase", "T_split[i]", "T_split", "i", "if(T_split[i].matches(W)) count++;", "T_split[i].matches(W)", "T_split[i].matches", "T_split[i]", "T_split", "i", "W", "count++", "count", "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 W = sc.nextLine(); String T = ""; String[] T_split; int count = 0; while(true){ T = sc.nextLine(); if(T.equals("END_OF_TEXT")) break; //終了条件 T_split = T.split(" ",0); for(int i = 0;i < T_split.length;i++){ T_split[i] = T_split[i].toLowerCase(); if(T_split[i].matches(W)) 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, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 14, 2, 4, 18, 13, 13, 17, 30, 40, 13, 4, 18, 18, 13, 13, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 54, 5 ], [ 54, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 22, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 35, 40 ], [ 34, 41 ], [ 41, 42 ], [ 42, 43 ], [ 8, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 44, 50 ], [ 6, 51 ], [ 51, 52 ], [ 0, 53 ], [ 53, 54 ], [ 53, 55 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n String word = sc.next();\n int count = 0;\n\n while(true){\n String text = sc.next();\n\n if(text.equals(\"END_OF_TEXT\"))break;\n\n if(word.compareToIgnoreCase(text) == 0){\n count++;\n }\n }\n\n System.out.printf(\"%d\\n\",count);\n\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n String word = sc.next();\n int count = 0;\n\n while(true){\n String text = sc.next();\n\n if(text.equals(\"END_OF_TEXT\"))break;\n\n if(word.compareToIgnoreCase(text) == 0){\n count++;\n }\n }\n\n System.out.printf(\"%d\\n\",count);\n\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n String word = sc.next();\n int count = 0;\n\n while(true){\n String text = sc.next();\n\n if(text.equals(\"END_OF_TEXT\"))break;\n\n if(word.compareToIgnoreCase(text) == 0){\n count++;\n }\n }\n\n System.out.printf(\"%d\\n\",count);\n\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n\n String word = sc.next();\n int count = 0;\n\n while(true){\n String text = sc.next();\n\n if(text.equals(\"END_OF_TEXT\"))break;\n\n if(word.compareToIgnoreCase(text) == 0){\n count++;\n }\n }\n\n System.out.printf(\"%d\\n\",count);\n\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String word = sc.next();", "word", "sc.next()", "sc.next", "sc", "int count = 0;", "count", "0", "while(true){\n String text = sc.next();\n\n if(text.equals(\"END_OF_TEXT\"))break;\n\n if(word.compareToIgnoreCase(text) == 0){\n count++;\n }\n }", "true", "{\n String text = sc.next();\n\n if(text.equals(\"END_OF_TEXT\"))break;\n\n if(word.compareToIgnoreCase(text) == 0){\n count++;\n }\n }", "String text = sc.next();", "text", "sc.next()", "sc.next", "sc", "if(text.equals(\"END_OF_TEXT\"))break;", "text.equals(\"END_OF_TEXT\")", "text.equals", "text", "\"END_OF_TEXT\"", "break;", "if(word.compareToIgnoreCase(text) == 0){\n count++;\n }", "word.compareToIgnoreCase(text) == 0", "word.compareToIgnoreCase(text)", "word.compareToIgnoreCase", "word", "text", "0", "{\n count++;\n }", "count++", "count", "System.out.printf(\"%d\\n\",count)", "System.out.printf", "System.out", "System", "System.out", "\"%d\\n\"", "count", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n String word = sc.next();\n int count = 0;\n\n while(true){\n String text = sc.next();\n\n if(text.equals(\"END_OF_TEXT\"))break;\n\n if(word.compareToIgnoreCase(text) == 0){\n count++;\n }\n }\n\n System.out.printf(\"%d\\n\",count);\n\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n String word = sc.next();\n int count = 0;\n\n while(true){\n String text = sc.next();\n\n if(text.equals(\"END_OF_TEXT\"))break;\n\n if(word.compareToIgnoreCase(text) == 0){\n count++;\n }\n }\n\n System.out.printf(\"%d\\n\",count);\n\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String word = sc.next(); int count = 0; while(true){ String text = sc.next(); if(text.equals("END_OF_TEXT"))break; if(word.compareToIgnoreCase(text) == 0){ count++; } } System.out.printf("%d\n",count); } }
[ 7, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 17, 13, 30, 3, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 51, 2 ], [ 51, 3 ], [ 3, 4 ], [ 3, 5 ], [ 5, 6 ], [ 6, 7 ], [ 6, 8 ], [ 5, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 5, 16 ], [ 16, 17 ], [ 16, 18 ], [ 5, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 21, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 27, 32 ], [ 32, 33 ], [ 21, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 34, 39 ], [ 39, 40 ], [ 40, 41 ], [ 5, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 42, 47 ], [ 3, 48 ], [ 48, 49 ], [ 0, 50 ], [ 50, 51 ], [ 50, 52 ] ]
[ "public class Main {\n\tpublic static void main(String[] args){\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\tString W = scan.next().toLowerCase();\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tString str = scan.next();\n\n\t\t\tif(\"END_OF_TEXT\".equals(str)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(W.equalsIgnoreCase(str)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\tString W = scan.next().toLowerCase();\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tString str = scan.next();\n\n\t\t\tif(\"END_OF_TEXT\".equals(str)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(W.equalsIgnoreCase(str)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\n}", "Main", "public static void main(String[] args){\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\tString W = scan.next().toLowerCase();\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tString str = scan.next();\n\n\t\t\tif(\"END_OF_TEXT\".equals(str)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(W.equalsIgnoreCase(str)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "main", "{\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\tString W = scan.next().toLowerCase();\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tString str = scan.next();\n\n\t\t\tif(\"END_OF_TEXT\".equals(str)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(W.equalsIgnoreCase(str)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "java.util.Scanner scan = new java.util.Scanner(System.in);", "scan", "new java.util.Scanner(System.in)", "String W = scan.next().toLowerCase();", "W", "scan.next().toLowerCase()", "scan.next().toLowerCase", "scan.next()", "scan.next", "scan", "int count = 0;", "count", "0", "while(true){\n\t\t\tString str = scan.next();\n\n\t\t\tif(\"END_OF_TEXT\".equals(str)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(W.equalsIgnoreCase(str)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tString str = scan.next();\n\n\t\t\tif(\"END_OF_TEXT\".equals(str)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(W.equalsIgnoreCase(str)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "String str = scan.next();", "str", "scan.next()", "scan.next", "scan", "if(\"END_OF_TEXT\".equals(str)){\n\t\t\t\tbreak;\n\t\t\t}", "\"END_OF_TEXT\".equals(str)", "\"END_OF_TEXT\".equals", "\"END_OF_TEXT\"", "str", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "if(W.equalsIgnoreCase(str)){\n\t\t\t\tcount++;\n\t\t\t}", "W.equalsIgnoreCase(str)", "W.equalsIgnoreCase", "W", "str", "{\n\t\t\t\tcount++;\n\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\tpublic static void main(String[] args){\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\tString W = scan.next().toLowerCase();\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tString str = scan.next();\n\n\t\t\tif(\"END_OF_TEXT\".equals(str)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(W.equalsIgnoreCase(str)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\tString W = scan.next().toLowerCase();\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tString str = scan.next();\n\n\t\t\tif(\"END_OF_TEXT\".equals(str)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(W.equalsIgnoreCase(str)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\n}", "Main" ]
public class Main { public static void main(String[] args){ java.util.Scanner scan = new java.util.Scanner(System.in); String W = scan.next().toLowerCase(); int count = 0; while(true){ String str = scan.next(); if("END_OF_TEXT".equals(str)){ break; } if(W.equalsIgnoreCase(str)){ count++; } } System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 28, 13, 4, 18, 4, 18, 13, 17, 30, 30, 14, 4, 18, 13, 13, 30, 40, 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 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 27, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 33, 38 ], [ 38, 39 ], [ 27, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 42, 47 ], [ 40, 48 ], [ 49, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 50, 55 ], [ 55, 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.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n String W = stdIn.next().toLowerCase();\n stdIn.nextLine();\n int answer = 0;\n while(true) {\n String line = stdIn.nextLine();\n if(line.equals(\"END_OF_TEXT\")) {\n break;\n }\n for(String word : line.toLowerCase().split(\" \")) {\n if(word.equals(W)) {\n answer++;\n }\n }\n }\n System.out.println(answer);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n String W = stdIn.next().toLowerCase();\n stdIn.nextLine();\n int answer = 0;\n while(true) {\n String line = stdIn.nextLine();\n if(line.equals(\"END_OF_TEXT\")) {\n break;\n }\n for(String word : line.toLowerCase().split(\" \")) {\n if(word.equals(W)) {\n answer++;\n }\n }\n }\n System.out.println(answer);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n String W = stdIn.next().toLowerCase();\n stdIn.nextLine();\n int answer = 0;\n while(true) {\n String line = stdIn.nextLine();\n if(line.equals(\"END_OF_TEXT\")) {\n break;\n }\n for(String word : line.toLowerCase().split(\" \")) {\n if(word.equals(W)) {\n answer++;\n }\n }\n }\n System.out.println(answer);\n }", "main", "{\n Scanner stdIn = new Scanner(System.in);\n String W = stdIn.next().toLowerCase();\n stdIn.nextLine();\n int answer = 0;\n while(true) {\n String line = stdIn.nextLine();\n if(line.equals(\"END_OF_TEXT\")) {\n break;\n }\n for(String word : line.toLowerCase().split(\" \")) {\n if(word.equals(W)) {\n answer++;\n }\n }\n }\n System.out.println(answer);\n }", "Scanner stdIn = new Scanner(System.in);", "stdIn", "new Scanner(System.in)", "String W = stdIn.next().toLowerCase();", "W", "stdIn.next().toLowerCase()", "stdIn.next().toLowerCase", "stdIn.next()", "stdIn.next", "stdIn", "stdIn.nextLine()", "stdIn.nextLine", "stdIn", "int answer = 0;", "answer", "0", "while(true) {\n String line = stdIn.nextLine();\n if(line.equals(\"END_OF_TEXT\")) {\n break;\n }\n for(String word : line.toLowerCase().split(\" \")) {\n if(word.equals(W)) {\n answer++;\n }\n }\n }", "true", "{\n String line = stdIn.nextLine();\n if(line.equals(\"END_OF_TEXT\")) {\n break;\n }\n for(String word : line.toLowerCase().split(\" \")) {\n if(word.equals(W)) {\n answer++;\n }\n }\n }", "String line = stdIn.nextLine();", "line", "stdIn.nextLine()", "stdIn.nextLine", "stdIn", "if(line.equals(\"END_OF_TEXT\")) {\n break;\n }", "line.equals(\"END_OF_TEXT\")", "line.equals", "line", "\"END_OF_TEXT\"", "{\n break;\n }", "break;", "for(String word : line.toLowerCase().split(\" \")) {\n if(word.equals(W)) {\n answer++;\n }\n }", "String word", "line.toLowerCase().split(\" \")", "line.toLowerCase().split", "line.toLowerCase()", "line.toLowerCase", "line", "\" \"", "{\n if(word.equals(W)) {\n answer++;\n }\n }", "{\n if(word.equals(W)) {\n answer++;\n }\n }", "if(word.equals(W)) {\n answer++;\n }", "word.equals(W)", "word.equals", "word", "W", "{\n answer++;\n }", "answer++", "answer", "System.out.println(answer)", "System.out.println", "System.out", "System", "System.out", "answer", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n String W = stdIn.next().toLowerCase();\n stdIn.nextLine();\n int answer = 0;\n while(true) {\n String line = stdIn.nextLine();\n if(line.equals(\"END_OF_TEXT\")) {\n break;\n }\n for(String word : line.toLowerCase().split(\" \")) {\n if(word.equals(W)) {\n answer++;\n }\n }\n }\n System.out.println(answer);\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n String W = stdIn.next().toLowerCase();\n stdIn.nextLine();\n int answer = 0;\n while(true) {\n String line = stdIn.nextLine();\n if(line.equals(\"END_OF_TEXT\")) {\n break;\n }\n for(String word : line.toLowerCase().split(\" \")) {\n if(word.equals(W)) {\n answer++;\n }\n }\n }\n System.out.println(answer);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); String W = stdIn.next().toLowerCase(); stdIn.nextLine(); int answer = 0; while(true) { String line = stdIn.nextLine(); if(line.equals("END_OF_TEXT")) { break; } for(String word : line.toLowerCase().split(" ")) { if(word.equals(W)) { answer++; } } } System.out.println(answer); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 17, 38, 5, 13, 30, 4, 18, 18, 13, 13, 17, 30, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 4, 18, 13, 13, 30, 40, 13, 14, 4, 18, 13, 17, 30, 3, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 73, 8 ], [ 73, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 11, 22 ], [ 22, 23 ], [ 22, 24 ], [ 11, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 25, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 38, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 45, 50 ], [ 44, 51 ], [ 51, 52 ], [ 52, 53 ], [ 38, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 54, 59 ], [ 59, 60 ], [ 35, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 35, 67 ], [ 67, 68 ], [ 68, 69 ], [ 9, 70 ], [ 70, 71 ], [ 0, 72 ], [ 72, 73 ], [ 72, 74 ] ]
[ "import java.util.InputMismatchException;\nimport java.util.Scanner;\n\npublic class Main {\n\t@SuppressWarnings(\"unlikely-arg-type\")\n\tpublic static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tString str1=scan.next().toUpperCase();\n\t\tint count=0;\n\t\ttry{\n\t\t\twhile(true) {\n\t\t\t\tString str=scan.next();\n\t\t\t\tif(str.toUpperCase().equals(str1)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\tif(str.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t\tscan.close();\n\t\t}catch(InputMismatchException e){\n\t\t\tSystem.out.println(\"入力しなおしてください\");\n\t\t}\n\t\t}\n}", "import java.util.InputMismatchException;", "InputMismatchException", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\t@SuppressWarnings(\"unlikely-arg-type\")\n\tpublic static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tString str1=scan.next().toUpperCase();\n\t\tint count=0;\n\t\ttry{\n\t\t\twhile(true) {\n\t\t\t\tString str=scan.next();\n\t\t\t\tif(str.toUpperCase().equals(str1)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\tif(str.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t\tscan.close();\n\t\t}catch(InputMismatchException e){\n\t\t\tSystem.out.println(\"入力しなおしてください\");\n\t\t}\n\t\t}\n}", "Main", "@SuppressWarnings(\"unlikely-arg-type\")\n\tpublic static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tString str1=scan.next().toUpperCase();\n\t\tint count=0;\n\t\ttry{\n\t\t\twhile(true) {\n\t\t\t\tString str=scan.next();\n\t\t\t\tif(str.toUpperCase().equals(str1)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\tif(str.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t\tscan.close();\n\t\t}catch(InputMismatchException e){\n\t\t\tSystem.out.println(\"入力しなおしてください\");\n\t\t}\n\t\t}", "main", "{\n\t\tScanner scan=new Scanner(System.in);\n\t\tString str1=scan.next().toUpperCase();\n\t\tint count=0;\n\t\ttry{\n\t\t\twhile(true) {\n\t\t\t\tString str=scan.next();\n\t\t\t\tif(str.toUpperCase().equals(str1)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\tif(str.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t\tscan.close();\n\t\t}catch(InputMismatchException e){\n\t\t\tSystem.out.println(\"入力しなおしてください\");\n\t\t}\n\t\t}", "Scanner scan=new Scanner(System.in);", "scan", "new Scanner(System.in)", "String str1=scan.next().toUpperCase();", "str1", "scan.next().toUpperCase()", "scan.next().toUpperCase", "scan.next()", "scan.next", "scan", "int count=0;", "count", "0", "try{\n\t\t\twhile(true) {\n\t\t\t\tString str=scan.next();\n\t\t\t\tif(str.toUpperCase().equals(str1)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\tif(str.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t\tscan.close();\n\t\t}catch(InputMismatchException e){\n\t\t\tSystem.out.println(\"入力しなおしてください\");\n\t\t}", "catch(InputMismatchException e){\n\t\t\tSystem.out.println(\"入力しなおしてください\");\n\t\t}", "InputMismatchException e", "{\n\t\t\tSystem.out.println(\"入力しなおしてください\");\n\t\t}", "System.out.println(\"入力しなおしてください\")", "System.out.println", "System.out", "System", "System.out", "\"入力しなおしてください\"", "{\n\t\t\twhile(true) {\n\t\t\t\tString str=scan.next();\n\t\t\t\tif(str.toUpperCase().equals(str1)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\tif(str.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t\tscan.close();\n\t\t}", "while(true) {\n\t\t\t\tString str=scan.next();\n\t\t\t\tif(str.toUpperCase().equals(str1)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\tif(str.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "true", "{\n\t\t\t\tString str=scan.next();\n\t\t\t\tif(str.toUpperCase().equals(str1)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\tif(str.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "String str=scan.next();", "str", "scan.next()", "scan.next", "scan", "if(str.toUpperCase().equals(str1)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}", "str.toUpperCase().equals(str1)", "str.toUpperCase().equals", "str.toUpperCase()", "str.toUpperCase", "str", "str1", "{\n\t\t\t\t\tcount++;\n\t\t\t\t}", "count++", "count", "if(str.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}", "str.equals(\"END_OF_TEXT\")", "str.equals", "str", "\"END_OF_TEXT\"", "{\n\t\t\t\t\tbreak;\n\t\t\t\t}", "break;", "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\t@SuppressWarnings(\"unlikely-arg-type\")\n\tpublic static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tString str1=scan.next().toUpperCase();\n\t\tint count=0;\n\t\ttry{\n\t\t\twhile(true) {\n\t\t\t\tString str=scan.next();\n\t\t\t\tif(str.toUpperCase().equals(str1)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\tif(str.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t\tscan.close();\n\t\t}catch(InputMismatchException e){\n\t\t\tSystem.out.println(\"入力しなおしてください\");\n\t\t}\n\t\t}\n}", "public class Main {\n\t@SuppressWarnings(\"unlikely-arg-type\")\n\tpublic static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tString str1=scan.next().toUpperCase();\n\t\tint count=0;\n\t\ttry{\n\t\t\twhile(true) {\n\t\t\t\tString str=scan.next();\n\t\t\t\tif(str.toUpperCase().equals(str1)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\tif(str.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t\tscan.close();\n\t\t}catch(InputMismatchException e){\n\t\t\tSystem.out.println(\"入力しなおしてください\");\n\t\t}\n\t\t}\n}", "Main" ]
import java.util.InputMismatchException; import java.util.Scanner; public class Main { @SuppressWarnings("unlikely-arg-type") public static void main(String[] args) { Scanner scan=new Scanner(System.in); String str1=scan.next().toUpperCase(); int count=0; try{ while(true) { String str=scan.next(); if(str.toUpperCase().equals(str1)) { count++; } if(str.equals("END_OF_TEXT")){ break; } } System.out.println(count); scan.close(); }catch(InputMismatchException e){ System.out.println("入力しなおしてください"); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 41, 13, 17, 38, 30, 4, 18, 13, 30, 0, 13, 20, 0, 13, 4, 18, 13, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 14, 40, 4, 18, 13, 17, 30, 0, 13, 4, 18, 13, 4, 18, 13, 13, 30, 3, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 4, 18, 4, 18, 13, 13, 13, 30, 40, 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 ], [ 100, 8 ], [ 100, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 11, 17 ], [ 17, 18 ], [ 17, 19 ], [ 11, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 20, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 25, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 25, 34 ], [ 34, 35 ], [ 34, 36 ], [ 25, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 37, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 41, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 47, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 53, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 47, 63 ], [ 63, 64 ], [ 25, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 73, 74 ], [ 65, 75 ], [ 75, 76 ], [ 76, 77 ], [ 65, 78 ], [ 79, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 81, 87 ], [ 80, 88 ], [ 88, 89 ], [ 89, 90 ], [ 25, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 91, 96 ], [ 9, 97 ], [ 97, 98 ], [ 0, 99 ], [ 99, 100 ], [ 99, 101 ] ]
[ "import java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tint count = 0;\n\t\tString check;\n\t\tScanner sc = null;\n\t\ttry {\n\t\t\tsc = new Scanner(System.in);\n\n\t\t\tcheck = sc.next();\n\n\t\t\t//??????????????¬????????§??????????´?\n\t\t\tArrayList<String> textList = new ArrayList<String>();\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\tString word = sc.next();\n\n\t\t\t\t//??????????????????\n\t\t\t\tif (!word.equals(\"END_OF_TEXT\")) {\n\t\t\t\t\tword = word.toLowerCase();\n\n\t\t\t\t\ttextList.add(word);\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//??????????????????????????????????????§??????\n\t\t\tfor (int i = 0; i < textList.size(); i++) {\n\n\t\t\t\tif (textList.get(i).equals(check)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\n\t\t} finally {\n\t\t\tsc.close();\n\t\t}\n\t}\n\n}", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tint count = 0;\n\t\tString check;\n\t\tScanner sc = null;\n\t\ttry {\n\t\t\tsc = new Scanner(System.in);\n\n\t\t\tcheck = sc.next();\n\n\t\t\t//??????????????¬????????§??????????´?\n\t\t\tArrayList<String> textList = new ArrayList<String>();\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\tString word = sc.next();\n\n\t\t\t\t//??????????????????\n\t\t\t\tif (!word.equals(\"END_OF_TEXT\")) {\n\t\t\t\t\tword = word.toLowerCase();\n\n\t\t\t\t\ttextList.add(word);\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//??????????????????????????????????????§??????\n\t\t\tfor (int i = 0; i < textList.size(); i++) {\n\n\t\t\t\tif (textList.get(i).equals(check)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\n\t\t} finally {\n\t\t\tsc.close();\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\n\t\tint count = 0;\n\t\tString check;\n\t\tScanner sc = null;\n\t\ttry {\n\t\t\tsc = new Scanner(System.in);\n\n\t\t\tcheck = sc.next();\n\n\t\t\t//??????????????¬????????§??????????´?\n\t\t\tArrayList<String> textList = new ArrayList<String>();\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\tString word = sc.next();\n\n\t\t\t\t//??????????????????\n\t\t\t\tif (!word.equals(\"END_OF_TEXT\")) {\n\t\t\t\t\tword = word.toLowerCase();\n\n\t\t\t\t\ttextList.add(word);\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//??????????????????????????????????????§??????\n\t\t\tfor (int i = 0; i < textList.size(); i++) {\n\n\t\t\t\tif (textList.get(i).equals(check)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\n\t\t} finally {\n\t\t\tsc.close();\n\t\t}\n\t}", "main", "{\n\n\t\tint count = 0;\n\t\tString check;\n\t\tScanner sc = null;\n\t\ttry {\n\t\t\tsc = new Scanner(System.in);\n\n\t\t\tcheck = sc.next();\n\n\t\t\t//??????????????¬????????§??????????´?\n\t\t\tArrayList<String> textList = new ArrayList<String>();\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\tString word = sc.next();\n\n\t\t\t\t//??????????????????\n\t\t\t\tif (!word.equals(\"END_OF_TEXT\")) {\n\t\t\t\t\tword = word.toLowerCase();\n\n\t\t\t\t\ttextList.add(word);\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//??????????????????????????????????????§??????\n\t\t\tfor (int i = 0; i < textList.size(); i++) {\n\n\t\t\t\tif (textList.get(i).equals(check)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\n\t\t} finally {\n\t\t\tsc.close();\n\t\t}\n\t}", "int count = 0;", "count", "0", "String check;", "check", "Scanner sc = null;", "sc", "null", "try {\n\t\t\tsc = new Scanner(System.in);\n\n\t\t\tcheck = sc.next();\n\n\t\t\t//??????????????¬????????§??????????´?\n\t\t\tArrayList<String> textList = new ArrayList<String>();\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\tString word = sc.next();\n\n\t\t\t\t//??????????????????\n\t\t\t\tif (!word.equals(\"END_OF_TEXT\")) {\n\t\t\t\t\tword = word.toLowerCase();\n\n\t\t\t\t\ttextList.add(word);\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//??????????????????????????????????????§??????\n\t\t\tfor (int i = 0; i < textList.size(); i++) {\n\n\t\t\t\tif (textList.get(i).equals(check)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\n\t\t} finally {\n\t\t\tsc.close();\n\t\t}", "{\n\t\t\tsc.close();\n\t\t}", "sc.close()", "sc.close", "sc", "{\n\t\t\tsc = new Scanner(System.in);\n\n\t\t\tcheck = sc.next();\n\n\t\t\t//??????????????¬????????§??????????´?\n\t\t\tArrayList<String> textList = new ArrayList<String>();\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\tString word = sc.next();\n\n\t\t\t\t//??????????????????\n\t\t\t\tif (!word.equals(\"END_OF_TEXT\")) {\n\t\t\t\t\tword = word.toLowerCase();\n\n\t\t\t\t\ttextList.add(word);\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//??????????????????????????????????????§??????\n\t\t\tfor (int i = 0; i < textList.size(); i++) {\n\n\t\t\t\tif (textList.get(i).equals(check)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\n\t\t}", "sc = new Scanner(System.in)", "sc", "new Scanner(System.in)", "check = sc.next()", "check", "sc.next()", "sc.next", "sc", "ArrayList<String> textList = new ArrayList<String>();", "textList", "new ArrayList<String>()", "while (sc.hasNext()) {\n\t\t\t\tString word = sc.next();\n\n\t\t\t\t//??????????????????\n\t\t\t\tif (!word.equals(\"END_OF_TEXT\")) {\n\t\t\t\t\tword = word.toLowerCase();\n\n\t\t\t\t\ttextList.add(word);\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "sc.hasNext()", "sc.hasNext", "sc", "{\n\t\t\t\tString word = sc.next();\n\n\t\t\t\t//??????????????????\n\t\t\t\tif (!word.equals(\"END_OF_TEXT\")) {\n\t\t\t\t\tword = word.toLowerCase();\n\n\t\t\t\t\ttextList.add(word);\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "String word = sc.next();", "word", "sc.next()", "sc.next", "sc", "if (!word.equals(\"END_OF_TEXT\")) {\n\t\t\t\t\tword = word.toLowerCase();\n\n\t\t\t\t\ttextList.add(word);\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}", "!word.equals(\"END_OF_TEXT\")", "word.equals(\"END_OF_TEXT\")", "word.equals", "word", "\"END_OF_TEXT\"", "{\n\t\t\t\t\tword = word.toLowerCase();\n\n\t\t\t\t\ttextList.add(word);\n\t\t\t\t}", "word = word.toLowerCase()", "word", "word.toLowerCase()", "word.toLowerCase", "word", "textList.add(word)", "textList.add", "textList", "word", "{\n\t\t\t\t\tbreak;\n\t\t\t\t}", "break;", "for (int i = 0; i < textList.size(); i++) {\n\n\t\t\t\tif (textList.get(i).equals(check)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < textList.size()", "i", "textList.size()", "textList.size", "textList", "i++", "i++", "i", "{\n\n\t\t\t\tif (textList.get(i).equals(check)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}", "{\n\n\t\t\t\tif (textList.get(i).equals(check)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}", "if (textList.get(i).equals(check)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}", "textList.get(i).equals(check)", "textList.get(i).equals", "textList.get(i)", "textList.get", "textList", "i", "check", "{\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\tint count = 0;\n\t\tString check;\n\t\tScanner sc = null;\n\t\ttry {\n\t\t\tsc = new Scanner(System.in);\n\n\t\t\tcheck = sc.next();\n\n\t\t\t//??????????????¬????????§??????????´?\n\t\t\tArrayList<String> textList = new ArrayList<String>();\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\tString word = sc.next();\n\n\t\t\t\t//??????????????????\n\t\t\t\tif (!word.equals(\"END_OF_TEXT\")) {\n\t\t\t\t\tword = word.toLowerCase();\n\n\t\t\t\t\ttextList.add(word);\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//??????????????????????????????????????§??????\n\t\t\tfor (int i = 0; i < textList.size(); i++) {\n\n\t\t\t\tif (textList.get(i).equals(check)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\n\t\t} finally {\n\t\t\tsc.close();\n\t\t}\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tint count = 0;\n\t\tString check;\n\t\tScanner sc = null;\n\t\ttry {\n\t\t\tsc = new Scanner(System.in);\n\n\t\t\tcheck = sc.next();\n\n\t\t\t//??????????????¬????????§??????????´?\n\t\t\tArrayList<String> textList = new ArrayList<String>();\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\tString word = sc.next();\n\n\t\t\t\t//??????????????????\n\t\t\t\tif (!word.equals(\"END_OF_TEXT\")) {\n\t\t\t\t\tword = word.toLowerCase();\n\n\t\t\t\t\ttextList.add(word);\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//??????????????????????????????????????§??????\n\t\t\tfor (int i = 0; i < textList.size(); i++) {\n\n\t\t\t\tif (textList.get(i).equals(check)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\n\t\t} finally {\n\t\t\tsc.close();\n\t\t}\n\t}\n\n}", "Main" ]
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) { int count = 0; String check; Scanner sc = null; try { sc = new Scanner(System.in); check = sc.next(); //??????????????¬????????§??????????´? ArrayList<String> textList = new ArrayList<String>(); while (sc.hasNext()) { String word = sc.next(); //?????????????????? if (!word.equals("END_OF_TEXT")) { word = word.toLowerCase(); textList.add(word); } else { break; } } //??????????????????????????????????????§?????? for (int i = 0; i < textList.size(); i++) { if (textList.get(i).equals(check)) { count++; } } System.out.println(count); } finally { sc.close(); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 41, 13, 20, 42, 40, 4, 18, 0, 13, 4, 18, 13, 17, 30, 28, 13, 4, 18, 13, 17, 30, 30, 4, 18, 13, 13, 41, 13, 17, 28, 13, 13, 30, 30, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 12, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 19, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 19, 28 ], [ 28, 29 ], [ 19, 30 ], [ 30, 31 ], [ 30, 32 ], [ 19, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 35, 42 ], [ 33, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 44, 50 ], [ 51, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 19, 56 ], [ 56, 57 ], [ 56, 58 ], [ 19, 59 ], [ 59, 60 ], [ 59, 61 ], [ 59, 62 ], [ 63, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 64, 69 ], [ 69, 70 ], [ 70, 71 ], [ 19, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 9, 78 ], [ 78, 79 ] ]
[ "import java.util.*;\nimport java.io.*;\n\nclass Main {\n public static void main(String args[]) {\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String w = br.readLine();\n String l;\n List<String> t = new ArrayList<String>();\n while (!(l = br.readLine()).equals(\"END_OF_TEXT\")) {\n for (String in : l.split(\" \")) {\n t.add(in);\n } \n }\n int ans = 0;\n for (String str : t) {\n if (str.equalsIgnoreCase(w)) {\n ans++;\n }\n }\n System.out.println(ans);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "class Main {\n public static void main(String args[]) {\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String w = br.readLine();\n String l;\n List<String> t = new ArrayList<String>();\n while (!(l = br.readLine()).equals(\"END_OF_TEXT\")) {\n for (String in : l.split(\" \")) {\n t.add(in);\n } \n }\n int ans = 0;\n for (String str : t) {\n if (str.equalsIgnoreCase(w)) {\n ans++;\n }\n }\n System.out.println(ans);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n}", "Main", "public static void main(String args[]) {\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String w = br.readLine();\n String l;\n List<String> t = new ArrayList<String>();\n while (!(l = br.readLine()).equals(\"END_OF_TEXT\")) {\n for (String in : l.split(\" \")) {\n t.add(in);\n } \n }\n int ans = 0;\n for (String str : t) {\n if (str.equalsIgnoreCase(w)) {\n ans++;\n }\n }\n System.out.println(ans);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "main", "{\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String w = br.readLine();\n String l;\n List<String> t = new ArrayList<String>();\n while (!(l = br.readLine()).equals(\"END_OF_TEXT\")) {\n for (String in : l.split(\" \")) {\n t.add(in);\n } \n }\n int ans = 0;\n for (String str : t) {\n if (str.equalsIgnoreCase(w)) {\n ans++;\n }\n }\n System.out.println(ans);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "try {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String w = br.readLine();\n String l;\n List<String> t = new ArrayList<String>();\n while (!(l = br.readLine()).equals(\"END_OF_TEXT\")) {\n for (String in : l.split(\" \")) {\n t.add(in);\n } \n }\n int ans = 0;\n for (String str : t) {\n if (str.equalsIgnoreCase(w)) {\n ans++;\n }\n }\n System.out.println(ans);\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 BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String w = br.readLine();\n String l;\n List<String> t = new ArrayList<String>();\n while (!(l = br.readLine()).equals(\"END_OF_TEXT\")) {\n for (String in : l.split(\" \")) {\n t.add(in);\n } \n }\n int ans = 0;\n for (String str : t) {\n if (str.equalsIgnoreCase(w)) {\n ans++;\n }\n }\n System.out.println(ans);\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String w = br.readLine();", "w", "br.readLine()", "br.readLine", "br", "String l;", "l", "List<String> t = new ArrayList<String>();", "t", "new ArrayList<String>()", "while (!(l = br.readLine()).equals(\"END_OF_TEXT\")) {\n for (String in : l.split(\" \")) {\n t.add(in);\n } \n }", "!(l = br.readLine()).equals(\"END_OF_TEXT\")", "(l = br.readLine()).equals(\"END_OF_TEXT\")", "(l = br.readLine()).equals", "(l = br.readLine())", "l", "br.readLine()", "br.readLine", "br", "\"END_OF_TEXT\"", "{\n for (String in : l.split(\" \")) {\n t.add(in);\n } \n }", "for (String in : l.split(\" \")) {\n t.add(in);\n }", "String in", "l.split(\" \")", "l.split", "l", "\" \"", "{\n t.add(in);\n }", "{\n t.add(in);\n }", "t.add(in)", "t.add", "t", "in", "int ans = 0;", "ans", "0", "for (String str : t) {\n if (str.equalsIgnoreCase(w)) {\n ans++;\n }\n }", "String str", "t", "{\n if (str.equalsIgnoreCase(w)) {\n ans++;\n }\n }", "{\n if (str.equalsIgnoreCase(w)) {\n ans++;\n }\n }", "if (str.equalsIgnoreCase(w)) {\n ans++;\n }", "str.equalsIgnoreCase(w)", "str.equalsIgnoreCase", "str", "w", "{\n ans++;\n }", "ans++", "ans", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String args[]", "args" ]
import java.util.*; import java.io.*; class Main { public static void main(String args[]) { try { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String w = br.readLine(); String l; List<String> t = new ArrayList<String>(); while (!(l = br.readLine()).equals("END_OF_TEXT")) { for (String in : l.split(" ")) { t.add(in); } } int ans = 0; for (String str : t) { if (str.equalsIgnoreCase(w)) { ans++; } } System.out.println(ans); } catch (IOException e) { e.printStackTrace(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 28, 13, 4, 18, 4, 18, 13, 17, 30, 30, 14, 4, 18, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 68, 5 ], [ 68, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 30, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 36, 41 ], [ 30, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 44, 49 ], [ 42, 50 ], [ 51, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 52, 57 ], [ 57, 58 ], [ 8, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 6, 65 ], [ 65, 66 ], [ 0, 67 ], [ 67, 68 ], [ 67, 69 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n String s=sc.next();\n s.toLowerCase();\n int n=s.length();\n int ans=0;\n while(true){\n String t=sc.nextLine();\n if(t.equals(\"END_OF_TEXT\")) break;\n for(String u:t.toLowerCase().split(\" \")){\n if(s.equals(u)) ans++;\n }\n }\n System.out.println(ans);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n String s=sc.next();\n s.toLowerCase();\n int n=s.length();\n int ans=0;\n while(true){\n String t=sc.nextLine();\n if(t.equals(\"END_OF_TEXT\")) break;\n for(String u:t.toLowerCase().split(\" \")){\n if(s.equals(u)) ans++;\n }\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 s.toLowerCase();\n int n=s.length();\n int ans=0;\n while(true){\n String t=sc.nextLine();\n if(t.equals(\"END_OF_TEXT\")) break;\n for(String u:t.toLowerCase().split(\" \")){\n if(s.equals(u)) ans++;\n }\n }\n System.out.println(ans);\n }", "main", "{\n Scanner sc=new Scanner(System.in);\n String s=sc.next();\n s.toLowerCase();\n int n=s.length();\n int ans=0;\n while(true){\n String t=sc.nextLine();\n if(t.equals(\"END_OF_TEXT\")) break;\n for(String u:t.toLowerCase().split(\" \")){\n if(s.equals(u)) ans++;\n }\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", "s.toLowerCase()", "s.toLowerCase", "s", "int n=s.length();", "n", "s.length()", "s.length", "s", "int ans=0;", "ans", "0", "while(true){\n String t=sc.nextLine();\n if(t.equals(\"END_OF_TEXT\")) break;\n for(String u:t.toLowerCase().split(\" \")){\n if(s.equals(u)) ans++;\n }\n }", "true", "{\n String t=sc.nextLine();\n if(t.equals(\"END_OF_TEXT\")) break;\n for(String u:t.toLowerCase().split(\" \")){\n if(s.equals(u)) ans++;\n }\n }", "String t=sc.nextLine();", "t", "sc.nextLine()", "sc.nextLine", "sc", "if(t.equals(\"END_OF_TEXT\")) break;", "t.equals(\"END_OF_TEXT\")", "t.equals", "t", "\"END_OF_TEXT\"", "break;", "for(String u:t.toLowerCase().split(\" \")){\n if(s.equals(u)) ans++;\n }", "String u", "t.toLowerCase().split(\" \")", "t.toLowerCase().split", "t.toLowerCase()", "t.toLowerCase", "t", "\" \"", "{\n if(s.equals(u)) ans++;\n }", "{\n if(s.equals(u)) ans++;\n }", "if(s.equals(u)) ans++;", "s.equals(u)", "s.equals", "s", "u", "ans++", "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 s.toLowerCase();\n int n=s.length();\n int ans=0;\n while(true){\n String t=sc.nextLine();\n if(t.equals(\"END_OF_TEXT\")) break;\n for(String u:t.toLowerCase().split(\" \")){\n if(s.equals(u)) ans++;\n }\n }\n System.out.println(ans);\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n String s=sc.next();\n s.toLowerCase();\n int n=s.length();\n int ans=0;\n while(true){\n String t=sc.nextLine();\n if(t.equals(\"END_OF_TEXT\")) break;\n for(String u:t.toLowerCase().split(\" \")){\n if(s.equals(u)) ans++;\n }\n }\n System.out.println(ans);\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); String s=sc.next(); s.toLowerCase(); int n=s.length(); int ans=0; while(true){ String t=sc.nextLine(); if(t.equals("END_OF_TEXT")) break; for(String u:t.toLowerCase().split(" ")){ if(s.equals(u)) ans++; } } System.out.println(ans); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 14, 4, 18, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 56, 5 ], [ 56, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 24, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 30, 35 ], [ 35, 36 ], [ 30, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 38, 43 ], [ 37, 44 ], [ 44, 45 ], [ 45, 46 ], [ 8, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 6, 53 ], [ 53, 54 ], [ 0, 55 ], [ 55, 56 ], [ 55, 57 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner stdin = new Scanner(System.in);\n String W = stdin.next().toUpperCase();\n int n = 0;\n while (true) {\n String T = stdin.next();\n if (T.equals(\"END_OF_TEXT\")) {\n break;\n } else if (T.toUpperCase().equals(W)) {\n n++;\n }\n }\n\n System.out.println(n);\n }\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n Scanner stdin = new Scanner(System.in);\n String W = stdin.next().toUpperCase();\n int n = 0;\n while (true) {\n String T = stdin.next();\n if (T.equals(\"END_OF_TEXT\")) {\n break;\n } else if (T.toUpperCase().equals(W)) {\n n++;\n }\n }\n\n System.out.println(n);\n }\n\n}", "Main", "public static void main(String[] args) {\n Scanner stdin = new Scanner(System.in);\n String W = stdin.next().toUpperCase();\n int n = 0;\n while (true) {\n String T = stdin.next();\n if (T.equals(\"END_OF_TEXT\")) {\n break;\n } else if (T.toUpperCase().equals(W)) {\n n++;\n }\n }\n\n System.out.println(n);\n }", "main", "{\n Scanner stdin = new Scanner(System.in);\n String W = stdin.next().toUpperCase();\n int n = 0;\n while (true) {\n String T = stdin.next();\n if (T.equals(\"END_OF_TEXT\")) {\n break;\n } else if (T.toUpperCase().equals(W)) {\n n++;\n }\n }\n\n System.out.println(n);\n }", "Scanner stdin = new Scanner(System.in);", "stdin", "new Scanner(System.in)", "String W = stdin.next().toUpperCase();", "W", "stdin.next().toUpperCase()", "stdin.next().toUpperCase", "stdin.next()", "stdin.next", "stdin", "int n = 0;", "n", "0", "while (true) {\n String T = stdin.next();\n if (T.equals(\"END_OF_TEXT\")) {\n break;\n } else if (T.toUpperCase().equals(W)) {\n n++;\n }\n }", "true", "{\n String T = stdin.next();\n if (T.equals(\"END_OF_TEXT\")) {\n break;\n } else if (T.toUpperCase().equals(W)) {\n n++;\n }\n }", "String T = stdin.next();", "T", "stdin.next()", "stdin.next", "stdin", "if (T.equals(\"END_OF_TEXT\")) {\n break;\n } else if (T.toUpperCase().equals(W)) {\n n++;\n }", "T.equals(\"END_OF_TEXT\")", "T.equals", "T", "\"END_OF_TEXT\"", "{\n break;\n }", "break;", "if (T.toUpperCase().equals(W)) {\n n++;\n }", "T.toUpperCase().equals(W)", "T.toUpperCase().equals", "T.toUpperCase()", "T.toUpperCase", "T", "W", "{\n n++;\n }", "n++", "n", "System.out.println(n)", "System.out.println", "System.out", "System", "System.out", "n", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n Scanner stdin = new Scanner(System.in);\n String W = stdin.next().toUpperCase();\n int n = 0;\n while (true) {\n String T = stdin.next();\n if (T.equals(\"END_OF_TEXT\")) {\n break;\n } else if (T.toUpperCase().equals(W)) {\n n++;\n }\n }\n\n System.out.println(n);\n }\n\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner stdin = new Scanner(System.in);\n String W = stdin.next().toUpperCase();\n int n = 0;\n while (true) {\n String T = stdin.next();\n if (T.equals(\"END_OF_TEXT\")) {\n break;\n } else if (T.toUpperCase().equals(W)) {\n n++;\n }\n }\n\n System.out.println(n);\n }\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner stdin = new Scanner(System.in); String W = stdin.next().toUpperCase(); int n = 0; while (true) { String T = stdin.next(); if (T.equals("END_OF_TEXT")) { break; } else if (T.toUpperCase().equals(W)) { n++; } } System.out.println(n); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 41, 13, 17, 41, 13, 20, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 4, 18, 13, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 87, 8 ], [ 87, 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 ], [ 11, 22 ], [ 22, 23 ], [ 22, 24 ], [ 11, 25 ], [ 25, 26 ], [ 25, 27 ], [ 11, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 30, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 36, 41 ], [ 41, 42 ], [ 30, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 46, 47 ], [ 47, 48 ], [ 11, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 49, 59 ], [ 59, 60 ], [ 60, 61 ], [ 49, 62 ], [ 63, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 64, 72 ], [ 72, 73 ], [ 73, 74 ], [ 11, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 11, 81 ], [ 81, 82 ], [ 82, 83 ], [ 9, 84 ], [ 84, 85 ], [ 0, 86 ], [ 86, 87 ], [ 86, 88 ] ]
[ "import java.util.Scanner;\nimport java.util.ArrayList;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.next();\n\t\tString T;\n\t\tint count = 0;\n\t\tArrayList<String> lowerT = new ArrayList<String>();\n\t\t;\n\t\twhile (true) {\n\t\t\tT = sc.next();\n\t\t\tif (T.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlowerT.add(T.toLowerCase());\n\t\t}\n\t\tfor (int i = 0; i < lowerT.size(); i++) {\n\t\t\tif (W.equals(lowerT.get(i))) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\tsc.close();\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.ArrayList;", "ArrayList", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.next();\n\t\tString T;\n\t\tint count = 0;\n\t\tArrayList<String> lowerT = new ArrayList<String>();\n\t\t;\n\t\twhile (true) {\n\t\t\tT = sc.next();\n\t\t\tif (T.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlowerT.add(T.toLowerCase());\n\t\t}\n\t\tfor (int i = 0; i < lowerT.size(); i++) {\n\t\t\tif (W.equals(lowerT.get(i))) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\tsc.close();\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.next();\n\t\tString T;\n\t\tint count = 0;\n\t\tArrayList<String> lowerT = new ArrayList<String>();\n\t\t;\n\t\twhile (true) {\n\t\t\tT = sc.next();\n\t\t\tif (T.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlowerT.add(T.toLowerCase());\n\t\t}\n\t\tfor (int i = 0; i < lowerT.size(); i++) {\n\t\t\tif (W.equals(lowerT.get(i))) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\tsc.close();\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.next();\n\t\tString T;\n\t\tint count = 0;\n\t\tArrayList<String> lowerT = new ArrayList<String>();\n\t\t;\n\t\twhile (true) {\n\t\t\tT = sc.next();\n\t\t\tif (T.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlowerT.add(T.toLowerCase());\n\t\t}\n\t\tfor (int i = 0; i < lowerT.size(); i++) {\n\t\t\tif (W.equals(lowerT.get(i))) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\tsc.close();\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String W = sc.next();", "W", "sc.next()", "sc.next", "sc", "String T;", "T", "int count = 0;", "count", "0", "ArrayList<String> lowerT = new ArrayList<String>();", "lowerT", "new ArrayList<String>()", "while (true) {\n\t\t\tT = sc.next();\n\t\t\tif (T.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlowerT.add(T.toLowerCase());\n\t\t}", "true", "{\n\t\t\tT = sc.next();\n\t\t\tif (T.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlowerT.add(T.toLowerCase());\n\t\t}", "T = sc.next()", "T", "sc.next()", "sc.next", "sc", "if (T.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}", "T.equals(\"END_OF_TEXT\")", "T.equals", "T", "\"END_OF_TEXT\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "lowerT.add(T.toLowerCase())", "lowerT.add", "lowerT", "T.toLowerCase()", "T.toLowerCase", "T", "for (int i = 0; i < lowerT.size(); i++) {\n\t\t\tif (W.equals(lowerT.get(i))) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < lowerT.size()", "i", "lowerT.size()", "lowerT.size", "lowerT", "i++", "i++", "i", "{\n\t\t\tif (W.equals(lowerT.get(i))) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "{\n\t\t\tif (W.equals(lowerT.get(i))) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "if (W.equals(lowerT.get(i))) {\n\t\t\t\tcount++;\n\t\t\t}", "W.equals(lowerT.get(i))", "W.equals", "W", "lowerT.get(i)", "lowerT.get", "lowerT", "i", "{\n\t\t\t\tcount++;\n\t\t\t}", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.next();\n\t\tString T;\n\t\tint count = 0;\n\t\tArrayList<String> lowerT = new ArrayList<String>();\n\t\t;\n\t\twhile (true) {\n\t\t\tT = sc.next();\n\t\t\tif (T.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlowerT.add(T.toLowerCase());\n\t\t}\n\t\tfor (int i = 0; i < lowerT.size(); i++) {\n\t\t\tif (W.equals(lowerT.get(i))) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\tsc.close();\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.next();\n\t\tString T;\n\t\tint count = 0;\n\t\tArrayList<String> lowerT = new ArrayList<String>();\n\t\t;\n\t\twhile (true) {\n\t\t\tT = sc.next();\n\t\t\tif (T.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlowerT.add(T.toLowerCase());\n\t\t}\n\t\tfor (int i = 0; i < lowerT.size(); i++) {\n\t\t\tif (W.equals(lowerT.get(i))) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\tsc.close();\n\t}\n}", "Main" ]
import java.util.Scanner; import java.util.ArrayList; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String W = sc.next(); String T; int count = 0; ArrayList<String> lowerT = new ArrayList<String>(); ; while (true) { T = sc.next(); if (T.equals("END_OF_TEXT")) { break; } lowerT.add(T.toLowerCase()); } for (int i = 0; i < lowerT.size(); i++) { if (W.equals(lowerT.get(i))) { count++; } } System.out.println(count); sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 4, 18, 4, 13, 41, 13, 41, 13, 17, 42, 40, 4, 18, 0, 13, 4, 13, 17, 30, 41, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 18, 13, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 4, 13, 23, 13, 12, 13, 30, 29, 4, 18, 13, 12, 13, 30, 14, 2, 13, 17, 30, 4, 18, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 93, 5 ], [ 93, 6 ], [ 6, 7 ], [ 6, 8 ], [ 93, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 11, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 11, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 25, 31 ], [ 23, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 32, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 46, 48 ], [ 39, 49 ], [ 49, 50 ], [ 50, 51 ], [ 39, 52 ], [ 53, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 54, 61 ], [ 61, 62 ], [ 62, 63 ], [ 11, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 11, 70 ], [ 70, 71 ], [ 9, 72 ], [ 72, 73 ], [ 93, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 93, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 0, 92 ], [ 92, 93 ], [ 92, 94 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static Scanner scanner = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\tString W = input().toLowerCase();\n\t\tString T;\n\t\tint count = 0;\n\n\t\twhile (!(T = input()).equals(\"END_OF_TEXT\")) {\n\n\t\t\tString[] TArrays = T.split(\" \");\n\n\t\t\tfor (int i = 0; i < TArrays.length; i++) {\n\n\t\t\t\tif (TArrays[i].equalsIgnoreCase(W)) {\n\n\t\t\t\t\tcount++;\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t\tclose();\n\n\t}\n\n\tpublic static String input() {\n\n\t\treturn scanner.nextLine();\n\n\t}\n\n\tpublic static void close() {\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static Scanner scanner = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\tString W = input().toLowerCase();\n\t\tString T;\n\t\tint count = 0;\n\n\t\twhile (!(T = input()).equals(\"END_OF_TEXT\")) {\n\n\t\t\tString[] TArrays = T.split(\" \");\n\n\t\t\tfor (int i = 0; i < TArrays.length; i++) {\n\n\t\t\t\tif (TArrays[i].equalsIgnoreCase(W)) {\n\n\t\t\t\t\tcount++;\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t\tclose();\n\n\t}\n\n\tpublic static String input() {\n\n\t\treturn scanner.nextLine();\n\n\t}\n\n\tpublic static void close() {\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}\n}", "Main", "public static Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "public static void main(String[] args) {\n\n\t\tString W = input().toLowerCase();\n\t\tString T;\n\t\tint count = 0;\n\n\t\twhile (!(T = input()).equals(\"END_OF_TEXT\")) {\n\n\t\t\tString[] TArrays = T.split(\" \");\n\n\t\t\tfor (int i = 0; i < TArrays.length; i++) {\n\n\t\t\t\tif (TArrays[i].equalsIgnoreCase(W)) {\n\n\t\t\t\t\tcount++;\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t\tclose();\n\n\t}", "main", "{\n\n\t\tString W = input().toLowerCase();\n\t\tString T;\n\t\tint count = 0;\n\n\t\twhile (!(T = input()).equals(\"END_OF_TEXT\")) {\n\n\t\t\tString[] TArrays = T.split(\" \");\n\n\t\t\tfor (int i = 0; i < TArrays.length; i++) {\n\n\t\t\t\tif (TArrays[i].equalsIgnoreCase(W)) {\n\n\t\t\t\t\tcount++;\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t\tclose();\n\n\t}", "String W = input().toLowerCase();", "W", "input().toLowerCase()", "input().toLowerCase", "input()", "input", "String T;", "T", "int count = 0;", "count", "0", "while (!(T = input()).equals(\"END_OF_TEXT\")) {\n\n\t\t\tString[] TArrays = T.split(\" \");\n\n\t\t\tfor (int i = 0; i < TArrays.length; i++) {\n\n\t\t\t\tif (TArrays[i].equalsIgnoreCase(W)) {\n\n\t\t\t\t\tcount++;\n\n\t\t\t\t}\n\t\t\t}\n\t\t}", "!(T = input()).equals(\"END_OF_TEXT\")", "(T = input()).equals(\"END_OF_TEXT\")", "(T = input()).equals", "(T = input())", "T", "input()", "input", "\"END_OF_TEXT\"", "{\n\n\t\t\tString[] TArrays = T.split(\" \");\n\n\t\t\tfor (int i = 0; i < TArrays.length; i++) {\n\n\t\t\t\tif (TArrays[i].equalsIgnoreCase(W)) {\n\n\t\t\t\t\tcount++;\n\n\t\t\t\t}\n\t\t\t}\n\t\t}", "String[] TArrays = T.split(\" \");", "TArrays", "T.split(\" \")", "T.split", "T", "\" \"", "for (int i = 0; i < TArrays.length; i++) {\n\n\t\t\t\tif (TArrays[i].equalsIgnoreCase(W)) {\n\n\t\t\t\t\tcount++;\n\n\t\t\t\t}\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < TArrays.length", "i", "TArrays.length", "TArrays", "TArrays.length", "i++", "i++", "i", "{\n\n\t\t\t\tif (TArrays[i].equalsIgnoreCase(W)) {\n\n\t\t\t\t\tcount++;\n\n\t\t\t\t}\n\t\t\t}", "{\n\n\t\t\t\tif (TArrays[i].equalsIgnoreCase(W)) {\n\n\t\t\t\t\tcount++;\n\n\t\t\t\t}\n\t\t\t}", "if (TArrays[i].equalsIgnoreCase(W)) {\n\n\t\t\t\t\tcount++;\n\n\t\t\t\t}", "TArrays[i].equalsIgnoreCase(W)", "TArrays[i].equalsIgnoreCase", "TArrays[i]", "TArrays", "i", "W", "{\n\n\t\t\t\t\tcount++;\n\n\t\t\t\t}", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "close()", "close", "String[] args", "args", "public static String input() {\n\n\t\treturn scanner.nextLine();\n\n\t}", "input", "{\n\n\t\treturn scanner.nextLine();\n\n\t}", "return scanner.nextLine();", "scanner.nextLine()", "scanner.nextLine", "scanner", "public static void close() {\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}", "close", "{\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}", "if (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}", "scanner != null", "scanner", "null", "{\n\n\t\t\tscanner.close();\n\n\t\t}", "scanner.close()", "scanner.close", "scanner", "public class Main {\n\n\tpublic static Scanner scanner = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\tString W = input().toLowerCase();\n\t\tString T;\n\t\tint count = 0;\n\n\t\twhile (!(T = input()).equals(\"END_OF_TEXT\")) {\n\n\t\t\tString[] TArrays = T.split(\" \");\n\n\t\t\tfor (int i = 0; i < TArrays.length; i++) {\n\n\t\t\t\tif (TArrays[i].equalsIgnoreCase(W)) {\n\n\t\t\t\t\tcount++;\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t\tclose();\n\n\t}\n\n\tpublic static String input() {\n\n\t\treturn scanner.nextLine();\n\n\t}\n\n\tpublic static void close() {\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static Scanner scanner = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\tString W = input().toLowerCase();\n\t\tString T;\n\t\tint count = 0;\n\n\t\twhile (!(T = input()).equals(\"END_OF_TEXT\")) {\n\n\t\t\tString[] TArrays = T.split(\" \");\n\n\t\t\tfor (int i = 0; i < TArrays.length; i++) {\n\n\t\t\t\tif (TArrays[i].equalsIgnoreCase(W)) {\n\n\t\t\t\t\tcount++;\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t\tclose();\n\n\t}\n\n\tpublic static String input() {\n\n\t\treturn scanner.nextLine();\n\n\t}\n\n\tpublic static void close() {\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static Scanner scanner = new Scanner(System.in); public static void main(String[] args) { String W = input().toLowerCase(); String T; int count = 0; while (!(T = input()).equals("END_OF_TEXT")) { String[] TArrays = T.split(" "); for (int i = 0; i < TArrays.length; i++) { if (TArrays[i].equalsIgnoreCase(W)) { count++; } } } System.out.println(count); close(); } public static String input() { return scanner.nextLine(); } public static void close() { if (scanner != null) { scanner.close(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 4, 18, 13, 13, 4, 18, 13, 17, 41, 13, 4, 18, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 17, 28, 13, 13, 30, 30, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 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 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 33, 34 ], [ 22, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 22, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 8, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 8, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 8, 56 ], [ 56, 57 ], [ 56, 58 ], [ 8, 59 ], [ 59, 60 ], [ 59, 61 ], [ 59, 62 ], [ 63, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 64, 69 ], [ 69, 70 ], [ 70, 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.Scanner;\n\npublic class Main {\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n\n String w = scanner.nextLine();\n StringBuilder t = new StringBuilder();\n\n while(true){\n String input = scanner.nextLine();\n\n if(input.equals(\"END_OF_TEXT\")){\n break;\n }\n\n t.append(input);\n t.append(\" \");\n }\n\n String text = t.toString().toLowerCase();\n String[] textArray = text.split(\"\\\\s+\");\n int count = 0;\n for(String txt : textArray){\n if(txt.equals(w)){\n count++;\n }\n }\n System.out.println(count);\n scanner.close();\n }\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n\n String w = scanner.nextLine();\n StringBuilder t = new StringBuilder();\n\n while(true){\n String input = scanner.nextLine();\n\n if(input.equals(\"END_OF_TEXT\")){\n break;\n }\n\n t.append(input);\n t.append(\" \");\n }\n\n String text = t.toString().toLowerCase();\n String[] textArray = text.split(\"\\\\s+\");\n int count = 0;\n for(String txt : textArray){\n if(txt.equals(w)){\n count++;\n }\n }\n System.out.println(count);\n scanner.close();\n }\n}", "Main", "public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n\n String w = scanner.nextLine();\n StringBuilder t = new StringBuilder();\n\n while(true){\n String input = scanner.nextLine();\n\n if(input.equals(\"END_OF_TEXT\")){\n break;\n }\n\n t.append(input);\n t.append(\" \");\n }\n\n String text = t.toString().toLowerCase();\n String[] textArray = text.split(\"\\\\s+\");\n int count = 0;\n for(String txt : textArray){\n if(txt.equals(w)){\n count++;\n }\n }\n System.out.println(count);\n scanner.close();\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n\n String w = scanner.nextLine();\n StringBuilder t = new StringBuilder();\n\n while(true){\n String input = scanner.nextLine();\n\n if(input.equals(\"END_OF_TEXT\")){\n break;\n }\n\n t.append(input);\n t.append(\" \");\n }\n\n String text = t.toString().toLowerCase();\n String[] textArray = text.split(\"\\\\s+\");\n int count = 0;\n for(String txt : textArray){\n if(txt.equals(w)){\n count++;\n }\n }\n System.out.println(count);\n scanner.close();\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "String w = scanner.nextLine();", "w", "scanner.nextLine()", "scanner.nextLine", "scanner", "StringBuilder t = new StringBuilder();", "t", "new StringBuilder()", "while(true){\n String input = scanner.nextLine();\n\n if(input.equals(\"END_OF_TEXT\")){\n break;\n }\n\n t.append(input);\n t.append(\" \");\n }", "true", "{\n String input = scanner.nextLine();\n\n if(input.equals(\"END_OF_TEXT\")){\n break;\n }\n\n t.append(input);\n t.append(\" \");\n }", "String input = scanner.nextLine();", "input", "scanner.nextLine()", "scanner.nextLine", "scanner", "if(input.equals(\"END_OF_TEXT\")){\n break;\n }", "input.equals(\"END_OF_TEXT\")", "input.equals", "input", "\"END_OF_TEXT\"", "{\n break;\n }", "break;", "t.append(input)", "t.append", "t", "input", "t.append(\" \")", "t.append", "t", "\" \"", "String text = t.toString().toLowerCase();", "text", "t.toString().toLowerCase()", "t.toString().toLowerCase", "t.toString()", "t.toString", "t", "String[] textArray = text.split(\"\\\\s+\");", "textArray", "text.split(\"\\\\s+\")", "text.split", "text", "\"\\\\s+\"", "int count = 0;", "count", "0", "for(String txt : textArray){\n if(txt.equals(w)){\n count++;\n }\n }", "String txt", "textArray", "{\n if(txt.equals(w)){\n count++;\n }\n }", "{\n if(txt.equals(w)){\n count++;\n }\n }", "if(txt.equals(w)){\n count++;\n }", "txt.equals(w)", "txt.equals", "txt", "w", "{\n count++;\n }", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "scanner.close()", "scanner.close", "scanner", "String[] args", "args", "public class Main {\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n\n String w = scanner.nextLine();\n StringBuilder t = new StringBuilder();\n\n while(true){\n String input = scanner.nextLine();\n\n if(input.equals(\"END_OF_TEXT\")){\n break;\n }\n\n t.append(input);\n t.append(\" \");\n }\n\n String text = t.toString().toLowerCase();\n String[] textArray = text.split(\"\\\\s+\");\n int count = 0;\n for(String txt : textArray){\n if(txt.equals(w)){\n count++;\n }\n }\n System.out.println(count);\n scanner.close();\n }\n}", "public class Main {\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n\n String w = scanner.nextLine();\n StringBuilder t = new StringBuilder();\n\n while(true){\n String input = scanner.nextLine();\n\n if(input.equals(\"END_OF_TEXT\")){\n break;\n }\n\n t.append(input);\n t.append(\" \");\n }\n\n String text = t.toString().toLowerCase();\n String[] textArray = text.split(\"\\\\s+\");\n int count = 0;\n for(String txt : textArray){\n if(txt.equals(w)){\n count++;\n }\n }\n System.out.println(count);\n scanner.close();\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner scanner = new Scanner(System.in); String w = scanner.nextLine(); StringBuilder t = new StringBuilder(); while(true){ String input = scanner.nextLine(); if(input.equals("END_OF_TEXT")){ break; } t.append(input); t.append(" "); } String text = t.toString().toLowerCase(); String[] textArray = text.split("\\s+"); int count = 0; for(String txt : textArray){ if(txt.equals(w)){ count++; } } System.out.println(count); scanner.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 4, 18, 20, 23, 13, 12, 13, 30, 41, 13, 4, 18, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 4, 18, 13, 17, 14, 4, 18, 18, 13, 17, 17, 3, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 4, 18, 18, 13, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 89, 11 ], [ 89, 12 ], [ 12, 13 ], [ 12, 14 ], [ 89, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 15, 21 ], [ 21, 22 ], [ 89, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 25, 33 ], [ 33, 34 ], [ 33, 35 ], [ 25, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 41, 46 ], [ 38, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 47, 54 ], [ 38, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 55, 65 ], [ 65, 66 ], [ 66, 67 ], [ 55, 68 ], [ 69, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 71, 78 ], [ 70, 79 ], [ 79, 80 ], [ 80, 81 ], [ 25, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 0, 88 ], [ 88, 89 ], [ 88, 90 ] ]
[ "import java.util.HashMap;\nimport java.util.Map;\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n new Main().solve();\n }\n\n Scanner sc = new Scanner(System.in);\n\n void solve() {\n String W = sc.nextLine().toLowerCase();\n int cnt = 0;\n while (true) {\n String[] arr = sc.nextLine().split(\" \");\n if (arr[0].equals(\"END_OF_TEXT\")) break;\n for (int i = 0; i < arr.length; ++i) {\n if (arr[i].toLowerCase().equals(W)) {\n cnt++;\n }\n }\n }\n System.out.println(cnt);\n }\n}\n\n\n\n", "import java.util.HashMap;", "HashMap", "java.util", "import java.util.Map;", "Map", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n new Main().solve();\n }\n\n Scanner sc = new Scanner(System.in);\n\n void solve() {\n String W = sc.nextLine().toLowerCase();\n int cnt = 0;\n while (true) {\n String[] arr = sc.nextLine().split(\" \");\n if (arr[0].equals(\"END_OF_TEXT\")) break;\n for (int i = 0; i < arr.length; ++i) {\n if (arr[i].toLowerCase().equals(W)) {\n cnt++;\n }\n }\n }\n System.out.println(cnt);\n }\n}", "Main", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "public static void main(String[] args) {\n new Main().solve();\n }", "main", "{\n new Main().solve();\n }", "new Main().solve()", "new Main().solve", "new Main()", "String[] args", "args", "void solve() {\n String W = sc.nextLine().toLowerCase();\n int cnt = 0;\n while (true) {\n String[] arr = sc.nextLine().split(\" \");\n if (arr[0].equals(\"END_OF_TEXT\")) break;\n for (int i = 0; i < arr.length; ++i) {\n if (arr[i].toLowerCase().equals(W)) {\n cnt++;\n }\n }\n }\n System.out.println(cnt);\n }", "solve", "{\n String W = sc.nextLine().toLowerCase();\n int cnt = 0;\n while (true) {\n String[] arr = sc.nextLine().split(\" \");\n if (arr[0].equals(\"END_OF_TEXT\")) break;\n for (int i = 0; i < arr.length; ++i) {\n if (arr[i].toLowerCase().equals(W)) {\n cnt++;\n }\n }\n }\n System.out.println(cnt);\n }", "String W = sc.nextLine().toLowerCase();", "W", "sc.nextLine().toLowerCase()", "sc.nextLine().toLowerCase", "sc.nextLine()", "sc.nextLine", "sc", "int cnt = 0;", "cnt", "0", "while (true) {\n String[] arr = sc.nextLine().split(\" \");\n if (arr[0].equals(\"END_OF_TEXT\")) break;\n for (int i = 0; i < arr.length; ++i) {\n if (arr[i].toLowerCase().equals(W)) {\n cnt++;\n }\n }\n }", "true", "{\n String[] arr = sc.nextLine().split(\" \");\n if (arr[0].equals(\"END_OF_TEXT\")) break;\n for (int i = 0; i < arr.length; ++i) {\n if (arr[i].toLowerCase().equals(W)) {\n cnt++;\n }\n }\n }", "String[] arr = sc.nextLine().split(\" \");", "arr", "sc.nextLine().split(\" \")", "sc.nextLine().split", "sc.nextLine()", "sc.nextLine", "sc", "\" \"", "if (arr[0].equals(\"END_OF_TEXT\")) break;", "arr[0].equals(\"END_OF_TEXT\")", "arr[0].equals", "arr[0]", "arr", "0", "\"END_OF_TEXT\"", "break;", "for (int i = 0; i < arr.length; ++i) {\n if (arr[i].toLowerCase().equals(W)) {\n cnt++;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < arr.length", "i", "arr.length", "arr", "arr.length", "++i", "++i", "i", "{\n if (arr[i].toLowerCase().equals(W)) {\n cnt++;\n }\n }", "{\n if (arr[i].toLowerCase().equals(W)) {\n cnt++;\n }\n }", "if (arr[i].toLowerCase().equals(W)) {\n cnt++;\n }", "arr[i].toLowerCase().equals(W)", "arr[i].toLowerCase().equals", "arr[i].toLowerCase()", "arr[i].toLowerCase", "arr[i]", "arr", "i", "W", "{\n cnt++;\n }", "cnt++", "cnt", "System.out.println(cnt)", "System.out.println", "System.out", "System", "System.out", "cnt", "public class Main {\n\n public static void main(String[] args) {\n new Main().solve();\n }\n\n Scanner sc = new Scanner(System.in);\n\n void solve() {\n String W = sc.nextLine().toLowerCase();\n int cnt = 0;\n while (true) {\n String[] arr = sc.nextLine().split(\" \");\n if (arr[0].equals(\"END_OF_TEXT\")) break;\n for (int i = 0; i < arr.length; ++i) {\n if (arr[i].toLowerCase().equals(W)) {\n cnt++;\n }\n }\n }\n System.out.println(cnt);\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n new Main().solve();\n }\n\n Scanner sc = new Scanner(System.in);\n\n void solve() {\n String W = sc.nextLine().toLowerCase();\n int cnt = 0;\n while (true) {\n String[] arr = sc.nextLine().split(\" \");\n if (arr[0].equals(\"END_OF_TEXT\")) break;\n for (int i = 0; i < arr.length; ++i) {\n if (arr[i].toLowerCase().equals(W)) {\n cnt++;\n }\n }\n }\n System.out.println(cnt);\n }\n}", "Main" ]
import java.util.HashMap; import java.util.Map; import java.util.Scanner; public class Main { public static void main(String[] args) { new Main().solve(); } Scanner sc = new Scanner(System.in); void solve() { String W = sc.nextLine().toLowerCase(); int cnt = 0; while (true) { String[] arr = sc.nextLine().split(" "); if (arr[0].equals("END_OF_TEXT")) break; for (int i = 0; i < arr.length; ++i) { if (arr[i].toLowerCase().equals(W)) { cnt++; } } } System.out.println(cnt); } }
[ 7, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 0, 13, 17, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 20, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 13, 14, 2, 2, 18, 13, 13, 17, 2, 18, 13, 13, 17, 30, 0, 18, 13, 13, 2, 17, 17, 11, 1, 30, 30, 0, 13, 4, 18, 13, 14, 4, 18, 17, 13, 30, 3, 30, 0, 13, 4, 18, 13, 0, 13, 20, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 13, 14, 2, 2, 18, 13, 13, 17, 2, 18, 13, 13, 17, 30, 0, 18, 13, 13, 2, 17, 17, 14, 2, 13, 13, 30, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 18, 13, 13, 3, 14, 2, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 23, 13, 12, 13, 30, 4, 18, 20, 18, 13, 13, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 211, 2 ], [ 211, 3 ], [ 3, 4 ], [ 3, 5 ], [ 5, 6 ], [ 6, 7 ], [ 6, 8 ], [ 5, 9 ], [ 9, 10 ], [ 5, 11 ], [ 11, 12 ], [ 5, 13 ], [ 13, 14 ], [ 5, 15 ], [ 15, 16 ], [ 5, 17 ], [ 17, 18 ], [ 5, 19 ], [ 19, 20 ], [ 5, 21 ], [ 21, 22 ], [ 5, 23 ], [ 23, 24 ], [ 5, 25 ], [ 25, 26 ], [ 25, 27 ], [ 5, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 5, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 5, 38 ], [ 38, 39 ], [ 38, 40 ], [ 5, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 42, 47 ], [ 47, 48 ], [ 47, 49 ], [ 42, 50 ], [ 50, 51 ], [ 51, 52 ], [ 42, 53 ], [ 54, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 54, 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 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 80, 81 ], [ 80, 82 ], [ 5, 83 ], [ 83, 84 ], [ 83, 85 ], [ 86, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 90, 91 ], [ 86, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 92, 97 ], [ 97, 98 ], [ 92, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 103, 104 ], [ 99, 105 ], [ 105, 106 ], [ 105, 107 ], [ 99, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 109, 114 ], [ 114, 115 ], [ 114, 116 ], [ 109, 117 ], [ 117, 118 ], [ 118, 119 ], [ 109, 120 ], [ 121, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 122, 126 ], [ 126, 127 ], [ 127, 128 ], [ 126, 129 ], [ 121, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 132, 136 ], [ 131, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 137, 141 ], [ 130, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 143, 147 ], [ 147, 148 ], [ 147, 149 ], [ 99, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 150, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 155, 160 ], [ 160, 161 ], [ 160, 162 ], [ 155, 163 ], [ 163, 164 ], [ 164, 165 ], [ 155, 166 ], [ 167, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 170, 171 ], [ 170, 172 ], [ 169, 173 ], [ 173, 174 ], [ 173, 175 ], [ 168, 176 ], [ 154, 177 ], [ 177, 178 ], [ 178, 179 ], [ 178, 180 ], [ 177, 181 ], [ 181, 182 ], [ 5, 183 ], [ 183, 184 ], [ 184, 185 ], [ 185, 186 ], [ 185, 187 ], [ 183, 188 ], [ 5, 189 ], [ 189, 190 ], [ 190, 191 ], [ 3, 192 ], [ 192, 193 ], [ 3, 194 ], [ 194, 195 ], [ 211, 196 ], [ 196, 197 ], [ 196, 198 ], [ 198, 199 ], [ 199, 200 ], [ 200, 201 ], [ 199, 202 ], [ 202, 203 ], [ 202, 204 ], [ 199, 205 ], [ 205, 206 ], [ 205, 207 ], [ 196, 208 ], [ 208, 209 ], [ 0, 210 ], [ 210, 211 ], [ 210, 212 ] ]
[ "public class Main{\n public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n String w, t;\n int count, i, wm, tm;\n char[] wch, tch;\n\n count = 0;\n w = sc.next();\n wm = w.length();\n wch = new char[wm];\n for(i = 0;i < wm;i++){\n wch[i] = w.charAt(i);\n if(wch[i] >= 'A' && wch[i] <= 'Z'){\n wch[i] += 'a' - 'A';\n }\n }\n\n for(;;){\n t = sc.next();\n if(\"END_OF_TEXT\".equals(t)){\n break;\n }else{\n tm = t.length();\n tch = new char[tm];\n for(i = 0;i < tm;i++){\n tch[i] = t.charAt(i);\n if(tch[i] >= 'A' && tch[i] <= 'Z'){\n tch[i] += 'a' - 'A';\n }\n }\n\n if(wm == tm){\n for(i = 0;i < tm;i++){\n if(wch[i] != tch[i])break;\n }\n if(i == tm)count++;\n }\n }\n }\n\n System.out.println(count);\n\n sc.close();\n }\n public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }\n}", "public class Main{\n public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n String w, t;\n int count, i, wm, tm;\n char[] wch, tch;\n\n count = 0;\n w = sc.next();\n wm = w.length();\n wch = new char[wm];\n for(i = 0;i < wm;i++){\n wch[i] = w.charAt(i);\n if(wch[i] >= 'A' && wch[i] <= 'Z'){\n wch[i] += 'a' - 'A';\n }\n }\n\n for(;;){\n t = sc.next();\n if(\"END_OF_TEXT\".equals(t)){\n break;\n }else{\n tm = t.length();\n tch = new char[tm];\n for(i = 0;i < tm;i++){\n tch[i] = t.charAt(i);\n if(tch[i] >= 'A' && tch[i] <= 'Z'){\n tch[i] += 'a' - 'A';\n }\n }\n\n if(wm == tm){\n for(i = 0;i < tm;i++){\n if(wch[i] != tch[i])break;\n }\n if(i == tm)count++;\n }\n }\n }\n\n System.out.println(count);\n\n sc.close();\n }\n public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }\n}", "Main", "public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n String w, t;\n int count, i, wm, tm;\n char[] wch, tch;\n\n count = 0;\n w = sc.next();\n wm = w.length();\n wch = new char[wm];\n for(i = 0;i < wm;i++){\n wch[i] = w.charAt(i);\n if(wch[i] >= 'A' && wch[i] <= 'Z'){\n wch[i] += 'a' - 'A';\n }\n }\n\n for(;;){\n t = sc.next();\n if(\"END_OF_TEXT\".equals(t)){\n break;\n }else{\n tm = t.length();\n tch = new char[tm];\n for(i = 0;i < tm;i++){\n tch[i] = t.charAt(i);\n if(tch[i] >= 'A' && tch[i] <= 'Z'){\n tch[i] += 'a' - 'A';\n }\n }\n\n if(wm == tm){\n for(i = 0;i < tm;i++){\n if(wch[i] != tch[i])break;\n }\n if(i == tm)count++;\n }\n }\n }\n\n System.out.println(count);\n\n sc.close();\n }", "run", "{\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n String w, t;\n int count, i, wm, tm;\n char[] wch, tch;\n\n count = 0;\n w = sc.next();\n wm = w.length();\n wch = new char[wm];\n for(i = 0;i < wm;i++){\n wch[i] = w.charAt(i);\n if(wch[i] >= 'A' && wch[i] <= 'Z'){\n wch[i] += 'a' - 'A';\n }\n }\n\n for(;;){\n t = sc.next();\n if(\"END_OF_TEXT\".equals(t)){\n break;\n }else{\n tm = t.length();\n tch = new char[tm];\n for(i = 0;i < tm;i++){\n tch[i] = t.charAt(i);\n if(tch[i] >= 'A' && tch[i] <= 'Z'){\n tch[i] += 'a' - 'A';\n }\n }\n\n if(wm == tm){\n for(i = 0;i < tm;i++){\n if(wch[i] != tch[i])break;\n }\n if(i == tm)count++;\n }\n }\n }\n\n System.out.println(count);\n\n sc.close();\n }", "java.util.Scanner sc = new java.util.Scanner(in);", "sc", "new java.util.Scanner(in)", "String w", "w", "t;", "t", "int count", "count", "i", "i", "wm", "wm", "tm;", "tm", "char[] wch", "wch", "tch;", "tch", "count = 0", "count", "0", "w = sc.next()", "w", "sc.next()", "sc.next", "sc", "wm = w.length()", "wm", "w.length()", "w.length", "w", "wch = new char[wm]", "wch", "new char[wm]", "wm", "for(i = 0;i < wm;i++){\n wch[i] = w.charAt(i);\n if(wch[i] >= 'A' && wch[i] <= 'Z'){\n wch[i] += 'a' - 'A';\n }\n }", "i = 0;", "i = 0", "i", "0", "i < wm", "i", "wm", "i++", "i++", "i", "{\n wch[i] = w.charAt(i);\n if(wch[i] >= 'A' && wch[i] <= 'Z'){\n wch[i] += 'a' - 'A';\n }\n }", "{\n wch[i] = w.charAt(i);\n if(wch[i] >= 'A' && wch[i] <= 'Z'){\n wch[i] += 'a' - 'A';\n }\n }", "wch[i] = w.charAt(i)", "wch[i]", "wch", "i", "w.charAt(i)", "w.charAt", "w", "i", "if(wch[i] >= 'A' && wch[i] <= 'Z'){\n wch[i] += 'a' - 'A';\n }", "wch[i] >= 'A' && wch[i] <= 'Z'", "wch[i] >= 'A'", "wch[i]", "wch", "i", "'A'", "wch[i] <= 'Z'", "wch[i]", "wch", "i", "'Z'", "{\n wch[i] += 'a' - 'A';\n }", "wch[i] += 'a' - 'A'", "wch[i]", "wch", "i", "'a' - 'A'", "'a'", "'A'", "for(;;){\n t = sc.next();\n if(\"END_OF_TEXT\".equals(t)){\n break;\n }else{\n tm = t.length();\n tch = new char[tm];\n for(i = 0;i < tm;i++){\n tch[i] = t.charAt(i);\n if(tch[i] >= 'A' && tch[i] <= 'Z'){\n tch[i] += 'a' - 'A';\n }\n }\n\n if(wm == tm){\n for(i = 0;i < tm;i++){\n if(wch[i] != tch[i])break;\n }\n if(i == tm)count++;\n }\n }\n }", ";", "{\n t = sc.next();\n if(\"END_OF_TEXT\".equals(t)){\n break;\n }else{\n tm = t.length();\n tch = new char[tm];\n for(i = 0;i < tm;i++){\n tch[i] = t.charAt(i);\n if(tch[i] >= 'A' && tch[i] <= 'Z'){\n tch[i] += 'a' - 'A';\n }\n }\n\n if(wm == tm){\n for(i = 0;i < tm;i++){\n if(wch[i] != tch[i])break;\n }\n if(i == tm)count++;\n }\n }\n }", "{\n t = sc.next();\n if(\"END_OF_TEXT\".equals(t)){\n break;\n }else{\n tm = t.length();\n tch = new char[tm];\n for(i = 0;i < tm;i++){\n tch[i] = t.charAt(i);\n if(tch[i] >= 'A' && tch[i] <= 'Z'){\n tch[i] += 'a' - 'A';\n }\n }\n\n if(wm == tm){\n for(i = 0;i < tm;i++){\n if(wch[i] != tch[i])break;\n }\n if(i == tm)count++;\n }\n }\n }", "t = sc.next()", "t", "sc.next()", "sc.next", "sc", "if(\"END_OF_TEXT\".equals(t)){\n break;\n }else{\n tm = t.length();\n tch = new char[tm];\n for(i = 0;i < tm;i++){\n tch[i] = t.charAt(i);\n if(tch[i] >= 'A' && tch[i] <= 'Z'){\n tch[i] += 'a' - 'A';\n }\n }\n\n if(wm == tm){\n for(i = 0;i < tm;i++){\n if(wch[i] != tch[i])break;\n }\n if(i == tm)count++;\n }\n }", "\"END_OF_TEXT\".equals(t)", "\"END_OF_TEXT\".equals", "\"END_OF_TEXT\"", "t", "{\n break;\n }", "break;", "{\n tm = t.length();\n tch = new char[tm];\n for(i = 0;i < tm;i++){\n tch[i] = t.charAt(i);\n if(tch[i] >= 'A' && tch[i] <= 'Z'){\n tch[i] += 'a' - 'A';\n }\n }\n\n if(wm == tm){\n for(i = 0;i < tm;i++){\n if(wch[i] != tch[i])break;\n }\n if(i == tm)count++;\n }\n }", "tm = t.length()", "tm", "t.length()", "t.length", "t", "tch = new char[tm]", "tch", "new char[tm]", "tm", "for(i = 0;i < tm;i++){\n tch[i] = t.charAt(i);\n if(tch[i] >= 'A' && tch[i] <= 'Z'){\n tch[i] += 'a' - 'A';\n }\n }", "i = 0;", "i = 0", "i", "0", "i < tm", "i", "tm", "i++", "i++", "i", "{\n tch[i] = t.charAt(i);\n if(tch[i] >= 'A' && tch[i] <= 'Z'){\n tch[i] += 'a' - 'A';\n }\n }", "{\n tch[i] = t.charAt(i);\n if(tch[i] >= 'A' && tch[i] <= 'Z'){\n tch[i] += 'a' - 'A';\n }\n }", "tch[i] = t.charAt(i)", "tch[i]", "tch", "i", "t.charAt(i)", "t.charAt", "t", "i", "if(tch[i] >= 'A' && tch[i] <= 'Z'){\n tch[i] += 'a' - 'A';\n }", "tch[i] >= 'A' && tch[i] <= 'Z'", "tch[i] >= 'A'", "tch[i]", "tch", "i", "'A'", "tch[i] <= 'Z'", "tch[i]", "tch", "i", "'Z'", "{\n tch[i] += 'a' - 'A';\n }", "tch[i] += 'a' - 'A'", "tch[i]", "tch", "i", "'a' - 'A'", "'a'", "'A'", "if(wm == tm){\n for(i = 0;i < tm;i++){\n if(wch[i] != tch[i])break;\n }\n if(i == tm)count++;\n }", "wm == tm", "wm", "tm", "{\n for(i = 0;i < tm;i++){\n if(wch[i] != tch[i])break;\n }\n if(i == tm)count++;\n }", "for(i = 0;i < tm;i++){\n if(wch[i] != tch[i])break;\n }", "i = 0;", "i = 0", "i", "0", "i < tm", "i", "tm", "i++", "i++", "i", "{\n if(wch[i] != tch[i])break;\n }", "{\n if(wch[i] != tch[i])break;\n }", "if(wch[i] != tch[i])break;", "wch[i] != tch[i]", "wch[i]", "wch", "i", "tch[i]", "tch", "i", "break;", "if(i == tm)count++;", "i == tm", "i", "tm", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "sc.close()", "sc.close", "sc", "java.io.InputStream in", "in", "java.io.PrintStream out", "out", "public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }", "main", "{\n (new Main()).run(System.in, System.out);\n }", "(new Main()).run(System.in, System.out)", "(new Main()).run", "(new Main())", "System.in", "System", "System.in", "System.out", "System", "System.out", "String[] args", "args", "public class Main{\n public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n String w, t;\n int count, i, wm, tm;\n char[] wch, tch;\n\n count = 0;\n w = sc.next();\n wm = w.length();\n wch = new char[wm];\n for(i = 0;i < wm;i++){\n wch[i] = w.charAt(i);\n if(wch[i] >= 'A' && wch[i] <= 'Z'){\n wch[i] += 'a' - 'A';\n }\n }\n\n for(;;){\n t = sc.next();\n if(\"END_OF_TEXT\".equals(t)){\n break;\n }else{\n tm = t.length();\n tch = new char[tm];\n for(i = 0;i < tm;i++){\n tch[i] = t.charAt(i);\n if(tch[i] >= 'A' && tch[i] <= 'Z'){\n tch[i] += 'a' - 'A';\n }\n }\n\n if(wm == tm){\n for(i = 0;i < tm;i++){\n if(wch[i] != tch[i])break;\n }\n if(i == tm)count++;\n }\n }\n }\n\n System.out.println(count);\n\n sc.close();\n }\n public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }\n}", "public class Main{\n public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n String w, t;\n int count, i, wm, tm;\n char[] wch, tch;\n\n count = 0;\n w = sc.next();\n wm = w.length();\n wch = new char[wm];\n for(i = 0;i < wm;i++){\n wch[i] = w.charAt(i);\n if(wch[i] >= 'A' && wch[i] <= 'Z'){\n wch[i] += 'a' - 'A';\n }\n }\n\n for(;;){\n t = sc.next();\n if(\"END_OF_TEXT\".equals(t)){\n break;\n }else{\n tm = t.length();\n tch = new char[tm];\n for(i = 0;i < tm;i++){\n tch[i] = t.charAt(i);\n if(tch[i] >= 'A' && tch[i] <= 'Z'){\n tch[i] += 'a' - 'A';\n }\n }\n\n if(wm == tm){\n for(i = 0;i < tm;i++){\n if(wch[i] != tch[i])break;\n }\n if(i == tm)count++;\n }\n }\n }\n\n System.out.println(count);\n\n sc.close();\n }\n public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }\n}", "Main" ]
public class Main{ public void run(java.io.InputStream in, java.io.PrintStream out){ java.util.Scanner sc = new java.util.Scanner(in); /*answer*/ String w, t; int count, i, wm, tm; char[] wch, tch; count = 0; w = sc.next(); wm = w.length(); wch = new char[wm]; for(i = 0;i < wm;i++){ wch[i] = w.charAt(i); if(wch[i] >= 'A' && wch[i] <= 'Z'){ wch[i] += 'a' - 'A'; } } for(;;){ t = sc.next(); if("END_OF_TEXT".equals(t)){ break; }else{ tm = t.length(); tch = new char[tm]; for(i = 0;i < tm;i++){ tch[i] = t.charAt(i); if(tch[i] >= 'A' && tch[i] <= 'Z'){ tch[i] += 'a' - 'A'; } } if(wm == tm){ for(i = 0;i < tm;i++){ if(wch[i] != tch[i])break; } if(i == tm)count++; } } } System.out.println(count); sc.close(); } public static void main(String[] args){ (new Main()).run(System.in, System.out); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 17, 17, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 64, 5 ], [ 64, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 33, 34 ], [ 22, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 22, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 42, 46 ], [ 22, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 47, 52 ], [ 52, 53 ], [ 53, 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\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.next();\n\t\tint count =0;\n\t\twhile(true) {\n\t\t\tString t = sc.next();\n\t\t\tif (t.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tt = t.toLowerCase();\n\t\t\tt = t.replace(\".\", \"\");\n\t\t\tif (t.equals(W)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\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\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.next();\n\t\tint count =0;\n\t\twhile(true) {\n\t\t\tString t = sc.next();\n\t\t\tif (t.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tt = t.toLowerCase();\n\t\t\tt = t.replace(\".\", \"\");\n\t\t\tif (t.equals(W)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.next();\n\t\tint count =0;\n\t\twhile(true) {\n\t\t\tString t = sc.next();\n\t\t\tif (t.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tt = t.toLowerCase();\n\t\t\tt = t.replace(\".\", \"\");\n\t\t\tif (t.equals(W)) {\n\t\t\t\tcount++;\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 W = sc.next();\n\t\tint count =0;\n\t\twhile(true) {\n\t\t\tString t = sc.next();\n\t\t\tif (t.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tt = t.toLowerCase();\n\t\t\tt = t.replace(\".\", \"\");\n\t\t\tif (t.equals(W)) {\n\t\t\t\tcount++;\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 W = sc.next();", "W", "sc.next()", "sc.next", "sc", "int count =0;", "count", "0", "while(true) {\n\t\t\tString t = sc.next();\n\t\t\tif (t.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tt = t.toLowerCase();\n\t\t\tt = t.replace(\".\", \"\");\n\t\t\tif (t.equals(W)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tString t = sc.next();\n\t\t\tif (t.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tt = t.toLowerCase();\n\t\t\tt = t.replace(\".\", \"\");\n\t\t\tif (t.equals(W)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "String t = sc.next();", "t", "sc.next()", "sc.next", "sc", "if (t.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}", "t.equals(\"END_OF_TEXT\")", "t.equals", "t", "\"END_OF_TEXT\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "t = t.toLowerCase()", "t", "t.toLowerCase()", "t.toLowerCase", "t", "t = t.replace(\".\", \"\")", "t", "t.replace(\".\", \"\")", "t.replace", "t", "\".\"", "\"\"", "if (t.equals(W)) {\n\t\t\t\tcount++;\n\t\t\t}", "t.equals(W)", "t.equals", "t", "W", "{\n\t\t\t\tcount++;\n\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\t\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.next();\n\t\tint count =0;\n\t\twhile(true) {\n\t\t\tString t = sc.next();\n\t\t\tif (t.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tt = t.toLowerCase();\n\t\t\tt = t.replace(\".\", \"\");\n\t\t\tif (t.equals(W)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.next();\n\t\tint count =0;\n\t\twhile(true) {\n\t\t\tString t = sc.next();\n\t\t\tif (t.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tt = t.toLowerCase();\n\t\t\tt = t.replace(\".\", \"\");\n\t\t\tif (t.equals(W)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\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 W = sc.next(); int count =0; while(true) { String t = sc.next(); if (t.equals("END_OF_TEXT")) { break; } t = t.toLowerCase(); t = t.replace(".", ""); if (t.equals(W)) { 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, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 0, 13, 4, 18, 13, 14, 4, 18, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 55, 5 ], [ 55, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 22, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 22, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 39, 44 ], [ 44, 45 ], [ 8, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 46, 51 ], [ 6, 52 ], [ 52, 53 ], [ 0, 54 ], [ 54, 55 ], [ 54, 56 ] ]
[ "\nimport java.util.Scanner;\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 String w= scanner.next();\n long result=0;\n while(true){\n String t=scanner.next();\n if(t.equals(\"END_OF_TEXT\")) break;\n t=t.toLowerCase();\n if(t.equals(w)) result++;\n\n }\n System.out.println(result);\n\n }\n\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n // write your code here\n Scanner scanner=new Scanner(System.in);\n String w= scanner.next();\n long result=0;\n while(true){\n String t=scanner.next();\n if(t.equals(\"END_OF_TEXT\")) break;\n t=t.toLowerCase();\n if(t.equals(w)) result++;\n\n }\n System.out.println(result);\n\n }\n\n}", "Main", "public static void main(String[] args) {\n // write your code here\n Scanner scanner=new Scanner(System.in);\n String w= scanner.next();\n long result=0;\n while(true){\n String t=scanner.next();\n if(t.equals(\"END_OF_TEXT\")) break;\n t=t.toLowerCase();\n if(t.equals(w)) result++;\n\n }\n System.out.println(result);\n\n }", "main", "{\n // write your code here\n Scanner scanner=new Scanner(System.in);\n String w= scanner.next();\n long result=0;\n while(true){\n String t=scanner.next();\n if(t.equals(\"END_OF_TEXT\")) break;\n t=t.toLowerCase();\n if(t.equals(w)) result++;\n\n }\n System.out.println(result);\n\n }", "Scanner scanner=new Scanner(System.in);", "scanner", "new Scanner(System.in)", "String w= scanner.next();", "w", "scanner.next()", "scanner.next", "scanner", "long result=0;", "result", "0", "while(true){\n String t=scanner.next();\n if(t.equals(\"END_OF_TEXT\")) break;\n t=t.toLowerCase();\n if(t.equals(w)) result++;\n\n }", "true", "{\n String t=scanner.next();\n if(t.equals(\"END_OF_TEXT\")) break;\n t=t.toLowerCase();\n if(t.equals(w)) result++;\n\n }", "String t=scanner.next();", "t", "scanner.next()", "scanner.next", "scanner", "if(t.equals(\"END_OF_TEXT\")) break;", "t.equals(\"END_OF_TEXT\")", "t.equals", "t", "\"END_OF_TEXT\"", "break;", "t=t.toLowerCase()", "t", "t.toLowerCase()", "t.toLowerCase", "t", "if(t.equals(w)) result++;", "t.equals(w)", "t.equals", "t", "w", "result++", "result", "System.out.println(result)", "System.out.println", "System.out", "System", "System.out", "result", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n // write your code here\n Scanner scanner=new Scanner(System.in);\n String w= scanner.next();\n long result=0;\n while(true){\n String t=scanner.next();\n if(t.equals(\"END_OF_TEXT\")) break;\n t=t.toLowerCase();\n if(t.equals(w)) result++;\n\n }\n System.out.println(result);\n\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 String w= scanner.next();\n long result=0;\n while(true){\n String t=scanner.next();\n if(t.equals(\"END_OF_TEXT\")) break;\n t=t.toLowerCase();\n if(t.equals(w)) result++;\n\n }\n System.out.println(result);\n\n }\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { // write your code here Scanner scanner=new Scanner(System.in); String w= scanner.next(); long result=0; while(true){ String t=scanner.next(); if(t.equals("END_OF_TEXT")) break; t=t.toLowerCase(); if(t.equals(w)) result++; } System.out.println(result); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 4, 18, 4, 18, 13, 41, 13, 41, 13, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 0, 13, 4, 18, 13, 17, 40, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 4, 18, 18, 13, 13, 13, 30, 40, 13, 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 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 8, 24 ], [ 24, 25 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 28, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 34, 39 ], [ 39, 40 ], [ 28, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 43, 47 ], [ 47, 48 ], [ 28, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 56, 58 ], [ 49, 59 ], [ 59, 60 ], [ 60, 61 ], [ 49, 62 ], [ 63, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 65, 72 ], [ 64, 73 ], [ 73, 74 ], [ 74, 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.io.*;\npublic class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tint count = 0;\n\t\tString line1st = reader.readLine().toUpperCase();\n\t\tString line;\n\t\tString[] str;\n\t\twhile(true) {\n\t\t\tline = reader.readLine();\n\t\t\tif(line.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tstr = line.split(\" \", -1);\n\t\t\tfor(int i = 0; i < str.length; i++) {\n\t\t\t\tif(str[i].toUpperCase().equals(line1st)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "import java.io.*;", "io.*", "java", "public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tint count = 0;\n\t\tString line1st = reader.readLine().toUpperCase();\n\t\tString line;\n\t\tString[] str;\n\t\twhile(true) {\n\t\t\tline = reader.readLine();\n\t\t\tif(line.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tstr = line.split(\" \", -1);\n\t\t\tfor(int i = 0; i < str.length; i++) {\n\t\t\t\tif(str[i].toUpperCase().equals(line1st)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "Main", "public static void main(String[] args) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tint count = 0;\n\t\tString line1st = reader.readLine().toUpperCase();\n\t\tString line;\n\t\tString[] str;\n\t\twhile(true) {\n\t\t\tline = reader.readLine();\n\t\t\tif(line.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tstr = line.split(\" \", -1);\n\t\t\tfor(int i = 0; i < str.length; i++) {\n\t\t\t\tif(str[i].toUpperCase().equals(line1st)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "main", "{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tint count = 0;\n\t\tString line1st = reader.readLine().toUpperCase();\n\t\tString line;\n\t\tString[] str;\n\t\twhile(true) {\n\t\t\tline = reader.readLine();\n\t\t\tif(line.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tstr = line.split(\" \", -1);\n\t\t\tfor(int i = 0; i < str.length; i++) {\n\t\t\t\tif(str[i].toUpperCase().equals(line1st)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));", "reader", "new BufferedReader(new InputStreamReader(System.in))", "int count = 0;", "count", "0", "String line1st = reader.readLine().toUpperCase();", "line1st", "reader.readLine().toUpperCase()", "reader.readLine().toUpperCase", "reader.readLine()", "reader.readLine", "reader", "String line;", "line", "String[] str;", "str", "while(true) {\n\t\t\tline = reader.readLine();\n\t\t\tif(line.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tstr = line.split(\" \", -1);\n\t\t\tfor(int i = 0; i < str.length; i++) {\n\t\t\t\tif(str[i].toUpperCase().equals(line1st)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tline = reader.readLine();\n\t\t\tif(line.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tstr = line.split(\" \", -1);\n\t\t\tfor(int i = 0; i < str.length; i++) {\n\t\t\t\tif(str[i].toUpperCase().equals(line1st)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "line = reader.readLine()", "line", "reader.readLine()", "reader.readLine", "reader", "if(line.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}", "line.equals(\"END_OF_TEXT\")", "line.equals", "line", "\"END_OF_TEXT\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "str = line.split(\" \", -1)", "str", "line.split(\" \", -1)", "line.split", "line", "\" \"", "-1", "1", "for(int i = 0; i < str.length; i++) {\n\t\t\t\tif(str[i].toUpperCase().equals(line1st)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < str.length", "i", "str.length", "str", "str.length", "i++", "i++", "i", "{\n\t\t\t\tif(str[i].toUpperCase().equals(line1st)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif(str[i].toUpperCase().equals(line1st)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}", "if(str[i].toUpperCase().equals(line1st)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}", "str[i].toUpperCase().equals(line1st)", "str[i].toUpperCase().equals", "str[i].toUpperCase()", "str[i].toUpperCase", "str[i]", "str", "i", "line1st", "{\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\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tint count = 0;\n\t\tString line1st = reader.readLine().toUpperCase();\n\t\tString line;\n\t\tString[] str;\n\t\twhile(true) {\n\t\t\tline = reader.readLine();\n\t\t\tif(line.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tstr = line.split(\" \", -1);\n\t\t\tfor(int i = 0; i < str.length; i++) {\n\t\t\t\tif(str[i].toUpperCase().equals(line1st)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\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) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tint count = 0;\n\t\tString line1st = reader.readLine().toUpperCase();\n\t\tString line;\n\t\tString[] str;\n\t\twhile(true) {\n\t\t\tline = reader.readLine();\n\t\t\tif(line.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tstr = line.split(\" \", -1);\n\t\t\tfor(int i = 0; i < str.length; i++) {\n\t\t\t\tif(str[i].toUpperCase().equals(line1st)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "Main" ]
import java.io.*; public class Main { public static void main(String[] args) throws IOException{ BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int count = 0; String line1st = reader.readLine().toUpperCase(); String line; String[] str; while(true) { line = reader.readLine(); if(line.equals("END_OF_TEXT")) { break; } str = line.split(" ", -1); for(int i = 0; i < str.length; i++) { if(str[i].toUpperCase().equals(line1st)) { count++; } } } System.out.println(count); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 42, 17, 30, 0, 13, 4, 18, 4, 18, 13, 17, 14, 4, 18, 18, 13, 17, 17, 30, 3, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 12, 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 ], [ 19, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 38, 43 ], [ 35, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 44, 51 ], [ 51, 52 ], [ 35, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 53, 63 ], [ 63, 64 ], [ 64, 65 ], [ 53, 66 ], [ 67, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 70, 72 ], [ 67, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 73, 78 ], [ 78, 79 ], [ 79, 80 ], [ 19, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 9, 87 ], [ 87, 88 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n \nclass Main {\n public static void main(String[] args) {\n try {\n\t\t\tfinal BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tfinal String key = input.readLine();\n\t\t\tint count = 0;\n\t\t\tString[] strs;\n\t\t\twhile(true){\n\t\t\t strs = input.readLine().split(\" \");\n\t\t\t if (strs[0].equals(\"END_OF_TEXT\")) {\n\t\t\t \tbreak;\n\t\t\t }\n\t\t\t for(int i = 0; i < strs.length; i++){\n\t\t\t final String str = strs[i];\n\t\t\t if(str.equalsIgnoreCase(key)){\n\t\t\t count++;\n\t\t\t }\n\t\t\t }\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "class Main {\n public static void main(String[] args) {\n try {\n\t\t\tfinal BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tfinal String key = input.readLine();\n\t\t\tint count = 0;\n\t\t\tString[] strs;\n\t\t\twhile(true){\n\t\t\t strs = input.readLine().split(\" \");\n\t\t\t if (strs[0].equals(\"END_OF_TEXT\")) {\n\t\t\t \tbreak;\n\t\t\t }\n\t\t\t for(int i = 0; i < strs.length; i++){\n\t\t\t final String str = strs[i];\n\t\t\t if(str.equalsIgnoreCase(key)){\n\t\t\t count++;\n\t\t\t }\n\t\t\t }\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n }\n}", "Main", "public static void main(String[] args) {\n try {\n\t\t\tfinal BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tfinal String key = input.readLine();\n\t\t\tint count = 0;\n\t\t\tString[] strs;\n\t\t\twhile(true){\n\t\t\t strs = input.readLine().split(\" \");\n\t\t\t if (strs[0].equals(\"END_OF_TEXT\")) {\n\t\t\t \tbreak;\n\t\t\t }\n\t\t\t for(int i = 0; i < strs.length; i++){\n\t\t\t final String str = strs[i];\n\t\t\t if(str.equalsIgnoreCase(key)){\n\t\t\t count++;\n\t\t\t }\n\t\t\t }\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n }", "main", "{\n try {\n\t\t\tfinal BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tfinal String key = input.readLine();\n\t\t\tint count = 0;\n\t\t\tString[] strs;\n\t\t\twhile(true){\n\t\t\t strs = input.readLine().split(\" \");\n\t\t\t if (strs[0].equals(\"END_OF_TEXT\")) {\n\t\t\t \tbreak;\n\t\t\t }\n\t\t\t for(int i = 0; i < strs.length; i++){\n\t\t\t final String str = strs[i];\n\t\t\t if(str.equalsIgnoreCase(key)){\n\t\t\t count++;\n\t\t\t }\n\t\t\t }\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n }", "try {\n\t\t\tfinal BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tfinal String key = input.readLine();\n\t\t\tint count = 0;\n\t\t\tString[] strs;\n\t\t\twhile(true){\n\t\t\t strs = input.readLine().split(\" \");\n\t\t\t if (strs[0].equals(\"END_OF_TEXT\")) {\n\t\t\t \tbreak;\n\t\t\t }\n\t\t\t for(int i = 0; i < strs.length; i++){\n\t\t\t final String str = strs[i];\n\t\t\t if(str.equalsIgnoreCase(key)){\n\t\t\t count++;\n\t\t\t }\n\t\t\t }\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}", "catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}", "Exception e", "{\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\tfinal BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tfinal String key = input.readLine();\n\t\t\tint count = 0;\n\t\t\tString[] strs;\n\t\t\twhile(true){\n\t\t\t strs = input.readLine().split(\" \");\n\t\t\t if (strs[0].equals(\"END_OF_TEXT\")) {\n\t\t\t \tbreak;\n\t\t\t }\n\t\t\t for(int i = 0; i < strs.length; i++){\n\t\t\t final String str = strs[i];\n\t\t\t if(str.equalsIgnoreCase(key)){\n\t\t\t count++;\n\t\t\t }\n\t\t\t }\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t}", "final BufferedReader input = new BufferedReader(new InputStreamReader(System.in));", "input", "new BufferedReader(new InputStreamReader(System.in))", "final String key = input.readLine();", "key", "input.readLine()", "input.readLine", "input", "int count = 0;", "count", "0", "String[] strs;", "strs", "while(true){\n\t\t\t strs = input.readLine().split(\" \");\n\t\t\t if (strs[0].equals(\"END_OF_TEXT\")) {\n\t\t\t \tbreak;\n\t\t\t }\n\t\t\t for(int i = 0; i < strs.length; i++){\n\t\t\t final String str = strs[i];\n\t\t\t if(str.equalsIgnoreCase(key)){\n\t\t\t count++;\n\t\t\t }\n\t\t\t }\n\t\t\t}", "true", "{\n\t\t\t strs = input.readLine().split(\" \");\n\t\t\t if (strs[0].equals(\"END_OF_TEXT\")) {\n\t\t\t \tbreak;\n\t\t\t }\n\t\t\t for(int i = 0; i < strs.length; i++){\n\t\t\t final String str = strs[i];\n\t\t\t if(str.equalsIgnoreCase(key)){\n\t\t\t count++;\n\t\t\t }\n\t\t\t }\n\t\t\t}", "strs = input.readLine().split(\" \")", "strs", "input.readLine().split(\" \")", "input.readLine().split", "input.readLine()", "input.readLine", "input", "\" \"", "if (strs[0].equals(\"END_OF_TEXT\")) {\n\t\t\t \tbreak;\n\t\t\t }", "strs[0].equals(\"END_OF_TEXT\")", "strs[0].equals", "strs[0]", "strs", "0", "\"END_OF_TEXT\"", "{\n\t\t\t \tbreak;\n\t\t\t }", "break;", "for(int i = 0; i < strs.length; i++){\n\t\t\t final String str = strs[i];\n\t\t\t if(str.equalsIgnoreCase(key)){\n\t\t\t count++;\n\t\t\t }\n\t\t\t }", "int i = 0;", "int i = 0;", "i", "0", "i < strs.length", "i", "strs.length", "strs", "strs.length", "i++", "i++", "i", "{\n\t\t\t final String str = strs[i];\n\t\t\t if(str.equalsIgnoreCase(key)){\n\t\t\t count++;\n\t\t\t }\n\t\t\t }", "{\n\t\t\t final String str = strs[i];\n\t\t\t if(str.equalsIgnoreCase(key)){\n\t\t\t count++;\n\t\t\t }\n\t\t\t }", "final String str = strs[i];", "str", "strs[i]", "strs", "i", "if(str.equalsIgnoreCase(key)){\n\t\t\t count++;\n\t\t\t }", "str.equalsIgnoreCase(key)", "str.equalsIgnoreCase", "str", "key", "{\n\t\t\t count++;\n\t\t\t }", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args" ]
import java.io.BufferedReader; import java.io.InputStreamReader; class Main { public static void main(String[] args) { try { final BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); final String key = input.readLine(); int count = 0; String[] strs; while(true){ strs = input.readLine().split(" "); if (strs[0].equals("END_OF_TEXT")) { break; } for(int i = 0; i < strs.length; i++){ final String str = strs[i]; if(str.equalsIgnoreCase(key)){ count++; } } } System.out.println(count); } catch (Exception e) { e.printStackTrace(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 18, 13, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 77, 5 ], [ 77, 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 ], [ 20, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 24, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 30, 35 ], [ 35, 36 ], [ 24, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 24, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 50, 52 ], [ 43, 53 ], [ 53, 54 ], [ 54, 55 ], [ 43, 56 ], [ 57, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 58, 65 ], [ 65, 66 ], [ 66, 67 ], [ 8, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 6, 74 ], [ 74, 75 ], [ 0, 76 ], [ 76, 77 ], [ 76, 78 ] ]
[ "import java.util.Scanner;\npublic class Main {\n public static void main (String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tString w = scan.nextLine();\n\tint count = 0;\n\twhile (scan.hasNext()) {\n\t String T = scan.nextLine();\n\t if (T.equals(\"END_OF_TEXT\")) {\n\t\tbreak;\n\t }\n\t String[] Ts = T.split(\" \");\n\t for (int i = 0; i < Ts.length; i++) {\n\t\tif (Ts[i].equalsIgnoreCase(w)) {\n\t\t count++;\n\t\t}\n\t }\n\t}\n\tSystem.out.println(count);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main (String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tString w = scan.nextLine();\n\tint count = 0;\n\twhile (scan.hasNext()) {\n\t String T = scan.nextLine();\n\t if (T.equals(\"END_OF_TEXT\")) {\n\t\tbreak;\n\t }\n\t String[] Ts = T.split(\" \");\n\t for (int i = 0; i < Ts.length; i++) {\n\t\tif (Ts[i].equalsIgnoreCase(w)) {\n\t\t count++;\n\t\t}\n\t }\n\t}\n\tSystem.out.println(count);\n }\n}", "Main", "public static void main (String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tString w = scan.nextLine();\n\tint count = 0;\n\twhile (scan.hasNext()) {\n\t String T = scan.nextLine();\n\t if (T.equals(\"END_OF_TEXT\")) {\n\t\tbreak;\n\t }\n\t String[] Ts = T.split(\" \");\n\t for (int i = 0; i < Ts.length; i++) {\n\t\tif (Ts[i].equalsIgnoreCase(w)) {\n\t\t count++;\n\t\t}\n\t }\n\t}\n\tSystem.out.println(count);\n }", "main", "{\n\tScanner scan = new Scanner(System.in);\n\tString w = scan.nextLine();\n\tint count = 0;\n\twhile (scan.hasNext()) {\n\t String T = scan.nextLine();\n\t if (T.equals(\"END_OF_TEXT\")) {\n\t\tbreak;\n\t }\n\t String[] Ts = T.split(\" \");\n\t for (int i = 0; i < Ts.length; i++) {\n\t\tif (Ts[i].equalsIgnoreCase(w)) {\n\t\t count++;\n\t\t}\n\t }\n\t}\n\tSystem.out.println(count);\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String w = scan.nextLine();", "w", "scan.nextLine()", "scan.nextLine", "scan", "int count = 0;", "count", "0", "while (scan.hasNext()) {\n\t String T = scan.nextLine();\n\t if (T.equals(\"END_OF_TEXT\")) {\n\t\tbreak;\n\t }\n\t String[] Ts = T.split(\" \");\n\t for (int i = 0; i < Ts.length; i++) {\n\t\tif (Ts[i].equalsIgnoreCase(w)) {\n\t\t count++;\n\t\t}\n\t }\n\t}", "scan.hasNext()", "scan.hasNext", "scan", "{\n\t String T = scan.nextLine();\n\t if (T.equals(\"END_OF_TEXT\")) {\n\t\tbreak;\n\t }\n\t String[] Ts = T.split(\" \");\n\t for (int i = 0; i < Ts.length; i++) {\n\t\tif (Ts[i].equalsIgnoreCase(w)) {\n\t\t count++;\n\t\t}\n\t }\n\t}", "String T = scan.nextLine();", "T", "scan.nextLine()", "scan.nextLine", "scan", "if (T.equals(\"END_OF_TEXT\")) {\n\t\tbreak;\n\t }", "T.equals(\"END_OF_TEXT\")", "T.equals", "T", "\"END_OF_TEXT\"", "{\n\t\tbreak;\n\t }", "break;", "String[] Ts = T.split(\" \");", "Ts", "T.split(\" \")", "T.split", "T", "\" \"", "for (int i = 0; i < Ts.length; i++) {\n\t\tif (Ts[i].equalsIgnoreCase(w)) {\n\t\t count++;\n\t\t}\n\t }", "int i = 0;", "int i = 0;", "i", "0", "i < Ts.length", "i", "Ts.length", "Ts", "Ts.length", "i++", "i++", "i", "{\n\t\tif (Ts[i].equalsIgnoreCase(w)) {\n\t\t count++;\n\t\t}\n\t }", "{\n\t\tif (Ts[i].equalsIgnoreCase(w)) {\n\t\t count++;\n\t\t}\n\t }", "if (Ts[i].equalsIgnoreCase(w)) {\n\t\t count++;\n\t\t}", "Ts[i].equalsIgnoreCase(w)", "Ts[i].equalsIgnoreCase", "Ts[i]", "Ts", "i", "w", "{\n\t\t count++;\n\t\t}", "count++", "count", "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\tScanner scan = new Scanner(System.in);\n\tString w = scan.nextLine();\n\tint count = 0;\n\twhile (scan.hasNext()) {\n\t String T = scan.nextLine();\n\t if (T.equals(\"END_OF_TEXT\")) {\n\t\tbreak;\n\t }\n\t String[] Ts = T.split(\" \");\n\t for (int i = 0; i < Ts.length; i++) {\n\t\tif (Ts[i].equalsIgnoreCase(w)) {\n\t\t count++;\n\t\t}\n\t }\n\t}\n\tSystem.out.println(count);\n }\n}", "public class Main {\n public static void main (String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tString w = scan.nextLine();\n\tint count = 0;\n\twhile (scan.hasNext()) {\n\t String T = scan.nextLine();\n\t if (T.equals(\"END_OF_TEXT\")) {\n\t\tbreak;\n\t }\n\t String[] Ts = T.split(\" \");\n\t for (int i = 0; i < Ts.length; i++) {\n\t\tif (Ts[i].equalsIgnoreCase(w)) {\n\t\t count++;\n\t\t}\n\t }\n\t}\n\tSystem.out.println(count);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main (String[] args) { Scanner scan = new Scanner(System.in); String w = scan.nextLine(); int count = 0; while (scan.hasNext()) { String T = scan.nextLine(); if (T.equals("END_OF_TEXT")) { break; } String[] Ts = T.split(" "); for (int i = 0; i < Ts.length; i++) { if (Ts[i].equalsIgnoreCase(w)) { count++; } } } System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 17, 12, 13, 30, 41, 13, 17, 41, 13, 20, 41, 13, 4, 18, 13, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 4, 18, 13, 14, 4, 18, 13, 13, 30, 40, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 65, 5 ], [ 65, 6 ], [ 6, 7 ], [ 6, 8 ], [ 65, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 13, 14 ], [ 13, 15 ], [ 12, 16 ], [ 16, 17 ], [ 16, 18 ], [ 12, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 12, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 28, 33 ], [ 24, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 35, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 39, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 45, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 45, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 54, 59 ], [ 59, 60 ], [ 60, 61 ], [ 10, 62 ], [ 62, 63 ], [ 0, 64 ], [ 64, 65 ], [ 64, 66 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tstatic int list[] = new int[26];\n\tpublic static void main(String[] args) {\n\t\tint cnt = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tString W = scan.nextLine();\n\t\ttry{\n\t\t\twhile(scan.hasNext()){\n\t\t\t\tString T = scan.next();\n\t\t\t\tif(T.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tscan.close();\n\t\t\t\t}else if(W.equalsIgnoreCase(T)){\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(IllegalStateException e){\n\t\t\tSystem.out.println(cnt);\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tstatic int list[] = new int[26];\n\tpublic static void main(String[] args) {\n\t\tint cnt = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tString W = scan.nextLine();\n\t\ttry{\n\t\t\twhile(scan.hasNext()){\n\t\t\t\tString T = scan.next();\n\t\t\t\tif(T.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tscan.close();\n\t\t\t\t}else if(W.equalsIgnoreCase(T)){\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(IllegalStateException e){\n\t\t\tSystem.out.println(cnt);\n\t\t}\n\t}\n}", "Main", "static int list[] = new int[26];", "list", "new int[26]", "26", "public static void main(String[] args) {\n\t\tint cnt = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tString W = scan.nextLine();\n\t\ttry{\n\t\t\twhile(scan.hasNext()){\n\t\t\t\tString T = scan.next();\n\t\t\t\tif(T.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tscan.close();\n\t\t\t\t}else if(W.equalsIgnoreCase(T)){\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(IllegalStateException e){\n\t\t\tSystem.out.println(cnt);\n\t\t}\n\t}", "main", "{\n\t\tint cnt = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tString W = scan.nextLine();\n\t\ttry{\n\t\t\twhile(scan.hasNext()){\n\t\t\t\tString T = scan.next();\n\t\t\t\tif(T.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tscan.close();\n\t\t\t\t}else if(W.equalsIgnoreCase(T)){\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(IllegalStateException e){\n\t\t\tSystem.out.println(cnt);\n\t\t}\n\t}", "int cnt = 0;", "cnt", "0", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String W = scan.nextLine();", "W", "scan.nextLine()", "scan.nextLine", "scan", "try{\n\t\t\twhile(scan.hasNext()){\n\t\t\t\tString T = scan.next();\n\t\t\t\tif(T.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tscan.close();\n\t\t\t\t}else if(W.equalsIgnoreCase(T)){\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(IllegalStateException e){\n\t\t\tSystem.out.println(cnt);\n\t\t}", "catch(IllegalStateException e){\n\t\t\tSystem.out.println(cnt);\n\t\t}", "IllegalStateException e", "{\n\t\t\tSystem.out.println(cnt);\n\t\t}", "System.out.println(cnt)", "System.out.println", "System.out", "System", "System.out", "cnt", "{\n\t\t\twhile(scan.hasNext()){\n\t\t\t\tString T = scan.next();\n\t\t\t\tif(T.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tscan.close();\n\t\t\t\t}else if(W.equalsIgnoreCase(T)){\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "while(scan.hasNext()){\n\t\t\t\tString T = scan.next();\n\t\t\t\tif(T.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tscan.close();\n\t\t\t\t}else if(W.equalsIgnoreCase(T)){\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}", "scan.hasNext()", "scan.hasNext", "scan", "{\n\t\t\t\tString T = scan.next();\n\t\t\t\tif(T.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tscan.close();\n\t\t\t\t}else if(W.equalsIgnoreCase(T)){\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}", "String T = scan.next();", "T", "scan.next()", "scan.next", "scan", "if(T.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tscan.close();\n\t\t\t\t}else if(W.equalsIgnoreCase(T)){\n\t\t\t\t\tcnt++;\n\t\t\t\t}", "T.equals(\"END_OF_TEXT\")", "T.equals", "T", "\"END_OF_TEXT\"", "{\n\t\t\t\t\tscan.close();\n\t\t\t\t}", "scan.close()", "scan.close", "scan", "if(W.equalsIgnoreCase(T)){\n\t\t\t\t\tcnt++;\n\t\t\t\t}", "W.equalsIgnoreCase(T)", "W.equalsIgnoreCase", "W", "T", "{\n\t\t\t\t\tcnt++;\n\t\t\t\t}", "cnt++", "cnt", "String[] args", "args", "public class Main {\n\tstatic int list[] = new int[26];\n\tpublic static void main(String[] args) {\n\t\tint cnt = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tString W = scan.nextLine();\n\t\ttry{\n\t\t\twhile(scan.hasNext()){\n\t\t\t\tString T = scan.next();\n\t\t\t\tif(T.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tscan.close();\n\t\t\t\t}else if(W.equalsIgnoreCase(T)){\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(IllegalStateException e){\n\t\t\tSystem.out.println(cnt);\n\t\t}\n\t}\n}", "public class Main {\n\tstatic int list[] = new int[26];\n\tpublic static void main(String[] args) {\n\t\tint cnt = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tString W = scan.nextLine();\n\t\ttry{\n\t\t\twhile(scan.hasNext()){\n\t\t\t\tString T = scan.next();\n\t\t\t\tif(T.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tscan.close();\n\t\t\t\t}else if(W.equalsIgnoreCase(T)){\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(IllegalStateException e){\n\t\t\tSystem.out.println(cnt);\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { static int list[] = new int[26]; public static void main(String[] args) { int cnt = 0; Scanner scan = new Scanner(System.in); String W = scan.nextLine(); try{ while(scan.hasNext()){ String T = scan.next(); if(T.equals("END_OF_TEXT")){ scan.close(); }else if(W.equalsIgnoreCase(T)){ cnt++; } } }catch(IllegalStateException e){ System.out.println(cnt); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 41, 13, 42, 4, 13, 0, 13, 4, 18, 4, 18, 13, 17, 30, 28, 13, 13, 30, 30, 4, 18, 13, 4, 18, 13, 41, 13, 17, 28, 13, 13, 30, 30, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 14, 4, 18, 18, 13, 17, 17, 30, 29, 17, 30, 29, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 91, 8 ], [ 91, 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 ], [ 11, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 30, 35 ], [ 25, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 37, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 45, 46 ], [ 46, 47 ], [ 11, 48 ], [ 48, 49 ], [ 48, 50 ], [ 11, 51 ], [ 51, 52 ], [ 51, 53 ], [ 51, 54 ], [ 55, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 56, 61 ], [ 61, 62 ], [ 62, 63 ], [ 11, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 9, 70 ], [ 70, 71 ], [ 91, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 76, 81 ], [ 75, 82 ], [ 82, 83 ], [ 83, 84 ], [ 75, 85 ], [ 85, 86 ], [ 86, 87 ], [ 72, 88 ], [ 88, 89 ], [ 0, 90 ], [ 90, 91 ], [ 90, 92 ] ]
[ "import java.util.ArrayList;\nimport 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 W = sc.nextLine();\n\n\t\tArrayList<String> T = new ArrayList<String>();\n\t\tString[] input;\n\t\twhile (EndDecision(input = sc.nextLine().split(\"[\\\\s]+\"))) {\n\t\t\tfor (String str : input) {\n\t\t\t\tT.add(str.toLowerCase());\n\t\t\t}\n\t\t}\n\n\t\tint count = 0;\n\t\tfor (String str : T) {\n\t\t\tif (W.equals(str)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t}\n\n\tpublic static boolean EndDecision(String[] array) {\n\t\tif (array[0].equals(\"END_OF_TEXT\")) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\n\t}\n\n}\n", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.nextLine();\n\n\t\tArrayList<String> T = new ArrayList<String>();\n\t\tString[] input;\n\t\twhile (EndDecision(input = sc.nextLine().split(\"[\\\\s]+\"))) {\n\t\t\tfor (String str : input) {\n\t\t\t\tT.add(str.toLowerCase());\n\t\t\t}\n\t\t}\n\n\t\tint count = 0;\n\t\tfor (String str : T) {\n\t\t\tif (W.equals(str)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t}\n\n\tpublic static boolean EndDecision(String[] array) {\n\t\tif (array[0].equals(\"END_OF_TEXT\")) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.nextLine();\n\n\t\tArrayList<String> T = new ArrayList<String>();\n\t\tString[] input;\n\t\twhile (EndDecision(input = sc.nextLine().split(\"[\\\\s]+\"))) {\n\t\t\tfor (String str : input) {\n\t\t\t\tT.add(str.toLowerCase());\n\t\t\t}\n\t\t}\n\n\t\tint count = 0;\n\t\tfor (String str : T) {\n\t\t\tif (W.equals(str)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.nextLine();\n\n\t\tArrayList<String> T = new ArrayList<String>();\n\t\tString[] input;\n\t\twhile (EndDecision(input = sc.nextLine().split(\"[\\\\s]+\"))) {\n\t\t\tfor (String str : input) {\n\t\t\t\tT.add(str.toLowerCase());\n\t\t\t}\n\t\t}\n\n\t\tint count = 0;\n\t\tfor (String str : T) {\n\t\t\tif (W.equals(str)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String W = sc.nextLine();", "W", "sc.nextLine()", "sc.nextLine", "sc", "ArrayList<String> T = new ArrayList<String>();", "T", "new ArrayList<String>()", "String[] input;", "input", "while (EndDecision(input = sc.nextLine().split(\"[\\\\s]+\"))) {\n\t\t\tfor (String str : input) {\n\t\t\t\tT.add(str.toLowerCase());\n\t\t\t}\n\t\t}", "EndDecision(input = sc.nextLine().split(\"[\\\\s]+\"))", "EndDecision", "input = sc.nextLine().split(\"[\\\\s]+\")", "input", "sc.nextLine().split(\"[\\\\s]+\")", "sc.nextLine().split", "sc.nextLine()", "sc.nextLine", "sc", "\"[\\\\s]+\"", "{\n\t\t\tfor (String str : input) {\n\t\t\t\tT.add(str.toLowerCase());\n\t\t\t}\n\t\t}", "for (String str : input) {\n\t\t\t\tT.add(str.toLowerCase());\n\t\t\t}", "String str", "input", "{\n\t\t\t\tT.add(str.toLowerCase());\n\t\t\t}", "{\n\t\t\t\tT.add(str.toLowerCase());\n\t\t\t}", "T.add(str.toLowerCase())", "T.add", "T", "str.toLowerCase()", "str.toLowerCase", "str", "int count = 0;", "count", "0", "for (String str : T) {\n\t\t\tif (W.equals(str)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "String str", "T", "{\n\t\t\tif (W.equals(str)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "{\n\t\t\tif (W.equals(str)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "if (W.equals(str)) {\n\t\t\t\tcount++;\n\t\t\t}", "W.equals(str)", "W.equals", "W", "str", "{\n\t\t\t\tcount++;\n\t\t\t}", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public static boolean EndDecision(String[] array) {\n\t\tif (array[0].equals(\"END_OF_TEXT\")) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\n\t}", "EndDecision", "{\n\t\tif (array[0].equals(\"END_OF_TEXT\")) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\n\t}", "if (array[0].equals(\"END_OF_TEXT\")) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}", "array[0].equals(\"END_OF_TEXT\")", "array[0].equals", "array[0]", "array", "0", "\"END_OF_TEXT\"", "{\n\t\t\treturn false;\n\t\t}", "return false;", "false", "{\n\t\t\treturn true;\n\t\t}", "return true;", "true", "String[] array", "array", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.nextLine();\n\n\t\tArrayList<String> T = new ArrayList<String>();\n\t\tString[] input;\n\t\twhile (EndDecision(input = sc.nextLine().split(\"[\\\\s]+\"))) {\n\t\t\tfor (String str : input) {\n\t\t\t\tT.add(str.toLowerCase());\n\t\t\t}\n\t\t}\n\n\t\tint count = 0;\n\t\tfor (String str : T) {\n\t\t\tif (W.equals(str)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t}\n\n\tpublic static boolean EndDecision(String[] array) {\n\t\tif (array[0].equals(\"END_OF_TEXT\")) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.nextLine();\n\n\t\tArrayList<String> T = new ArrayList<String>();\n\t\tString[] input;\n\t\twhile (EndDecision(input = sc.nextLine().split(\"[\\\\s]+\"))) {\n\t\t\tfor (String str : input) {\n\t\t\t\tT.add(str.toLowerCase());\n\t\t\t}\n\t\t}\n\n\t\tint count = 0;\n\t\tfor (String str : T) {\n\t\t\tif (W.equals(str)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t}\n\n\tpublic static boolean EndDecision(String[] array) {\n\t\tif (array[0].equals(\"END_OF_TEXT\")) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\n\t}\n\n}", "Main" ]
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String W = sc.nextLine(); ArrayList<String> T = new ArrayList<String>(); String[] input; while (EndDecision(input = sc.nextLine().split("[\\s]+"))) { for (String str : input) { T.add(str.toLowerCase()); } } int count = 0; for (String str : T) { if (W.equals(str)) { count++; } } System.out.println(count); } public static boolean EndDecision(String[] array) { if (array[0].equals("END_OF_TEXT")) { return false; } else { return true; } } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 4, 13, 23, 13, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 17, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 13, 30, 14, 2, 4, 18, 13, 13, 17, 30, 40, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 61, 5 ], [ 61, 6 ], [ 6, 7 ], [ 6, 8 ], [ 61, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 9, 14 ], [ 14, 15 ], [ 61, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 18, 24 ], [ 24, 25 ], [ 24, 26 ], [ 18, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 27, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 31, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 37, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 37, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 51, 56 ], [ 50, 57 ], [ 57, 58 ], [ 58, 59 ], [ 0, 60 ], [ 60, 61 ], [ 60, 62 ] ]
[ "/* \n 10022 ??則???????属???????????????\\???????????????n?????蔵???\n \"??則????????即?属???????????????\\?????????\"?????????????????????????????????????????????\n*/\nimport java.util.*;\npublic class Main{\n static Scanner kbd = new Scanner(System.in);\n public static void main(String[] args){\n solve();\n }\n static void solve(){\n String n = kbd.next();\n int ans = 0;\n while(kbd.hasNext()){\n String s = kbd.next();\n if(s.equals(\"END_OF_TEXT\")){\n System.out.println(ans);\n }\n else{\n if(n.compareToIgnoreCase(s)==0){ // ????????????????????????????????????\n ans++;\n }\n }\n }\n }\n}", "import java.util.*;", "util.*", "java", "public class Main{\n static Scanner kbd = new Scanner(System.in);\n public static void main(String[] args){\n solve();\n }\n static void solve(){\n String n = kbd.next();\n int ans = 0;\n while(kbd.hasNext()){\n String s = kbd.next();\n if(s.equals(\"END_OF_TEXT\")){\n System.out.println(ans);\n }\n else{\n if(n.compareToIgnoreCase(s)==0){ // ????????????????????????????????????\n ans++;\n }\n }\n }\n }\n}", "Main", "static Scanner kbd = new Scanner(System.in);", "kbd", "new Scanner(System.in)", "public static void main(String[] args){\n solve();\n }", "main", "{\n solve();\n }", "solve()", "solve", "String[] args", "args", "static void solve(){\n String n = kbd.next();\n int ans = 0;\n while(kbd.hasNext()){\n String s = kbd.next();\n if(s.equals(\"END_OF_TEXT\")){\n System.out.println(ans);\n }\n else{\n if(n.compareToIgnoreCase(s)==0){ // ????????????????????????????????????\n ans++;\n }\n }\n }\n }", "solve", "{\n String n = kbd.next();\n int ans = 0;\n while(kbd.hasNext()){\n String s = kbd.next();\n if(s.equals(\"END_OF_TEXT\")){\n System.out.println(ans);\n }\n else{\n if(n.compareToIgnoreCase(s)==0){ // ????????????????????????????????????\n ans++;\n }\n }\n }\n }", "String n = kbd.next();", "n", "kbd.next()", "kbd.next", "kbd", "int ans = 0;", "ans", "0", "while(kbd.hasNext()){\n String s = kbd.next();\n if(s.equals(\"END_OF_TEXT\")){\n System.out.println(ans);\n }\n else{\n if(n.compareToIgnoreCase(s)==0){ // ????????????????????????????????????\n ans++;\n }\n }\n }", "kbd.hasNext()", "kbd.hasNext", "kbd", "{\n String s = kbd.next();\n if(s.equals(\"END_OF_TEXT\")){\n System.out.println(ans);\n }\n else{\n if(n.compareToIgnoreCase(s)==0){ // ????????????????????????????????????\n ans++;\n }\n }\n }", "String s = kbd.next();", "s", "kbd.next()", "kbd.next", "kbd", "if(s.equals(\"END_OF_TEXT\")){\n System.out.println(ans);\n }\n else{\n if(n.compareToIgnoreCase(s)==0){ // ????????????????????????????????????\n ans++;\n }\n }", "s.equals(\"END_OF_TEXT\")", "s.equals", "s", "\"END_OF_TEXT\"", "{\n System.out.println(ans);\n }", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "{\n if(n.compareToIgnoreCase(s)==0){ // ????????????????????????????????????\n ans++;\n }\n }", "if(n.compareToIgnoreCase(s)==0){ // ????????????????????????????????????\n ans++;\n }", "n.compareToIgnoreCase(s)==0", "n.compareToIgnoreCase(s)", "n.compareToIgnoreCase", "n", "s", "0", "{ // ????????????????????????????????????\n ans++;\n }", "ans++", "ans", "public class Main{\n static Scanner kbd = new Scanner(System.in);\n public static void main(String[] args){\n solve();\n }\n static void solve(){\n String n = kbd.next();\n int ans = 0;\n while(kbd.hasNext()){\n String s = kbd.next();\n if(s.equals(\"END_OF_TEXT\")){\n System.out.println(ans);\n }\n else{\n if(n.compareToIgnoreCase(s)==0){ // ????????????????????????????????????\n ans++;\n }\n }\n }\n }\n}", "public class Main{\n static Scanner kbd = new Scanner(System.in);\n public static void main(String[] args){\n solve();\n }\n static void solve(){\n String n = kbd.next();\n int ans = 0;\n while(kbd.hasNext()){\n String s = kbd.next();\n if(s.equals(\"END_OF_TEXT\")){\n System.out.println(ans);\n }\n else{\n if(n.compareToIgnoreCase(s)==0){ // ????????????????????????????????????\n ans++;\n }\n }\n }\n }\n}", "Main" ]
/* 10022 ??則???????属???????????????\???????????????n?????蔵??? "??則????????即?属???????????????\?????????"????????????????????????????????????????????? */ import java.util.*; public class Main{ static Scanner kbd = new Scanner(System.in); public static void main(String[] args){ solve(); } static void solve(){ String n = kbd.next(); int ans = 0; while(kbd.hasNext()){ String s = kbd.next(); if(s.equals("END_OF_TEXT")){ System.out.println(ans); } else{ if(n.compareToIgnoreCase(s)==0){ // ???????????????????????????????????? ans++; } } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 0, 13, 4, 18, 13, 0, 13, 17, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 17, 13, 30, 3, 14, 2, 4, 18, 13, 13, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 66, 5 ], [ 66, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 28, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 34, 39 ], [ 39, 40 ], [ 28, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 42, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 41, 51 ], [ 51, 52 ], [ 52, 53 ], [ 8, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 8, 60 ], [ 60, 61 ], [ 61, 62 ], [ 6, 63 ], [ 63, 64 ], [ 0, 65 ], [ 65, 66 ], [ 65, 67 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args) {\n Scanner stdin = new Scanner(System.in);\n \n String w;\n String t;\n int countW;\n \n w = stdin.next();\n \n countW = 0;\n while (true) {\n t = stdin.next();\n if (\"END_OF_TEXT\".equals(t)) {\n break;\n }\n \n if (w.equalsIgnoreCase(t) || w.equalsIgnoreCase(t)) {\n countW++;\n }\n }\n \n System.out.println(countW);\n \n stdin.close();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args) {\n Scanner stdin = new Scanner(System.in);\n \n String w;\n String t;\n int countW;\n \n w = stdin.next();\n \n countW = 0;\n while (true) {\n t = stdin.next();\n if (\"END_OF_TEXT\".equals(t)) {\n break;\n }\n \n if (w.equalsIgnoreCase(t) || w.equalsIgnoreCase(t)) {\n countW++;\n }\n }\n \n System.out.println(countW);\n \n stdin.close();\n }\n}", "Main", "public static void main(String[] args) {\n Scanner stdin = new Scanner(System.in);\n \n String w;\n String t;\n int countW;\n \n w = stdin.next();\n \n countW = 0;\n while (true) {\n t = stdin.next();\n if (\"END_OF_TEXT\".equals(t)) {\n break;\n }\n \n if (w.equalsIgnoreCase(t) || w.equalsIgnoreCase(t)) {\n countW++;\n }\n }\n \n System.out.println(countW);\n \n stdin.close();\n }", "main", "{\n Scanner stdin = new Scanner(System.in);\n \n String w;\n String t;\n int countW;\n \n w = stdin.next();\n \n countW = 0;\n while (true) {\n t = stdin.next();\n if (\"END_OF_TEXT\".equals(t)) {\n break;\n }\n \n if (w.equalsIgnoreCase(t) || w.equalsIgnoreCase(t)) {\n countW++;\n }\n }\n \n System.out.println(countW);\n \n stdin.close();\n }", "Scanner stdin = new Scanner(System.in);", "stdin", "new Scanner(System.in)", "String w;", "w", "String t;", "t", "int countW;", "countW", "w = stdin.next()", "w", "stdin.next()", "stdin.next", "stdin", "countW = 0", "countW", "0", "while (true) {\n t = stdin.next();\n if (\"END_OF_TEXT\".equals(t)) {\n break;\n }\n \n if (w.equalsIgnoreCase(t) || w.equalsIgnoreCase(t)) {\n countW++;\n }\n }", "true", "{\n t = stdin.next();\n if (\"END_OF_TEXT\".equals(t)) {\n break;\n }\n \n if (w.equalsIgnoreCase(t) || w.equalsIgnoreCase(t)) {\n countW++;\n }\n }", "t = stdin.next()", "t", "stdin.next()", "stdin.next", "stdin", "if (\"END_OF_TEXT\".equals(t)) {\n break;\n }", "\"END_OF_TEXT\".equals(t)", "\"END_OF_TEXT\".equals", "\"END_OF_TEXT\"", "t", "{\n break;\n }", "break;", "if (w.equalsIgnoreCase(t) || w.equalsIgnoreCase(t)) {\n countW++;\n }", "w.equalsIgnoreCase(t) || w.equalsIgnoreCase(t)", "w.equalsIgnoreCase(t)", "w.equalsIgnoreCase", "w", "t", "w.equalsIgnoreCase(t)", "w.equalsIgnoreCase", "w", "t", "{\n countW++;\n }", "countW++", "countW", "System.out.println(countW)", "System.out.println", "System.out", "System", "System.out", "countW", "stdin.close()", "stdin.close", "stdin", "String[] args", "args", "public class Main{\n public static void main(String[] args) {\n Scanner stdin = new Scanner(System.in);\n \n String w;\n String t;\n int countW;\n \n w = stdin.next();\n \n countW = 0;\n while (true) {\n t = stdin.next();\n if (\"END_OF_TEXT\".equals(t)) {\n break;\n }\n \n if (w.equalsIgnoreCase(t) || w.equalsIgnoreCase(t)) {\n countW++;\n }\n }\n \n System.out.println(countW);\n \n stdin.close();\n }\n}", "public class Main{\n public static void main(String[] args) {\n Scanner stdin = new Scanner(System.in);\n \n String w;\n String t;\n int countW;\n \n w = stdin.next();\n \n countW = 0;\n while (true) {\n t = stdin.next();\n if (\"END_OF_TEXT\".equals(t)) {\n break;\n }\n \n if (w.equalsIgnoreCase(t) || w.equalsIgnoreCase(t)) {\n countW++;\n }\n }\n \n System.out.println(countW);\n \n stdin.close();\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner stdin = new Scanner(System.in); String w; String t; int countW; w = stdin.next(); countW = 0; while (true) { t = stdin.next(); if ("END_OF_TEXT".equals(t)) { break; } if (w.equalsIgnoreCase(t) || w.equalsIgnoreCase(t)) { countW++; } } System.out.println(countW); stdin.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 42, 4, 18, 13, 30, 14, 4, 18, 13, 17, 3, 41, 13, 4, 18, 13, 14, 4, 18, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 52, 5 ], [ 52, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 20, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 26, 29 ], [ 25, 30 ], [ 24, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 24, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 36, 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;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String W = scan.nextLine();\n int count = 0;\n while (scan.hasNext()) {\n if (W.equals(\"END_OF_TEXT\")) break;\n String s = scan.next();\n if (s.equalsIgnoreCase(W)) count++;\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 scan = new Scanner(System.in);\n String W = scan.nextLine();\n int count = 0;\n while (scan.hasNext()) {\n if (W.equals(\"END_OF_TEXT\")) break;\n String s = scan.next();\n if (s.equalsIgnoreCase(W)) count++;\n }\n System.out.println(count);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String W = scan.nextLine();\n int count = 0;\n while (scan.hasNext()) {\n if (W.equals(\"END_OF_TEXT\")) break;\n String s = scan.next();\n if (s.equalsIgnoreCase(W)) count++;\n }\n System.out.println(count);\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n String W = scan.nextLine();\n int count = 0;\n while (scan.hasNext()) {\n if (W.equals(\"END_OF_TEXT\")) break;\n String s = scan.next();\n if (s.equalsIgnoreCase(W)) count++;\n }\n System.out.println(count);\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String W = scan.nextLine();", "W", "scan.nextLine()", "scan.nextLine", "scan", "int count = 0;", "count", "0", "while (scan.hasNext()) {\n if (W.equals(\"END_OF_TEXT\")) break;\n String s = scan.next();\n if (s.equalsIgnoreCase(W)) count++;\n }", "scan.hasNext()", "scan.hasNext", "scan", "{\n if (W.equals(\"END_OF_TEXT\")) break;\n String s = scan.next();\n if (s.equalsIgnoreCase(W)) count++;\n }", "if (W.equals(\"END_OF_TEXT\")) break;", "W.equals(\"END_OF_TEXT\")", "W.equals", "W", "\"END_OF_TEXT\"", "break;", "String s = scan.next();", "s", "scan.next()", "scan.next", "scan", "if (s.equalsIgnoreCase(W)) count++;", "s.equalsIgnoreCase(W)", "s.equalsIgnoreCase", "s", "W", "count++", "count", "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 scan = new Scanner(System.in);\n String W = scan.nextLine();\n int count = 0;\n while (scan.hasNext()) {\n if (W.equals(\"END_OF_TEXT\")) break;\n String s = scan.next();\n if (s.equalsIgnoreCase(W)) count++;\n }\n System.out.println(count);\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String W = scan.nextLine();\n int count = 0;\n while (scan.hasNext()) {\n if (W.equals(\"END_OF_TEXT\")) break;\n String s = scan.next();\n if (s.equalsIgnoreCase(W)) count++;\n }\n System.out.println(count);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String W = scan.nextLine(); int count = 0; while (scan.hasNext()) { if (W.equals("END_OF_TEXT")) break; String s = scan.next(); if (s.equalsIgnoreCase(W)) count++; } 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, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 41, 13, 4, 18, 13, 14, 4, 18, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 60, 5 ], [ 60, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 27, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 33, 38 ], [ 27, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 27, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 44, 49 ], [ 49, 50 ], [ 8, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 51, 56 ], [ 6, 57 ], [ 57, 58 ], [ 0, 59 ], [ 59, 60 ], [ 59, 61 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tString W = scan.next();\n\t\tString w = W.toLowerCase();\n\t\t\n\t\tint i = 0;\n\t\twhile(true){\n\t\t\tString Ti = scan.next();\n\t\t\tif (Ti.equals(\"END_OF_TEXT\")) break;\n\t\t\tString ti = Ti.toLowerCase();\n\t\t\tif (ti.equals(w)) i++;\n\t\t}\n\t\tSystem.out.println(i);\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\t// TODO ?????????????????????????????????????????????\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tString W = scan.next();\n\t\tString w = W.toLowerCase();\n\t\t\n\t\tint i = 0;\n\t\twhile(true){\n\t\t\tString Ti = scan.next();\n\t\t\tif (Ti.equals(\"END_OF_TEXT\")) break;\n\t\t\tString ti = Ti.toLowerCase();\n\t\t\tif (ti.equals(w)) i++;\n\t\t}\n\t\tSystem.out.println(i);\n\t\t\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tString W = scan.next();\n\t\tString w = W.toLowerCase();\n\t\t\n\t\tint i = 0;\n\t\twhile(true){\n\t\t\tString Ti = scan.next();\n\t\t\tif (Ti.equals(\"END_OF_TEXT\")) break;\n\t\t\tString ti = Ti.toLowerCase();\n\t\t\tif (ti.equals(w)) i++;\n\t\t}\n\t\tSystem.out.println(i);\n\t\t\n\n\t}", "main", "{\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tString W = scan.next();\n\t\tString w = W.toLowerCase();\n\t\t\n\t\tint i = 0;\n\t\twhile(true){\n\t\t\tString Ti = scan.next();\n\t\t\tif (Ti.equals(\"END_OF_TEXT\")) break;\n\t\t\tString ti = Ti.toLowerCase();\n\t\t\tif (ti.equals(w)) i++;\n\t\t}\n\t\tSystem.out.println(i);\n\t\t\n\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String W = scan.next();", "W", "scan.next()", "scan.next", "scan", "String w = W.toLowerCase();", "w", "W.toLowerCase()", "W.toLowerCase", "W", "int i = 0;", "i", "0", "while(true){\n\t\t\tString Ti = scan.next();\n\t\t\tif (Ti.equals(\"END_OF_TEXT\")) break;\n\t\t\tString ti = Ti.toLowerCase();\n\t\t\tif (ti.equals(w)) i++;\n\t\t}", "true", "{\n\t\t\tString Ti = scan.next();\n\t\t\tif (Ti.equals(\"END_OF_TEXT\")) break;\n\t\t\tString ti = Ti.toLowerCase();\n\t\t\tif (ti.equals(w)) i++;\n\t\t}", "String Ti = scan.next();", "Ti", "scan.next()", "scan.next", "scan", "if (Ti.equals(\"END_OF_TEXT\")) break;", "Ti.equals(\"END_OF_TEXT\")", "Ti.equals", "Ti", "\"END_OF_TEXT\"", "break;", "String ti = Ti.toLowerCase();", "ti", "Ti.toLowerCase()", "Ti.toLowerCase", "Ti", "if (ti.equals(w)) i++;", "ti.equals(w)", "ti.equals", "ti", "w", "i++", "i", "System.out.println(i)", "System.out.println", "System.out", "System", "System.out", "i", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tString W = scan.next();\n\t\tString w = W.toLowerCase();\n\t\t\n\t\tint i = 0;\n\t\twhile(true){\n\t\t\tString Ti = scan.next();\n\t\t\tif (Ti.equals(\"END_OF_TEXT\")) break;\n\t\t\tString ti = Ti.toLowerCase();\n\t\t\tif (ti.equals(w)) i++;\n\t\t}\n\t\tSystem.out.println(i);\n\t\t\n\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tString W = scan.next();\n\t\tString w = W.toLowerCase();\n\t\t\n\t\tint i = 0;\n\t\twhile(true){\n\t\t\tString Ti = scan.next();\n\t\t\tif (Ti.equals(\"END_OF_TEXT\")) break;\n\t\t\tString ti = Ti.toLowerCase();\n\t\t\tif (ti.equals(w)) i++;\n\t\t}\n\t\tSystem.out.println(i);\n\t\t\n\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 W = scan.next(); String w = W.toLowerCase(); int i = 0; while(true){ String Ti = scan.next(); if (Ti.equals("END_OF_TEXT")) break; String ti = Ti.toLowerCase(); if (ti.equals(w)) i++; } System.out.println(i); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 17, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 0, 13, 4, 18, 13, 14, 4, 18, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 4, 18, 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 ], [ 16, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 22, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 26, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 32, 37 ], [ 26, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 26, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 43, 48 ], [ 48, 49 ], [ 8, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 50, 55 ], [ 8, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 6, 60 ], [ 60, 61 ], [ 0, 62 ], [ 62, 63 ], [ 62, 64 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tString W = scan.nextLine().toLowerCase();\n\t\tint ans = 0;\n\t\twhile (scan.hasNext()) {\n\t\t\tString t = scan.next();\n\t\t\tif (t.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\tt=t.toLowerCase();\n\t\t\tif (t.equals(W))\n\t\t\t\tans++;\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tSystem.exit(0);\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@SuppressWarnings(\"resource\")\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tString W = scan.nextLine().toLowerCase();\n\t\tint ans = 0;\n\t\twhile (scan.hasNext()) {\n\t\t\tString t = scan.next();\n\t\t\tif (t.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\tt=t.toLowerCase();\n\t\t\tif (t.equals(W))\n\t\t\t\tans++;\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tSystem.exit(0);\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tString W = scan.nextLine().toLowerCase();\n\t\tint ans = 0;\n\t\twhile (scan.hasNext()) {\n\t\t\tString t = scan.next();\n\t\t\tif (t.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\tt=t.toLowerCase();\n\t\t\tif (t.equals(W))\n\t\t\t\tans++;\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tSystem.exit(0);\n\t}", "main", "{\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tString W = scan.nextLine().toLowerCase();\n\t\tint ans = 0;\n\t\twhile (scan.hasNext()) {\n\t\t\tString t = scan.next();\n\t\t\tif (t.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\tt=t.toLowerCase();\n\t\t\tif (t.equals(W))\n\t\t\t\tans++;\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tSystem.exit(0);\n\t}", "@SuppressWarnings(\"resource\")\n\t\tScanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String W = scan.nextLine().toLowerCase();", "W", "scan.nextLine().toLowerCase()", "scan.nextLine().toLowerCase", "scan.nextLine()", "scan.nextLine", "scan", "int ans = 0;", "ans", "0", "while (scan.hasNext()) {\n\t\t\tString t = scan.next();\n\t\t\tif (t.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\tt=t.toLowerCase();\n\t\t\tif (t.equals(W))\n\t\t\t\tans++;\n\t\t}", "scan.hasNext()", "scan.hasNext", "scan", "{\n\t\t\tString t = scan.next();\n\t\t\tif (t.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\tt=t.toLowerCase();\n\t\t\tif (t.equals(W))\n\t\t\t\tans++;\n\t\t}", "String t = scan.next();", "t", "scan.next()", "scan.next", "scan", "if (t.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;", "t.equals(\"END_OF_TEXT\")", "t.equals", "t", "\"END_OF_TEXT\"", "break;", "t=t.toLowerCase()", "t", "t.toLowerCase()", "t.toLowerCase", "t", "if (t.equals(W))\n\t\t\t\tans++;", "t.equals(W)", "t.equals", "t", "W", "ans++", "ans", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "System.exit(0)", "System.exit", "System", "0", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tString W = scan.nextLine().toLowerCase();\n\t\tint ans = 0;\n\t\twhile (scan.hasNext()) {\n\t\t\tString t = scan.next();\n\t\t\tif (t.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\tt=t.toLowerCase();\n\t\t\tif (t.equals(W))\n\t\t\t\tans++;\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tSystem.exit(0);\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tString W = scan.nextLine().toLowerCase();\n\t\tint ans = 0;\n\t\twhile (scan.hasNext()) {\n\t\t\tString t = scan.next();\n\t\t\tif (t.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\tt=t.toLowerCase();\n\t\t\tif (t.equals(W))\n\t\t\t\tans++;\n\t\t}\n\t\tSystem.out.println(ans);\n\t\tSystem.exit(0);\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { @SuppressWarnings("resource") Scanner scan = new Scanner(System.in); String W = scan.nextLine().toLowerCase(); int ans = 0; while (scan.hasNext()) { String t = scan.next(); if (t.equals("END_OF_TEXT")) break; t=t.toLowerCase(); if (t.equals(W)) ans++; } System.out.println(ans); System.exit(0); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 41, 13, 17, 41, 13, 17, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 42, 4, 18, 13, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 2, 2, 4, 18, 13, 13, 17, 2, 4, 18, 13, 13, 17, 30, 40, 13, 0, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 8, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 33, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 37, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 37, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 50, 55 ], [ 49, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 56, 61 ], [ 48, 62 ], [ 62, 63 ], [ 63, 64 ], [ 8, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 8, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 6, 77 ], [ 77, 78 ] ]
[ "import java.util.Scanner;\n\n/**\n * \n */\n\n/**\n * @author kawakami\n *\n */\nclass Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner as = new Scanner(System.in);\n\t\t\n\t\tString T = \"\";\n\t\tString W;\n\t\tString str = \"\";\n\t\tint count = 0;\n\t\t\n\t\t\n\t\tW = as.nextLine();\n\t\tW = W.toLowerCase();\n\t \n\t \n\t \n\t while(as.hasNext()){ //EOF?????§??±????????????????????£?????????\n\t \t\n\t \tT = as.next();\n\t \tT = T.toLowerCase();\n \n\t \t/*if(T == \"END_OF_TEXT\"){\n\t\t \n\t \t\tbreak;\n\t \t\t\n\t \t}*/\n\t \t\n\t \tif(T.indexOf(W) == 0 && T.lastIndexOf(W) == 0){\n\t \t\t\n\t \t\tcount++;\n\t \t\t\n\t \t}\n\t \n \n }\n\t \n\t str = String.valueOf(count);\n\t System.out.println(str);\n\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner as = new Scanner(System.in);\n\t\t\n\t\tString T = \"\";\n\t\tString W;\n\t\tString str = \"\";\n\t\tint count = 0;\n\t\t\n\t\t\n\t\tW = as.nextLine();\n\t\tW = W.toLowerCase();\n\t \n\t \n\t \n\t while(as.hasNext()){ //EOF?????§??±????????????????????£?????????\n\t \t\n\t \tT = as.next();\n\t \tT = T.toLowerCase();\n \n\t \t/*if(T == \"END_OF_TEXT\"){\n\t\t \n\t \t\tbreak;\n\t \t\t\n\t \t}*/\n\t \t\n\t \tif(T.indexOf(W) == 0 && T.lastIndexOf(W) == 0){\n\t \t\t\n\t \t\tcount++;\n\t \t\t\n\t \t}\n\t \n \n }\n\t \n\t str = String.valueOf(count);\n\t System.out.println(str);\n\n\t}\n\n}", "Main", "/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner as = new Scanner(System.in);\n\t\t\n\t\tString T = \"\";\n\t\tString W;\n\t\tString str = \"\";\n\t\tint count = 0;\n\t\t\n\t\t\n\t\tW = as.nextLine();\n\t\tW = W.toLowerCase();\n\t \n\t \n\t \n\t while(as.hasNext()){ //EOF?????§??±????????????????????£?????????\n\t \t\n\t \tT = as.next();\n\t \tT = T.toLowerCase();\n \n\t \t/*if(T == \"END_OF_TEXT\"){\n\t\t \n\t \t\tbreak;\n\t \t\t\n\t \t}*/\n\t \t\n\t \tif(T.indexOf(W) == 0 && T.lastIndexOf(W) == 0){\n\t \t\t\n\t \t\tcount++;\n\t \t\t\n\t \t}\n\t \n \n }\n\t \n\t str = String.valueOf(count);\n\t System.out.println(str);\n\n\t}", "main", "{\n\t\t// TODO Auto-generated method stub\n\t\tScanner as = new Scanner(System.in);\n\t\t\n\t\tString T = \"\";\n\t\tString W;\n\t\tString str = \"\";\n\t\tint count = 0;\n\t\t\n\t\t\n\t\tW = as.nextLine();\n\t\tW = W.toLowerCase();\n\t \n\t \n\t \n\t while(as.hasNext()){ //EOF?????§??±????????????????????£?????????\n\t \t\n\t \tT = as.next();\n\t \tT = T.toLowerCase();\n \n\t \t/*if(T == \"END_OF_TEXT\"){\n\t\t \n\t \t\tbreak;\n\t \t\t\n\t \t}*/\n\t \t\n\t \tif(T.indexOf(W) == 0 && T.lastIndexOf(W) == 0){\n\t \t\t\n\t \t\tcount++;\n\t \t\t\n\t \t}\n\t \n \n }\n\t \n\t str = String.valueOf(count);\n\t System.out.println(str);\n\n\t}", "Scanner as = new Scanner(System.in);", "as", "new Scanner(System.in)", "String T = \"\";", "T", "\"\"", "String W;", "W", "String str = \"\";", "str", "\"\"", "int count = 0;", "count", "0", "W = as.nextLine()", "W", "as.nextLine()", "as.nextLine", "as", "W = W.toLowerCase()", "W", "W.toLowerCase()", "W.toLowerCase", "W", "while(as.hasNext()){ //EOF?????§??±????????????????????£?????????\n\t \t\n\t \tT = as.next();\n\t \tT = T.toLowerCase();\n \n\t \t/*if(T == \"END_OF_TEXT\"){\n\t\t \n\t \t\tbreak;\n\t \t\t\n\t \t}*/\n\t \t\n\t \tif(T.indexOf(W) == 0 && T.lastIndexOf(W) == 0){\n\t \t\t\n\t \t\tcount++;\n\t \t\t\n\t \t}\n\t \n \n }", "as.hasNext()", "as.hasNext", "as", "{ //EOF?????§??±????????????????????£?????????\n\t \t\n\t \tT = as.next();\n\t \tT = T.toLowerCase();\n \n\t \t/*if(T == \"END_OF_TEXT\"){\n\t\t \n\t \t\tbreak;\n\t \t\t\n\t \t}*/\n\t \t\n\t \tif(T.indexOf(W) == 0 && T.lastIndexOf(W) == 0){\n\t \t\t\n\t \t\tcount++;\n\t \t\t\n\t \t}\n\t \n \n }", "T = as.next()", "T", "as.next()", "as.next", "as", "T = T.toLowerCase()", "T", "T.toLowerCase()", "T.toLowerCase", "T", "if(T.indexOf(W) == 0 && T.lastIndexOf(W) == 0){\n\t \t\t\n\t \t\tcount++;\n\t \t\t\n\t \t}", "T.indexOf(W) == 0 && T.lastIndexOf(W) == 0", "T.indexOf(W) == 0", "T.indexOf(W)", "T.indexOf", "T", "W", "0", "T.lastIndexOf(W) == 0", "T.lastIndexOf(W)", "T.lastIndexOf", "T", "W", "0", "{\n\t \t\t\n\t \t\tcount++;\n\t \t\t\n\t \t}", "count++", "count", "str = String.valueOf(count)", "str", "String.valueOf(count)", "String.valueOf", "String", "count", "System.out.println(str)", "System.out.println", "System.out", "System", "System.out", "str", "String[] args", "args" ]
import java.util.Scanner; /** * */ /** * @author kawakami * */ class Main { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub Scanner as = new Scanner(System.in); String T = ""; String W; String str = ""; int count = 0; W = as.nextLine(); W = W.toLowerCase(); while(as.hasNext()){ //EOF?????§??±????????????????????£????????? T = as.next(); T = T.toLowerCase(); /*if(T == "END_OF_TEXT"){ break; }*/ if(T.indexOf(W) == 0 && T.lastIndexOf(W) == 0){ count++; } } str = String.valueOf(count); System.out.println(str); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 30, 41, 13, 20, 41, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 42, 2, 0, 13, 4, 18, 13, 17, 30, 14, 4, 18, 13, 17, 3, 14, 13, 30, 0, 13, 4, 18, 13, 0, 13, 17, 30, 41, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 13, 4, 18, 18, 13, 13, 30, 40, 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 ], [ 97, 8 ], [ 97, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 14, 16 ], [ 13, 17 ], [ 17, 18 ], [ 13, 19 ], [ 19, 20 ], [ 19, 21 ], [ 13, 22 ], [ 22, 23 ], [ 22, 24 ], [ 13, 25 ], [ 25, 26 ], [ 25, 27 ], [ 13, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 29, 35 ], [ 28, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 37, 42 ], [ 36, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 45, 51 ], [ 51, 52 ], [ 51, 53 ], [ 43, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 54, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 68, 70 ], [ 61, 71 ], [ 71, 72 ], [ 72, 73 ], [ 61, 74 ], [ 75, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 76, 85 ], [ 85, 86 ], [ 86, 87 ], [ 13, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 9, 94 ], [ 94, 95 ], [ 0, 96 ], [ 96, 97 ], [ 96, 98 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line,store=\"\";\n boolean first=true;\n int sum=0;\n while ((line = br.readLine()) != null) {\n \tif(line.equals(\"END_OF_TEXT\"))break;\n \tif(first){\n \t\tstore=line.toLowerCase();\n \t\tfirst=false;\n \t}else{\n \t\tString[] str = line.split(\" \");\n \t\tfor(int i=0;i<str.length;i++){\n \t\t\tif(store.equals(str[i].toLowerCase())){\n \t\t\t\tsum++;\n \t\t\t}\n \t\t}\n \t}\n }\n System.out.println(sum);\n }\n }\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line,store=\"\";\n boolean first=true;\n int sum=0;\n while ((line = br.readLine()) != null) {\n \tif(line.equals(\"END_OF_TEXT\"))break;\n \tif(first){\n \t\tstore=line.toLowerCase();\n \t\tfirst=false;\n \t}else{\n \t\tString[] str = line.split(\" \");\n \t\tfor(int i=0;i<str.length;i++){\n \t\t\tif(store.equals(str[i].toLowerCase())){\n \t\t\t\tsum++;\n \t\t\t}\n \t\t}\n \t}\n }\n System.out.println(sum);\n }\n }\n\n}", "Main", "public static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line,store=\"\";\n boolean first=true;\n int sum=0;\n while ((line = br.readLine()) != null) {\n \tif(line.equals(\"END_OF_TEXT\"))break;\n \tif(first){\n \t\tstore=line.toLowerCase();\n \t\tfirst=false;\n \t}else{\n \t\tString[] str = line.split(\" \");\n \t\tfor(int i=0;i<str.length;i++){\n \t\t\tif(store.equals(str[i].toLowerCase())){\n \t\t\t\tsum++;\n \t\t\t}\n \t\t}\n \t}\n }\n System.out.println(sum);\n }\n }", "main", "{\n // TODO ?????????????????????????????????????????????\n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line,store=\"\";\n boolean first=true;\n int sum=0;\n while ((line = br.readLine()) != null) {\n \tif(line.equals(\"END_OF_TEXT\"))break;\n \tif(first){\n \t\tstore=line.toLowerCase();\n \t\tfirst=false;\n \t}else{\n \t\tString[] str = line.split(\" \");\n \t\tfor(int i=0;i<str.length;i++){\n \t\t\tif(store.equals(str[i].toLowerCase())){\n \t\t\t\tsum++;\n \t\t\t}\n \t\t}\n \t}\n }\n System.out.println(sum);\n }\n }", "try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line,store=\"\";\n boolean first=true;\n int sum=0;\n while ((line = br.readLine()) != null) {\n \tif(line.equals(\"END_OF_TEXT\"))break;\n \tif(first){\n \t\tstore=line.toLowerCase();\n \t\tfirst=false;\n \t}else{\n \t\tString[] str = line.split(\" \");\n \t\tfor(int i=0;i<str.length;i++){\n \t\t\tif(store.equals(str[i].toLowerCase())){\n \t\t\t\tsum++;\n \t\t\t}\n \t\t}\n \t}\n }\n System.out.println(sum);\n }", "{\n String line,store=\"\";\n boolean first=true;\n int sum=0;\n while ((line = br.readLine()) != null) {\n \tif(line.equals(\"END_OF_TEXT\"))break;\n \tif(first){\n \t\tstore=line.toLowerCase();\n \t\tfirst=false;\n \t}else{\n \t\tString[] str = line.split(\" \");\n \t\tfor(int i=0;i<str.length;i++){\n \t\t\tif(store.equals(str[i].toLowerCase())){\n \t\t\t\tsum++;\n \t\t\t}\n \t\t}\n \t}\n }\n System.out.println(sum);\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in))", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in))", "new BufferedReader(new InputStreamReader(System.in))", "String line", "line", "store=\"\";", "store", "\"\"", "boolean first=true;", "first", "true", "int sum=0;", "sum", "0", "while ((line = br.readLine()) != null) {\n \tif(line.equals(\"END_OF_TEXT\"))break;\n \tif(first){\n \t\tstore=line.toLowerCase();\n \t\tfirst=false;\n \t}else{\n \t\tString[] str = line.split(\" \");\n \t\tfor(int i=0;i<str.length;i++){\n \t\t\tif(store.equals(str[i].toLowerCase())){\n \t\t\t\tsum++;\n \t\t\t}\n \t\t}\n \t}\n }", "(line = br.readLine()) != null", "(line = br.readLine())", "line", "br.readLine()", "br.readLine", "br", "null", "{\n \tif(line.equals(\"END_OF_TEXT\"))break;\n \tif(first){\n \t\tstore=line.toLowerCase();\n \t\tfirst=false;\n \t}else{\n \t\tString[] str = line.split(\" \");\n \t\tfor(int i=0;i<str.length;i++){\n \t\t\tif(store.equals(str[i].toLowerCase())){\n \t\t\t\tsum++;\n \t\t\t}\n \t\t}\n \t}\n }", "if(line.equals(\"END_OF_TEXT\"))break;", "line.equals(\"END_OF_TEXT\")", "line.equals", "line", "\"END_OF_TEXT\"", "break;", "if(first){\n \t\tstore=line.toLowerCase();\n \t\tfirst=false;\n \t}else{\n \t\tString[] str = line.split(\" \");\n \t\tfor(int i=0;i<str.length;i++){\n \t\t\tif(store.equals(str[i].toLowerCase())){\n \t\t\t\tsum++;\n \t\t\t}\n \t\t}\n \t}", "first", "{\n \t\tstore=line.toLowerCase();\n \t\tfirst=false;\n \t}", "store=line.toLowerCase()", "store", "line.toLowerCase()", "line.toLowerCase", "line", "first=false", "first", "false", "{\n \t\tString[] str = line.split(\" \");\n \t\tfor(int i=0;i<str.length;i++){\n \t\t\tif(store.equals(str[i].toLowerCase())){\n \t\t\t\tsum++;\n \t\t\t}\n \t\t}\n \t}", "String[] str = line.split(\" \");", "str", "line.split(\" \")", "line.split", "line", "\" \"", "for(int i=0;i<str.length;i++){\n \t\t\tif(store.equals(str[i].toLowerCase())){\n \t\t\t\tsum++;\n \t\t\t}\n \t\t}", "int i=0;", "int i=0;", "i", "0", "i<str.length", "i", "str.length", "str", "str.length", "i++", "i++", "i", "{\n \t\t\tif(store.equals(str[i].toLowerCase())){\n \t\t\t\tsum++;\n \t\t\t}\n \t\t}", "{\n \t\t\tif(store.equals(str[i].toLowerCase())){\n \t\t\t\tsum++;\n \t\t\t}\n \t\t}", "if(store.equals(str[i].toLowerCase())){\n \t\t\t\tsum++;\n \t\t\t}", "store.equals(str[i].toLowerCase())", "store.equals", "store", "str[i].toLowerCase()", "str[i].toLowerCase", "str[i]", "str", "i", "{\n \t\t\t\tsum++;\n \t\t\t}", "sum++", "sum", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line,store=\"\";\n boolean first=true;\n int sum=0;\n while ((line = br.readLine()) != null) {\n \tif(line.equals(\"END_OF_TEXT\"))break;\n \tif(first){\n \t\tstore=line.toLowerCase();\n \t\tfirst=false;\n \t}else{\n \t\tString[] str = line.split(\" \");\n \t\tfor(int i=0;i<str.length;i++){\n \t\t\tif(store.equals(str[i].toLowerCase())){\n \t\t\t\tsum++;\n \t\t\t}\n \t\t}\n \t}\n }\n System.out.println(sum);\n }\n }\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line,store=\"\";\n boolean first=true;\n int sum=0;\n while ((line = br.readLine()) != null) {\n \tif(line.equals(\"END_OF_TEXT\"))break;\n \tif(first){\n \t\tstore=line.toLowerCase();\n \t\tfirst=false;\n \t}else{\n \t\tString[] str = line.split(\" \");\n \t\tfor(int i=0;i<str.length;i++){\n \t\t\tif(store.equals(str[i].toLowerCase())){\n \t\t\t\tsum++;\n \t\t\t}\n \t\t}\n \t}\n }\n System.out.println(sum);\n }\n }\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { // TODO ????????????????????????????????????????????? try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) { String line,store=""; boolean first=true; int sum=0; while ((line = br.readLine()) != null) { if(line.equals("END_OF_TEXT"))break; if(first){ store=line.toLowerCase(); first=false; }else{ String[] str = line.split(" "); for(int i=0;i<str.length;i++){ if(store.equals(str[i].toLowerCase())){ sum++; } } } } System.out.println(sum); } } }
[ 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, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 2, 0, 13, 4, 18, 13, 17, 30, 30, 41, 13, 4, 18, 13, 17, 28, 13, 13, 30, 30, 14, 4, 18, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 20, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 20, 31 ], [ 31, 32 ], [ 31, 33 ], [ 20, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 36, 42 ], [ 34, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 44, 51 ], [ 51, 52 ], [ 51, 53 ], [ 51, 54 ], [ 55, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 56, 61 ], [ 61, 62 ], [ 20, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 18, 69 ], [ 69, 70 ] ]
[ "import java.io.BufferedReader;\nimport java.io.FileReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Scanner;\n\n\nclass Main{\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t//BufferedReader br = new BufferedReader(new FileReader(\"sample.txt\"));\n\t\t\n\t\t\n\t\tString str;\n\t\tString x=br.readLine();\n\t\tint count=0;\n\t\tfor(;(str=br.readLine())!=null;){\n\t\t\tString[] stg=str.split(\" \");\n\t\t\tfor(String i:stg){\n\t\t\t\tif(i.equalsIgnoreCase(x))count++;\n\t\t\t}\n\t\t}System.out.println(count);\n\t\t}\n\t\t\n\t\t}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.FileReader;", "FileReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t//BufferedReader br = new BufferedReader(new FileReader(\"sample.txt\"));\n\t\t\n\t\t\n\t\tString str;\n\t\tString x=br.readLine();\n\t\tint count=0;\n\t\tfor(;(str=br.readLine())!=null;){\n\t\t\tString[] stg=str.split(\" \");\n\t\t\tfor(String i:stg){\n\t\t\t\tif(i.equalsIgnoreCase(x))count++;\n\t\t\t}\n\t\t}System.out.println(count);\n\t\t}\n\t\t\n\t\t}", "Main", "public static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t//BufferedReader br = new BufferedReader(new FileReader(\"sample.txt\"));\n\t\t\n\t\t\n\t\tString str;\n\t\tString x=br.readLine();\n\t\tint count=0;\n\t\tfor(;(str=br.readLine())!=null;){\n\t\t\tString[] stg=str.split(\" \");\n\t\t\tfor(String i:stg){\n\t\t\t\tif(i.equalsIgnoreCase(x))count++;\n\t\t\t}\n\t\t}System.out.println(count);\n\t\t}", "main", "{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t//BufferedReader br = new BufferedReader(new FileReader(\"sample.txt\"));\n\t\t\n\t\t\n\t\tString str;\n\t\tString x=br.readLine();\n\t\tint count=0;\n\t\tfor(;(str=br.readLine())!=null;){\n\t\t\tString[] stg=str.split(\" \");\n\t\t\tfor(String i:stg){\n\t\t\t\tif(i.equalsIgnoreCase(x))count++;\n\t\t\t}\n\t\t}System.out.println(count);\n\t\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String str;", "str", "String x=br.readLine();", "x", "br.readLine()", "br.readLine", "br", "int count=0;", "count", "0", "for(;(str=br.readLine())!=null;){\n\t\t\tString[] stg=str.split(\" \");\n\t\t\tfor(String i:stg){\n\t\t\t\tif(i.equalsIgnoreCase(x))count++;\n\t\t\t}\n\t\t}", ";", "(str=br.readLine())!=null", "(str=br.readLine())", "str", "br.readLine()", "br.readLine", "br", "null", "{\n\t\t\tString[] stg=str.split(\" \");\n\t\t\tfor(String i:stg){\n\t\t\t\tif(i.equalsIgnoreCase(x))count++;\n\t\t\t}\n\t\t}", "{\n\t\t\tString[] stg=str.split(\" \");\n\t\t\tfor(String i:stg){\n\t\t\t\tif(i.equalsIgnoreCase(x))count++;\n\t\t\t}\n\t\t}", "String[] stg=str.split(\" \");", "stg", "str.split(\" \")", "str.split", "str", "\" \"", "for(String i:stg){\n\t\t\t\tif(i.equalsIgnoreCase(x))count++;\n\t\t\t}", "String i", "stg", "{\n\t\t\t\tif(i.equalsIgnoreCase(x))count++;\n\t\t\t}", "{\n\t\t\t\tif(i.equalsIgnoreCase(x))count++;\n\t\t\t}", "if(i.equalsIgnoreCase(x))count++;", "i.equalsIgnoreCase(x)", "i.equalsIgnoreCase", "i", "x", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args" ]
import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Scanner; class Main{ public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); //BufferedReader br = new BufferedReader(new FileReader("sample.txt")); String str; String x=br.readLine(); int count=0; for(;(str=br.readLine())!=null;){ String[] stg=str.split(" "); for(String i:stg){ if(i.equalsIgnoreCase(x))count++; } }System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 0, 13, 4, 18, 13, 14, 4, 18, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 27, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 33, 38 ], [ 27, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 27, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 44, 49 ], [ 49, 50 ], [ 8, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 51, 56 ], [ 8, 57 ], [ 57, 58 ], [ 58, 59 ], [ 6, 60 ], [ 60, 61 ] ]
[ "import java.util.Scanner;\nclass Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n String Key = sc.next();\n \t\tKey = Key.toUpperCase();\n int sum =0;\n while( true ){\n String T = sc.next();\n if( T.equals( \"END_OF_TEXT\" ) )\n break;\n\t\t\t\tT = T.toUpperCase();\n \tif(Key.equals(T))\n sum++;\n }\n System.out.println(sum);\n sc.close();\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 \n String Key = sc.next();\n \t\tKey = Key.toUpperCase();\n int sum =0;\n while( true ){\n String T = sc.next();\n if( T.equals( \"END_OF_TEXT\" ) )\n break;\n\t\t\t\tT = T.toUpperCase();\n \tif(Key.equals(T))\n sum++;\n }\n System.out.println(sum);\n sc.close();\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n String Key = sc.next();\n \t\tKey = Key.toUpperCase();\n int sum =0;\n while( true ){\n String T = sc.next();\n if( T.equals( \"END_OF_TEXT\" ) )\n break;\n\t\t\t\tT = T.toUpperCase();\n \tif(Key.equals(T))\n sum++;\n }\n System.out.println(sum);\n sc.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n \n String Key = sc.next();\n \t\tKey = Key.toUpperCase();\n int sum =0;\n while( true ){\n String T = sc.next();\n if( T.equals( \"END_OF_TEXT\" ) )\n break;\n\t\t\t\tT = T.toUpperCase();\n \tif(Key.equals(T))\n sum++;\n }\n System.out.println(sum);\n sc.close();\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String Key = sc.next();", "Key", "sc.next()", "sc.next", "sc", "Key = Key.toUpperCase()", "Key", "Key.toUpperCase()", "Key.toUpperCase", "Key", "int sum =0;", "sum", "0", "while( true ){\n String T = sc.next();\n if( T.equals( \"END_OF_TEXT\" ) )\n break;\n\t\t\t\tT = T.toUpperCase();\n \tif(Key.equals(T))\n sum++;\n }", "true", "{\n String T = sc.next();\n if( T.equals( \"END_OF_TEXT\" ) )\n break;\n\t\t\t\tT = T.toUpperCase();\n \tif(Key.equals(T))\n sum++;\n }", "String T = sc.next();", "T", "sc.next()", "sc.next", "sc", "if( T.equals( \"END_OF_TEXT\" ) )\n break;", "T.equals( \"END_OF_TEXT\" )", "T.equals", "T", "\"END_OF_TEXT\"", "break;", "T = T.toUpperCase()", "T", "T.toUpperCase()", "T.toUpperCase", "T", "if(Key.equals(T))\n sum++;", "Key.equals(T)", "Key.equals", "Key", "T", "sum++", "sum", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "sc.close()", "sc.close", "sc", "String[] args", "args" ]
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String Key = sc.next(); Key = Key.toUpperCase(); int sum =0; while( true ){ String T = sc.next(); if( T.equals( "END_OF_TEXT" ) ) break; T = T.toUpperCase(); if(Key.equals(T)) sum++; } System.out.println(sum); sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 17, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 42, 40, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 18, 13, 13, 13, 40, 13, 0, 13, 4, 18, 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 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 8, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 23, 28 ], [ 19, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 29, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 29, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 40, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 46, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 53, 63 ], [ 63, 64 ], [ 64, 65 ], [ 53, 66 ], [ 67, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 68, 75 ], [ 75, 76 ], [ 46, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 29, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 6, 88 ], [ 88, 89 ] ]
[ "// ITP1_9_A Finding a Word\nimport java.io.*;\n\nclass Main {\n\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String W;\n String T;\n int cnt = 0;\n\n try {\n W = br.readLine();\n T = br.readLine();\n while (!(T.equals(\"END_OF_TEXT\"))) { \n String[] Ti = T.split(\" \");\n for (int i = 0; i < Ti.length; i++) {\n if (Ti[i].equalsIgnoreCase(W))\n cnt++;\n }\n T = br.readLine();\n }\n System.out.println(cnt);\n }\n\n catch (Exception e) {\n System.err.println(e);\n }\n\n }\n}", "import java.io.*;", "io.*", "java", "class Main {\n\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String W;\n String T;\n int cnt = 0;\n\n try {\n W = br.readLine();\n T = br.readLine();\n while (!(T.equals(\"END_OF_TEXT\"))) { \n String[] Ti = T.split(\" \");\n for (int i = 0; i < Ti.length; i++) {\n if (Ti[i].equalsIgnoreCase(W))\n cnt++;\n }\n T = br.readLine();\n }\n System.out.println(cnt);\n }\n\n catch (Exception e) {\n System.err.println(e);\n }\n\n }\n}", "Main", "public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String W;\n String T;\n int cnt = 0;\n\n try {\n W = br.readLine();\n T = br.readLine();\n while (!(T.equals(\"END_OF_TEXT\"))) { \n String[] Ti = T.split(\" \");\n for (int i = 0; i < Ti.length; i++) {\n if (Ti[i].equalsIgnoreCase(W))\n cnt++;\n }\n T = br.readLine();\n }\n System.out.println(cnt);\n }\n\n catch (Exception e) {\n System.err.println(e);\n }\n\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String W;\n String T;\n int cnt = 0;\n\n try {\n W = br.readLine();\n T = br.readLine();\n while (!(T.equals(\"END_OF_TEXT\"))) { \n String[] Ti = T.split(\" \");\n for (int i = 0; i < Ti.length; i++) {\n if (Ti[i].equalsIgnoreCase(W))\n cnt++;\n }\n T = br.readLine();\n }\n System.out.println(cnt);\n }\n\n catch (Exception e) {\n System.err.println(e);\n }\n\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String W;", "W", "String T;", "T", "int cnt = 0;", "cnt", "0", "try {\n W = br.readLine();\n T = br.readLine();\n while (!(T.equals(\"END_OF_TEXT\"))) { \n String[] Ti = T.split(\" \");\n for (int i = 0; i < Ti.length; i++) {\n if (Ti[i].equalsIgnoreCase(W))\n cnt++;\n }\n T = br.readLine();\n }\n System.out.println(cnt);\n }\n\n catch (Exception e) {\n System.err.println(e);\n }", "catch (Exception e) {\n System.err.println(e);\n }", "Exception e", "{\n System.err.println(e);\n }", "System.err.println(e)", "System.err.println", "System.err", "System", "System.err", "e", "{\n W = br.readLine();\n T = br.readLine();\n while (!(T.equals(\"END_OF_TEXT\"))) { \n String[] Ti = T.split(\" \");\n for (int i = 0; i < Ti.length; i++) {\n if (Ti[i].equalsIgnoreCase(W))\n cnt++;\n }\n T = br.readLine();\n }\n System.out.println(cnt);\n }", "W = br.readLine()", "W", "br.readLine()", "br.readLine", "br", "T = br.readLine()", "T", "br.readLine()", "br.readLine", "br", "while (!(T.equals(\"END_OF_TEXT\"))) { \n String[] Ti = T.split(\" \");\n for (int i = 0; i < Ti.length; i++) {\n if (Ti[i].equalsIgnoreCase(W))\n cnt++;\n }\n T = br.readLine();\n }", "!(T.equals(\"END_OF_TEXT\"))", "(T.equals(\"END_OF_TEXT\"))", "T.equals", "T", "\"END_OF_TEXT\"", "{ \n String[] Ti = T.split(\" \");\n for (int i = 0; i < Ti.length; i++) {\n if (Ti[i].equalsIgnoreCase(W))\n cnt++;\n }\n T = br.readLine();\n }", "String[] Ti = T.split(\" \");", "Ti", "T.split(\" \")", "T.split", "T", "\" \"", "for (int i = 0; i < Ti.length; i++) {\n if (Ti[i].equalsIgnoreCase(W))\n cnt++;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < Ti.length", "i", "Ti.length", "Ti", "Ti.length", "i++", "i++", "i", "{\n if (Ti[i].equalsIgnoreCase(W))\n cnt++;\n }", "{\n if (Ti[i].equalsIgnoreCase(W))\n cnt++;\n }", "if (Ti[i].equalsIgnoreCase(W))\n cnt++;", "Ti[i].equalsIgnoreCase(W)", "Ti[i].equalsIgnoreCase", "Ti[i]", "Ti", "i", "W", "cnt++", "cnt", "T = br.readLine()", "T", "br.readLine()", "br.readLine", "br", "System.out.println(cnt)", "System.out.println", "System.out", "System", "System.out", "cnt", "String[] args", "args" ]
// ITP1_9_A Finding a Word import java.io.*; class Main { public static void main(String[] args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String W; String T; int cnt = 0; try { W = br.readLine(); T = br.readLine(); while (!(T.equals("END_OF_TEXT"))) { String[] Ti = T.split(" "); for (int i = 0; i < Ti.length; i++) { if (Ti[i].equalsIgnoreCase(W)) cnt++; } T = br.readLine(); } System.out.println(cnt); } catch (Exception e) { System.err.println(e); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 17, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 42, 2, 0, 13, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 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, 3, 14, 4, 18, 13, 18, 13, 13, 30, 40, 13, 4, 18, 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 ], [ 96, 8 ], [ 96, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 11, 17 ], [ 17, 18 ], [ 17, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 11, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 11, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 31, 37 ], [ 30, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 38, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 38, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 50, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 57, 59 ], [ 50, 60 ], [ 60, 61 ], [ 61, 62 ], [ 50, 63 ], [ 64, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 65, 72 ], [ 72, 73 ], [ 64, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 78, 79 ], [ 78, 80 ], [ 74, 81 ], [ 81, 82 ], [ 82, 83 ], [ 11, 84 ], [ 84, 85 ], [ 85, 86 ], [ 11, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 9, 93 ], [ 93, 94 ], [ 0, 95 ], [ 95, 96 ], [ 95, 97 ] ]
[ "import java.io.*;\nimport java.util.*;\n\npublic class Main{\n public static void main(String[] args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n\n int count = 0;\n\n str = br.readLine();\n String W = str.toLowerCase();\n while((str = br.readLine()) != null){\n String x = str.toLowerCase();\n String[] temp = x.split(\"\\\\s\");\n for(int i =0;i<temp.length;i++){\n if(temp[i].equals(\"END_OF_TEXT\")){\n break;\n }\n if(W.equals(temp[i])){\n count++;\n }\n }\n } \n br.close();\n System.out.println(count);\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "public class Main{\n public static void main(String[] args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n\n int count = 0;\n\n str = br.readLine();\n String W = str.toLowerCase();\n while((str = br.readLine()) != null){\n String x = str.toLowerCase();\n String[] temp = x.split(\"\\\\s\");\n for(int i =0;i<temp.length;i++){\n if(temp[i].equals(\"END_OF_TEXT\")){\n break;\n }\n if(W.equals(temp[i])){\n count++;\n }\n }\n } \n br.close();\n System.out.println(count);\n }\n}", "Main", "public static void main(String[] args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n\n int count = 0;\n\n str = br.readLine();\n String W = str.toLowerCase();\n while((str = br.readLine()) != null){\n String x = str.toLowerCase();\n String[] temp = x.split(\"\\\\s\");\n for(int i =0;i<temp.length;i++){\n if(temp[i].equals(\"END_OF_TEXT\")){\n break;\n }\n if(W.equals(temp[i])){\n count++;\n }\n }\n } \n br.close();\n System.out.println(count);\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n\n int count = 0;\n\n str = br.readLine();\n String W = str.toLowerCase();\n while((str = br.readLine()) != null){\n String x = str.toLowerCase();\n String[] temp = x.split(\"\\\\s\");\n for(int i =0;i<temp.length;i++){\n if(temp[i].equals(\"END_OF_TEXT\")){\n break;\n }\n if(W.equals(temp[i])){\n count++;\n }\n }\n } \n br.close();\n System.out.println(count);\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String str;", "str", "int count = 0;", "count", "0", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "String W = str.toLowerCase();", "W", "str.toLowerCase()", "str.toLowerCase", "str", "while((str = br.readLine()) != null){\n String x = str.toLowerCase();\n String[] temp = x.split(\"\\\\s\");\n for(int i =0;i<temp.length;i++){\n if(temp[i].equals(\"END_OF_TEXT\")){\n break;\n }\n if(W.equals(temp[i])){\n count++;\n }\n }\n }", "(str = br.readLine()) != null", "(str = br.readLine())", "str", "br.readLine()", "br.readLine", "br", "null", "{\n String x = str.toLowerCase();\n String[] temp = x.split(\"\\\\s\");\n for(int i =0;i<temp.length;i++){\n if(temp[i].equals(\"END_OF_TEXT\")){\n break;\n }\n if(W.equals(temp[i])){\n count++;\n }\n }\n }", "String x = str.toLowerCase();", "x", "str.toLowerCase()", "str.toLowerCase", "str", "String[] temp = x.split(\"\\\\s\");", "temp", "x.split(\"\\\\s\")", "x.split", "x", "\"\\\\s\"", "for(int i =0;i<temp.length;i++){\n if(temp[i].equals(\"END_OF_TEXT\")){\n break;\n }\n if(W.equals(temp[i])){\n count++;\n }\n }", "int i =0;", "int i =0;", "i", "0", "i<temp.length", "i", "temp.length", "temp", "temp.length", "i++", "i++", "i", "{\n if(temp[i].equals(\"END_OF_TEXT\")){\n break;\n }\n if(W.equals(temp[i])){\n count++;\n }\n }", "{\n if(temp[i].equals(\"END_OF_TEXT\")){\n break;\n }\n if(W.equals(temp[i])){\n count++;\n }\n }", "if(temp[i].equals(\"END_OF_TEXT\")){\n break;\n }", "temp[i].equals(\"END_OF_TEXT\")", "temp[i].equals", "temp[i]", "temp", "i", "\"END_OF_TEXT\"", "{\n break;\n }", "break;", "if(W.equals(temp[i])){\n count++;\n }", "W.equals(temp[i])", "W.equals", "W", "temp[i]", "temp", "i", "{\n count++;\n }", "count++", "count", "br.close()", "br.close", "br", "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)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n\n int count = 0;\n\n str = br.readLine();\n String W = str.toLowerCase();\n while((str = br.readLine()) != null){\n String x = str.toLowerCase();\n String[] temp = x.split(\"\\\\s\");\n for(int i =0;i<temp.length;i++){\n if(temp[i].equals(\"END_OF_TEXT\")){\n break;\n }\n if(W.equals(temp[i])){\n count++;\n }\n }\n } \n br.close();\n System.out.println(count);\n }\n}", "public class Main{\n public static void main(String[] args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n\n int count = 0;\n\n str = br.readLine();\n String W = str.toLowerCase();\n while((str = br.readLine()) != null){\n String x = str.toLowerCase();\n String[] temp = x.split(\"\\\\s\");\n for(int i =0;i<temp.length;i++){\n if(temp[i].equals(\"END_OF_TEXT\")){\n break;\n }\n if(W.equals(temp[i])){\n count++;\n }\n }\n } \n br.close();\n System.out.println(count);\n }\n}", "Main" ]
import java.io.*; import java.util.*; public class Main{ public static void main(String[] args)throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str; int count = 0; str = br.readLine(); String W = str.toLowerCase(); while((str = br.readLine()) != null){ String x = str.toLowerCase(); String[] temp = x.split("\\s"); for(int i =0;i<temp.length;i++){ if(temp[i].equals("END_OF_TEXT")){ break; } if(W.equals(temp[i])){ count++; } } } br.close(); System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 4, 18, 4, 18, 13, 41, 13, 41, 13, 17, 42, 40, 4, 18, 0, 13, 4, 18, 13, 17, 14, 4, 18, 13, 4, 18, 13, 40, 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 ], [ 52, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 11, 19 ], [ 19, 20 ], [ 11, 21 ], [ 21, 22 ], [ 21, 23 ], [ 11, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 26, 33 ], [ 24, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 38, 39 ], [ 39, 40 ], [ 34, 41 ], [ 41, 42 ], [ 11, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 9, 49 ], [ 49, 50 ], [ 0, 51 ], [ 51, 52 ], [ 51, 53 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n\n\tstatic final Scanner s=new Scanner(System.in);\n\n\tpublic static void main(String args[]){\n\t\tString a=s.next().toLowerCase(),b;\n\t\tint c=0;\n\t\twhile(!(b=s.next()).equals(\"END_OF_TEXT\"))\n\t\t\tif(a.equals(b.toLowerCase()))\n\t\t\t\tc++;\n\t\tSystem.out.println(c);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\n\tstatic final Scanner s=new Scanner(System.in);\n\n\tpublic static void main(String args[]){\n\t\tString a=s.next().toLowerCase(),b;\n\t\tint c=0;\n\t\twhile(!(b=s.next()).equals(\"END_OF_TEXT\"))\n\t\t\tif(a.equals(b.toLowerCase()))\n\t\t\t\tc++;\n\t\tSystem.out.println(c);\n\t}\n}", "Main", "static final Scanner s=new Scanner(System.in);", "s", "new Scanner(System.in)", "public static void main(String args[]){\n\t\tString a=s.next().toLowerCase(),b;\n\t\tint c=0;\n\t\twhile(!(b=s.next()).equals(\"END_OF_TEXT\"))\n\t\t\tif(a.equals(b.toLowerCase()))\n\t\t\t\tc++;\n\t\tSystem.out.println(c);\n\t}", "main", "{\n\t\tString a=s.next().toLowerCase(),b;\n\t\tint c=0;\n\t\twhile(!(b=s.next()).equals(\"END_OF_TEXT\"))\n\t\t\tif(a.equals(b.toLowerCase()))\n\t\t\t\tc++;\n\t\tSystem.out.println(c);\n\t}", "String a=s.next().toLowerCase()", "a", "s.next().toLowerCase()", "s.next().toLowerCase", "s.next()", "s.next", "s", "b;", "b", "int c=0;", "c", "0", "while(!(b=s.next()).equals(\"END_OF_TEXT\"))\n\t\t\tif(a.equals(b.toLowerCase()))\n\t\t\t\tc++;", "!(b=s.next()).equals(\"END_OF_TEXT\")", "(b=s.next()).equals(\"END_OF_TEXT\")", "(b=s.next()).equals", "(b=s.next())", "b", "s.next()", "s.next", "s", "\"END_OF_TEXT\"", "if(a.equals(b.toLowerCase()))\n\t\t\t\tc++;", "a.equals(b.toLowerCase())", "a.equals", "a", "b.toLowerCase()", "b.toLowerCase", "b", "c++", "c", "System.out.println(c)", "System.out.println", "System.out", "System", "System.out", "c", "String args[]", "args", "public class Main{\n\n\tstatic final Scanner s=new Scanner(System.in);\n\n\tpublic static void main(String args[]){\n\t\tString a=s.next().toLowerCase(),b;\n\t\tint c=0;\n\t\twhile(!(b=s.next()).equals(\"END_OF_TEXT\"))\n\t\t\tif(a.equals(b.toLowerCase()))\n\t\t\t\tc++;\n\t\tSystem.out.println(c);\n\t}\n}", "public class Main{\n\n\tstatic final Scanner s=new Scanner(System.in);\n\n\tpublic static void main(String args[]){\n\t\tString a=s.next().toLowerCase(),b;\n\t\tint c=0;\n\t\twhile(!(b=s.next()).equals(\"END_OF_TEXT\"))\n\t\t\tif(a.equals(b.toLowerCase()))\n\t\t\t\tc++;\n\t\tSystem.out.println(c);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main{ static final Scanner s=new Scanner(System.in); public static void main(String args[]){ String a=s.next().toLowerCase(),b; int c=0; while(!(b=s.next()).equals("END_OF_TEXT")) if(a.equals(b.toLowerCase())) c++; System.out.println(c); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 17, 41, 13, 20, 0, 13, 4, 18, 4, 18, 13, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 4, 18, 13, 13, 40, 13, 14, 4, 18, 13, 17, 3, 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 ], [ 8, 11 ], [ 11, 12 ], [ 8, 13 ], [ 13, 14 ], [ 13, 15 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 28, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 35, 40 ], [ 34, 41 ], [ 41, 42 ], [ 28, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 43, 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.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tString w, temp;\n\t\tint counter = 0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tw = sc.next().toLowerCase();\n\t\twhile (true) {\n\t\t\ttemp = sc.next();\n\t\t\tif(temp.toLowerCase().equals(w))\n\t\t\t\tcounter++;\n\t\t\tif(temp.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t}\n\t\tSystem.out.println(counter);\n\t}\n\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tString w, temp;\n\t\tint counter = 0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tw = sc.next().toLowerCase();\n\t\twhile (true) {\n\t\t\ttemp = sc.next();\n\t\t\tif(temp.toLowerCase().equals(w))\n\t\t\t\tcounter++;\n\t\t\tif(temp.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t}\n\t\tSystem.out.println(counter);\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tString w, temp;\n\t\tint counter = 0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tw = sc.next().toLowerCase();\n\t\twhile (true) {\n\t\t\ttemp = sc.next();\n\t\t\tif(temp.toLowerCase().equals(w))\n\t\t\t\tcounter++;\n\t\t\tif(temp.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t}\n\t\tSystem.out.println(counter);\n\t}", "main", "{\n\t\tString w, temp;\n\t\tint counter = 0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tw = sc.next().toLowerCase();\n\t\twhile (true) {\n\t\t\ttemp = sc.next();\n\t\t\tif(temp.toLowerCase().equals(w))\n\t\t\t\tcounter++;\n\t\t\tif(temp.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t}\n\t\tSystem.out.println(counter);\n\t}", "String w", "w", "temp;", "temp", "int counter = 0;", "counter", "0", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "w = sc.next().toLowerCase()", "w", "sc.next().toLowerCase()", "sc.next().toLowerCase", "sc.next()", "sc.next", "sc", "while (true) {\n\t\t\ttemp = sc.next();\n\t\t\tif(temp.toLowerCase().equals(w))\n\t\t\t\tcounter++;\n\t\t\tif(temp.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t}", "true", "{\n\t\t\ttemp = sc.next();\n\t\t\tif(temp.toLowerCase().equals(w))\n\t\t\t\tcounter++;\n\t\t\tif(temp.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t}", "temp = sc.next()", "temp", "sc.next()", "sc.next", "sc", "if(temp.toLowerCase().equals(w))\n\t\t\t\tcounter++;", "temp.toLowerCase().equals(w)", "temp.toLowerCase().equals", "temp.toLowerCase()", "temp.toLowerCase", "temp", "w", "counter++", "counter", "if(temp.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;", "temp.equals(\"END_OF_TEXT\")", "temp.equals", "temp", "\"END_OF_TEXT\"", "break;", "System.out.println(counter)", "System.out.println", "System.out", "System", "System.out", "counter", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tString w, temp;\n\t\tint counter = 0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tw = sc.next().toLowerCase();\n\t\twhile (true) {\n\t\t\ttemp = sc.next();\n\t\t\tif(temp.toLowerCase().equals(w))\n\t\t\t\tcounter++;\n\t\t\tif(temp.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t}\n\t\tSystem.out.println(counter);\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tString w, temp;\n\t\tint counter = 0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tw = sc.next().toLowerCase();\n\t\twhile (true) {\n\t\t\ttemp = sc.next();\n\t\t\tif(temp.toLowerCase().equals(w))\n\t\t\t\tcounter++;\n\t\t\tif(temp.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t}\n\t\tSystem.out.println(counter);\n\t}\n\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { String w, temp; int counter = 0; Scanner sc = new Scanner(System.in); w = sc.next().toLowerCase(); while (true) { temp = sc.next(); if(temp.toLowerCase().equals(w)) counter++; if(temp.equals("END_OF_TEXT")) break; } System.out.println(counter); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 41, 13, 17, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 20, 42, 4, 18, 13, 30, 14, 4, 18, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 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 ], [ 17, 31 ], [ 31, 32 ], [ 31, 33 ], [ 17, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 36, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 42, 47 ], [ 47, 48 ], [ 36, 49 ], [ 49, 50 ], [ 49, 51 ], [ 36, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 52, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 58, 63 ], [ 57, 64 ], [ 64, 65 ], [ 65, 66 ], [ 17, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 15, 73 ], [ 73, 74 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Scanner;\n\nclass Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tString str1 =scan.nextLine();\n\n\t\tString str2;\n\n\t\tint count =0;\n\n\t\twhile (true) {\n\n\t\t\t\tstr2 = scan.nextLine();\n\n\t\t\t\t/*System.out.print(str2);*/\n\t\t\t\tif (str2.equals(\"END_OF_TEXT\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tScanner sb = new Scanner(str2);\n\t\t\t\t\twhile(sb.hasNext()){\n\n\n/*\t\t\t\t\tSystem.out.println(sb.next());\n*/\t\t\t\t\tif(sb.next().equalsIgnoreCase(str1)){\n\t\t\t\t\t\tcount++;\n\n\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\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.Scanner;", "Scanner", "java.util", "class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tString str1 =scan.nextLine();\n\n\t\tString str2;\n\n\t\tint count =0;\n\n\t\twhile (true) {\n\n\t\t\t\tstr2 = scan.nextLine();\n\n\t\t\t\t/*System.out.print(str2);*/\n\t\t\t\tif (str2.equals(\"END_OF_TEXT\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tScanner sb = new Scanner(str2);\n\t\t\t\t\twhile(sb.hasNext()){\n\n\n/*\t\t\t\t\tSystem.out.println(sb.next());\n*/\t\t\t\t\tif(sb.next().equalsIgnoreCase(str1)){\n\t\t\t\t\t\tcount++;\n\n\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n }\n\n}", "Main", "public static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tString str1 =scan.nextLine();\n\n\t\tString str2;\n\n\t\tint count =0;\n\n\t\twhile (true) {\n\n\t\t\t\tstr2 = scan.nextLine();\n\n\t\t\t\t/*System.out.print(str2);*/\n\t\t\t\tif (str2.equals(\"END_OF_TEXT\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tScanner sb = new Scanner(str2);\n\t\t\t\t\twhile(sb.hasNext()){\n\n\n/*\t\t\t\t\tSystem.out.println(sb.next());\n*/\t\t\t\t\tif(sb.next().equalsIgnoreCase(str1)){\n\t\t\t\t\t\tcount++;\n\n\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n }", "main", "{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tString str1 =scan.nextLine();\n\n\t\tString str2;\n\n\t\tint count =0;\n\n\t\twhile (true) {\n\n\t\t\t\tstr2 = scan.nextLine();\n\n\t\t\t\t/*System.out.print(str2);*/\n\t\t\t\tif (str2.equals(\"END_OF_TEXT\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tScanner sb = new Scanner(str2);\n\t\t\t\t\twhile(sb.hasNext()){\n\n\n/*\t\t\t\t\tSystem.out.println(sb.next());\n*/\t\t\t\t\tif(sb.next().equalsIgnoreCase(str1)){\n\t\t\t\t\t\tcount++;\n\n\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String str1 =scan.nextLine();", "str1", "scan.nextLine()", "scan.nextLine", "scan", "String str2;", "str2", "int count =0;", "count", "0", "while (true) {\n\n\t\t\t\tstr2 = scan.nextLine();\n\n\t\t\t\t/*System.out.print(str2);*/\n\t\t\t\tif (str2.equals(\"END_OF_TEXT\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tScanner sb = new Scanner(str2);\n\t\t\t\t\twhile(sb.hasNext()){\n\n\n/*\t\t\t\t\tSystem.out.println(sb.next());\n*/\t\t\t\t\tif(sb.next().equalsIgnoreCase(str1)){\n\t\t\t\t\t\tcount++;\n\n\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t}", "true", "{\n\n\t\t\t\tstr2 = scan.nextLine();\n\n\t\t\t\t/*System.out.print(str2);*/\n\t\t\t\tif (str2.equals(\"END_OF_TEXT\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tScanner sb = new Scanner(str2);\n\t\t\t\t\twhile(sb.hasNext()){\n\n\n/*\t\t\t\t\tSystem.out.println(sb.next());\n*/\t\t\t\t\tif(sb.next().equalsIgnoreCase(str1)){\n\t\t\t\t\t\tcount++;\n\n\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t}", "str2 = scan.nextLine()", "str2", "scan.nextLine()", "scan.nextLine", "scan", "if (str2.equals(\"END_OF_TEXT\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}", "str2.equals(\"END_OF_TEXT\")", "str2.equals", "str2", "\"END_OF_TEXT\"", "{\n\t\t\t\t\tbreak;\n\t\t\t\t}", "break;", "Scanner sb = new Scanner(str2);", "sb", "new Scanner(str2)", "while(sb.hasNext()){\n\n\n/*\t\t\t\t\tSystem.out.println(sb.next());\n*/\t\t\t\t\tif(sb.next().equalsIgnoreCase(str1)){\n\t\t\t\t\t\tcount++;\n\n\t\t\t\t\t}\n\t\t\t\t\t}", "sb.hasNext()", "sb.hasNext", "sb", "{\n\n\n/*\t\t\t\t\tSystem.out.println(sb.next());\n*/\t\t\t\t\tif(sb.next().equalsIgnoreCase(str1)){\n\t\t\t\t\t\tcount++;\n\n\t\t\t\t\t}\n\t\t\t\t\t}", "if(sb.next().equalsIgnoreCase(str1)){\n\t\t\t\t\t\tcount++;\n\n\t\t\t\t\t}", "sb.next().equalsIgnoreCase(str1)", "sb.next().equalsIgnoreCase", "sb.next()", "sb.next", "sb", "str1", "{\n\t\t\t\t\t\tcount++;\n\n\t\t\t\t\t}", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Scanner; class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); Scanner scan = new Scanner(System.in); String str1 =scan.nextLine(); String str2; int count =0; while (true) { str2 = scan.nextLine(); /*System.out.print(str2);*/ if (str2.equals("END_OF_TEXT")) { break; } Scanner sb = new Scanner(str2); while(sb.hasNext()){ /* System.out.println(sb.next()); */ if(sb.next().equalsIgnoreCase(str1)){ count++; } } } System.out.println(count); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 42, 13, 30, 0, 13, 4, 18, 4, 18, 13, 17, 28, 13, 13, 30, 30, 14, 4, 18, 13, 17, 30, 0, 13, 17, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 12, 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 ], [ 19, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 41, 46 ], [ 38, 47 ], [ 47, 48 ], [ 47, 49 ], [ 47, 50 ], [ 51, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 52, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 52, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 61, 66 ], [ 66, 67 ], [ 67, 68 ], [ 19, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 9, 75 ], [ 75, 76 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n \nclass Main {\n public static void main(String[] args) {\n try {\n\t\t\tfinal BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tfinal String key = input.readLine();\n\t\t\tint count = 0;\n\t\t\tboolean flag = true;\n\t\t\tString[] strs;\n\t\t\twhile(flag){\n\t\t\t strs = input.readLine().split(\" \");\n\t\t\t for(final String str : strs){\n\t\t\t \tif (str.equals(\"END_OF_TEXT\")) {\n\t\t\t \t\tflag = false;\n\t\t\t \t} else if(str.equalsIgnoreCase(key)){\n\t\t\t count++;\n\t\t\t }\n\t\t\t }\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "class Main {\n public static void main(String[] args) {\n try {\n\t\t\tfinal BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tfinal String key = input.readLine();\n\t\t\tint count = 0;\n\t\t\tboolean flag = true;\n\t\t\tString[] strs;\n\t\t\twhile(flag){\n\t\t\t strs = input.readLine().split(\" \");\n\t\t\t for(final String str : strs){\n\t\t\t \tif (str.equals(\"END_OF_TEXT\")) {\n\t\t\t \t\tflag = false;\n\t\t\t \t} else if(str.equalsIgnoreCase(key)){\n\t\t\t count++;\n\t\t\t }\n\t\t\t }\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n }\n}", "Main", "public static void main(String[] args) {\n try {\n\t\t\tfinal BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tfinal String key = input.readLine();\n\t\t\tint count = 0;\n\t\t\tboolean flag = true;\n\t\t\tString[] strs;\n\t\t\twhile(flag){\n\t\t\t strs = input.readLine().split(\" \");\n\t\t\t for(final String str : strs){\n\t\t\t \tif (str.equals(\"END_OF_TEXT\")) {\n\t\t\t \t\tflag = false;\n\t\t\t \t} else if(str.equalsIgnoreCase(key)){\n\t\t\t count++;\n\t\t\t }\n\t\t\t }\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n }", "main", "{\n try {\n\t\t\tfinal BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tfinal String key = input.readLine();\n\t\t\tint count = 0;\n\t\t\tboolean flag = true;\n\t\t\tString[] strs;\n\t\t\twhile(flag){\n\t\t\t strs = input.readLine().split(\" \");\n\t\t\t for(final String str : strs){\n\t\t\t \tif (str.equals(\"END_OF_TEXT\")) {\n\t\t\t \t\tflag = false;\n\t\t\t \t} else if(str.equalsIgnoreCase(key)){\n\t\t\t count++;\n\t\t\t }\n\t\t\t }\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n }", "try {\n\t\t\tfinal BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tfinal String key = input.readLine();\n\t\t\tint count = 0;\n\t\t\tboolean flag = true;\n\t\t\tString[] strs;\n\t\t\twhile(flag){\n\t\t\t strs = input.readLine().split(\" \");\n\t\t\t for(final String str : strs){\n\t\t\t \tif (str.equals(\"END_OF_TEXT\")) {\n\t\t\t \t\tflag = false;\n\t\t\t \t} else if(str.equalsIgnoreCase(key)){\n\t\t\t count++;\n\t\t\t }\n\t\t\t }\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}", "catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}", "Exception e", "{\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\tfinal BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tfinal String key = input.readLine();\n\t\t\tint count = 0;\n\t\t\tboolean flag = true;\n\t\t\tString[] strs;\n\t\t\twhile(flag){\n\t\t\t strs = input.readLine().split(\" \");\n\t\t\t for(final String str : strs){\n\t\t\t \tif (str.equals(\"END_OF_TEXT\")) {\n\t\t\t \t\tflag = false;\n\t\t\t \t} else if(str.equalsIgnoreCase(key)){\n\t\t\t count++;\n\t\t\t }\n\t\t\t }\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t}", "final BufferedReader input = new BufferedReader(new InputStreamReader(System.in));", "input", "new BufferedReader(new InputStreamReader(System.in))", "final String key = input.readLine();", "key", "input.readLine()", "input.readLine", "input", "int count = 0;", "count", "0", "boolean flag = true;", "flag", "true", "String[] strs;", "strs", "while(flag){\n\t\t\t strs = input.readLine().split(\" \");\n\t\t\t for(final String str : strs){\n\t\t\t \tif (str.equals(\"END_OF_TEXT\")) {\n\t\t\t \t\tflag = false;\n\t\t\t \t} else if(str.equalsIgnoreCase(key)){\n\t\t\t count++;\n\t\t\t }\n\t\t\t }\n\t\t\t}", "flag", "{\n\t\t\t strs = input.readLine().split(\" \");\n\t\t\t for(final String str : strs){\n\t\t\t \tif (str.equals(\"END_OF_TEXT\")) {\n\t\t\t \t\tflag = false;\n\t\t\t \t} else if(str.equalsIgnoreCase(key)){\n\t\t\t count++;\n\t\t\t }\n\t\t\t }\n\t\t\t}", "strs = input.readLine().split(\" \")", "strs", "input.readLine().split(\" \")", "input.readLine().split", "input.readLine()", "input.readLine", "input", "\" \"", "for(final String str : strs){\n\t\t\t \tif (str.equals(\"END_OF_TEXT\")) {\n\t\t\t \t\tflag = false;\n\t\t\t \t} else if(str.equalsIgnoreCase(key)){\n\t\t\t count++;\n\t\t\t }\n\t\t\t }", "final String str", "strs", "{\n\t\t\t \tif (str.equals(\"END_OF_TEXT\")) {\n\t\t\t \t\tflag = false;\n\t\t\t \t} else if(str.equalsIgnoreCase(key)){\n\t\t\t count++;\n\t\t\t }\n\t\t\t }", "{\n\t\t\t \tif (str.equals(\"END_OF_TEXT\")) {\n\t\t\t \t\tflag = false;\n\t\t\t \t} else if(str.equalsIgnoreCase(key)){\n\t\t\t count++;\n\t\t\t }\n\t\t\t }", "if (str.equals(\"END_OF_TEXT\")) {\n\t\t\t \t\tflag = false;\n\t\t\t \t} else if(str.equalsIgnoreCase(key)){\n\t\t\t count++;\n\t\t\t }", "str.equals(\"END_OF_TEXT\")", "str.equals", "str", "\"END_OF_TEXT\"", "{\n\t\t\t \t\tflag = false;\n\t\t\t \t}", "flag = false", "flag", "false", "if(str.equalsIgnoreCase(key)){\n\t\t\t count++;\n\t\t\t }", "str.equalsIgnoreCase(key)", "str.equalsIgnoreCase", "str", "key", "{\n\t\t\t count++;\n\t\t\t }", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args" ]
import java.io.BufferedReader; import java.io.InputStreamReader; class Main { public static void main(String[] args) { try { final BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); final String key = input.readLine(); int count = 0; boolean flag = true; String[] strs; while(flag){ strs = input.readLine().split(" "); for(final String str : strs){ if (str.equals("END_OF_TEXT")) { flag = false; } else if(str.equalsIgnoreCase(key)){ count++; } } } System.out.println(count); } catch (Exception e) { e.printStackTrace(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 4, 18, 13, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 14, 4, 18, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 54, 5 ], [ 54, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 33, 34 ], [ 22, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 36, 41 ], [ 35, 42 ], [ 42, 43 ], [ 43, 44 ], [ 8, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 6, 51 ], [ 51, 52 ], [ 0, 53 ], [ 53, 54 ], [ 53, 55 ] ]
[ "import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\t\tint count = 0;\n\t\tString check = sc.next();\n\t\twhile(true) {\n String str = sc.next();\n \tif(str.equals(\"END_OF_TEXT\")) {\n \t\tbreak;\n \t}\n \tif(str.toLowerCase().equals(check)) {\n \t\tcount++;\n \t}\n\t\t}\n\t\tSystem.out.println(count);\n }\n}", "import java.util.*;", "util.*", "java", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\t\tint count = 0;\n\t\tString check = sc.next();\n\t\twhile(true) {\n String str = sc.next();\n \tif(str.equals(\"END_OF_TEXT\")) {\n \t\tbreak;\n \t}\n \tif(str.toLowerCase().equals(check)) {\n \t\tcount++;\n \t}\n\t\t}\n\t\tSystem.out.println(count);\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\t\tint count = 0;\n\t\tString check = sc.next();\n\t\twhile(true) {\n String str = sc.next();\n \tif(str.equals(\"END_OF_TEXT\")) {\n \t\tbreak;\n \t}\n \tif(str.toLowerCase().equals(check)) {\n \t\tcount++;\n \t}\n\t\t}\n\t\tSystem.out.println(count);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n\t\tint count = 0;\n\t\tString check = sc.next();\n\t\twhile(true) {\n String str = sc.next();\n \tif(str.equals(\"END_OF_TEXT\")) {\n \t\tbreak;\n \t}\n \tif(str.toLowerCase().equals(check)) {\n \t\tcount++;\n \t}\n\t\t}\n\t\tSystem.out.println(count);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int count = 0;", "count", "0", "String check = sc.next();", "check", "sc.next()", "sc.next", "sc", "while(true) {\n String str = sc.next();\n \tif(str.equals(\"END_OF_TEXT\")) {\n \t\tbreak;\n \t}\n \tif(str.toLowerCase().equals(check)) {\n \t\tcount++;\n \t}\n\t\t}", "true", "{\n String str = sc.next();\n \tif(str.equals(\"END_OF_TEXT\")) {\n \t\tbreak;\n \t}\n \tif(str.toLowerCase().equals(check)) {\n \t\tcount++;\n \t}\n\t\t}", "String str = sc.next();", "str", "sc.next()", "sc.next", "sc", "if(str.equals(\"END_OF_TEXT\")) {\n \t\tbreak;\n \t}", "str.equals(\"END_OF_TEXT\")", "str.equals", "str", "\"END_OF_TEXT\"", "{\n \t\tbreak;\n \t}", "break;", "if(str.toLowerCase().equals(check)) {\n \t\tcount++;\n \t}", "str.toLowerCase().equals(check)", "str.toLowerCase().equals", "str.toLowerCase()", "str.toLowerCase", "str", "check", "{\n \t\tcount++;\n \t}", "count++", "count", "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\t\tint count = 0;\n\t\tString check = sc.next();\n\t\twhile(true) {\n String str = sc.next();\n \tif(str.equals(\"END_OF_TEXT\")) {\n \t\tbreak;\n \t}\n \tif(str.toLowerCase().equals(check)) {\n \t\tcount++;\n \t}\n\t\t}\n\t\tSystem.out.println(count);\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\t\tint count = 0;\n\t\tString check = sc.next();\n\t\twhile(true) {\n String str = sc.next();\n \tif(str.equals(\"END_OF_TEXT\")) {\n \t\tbreak;\n \t}\n \tif(str.toLowerCase().equals(check)) {\n \t\tcount++;\n \t}\n\t\t}\n\t\tSystem.out.println(count);\n }\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int count = 0; String check = sc.next(); while(true) { String str = sc.next(); if(str.equals("END_OF_TEXT")) { break; } if(str.toLowerCase().equals(check)) { 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, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 0, 13, 4, 18, 13, 14, 4, 18, 13, 13, 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 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 22, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 22, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 39, 44 ], [ 44, 45 ], [ 8, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 46, 51 ], [ 6, 52 ], [ 52, 53 ] ]
[ "import java.util.*;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString W = stdIn.next();\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tString s = stdIn.next();\n\t\t\tif(s.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\ts = s.toLowerCase();\n\t\t\tif(W.equals(s))\n\t\t\t\tcount ++;\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "import java.util.*;", "util.*", "java", "class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString W = stdIn.next();\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tString s = stdIn.next();\n\t\t\tif(s.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\ts = s.toLowerCase();\n\t\t\tif(W.equals(s))\n\t\t\t\tcount ++;\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString W = stdIn.next();\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tString s = stdIn.next();\n\t\t\tif(s.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\ts = s.toLowerCase();\n\t\t\tif(W.equals(s))\n\t\t\t\tcount ++;\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "main", "{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString W = stdIn.next();\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tString s = stdIn.next();\n\t\t\tif(s.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\ts = s.toLowerCase();\n\t\t\tif(W.equals(s))\n\t\t\t\tcount ++;\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "Scanner stdIn = new Scanner(System.in);", "stdIn", "new Scanner(System.in)", "String W = stdIn.next();", "W", "stdIn.next()", "stdIn.next", "stdIn", "int count = 0;", "count", "0", "while(true){\n\t\t\tString s = stdIn.next();\n\t\t\tif(s.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\ts = s.toLowerCase();\n\t\t\tif(W.equals(s))\n\t\t\t\tcount ++;\n\t\t}", "true", "{\n\t\t\tString s = stdIn.next();\n\t\t\tif(s.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\ts = s.toLowerCase();\n\t\t\tif(W.equals(s))\n\t\t\t\tcount ++;\n\t\t}", "String s = stdIn.next();", "s", "stdIn.next()", "stdIn.next", "stdIn", "if(s.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;", "s.equals(\"END_OF_TEXT\")", "s.equals", "s", "\"END_OF_TEXT\"", "break;", "s = s.toLowerCase()", "s", "s.toLowerCase()", "s.toLowerCase", "s", "if(W.equals(s))\n\t\t\t\tcount ++;", "W.equals(s)", "W.equals", "W", "s", "count ++", "count", "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 stdIn = new Scanner(System.in); String W = stdIn.next(); int count = 0; while(true){ String s = stdIn.next(); if(s.equals("END_OF_TEXT")) break; s = s.toLowerCase(); if(W.equals(s)) 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, 17, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 13, 30, 3, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 60, 5 ], [ 60, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 23, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 27, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 33, 38 ], [ 38, 39 ], [ 27, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 40, 45 ], [ 45, 46 ], [ 46, 47 ], [ 8, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 8, 54 ], [ 54, 55 ], [ 55, 56 ], [ 6, 57 ], [ 57, 58 ], [ 0, 59 ], [ 59, 60 ], [ 59, 61 ] ]
[ "import java.util.Scanner;\n\n//20180510\n//06\n\npublic class Main {\n public static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tString search = scanner.nextLine();\n\t\tString end = \"END_OF_TEXT\";\n\t\tint count = 0;\n\n\t\twhile (scanner.hasNextLine()) {\n\t\t\tString string = scanner.next();\n\t\t\tif(string.contains(end)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(string.equalsIgnoreCase(search)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\tscanner.close();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tString search = scanner.nextLine();\n\t\tString end = \"END_OF_TEXT\";\n\t\tint count = 0;\n\n\t\twhile (scanner.hasNextLine()) {\n\t\t\tString string = scanner.next();\n\t\t\tif(string.contains(end)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(string.equalsIgnoreCase(search)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\tscanner.close();\n }\n}", "Main", "public static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tString search = scanner.nextLine();\n\t\tString end = \"END_OF_TEXT\";\n\t\tint count = 0;\n\n\t\twhile (scanner.hasNextLine()) {\n\t\t\tString string = scanner.next();\n\t\t\tif(string.contains(end)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(string.equalsIgnoreCase(search)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\tscanner.close();\n }", "main", "{\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tString search = scanner.nextLine();\n\t\tString end = \"END_OF_TEXT\";\n\t\tint count = 0;\n\n\t\twhile (scanner.hasNextLine()) {\n\t\t\tString string = scanner.next();\n\t\t\tif(string.contains(end)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(string.equalsIgnoreCase(search)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\tscanner.close();\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "String search = scanner.nextLine();", "search", "scanner.nextLine()", "scanner.nextLine", "scanner", "String end = \"END_OF_TEXT\";", "end", "\"END_OF_TEXT\"", "int count = 0;", "count", "0", "while (scanner.hasNextLine()) {\n\t\t\tString string = scanner.next();\n\t\t\tif(string.contains(end)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(string.equalsIgnoreCase(search)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "scanner.hasNextLine()", "scanner.hasNextLine", "scanner", "{\n\t\t\tString string = scanner.next();\n\t\t\tif(string.contains(end)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(string.equalsIgnoreCase(search)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "String string = scanner.next();", "string", "scanner.next()", "scanner.next", "scanner", "if(string.contains(end)) {\n\t\t\t\tbreak;\n\t\t\t}", "string.contains(end)", "string.contains", "string", "end", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "if(string.equalsIgnoreCase(search)) {\n\t\t\t\tcount++;\n\t\t\t}", "string.equalsIgnoreCase(search)", "string.equalsIgnoreCase", "string", "search", "{\n\t\t\t\tcount++;\n\t\t\t}", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "scanner.close()", "scanner.close", "scanner", "String[] args", "args", "public class Main {\n public static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tString search = scanner.nextLine();\n\t\tString end = \"END_OF_TEXT\";\n\t\tint count = 0;\n\n\t\twhile (scanner.hasNextLine()) {\n\t\t\tString string = scanner.next();\n\t\t\tif(string.contains(end)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(string.equalsIgnoreCase(search)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\tscanner.close();\n }\n}", "public class Main {\n public static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tString search = scanner.nextLine();\n\t\tString end = \"END_OF_TEXT\";\n\t\tint count = 0;\n\n\t\twhile (scanner.hasNextLine()) {\n\t\t\tString string = scanner.next();\n\t\t\tif(string.contains(end)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(string.equalsIgnoreCase(search)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\tscanner.close();\n }\n}", "Main" ]
import java.util.Scanner; //20180510 //06 public class Main { public static void main(String[] args){ Scanner scanner = new Scanner(System.in); String search = scanner.nextLine(); String end = "END_OF_TEXT"; int count = 0; while (scanner.hasNextLine()) { String string = scanner.next(); if(string.contains(end)) { break; } if(string.equalsIgnoreCase(search)) { count++; } } System.out.println(count); scanner.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 20, 0, 13, 4, 18, 13, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 12, 13, 30, 4, 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 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 28, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 34, 39 ], [ 34, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 40, 45 ], [ 45, 46 ], [ 46, 47 ], [ 8, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 62, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 54, 59 ], [ 59, 60 ], [ 0, 61 ], [ 61, 62 ], [ 61, 63 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static void solve(){\n String t = null, w = null;\n int c = 0;\n Scanner scan = new Scanner(System.in);\n w = scan.next();\n while(true){\n t = scan.next();\n if(t.equals(\"END_OF_TEXT\"))break;\n else if(t.equalsIgnoreCase(w)){\n c++;\n }\n }\n System.out.println(c);\n }\n\n public static void main(String[] args) {\n solve();\n }\n \n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void solve(){\n String t = null, w = null;\n int c = 0;\n Scanner scan = new Scanner(System.in);\n w = scan.next();\n while(true){\n t = scan.next();\n if(t.equals(\"END_OF_TEXT\"))break;\n else if(t.equalsIgnoreCase(w)){\n c++;\n }\n }\n System.out.println(c);\n }\n\n public static void main(String[] args) {\n solve();\n }\n \n}", "Main", "public static void solve(){\n String t = null, w = null;\n int c = 0;\n Scanner scan = new Scanner(System.in);\n w = scan.next();\n while(true){\n t = scan.next();\n if(t.equals(\"END_OF_TEXT\"))break;\n else if(t.equalsIgnoreCase(w)){\n c++;\n }\n }\n System.out.println(c);\n }", "solve", "{\n String t = null, w = null;\n int c = 0;\n Scanner scan = new Scanner(System.in);\n w = scan.next();\n while(true){\n t = scan.next();\n if(t.equals(\"END_OF_TEXT\"))break;\n else if(t.equalsIgnoreCase(w)){\n c++;\n }\n }\n System.out.println(c);\n }", "String t = null", "t", "null", "w = null;", "w", "null", "int c = 0;", "c", "0", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "w = scan.next()", "w", "scan.next()", "scan.next", "scan", "while(true){\n t = scan.next();\n if(t.equals(\"END_OF_TEXT\"))break;\n else if(t.equalsIgnoreCase(w)){\n c++;\n }\n }", "true", "{\n t = scan.next();\n if(t.equals(\"END_OF_TEXT\"))break;\n else if(t.equalsIgnoreCase(w)){\n c++;\n }\n }", "t = scan.next()", "t", "scan.next()", "scan.next", "scan", "if(t.equals(\"END_OF_TEXT\"))break;\n else if(t.equalsIgnoreCase(w)){\n c++;\n }", "t.equals(\"END_OF_TEXT\")", "t.equals", "t", "\"END_OF_TEXT\"", "break;", "if(t.equalsIgnoreCase(w)){\n c++;\n }", "t.equalsIgnoreCase(w)", "t.equalsIgnoreCase", "t", "w", "{\n c++;\n }", "c++", "c", "System.out.println(c)", "System.out.println", "System.out", "System", "System.out", "c", "public static void main(String[] args) {\n solve();\n }", "main", "{\n solve();\n }", "solve()", "solve", "String[] args", "args", "public class Main{\n public static void solve(){\n String t = null, w = null;\n int c = 0;\n Scanner scan = new Scanner(System.in);\n w = scan.next();\n while(true){\n t = scan.next();\n if(t.equals(\"END_OF_TEXT\"))break;\n else if(t.equalsIgnoreCase(w)){\n c++;\n }\n }\n System.out.println(c);\n }\n\n public static void main(String[] args) {\n solve();\n }\n \n}", "public class Main{\n public static void solve(){\n String t = null, w = null;\n int c = 0;\n Scanner scan = new Scanner(System.in);\n w = scan.next();\n while(true){\n t = scan.next();\n if(t.equals(\"END_OF_TEXT\"))break;\n else if(t.equalsIgnoreCase(w)){\n c++;\n }\n }\n System.out.println(c);\n }\n\n public static void main(String[] args) {\n solve();\n }\n \n}", "Main" ]
import java.util.Scanner; public class Main{ public static void solve(){ String t = null, w = null; int c = 0; Scanner scan = new Scanner(System.in); w = scan.next(); while(true){ t = scan.next(); if(t.equals("END_OF_TEXT"))break; else if(t.equalsIgnoreCase(w)){ c++; } } System.out.println(c); } public static void main(String[] args) { solve(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 17, 0, 13, 17, 0, 13, 4, 18, 13, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 13, 40, 13, 14, 4, 18, 13, 13, 3, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 59, 5 ], [ 59, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 8, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 31, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 37, 42 ], [ 42, 43 ], [ 37, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 44, 49 ], [ 8, 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 s = new Scanner(System.in);\n String w,t,n;\n int co=0;\n n = \"END_OF_TEXT\";\n w = s.next();\n while(true){\n t = s.next();\n if(t.equalsIgnoreCase(w))co++;\n else if(t.equals(n))break;\n }\n System.out.println(co);\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 w,t,n;\n int co=0;\n n = \"END_OF_TEXT\";\n w = s.next();\n while(true){\n t = s.next();\n if(t.equalsIgnoreCase(w))co++;\n else if(t.equals(n))break;\n }\n System.out.println(co);\n }\n}", "Main", "public static void main(String[] args){\n Scanner s = new Scanner(System.in);\n String w,t,n;\n int co=0;\n n = \"END_OF_TEXT\";\n w = s.next();\n while(true){\n t = s.next();\n if(t.equalsIgnoreCase(w))co++;\n else if(t.equals(n))break;\n }\n System.out.println(co);\n }", "main", "{\n Scanner s = new Scanner(System.in);\n String w,t,n;\n int co=0;\n n = \"END_OF_TEXT\";\n w = s.next();\n while(true){\n t = s.next();\n if(t.equalsIgnoreCase(w))co++;\n else if(t.equals(n))break;\n }\n System.out.println(co);\n }", "Scanner s = new Scanner(System.in);", "s", "new Scanner(System.in)", "String w", "w", "t", "t", "n;", "n", "int co=0;", "co", "0", "n = \"END_OF_TEXT\"", "n", "\"END_OF_TEXT\"", "w = s.next()", "w", "s.next()", "s.next", "s", "while(true){\n t = s.next();\n if(t.equalsIgnoreCase(w))co++;\n else if(t.equals(n))break;\n }", "true", "{\n t = s.next();\n if(t.equalsIgnoreCase(w))co++;\n else if(t.equals(n))break;\n }", "t = s.next()", "t", "s.next()", "s.next", "s", "if(t.equalsIgnoreCase(w))co++;\n else if(t.equals(n))break;", "t.equalsIgnoreCase(w)", "t.equalsIgnoreCase", "t", "w", "co++", "co", "if(t.equals(n))break;", "t.equals(n)", "t.equals", "t", "n", "break;", "System.out.println(co)", "System.out.println", "System.out", "System", "System.out", "co", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner s = new Scanner(System.in);\n String w,t,n;\n int co=0;\n n = \"END_OF_TEXT\";\n w = s.next();\n while(true){\n t = s.next();\n if(t.equalsIgnoreCase(w))co++;\n else if(t.equals(n))break;\n }\n System.out.println(co);\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner s = new Scanner(System.in);\n String w,t,n;\n int co=0;\n n = \"END_OF_TEXT\";\n w = s.next();\n while(true){\n t = s.next();\n if(t.equalsIgnoreCase(w))co++;\n else if(t.equals(n))break;\n }\n System.out.println(co);\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner s = new Scanner(System.in); String w,t,n; int co=0; n = "END_OF_TEXT"; w = s.next(); while(true){ t = s.next(); if(t.equalsIgnoreCase(w))co++; else if(t.equals(n))break; } System.out.println(co); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 14, 4, 18, 4, 18, 13, 4, 18, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 25, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 31, 36 ], [ 36, 37 ], [ 25, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 39, 44 ], [ 44, 45 ], [ 45, 46 ], [ 38, 47 ], [ 47, 48 ], [ 48, 49 ], [ 11, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 50, 55 ], [ 9, 56 ], [ 56, 57 ] ]
[ "import java.util.Scanner;\nimport java.util.Arrays;\n\nclass Main{\n\tpublic static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString w = scanner.next();\n\t\tint sum = 0;\n\n\t\twhile(true){\n\t\t\tString x = scanner.next();\n\n\t\t\tif(x.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif(x.toLowerCase().equals(w.toLowerCase())){\n\t\t\t\tsum++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(sum);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.Arrays;", "Arrays", "java.util", "class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString w = scanner.next();\n\t\tint sum = 0;\n\n\t\twhile(true){\n\t\t\tString x = scanner.next();\n\n\t\t\tif(x.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif(x.toLowerCase().equals(w.toLowerCase())){\n\t\t\t\tsum++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(sum);\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString w = scanner.next();\n\t\tint sum = 0;\n\n\t\twhile(true){\n\t\t\tString x = scanner.next();\n\n\t\t\tif(x.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif(x.toLowerCase().equals(w.toLowerCase())){\n\t\t\t\tsum++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(sum);\n\t}", "main", "{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString w = scanner.next();\n\t\tint sum = 0;\n\n\t\twhile(true){\n\t\t\tString x = scanner.next();\n\n\t\t\tif(x.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif(x.toLowerCase().equals(w.toLowerCase())){\n\t\t\t\tsum++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(sum);\n\t}", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "String w = scanner.next();", "w", "scanner.next()", "scanner.next", "scanner", "int sum = 0;", "sum", "0", "while(true){\n\t\t\tString x = scanner.next();\n\n\t\t\tif(x.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif(x.toLowerCase().equals(w.toLowerCase())){\n\t\t\t\tsum++;\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tString x = scanner.next();\n\n\t\t\tif(x.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif(x.toLowerCase().equals(w.toLowerCase())){\n\t\t\t\tsum++;\n\t\t\t}\n\t\t}", "String x = scanner.next();", "x", "scanner.next()", "scanner.next", "scanner", "if(x.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}", "x.equals(\"END_OF_TEXT\")", "x.equals", "x", "\"END_OF_TEXT\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "if(x.toLowerCase().equals(w.toLowerCase())){\n\t\t\t\tsum++;\n\t\t\t}", "x.toLowerCase().equals(w.toLowerCase())", "x.toLowerCase().equals", "x.toLowerCase()", "x.toLowerCase", "x", "w.toLowerCase()", "w.toLowerCase", "w", "{\n\t\t\t\tsum++;\n\t\t\t}", "sum++", "sum", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String[] args", "args" ]
import java.util.Scanner; import java.util.Arrays; class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); String w = scanner.next(); int sum = 0; while(true){ String x = scanner.next(); if(x.equals("END_OF_TEXT")){ break; } if(x.toLowerCase().equals(w.toLowerCase())){ sum++; } } System.out.println(sum); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 41, 13, 17, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 30, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 58, 5 ], [ 58, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 24, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 30, 35 ], [ 35, 36 ], [ 30, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 38, 43 ], [ 43, 44 ], [ 44, 45 ], [ 8, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 46, 51 ], [ 8, 52 ], [ 52, 53 ], [ 53, 54 ], [ 6, 55 ], [ 55, 56 ], [ 0, 57 ], [ 57, 58 ], [ 57, 59 ] ]
[ "import java.util.Scanner;\npublic class Main {\n public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n String target=scan.next();\n String s;\n int ans=0;\n while(true){\n s=scan.next();\n if(s.equals(\"END_OF_TEXT\")){\n break;\n }\n else{\n if(s.equalsIgnoreCase(target)){\n ans++;\n }\n }\n }\n System.out.println(ans);\n scan.close();\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 target=scan.next();\n String s;\n int ans=0;\n while(true){\n s=scan.next();\n if(s.equals(\"END_OF_TEXT\")){\n break;\n }\n else{\n if(s.equalsIgnoreCase(target)){\n ans++;\n }\n }\n }\n System.out.println(ans);\n scan.close();\n }\n}", "Main", "public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n String target=scan.next();\n String s;\n int ans=0;\n while(true){\n s=scan.next();\n if(s.equals(\"END_OF_TEXT\")){\n break;\n }\n else{\n if(s.equalsIgnoreCase(target)){\n ans++;\n }\n }\n }\n System.out.println(ans);\n scan.close();\n }", "main", "{\n Scanner scan=new Scanner(System.in);\n String target=scan.next();\n String s;\n int ans=0;\n while(true){\n s=scan.next();\n if(s.equals(\"END_OF_TEXT\")){\n break;\n }\n else{\n if(s.equalsIgnoreCase(target)){\n ans++;\n }\n }\n }\n System.out.println(ans);\n scan.close();\n }", "Scanner scan=new Scanner(System.in);", "scan", "new Scanner(System.in)", "String target=scan.next();", "target", "scan.next()", "scan.next", "scan", "String s;", "s", "int ans=0;", "ans", "0", "while(true){\n s=scan.next();\n if(s.equals(\"END_OF_TEXT\")){\n break;\n }\n else{\n if(s.equalsIgnoreCase(target)){\n ans++;\n }\n }\n }", "true", "{\n s=scan.next();\n if(s.equals(\"END_OF_TEXT\")){\n break;\n }\n else{\n if(s.equalsIgnoreCase(target)){\n ans++;\n }\n }\n }", "s=scan.next()", "s", "scan.next()", "scan.next", "scan", "if(s.equals(\"END_OF_TEXT\")){\n break;\n }\n else{\n if(s.equalsIgnoreCase(target)){\n ans++;\n }\n }", "s.equals(\"END_OF_TEXT\")", "s.equals", "s", "\"END_OF_TEXT\"", "{\n break;\n }", "break;", "{\n if(s.equalsIgnoreCase(target)){\n ans++;\n }\n }", "if(s.equalsIgnoreCase(target)){\n ans++;\n }", "s.equalsIgnoreCase(target)", "s.equalsIgnoreCase", "s", "target", "{\n ans++;\n }", "ans++", "ans", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "scan.close()", "scan.close", "scan", "String[] args", "args", "public class Main {\n public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n String target=scan.next();\n String s;\n int ans=0;\n while(true){\n s=scan.next();\n if(s.equals(\"END_OF_TEXT\")){\n break;\n }\n else{\n if(s.equalsIgnoreCase(target)){\n ans++;\n }\n }\n }\n System.out.println(ans);\n scan.close();\n }\n}", "public class Main {\n public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n String target=scan.next();\n String s;\n int ans=0;\n while(true){\n s=scan.next();\n if(s.equals(\"END_OF_TEXT\")){\n break;\n }\n else{\n if(s.equalsIgnoreCase(target)){\n ans++;\n }\n }\n }\n System.out.println(ans);\n scan.close();\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner scan=new Scanner(System.in); String target=scan.next(); String s; int ans=0; while(true){ s=scan.next(); if(s.equals("END_OF_TEXT")){ break; } else{ if(s.equalsIgnoreCase(target)){ ans++; } } } System.out.println(ans); scan.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 40, 17, 30, 41, 13, 20, 41, 13, 17, 41, 13, 17, 41, 13, 17, 42, 2, 0, 13, 4, 18, 13, 17, 30, 14, 2, 4, 18, 13, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 17, 13, 30, 3, 14, 2, 4, 18, 13, 17, 30, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 28, 13, 13, 30, 30, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 105, 8 ], [ 105, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 16, 19 ], [ 19, 20 ], [ 12, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 21, 25 ], [ 25, 26 ], [ 25, 27 ], [ 21, 28 ], [ 28, 29 ], [ 28, 30 ], [ 21, 31 ], [ 31, 32 ], [ 31, 33 ], [ 21, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 35, 41 ], [ 34, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 44, 48 ], [ 43, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 42, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 55, 60 ], [ 60, 61 ], [ 42, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 63, 67 ], [ 62, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 68, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 68, 80 ], [ 80, 81 ], [ 80, 82 ], [ 80, 83 ], [ 84, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 85, 90 ], [ 90, 91 ], [ 91, 92 ], [ 21, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 21, 99 ], [ 99, 100 ], [ 100, 101 ], [ 9, 102 ], [ 102, 103 ], [ 0, 104 ], [ 104, 105 ], [ 104, 106 ] ]
[ "import java.io.InputStreamReader;\nimport java.io.LineNumberReader;\n\n/**\n * http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_9_A\n * \n * @author eitatsuro\n * \n */\npublic class Main {\n \n public static void main(String[] args) {\n try {\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String inputStr = null;\n String w = null;\n long num = 0;\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n \n if (lineNumReader.getLineNumber() == 1) {\n w = inputStr.toLowerCase();\n }\n \n // ???????????¶.\n if (\"END_OF_TEXT\".equals(inputStr)) {\n // do nothing.\n break;\n }\n \n // 2????????\\???????????±????????????\n if (lineNumReader.getLineNumber() > 1) {\n // ??§???????°????????????\\??????????????§????°????????????±???.\n inputStr = inputStr.toLowerCase();\n \n // ???????????????\n String[] words = inputStr.split(\" \");\n for (String word : words) {\n if (word.equalsIgnoreCase(w)) {\n num++;\n }\n }\n }\n }\n \n // ??¢???????????????\n System.out.println(num);\n lineNumReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n \n }\n}", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.LineNumberReader;", "LineNumberReader", "java.io", "public class Main {\n \n public static void main(String[] args) {\n try {\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String inputStr = null;\n String w = null;\n long num = 0;\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n \n if (lineNumReader.getLineNumber() == 1) {\n w = inputStr.toLowerCase();\n }\n \n // ???????????¶.\n if (\"END_OF_TEXT\".equals(inputStr)) {\n // do nothing.\n break;\n }\n \n // 2????????\\???????????±????????????\n if (lineNumReader.getLineNumber() > 1) {\n // ??§???????°????????????\\??????????????§????°????????????±???.\n inputStr = inputStr.toLowerCase();\n \n // ???????????????\n String[] words = inputStr.split(\" \");\n for (String word : words) {\n if (word.equalsIgnoreCase(w)) {\n num++;\n }\n }\n }\n }\n \n // ??¢???????????????\n System.out.println(num);\n lineNumReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n \n }\n}", "Main", "public static void main(String[] args) {\n try {\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String inputStr = null;\n String w = null;\n long num = 0;\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n \n if (lineNumReader.getLineNumber() == 1) {\n w = inputStr.toLowerCase();\n }\n \n // ???????????¶.\n if (\"END_OF_TEXT\".equals(inputStr)) {\n // do nothing.\n break;\n }\n \n // 2????????\\???????????±????????????\n if (lineNumReader.getLineNumber() > 1) {\n // ??§???????°????????????\\??????????????§????°????????????±???.\n inputStr = inputStr.toLowerCase();\n \n // ???????????????\n String[] words = inputStr.split(\" \");\n for (String word : words) {\n if (word.equalsIgnoreCase(w)) {\n num++;\n }\n }\n }\n }\n \n // ??¢???????????????\n System.out.println(num);\n lineNumReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n \n }", "main", "{\n try {\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String inputStr = null;\n String w = null;\n long num = 0;\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n \n if (lineNumReader.getLineNumber() == 1) {\n w = inputStr.toLowerCase();\n }\n \n // ???????????¶.\n if (\"END_OF_TEXT\".equals(inputStr)) {\n // do nothing.\n break;\n }\n \n // 2????????\\???????????±????????????\n if (lineNumReader.getLineNumber() > 1) {\n // ??§???????°????????????\\??????????????§????°????????????±???.\n inputStr = inputStr.toLowerCase();\n \n // ???????????????\n String[] words = inputStr.split(\" \");\n for (String word : words) {\n if (word.equalsIgnoreCase(w)) {\n num++;\n }\n }\n }\n }\n \n // ??¢???????????????\n System.out.println(num);\n lineNumReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n \n }", "try {\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String inputStr = null;\n String w = null;\n long num = 0;\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n \n if (lineNumReader.getLineNumber() == 1) {\n w = inputStr.toLowerCase();\n }\n \n // ???????????¶.\n if (\"END_OF_TEXT\".equals(inputStr)) {\n // do nothing.\n break;\n }\n \n // 2????????\\???????????±????????????\n if (lineNumReader.getLineNumber() > 1) {\n // ??§???????°????????????\\??????????????§????°????????????±???.\n inputStr = inputStr.toLowerCase();\n \n // ???????????????\n String[] words = inputStr.split(\" \");\n for (String word : words) {\n if (word.equalsIgnoreCase(w)) {\n num++;\n }\n }\n }\n }\n \n // ??¢???????????????\n System.out.println(num);\n lineNumReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }", "catch (Exception e) {\n System.exit(-1);\n }", "Exception e", "{\n System.exit(-1);\n }", "System.exit(-1)", "System.exit", "System", "-1", "1", "{\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String inputStr = null;\n String w = null;\n long num = 0;\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n \n if (lineNumReader.getLineNumber() == 1) {\n w = inputStr.toLowerCase();\n }\n \n // ???????????¶.\n if (\"END_OF_TEXT\".equals(inputStr)) {\n // do nothing.\n break;\n }\n \n // 2????????\\???????????±????????????\n if (lineNumReader.getLineNumber() > 1) {\n // ??§???????°????????????\\??????????????§????°????????????±???.\n inputStr = inputStr.toLowerCase();\n \n // ???????????????\n String[] words = inputStr.split(\" \");\n for (String word : words) {\n if (word.equalsIgnoreCase(w)) {\n num++;\n }\n }\n }\n }\n \n // ??¢???????????????\n System.out.println(num);\n lineNumReader.close();\n }", "LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));", "lineNumReader", "new LineNumberReader(\n new InputStreamReader(System.in))", "String inputStr = null;", "inputStr", "null", "String w = null;", "w", "null", "long num = 0;", "num", "0", "while ((inputStr = lineNumReader.readLine()) != null) {\n \n if (lineNumReader.getLineNumber() == 1) {\n w = inputStr.toLowerCase();\n }\n \n // ???????????¶.\n if (\"END_OF_TEXT\".equals(inputStr)) {\n // do nothing.\n break;\n }\n \n // 2????????\\???????????±????????????\n if (lineNumReader.getLineNumber() > 1) {\n // ??§???????°????????????\\??????????????§????°????????????±???.\n inputStr = inputStr.toLowerCase();\n \n // ???????????????\n String[] words = inputStr.split(\" \");\n for (String word : words) {\n if (word.equalsIgnoreCase(w)) {\n num++;\n }\n }\n }\n }", "(inputStr = lineNumReader.readLine()) != null", "(inputStr = lineNumReader.readLine())", "inputStr", "lineNumReader.readLine()", "lineNumReader.readLine", "lineNumReader", "null", "{\n \n if (lineNumReader.getLineNumber() == 1) {\n w = inputStr.toLowerCase();\n }\n \n // ???????????¶.\n if (\"END_OF_TEXT\".equals(inputStr)) {\n // do nothing.\n break;\n }\n \n // 2????????\\???????????±????????????\n if (lineNumReader.getLineNumber() > 1) {\n // ??§???????°????????????\\??????????????§????°????????????±???.\n inputStr = inputStr.toLowerCase();\n \n // ???????????????\n String[] words = inputStr.split(\" \");\n for (String word : words) {\n if (word.equalsIgnoreCase(w)) {\n num++;\n }\n }\n }\n }", "if (lineNumReader.getLineNumber() == 1) {\n w = inputStr.toLowerCase();\n }", "lineNumReader.getLineNumber() == 1", "lineNumReader.getLineNumber()", "lineNumReader.getLineNumber", "lineNumReader", "1", "{\n w = inputStr.toLowerCase();\n }", "w = inputStr.toLowerCase()", "w", "inputStr.toLowerCase()", "inputStr.toLowerCase", "inputStr", "if (\"END_OF_TEXT\".equals(inputStr)) {\n // do nothing.\n break;\n }", "\"END_OF_TEXT\".equals(inputStr)", "\"END_OF_TEXT\".equals", "\"END_OF_TEXT\"", "inputStr", "{\n // do nothing.\n break;\n }", "break;", "if (lineNumReader.getLineNumber() > 1) {\n // ??§???????°????????????\\??????????????§????°????????????±???.\n inputStr = inputStr.toLowerCase();\n \n // ???????????????\n String[] words = inputStr.split(\" \");\n for (String word : words) {\n if (word.equalsIgnoreCase(w)) {\n num++;\n }\n }\n }", "lineNumReader.getLineNumber() > 1", "lineNumReader.getLineNumber()", "lineNumReader.getLineNumber", "lineNumReader", "1", "{\n // ??§???????°????????????\\??????????????§????°????????????±???.\n inputStr = inputStr.toLowerCase();\n \n // ???????????????\n String[] words = inputStr.split(\" \");\n for (String word : words) {\n if (word.equalsIgnoreCase(w)) {\n num++;\n }\n }\n }", "inputStr = inputStr.toLowerCase()", "inputStr", "inputStr.toLowerCase()", "inputStr.toLowerCase", "inputStr", "String[] words = inputStr.split(\" \");", "words", "inputStr.split(\" \")", "inputStr.split", "inputStr", "\" \"", "for (String word : words) {\n if (word.equalsIgnoreCase(w)) {\n num++;\n }\n }", "String word", "words", "{\n if (word.equalsIgnoreCase(w)) {\n num++;\n }\n }", "{\n if (word.equalsIgnoreCase(w)) {\n num++;\n }\n }", "if (word.equalsIgnoreCase(w)) {\n num++;\n }", "word.equalsIgnoreCase(w)", "word.equalsIgnoreCase", "word", "w", "{\n num++;\n }", "num++", "num", "System.out.println(num)", "System.out.println", "System.out", "System", "System.out", "num", "lineNumReader.close()", "lineNumReader.close", "lineNumReader", "String[] args", "args", "public class Main {\n \n public static void main(String[] args) {\n try {\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String inputStr = null;\n String w = null;\n long num = 0;\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n \n if (lineNumReader.getLineNumber() == 1) {\n w = inputStr.toLowerCase();\n }\n \n // ???????????¶.\n if (\"END_OF_TEXT\".equals(inputStr)) {\n // do nothing.\n break;\n }\n \n // 2????????\\???????????±????????????\n if (lineNumReader.getLineNumber() > 1) {\n // ??§???????°????????????\\??????????????§????°????????????±???.\n inputStr = inputStr.toLowerCase();\n \n // ???????????????\n String[] words = inputStr.split(\" \");\n for (String word : words) {\n if (word.equalsIgnoreCase(w)) {\n num++;\n }\n }\n }\n }\n \n // ??¢???????????????\n System.out.println(num);\n lineNumReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n \n }\n}", "public class Main {\n \n public static void main(String[] args) {\n try {\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String inputStr = null;\n String w = null;\n long num = 0;\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n \n if (lineNumReader.getLineNumber() == 1) {\n w = inputStr.toLowerCase();\n }\n \n // ???????????¶.\n if (\"END_OF_TEXT\".equals(inputStr)) {\n // do nothing.\n break;\n }\n \n // 2????????\\???????????±????????????\n if (lineNumReader.getLineNumber() > 1) {\n // ??§???????°????????????\\??????????????§????°????????????±???.\n inputStr = inputStr.toLowerCase();\n \n // ???????????????\n String[] words = inputStr.split(\" \");\n for (String word : words) {\n if (word.equalsIgnoreCase(w)) {\n num++;\n }\n }\n }\n }\n \n // ??¢???????????????\n System.out.println(num);\n lineNumReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n \n }\n}", "Main" ]
import java.io.InputStreamReader; import java.io.LineNumberReader; /** * http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_9_A * * @author eitatsuro * */ public class Main { public static void main(String[] args) { try { LineNumberReader lineNumReader = new LineNumberReader( new InputStreamReader(System.in)); String inputStr = null; String w = null; long num = 0; while ((inputStr = lineNumReader.readLine()) != null) { if (lineNumReader.getLineNumber() == 1) { w = inputStr.toLowerCase(); } // ???????????¶. if ("END_OF_TEXT".equals(inputStr)) { // do nothing. break; } // 2????????\???????????±???????????? if (lineNumReader.getLineNumber() > 1) { // ??§???????°????????????\??????????????§????°????????????±???. inputStr = inputStr.toLowerCase(); // ??????????????? String[] words = inputStr.split(" "); for (String word : words) { if (word.equalsIgnoreCase(w)) { num++; } } } } // ??¢??????????????? System.out.println(num); lineNumReader.close(); } catch (Exception e) { System.exit(-1); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 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 ], [ 32, 8 ], [ 32, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 11, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 23, 28 ], [ 9, 29 ], [ 29, 30 ], [ 0, 31 ], [ 31, 32 ], [ 31, 33 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\npublic class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\tString st = sc.readLine();\n\t\tint count = 0;\n\t\tflag:\n\t\twhile(true){\n\t\t\tString[] s = sc.readLine().split(\" \");\n\t\t\tfor(String i:s){\n\t\t\t\tif(i.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tbreak flag;\n\t\t\t\t}else if(i.equalsIgnoreCase(st)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\tString st = sc.readLine();\n\t\tint count = 0;\n\t\tflag:\n\t\twhile(true){\n\t\t\tString[] s = sc.readLine().split(\" \");\n\t\t\tfor(String i:s){\n\t\t\t\tif(i.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tbreak flag;\n\t\t\t\t}else if(i.equalsIgnoreCase(st)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "Main", "public static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\tString st = sc.readLine();\n\t\tint count = 0;\n\t\tflag:\n\t\twhile(true){\n\t\t\tString[] s = sc.readLine().split(\" \");\n\t\t\tfor(String i:s){\n\t\t\t\tif(i.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tbreak flag;\n\t\t\t\t}else if(i.equalsIgnoreCase(st)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "main", "{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\tString st = sc.readLine();\n\t\tint count = 0;\n\t\tflag:\n\t\twhile(true){\n\t\t\tString[] s = sc.readLine().split(\" \");\n\t\t\tfor(String i:s){\n\t\t\t\tif(i.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tbreak flag;\n\t\t\t\t}else if(i.equalsIgnoreCase(st)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "BufferedReader sc = new BufferedReader(new InputStreamReader(System.in));", "sc", "new BufferedReader(new InputStreamReader(System.in))", "String st = sc.readLine();", "st", "sc.readLine()", "sc.readLine", "sc", "int count = 0;", "count", "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) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\tString st = sc.readLine();\n\t\tint count = 0;\n\t\tflag:\n\t\twhile(true){\n\t\t\tString[] s = sc.readLine().split(\" \");\n\t\t\tfor(String i:s){\n\t\t\t\tif(i.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tbreak flag;\n\t\t\t\t}else if(i.equalsIgnoreCase(st)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\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) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\tString st = sc.readLine();\n\t\tint count = 0;\n\t\tflag:\n\t\twhile(true){\n\t\t\tString[] s = sc.readLine().split(\" \");\n\t\t\tfor(String i:s){\n\t\t\t\tif(i.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tbreak flag;\n\t\t\t\t}else if(i.equalsIgnoreCase(st)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception{ BufferedReader sc = new BufferedReader(new InputStreamReader(System.in)); String st = sc.readLine(); int count = 0; flag: while(true){ String[] s = sc.readLine().split(" "); for(String i:s){ if(i.equals("END_OF_TEXT")){ break flag; }else if(i.equalsIgnoreCase(st)){ count++; } } } 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, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 14, 4, 18, 13, 17, 30, 3, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 18, 13, 13, 14, 4, 18, 13, 13, 30, 40, 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 ], [ 88, 11 ], [ 88, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 25, 27 ], [ 14, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 30, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 30, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 42, 47 ], [ 47, 48 ], [ 30, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 56, 58 ], [ 49, 59 ], [ 59, 60 ], [ 60, 61 ], [ 49, 62 ], [ 63, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 63, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 71, 76 ], [ 76, 77 ], [ 77, 78 ], [ 14, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 12, 85 ], [ 85, 86 ], [ 0, 87 ], [ 87, 88 ], [ 87, 89 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString str = br.readLine().toUpperCase();\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tString req = br.readLine();\n\t\t\tString [] s = req.split(\" \");\n\t\t\tif(req.endsWith(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(int i = 0; i < s.length; i++){\n\t\t\t\tString res = s[i].toUpperCase();\n\t\t\t\tif(res.equals(str)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString str = br.readLine().toUpperCase();\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tString req = br.readLine();\n\t\t\tString [] s = req.split(\" \");\n\t\t\tif(req.endsWith(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(int i = 0; i < s.length; i++){\n\t\t\t\tString res = s[i].toUpperCase();\n\t\t\t\tif(res.equals(str)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "Main", "public static void main(String[] args)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString str = br.readLine().toUpperCase();\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tString req = br.readLine();\n\t\t\tString [] s = req.split(\" \");\n\t\t\tif(req.endsWith(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(int i = 0; i < s.length; i++){\n\t\t\t\tString res = s[i].toUpperCase();\n\t\t\t\tif(res.equals(str)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString str = br.readLine().toUpperCase();\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tString req = br.readLine();\n\t\t\tString [] s = req.split(\" \");\n\t\t\tif(req.endsWith(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(int i = 0; i < s.length; i++){\n\t\t\t\tString res = s[i].toUpperCase();\n\t\t\t\tif(res.equals(str)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String str = br.readLine().toUpperCase();", "str", "br.readLine().toUpperCase()", "br.readLine().toUpperCase", "br.readLine()", "br.readLine", "br", "int count = 0;", "count", "0", "while(true){\n\t\t\tString req = br.readLine();\n\t\t\tString [] s = req.split(\" \");\n\t\t\tif(req.endsWith(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(int i = 0; i < s.length; i++){\n\t\t\t\tString res = s[i].toUpperCase();\n\t\t\t\tif(res.equals(str)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tString req = br.readLine();\n\t\t\tString [] s = req.split(\" \");\n\t\t\tif(req.endsWith(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(int i = 0; i < s.length; i++){\n\t\t\t\tString res = s[i].toUpperCase();\n\t\t\t\tif(res.equals(str)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "String req = br.readLine();", "req", "br.readLine()", "br.readLine", "br", "String [] s = req.split(\" \");", "s", "req.split(\" \")", "req.split", "req", "\" \"", "if(req.endsWith(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}", "req.endsWith(\"END_OF_TEXT\")", "req.endsWith", "req", "\"END_OF_TEXT\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "for(int i = 0; i < s.length; i++){\n\t\t\t\tString res = s[i].toUpperCase();\n\t\t\t\tif(res.equals(str)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < s.length", "i", "s.length", "s", "s.length", "i++", "i++", "i", "{\n\t\t\t\tString res = s[i].toUpperCase();\n\t\t\t\tif(res.equals(str)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tString res = s[i].toUpperCase();\n\t\t\t\tif(res.equals(str)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}", "String res = s[i].toUpperCase();", "res", "s[i].toUpperCase()", "s[i].toUpperCase", "s[i]", "s", "i", "if(res.equals(str)){\n\t\t\t\t\tcount++;\n\t\t\t\t}", "res.equals(str)", "res.equals", "res", "str", "{\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\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString str = br.readLine().toUpperCase();\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tString req = br.readLine();\n\t\t\tString [] s = req.split(\" \");\n\t\t\tif(req.endsWith(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(int i = 0; i < s.length; i++){\n\t\t\t\tString res = s[i].toUpperCase();\n\t\t\t\tif(res.equals(str)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\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)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString str = br.readLine().toUpperCase();\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tString req = br.readLine();\n\t\t\tString [] s = req.split(\" \");\n\t\t\tif(req.endsWith(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(int i = 0; i < s.length; i++){\n\t\t\t\tString res = s[i].toUpperCase();\n\t\t\t\tif(res.equals(str)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args)throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.readLine().toUpperCase(); int count = 0; while(true){ String req = br.readLine(); String [] s = req.split(" "); if(req.endsWith("END_OF_TEXT")){ break; } for(int i = 0; i < s.length; i++){ String res = s[i].toUpperCase(); if(res.equals(str)){ 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, 17, 38, 5, 13, 30, 4, 18, 18, 13, 13, 4, 18, 13, 4, 18, 18, 13, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 17, 30, 4, 18, 13, 30, 0, 13, 20, 41, 13, 20, 11, 1, 41, 13, 4, 18, 13, 2, 13, 17, 1, 0, 13, 4, 18, 13, 30, 30, 4, 18, 13, 13, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 4, 18, 13, 17, 1, 40, 13, 30, 30, 28, 13, 4, 18, 4, 18, 13, 13, 17, 30, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 19, 20 ], [ 19, 21 ], [ 0, 22 ], [ 22, 23 ], [ 22, 24 ], [ 0, 25 ], [ 158, 26 ], [ 158, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 29, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 42, 43 ], [ 43, 44 ], [ 36, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 53, 54 ], [ 54, 55 ], [ 36, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 33, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 33, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 68, 69 ], [ 68, 70 ], [ 64, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 76, 77 ], [ 71, 78 ], [ 78, 79 ], [ 78, 80 ], [ 71, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 85, 86 ], [ 71, 87 ], [ 88, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 64, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 64, 101 ], [ 101, 102 ], [ 101, 103 ], [ 64, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 111, 115 ], [ 104, 116 ], [ 116, 117 ], [ 117, 118 ], [ 104, 119 ], [ 120, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 125, 128 ], [ 123, 129 ], [ 121, 130 ], [ 131, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 134, 135 ], [ 135, 136 ], [ 131, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 138, 141 ], [ 137, 142 ], [ 142, 143 ], [ 143, 144 ], [ 64, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 145, 150 ], [ 64, 151 ], [ 151, 152 ], [ 152, 153 ], [ 151, 154 ], [ 27, 155 ], [ 155, 156 ], [ 0, 157 ], [ 157, 158 ], [ 157, 159 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\nimport java.util.Arrays;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.Comparator;\n\npublic class Main{\n public static void main(String[] args) throws IOException {\n\n\tBufferedReader br = null;\n\n\ttry {\n\t br = new BufferedReader(new InputStreamReader(System.in));\n\t List<String> lines = new ArrayList<String>();\n\n\t for (String line = br.readLine(); line != null; line = br.readLine()) {\n\t\tlines.add(line);\n\t }\n\n\t /**\n\n\t lines.add(\"aaaaaaaaaa\");\n\t lines.add(\"bb bb bb aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa\");\n\t lines.add(\"aaa aaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa\");\n\t lines.add(\"aaaaaaaaaa xxx xxxxxxxxx aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa b b b b b b b aaaaaaaaaa aaaaaaaaaa\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaaa a a a a\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa a a a a\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa x\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa x x x x\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa x x xaaaaaaaaaa\");\n\t lines.add(\"END_OF_TEXT\"); */\n\n\t String keyword = lines.get(0).toLowerCase();\n\t Integer count = 0;\n\n\t for (int i = 1; i < lines.size() - 1; i++) {\n\t\tfor (String e : lines.get(i).split(\" \")) {\n\t\t String word = e.toLowerCase();\n\t\t if (word.equals(keyword)) {\n\t\t\tcount++;\n\t\t }\n\t\t}\n\t }\n\n\t System.out.println(count);\n\t System.exit(0);\n\n\t} catch (Exception e) {\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t} finally {\n\t br.close();\n\t}\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.List;", "List", "java.util", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Collections;", "Collections", "java.util", "import java.util.Comparator;", "Comparator", "java.util", "public class Main{\n public static void main(String[] args) throws IOException {\n\n\tBufferedReader br = null;\n\n\ttry {\n\t br = new BufferedReader(new InputStreamReader(System.in));\n\t List<String> lines = new ArrayList<String>();\n\n\t for (String line = br.readLine(); line != null; line = br.readLine()) {\n\t\tlines.add(line);\n\t }\n\n\t /**\n\n\t lines.add(\"aaaaaaaaaa\");\n\t lines.add(\"bb bb bb aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa\");\n\t lines.add(\"aaa aaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa\");\n\t lines.add(\"aaaaaaaaaa xxx xxxxxxxxx aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa b b b b b b b aaaaaaaaaa aaaaaaaaaa\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaaa a a a a\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa a a a a\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa x\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa x x x x\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa x x xaaaaaaaaaa\");\n\t lines.add(\"END_OF_TEXT\"); */\n\n\t String keyword = lines.get(0).toLowerCase();\n\t Integer count = 0;\n\n\t for (int i = 1; i < lines.size() - 1; i++) {\n\t\tfor (String e : lines.get(i).split(\" \")) {\n\t\t String word = e.toLowerCase();\n\t\t if (word.equals(keyword)) {\n\t\t\tcount++;\n\t\t }\n\t\t}\n\t }\n\n\t System.out.println(count);\n\t System.exit(0);\n\n\t} catch (Exception e) {\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t} finally {\n\t br.close();\n\t}\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n\n\tBufferedReader br = null;\n\n\ttry {\n\t br = new BufferedReader(new InputStreamReader(System.in));\n\t List<String> lines = new ArrayList<String>();\n\n\t for (String line = br.readLine(); line != null; line = br.readLine()) {\n\t\tlines.add(line);\n\t }\n\n\t /**\n\n\t lines.add(\"aaaaaaaaaa\");\n\t lines.add(\"bb bb bb aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa\");\n\t lines.add(\"aaa aaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa\");\n\t lines.add(\"aaaaaaaaaa xxx xxxxxxxxx aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa b b b b b b b aaaaaaaaaa aaaaaaaaaa\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaaa a a a a\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa a a a a\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa x\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa x x x x\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa x x xaaaaaaaaaa\");\n\t lines.add(\"END_OF_TEXT\"); */\n\n\t String keyword = lines.get(0).toLowerCase();\n\t Integer count = 0;\n\n\t for (int i = 1; i < lines.size() - 1; i++) {\n\t\tfor (String e : lines.get(i).split(\" \")) {\n\t\t String word = e.toLowerCase();\n\t\t if (word.equals(keyword)) {\n\t\t\tcount++;\n\t\t }\n\t\t}\n\t }\n\n\t System.out.println(count);\n\t System.exit(0);\n\n\t} catch (Exception e) {\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t} finally {\n\t br.close();\n\t}\n }", "main", "{\n\n\tBufferedReader br = null;\n\n\ttry {\n\t br = new BufferedReader(new InputStreamReader(System.in));\n\t List<String> lines = new ArrayList<String>();\n\n\t for (String line = br.readLine(); line != null; line = br.readLine()) {\n\t\tlines.add(line);\n\t }\n\n\t /**\n\n\t lines.add(\"aaaaaaaaaa\");\n\t lines.add(\"bb bb bb aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa\");\n\t lines.add(\"aaa aaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa\");\n\t lines.add(\"aaaaaaaaaa xxx xxxxxxxxx aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa b b b b b b b aaaaaaaaaa aaaaaaaaaa\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaaa a a a a\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa a a a a\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa x\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa x x x x\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa x x xaaaaaaaaaa\");\n\t lines.add(\"END_OF_TEXT\"); */\n\n\t String keyword = lines.get(0).toLowerCase();\n\t Integer count = 0;\n\n\t for (int i = 1; i < lines.size() - 1; i++) {\n\t\tfor (String e : lines.get(i).split(\" \")) {\n\t\t String word = e.toLowerCase();\n\t\t if (word.equals(keyword)) {\n\t\t\tcount++;\n\t\t }\n\t\t}\n\t }\n\n\t System.out.println(count);\n\t System.exit(0);\n\n\t} catch (Exception e) {\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t} finally {\n\t br.close();\n\t}\n }", "BufferedReader br = null;", "br", "null", "try {\n\t br = new BufferedReader(new InputStreamReader(System.in));\n\t List<String> lines = new ArrayList<String>();\n\n\t for (String line = br.readLine(); line != null; line = br.readLine()) {\n\t\tlines.add(line);\n\t }\n\n\t /**\n\n\t lines.add(\"aaaaaaaaaa\");\n\t lines.add(\"bb bb bb aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa\");\n\t lines.add(\"aaa aaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa\");\n\t lines.add(\"aaaaaaaaaa xxx xxxxxxxxx aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa b b b b b b b aaaaaaaaaa aaaaaaaaaa\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaaa a a a a\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa a a a a\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa x\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa x x x x\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa x x xaaaaaaaaaa\");\n\t lines.add(\"END_OF_TEXT\"); */\n\n\t String keyword = lines.get(0).toLowerCase();\n\t Integer count = 0;\n\n\t for (int i = 1; i < lines.size() - 1; i++) {\n\t\tfor (String e : lines.get(i).split(\" \")) {\n\t\t String word = e.toLowerCase();\n\t\t if (word.equals(keyword)) {\n\t\t\tcount++;\n\t\t }\n\t\t}\n\t }\n\n\t System.out.println(count);\n\t System.exit(0);\n\n\t} catch (Exception e) {\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t} finally {\n\t br.close();\n\t}", "catch (Exception e) {\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t}", "Exception e", "{\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t}", "System.out.println(e.getMessage())", "System.out.println", "System.out", "System", "System.out", "e.getMessage()", "e.getMessage", "e", "System.out.println(Arrays.toString(e.getStackTrace()))", "System.out.println", "System.out", "System", "System.out", "Arrays.toString(e.getStackTrace())", "Arrays.toString", "Arrays", "e.getStackTrace()", "e.getStackTrace", "e", "System.exit(0)", "System.exit", "System", "0", "{\n\t br.close();\n\t}", "br.close()", "br.close", "br", "{\n\t br = new BufferedReader(new InputStreamReader(System.in));\n\t List<String> lines = new ArrayList<String>();\n\n\t for (String line = br.readLine(); line != null; line = br.readLine()) {\n\t\tlines.add(line);\n\t }\n\n\t /**\n\n\t lines.add(\"aaaaaaaaaa\");\n\t lines.add(\"bb bb bb aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa\");\n\t lines.add(\"aaa aaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa\");\n\t lines.add(\"aaaaaaaaaa xxx xxxxxxxxx aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa b b b b b b b aaaaaaaaaa aaaaaaaaaa\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaaa a a a a\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa a a a a\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa x\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa x x x x\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa x x xaaaaaaaaaa\");\n\t lines.add(\"END_OF_TEXT\"); */\n\n\t String keyword = lines.get(0).toLowerCase();\n\t Integer count = 0;\n\n\t for (int i = 1; i < lines.size() - 1; i++) {\n\t\tfor (String e : lines.get(i).split(\" \")) {\n\t\t String word = e.toLowerCase();\n\t\t if (word.equals(keyword)) {\n\t\t\tcount++;\n\t\t }\n\t\t}\n\t }\n\n\t System.out.println(count);\n\t System.exit(0);\n\n\t}", "br = new BufferedReader(new InputStreamReader(System.in))", "br", "new BufferedReader(new InputStreamReader(System.in))", "List<String> lines = new ArrayList<String>();", "lines", "new ArrayList<String>()", "for (String line = br.readLine(); line != null; line = br.readLine()) {\n\t\tlines.add(line);\n\t }", "String line = br.readLine();", "String line = br.readLine();", "line", "br.readLine()", "br.readLine", "br", "line != null", "line", "null", "line = br.readLine()", "line = br.readLine()", "line", "br.readLine()", "br.readLine", "br", "{\n\t\tlines.add(line);\n\t }", "{\n\t\tlines.add(line);\n\t }", "lines.add(line)", "lines.add", "lines", "line", "String keyword = lines.get(0).toLowerCase();", "keyword", "lines.get(0).toLowerCase()", "lines.get(0).toLowerCase", "lines.get(0)", "lines.get", "lines", "0", "Integer count = 0;", "count", "0", "for (int i = 1; i < lines.size() - 1; i++) {\n\t\tfor (String e : lines.get(i).split(\" \")) {\n\t\t String word = e.toLowerCase();\n\t\t if (word.equals(keyword)) {\n\t\t\tcount++;\n\t\t }\n\t\t}\n\t }", "int i = 1;", "int i = 1;", "i", "1", "i < lines.size() - 1", "i", "lines.size() - 1", "lines.size()", "lines.size", "lines", "1", "i++", "i++", "i", "{\n\t\tfor (String e : lines.get(i).split(\" \")) {\n\t\t String word = e.toLowerCase();\n\t\t if (word.equals(keyword)) {\n\t\t\tcount++;\n\t\t }\n\t\t}\n\t }", "{\n\t\tfor (String e : lines.get(i).split(\" \")) {\n\t\t String word = e.toLowerCase();\n\t\t if (word.equals(keyword)) {\n\t\t\tcount++;\n\t\t }\n\t\t}\n\t }", "for (String e : lines.get(i).split(\" \")) {\n\t\t String word = e.toLowerCase();\n\t\t if (word.equals(keyword)) {\n\t\t\tcount++;\n\t\t }\n\t\t}", "String e", "lines.get(i).split(\" \")", "lines.get(i).split", "lines.get(i)", "lines.get", "lines", "i", "\" \"", "{\n\t\t String word = e.toLowerCase();\n\t\t if (word.equals(keyword)) {\n\t\t\tcount++;\n\t\t }\n\t\t}", "{\n\t\t String word = e.toLowerCase();\n\t\t if (word.equals(keyword)) {\n\t\t\tcount++;\n\t\t }\n\t\t}", "String word = e.toLowerCase();", "word", "e.toLowerCase()", "e.toLowerCase", "e", "if (word.equals(keyword)) {\n\t\t\tcount++;\n\t\t }", "word.equals(keyword)", "word.equals", "word", "keyword", "{\n\t\t\tcount++;\n\t\t }", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "System.exit(0)", "System.exit", "System", "0", "String[] args", "args", "public class Main{\n public static void main(String[] args) throws IOException {\n\n\tBufferedReader br = null;\n\n\ttry {\n\t br = new BufferedReader(new InputStreamReader(System.in));\n\t List<String> lines = new ArrayList<String>();\n\n\t for (String line = br.readLine(); line != null; line = br.readLine()) {\n\t\tlines.add(line);\n\t }\n\n\t /**\n\n\t lines.add(\"aaaaaaaaaa\");\n\t lines.add(\"bb bb bb aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa\");\n\t lines.add(\"aaa aaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa\");\n\t lines.add(\"aaaaaaaaaa xxx xxxxxxxxx aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa b b b b b b b aaaaaaaaaa aaaaaaaaaa\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaaa a a a a\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa a a a a\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa x\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa x x x x\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa x x xaaaaaaaaaa\");\n\t lines.add(\"END_OF_TEXT\"); */\n\n\t String keyword = lines.get(0).toLowerCase();\n\t Integer count = 0;\n\n\t for (int i = 1; i < lines.size() - 1; i++) {\n\t\tfor (String e : lines.get(i).split(\" \")) {\n\t\t String word = e.toLowerCase();\n\t\t if (word.equals(keyword)) {\n\t\t\tcount++;\n\t\t }\n\t\t}\n\t }\n\n\t System.out.println(count);\n\t System.exit(0);\n\n\t} catch (Exception e) {\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t} finally {\n\t br.close();\n\t}\n }\n}", "public class Main{\n public static void main(String[] args) throws IOException {\n\n\tBufferedReader br = null;\n\n\ttry {\n\t br = new BufferedReader(new InputStreamReader(System.in));\n\t List<String> lines = new ArrayList<String>();\n\n\t for (String line = br.readLine(); line != null; line = br.readLine()) {\n\t\tlines.add(line);\n\t }\n\n\t /**\n\n\t lines.add(\"aaaaaaaaaa\");\n\t lines.add(\"bb bb bb aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa\");\n\t lines.add(\"aaa aaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa\");\n\t lines.add(\"aaaaaaaaaa xxx xxxxxxxxx aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa b b b b b b b aaaaaaaaaa aaaaaaaaaa\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaaa a a a a\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa a a a a\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa x\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa x x x x\");\n\t lines.add(\"aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa x x xaaaaaaaaaa\");\n\t lines.add(\"END_OF_TEXT\"); */\n\n\t String keyword = lines.get(0).toLowerCase();\n\t Integer count = 0;\n\n\t for (int i = 1; i < lines.size() - 1; i++) {\n\t\tfor (String e : lines.get(i).split(\" \")) {\n\t\t String word = e.toLowerCase();\n\t\t if (word.equals(keyword)) {\n\t\t\tcount++;\n\t\t }\n\t\t}\n\t }\n\n\t System.out.println(count);\n\t System.exit(0);\n\n\t} catch (Exception e) {\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t} finally {\n\t br.close();\n\t}\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; public class Main{ public static void main(String[] args) throws IOException { BufferedReader br = null; try { br = new BufferedReader(new InputStreamReader(System.in)); List<String> lines = new ArrayList<String>(); for (String line = br.readLine(); line != null; line = br.readLine()) { lines.add(line); } /** lines.add("aaaaaaaaaa"); lines.add("bb bb bb aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa"); lines.add("aaa aaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa"); lines.add("aaaaaaaaaa xxx xxxxxxxxx aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa"); lines.add("aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa b b b b b b b aaaaaaaaaa aaaaaaaaaa"); lines.add("aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaaa a a a a"); lines.add("aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa"); lines.add("aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa a a a a"); lines.add("aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa x"); lines.add("aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa x x x x"); lines.add("aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa x x xaaaaaaaaaa"); lines.add("END_OF_TEXT"); */ String keyword = lines.get(0).toLowerCase(); Integer count = 0; for (int i = 1; i < lines.size() - 1; i++) { for (String e : lines.get(i).split(" ")) { String word = e.toLowerCase(); if (word.equals(keyword)) { count++; } } } System.out.println(count); System.exit(0); } catch (Exception e) { System.out.println(e.getMessage()); System.out.println(Arrays.toString(e.getStackTrace())); System.exit(0); } finally { br.close(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 28, 13, 13, 30, 30, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 70, 5 ], [ 70, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 24, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 30, 35 ], [ 35, 36 ], [ 24, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 24, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 24, 48 ], [ 48, 49 ], [ 48, 50 ], [ 48, 51 ], [ 52, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 53, 58 ], [ 58, 59 ], [ 59, 60 ], [ 8, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 6, 67 ], [ 67, 68 ], [ 0, 69 ], [ 69, 70 ], [ 69, 71 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String... args) {\n Scanner sc = new Scanner(System.in);\n String w = sc.nextLine().toLowerCase();\n int count = 0;\n\n while(true) {\n \tString t = sc.nextLine();\n \tif(t.equals(\"END_OF_TEXT\")) {\n \t\tbreak;\n \t}\n \tt = t.toLowerCase();\n\n \tString[] wordArray = t.split(\" \");\n \tfor(String word : wordArray) {\n \t\tif(w.equals(word)) {\n \t\t\tcount++;\n \t\t}\n \t}\n }\n System.out.println(count);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String... args) {\n Scanner sc = new Scanner(System.in);\n String w = sc.nextLine().toLowerCase();\n int count = 0;\n\n while(true) {\n \tString t = sc.nextLine();\n \tif(t.equals(\"END_OF_TEXT\")) {\n \t\tbreak;\n \t}\n \tt = t.toLowerCase();\n\n \tString[] wordArray = t.split(\" \");\n \tfor(String word : wordArray) {\n \t\tif(w.equals(word)) {\n \t\t\tcount++;\n \t\t}\n \t}\n }\n System.out.println(count);\n }\n}", "Main", "public static void main(String... args) {\n Scanner sc = new Scanner(System.in);\n String w = sc.nextLine().toLowerCase();\n int count = 0;\n\n while(true) {\n \tString t = sc.nextLine();\n \tif(t.equals(\"END_OF_TEXT\")) {\n \t\tbreak;\n \t}\n \tt = t.toLowerCase();\n\n \tString[] wordArray = t.split(\" \");\n \tfor(String word : wordArray) {\n \t\tif(w.equals(word)) {\n \t\t\tcount++;\n \t\t}\n \t}\n }\n System.out.println(count);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String w = sc.nextLine().toLowerCase();\n int count = 0;\n\n while(true) {\n \tString t = sc.nextLine();\n \tif(t.equals(\"END_OF_TEXT\")) {\n \t\tbreak;\n \t}\n \tt = t.toLowerCase();\n\n \tString[] wordArray = t.split(\" \");\n \tfor(String word : wordArray) {\n \t\tif(w.equals(word)) {\n \t\t\tcount++;\n \t\t}\n \t}\n }\n System.out.println(count);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String w = sc.nextLine().toLowerCase();", "w", "sc.nextLine().toLowerCase()", "sc.nextLine().toLowerCase", "sc.nextLine()", "sc.nextLine", "sc", "int count = 0;", "count", "0", "while(true) {\n \tString t = sc.nextLine();\n \tif(t.equals(\"END_OF_TEXT\")) {\n \t\tbreak;\n \t}\n \tt = t.toLowerCase();\n\n \tString[] wordArray = t.split(\" \");\n \tfor(String word : wordArray) {\n \t\tif(w.equals(word)) {\n \t\t\tcount++;\n \t\t}\n \t}\n }", "true", "{\n \tString t = sc.nextLine();\n \tif(t.equals(\"END_OF_TEXT\")) {\n \t\tbreak;\n \t}\n \tt = t.toLowerCase();\n\n \tString[] wordArray = t.split(\" \");\n \tfor(String word : wordArray) {\n \t\tif(w.equals(word)) {\n \t\t\tcount++;\n \t\t}\n \t}\n }", "String t = sc.nextLine();", "t", "sc.nextLine()", "sc.nextLine", "sc", "if(t.equals(\"END_OF_TEXT\")) {\n \t\tbreak;\n \t}", "t.equals(\"END_OF_TEXT\")", "t.equals", "t", "\"END_OF_TEXT\"", "{\n \t\tbreak;\n \t}", "break;", "t = t.toLowerCase()", "t", "t.toLowerCase()", "t.toLowerCase", "t", "String[] wordArray = t.split(\" \");", "wordArray", "t.split(\" \")", "t.split", "t", "\" \"", "for(String word : wordArray) {\n \t\tif(w.equals(word)) {\n \t\t\tcount++;\n \t\t}\n \t}", "String word", "wordArray", "{\n \t\tif(w.equals(word)) {\n \t\t\tcount++;\n \t\t}\n \t}", "{\n \t\tif(w.equals(word)) {\n \t\t\tcount++;\n \t\t}\n \t}", "if(w.equals(word)) {\n \t\t\tcount++;\n \t\t}", "w.equals(word)", "w.equals", "w", "word", "{\n \t\t\tcount++;\n \t\t}", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String... args", "args", "public class Main {\n public static void main(String... args) {\n Scanner sc = new Scanner(System.in);\n String w = sc.nextLine().toLowerCase();\n int count = 0;\n\n while(true) {\n \tString t = sc.nextLine();\n \tif(t.equals(\"END_OF_TEXT\")) {\n \t\tbreak;\n \t}\n \tt = t.toLowerCase();\n\n \tString[] wordArray = t.split(\" \");\n \tfor(String word : wordArray) {\n \t\tif(w.equals(word)) {\n \t\t\tcount++;\n \t\t}\n \t}\n }\n System.out.println(count);\n }\n}", "public class Main {\n public static void main(String... args) {\n Scanner sc = new Scanner(System.in);\n String w = sc.nextLine().toLowerCase();\n int count = 0;\n\n while(true) {\n \tString t = sc.nextLine();\n \tif(t.equals(\"END_OF_TEXT\")) {\n \t\tbreak;\n \t}\n \tt = t.toLowerCase();\n\n \tString[] wordArray = t.split(\" \");\n \tfor(String word : wordArray) {\n \t\tif(w.equals(word)) {\n \t\t\tcount++;\n \t\t}\n \t}\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 w = sc.nextLine().toLowerCase(); int count = 0; while(true) { String t = sc.nextLine(); if(t.equals("END_OF_TEXT")) { break; } t = t.toLowerCase(); String[] wordArray = t.split(" "); for(String word : wordArray) { if(w.equals(word)) { count++; } } } System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 4, 18, 13, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 0, 13, 4, 18, 13, 14, 4, 18, 13, 13, 30, 40, 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 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 33, 34 ], [ 22, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 22, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 40, 45 ], [ 45, 46 ], [ 46, 47 ], [ 8, 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\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint count = 0;\n\t\tString key = sc.next();\n\t\twhile (true) {\n\t\t\tString word = sc.next();\n\t\t\tif (word.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tword = word.toLowerCase();\n\t\t\tif (key.equals(word)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint count = 0;\n\t\tString key = sc.next();\n\t\twhile (true) {\n\t\t\tString word = sc.next();\n\t\t\tif (word.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tword = word.toLowerCase();\n\t\t\tif (key.equals(word)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\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\tint count = 0;\n\t\tString key = sc.next();\n\t\twhile (true) {\n\t\t\tString word = sc.next();\n\t\t\tif (word.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tword = word.toLowerCase();\n\t\t\tif (key.equals(word)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint count = 0;\n\t\tString key = sc.next();\n\t\twhile (true) {\n\t\t\tString word = sc.next();\n\t\t\tif (word.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tword = word.toLowerCase();\n\t\t\tif (key.equals(word)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int count = 0;", "count", "0", "String key = sc.next();", "key", "sc.next()", "sc.next", "sc", "while (true) {\n\t\t\tString word = sc.next();\n\t\t\tif (word.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tword = word.toLowerCase();\n\t\t\tif (key.equals(word)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tString word = sc.next();\n\t\t\tif (word.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tword = word.toLowerCase();\n\t\t\tif (key.equals(word)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "String word = sc.next();", "word", "sc.next()", "sc.next", "sc", "if (word.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}", "word.equals(\"END_OF_TEXT\")", "word.equals", "word", "\"END_OF_TEXT\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "word = word.toLowerCase()", "word", "word.toLowerCase()", "word.toLowerCase", "word", "if (key.equals(word)) {\n\t\t\t\tcount++;\n\t\t\t}", "key.equals(word)", "key.equals", "key", "word", "{\n\t\t\t\tcount++;\n\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\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint count = 0;\n\t\tString key = sc.next();\n\t\twhile (true) {\n\t\t\tString word = sc.next();\n\t\t\tif (word.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tword = word.toLowerCase();\n\t\t\tif (key.equals(word)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\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\tint count = 0;\n\t\tString key = sc.next();\n\t\twhile (true) {\n\t\t\tString word = sc.next();\n\t\t\tif (word.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tword = word.toLowerCase();\n\t\t\tif (key.equals(word)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int count = 0; String key = sc.next(); while (true) { String word = sc.next(); if (word.equals("END_OF_TEXT")) { break; } word = word.toLowerCase(); if (key.equals(word)) { count++; } } 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, 4, 18, 13, 41, 13, 17, 42, 40, 4, 18, 13, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 13, 40, 13, 0, 13, 4, 18, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 60, 5 ], [ 60, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 8, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 27, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 33, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 39, 44 ], [ 44, 45 ], [ 33, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 8, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 51, 56 ], [ 6, 57 ], [ 57, 58 ], [ 0, 59 ], [ 59, 60 ], [ 59, 61 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String w = scanner.next().toUpperCase();\n String s = scanner.next();\n int count = 0;\n while (!s.equals(\"END_OF_TEXT\")) {\n s = s.toUpperCase();\n if (s.equals(w)) count++;\n s = scanner.next();\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 scanner = new Scanner(System.in);\n String w = scanner.next().toUpperCase();\n String s = scanner.next();\n int count = 0;\n while (!s.equals(\"END_OF_TEXT\")) {\n s = s.toUpperCase();\n if (s.equals(w)) count++;\n s = scanner.next();\n }\n System.out.println(count);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String w = scanner.next().toUpperCase();\n String s = scanner.next();\n int count = 0;\n while (!s.equals(\"END_OF_TEXT\")) {\n s = s.toUpperCase();\n if (s.equals(w)) count++;\n s = scanner.next();\n }\n System.out.println(count);\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n String w = scanner.next().toUpperCase();\n String s = scanner.next();\n int count = 0;\n while (!s.equals(\"END_OF_TEXT\")) {\n s = s.toUpperCase();\n if (s.equals(w)) count++;\n s = scanner.next();\n }\n System.out.println(count);\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "String w = scanner.next().toUpperCase();", "w", "scanner.next().toUpperCase()", "scanner.next().toUpperCase", "scanner.next()", "scanner.next", "scanner", "String s = scanner.next();", "s", "scanner.next()", "scanner.next", "scanner", "int count = 0;", "count", "0", "while (!s.equals(\"END_OF_TEXT\")) {\n s = s.toUpperCase();\n if (s.equals(w)) count++;\n s = scanner.next();\n }", "!s.equals(\"END_OF_TEXT\")", "s.equals(\"END_OF_TEXT\")", "s.equals", "s", "\"END_OF_TEXT\"", "{\n s = s.toUpperCase();\n if (s.equals(w)) count++;\n s = scanner.next();\n }", "s = s.toUpperCase()", "s", "s.toUpperCase()", "s.toUpperCase", "s", "if (s.equals(w)) count++;", "s.equals(w)", "s.equals", "s", "w", "count++", "count", "s = scanner.next()", "s", "scanner.next()", "scanner.next", "scanner", "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 w = scanner.next().toUpperCase();\n String s = scanner.next();\n int count = 0;\n while (!s.equals(\"END_OF_TEXT\")) {\n s = s.toUpperCase();\n if (s.equals(w)) count++;\n s = scanner.next();\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 w = scanner.next().toUpperCase();\n String s = scanner.next();\n int count = 0;\n while (!s.equals(\"END_OF_TEXT\")) {\n s = s.toUpperCase();\n if (s.equals(w)) count++;\n s = scanner.next();\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 w = scanner.next().toUpperCase(); String s = scanner.next(); int count = 0; while (!s.equals("END_OF_TEXT")) { s = s.toUpperCase(); if (s.equals(w)) count++; s = scanner.next(); } System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 17, 28, 13, 13, 30, 30, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 63, 5 ], [ 63, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 33, 34 ], [ 22, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 22, 41 ], [ 41, 42 ], [ 41, 43 ], [ 41, 44 ], [ 45, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 46, 51 ], [ 51, 52 ], [ 52, 53 ], [ 8, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 6, 60 ], [ 60, 61 ], [ 0, 62 ], [ 62, 63 ], [ 62, 64 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n String word = sc.nextLine();\n int count = 0;\n while(true){\n String text = sc.nextLine();\n if(text.equals(\"END_OF_TEXT\")){\n break;\n }\n String[] t = text.split(\" \");\n for(String t_word:t){\n if(t_word.equalsIgnoreCase(word)){\n count++;\n }\n }\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) throws Exception {\n Scanner sc = new Scanner(System.in);\n String word = sc.nextLine();\n int count = 0;\n while(true){\n String text = sc.nextLine();\n if(text.equals(\"END_OF_TEXT\")){\n break;\n }\n String[] t = text.split(\" \");\n for(String t_word:t){\n if(t_word.equalsIgnoreCase(word)){\n count++;\n }\n }\n }\n System.out.println(count);\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n String word = sc.nextLine();\n int count = 0;\n while(true){\n String text = sc.nextLine();\n if(text.equals(\"END_OF_TEXT\")){\n break;\n }\n String[] t = text.split(\" \");\n for(String t_word:t){\n if(t_word.equalsIgnoreCase(word)){\n count++;\n }\n }\n }\n System.out.println(count);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String word = sc.nextLine();\n int count = 0;\n while(true){\n String text = sc.nextLine();\n if(text.equals(\"END_OF_TEXT\")){\n break;\n }\n String[] t = text.split(\" \");\n for(String t_word:t){\n if(t_word.equalsIgnoreCase(word)){\n count++;\n }\n }\n }\n System.out.println(count);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String word = sc.nextLine();", "word", "sc.nextLine()", "sc.nextLine", "sc", "int count = 0;", "count", "0", "while(true){\n String text = sc.nextLine();\n if(text.equals(\"END_OF_TEXT\")){\n break;\n }\n String[] t = text.split(\" \");\n for(String t_word:t){\n if(t_word.equalsIgnoreCase(word)){\n count++;\n }\n }\n }", "true", "{\n String text = sc.nextLine();\n if(text.equals(\"END_OF_TEXT\")){\n break;\n }\n String[] t = text.split(\" \");\n for(String t_word:t){\n if(t_word.equalsIgnoreCase(word)){\n count++;\n }\n }\n }", "String text = sc.nextLine();", "text", "sc.nextLine()", "sc.nextLine", "sc", "if(text.equals(\"END_OF_TEXT\")){\n break;\n }", "text.equals(\"END_OF_TEXT\")", "text.equals", "text", "\"END_OF_TEXT\"", "{\n break;\n }", "break;", "String[] t = text.split(\" \");", "t", "text.split(\" \")", "text.split", "text", "\" \"", "for(String t_word:t){\n if(t_word.equalsIgnoreCase(word)){\n count++;\n }\n }", "String t_word", "t", "{\n if(t_word.equalsIgnoreCase(word)){\n count++;\n }\n }", "{\n if(t_word.equalsIgnoreCase(word)){\n count++;\n }\n }", "if(t_word.equalsIgnoreCase(word)){\n count++;\n }", "t_word.equalsIgnoreCase(word)", "t_word.equalsIgnoreCase", "t_word", "word", "{\n count++;\n }", "count++", "count", "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) throws Exception {\n Scanner sc = new Scanner(System.in);\n String word = sc.nextLine();\n int count = 0;\n while(true){\n String text = sc.nextLine();\n if(text.equals(\"END_OF_TEXT\")){\n break;\n }\n String[] t = text.split(\" \");\n for(String t_word:t){\n if(t_word.equalsIgnoreCase(word)){\n count++;\n }\n }\n }\n System.out.println(count);\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n String word = sc.nextLine();\n int count = 0;\n while(true){\n String text = sc.nextLine();\n if(text.equals(\"END_OF_TEXT\")){\n break;\n }\n String[] t = text.split(\" \");\n for(String t_word:t){\n if(t_word.equalsIgnoreCase(word)){\n count++;\n }\n }\n }\n System.out.println(count);\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 word = sc.nextLine(); int count = 0; while(true){ String text = sc.nextLine(); if(text.equals("END_OF_TEXT")){ break; } String[] t = text.split(" "); for(String t_word:t){ if(t_word.equalsIgnoreCase(word)){ count++; } } } 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, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 4, 18, 13, 17, 14, 4, 18, 18, 13, 17, 17, 3, 41, 13, 20, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 18, 13, 13, 13, 30, 40, 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 ], [ 113, 11 ], [ 113, 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 ], [ 25, 26 ], [ 26, 27 ], [ 14, 28 ], [ 28, 29 ], [ 28, 30 ], [ 14, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 36, 41 ], [ 33, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 42, 49 ], [ 33, 50 ], [ 50, 51 ], [ 50, 52 ], [ 53, 54 ], [ 53, 55 ], [ 33, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 63, 65 ], [ 56, 66 ], [ 66, 67 ], [ 67, 68 ], [ 56, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 33, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 86, 88 ], [ 79, 89 ], [ 89, 90 ], [ 90, 91 ], [ 79, 92 ], [ 93, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 94, 101 ], [ 101, 102 ], [ 102, 103 ], [ 14, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 12, 110 ], [ 110, 111 ], [ 0, 112 ], [ 112, 113 ], [ 112, 114 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main (String[] args) throws IOException\n\t{\n\t\tBufferedReader input = new BufferedReader (new InputStreamReader (System.in));\n\n\t\tString word = input.readLine();\n\n\t\tString WORD = word.toUpperCase();\n\n\t\tint count = 0;\n\n\t\twhile(true)\n\t\t{\n\t\t\tString[] str = input.readLine().split(\" \");\n\n\t\t\tif(str[0].equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\n\t\t\tString[] STR = new String[str.length];\n\n\t\t\tfor(int num = 0; num < str.length; num++)\n\t\t\t\tSTR[num] = str[num].toUpperCase();\n\n\t\t\t//単語の数を数える\n\t\t\tfor(int num = 0; num < STR.length; num++)\n\t\t\t{\n\t\t\t\tif(STR[num].equals(WORD))\n\t\t\t\t{\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\t}\n}\n", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tpublic static void main (String[] args) throws IOException\n\t{\n\t\tBufferedReader input = new BufferedReader (new InputStreamReader (System.in));\n\n\t\tString word = input.readLine();\n\n\t\tString WORD = word.toUpperCase();\n\n\t\tint count = 0;\n\n\t\twhile(true)\n\t\t{\n\t\t\tString[] str = input.readLine().split(\" \");\n\n\t\t\tif(str[0].equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\n\t\t\tString[] STR = new String[str.length];\n\n\t\t\tfor(int num = 0; num < str.length; num++)\n\t\t\t\tSTR[num] = str[num].toUpperCase();\n\n\t\t\t//単語の数を数える\n\t\t\tfor(int num = 0; num < STR.length; num++)\n\t\t\t{\n\t\t\t\tif(STR[num].equals(WORD))\n\t\t\t\t{\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\t}\n}", "Main", "public static void main (String[] args) throws IOException\n\t{\n\t\tBufferedReader input = new BufferedReader (new InputStreamReader (System.in));\n\n\t\tString word = input.readLine();\n\n\t\tString WORD = word.toUpperCase();\n\n\t\tint count = 0;\n\n\t\twhile(true)\n\t\t{\n\t\t\tString[] str = input.readLine().split(\" \");\n\n\t\t\tif(str[0].equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\n\t\t\tString[] STR = new String[str.length];\n\n\t\t\tfor(int num = 0; num < str.length; num++)\n\t\t\t\tSTR[num] = str[num].toUpperCase();\n\n\t\t\t//単語の数を数える\n\t\t\tfor(int num = 0; num < STR.length; num++)\n\t\t\t{\n\t\t\t\tif(STR[num].equals(WORD))\n\t\t\t\t{\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\t}", "main", "{\n\t\tBufferedReader input = new BufferedReader (new InputStreamReader (System.in));\n\n\t\tString word = input.readLine();\n\n\t\tString WORD = word.toUpperCase();\n\n\t\tint count = 0;\n\n\t\twhile(true)\n\t\t{\n\t\t\tString[] str = input.readLine().split(\" \");\n\n\t\t\tif(str[0].equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\n\t\t\tString[] STR = new String[str.length];\n\n\t\t\tfor(int num = 0; num < str.length; num++)\n\t\t\t\tSTR[num] = str[num].toUpperCase();\n\n\t\t\t//単語の数を数える\n\t\t\tfor(int num = 0; num < STR.length; num++)\n\t\t\t{\n\t\t\t\tif(STR[num].equals(WORD))\n\t\t\t\t{\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\t}", "BufferedReader input = new BufferedReader (new InputStreamReader (System.in));", "input", "new BufferedReader (new InputStreamReader (System.in))", "String word = input.readLine();", "word", "input.readLine()", "input.readLine", "input", "String WORD = word.toUpperCase();", "WORD", "word.toUpperCase()", "word.toUpperCase", "word", "int count = 0;", "count", "0", "while(true)\n\t\t{\n\t\t\tString[] str = input.readLine().split(\" \");\n\n\t\t\tif(str[0].equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\n\t\t\tString[] STR = new String[str.length];\n\n\t\t\tfor(int num = 0; num < str.length; num++)\n\t\t\t\tSTR[num] = str[num].toUpperCase();\n\n\t\t\t//単語の数を数える\n\t\t\tfor(int num = 0; num < STR.length; num++)\n\t\t\t{\n\t\t\t\tif(STR[num].equals(WORD))\n\t\t\t\t{\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tString[] str = input.readLine().split(\" \");\n\n\t\t\tif(str[0].equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\n\t\t\tString[] STR = new String[str.length];\n\n\t\t\tfor(int num = 0; num < str.length; num++)\n\t\t\t\tSTR[num] = str[num].toUpperCase();\n\n\t\t\t//単語の数を数える\n\t\t\tfor(int num = 0; num < STR.length; num++)\n\t\t\t{\n\t\t\t\tif(STR[num].equals(WORD))\n\t\t\t\t{\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "String[] str = input.readLine().split(\" \");", "str", "input.readLine().split(\" \")", "input.readLine().split", "input.readLine()", "input.readLine", "input", "\" \"", "if(str[0].equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;", "str[0].equals(\"END_OF_TEXT\")", "str[0].equals", "str[0]", "str", "0", "\"END_OF_TEXT\"", "break;", "String[] STR = new String[str.length];", "STR", "new String[str.length]", "str.length", "str", "str.length", "for(int num = 0; num < str.length; num++)\n\t\t\t\tSTR[num] = str[num].toUpperCase();", "int num = 0;", "int num = 0;", "num", "0", "num < str.length", "num", "str.length", "str", "str.length", "num++", "num++", "num", "STR[num] = str[num].toUpperCase();", "STR[num] = str[num].toUpperCase()", "STR[num]", "STR", "num", "str[num].toUpperCase()", "str[num].toUpperCase", "str[num]", "str", "num", "for(int num = 0; num < STR.length; num++)\n\t\t\t{\n\t\t\t\tif(STR[num].equals(WORD))\n\t\t\t\t{\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}", "int num = 0;", "int num = 0;", "num", "0", "num < STR.length", "num", "STR.length", "STR", "STR.length", "num++", "num++", "num", "{\n\t\t\t\tif(STR[num].equals(WORD))\n\t\t\t\t{\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif(STR[num].equals(WORD))\n\t\t\t\t{\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}", "if(STR[num].equals(WORD))\n\t\t\t\t{\n\t\t\t\t\tcount++;\n\t\t\t\t}", "STR[num].equals(WORD)", "STR[num].equals", "STR[num]", "STR", "num", "WORD", "{\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\tpublic static void main (String[] args) throws IOException\n\t{\n\t\tBufferedReader input = new BufferedReader (new InputStreamReader (System.in));\n\n\t\tString word = input.readLine();\n\n\t\tString WORD = word.toUpperCase();\n\n\t\tint count = 0;\n\n\t\twhile(true)\n\t\t{\n\t\t\tString[] str = input.readLine().split(\" \");\n\n\t\t\tif(str[0].equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\n\t\t\tString[] STR = new String[str.length];\n\n\t\t\tfor(int num = 0; num < str.length; num++)\n\t\t\t\tSTR[num] = str[num].toUpperCase();\n\n\t\t\t//単語の数を数える\n\t\t\tfor(int num = 0; num < STR.length; num++)\n\t\t\t{\n\t\t\t\tif(STR[num].equals(WORD))\n\t\t\t\t{\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\t}\n}", "public class Main {\n\tpublic static void main (String[] args) throws IOException\n\t{\n\t\tBufferedReader input = new BufferedReader (new InputStreamReader (System.in));\n\n\t\tString word = input.readLine();\n\n\t\tString WORD = word.toUpperCase();\n\n\t\tint count = 0;\n\n\t\twhile(true)\n\t\t{\n\t\t\tString[] str = input.readLine().split(\" \");\n\n\t\t\tif(str[0].equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\n\t\t\tString[] STR = new String[str.length];\n\n\t\t\tfor(int num = 0; num < str.length; num++)\n\t\t\t\tSTR[num] = str[num].toUpperCase();\n\n\t\t\t//単語の数を数える\n\t\t\tfor(int num = 0; num < STR.length; num++)\n\t\t\t{\n\t\t\t\tif(STR[num].equals(WORD))\n\t\t\t\t{\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main (String[] args) throws IOException { BufferedReader input = new BufferedReader (new InputStreamReader (System.in)); String word = input.readLine(); String WORD = word.toUpperCase(); int count = 0; while(true) { String[] str = input.readLine().split(" "); if(str[0].equals("END_OF_TEXT")) break; String[] STR = new String[str.length]; for(int num = 0; num < str.length; num++) STR[num] = str[num].toUpperCase(); //単語の数を数える for(int num = 0; num < STR.length; num++) { if(STR[num].equals(WORD)) { 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, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 17, 13, 30, 3, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 13, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 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 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 33, 34 ], [ 22, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 22, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 22, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 46, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 53, 55 ], [ 46, 56 ], [ 56, 57 ], [ 57, 58 ], [ 46, 59 ], [ 60, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 65, 66 ], [ 65, 67 ], [ 61, 68 ], [ 68, 69 ], [ 69, 70 ], [ 8, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 8, 77 ], [ 77, 78 ], [ 78, 79 ], [ 6, 80 ], [ 80, 81 ], [ 0, 82 ], [ 82, 83 ], [ 82, 84 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString w = sc.nextLine();\n\n\t\tint result = 0;\n\t\twhile (true) {\n\t\t\tString t1 = sc.nextLine();\n\t\t\tif (\"END_OF_TEXT\".equals(t1)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tt1 = t1.toLowerCase();\n\n\t\t\tString[] arr = t1.split(\" \");\n\n\t\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\t\tif (w.equals(arr[i])) {\n\t\t\t\t\tresult++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(result);\n\n\t\tsc.close();\n\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString w = sc.nextLine();\n\n\t\tint result = 0;\n\t\twhile (true) {\n\t\t\tString t1 = sc.nextLine();\n\t\t\tif (\"END_OF_TEXT\".equals(t1)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tt1 = t1.toLowerCase();\n\n\t\t\tString[] arr = t1.split(\" \");\n\n\t\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\t\tif (w.equals(arr[i])) {\n\t\t\t\t\tresult++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(result);\n\n\t\tsc.close();\n\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString w = sc.nextLine();\n\n\t\tint result = 0;\n\t\twhile (true) {\n\t\t\tString t1 = sc.nextLine();\n\t\t\tif (\"END_OF_TEXT\".equals(t1)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tt1 = t1.toLowerCase();\n\n\t\t\tString[] arr = t1.split(\" \");\n\n\t\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\t\tif (w.equals(arr[i])) {\n\t\t\t\t\tresult++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(result);\n\n\t\tsc.close();\n\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString w = sc.nextLine();\n\n\t\tint result = 0;\n\t\twhile (true) {\n\t\t\tString t1 = sc.nextLine();\n\t\t\tif (\"END_OF_TEXT\".equals(t1)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tt1 = t1.toLowerCase();\n\n\t\t\tString[] arr = t1.split(\" \");\n\n\t\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\t\tif (w.equals(arr[i])) {\n\t\t\t\t\tresult++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(result);\n\n\t\tsc.close();\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String w = sc.nextLine();", "w", "sc.nextLine()", "sc.nextLine", "sc", "int result = 0;", "result", "0", "while (true) {\n\t\t\tString t1 = sc.nextLine();\n\t\t\tif (\"END_OF_TEXT\".equals(t1)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tt1 = t1.toLowerCase();\n\n\t\t\tString[] arr = t1.split(\" \");\n\n\t\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\t\tif (w.equals(arr[i])) {\n\t\t\t\t\tresult++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}", "true", "{\n\t\t\tString t1 = sc.nextLine();\n\t\t\tif (\"END_OF_TEXT\".equals(t1)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tt1 = t1.toLowerCase();\n\n\t\t\tString[] arr = t1.split(\" \");\n\n\t\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\t\tif (w.equals(arr[i])) {\n\t\t\t\t\tresult++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}", "String t1 = sc.nextLine();", "t1", "sc.nextLine()", "sc.nextLine", "sc", "if (\"END_OF_TEXT\".equals(t1)) {\n\t\t\t\tbreak;\n\t\t\t}", "\"END_OF_TEXT\".equals(t1)", "\"END_OF_TEXT\".equals", "\"END_OF_TEXT\"", "t1", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "t1 = t1.toLowerCase()", "t1", "t1.toLowerCase()", "t1.toLowerCase", "t1", "String[] arr = t1.split(\" \");", "arr", "t1.split(\" \")", "t1.split", "t1", "\" \"", "for (int i = 0; i < arr.length; i++) {\n\t\t\t\tif (w.equals(arr[i])) {\n\t\t\t\t\tresult++;\n\t\t\t\t}\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < arr.length", "i", "arr.length", "arr", "arr.length", "i++", "i++", "i", "{\n\t\t\t\tif (w.equals(arr[i])) {\n\t\t\t\t\tresult++;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif (w.equals(arr[i])) {\n\t\t\t\t\tresult++;\n\t\t\t\t}\n\t\t\t}", "if (w.equals(arr[i])) {\n\t\t\t\t\tresult++;\n\t\t\t\t}", "w.equals(arr[i])", "w.equals", "w", "arr[i]", "arr", "i", "{\n\t\t\t\t\tresult++;\n\t\t\t\t}", "result++", "result", "System.out.println(result)", "System.out.println", "System.out", "System", "System.out", "result", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString w = sc.nextLine();\n\n\t\tint result = 0;\n\t\twhile (true) {\n\t\t\tString t1 = sc.nextLine();\n\t\t\tif (\"END_OF_TEXT\".equals(t1)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tt1 = t1.toLowerCase();\n\n\t\t\tString[] arr = t1.split(\" \");\n\n\t\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\t\tif (w.equals(arr[i])) {\n\t\t\t\t\tresult++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(result);\n\n\t\tsc.close();\n\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString w = sc.nextLine();\n\n\t\tint result = 0;\n\t\twhile (true) {\n\t\t\tString t1 = sc.nextLine();\n\t\t\tif (\"END_OF_TEXT\".equals(t1)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tt1 = t1.toLowerCase();\n\n\t\t\tString[] arr = t1.split(\" \");\n\n\t\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\t\tif (w.equals(arr[i])) {\n\t\t\t\t\tresult++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(result);\n\n\t\tsc.close();\n\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String w = sc.nextLine(); int result = 0; while (true) { String t1 = sc.nextLine(); if ("END_OF_TEXT".equals(t1)) { break; } t1 = t1.toLowerCase(); String[] arr = t1.split(" "); for (int i = 0; i < arr.length; i++) { if (w.equals(arr[i])) { result++; } } } System.out.println(result); sc.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 20, 38, 5, 13, 30, 4, 18, 13, 30, 14, 2, 13, 17, 30, 38, 5, 13, 30, 4, 18, 13, 30, 4, 18, 13, 30, 41, 13, 4, 18, 4, 18, 13, 41, 13, 41, 13, 17, 42, 40, 4, 18, 0, 13, 4, 18, 13, 13, 30, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 28, 13, 13, 30, 30, 14, 4, 18, 13, 13, 30, 40, 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 ], [ 102, 11 ], [ 102, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 21, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 29, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 34, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 21, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 45, 53 ], [ 53, 54 ], [ 45, 55 ], [ 55, 56 ], [ 55, 57 ], [ 45, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 60, 67 ], [ 58, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 68, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 68, 80 ], [ 80, 81 ], [ 80, 82 ], [ 80, 83 ], [ 84, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 85, 90 ], [ 90, 91 ], [ 91, 92 ], [ 45, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 12, 99 ], [ 99, 100 ], [ 0, 101 ], [ 101, 102 ], [ 101, 103 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tfinal String END_OF_TEXT = \"END_OF_TEXT\";\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\n\t\t\t// ????´¢?????????????°??????????????????????\n\t\t\tString schStr = br.readLine().toLowerCase();\n\n\t\t\tString str;\n\t\t\tint cnt = 0;\n\t\t\twhile(!(str = br.readLine()).equals(END_OF_TEXT)){\n\n\t\t\t\t// ????´¢????±?????°??????????????????????\n\t\t\t\tstr = str.toLowerCase();\n\n\t\t\t\tString[] sArr = str.split(\" \");\n\t\t\t\tfor(String wrd : sArr){\n\t\t\t\t\tif(wrd.equals(schStr)){\n\t\t\t\t\t\tcnt++;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(cnt);\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (br != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tfinal String END_OF_TEXT = \"END_OF_TEXT\";\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\n\t\t\t// ????´¢?????????????°??????????????????????\n\t\t\tString schStr = br.readLine().toLowerCase();\n\n\t\t\tString str;\n\t\t\tint cnt = 0;\n\t\t\twhile(!(str = br.readLine()).equals(END_OF_TEXT)){\n\n\t\t\t\t// ????´¢????±?????°??????????????????????\n\t\t\t\tstr = str.toLowerCase();\n\n\t\t\t\tString[] sArr = str.split(\" \");\n\t\t\t\tfor(String wrd : sArr){\n\t\t\t\t\tif(wrd.equals(schStr)){\n\t\t\t\t\t\tcnt++;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(cnt);\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (br != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tfinal String END_OF_TEXT = \"END_OF_TEXT\";\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\n\t\t\t// ????´¢?????????????°??????????????????????\n\t\t\tString schStr = br.readLine().toLowerCase();\n\n\t\t\tString str;\n\t\t\tint cnt = 0;\n\t\t\twhile(!(str = br.readLine()).equals(END_OF_TEXT)){\n\n\t\t\t\t// ????´¢????±?????°??????????????????????\n\t\t\t\tstr = str.toLowerCase();\n\n\t\t\t\tString[] sArr = str.split(\" \");\n\t\t\t\tfor(String wrd : sArr){\n\t\t\t\t\tif(wrd.equals(schStr)){\n\t\t\t\t\t\tcnt++;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(cnt);\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (br != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}", "main", "{\n\t\tfinal String END_OF_TEXT = \"END_OF_TEXT\";\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\n\t\t\t// ????´¢?????????????°??????????????????????\n\t\t\tString schStr = br.readLine().toLowerCase();\n\n\t\t\tString str;\n\t\t\tint cnt = 0;\n\t\t\twhile(!(str = br.readLine()).equals(END_OF_TEXT)){\n\n\t\t\t\t// ????´¢????±?????°??????????????????????\n\t\t\t\tstr = str.toLowerCase();\n\n\t\t\t\tString[] sArr = str.split(\" \");\n\t\t\t\tfor(String wrd : sArr){\n\t\t\t\t\tif(wrd.equals(schStr)){\n\t\t\t\t\t\tcnt++;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(cnt);\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (br != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}", "final String END_OF_TEXT = \"END_OF_TEXT\";", "END_OF_TEXT", "\"END_OF_TEXT\"", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "try {\n\n\t\t\t// ????´¢?????????????°??????????????????????\n\t\t\tString schStr = br.readLine().toLowerCase();\n\n\t\t\tString str;\n\t\t\tint cnt = 0;\n\t\t\twhile(!(str = br.readLine()).equals(END_OF_TEXT)){\n\n\t\t\t\t// ????´¢????±?????°??????????????????????\n\t\t\t\tstr = str.toLowerCase();\n\n\t\t\t\tString[] sArr = str.split(\" \");\n\t\t\t\tfor(String wrd : sArr){\n\t\t\t\t\tif(wrd.equals(schStr)){\n\t\t\t\t\t\tcnt++;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(cnt);\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (br != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\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\tif (br != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}", "if (br != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "br != null", "br", "null", "{\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "try {\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}", "catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}", "IOException e", "{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\t\t\tbr.close();\n\t\t\t\t}", "br.close()", "br.close", "br", "{\n\n\t\t\t// ????´¢?????????????°??????????????????????\n\t\t\tString schStr = br.readLine().toLowerCase();\n\n\t\t\tString str;\n\t\t\tint cnt = 0;\n\t\t\twhile(!(str = br.readLine()).equals(END_OF_TEXT)){\n\n\t\t\t\t// ????´¢????±?????°??????????????????????\n\t\t\t\tstr = str.toLowerCase();\n\n\t\t\t\tString[] sArr = str.split(\" \");\n\t\t\t\tfor(String wrd : sArr){\n\t\t\t\t\tif(wrd.equals(schStr)){\n\t\t\t\t\t\tcnt++;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(cnt);\n\n\t\t}", "String schStr = br.readLine().toLowerCase();", "schStr", "br.readLine().toLowerCase()", "br.readLine().toLowerCase", "br.readLine()", "br.readLine", "br", "String str;", "str", "int cnt = 0;", "cnt", "0", "while(!(str = br.readLine()).equals(END_OF_TEXT)){\n\n\t\t\t\t// ????´¢????±?????°??????????????????????\n\t\t\t\tstr = str.toLowerCase();\n\n\t\t\t\tString[] sArr = str.split(\" \");\n\t\t\t\tfor(String wrd : sArr){\n\t\t\t\t\tif(wrd.equals(schStr)){\n\t\t\t\t\t\tcnt++;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}", "!(str = br.readLine()).equals(END_OF_TEXT)", "(str = br.readLine()).equals(END_OF_TEXT)", "(str = br.readLine()).equals", "(str = br.readLine())", "str", "br.readLine()", "br.readLine", "br", "END_OF_TEXT", "{\n\n\t\t\t\t// ????´¢????±?????°??????????????????????\n\t\t\t\tstr = str.toLowerCase();\n\n\t\t\t\tString[] sArr = str.split(\" \");\n\t\t\t\tfor(String wrd : sArr){\n\t\t\t\t\tif(wrd.equals(schStr)){\n\t\t\t\t\t\tcnt++;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}", "str = str.toLowerCase()", "str", "str.toLowerCase()", "str.toLowerCase", "str", "String[] sArr = str.split(\" \");", "sArr", "str.split(\" \")", "str.split", "str", "\" \"", "for(String wrd : sArr){\n\t\t\t\t\tif(wrd.equals(schStr)){\n\t\t\t\t\t\tcnt++;\n\t\t\t\t\t}\n\n\t\t\t\t}", "String wrd", "sArr", "{\n\t\t\t\t\tif(wrd.equals(schStr)){\n\t\t\t\t\t\tcnt++;\n\t\t\t\t\t}\n\n\t\t\t\t}", "{\n\t\t\t\t\tif(wrd.equals(schStr)){\n\t\t\t\t\t\tcnt++;\n\t\t\t\t\t}\n\n\t\t\t\t}", "if(wrd.equals(schStr)){\n\t\t\t\t\t\tcnt++;\n\t\t\t\t\t}", "wrd.equals(schStr)", "wrd.equals", "wrd", "schStr", "{\n\t\t\t\t\t\tcnt++;\n\t\t\t\t\t}", "cnt++", "cnt", "System.out.println(cnt)", "System.out.println", "System.out", "System", "System.out", "cnt", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tfinal String END_OF_TEXT = \"END_OF_TEXT\";\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\n\t\t\t// ????´¢?????????????°??????????????????????\n\t\t\tString schStr = br.readLine().toLowerCase();\n\n\t\t\tString str;\n\t\t\tint cnt = 0;\n\t\t\twhile(!(str = br.readLine()).equals(END_OF_TEXT)){\n\n\t\t\t\t// ????´¢????±?????°??????????????????????\n\t\t\t\tstr = str.toLowerCase();\n\n\t\t\t\tString[] sArr = str.split(\" \");\n\t\t\t\tfor(String wrd : sArr){\n\t\t\t\t\tif(wrd.equals(schStr)){\n\t\t\t\t\t\tcnt++;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(cnt);\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (br != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tfinal String END_OF_TEXT = \"END_OF_TEXT\";\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\n\t\t\t// ????´¢?????????????°??????????????????????\n\t\t\tString schStr = br.readLine().toLowerCase();\n\n\t\t\tString str;\n\t\t\tint cnt = 0;\n\t\t\twhile(!(str = br.readLine()).equals(END_OF_TEXT)){\n\n\t\t\t\t// ????´¢????±?????°??????????????????????\n\t\t\t\tstr = str.toLowerCase();\n\n\t\t\t\tString[] sArr = str.split(\" \");\n\t\t\t\tfor(String wrd : sArr){\n\t\t\t\t\tif(wrd.equals(schStr)){\n\t\t\t\t\t\tcnt++;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(cnt);\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (br != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { final String END_OF_TEXT = "END_OF_TEXT"; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try { // ????´¢?????????????°?????????????????????? String schStr = br.readLine().toLowerCase(); String str; int cnt = 0; while(!(str = br.readLine()).equals(END_OF_TEXT)){ // ????´¢????±?????°?????????????????????? str = str.toLowerCase(); String[] sArr = str.split(" "); for(String wrd : sArr){ if(wrd.equals(schStr)){ cnt++; } } } System.out.println(cnt); } catch (IOException e) { e.printStackTrace(); } finally { if (br != null) { try { br.close(); } catch (IOException e) { e.printStackTrace(); } } } } }
[ 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, 41, 13, 17, 42, 40, 4, 18, 0, 13, 4, 18, 13, 17, 30, 0, 13, 4, 18, 13, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 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 ], [ 17, 28 ], [ 28, 29 ], [ 28, 30 ], [ 17, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 33, 40 ], [ 31, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 41, 47 ], [ 47, 48 ], [ 47, 49 ], [ 41, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 50, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 54, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 60, 65 ], [ 65, 66 ], [ 17, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 15, 73 ], [ 73, 74 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\nimport java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString w = input.readLine();\n\t\tString t;\n\t\tint num = 0;\n\n\t\twhile (!(t = input.readLine()).equals(\"END_OF_TEXT\")) {\n\t\t\tt = t.toLowerCase();\n\t\t\tScanner scan = new Scanner(t);\n\t\t\twhile (scan.hasNext()) {\n\t\t\t\tString str = scan.next();\n\t\t\t\tif (str.equals(w))\n\t\t\t\t\tnum++;\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println(num);\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString w = input.readLine();\n\t\tString t;\n\t\tint num = 0;\n\n\t\twhile (!(t = input.readLine()).equals(\"END_OF_TEXT\")) {\n\t\t\tt = t.toLowerCase();\n\t\t\tScanner scan = new Scanner(t);\n\t\t\twhile (scan.hasNext()) {\n\t\t\t\tString str = scan.next();\n\t\t\t\tif (str.equals(w))\n\t\t\t\t\tnum++;\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println(num);\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString w = input.readLine();\n\t\tString t;\n\t\tint num = 0;\n\n\t\twhile (!(t = input.readLine()).equals(\"END_OF_TEXT\")) {\n\t\t\tt = t.toLowerCase();\n\t\t\tScanner scan = new Scanner(t);\n\t\t\twhile (scan.hasNext()) {\n\t\t\t\tString str = scan.next();\n\t\t\t\tif (str.equals(w))\n\t\t\t\t\tnum++;\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println(num);\n\t}", "main", "{\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString w = input.readLine();\n\t\tString t;\n\t\tint num = 0;\n\n\t\twhile (!(t = input.readLine()).equals(\"END_OF_TEXT\")) {\n\t\t\tt = t.toLowerCase();\n\t\t\tScanner scan = new Scanner(t);\n\t\t\twhile (scan.hasNext()) {\n\t\t\t\tString str = scan.next();\n\t\t\t\tif (str.equals(w))\n\t\t\t\t\tnum++;\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println(num);\n\t}", "BufferedReader input = new BufferedReader(new InputStreamReader(System.in));", "input", "new BufferedReader(new InputStreamReader(System.in))", "String w = input.readLine();", "w", "input.readLine()", "input.readLine", "input", "String t;", "t", "int num = 0;", "num", "0", "while (!(t = input.readLine()).equals(\"END_OF_TEXT\")) {\n\t\t\tt = t.toLowerCase();\n\t\t\tScanner scan = new Scanner(t);\n\t\t\twhile (scan.hasNext()) {\n\t\t\t\tString str = scan.next();\n\t\t\t\tif (str.equals(w))\n\t\t\t\t\tnum++;\n\t\t\t}\n\n\t\t}", "!(t = input.readLine()).equals(\"END_OF_TEXT\")", "(t = input.readLine()).equals(\"END_OF_TEXT\")", "(t = input.readLine()).equals", "(t = input.readLine())", "t", "input.readLine()", "input.readLine", "input", "\"END_OF_TEXT\"", "{\n\t\t\tt = t.toLowerCase();\n\t\t\tScanner scan = new Scanner(t);\n\t\t\twhile (scan.hasNext()) {\n\t\t\t\tString str = scan.next();\n\t\t\t\tif (str.equals(w))\n\t\t\t\t\tnum++;\n\t\t\t}\n\n\t\t}", "t = t.toLowerCase()", "t", "t.toLowerCase()", "t.toLowerCase", "t", "Scanner scan = new Scanner(t);", "scan", "new Scanner(t)", "while (scan.hasNext()) {\n\t\t\t\tString str = scan.next();\n\t\t\t\tif (str.equals(w))\n\t\t\t\t\tnum++;\n\t\t\t}", "scan.hasNext()", "scan.hasNext", "scan", "{\n\t\t\t\tString str = scan.next();\n\t\t\t\tif (str.equals(w))\n\t\t\t\t\tnum++;\n\t\t\t}", "String str = scan.next();", "str", "scan.next()", "scan.next", "scan", "if (str.equals(w))\n\t\t\t\t\tnum++;", "str.equals(w)", "str.equals", "str", "w", "num++", "num", "System.out.println(num)", "System.out.println", "System.out", "System", "System.out", "num", "String[] args", "args" ]
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; import java.util.Scanner; class Main { public static void main(String[] args) throws IOException { BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); String w = input.readLine(); String t; int num = 0; while (!(t = input.readLine()).equals("END_OF_TEXT")) { t = t.toLowerCase(); Scanner scan = new Scanner(t); while (scan.hasNext()) { String str = scan.next(); if (str.equals(w)) num++; } } System.out.println(num); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 20, 41, 13, 17, 0, 13, 4, 18, 4, 18, 13, 42, 4, 18, 13, 30, 4, 18, 13, 4, 18, 13, 14, 4, 18, 4, 18, 13, 13, 17, 3, 40, 13, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 4, 18, 4, 18, 13, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 17, 23 ], [ 23, 24 ], [ 23, 25 ], [ 17, 26 ], [ 26, 27 ], [ 26, 28 ], [ 17, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 17, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 36, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 44, 45 ], [ 45, 46 ], [ 40, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 48, 54 ], [ 47, 55 ], [ 40, 56 ], [ 56, 57 ], [ 17, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 17, 63 ], [ 63, 64 ], [ 63, 65 ], [ 17, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 71, 72 ], [ 71, 73 ], [ 66, 74 ], [ 74, 75 ], [ 75, 76 ], [ 66, 77 ], [ 78, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 80, 88 ], [ 79, 89 ], [ 89, 90 ], [ 17, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 91, 96 ], [ 15, 97 ], [ 97, 98 ] ]
[ "import java.util.ArrayList;\nimport java.util.HashMap;\nimport java.util.Map;\nimport java.util.Scanner;\n\nclass Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scan=new Scanner(System.in);\n\t\tString s1;\n\t\tArrayList<String> al=new ArrayList<String>();\n\t\tint i=0;\n\t\ts1=scan.next().toLowerCase();\n\t\twhile(scan.hasNext()){\n\t\t\tal.add(scan.next());\n\t\t\tif(al.get(i).equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\ti++;\n\t\t\t\n\t\t}\n\t\tint s=al.size();\n\t\tint c=0;\n\t\tfor(int m=0;m<s;m++)\n\t\t{\n\t\t\tif(al.get(m).toLowerCase().equals(s1))\n\t\t\t\tc++;\n\t\t}\n\t\tSystem.out.println(c);\n\t}\n}", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.HashMap;", "HashMap", "java.util", "import java.util.Map;", "Map", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scan=new Scanner(System.in);\n\t\tString s1;\n\t\tArrayList<String> al=new ArrayList<String>();\n\t\tint i=0;\n\t\ts1=scan.next().toLowerCase();\n\t\twhile(scan.hasNext()){\n\t\t\tal.add(scan.next());\n\t\t\tif(al.get(i).equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\ti++;\n\t\t\t\n\t\t}\n\t\tint s=al.size();\n\t\tint c=0;\n\t\tfor(int m=0;m<s;m++)\n\t\t{\n\t\t\tif(al.get(m).toLowerCase().equals(s1))\n\t\t\t\tc++;\n\t\t}\n\t\tSystem.out.println(c);\n\t}\n}", "Main", "public static void main(String[] args)\n\t{\n\t\tScanner scan=new Scanner(System.in);\n\t\tString s1;\n\t\tArrayList<String> al=new ArrayList<String>();\n\t\tint i=0;\n\t\ts1=scan.next().toLowerCase();\n\t\twhile(scan.hasNext()){\n\t\t\tal.add(scan.next());\n\t\t\tif(al.get(i).equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\ti++;\n\t\t\t\n\t\t}\n\t\tint s=al.size();\n\t\tint c=0;\n\t\tfor(int m=0;m<s;m++)\n\t\t{\n\t\t\tif(al.get(m).toLowerCase().equals(s1))\n\t\t\t\tc++;\n\t\t}\n\t\tSystem.out.println(c);\n\t}", "main", "{\n\t\tScanner scan=new Scanner(System.in);\n\t\tString s1;\n\t\tArrayList<String> al=new ArrayList<String>();\n\t\tint i=0;\n\t\ts1=scan.next().toLowerCase();\n\t\twhile(scan.hasNext()){\n\t\t\tal.add(scan.next());\n\t\t\tif(al.get(i).equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\ti++;\n\t\t\t\n\t\t}\n\t\tint s=al.size();\n\t\tint c=0;\n\t\tfor(int m=0;m<s;m++)\n\t\t{\n\t\t\tif(al.get(m).toLowerCase().equals(s1))\n\t\t\t\tc++;\n\t\t}\n\t\tSystem.out.println(c);\n\t}", "Scanner scan=new Scanner(System.in);", "scan", "new Scanner(System.in)", "String s1;", "s1", "ArrayList<String> al=new ArrayList<String>();", "al", "new ArrayList<String>()", "int i=0;", "i", "0", "s1=scan.next().toLowerCase()", "s1", "scan.next().toLowerCase()", "scan.next().toLowerCase", "scan.next()", "scan.next", "scan", "while(scan.hasNext()){\n\t\t\tal.add(scan.next());\n\t\t\tif(al.get(i).equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\ti++;\n\t\t\t\n\t\t}", "scan.hasNext()", "scan.hasNext", "scan", "{\n\t\t\tal.add(scan.next());\n\t\t\tif(al.get(i).equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\ti++;\n\t\t\t\n\t\t}", "al.add(scan.next())", "al.add", "al", "scan.next()", "scan.next", "scan", "if(al.get(i).equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;", "al.get(i).equals(\"END_OF_TEXT\")", "al.get(i).equals", "al.get(i)", "al.get", "al", "i", "\"END_OF_TEXT\"", "break;", "i++", "i", "int s=al.size();", "s", "al.size()", "al.size", "al", "int c=0;", "c", "0", "for(int m=0;m<s;m++)\n\t\t{\n\t\t\tif(al.get(m).toLowerCase().equals(s1))\n\t\t\t\tc++;\n\t\t}", "int m=0;", "int m=0;", "m", "0", "m<s", "m", "s", "m++", "m++", "m", "{\n\t\t\tif(al.get(m).toLowerCase().equals(s1))\n\t\t\t\tc++;\n\t\t}", "{\n\t\t\tif(al.get(m).toLowerCase().equals(s1))\n\t\t\t\tc++;\n\t\t}", "if(al.get(m).toLowerCase().equals(s1))\n\t\t\t\tc++;", "al.get(m).toLowerCase().equals(s1)", "al.get(m).toLowerCase().equals", "al.get(m).toLowerCase()", "al.get(m).toLowerCase", "al.get(m)", "al.get", "al", "m", "s1", "c++", "c", "System.out.println(c)", "System.out.println", "System.out", "System", "System.out", "c", "String[] args", "args" ]
import java.util.ArrayList; import java.util.HashMap; import java.util.Map; import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scan=new Scanner(System.in); String s1; ArrayList<String> al=new ArrayList<String>(); int i=0; s1=scan.next().toLowerCase(); while(scan.hasNext()){ al.add(scan.next()); if(al.get(i).equals("END_OF_TEXT")) break; i++; } int s=al.size(); int c=0; for(int m=0;m<s;m++) { if(al.get(m).toLowerCase().equals(s1)) c++; } System.out.println(c); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 41, 13, 17, 42, 40, 4, 18, 0, 13, 4, 18, 13, 17, 30, 14, 4, 18, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 49, 5 ], [ 49, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 24, 31 ], [ 22, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 33, 38 ], [ 38, 39 ], [ 8, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 6, 46 ], [ 46, 47 ], [ 0, 48 ], [ 48, 49 ], [ 48, 50 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String pattern = scan.next();\n String buf;\n int count = 0;\n\n while(!((buf = scan.next()).equals(\"END_OF_TEXT\"))) {\n if (pattern.equalsIgnoreCase(buf)) count++;\n }\n\n System.out.println(count);\n }\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String pattern = scan.next();\n String buf;\n int count = 0;\n\n while(!((buf = scan.next()).equals(\"END_OF_TEXT\"))) {\n if (pattern.equalsIgnoreCase(buf)) count++;\n }\n\n System.out.println(count);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String pattern = scan.next();\n String buf;\n int count = 0;\n\n while(!((buf = scan.next()).equals(\"END_OF_TEXT\"))) {\n if (pattern.equalsIgnoreCase(buf)) count++;\n }\n\n System.out.println(count);\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n String pattern = scan.next();\n String buf;\n int count = 0;\n\n while(!((buf = scan.next()).equals(\"END_OF_TEXT\"))) {\n if (pattern.equalsIgnoreCase(buf)) count++;\n }\n\n System.out.println(count);\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String pattern = scan.next();", "pattern", "scan.next()", "scan.next", "scan", "String buf;", "buf", "int count = 0;", "count", "0", "while(!((buf = scan.next()).equals(\"END_OF_TEXT\"))) {\n if (pattern.equalsIgnoreCase(buf)) count++;\n }", "!((buf = scan.next()).equals(\"END_OF_TEXT\"))", "((buf = scan.next()).equals(\"END_OF_TEXT\"))", "(buf = scan.next()).equals", "(buf = scan.next())", "buf", "scan.next()", "scan.next", "scan", "\"END_OF_TEXT\"", "{\n if (pattern.equalsIgnoreCase(buf)) count++;\n }", "if (pattern.equalsIgnoreCase(buf)) count++;", "pattern.equalsIgnoreCase(buf)", "pattern.equalsIgnoreCase", "pattern", "buf", "count++", "count", "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 scan = new Scanner(System.in);\n String pattern = scan.next();\n String buf;\n int count = 0;\n\n while(!((buf = scan.next()).equals(\"END_OF_TEXT\"))) {\n if (pattern.equalsIgnoreCase(buf)) count++;\n }\n\n System.out.println(count);\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String pattern = scan.next();\n String buf;\n int count = 0;\n\n while(!((buf = scan.next()).equals(\"END_OF_TEXT\"))) {\n if (pattern.equalsIgnoreCase(buf)) count++;\n }\n\n System.out.println(count);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String pattern = scan.next(); String buf; int count = 0; while(!((buf = scan.next()).equals("END_OF_TEXT"))) { if (pattern.equalsIgnoreCase(buf)) count++; } System.out.println(count); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 4, 18, 13, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 17, 13, 30, 3, 41, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 18, 13, 13, 13, 30, 40, 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 ], [ 81, 11 ], [ 81, 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 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 28, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 34, 39 ], [ 39, 40 ], [ 28, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 28, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 54, 56 ], [ 47, 57 ], [ 57, 58 ], [ 58, 59 ], [ 47, 60 ], [ 61, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 62, 69 ], [ 69, 70 ], [ 70, 71 ], [ 14, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 12, 78 ], [ 78, 79 ], [ 0, 80 ], [ 80, 81 ], [ 80, 82 ] ]
[ "import java.io.*;\nimport java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String[] args) throws IOException{ \n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint count = 0;\n\t\tString line1 = br.readLine();\n\t\twhile(true){\n\n\t\t\tString line = br.readLine();\n\t\t\tif (\"END_OF_TEXT\".equals(line)) {break;}\n\t\t\tString[] str = line.split(\" \");\n\t\t\tfor (int i=0; i<str.length ; i++ ) {\n\t\t\t\tif (str[i].equalsIgnoreCase(line1)) {\n\t\t\t\t\tcount++;\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "import java.io.*;", "io.*", "java", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\tpublic static void main(String[] args) throws IOException{ \n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint count = 0;\n\t\tString line1 = br.readLine();\n\t\twhile(true){\n\n\t\t\tString line = br.readLine();\n\t\t\tif (\"END_OF_TEXT\".equals(line)) {break;}\n\t\t\tString[] str = line.split(\" \");\n\t\t\tfor (int i=0; i<str.length ; i++ ) {\n\t\t\t\tif (str[i].equalsIgnoreCase(line1)) {\n\t\t\t\t\tcount++;\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "Main", "public static void main(String[] args) throws IOException{ \n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint count = 0;\n\t\tString line1 = br.readLine();\n\t\twhile(true){\n\n\t\t\tString line = br.readLine();\n\t\t\tif (\"END_OF_TEXT\".equals(line)) {break;}\n\t\t\tString[] str = line.split(\" \");\n\t\t\tfor (int i=0; i<str.length ; i++ ) {\n\t\t\t\tif (str[i].equalsIgnoreCase(line1)) {\n\t\t\t\t\tcount++;\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "main", "{ \n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint count = 0;\n\t\tString line1 = br.readLine();\n\t\twhile(true){\n\n\t\t\tString line = br.readLine();\n\t\t\tif (\"END_OF_TEXT\".equals(line)) {break;}\n\t\t\tString[] str = line.split(\" \");\n\t\t\tfor (int i=0; i<str.length ; i++ ) {\n\t\t\t\tif (str[i].equalsIgnoreCase(line1)) {\n\t\t\t\t\tcount++;\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int count = 0;", "count", "0", "String line1 = br.readLine();", "line1", "br.readLine()", "br.readLine", "br", "while(true){\n\n\t\t\tString line = br.readLine();\n\t\t\tif (\"END_OF_TEXT\".equals(line)) {break;}\n\t\t\tString[] str = line.split(\" \");\n\t\t\tfor (int i=0; i<str.length ; i++ ) {\n\t\t\t\tif (str[i].equalsIgnoreCase(line1)) {\n\t\t\t\t\tcount++;\t\n\t\t\t\t}\n\t\t\t}\n\t\t}", "true", "{\n\n\t\t\tString line = br.readLine();\n\t\t\tif (\"END_OF_TEXT\".equals(line)) {break;}\n\t\t\tString[] str = line.split(\" \");\n\t\t\tfor (int i=0; i<str.length ; i++ ) {\n\t\t\t\tif (str[i].equalsIgnoreCase(line1)) {\n\t\t\t\t\tcount++;\t\n\t\t\t\t}\n\t\t\t}\n\t\t}", "String line = br.readLine();", "line", "br.readLine()", "br.readLine", "br", "if (\"END_OF_TEXT\".equals(line)) {break;}", "\"END_OF_TEXT\".equals(line)", "\"END_OF_TEXT\".equals", "\"END_OF_TEXT\"", "line", "{break;}", "break;", "String[] str = line.split(\" \");", "str", "line.split(\" \")", "line.split", "line", "\" \"", "for (int i=0; i<str.length ; i++ ) {\n\t\t\t\tif (str[i].equalsIgnoreCase(line1)) {\n\t\t\t\t\tcount++;\t\n\t\t\t\t}\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<str.length", "i", "str.length", "str", "str.length", "i++", "i++", "i", "{\n\t\t\t\tif (str[i].equalsIgnoreCase(line1)) {\n\t\t\t\t\tcount++;\t\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif (str[i].equalsIgnoreCase(line1)) {\n\t\t\t\t\tcount++;\t\n\t\t\t\t}\n\t\t\t}", "if (str[i].equalsIgnoreCase(line1)) {\n\t\t\t\t\tcount++;\t\n\t\t\t\t}", "str[i].equalsIgnoreCase(line1)", "str[i].equalsIgnoreCase", "str[i]", "str", "i", "line1", "{\n\t\t\t\t\tcount++;\t\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\tpublic static void main(String[] args) throws IOException{ \n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint count = 0;\n\t\tString line1 = br.readLine();\n\t\twhile(true){\n\n\t\t\tString line = br.readLine();\n\t\t\tif (\"END_OF_TEXT\".equals(line)) {break;}\n\t\t\tString[] str = line.split(\" \");\n\t\t\tfor (int i=0; i<str.length ; i++ ) {\n\t\t\t\tif (str[i].equalsIgnoreCase(line1)) {\n\t\t\t\t\tcount++;\t\n\t\t\t\t}\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) throws IOException{ \n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint count = 0;\n\t\tString line1 = br.readLine();\n\t\twhile(true){\n\n\t\t\tString line = br.readLine();\n\t\t\tif (\"END_OF_TEXT\".equals(line)) {break;}\n\t\t\tString[] str = line.split(\" \");\n\t\t\tfor (int i=0; i<str.length ; i++ ) {\n\t\t\t\tif (str[i].equalsIgnoreCase(line1)) {\n\t\t\t\t\tcount++;\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "Main" ]
import java.io.*; import java.util.Arrays; import java.util.Scanner; public class Main{ public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int count = 0; String line1 = br.readLine(); while(true){ String line = br.readLine(); if ("END_OF_TEXT".equals(line)) {break;} String[] str = line.split(" "); for (int i=0; i<str.length ; i++ ) { if (str[i].equalsIgnoreCase(line1)) { count++; } } } 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, 41, 13, 41, 13, 17, 41, 13, 42, 40, 4, 18, 0, 13, 4, 18, 13, 17, 30, 0, 13, 4, 18, 4, 18, 13, 17, 11, 1, 0, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 18, 13, 13, 13, 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 ], [ 16, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 8, 21 ], [ 21, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 26 ], [ 26, 27 ], [ 8, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 30, 37 ], [ 28, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 41, 46 ], [ 38, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 54, 56 ], [ 47, 57 ], [ 57, 58 ], [ 58, 59 ], [ 47, 60 ], [ 61, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 62, 69 ], [ 69, 70 ], [ 70, 71 ], [ 8, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 6, 78 ], [ 78, 79 ] ]
[ "import java.io.*;\n\nclass Main {\n public static void main (String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String target = br.readLine().toLowerCase();\n String str;\n String[] strArr;\n int count = 0;\n int i;\n while (!(str = br.readLine()).equals(\"END_OF_TEXT\")) {\n strArr = str.toLowerCase().split(\" \");\n for (i = 0; i < strArr.length; i++) {\n if (strArr[i].equals(target)) {\n count++;\n }\n }\n }\n System.out.println(count);\n }\n}", "import java.io.*;", "io.*", "java", "class Main {\n public static void main (String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String target = br.readLine().toLowerCase();\n String str;\n String[] strArr;\n int count = 0;\n int i;\n while (!(str = br.readLine()).equals(\"END_OF_TEXT\")) {\n strArr = str.toLowerCase().split(\" \");\n for (i = 0; i < strArr.length; i++) {\n if (strArr[i].equals(target)) {\n count++;\n }\n }\n }\n System.out.println(count);\n }\n}", "Main", "public static void main (String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String target = br.readLine().toLowerCase();\n String str;\n String[] strArr;\n int count = 0;\n int i;\n while (!(str = br.readLine()).equals(\"END_OF_TEXT\")) {\n strArr = str.toLowerCase().split(\" \");\n for (i = 0; i < strArr.length; i++) {\n if (strArr[i].equals(target)) {\n count++;\n }\n }\n }\n System.out.println(count);\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String target = br.readLine().toLowerCase();\n String str;\n String[] strArr;\n int count = 0;\n int i;\n while (!(str = br.readLine()).equals(\"END_OF_TEXT\")) {\n strArr = str.toLowerCase().split(\" \");\n for (i = 0; i < strArr.length; i++) {\n if (strArr[i].equals(target)) {\n count++;\n }\n }\n }\n System.out.println(count);\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String target = br.readLine().toLowerCase();", "target", "br.readLine().toLowerCase()", "br.readLine().toLowerCase", "br.readLine()", "br.readLine", "br", "String str;", "str", "String[] strArr;", "strArr", "int count = 0;", "count", "0", "int i;", "i", "while (!(str = br.readLine()).equals(\"END_OF_TEXT\")) {\n strArr = str.toLowerCase().split(\" \");\n for (i = 0; i < strArr.length; i++) {\n if (strArr[i].equals(target)) {\n count++;\n }\n }\n }", "!(str = br.readLine()).equals(\"END_OF_TEXT\")", "(str = br.readLine()).equals(\"END_OF_TEXT\")", "(str = br.readLine()).equals", "(str = br.readLine())", "str", "br.readLine()", "br.readLine", "br", "\"END_OF_TEXT\"", "{\n strArr = str.toLowerCase().split(\" \");\n for (i = 0; i < strArr.length; i++) {\n if (strArr[i].equals(target)) {\n count++;\n }\n }\n }", "strArr = str.toLowerCase().split(\" \")", "strArr", "str.toLowerCase().split(\" \")", "str.toLowerCase().split", "str.toLowerCase()", "str.toLowerCase", "str", "\" \"", "for (i = 0; i < strArr.length; i++) {\n if (strArr[i].equals(target)) {\n count++;\n }\n }", "i = 0;", "i = 0", "i", "0", "i < strArr.length", "i", "strArr.length", "strArr", "strArr.length", "i++", "i++", "i", "{\n if (strArr[i].equals(target)) {\n count++;\n }\n }", "{\n if (strArr[i].equals(target)) {\n count++;\n }\n }", "if (strArr[i].equals(target)) {\n count++;\n }", "strArr[i].equals(target)", "strArr[i].equals", "strArr[i]", "strArr", "i", "target", "{\n count++;\n }", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args" ]
import java.io.*; class Main { public static void main (String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String target = br.readLine().toLowerCase(); String str; String[] strArr; int count = 0; int i; while (!(str = br.readLine()).equals("END_OF_TEXT")) { strArr = str.toLowerCase().split(" "); for (i = 0; i < strArr.length; i++) { if (strArr[i].equals(target)) { count++; } } } System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 41, 13, 4, 18, 13, 42, 4, 18, 13, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 13, 40, 13, 14, 4, 18, 13, 17, 3, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 54, 5 ], [ 54, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 22, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 26, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 32, 37 ], [ 37, 38 ], [ 32, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 39, 44 ], [ 8, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 6, 51 ], [ 51, 52 ], [ 0, 53 ], [ 53, 54 ], [ 53, 55 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n\tScanner in = new Scanner(System.in);\n\tint cnt=0;\n\tString pattern;\n\t\n\tString first = in.nextLine();\n\twhile(in.hasNext()){\n\t pattern = in.next();\n\t if(pattern.equalsIgnoreCase(first))cnt++;\n\t else if(pattern.equals(\"END_OF_TEXT\"))break;\n\t}\n\tSystem.out.println(cnt);\n }\n}\n\t \n\t\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args){\n\tScanner in = new Scanner(System.in);\n\tint cnt=0;\n\tString pattern;\n\t\n\tString first = in.nextLine();\n\twhile(in.hasNext()){\n\t pattern = in.next();\n\t if(pattern.equalsIgnoreCase(first))cnt++;\n\t else if(pattern.equals(\"END_OF_TEXT\"))break;\n\t}\n\tSystem.out.println(cnt);\n }\n}", "Main", "public static void main(String[] args){\n\tScanner in = new Scanner(System.in);\n\tint cnt=0;\n\tString pattern;\n\t\n\tString first = in.nextLine();\n\twhile(in.hasNext()){\n\t pattern = in.next();\n\t if(pattern.equalsIgnoreCase(first))cnt++;\n\t else if(pattern.equals(\"END_OF_TEXT\"))break;\n\t}\n\tSystem.out.println(cnt);\n }", "main", "{\n\tScanner in = new Scanner(System.in);\n\tint cnt=0;\n\tString pattern;\n\t\n\tString first = in.nextLine();\n\twhile(in.hasNext()){\n\t pattern = in.next();\n\t if(pattern.equalsIgnoreCase(first))cnt++;\n\t else if(pattern.equals(\"END_OF_TEXT\"))break;\n\t}\n\tSystem.out.println(cnt);\n }", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "int cnt=0;", "cnt", "0", "String pattern;", "pattern", "String first = in.nextLine();", "first", "in.nextLine()", "in.nextLine", "in", "while(in.hasNext()){\n\t pattern = in.next();\n\t if(pattern.equalsIgnoreCase(first))cnt++;\n\t else if(pattern.equals(\"END_OF_TEXT\"))break;\n\t}", "in.hasNext()", "in.hasNext", "in", "{\n\t pattern = in.next();\n\t if(pattern.equalsIgnoreCase(first))cnt++;\n\t else if(pattern.equals(\"END_OF_TEXT\"))break;\n\t}", "pattern = in.next()", "pattern", "in.next()", "in.next", "in", "if(pattern.equalsIgnoreCase(first))cnt++;\n\t else if(pattern.equals(\"END_OF_TEXT\"))break;", "pattern.equalsIgnoreCase(first)", "pattern.equalsIgnoreCase", "pattern", "first", "cnt++", "cnt", "if(pattern.equals(\"END_OF_TEXT\"))break;", "pattern.equals(\"END_OF_TEXT\")", "pattern.equals", "pattern", "\"END_OF_TEXT\"", "break;", "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\tScanner in = new Scanner(System.in);\n\tint cnt=0;\n\tString pattern;\n\t\n\tString first = in.nextLine();\n\twhile(in.hasNext()){\n\t pattern = in.next();\n\t if(pattern.equalsIgnoreCase(first))cnt++;\n\t else if(pattern.equals(\"END_OF_TEXT\"))break;\n\t}\n\tSystem.out.println(cnt);\n }\n}", "public class Main{\n public static void main(String[] args){\n\tScanner in = new Scanner(System.in);\n\tint cnt=0;\n\tString pattern;\n\t\n\tString first = in.nextLine();\n\twhile(in.hasNext()){\n\t pattern = in.next();\n\t if(pattern.equalsIgnoreCase(first))cnt++;\n\t else if(pattern.equals(\"END_OF_TEXT\"))break;\n\t}\n\tSystem.out.println(cnt);\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner in = new Scanner(System.in); int cnt=0; String pattern; String first = in.nextLine(); while(in.hasNext()){ pattern = in.next(); if(pattern.equalsIgnoreCase(first))cnt++; else if(pattern.equals("END_OF_TEXT"))break; } System.out.println(cnt); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 41, 13, 41, 13, 17, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 13, 30, 4, 18, 18, 13, 13, 13, 3, 14, 4, 18, 13, 13, 30, 0, 13, 2, 13, 17, 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 ], [ 8, 11 ], [ 11, 12 ], [ 11, 13 ], [ 8, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 8, 24 ], [ 24, 25 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 8, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 31, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 37, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 42, 49 ], [ 37, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 50, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 58, 60 ], [ 6, 61 ], [ 61, 62 ], [ 0, 63 ], [ 63, 64 ], [ 63, 65 ] ]
[ "\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args){\n String word;\n Scanner sc =new Scanner(System.in);\n String key = sc.next();\n String end = \"END_OF_TEXT\";\n\n int n;\n int m;\n int count=0;\n while(true){\n\n word=sc.next();\n if(end.equals(word)) {\n System.out.println(count);\n break;\n }\n else if(key.equalsIgnoreCase(word)) {\n count = count + 1;\n }\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args){\n String word;\n Scanner sc =new Scanner(System.in);\n String key = sc.next();\n String end = \"END_OF_TEXT\";\n\n int n;\n int m;\n int count=0;\n while(true){\n\n word=sc.next();\n if(end.equals(word)) {\n System.out.println(count);\n break;\n }\n else if(key.equalsIgnoreCase(word)) {\n count = count + 1;\n }\n }\n }\n}", "Main", "public static void main(String[] args){\n String word;\n Scanner sc =new Scanner(System.in);\n String key = sc.next();\n String end = \"END_OF_TEXT\";\n\n int n;\n int m;\n int count=0;\n while(true){\n\n word=sc.next();\n if(end.equals(word)) {\n System.out.println(count);\n break;\n }\n else if(key.equalsIgnoreCase(word)) {\n count = count + 1;\n }\n }\n }", "main", "{\n String word;\n Scanner sc =new Scanner(System.in);\n String key = sc.next();\n String end = \"END_OF_TEXT\";\n\n int n;\n int m;\n int count=0;\n while(true){\n\n word=sc.next();\n if(end.equals(word)) {\n System.out.println(count);\n break;\n }\n else if(key.equalsIgnoreCase(word)) {\n count = count + 1;\n }\n }\n }", "String word;", "word", "Scanner sc =new Scanner(System.in);", "sc", "new Scanner(System.in)", "String key = sc.next();", "key", "sc.next()", "sc.next", "sc", "String end = \"END_OF_TEXT\";", "end", "\"END_OF_TEXT\"", "int n;", "n", "int m;", "m", "int count=0;", "count", "0", "while(true){\n\n word=sc.next();\n if(end.equals(word)) {\n System.out.println(count);\n break;\n }\n else if(key.equalsIgnoreCase(word)) {\n count = count + 1;\n }\n }", "true", "{\n\n word=sc.next();\n if(end.equals(word)) {\n System.out.println(count);\n break;\n }\n else if(key.equalsIgnoreCase(word)) {\n count = count + 1;\n }\n }", "word=sc.next()", "word", "sc.next()", "sc.next", "sc", "if(end.equals(word)) {\n System.out.println(count);\n break;\n }\n else if(key.equalsIgnoreCase(word)) {\n count = count + 1;\n }", "end.equals(word)", "end.equals", "end", "word", "{\n System.out.println(count);\n break;\n }", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "break;", "if(key.equalsIgnoreCase(word)) {\n count = count + 1;\n }", "key.equalsIgnoreCase(word)", "key.equalsIgnoreCase", "key", "word", "{\n count = count + 1;\n }", "count = count + 1", "count", "count + 1", "count", "1", "String[] args", "args", "public class Main {\n public static void main(String[] args){\n String word;\n Scanner sc =new Scanner(System.in);\n String key = sc.next();\n String end = \"END_OF_TEXT\";\n\n int n;\n int m;\n int count=0;\n while(true){\n\n word=sc.next();\n if(end.equals(word)) {\n System.out.println(count);\n break;\n }\n else if(key.equalsIgnoreCase(word)) {\n count = count + 1;\n }\n }\n }\n}", "public class Main {\n public static void main(String[] args){\n String word;\n Scanner sc =new Scanner(System.in);\n String key = sc.next();\n String end = \"END_OF_TEXT\";\n\n int n;\n int m;\n int count=0;\n while(true){\n\n word=sc.next();\n if(end.equals(word)) {\n System.out.println(count);\n break;\n }\n else if(key.equalsIgnoreCase(word)) {\n count = count + 1;\n }\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ String word; Scanner sc =new Scanner(System.in); String key = sc.next(); String end = "END_OF_TEXT"; int n; int m; int count=0; while(true){ word=sc.next(); if(end.equals(word)) { System.out.println(count); break; } else if(key.equalsIgnoreCase(word)) { count = count + 1; } } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 14, 4, 18, 13, 4, 18, 13, 30, 40, 13, 4, 18, 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 ], [ 64, 8 ], [ 64, 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 ], [ 22, 23 ], [ 23, 24 ], [ 11, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 25, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 29, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 35, 40 ], [ 40, 41 ], [ 29, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 46, 47 ], [ 47, 48 ], [ 42, 49 ], [ 49, 50 ], [ 50, 51 ], [ 11, 52 ], [ 52, 53 ], [ 53, 54 ], [ 11, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 9, 61 ], [ 61, 62 ], [ 0, 63 ], [ 63, 64 ], [ 63, 65 ] ]
[ "import java.io.*;\nimport java.util.*;\n \npublic class Main {\n \n /**\n * @param args\n */\n public static void main(String[] args) {\n // TODO Auto-generated method stub\n Integer count = 0;\n Scanner s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n String word = s.next().toLowerCase();\n while(s.hasNext()){\n String input = s.next();\n if(input.equals(\"END_OF_TEXT\")){\n break;\n }\n if(word.equals(input.toLowerCase())){\n count++;\n }\n }\n s.close();\n System.out.println(count);\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "public class Main {\n \n /**\n * @param args\n */\n public static void main(String[] args) {\n // TODO Auto-generated method stub\n Integer count = 0;\n Scanner s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n String word = s.next().toLowerCase();\n while(s.hasNext()){\n String input = s.next();\n if(input.equals(\"END_OF_TEXT\")){\n break;\n }\n if(word.equals(input.toLowerCase())){\n count++;\n }\n }\n s.close();\n System.out.println(count);\n }\n}", "Main", "/**\n * @param args\n */\n public static void main(String[] args) {\n // TODO Auto-generated method stub\n Integer count = 0;\n Scanner s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n String word = s.next().toLowerCase();\n while(s.hasNext()){\n String input = s.next();\n if(input.equals(\"END_OF_TEXT\")){\n break;\n }\n if(word.equals(input.toLowerCase())){\n count++;\n }\n }\n s.close();\n System.out.println(count);\n }", "main", "{\n // TODO Auto-generated method stub\n Integer count = 0;\n Scanner s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n String word = s.next().toLowerCase();\n while(s.hasNext()){\n String input = s.next();\n if(input.equals(\"END_OF_TEXT\")){\n break;\n }\n if(word.equals(input.toLowerCase())){\n count++;\n }\n }\n s.close();\n System.out.println(count);\n }", "Integer count = 0;", "count", "0", "Scanner s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));", "s", "new Scanner(new BufferedReader(new InputStreamReader(System.in)))", "String word = s.next().toLowerCase();", "word", "s.next().toLowerCase()", "s.next().toLowerCase", "s.next()", "s.next", "s", "while(s.hasNext()){\n String input = s.next();\n if(input.equals(\"END_OF_TEXT\")){\n break;\n }\n if(word.equals(input.toLowerCase())){\n count++;\n }\n }", "s.hasNext()", "s.hasNext", "s", "{\n String input = s.next();\n if(input.equals(\"END_OF_TEXT\")){\n break;\n }\n if(word.equals(input.toLowerCase())){\n count++;\n }\n }", "String input = s.next();", "input", "s.next()", "s.next", "s", "if(input.equals(\"END_OF_TEXT\")){\n break;\n }", "input.equals(\"END_OF_TEXT\")", "input.equals", "input", "\"END_OF_TEXT\"", "{\n break;\n }", "break;", "if(word.equals(input.toLowerCase())){\n count++;\n }", "word.equals(input.toLowerCase())", "word.equals", "word", "input.toLowerCase()", "input.toLowerCase", "input", "{\n count++;\n }", "count++", "count", "s.close()", "s.close", "s", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main {\n \n /**\n * @param args\n */\n public static void main(String[] args) {\n // TODO Auto-generated method stub\n Integer count = 0;\n Scanner s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n String word = s.next().toLowerCase();\n while(s.hasNext()){\n String input = s.next();\n if(input.equals(\"END_OF_TEXT\")){\n break;\n }\n if(word.equals(input.toLowerCase())){\n count++;\n }\n }\n s.close();\n System.out.println(count);\n }\n}", "public class Main {\n \n /**\n * @param args\n */\n public static void main(String[] args) {\n // TODO Auto-generated method stub\n Integer count = 0;\n Scanner s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n String word = s.next().toLowerCase();\n while(s.hasNext()){\n String input = s.next();\n if(input.equals(\"END_OF_TEXT\")){\n break;\n }\n if(word.equals(input.toLowerCase())){\n count++;\n }\n }\n s.close();\n System.out.println(count);\n }\n}", "Main" ]
import java.io.*; import java.util.*; public class Main { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub Integer count = 0; Scanner s = new Scanner(new BufferedReader(new InputStreamReader(System.in))); String word = s.next().toLowerCase(); while(s.hasNext()){ String input = s.next(); if(input.equals("END_OF_TEXT")){ break; } if(word.equals(input.toLowerCase())){ count++; } } s.close(); System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 41, 13, 17, 42, 17, 30, 0, 13, 4, 18, 4, 18, 13, 17, 14, 4, 18, 18, 13, 17, 17, 3, 28, 13, 13, 30, 30, 14, 4, 18, 13, 13, 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 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 27, 32 ], [ 24, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 33, 40 ], [ 24, 41 ], [ 41, 42 ], [ 41, 43 ], [ 41, 44 ], [ 45, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 46, 51 ], [ 51, 52 ], [ 8, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 6, 59 ], [ 59, 60 ] ]
[ "import java.io.*;\n\nclass Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString W=br.readLine();\n String[] T;\n int c=0;\n while(true){\n \tT=br.readLine().split(\" \");\n \tif(T[0].equals(\"END_OF_TEXT\")) break;\n \tfor(String str : T){\n if(str.equalsIgnoreCase(W)) c++;\n }\n }\n System.out.println(c);\n\t}\n}", "import java.io.*;", "io.*", "java", "class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString W=br.readLine();\n String[] T;\n int c=0;\n while(true){\n \tT=br.readLine().split(\" \");\n \tif(T[0].equals(\"END_OF_TEXT\")) break;\n \tfor(String str : T){\n if(str.equalsIgnoreCase(W)) c++;\n }\n }\n System.out.println(c);\n\t}\n}", "Main", "public static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString W=br.readLine();\n String[] T;\n int c=0;\n while(true){\n \tT=br.readLine().split(\" \");\n \tif(T[0].equals(\"END_OF_TEXT\")) break;\n \tfor(String str : T){\n if(str.equalsIgnoreCase(W)) c++;\n }\n }\n System.out.println(c);\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString W=br.readLine();\n String[] T;\n int c=0;\n while(true){\n \tT=br.readLine().split(\" \");\n \tif(T[0].equals(\"END_OF_TEXT\")) break;\n \tfor(String str : T){\n if(str.equalsIgnoreCase(W)) c++;\n }\n }\n System.out.println(c);\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String W=br.readLine();", "W", "br.readLine()", "br.readLine", "br", "String[] T;", "T", "int c=0;", "c", "0", "while(true){\n \tT=br.readLine().split(\" \");\n \tif(T[0].equals(\"END_OF_TEXT\")) break;\n \tfor(String str : T){\n if(str.equalsIgnoreCase(W)) c++;\n }\n }", "true", "{\n \tT=br.readLine().split(\" \");\n \tif(T[0].equals(\"END_OF_TEXT\")) break;\n \tfor(String str : T){\n if(str.equalsIgnoreCase(W)) c++;\n }\n }", "T=br.readLine().split(\" \")", "T", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "if(T[0].equals(\"END_OF_TEXT\")) break;", "T[0].equals(\"END_OF_TEXT\")", "T[0].equals", "T[0]", "T", "0", "\"END_OF_TEXT\"", "break;", "for(String str : T){\n if(str.equalsIgnoreCase(W)) c++;\n }", "String str", "T", "{\n if(str.equalsIgnoreCase(W)) c++;\n }", "{\n if(str.equalsIgnoreCase(W)) c++;\n }", "if(str.equalsIgnoreCase(W)) c++;", "str.equalsIgnoreCase(W)", "str.equalsIgnoreCase", "str", "W", "c++", "c", "System.out.println(c)", "System.out.println", "System.out", "System", "System.out", "c", "String[] args", "args" ]
import java.io.*; class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String W=br.readLine(); String[] T; int c=0; while(true){ T=br.readLine().split(" "); if(T[0].equals("END_OF_TEXT")) break; for(String str : T){ if(str.equalsIgnoreCase(W)) c++; } } System.out.println(c); } }
[ 7, 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, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 41, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 18, 13, 13, 14, 4, 18, 13, 13, 30, 40, 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 ], [ 91, 11 ], [ 91, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 25, 27 ], [ 14, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 30, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 41, 42 ], [ 41, 43 ], [ 36, 44 ], [ 44, 45 ], [ 30, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 30, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 52, 62 ], [ 62, 63 ], [ 63, 64 ], [ 52, 65 ], [ 66, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 66, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 74, 79 ], [ 79, 80 ], [ 80, 81 ], [ 14, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 12, 88 ], [ 88, 89 ], [ 0, 90 ], [ 90, 91 ], [ 90, 92 ] ]
[ "import java.io.IOException;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n final String word = br.readLine().toUpperCase();\n int count = 0;\n while (true){\n String line = br.readLine();\n if (line==null|line==\"END_OF_TEXT\"){\n break;\n }\n String[] ln = line.split(\"[.,!\\\"?:... ]\");\n for (int i=0; i<ln.length; i++){\n //System.out.println(ln[i]);\n String tmp = ln[i].toUpperCase();\n if (tmp.equals(word)){\n count++;\n }\n }\n }\n System.out.println(count);\n }\n}", "import java.io.IOException;", "IOException", "java.io", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n final String word = br.readLine().toUpperCase();\n int count = 0;\n while (true){\n String line = br.readLine();\n if (line==null|line==\"END_OF_TEXT\"){\n break;\n }\n String[] ln = line.split(\"[.,!\\\"?:... ]\");\n for (int i=0; i<ln.length; i++){\n //System.out.println(ln[i]);\n String tmp = ln[i].toUpperCase();\n if (tmp.equals(word)){\n count++;\n }\n }\n }\n System.out.println(count);\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n final String word = br.readLine().toUpperCase();\n int count = 0;\n while (true){\n String line = br.readLine();\n if (line==null|line==\"END_OF_TEXT\"){\n break;\n }\n String[] ln = line.split(\"[.,!\\\"?:... ]\");\n for (int i=0; i<ln.length; i++){\n //System.out.println(ln[i]);\n String tmp = ln[i].toUpperCase();\n if (tmp.equals(word)){\n count++;\n }\n }\n }\n System.out.println(count);\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n final String word = br.readLine().toUpperCase();\n int count = 0;\n while (true){\n String line = br.readLine();\n if (line==null|line==\"END_OF_TEXT\"){\n break;\n }\n String[] ln = line.split(\"[.,!\\\"?:... ]\");\n for (int i=0; i<ln.length; i++){\n //System.out.println(ln[i]);\n String tmp = ln[i].toUpperCase();\n if (tmp.equals(word)){\n count++;\n }\n }\n }\n System.out.println(count);\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "final String word = br.readLine().toUpperCase();", "word", "br.readLine().toUpperCase()", "br.readLine().toUpperCase", "br.readLine()", "br.readLine", "br", "int count = 0;", "count", "0", "while (true){\n String line = br.readLine();\n if (line==null|line==\"END_OF_TEXT\"){\n break;\n }\n String[] ln = line.split(\"[.,!\\\"?:... ]\");\n for (int i=0; i<ln.length; i++){\n //System.out.println(ln[i]);\n String tmp = ln[i].toUpperCase();\n if (tmp.equals(word)){\n count++;\n }\n }\n }", "true", "{\n String line = br.readLine();\n if (line==null|line==\"END_OF_TEXT\"){\n break;\n }\n String[] ln = line.split(\"[.,!\\\"?:... ]\");\n for (int i=0; i<ln.length; i++){\n //System.out.println(ln[i]);\n String tmp = ln[i].toUpperCase();\n if (tmp.equals(word)){\n count++;\n }\n }\n }", "String line = br.readLine();", "line", "br.readLine()", "br.readLine", "br", "if (line==null|line==\"END_OF_TEXT\"){\n break;\n }", "line==null|line==\"END_OF_TEXT\"", "line==null", "line", "null", "line==\"END_OF_TEXT\"", "line", "\"END_OF_TEXT\"", "{\n break;\n }", "break;", "String[] ln = line.split(\"[.,!\\\"?:... ]\");", "ln", "line.split(\"[.,!\\\"?:... ]\")", "line.split", "line", "\"[.,!\\\"?:... ]\"", "for (int i=0; i<ln.length; i++){\n //System.out.println(ln[i]);\n String tmp = ln[i].toUpperCase();\n if (tmp.equals(word)){\n count++;\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<ln.length", "i", "ln.length", "ln", "ln.length", "i++", "i++", "i", "{\n //System.out.println(ln[i]);\n String tmp = ln[i].toUpperCase();\n if (tmp.equals(word)){\n count++;\n }\n }", "{\n //System.out.println(ln[i]);\n String tmp = ln[i].toUpperCase();\n if (tmp.equals(word)){\n count++;\n }\n }", "String tmp = ln[i].toUpperCase();", "tmp", "ln[i].toUpperCase()", "ln[i].toUpperCase", "ln[i]", "ln", "i", "if (tmp.equals(word)){\n count++;\n }", "tmp.equals(word)", "tmp.equals", "tmp", "word", "{\n count++;\n }", "count++", "count", "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) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n final String word = br.readLine().toUpperCase();\n int count = 0;\n while (true){\n String line = br.readLine();\n if (line==null|line==\"END_OF_TEXT\"){\n break;\n }\n String[] ln = line.split(\"[.,!\\\"?:... ]\");\n for (int i=0; i<ln.length; i++){\n //System.out.println(ln[i]);\n String tmp = ln[i].toUpperCase();\n if (tmp.equals(word)){\n count++;\n }\n }\n }\n System.out.println(count);\n }\n}", "public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n final String word = br.readLine().toUpperCase();\n int count = 0;\n while (true){\n String line = br.readLine();\n if (line==null|line==\"END_OF_TEXT\"){\n break;\n }\n String[] ln = line.split(\"[.,!\\\"?:... ]\");\n for (int i=0; i<ln.length; i++){\n //System.out.println(ln[i]);\n String tmp = ln[i].toUpperCase();\n if (tmp.equals(word)){\n count++;\n }\n }\n }\n System.out.println(count);\n }\n}", "Main" ]
import java.io.IOException; import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); final String word = br.readLine().toUpperCase(); int count = 0; while (true){ String line = br.readLine(); if (line==null|line=="END_OF_TEXT"){ break; } String[] ln = line.split("[.,!\"?:... ]"); for (int i=0; i<ln.length; i++){ //System.out.println(ln[i]); String tmp = ln[i].toUpperCase(); if (tmp.equals(word)){ count++; } } } System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 0, 13, 20, 17, 41, 13, 17, 0, 13, 4, 18, 13, 41, 13, 17, 42, 17, 30, 0, 18, 13, 13, 4, 18, 13, 14, 4, 18, 18, 13, 13, 17, 30, 3, 0, 18, 13, 13, 4, 18, 18, 13, 13, 14, 4, 18, 18, 13, 13, 13, 30, 40, 13, 40, 13, 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 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 8, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 39, 40 ], [ 33, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 42, 47 ], [ 41, 48 ], [ 48, 49 ], [ 33, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 33, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 59, 66 ], [ 66, 67 ], [ 67, 68 ], [ 33, 69 ], [ 69, 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;\n\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n String s, text[];\n text = new String[10000000];\n int count = 0;\n s = sc.next();\n\n int i = 0;\n while(true){\n text[i] = sc.next();\n\n if(text[i].equals(\"END_OF_TEXT\")){\n break;\n }\n\n text[i] = text[i].toLowerCase();\n\n if(text[i].equals(s)){\n count++;\n }\n\n ++i;\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 sc = new Scanner(System.in);\n\n String s, text[];\n text = new String[10000000];\n int count = 0;\n s = sc.next();\n\n int i = 0;\n while(true){\n text[i] = sc.next();\n\n if(text[i].equals(\"END_OF_TEXT\")){\n break;\n }\n\n text[i] = text[i].toLowerCase();\n\n if(text[i].equals(s)){\n count++;\n }\n\n ++i;\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 s, text[];\n text = new String[10000000];\n int count = 0;\n s = sc.next();\n\n int i = 0;\n while(true){\n text[i] = sc.next();\n\n if(text[i].equals(\"END_OF_TEXT\")){\n break;\n }\n\n text[i] = text[i].toLowerCase();\n\n if(text[i].equals(s)){\n count++;\n }\n\n ++i;\n }\n System.out.println(count);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n\n String s, text[];\n text = new String[10000000];\n int count = 0;\n s = sc.next();\n\n int i = 0;\n while(true){\n text[i] = sc.next();\n\n if(text[i].equals(\"END_OF_TEXT\")){\n break;\n }\n\n text[i] = text[i].toLowerCase();\n\n if(text[i].equals(s)){\n count++;\n }\n\n ++i;\n }\n System.out.println(count);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s", "s", "text[];", "text", "text = new String[10000000]", "text", "new String[10000000]", "10000000", "int count = 0;", "count", "0", "s = sc.next()", "s", "sc.next()", "sc.next", "sc", "int i = 0;", "i", "0", "while(true){\n text[i] = sc.next();\n\n if(text[i].equals(\"END_OF_TEXT\")){\n break;\n }\n\n text[i] = text[i].toLowerCase();\n\n if(text[i].equals(s)){\n count++;\n }\n\n ++i;\n }", "true", "{\n text[i] = sc.next();\n\n if(text[i].equals(\"END_OF_TEXT\")){\n break;\n }\n\n text[i] = text[i].toLowerCase();\n\n if(text[i].equals(s)){\n count++;\n }\n\n ++i;\n }", "text[i] = sc.next()", "text[i]", "text", "i", "sc.next()", "sc.next", "sc", "if(text[i].equals(\"END_OF_TEXT\")){\n break;\n }", "text[i].equals(\"END_OF_TEXT\")", "text[i].equals", "text[i]", "text", "i", "\"END_OF_TEXT\"", "{\n break;\n }", "break;", "text[i] = text[i].toLowerCase()", "text[i]", "text", "i", "text[i].toLowerCase()", "text[i].toLowerCase", "text[i]", "text", "i", "if(text[i].equals(s)){\n count++;\n }", "text[i].equals(s)", "text[i].equals", "text[i]", "text", "i", "s", "{\n count++;\n }", "count++", "count", "++i", "i", "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 s, text[];\n text = new String[10000000];\n int count = 0;\n s = sc.next();\n\n int i = 0;\n while(true){\n text[i] = sc.next();\n\n if(text[i].equals(\"END_OF_TEXT\")){\n break;\n }\n\n text[i] = text[i].toLowerCase();\n\n if(text[i].equals(s)){\n count++;\n }\n\n ++i;\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 s, text[];\n text = new String[10000000];\n int count = 0;\n s = sc.next();\n\n int i = 0;\n while(true){\n text[i] = sc.next();\n\n if(text[i].equals(\"END_OF_TEXT\")){\n break;\n }\n\n text[i] = text[i].toLowerCase();\n\n if(text[i].equals(s)){\n count++;\n }\n\n ++i;\n }\n System.out.println(count);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s, text[]; text = new String[10000000]; int count = 0; s = sc.next(); int i = 0; while(true){ text[i] = sc.next(); if(text[i].equals("END_OF_TEXT")){ break; } text[i] = text[i].toLowerCase(); if(text[i].equals(s)){ count++; } ++i; } System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 20, 17, 12, 13, 30, 41, 13, 4, 18, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 4, 18, 13, 40, 13, 14, 4, 18, 17, 13, 3, 4, 13, 13, 12, 13, 30, 4, 18, 20, 23, 13, 12, 13, 30, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 4, 18, 18, 13, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 4, 9 ], [ 9, 10 ], [ 9, 11 ], [ 4, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 21, 22 ], [ 15, 23 ], [ 23, 24 ], [ 23, 25 ], [ 15, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 28, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 38, 39 ], [ 39, 40 ], [ 34, 41 ], [ 41, 42 ], [ 28, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 43, 48 ], [ 15, 49 ], [ 49, 50 ], [ 49, 51 ], [ 4, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 52, 58 ], [ 58, 59 ], [ 4, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 60, 69 ], [ 69, 70 ], [ 4, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 71, 80 ], [ 80, 81 ], [ 4, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ] ]
[ "import java.util.Scanner;\n \nclass Main {\n Scanner sc = new Scanner(System.in);\n \n int[] count = new int[26];\n \n public void run() {\n String s=sc.nextLine().toLowerCase();\n int count=0;\n while(true){\n String str=sc.next();\n if(s.equals(str.toLowerCase()))count++;\n if(\"END_OF_TEXT\".equals(str))break;\n }\n ln(count);\n }\n \n public static void main(String[] args) {\n new Main().run();\n }\n \n public static void pr(Object o) {\n System.out.print(o);\n }\n \n public static void ln(Object o) {\n System.out.println(o);\n }\n \n public static void ln() {\n System.out.println();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n Scanner sc = new Scanner(System.in);\n \n int[] count = new int[26];\n \n public void run() {\n String s=sc.nextLine().toLowerCase();\n int count=0;\n while(true){\n String str=sc.next();\n if(s.equals(str.toLowerCase()))count++;\n if(\"END_OF_TEXT\".equals(str))break;\n }\n ln(count);\n }\n \n public static void main(String[] args) {\n new Main().run();\n }\n \n public static void pr(Object o) {\n System.out.print(o);\n }\n \n public static void ln(Object o) {\n System.out.println(o);\n }\n \n public static void ln() {\n System.out.println();\n }\n}", "Main", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int[] count = new int[26];", "count", "new int[26]", "26", "public void run() {\n String s=sc.nextLine().toLowerCase();\n int count=0;\n while(true){\n String str=sc.next();\n if(s.equals(str.toLowerCase()))count++;\n if(\"END_OF_TEXT\".equals(str))break;\n }\n ln(count);\n }", "run", "{\n String s=sc.nextLine().toLowerCase();\n int count=0;\n while(true){\n String str=sc.next();\n if(s.equals(str.toLowerCase()))count++;\n if(\"END_OF_TEXT\".equals(str))break;\n }\n ln(count);\n }", "String s=sc.nextLine().toLowerCase();", "s", "sc.nextLine().toLowerCase()", "sc.nextLine().toLowerCase", "sc.nextLine()", "sc.nextLine", "sc", "int count=0;", "count", "0", "while(true){\n String str=sc.next();\n if(s.equals(str.toLowerCase()))count++;\n if(\"END_OF_TEXT\".equals(str))break;\n }", "true", "{\n String str=sc.next();\n if(s.equals(str.toLowerCase()))count++;\n if(\"END_OF_TEXT\".equals(str))break;\n }", "String str=sc.next();", "str", "sc.next()", "sc.next", "sc", "if(s.equals(str.toLowerCase()))count++;", "s.equals(str.toLowerCase())", "s.equals", "s", "str.toLowerCase()", "str.toLowerCase", "str", "count++", "count", "if(\"END_OF_TEXT\".equals(str))break;", "\"END_OF_TEXT\".equals(str)", "\"END_OF_TEXT\".equals", "\"END_OF_TEXT\"", "str", "break;", "ln(count)", "ln", "count", "public static void main(String[] args) {\n new Main().run();\n }", "main", "{\n new Main().run();\n }", "new Main().run()", "new Main().run", "new Main()", "String[] args", "args", "public static void pr(Object o) {\n System.out.print(o);\n }", "pr", "{\n System.out.print(o);\n }", "System.out.print(o)", "System.out.print", "System.out", "System", "System.out", "o", "Object o", "o", "public static void ln(Object o) {\n System.out.println(o);\n }", "ln", "{\n System.out.println(o);\n }", "System.out.println(o)", "System.out.println", "System.out", "System", "System.out", "o", "Object o", "o", "public static void ln() {\n System.out.println();\n }", "ln", "{\n System.out.println();\n }", "System.out.println()", "System.out.println", "System.out", "System", "System.out" ]
import java.util.Scanner; class Main { Scanner sc = new Scanner(System.in); int[] count = new int[26]; public void run() { String s=sc.nextLine().toLowerCase(); int count=0; while(true){ String str=sc.next(); if(s.equals(str.toLowerCase()))count++; if("END_OF_TEXT".equals(str))break; } ln(count); } public static void main(String[] args) { new Main().run(); } public static void pr(Object o) { System.out.print(o); } public static void ln(Object o) { System.out.println(o); } public static void ln() { System.out.println(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 14, 2, 4, 18, 13, 13, 17, 30, 40, 13, 4, 18, 18, 13, 13, 13, 12, 13, 30, 4, 18, 20, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 59, 5 ], [ 59, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 22, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 35, 40 ], [ 34, 41 ], [ 41, 42 ], [ 42, 43 ], [ 8, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 59, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 50, 56 ], [ 56, 57 ], [ 0, 58 ], [ 58, 59 ], [ 58, 60 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tvoid run(){\n\t\tScanner s = new Scanner(System.in);\n\t\tString W = s.next();\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tString T = s.next();\n\t\t\tif(T.equals (\"END_OF_TEXT\")) break;\n\t\t\tif(W.compareToIgnoreCase(T) == 0){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\tSystem.out.println(count);\n\t\t}\n\n\tpublic static void main(String[] args) {\n\t\n\t\tnew Main().run();\n\t\t\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tvoid run(){\n\t\tScanner s = new Scanner(System.in);\n\t\tString W = s.next();\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tString T = s.next();\n\t\t\tif(T.equals (\"END_OF_TEXT\")) break;\n\t\t\tif(W.compareToIgnoreCase(T) == 0){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\tSystem.out.println(count);\n\t\t}\n\n\tpublic static void main(String[] args) {\n\t\n\t\tnew Main().run();\n\t\t\n\t}\n}", "Main", "void run(){\n\t\tScanner s = new Scanner(System.in);\n\t\tString W = s.next();\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tString T = s.next();\n\t\t\tif(T.equals (\"END_OF_TEXT\")) break;\n\t\t\tif(W.compareToIgnoreCase(T) == 0){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\tSystem.out.println(count);\n\t\t}", "run", "{\n\t\tScanner s = new Scanner(System.in);\n\t\tString W = s.next();\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tString T = s.next();\n\t\t\tif(T.equals (\"END_OF_TEXT\")) break;\n\t\t\tif(W.compareToIgnoreCase(T) == 0){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\tSystem.out.println(count);\n\t\t}", "Scanner s = new Scanner(System.in);", "s", "new Scanner(System.in)", "String W = s.next();", "W", "s.next()", "s.next", "s", "int count = 0;", "count", "0", "while(true){\n\t\t\tString T = s.next();\n\t\t\tif(T.equals (\"END_OF_TEXT\")) break;\n\t\t\tif(W.compareToIgnoreCase(T) == 0){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tString T = s.next();\n\t\t\tif(T.equals (\"END_OF_TEXT\")) break;\n\t\t\tif(W.compareToIgnoreCase(T) == 0){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "String T = s.next();", "T", "s.next()", "s.next", "s", "if(T.equals (\"END_OF_TEXT\")) break;", "T.equals (\"END_OF_TEXT\")", "T.equals", "T", "\"END_OF_TEXT\"", "break;", "if(W.compareToIgnoreCase(T) == 0){\n\t\t\t\tcount++;\n\t\t\t}", "W.compareToIgnoreCase(T) == 0", "W.compareToIgnoreCase(T)", "W.compareToIgnoreCase", "W", "T", "0", "{\n\t\t\t\tcount++;\n\t\t\t}", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "public static void main(String[] args) {\n\t\n\t\tnew Main().run();\n\t\t\n\t}", "main", "{\n\t\n\t\tnew Main().run();\n\t\t\n\t}", "new Main().run()", "new Main().run", "new Main()", "String[] args", "args", "public class Main {\n\tvoid run(){\n\t\tScanner s = new Scanner(System.in);\n\t\tString W = s.next();\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tString T = s.next();\n\t\t\tif(T.equals (\"END_OF_TEXT\")) break;\n\t\t\tif(W.compareToIgnoreCase(T) == 0){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\tSystem.out.println(count);\n\t\t}\n\n\tpublic static void main(String[] args) {\n\t\n\t\tnew Main().run();\n\t\t\n\t}\n}", "public class Main {\n\tvoid run(){\n\t\tScanner s = new Scanner(System.in);\n\t\tString W = s.next();\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tString T = s.next();\n\t\t\tif(T.equals (\"END_OF_TEXT\")) break;\n\t\t\tif(W.compareToIgnoreCase(T) == 0){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\tSystem.out.println(count);\n\t\t}\n\n\tpublic static void main(String[] args) {\n\t\n\t\tnew Main().run();\n\t\t\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { void run(){ Scanner s = new Scanner(System.in); String W = s.next(); int count = 0; while(true){ String T = s.next(); if(T.equals ("END_OF_TEXT")) break; if(W.compareToIgnoreCase(T) == 0){ count++; } } System.out.println(count); } public static void main(String[] args) { new Main().run(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 0, 13, 4, 18, 13, 14, 4, 18, 13, 13, 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 ], [ 21, 22 ], [ 22, 23 ], [ 20, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 24, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 30, 35 ], [ 24, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 24, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 41, 46 ], [ 46, 47 ], [ 8, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 6, 54 ], [ 54, 55 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan=new Scanner(System.in);\n\t\t\n\t\tString w=scan.next();\n\t\tint cnt=0;\n\t\t\n\t\twhile(scan.hasNext()){\n\t\t\tString s=scan.next();\n\t\t\tif(s.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\t\n\t\t\ts=s.toLowerCase();\n\t\t\tif(s.equals(w))\n\t\t\t\tcnt++;\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(cnt);\n\t\t\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan=new Scanner(System.in);\n\t\t\n\t\tString w=scan.next();\n\t\tint cnt=0;\n\t\t\n\t\twhile(scan.hasNext()){\n\t\t\tString s=scan.next();\n\t\t\tif(s.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\t\n\t\t\ts=s.toLowerCase();\n\t\t\tif(s.equals(w))\n\t\t\t\tcnt++;\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(cnt);\n\t\t\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner scan=new Scanner(System.in);\n\t\t\n\t\tString w=scan.next();\n\t\tint cnt=0;\n\t\t\n\t\twhile(scan.hasNext()){\n\t\t\tString s=scan.next();\n\t\t\tif(s.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\t\n\t\t\ts=s.toLowerCase();\n\t\t\tif(s.equals(w))\n\t\t\t\tcnt++;\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(cnt);\n\t\t\n\t}", "main", "{\n\t\tScanner scan=new Scanner(System.in);\n\t\t\n\t\tString w=scan.next();\n\t\tint cnt=0;\n\t\t\n\t\twhile(scan.hasNext()){\n\t\t\tString s=scan.next();\n\t\t\tif(s.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\t\n\t\t\ts=s.toLowerCase();\n\t\t\tif(s.equals(w))\n\t\t\t\tcnt++;\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(cnt);\n\t\t\n\t}", "Scanner scan=new Scanner(System.in);", "scan", "new Scanner(System.in)", "String w=scan.next();", "w", "scan.next()", "scan.next", "scan", "int cnt=0;", "cnt", "0", "while(scan.hasNext()){\n\t\t\tString s=scan.next();\n\t\t\tif(s.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\t\n\t\t\ts=s.toLowerCase();\n\t\t\tif(s.equals(w))\n\t\t\t\tcnt++;\n\t\t\t\n\t\t}", "scan.hasNext()", "scan.hasNext", "scan", "{\n\t\t\tString s=scan.next();\n\t\t\tif(s.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\t\n\t\t\ts=s.toLowerCase();\n\t\t\tif(s.equals(w))\n\t\t\t\tcnt++;\n\t\t\t\n\t\t}", "String s=scan.next();", "s", "scan.next()", "scan.next", "scan", "if(s.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;", "s.equals(\"END_OF_TEXT\")", "s.equals", "s", "\"END_OF_TEXT\"", "break;", "s=s.toLowerCase()", "s", "s.toLowerCase()", "s.toLowerCase", "s", "if(s.equals(w))\n\t\t\t\tcnt++;", "s.equals(w)", "s.equals", "s", "w", "cnt++", "cnt", "System.out.println(cnt)", "System.out.println", "System.out", "System", "System.out", "cnt", "String[] args", "args" ]
import java.util.Scanner; class Main { public static void main(String[] args){ Scanner scan=new Scanner(System.in); String w=scan.next(); int cnt=0; while(scan.hasNext()){ String s=scan.next(); if(s.equals("END_OF_TEXT")) break; s=s.toLowerCase(); if(s.equals(w)) cnt++; } System.out.println(cnt); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 0, 13, 4, 18, 4, 18, 13, 0, 13, 4, 18, 13, 41, 13, 17, 42, 40, 4, 18, 13, 17, 30, 14, 4, 18, 4, 18, 13, 13, 40, 13, 0, 13, 4, 18, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 61, 5 ], [ 61, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 21, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 8, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 31, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 39, 44 ], [ 38, 45 ], [ 45, 46 ], [ 37, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 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.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n String words, sentence;\n words = scan.next().toUpperCase();\n sentence = scan.next();\n int result=0;\n \n while(!sentence.equals(\"END_OF_TEXT\")){\n if(sentence.toUpperCase().equals(words))\n result++;\n sentence=scan.next();\n }\n \n System.out.println(result);\n }\n}", "import java.util.*;", "util.*", "java", "public class Main{\n public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n String words, sentence;\n words = scan.next().toUpperCase();\n sentence = scan.next();\n int result=0;\n \n while(!sentence.equals(\"END_OF_TEXT\")){\n if(sentence.toUpperCase().equals(words))\n result++;\n sentence=scan.next();\n }\n \n System.out.println(result);\n }\n}", "Main", "public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n String words, sentence;\n words = scan.next().toUpperCase();\n sentence = scan.next();\n int result=0;\n \n while(!sentence.equals(\"END_OF_TEXT\")){\n if(sentence.toUpperCase().equals(words))\n result++;\n sentence=scan.next();\n }\n \n System.out.println(result);\n }", "main", "{\n Scanner scan=new Scanner(System.in);\n String words, sentence;\n words = scan.next().toUpperCase();\n sentence = scan.next();\n int result=0;\n \n while(!sentence.equals(\"END_OF_TEXT\")){\n if(sentence.toUpperCase().equals(words))\n result++;\n sentence=scan.next();\n }\n \n System.out.println(result);\n }", "Scanner scan=new Scanner(System.in);", "scan", "new Scanner(System.in)", "String words", "words", "sentence;", "sentence", "words = scan.next().toUpperCase()", "words", "scan.next().toUpperCase()", "scan.next().toUpperCase", "scan.next()", "scan.next", "scan", "sentence = scan.next()", "sentence", "scan.next()", "scan.next", "scan", "int result=0;", "result", "0", "while(!sentence.equals(\"END_OF_TEXT\")){\n if(sentence.toUpperCase().equals(words))\n result++;\n sentence=scan.next();\n }", "!sentence.equals(\"END_OF_TEXT\")", "sentence.equals(\"END_OF_TEXT\")", "sentence.equals", "sentence", "\"END_OF_TEXT\"", "{\n if(sentence.toUpperCase().equals(words))\n result++;\n sentence=scan.next();\n }", "if(sentence.toUpperCase().equals(words))\n result++;", "sentence.toUpperCase().equals(words)", "sentence.toUpperCase().equals", "sentence.toUpperCase()", "sentence.toUpperCase", "sentence", "words", "result++", "result", "sentence=scan.next()", "sentence", "scan.next()", "scan.next", "scan", "System.out.println(result)", "System.out.println", "System.out", "System", "System.out", "result", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n String words, sentence;\n words = scan.next().toUpperCase();\n sentence = scan.next();\n int result=0;\n \n while(!sentence.equals(\"END_OF_TEXT\")){\n if(sentence.toUpperCase().equals(words))\n result++;\n sentence=scan.next();\n }\n \n System.out.println(result);\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n String words, sentence;\n words = scan.next().toUpperCase();\n sentence = scan.next();\n int result=0;\n \n while(!sentence.equals(\"END_OF_TEXT\")){\n if(sentence.toUpperCase().equals(words))\n result++;\n sentence=scan.next();\n }\n \n System.out.println(result);\n }\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan=new Scanner(System.in); String words, sentence; words = scan.next().toUpperCase(); sentence = scan.next(); int result=0; while(!sentence.equals("END_OF_TEXT")){ if(sentence.toUpperCase().equals(words)) result++; sentence=scan.next(); } System.out.println(result); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 18, 13, 13, 13, 30, 40, 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 ], [ 81, 11 ], [ 81, 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 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 28, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 34, 39 ], [ 39, 40 ], [ 28, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 28, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 54, 56 ], [ 47, 57 ], [ 57, 58 ], [ 58, 59 ], [ 47, 60 ], [ 61, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 62, 69 ], [ 69, 70 ], [ 70, 71 ], [ 14, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 12, 78 ], [ 78, 79 ], [ 0, 80 ], [ 80, 81 ], [ 80, 82 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\n\t\tString word = br.readLine();\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tString sentence = br.readLine();\n\t\t\t\n\t\t\tif(sentence.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\tString[] tmpArray = sentence.split(\"[[^a-z]&&[^A-Z]]\");\n\t\t\t\n\t\t\tfor(int i = 0; i < tmpArray.length ; i++){\n\t\t\t\tif(tmpArray[i].equalsIgnoreCase(word)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\n\n//\n//\t\t\tif(Character.isLowerCase(c)){\n//\t\t\t\tSystem.out.print(Character.toUpperCase(c));\n//\t\t\t}\n//\n//\t\t\telse if(Character.isUpperCase(c)){\n//\t\t\t\tSystem.out.print(Character.toLowerCase(c));\n//\t\t\t}\n//\t\t\telse {\n//\t\t\t\tSystem.out.print(c);\n//\t\t\t}\n//\t\t}\n//\t\tSystem.out.println();\n\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint n = Integer.parseInt(tmpArray[0]);\n//\t\tint m = Integer.parseInt(tmpArray[1]);\n//\t\tint l = Integer.parseInt(tmpArray[2]);\n//\n//\t\tlong[][] a = new long[n][m];\n//\t\tlong[][] b = new long[m][l];\n//\t\tlong[][] c = new long[n][l];\n//\n//\t\tfor(int i = 0; i < n; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < m; j++){\n//\t\t\t\ta[i][j] = Long.parseLong(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < m; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tb[i][j] = Integer.parseInt(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < n; i++){\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tfor(int k = 0; k < m; k++){\n//\t\t\t\t\tc[i][j] += a[i][k]*b[k][j];\n//\t\t\t\t}\n//\n//\t\t\t\tif(j != 0 ){\n//\t\t\t\t\tSystem.out.print(\" \");\n//\t\t\t\t}\n//\t\t\t\tSystem.out.print(c[i][j]);\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\n\t\tString word = br.readLine();\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tString sentence = br.readLine();\n\t\t\t\n\t\t\tif(sentence.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\tString[] tmpArray = sentence.split(\"[[^a-z]&&[^A-Z]]\");\n\t\t\t\n\t\t\tfor(int i = 0; i < tmpArray.length ; i++){\n\t\t\t\tif(tmpArray[i].equalsIgnoreCase(word)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\n\n//\n//\t\t\tif(Character.isLowerCase(c)){\n//\t\t\t\tSystem.out.print(Character.toUpperCase(c));\n//\t\t\t}\n//\n//\t\t\telse if(Character.isUpperCase(c)){\n//\t\t\t\tSystem.out.print(Character.toLowerCase(c));\n//\t\t\t}\n//\t\t\telse {\n//\t\t\t\tSystem.out.print(c);\n//\t\t\t}\n//\t\t}\n//\t\tSystem.out.println();\n\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint n = Integer.parseInt(tmpArray[0]);\n//\t\tint m = Integer.parseInt(tmpArray[1]);\n//\t\tint l = Integer.parseInt(tmpArray[2]);\n//\n//\t\tlong[][] a = new long[n][m];\n//\t\tlong[][] b = new long[m][l];\n//\t\tlong[][] c = new long[n][l];\n//\n//\t\tfor(int i = 0; i < n; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < m; j++){\n//\t\t\t\ta[i][j] = Long.parseLong(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < m; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tb[i][j] = Integer.parseInt(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < n; i++){\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tfor(int k = 0; k < m; k++){\n//\t\t\t\t\tc[i][j] += a[i][k]*b[k][j];\n//\t\t\t\t}\n//\n//\t\t\t\tif(j != 0 ){\n//\t\t\t\t\tSystem.out.print(\" \");\n//\t\t\t\t}\n//\t\t\t\tSystem.out.print(c[i][j]);\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\n\t}\n\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\n\t\tString word = br.readLine();\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tString sentence = br.readLine();\n\t\t\t\n\t\t\tif(sentence.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\tString[] tmpArray = sentence.split(\"[[^a-z]&&[^A-Z]]\");\n\t\t\t\n\t\t\tfor(int i = 0; i < tmpArray.length ; i++){\n\t\t\t\tif(tmpArray[i].equalsIgnoreCase(word)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\n\n//\n//\t\t\tif(Character.isLowerCase(c)){\n//\t\t\t\tSystem.out.print(Character.toUpperCase(c));\n//\t\t\t}\n//\n//\t\t\telse if(Character.isUpperCase(c)){\n//\t\t\t\tSystem.out.print(Character.toLowerCase(c));\n//\t\t\t}\n//\t\t\telse {\n//\t\t\t\tSystem.out.print(c);\n//\t\t\t}\n//\t\t}\n//\t\tSystem.out.println();\n\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint n = Integer.parseInt(tmpArray[0]);\n//\t\tint m = Integer.parseInt(tmpArray[1]);\n//\t\tint l = Integer.parseInt(tmpArray[2]);\n//\n//\t\tlong[][] a = new long[n][m];\n//\t\tlong[][] b = new long[m][l];\n//\t\tlong[][] c = new long[n][l];\n//\n//\t\tfor(int i = 0; i < n; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < m; j++){\n//\t\t\t\ta[i][j] = Long.parseLong(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < m; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tb[i][j] = Integer.parseInt(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < n; i++){\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tfor(int k = 0; k < m; k++){\n//\t\t\t\t\tc[i][j] += a[i][k]*b[k][j];\n//\t\t\t\t}\n//\n//\t\t\t\tif(j != 0 ){\n//\t\t\t\t\tSystem.out.print(\" \");\n//\t\t\t\t}\n//\t\t\t\tSystem.out.print(c[i][j]);\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\n\t}", "main", "{\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\n\t\tString word = br.readLine();\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tString sentence = br.readLine();\n\t\t\t\n\t\t\tif(sentence.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\tString[] tmpArray = sentence.split(\"[[^a-z]&&[^A-Z]]\");\n\t\t\t\n\t\t\tfor(int i = 0; i < tmpArray.length ; i++){\n\t\t\t\tif(tmpArray[i].equalsIgnoreCase(word)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\n\n//\n//\t\t\tif(Character.isLowerCase(c)){\n//\t\t\t\tSystem.out.print(Character.toUpperCase(c));\n//\t\t\t}\n//\n//\t\t\telse if(Character.isUpperCase(c)){\n//\t\t\t\tSystem.out.print(Character.toLowerCase(c));\n//\t\t\t}\n//\t\t\telse {\n//\t\t\t\tSystem.out.print(c);\n//\t\t\t}\n//\t\t}\n//\t\tSystem.out.println();\n\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint n = Integer.parseInt(tmpArray[0]);\n//\t\tint m = Integer.parseInt(tmpArray[1]);\n//\t\tint l = Integer.parseInt(tmpArray[2]);\n//\n//\t\tlong[][] a = new long[n][m];\n//\t\tlong[][] b = new long[m][l];\n//\t\tlong[][] c = new long[n][l];\n//\n//\t\tfor(int i = 0; i < n; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < m; j++){\n//\t\t\t\ta[i][j] = Long.parseLong(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < m; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tb[i][j] = Integer.parseInt(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < n; i++){\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tfor(int k = 0; k < m; k++){\n//\t\t\t\t\tc[i][j] += a[i][k]*b[k][j];\n//\t\t\t\t}\n//\n//\t\t\t\tif(j != 0 ){\n//\t\t\t\t\tSystem.out.print(\" \");\n//\t\t\t\t}\n//\t\t\t\tSystem.out.print(c[i][j]);\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String word = br.readLine();", "word", "br.readLine()", "br.readLine", "br", "int count = 0;", "count", "0", "while(true){\n\t\t\tString sentence = br.readLine();\n\t\t\t\n\t\t\tif(sentence.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\tString[] tmpArray = sentence.split(\"[[^a-z]&&[^A-Z]]\");\n\t\t\t\n\t\t\tfor(int i = 0; i < tmpArray.length ; i++){\n\t\t\t\tif(tmpArray[i].equalsIgnoreCase(word)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}", "true", "{\n\t\t\tString sentence = br.readLine();\n\t\t\t\n\t\t\tif(sentence.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\tString[] tmpArray = sentence.split(\"[[^a-z]&&[^A-Z]]\");\n\t\t\t\n\t\t\tfor(int i = 0; i < tmpArray.length ; i++){\n\t\t\t\tif(tmpArray[i].equalsIgnoreCase(word)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}", "String sentence = br.readLine();", "sentence", "br.readLine()", "br.readLine", "br", "if(sentence.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\n\t\t\t}", "sentence.equals(\"END_OF_TEXT\")", "sentence.equals", "sentence", "\"END_OF_TEXT\"", "{\n\t\t\t\tbreak;\n\n\t\t\t}", "break;", "String[] tmpArray = sentence.split(\"[[^a-z]&&[^A-Z]]\");", "tmpArray", "sentence.split(\"[[^a-z]&&[^A-Z]]\")", "sentence.split", "sentence", "\"[[^a-z]&&[^A-Z]]\"", "for(int i = 0; i < tmpArray.length ; i++){\n\t\t\t\tif(tmpArray[i].equalsIgnoreCase(word)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < tmpArray.length", "i", "tmpArray.length", "tmpArray", "tmpArray.length", "i++", "i++", "i", "{\n\t\t\t\tif(tmpArray[i].equalsIgnoreCase(word)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif(tmpArray[i].equalsIgnoreCase(word)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}", "if(tmpArray[i].equalsIgnoreCase(word)){\n\t\t\t\t\tcount++;\n\t\t\t\t}", "tmpArray[i].equalsIgnoreCase(word)", "tmpArray[i].equalsIgnoreCase", "tmpArray[i]", "tmpArray", "i", "word", "{\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) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\n\t\tString word = br.readLine();\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tString sentence = br.readLine();\n\t\t\t\n\t\t\tif(sentence.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\tString[] tmpArray = sentence.split(\"[[^a-z]&&[^A-Z]]\");\n\t\t\t\n\t\t\tfor(int i = 0; i < tmpArray.length ; i++){\n\t\t\t\tif(tmpArray[i].equalsIgnoreCase(word)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\n\n//\n//\t\t\tif(Character.isLowerCase(c)){\n//\t\t\t\tSystem.out.print(Character.toUpperCase(c));\n//\t\t\t}\n//\n//\t\t\telse if(Character.isUpperCase(c)){\n//\t\t\t\tSystem.out.print(Character.toLowerCase(c));\n//\t\t\t}\n//\t\t\telse {\n//\t\t\t\tSystem.out.print(c);\n//\t\t\t}\n//\t\t}\n//\t\tSystem.out.println();\n\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint n = Integer.parseInt(tmpArray[0]);\n//\t\tint m = Integer.parseInt(tmpArray[1]);\n//\t\tint l = Integer.parseInt(tmpArray[2]);\n//\n//\t\tlong[][] a = new long[n][m];\n//\t\tlong[][] b = new long[m][l];\n//\t\tlong[][] c = new long[n][l];\n//\n//\t\tfor(int i = 0; i < n; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < m; j++){\n//\t\t\t\ta[i][j] = Long.parseLong(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < m; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tb[i][j] = Integer.parseInt(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < n; i++){\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tfor(int k = 0; k < m; k++){\n//\t\t\t\t\tc[i][j] += a[i][k]*b[k][j];\n//\t\t\t\t}\n//\n//\t\t\t\tif(j != 0 ){\n//\t\t\t\t\tSystem.out.print(\" \");\n//\t\t\t\t}\n//\t\t\t\tSystem.out.print(c[i][j]);\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\n\t\tString word = br.readLine();\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tString sentence = br.readLine();\n\t\t\t\n\t\t\tif(sentence.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\tString[] tmpArray = sentence.split(\"[[^a-z]&&[^A-Z]]\");\n\t\t\t\n\t\t\tfor(int i = 0; i < tmpArray.length ; i++){\n\t\t\t\tif(tmpArray[i].equalsIgnoreCase(word)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\n\n//\n//\t\t\tif(Character.isLowerCase(c)){\n//\t\t\t\tSystem.out.print(Character.toUpperCase(c));\n//\t\t\t}\n//\n//\t\t\telse if(Character.isUpperCase(c)){\n//\t\t\t\tSystem.out.print(Character.toLowerCase(c));\n//\t\t\t}\n//\t\t\telse {\n//\t\t\t\tSystem.out.print(c);\n//\t\t\t}\n//\t\t}\n//\t\tSystem.out.println();\n\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint n = Integer.parseInt(tmpArray[0]);\n//\t\tint m = Integer.parseInt(tmpArray[1]);\n//\t\tint l = Integer.parseInt(tmpArray[2]);\n//\n//\t\tlong[][] a = new long[n][m];\n//\t\tlong[][] b = new long[m][l];\n//\t\tlong[][] c = new long[n][l];\n//\n//\t\tfor(int i = 0; i < n; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < m; j++){\n//\t\t\t\ta[i][j] = Long.parseLong(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < m; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tb[i][j] = Integer.parseInt(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < n; i++){\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tfor(int k = 0; k < m; k++){\n//\t\t\t\t\tc[i][j] += a[i][k]*b[k][j];\n//\t\t\t\t}\n//\n//\t\t\t\tif(j != 0 ){\n//\t\t\t\t\tSystem.out.print(\" \");\n//\t\t\t\t}\n//\t\t\t\tSystem.out.print(c[i][j]);\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { // TODO ????????????????????????????????????????????? BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String word = br.readLine(); int count = 0; while(true){ String sentence = br.readLine(); if(sentence.equals("END_OF_TEXT")){ break; } String[] tmpArray = sentence.split("[[^a-z]&&[^A-Z]]"); for(int i = 0; i < tmpArray.length ; i++){ if(tmpArray[i].equalsIgnoreCase(word)){ count++; } } } System.out.println(count); // // if(Character.isLowerCase(c)){ // System.out.print(Character.toUpperCase(c)); // } // // else if(Character.isUpperCase(c)){ // System.out.print(Character.toLowerCase(c)); // } // else { // System.out.print(c); // } // } // System.out.println(); // String[] tmpArray = br.readLine().split(" "); // int n = Integer.parseInt(tmpArray[0]); // int m = Integer.parseInt(tmpArray[1]); // int l = Integer.parseInt(tmpArray[2]); // // long[][] a = new long[n][m]; // long[][] b = new long[m][l]; // long[][] c = new long[n][l]; // // for(int i = 0; i < n; i ++){ // tmpArray = br.readLine().split(" "); // for(int j = 0; j < m; j++){ // a[i][j] = Long.parseLong(tmpArray[j]); // } // } // // for(int i = 0; i < m; i ++){ // tmpArray = br.readLine().split(" "); // for(int j = 0; j < l; j++){ // b[i][j] = Integer.parseInt(tmpArray[j]); // } // } // // for(int i = 0; i < n; i++){ // for(int j = 0; j < l; j++){ // for(int k = 0; k < m; k++){ // c[i][j] += a[i][k]*b[k][j]; // } // // if(j != 0 ){ // System.out.print(" "); // } // System.out.print(c[i][j]); // } // System.out.println(); // } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 42, 40, 4, 18, 0, 13, 4, 18, 13, 17, 30, 28, 13, 4, 18, 13, 17, 30, 30, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 59, 5 ], [ 59, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 25, 32 ], [ 23, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 34, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 42, 47 ], [ 47, 48 ], [ 48, 49 ], [ 8, 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\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tString W=sc.next();\n\t\tint count=0;\n\t\tString line=\"\";\n\t\twhile(!(line=sc.next()).equals(\"END_OF_TEXT\")) {\n\t\t\tfor(String s:line.split(\" \")) {\n\t\t\t\tif(s.equalsIgnoreCase(W)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\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 W=sc.next();\n\t\tint count=0;\n\t\tString line=\"\";\n\t\twhile(!(line=sc.next()).equals(\"END_OF_TEXT\")) {\n\t\t\tfor(String s:line.split(\" \")) {\n\t\t\t\tif(s.equalsIgnoreCase(W)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tString W=sc.next();\n\t\tint count=0;\n\t\tString line=\"\";\n\t\twhile(!(line=sc.next()).equals(\"END_OF_TEXT\")) {\n\t\t\tfor(String s:line.split(\" \")) {\n\t\t\t\tif(s.equalsIgnoreCase(W)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\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 W=sc.next();\n\t\tint count=0;\n\t\tString line=\"\";\n\t\twhile(!(line=sc.next()).equals(\"END_OF_TEXT\")) {\n\t\t\tfor(String s:line.split(\" \")) {\n\t\t\t\tif(s.equalsIgnoreCase(W)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\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 W=sc.next();", "W", "sc.next()", "sc.next", "sc", "int count=0;", "count", "0", "String line=\"\";", "line", "\"\"", "while(!(line=sc.next()).equals(\"END_OF_TEXT\")) {\n\t\t\tfor(String s:line.split(\" \")) {\n\t\t\t\tif(s.equalsIgnoreCase(W)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "!(line=sc.next()).equals(\"END_OF_TEXT\")", "(line=sc.next()).equals(\"END_OF_TEXT\")", "(line=sc.next()).equals", "(line=sc.next())", "line", "sc.next()", "sc.next", "sc", "\"END_OF_TEXT\"", "{\n\t\t\tfor(String s:line.split(\" \")) {\n\t\t\t\tif(s.equalsIgnoreCase(W)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "for(String s:line.split(\" \")) {\n\t\t\t\tif(s.equalsIgnoreCase(W)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}", "String s", "line.split(\" \")", "line.split", "line", "\" \"", "{\n\t\t\t\tif(s.equalsIgnoreCase(W)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif(s.equalsIgnoreCase(W)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}", "if(s.equalsIgnoreCase(W)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}", "s.equalsIgnoreCase(W)", "s.equalsIgnoreCase", "s", "W", "{\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\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tString W=sc.next();\n\t\tint count=0;\n\t\tString line=\"\";\n\t\twhile(!(line=sc.next()).equals(\"END_OF_TEXT\")) {\n\t\t\tfor(String s:line.split(\" \")) {\n\t\t\t\tif(s.equalsIgnoreCase(W)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tString W=sc.next();\n\t\tint count=0;\n\t\tString line=\"\";\n\t\twhile(!(line=sc.next()).equals(\"END_OF_TEXT\")) {\n\t\t\tfor(String s:line.split(\" \")) {\n\t\t\t\tif(s.equalsIgnoreCase(W)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\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 W=sc.next(); int count=0; String line=""; while(!(line=sc.next()).equals("END_OF_TEXT")) { for(String s:line.split(" ")) { if(s.equalsIgnoreCase(W)) { count++; } } } System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 20, 41, 13, 17, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 4, 18, 13, 3, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 59, 5 ], [ 59, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 23, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 29, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 34, 38 ], [ 23, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 39, 44 ], [ 44, 45 ], [ 45, 46 ], [ 8, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 8, 53 ], [ 53, 54 ], [ 54, 55 ], [ 6, 56 ], [ 56, 57 ], [ 0, 58 ], [ 58, 59 ], [ 58, 60 ] ]
[ "import java.util.Scanner;\npublic class Main{\n \n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String W = new String(sc.nextLine());\n String T = new String();\n int word=0;\n \n while(true){\n T = sc.next();\n if(T.equals(\"END_OF_TEXT\")){\n sc.close();\n break;\n }\n if(T.equalsIgnoreCase(W)){\n word++;\n }\n }\n \n System.out.println(word);\n \n sc.close();\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 W = new String(sc.nextLine());\n String T = new String();\n int word=0;\n \n while(true){\n T = sc.next();\n if(T.equals(\"END_OF_TEXT\")){\n sc.close();\n break;\n }\n if(T.equalsIgnoreCase(W)){\n word++;\n }\n }\n \n System.out.println(word);\n \n sc.close();\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String W = new String(sc.nextLine());\n String T = new String();\n int word=0;\n \n while(true){\n T = sc.next();\n if(T.equals(\"END_OF_TEXT\")){\n sc.close();\n break;\n }\n if(T.equalsIgnoreCase(W)){\n word++;\n }\n }\n \n System.out.println(word);\n \n sc.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String W = new String(sc.nextLine());\n String T = new String();\n int word=0;\n \n while(true){\n T = sc.next();\n if(T.equals(\"END_OF_TEXT\")){\n sc.close();\n break;\n }\n if(T.equalsIgnoreCase(W)){\n word++;\n }\n }\n \n System.out.println(word);\n \n sc.close();\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String W = new String(sc.nextLine());", "W", "new String(sc.nextLine())", "String T = new String();", "T", "new String()", "int word=0;", "word", "0", "while(true){\n T = sc.next();\n if(T.equals(\"END_OF_TEXT\")){\n sc.close();\n break;\n }\n if(T.equalsIgnoreCase(W)){\n word++;\n }\n }", "true", "{\n T = sc.next();\n if(T.equals(\"END_OF_TEXT\")){\n sc.close();\n break;\n }\n if(T.equalsIgnoreCase(W)){\n word++;\n }\n }", "T = sc.next()", "T", "sc.next()", "sc.next", "sc", "if(T.equals(\"END_OF_TEXT\")){\n sc.close();\n break;\n }", "T.equals(\"END_OF_TEXT\")", "T.equals", "T", "\"END_OF_TEXT\"", "{\n sc.close();\n break;\n }", "sc.close()", "sc.close", "sc", "break;", "if(T.equalsIgnoreCase(W)){\n word++;\n }", "T.equalsIgnoreCase(W)", "T.equalsIgnoreCase", "T", "W", "{\n word++;\n }", "word++", "word", "System.out.println(word)", "System.out.println", "System.out", "System", "System.out", "word", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main{\n \n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String W = new String(sc.nextLine());\n String T = new String();\n int word=0;\n \n while(true){\n T = sc.next();\n if(T.equals(\"END_OF_TEXT\")){\n sc.close();\n break;\n }\n if(T.equalsIgnoreCase(W)){\n word++;\n }\n }\n \n System.out.println(word);\n \n sc.close();\n }\n}", "public class Main{\n \n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String W = new String(sc.nextLine());\n String T = new String();\n int word=0;\n \n while(true){\n T = sc.next();\n if(T.equals(\"END_OF_TEXT\")){\n sc.close();\n break;\n }\n if(T.equalsIgnoreCase(W)){\n word++;\n }\n }\n \n System.out.println(word);\n \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 W = new String(sc.nextLine()); String T = new String(); int word=0; while(true){ T = sc.next(); if(T.equals("END_OF_TEXT")){ sc.close(); break; } if(T.equalsIgnoreCase(W)){ word++; } } System.out.println(word); sc.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 4, 18, 13, 17, 14, 4, 18, 18, 13, 17, 17, 30, 3, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 18, 13, 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 ], [ 77, 8 ], [ 77, 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 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 28, 33 ], [ 25, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 34, 41 ], [ 41, 42 ], [ 25, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 50, 52 ], [ 43, 53 ], [ 53, 54 ], [ 54, 55 ], [ 43, 56 ], [ 57, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 58, 65 ], [ 65, 66 ], [ 65, 67 ], [ 11, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 9, 74 ], [ 74, 75 ], [ 0, 76 ], [ 76, 77 ], [ 76, 78 ] ]
[ "import java.io.*;\nimport java.util.*;\n\npublic class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString x = br.readLine();\n\t\tint cnt = 0;\n\t\t\twhile(true){\n\t\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\t\t\tif(str[0].equals(\"END_OF_TEXT\")){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\t\n\t\t\t\t\tfor(int i = 0;i < str.length; i++){\n\t\t\t\t\tif(str[i].equalsIgnoreCase(x)) cnt += 1;\t\n\t\t\t\t}\n\t\t\t}\n\n\t\t System.out.println(cnt);\n\t}\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "public class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString x = br.readLine();\n\t\tint cnt = 0;\n\t\t\twhile(true){\n\t\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\t\t\tif(str[0].equals(\"END_OF_TEXT\")){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\t\n\t\t\t\t\tfor(int i = 0;i < str.length; i++){\n\t\t\t\t\tif(str[i].equalsIgnoreCase(x)) cnt += 1;\t\n\t\t\t\t}\n\t\t\t}\n\n\t\t System.out.println(cnt);\n\t}\n}", "Main", "public static void main(String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString x = br.readLine();\n\t\tint cnt = 0;\n\t\t\twhile(true){\n\t\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\t\t\tif(str[0].equals(\"END_OF_TEXT\")){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\t\n\t\t\t\t\tfor(int i = 0;i < str.length; i++){\n\t\t\t\t\tif(str[i].equalsIgnoreCase(x)) cnt += 1;\t\n\t\t\t\t}\n\t\t\t}\n\n\t\t System.out.println(cnt);\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString x = br.readLine();\n\t\tint cnt = 0;\n\t\t\twhile(true){\n\t\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\t\t\tif(str[0].equals(\"END_OF_TEXT\")){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\t\n\t\t\t\t\tfor(int i = 0;i < str.length; i++){\n\t\t\t\t\tif(str[i].equalsIgnoreCase(x)) cnt += 1;\t\n\t\t\t\t}\n\t\t\t}\n\n\t\t System.out.println(cnt);\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String x = br.readLine();", "x", "br.readLine()", "br.readLine", "br", "int cnt = 0;", "cnt", "0", "while(true){\n\t\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\t\t\tif(str[0].equals(\"END_OF_TEXT\")){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\t\n\t\t\t\t\tfor(int i = 0;i < str.length; i++){\n\t\t\t\t\tif(str[i].equalsIgnoreCase(x)) cnt += 1;\t\n\t\t\t\t}\n\t\t\t}", "true", "{\n\t\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\t\t\tif(str[0].equals(\"END_OF_TEXT\")){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\t\n\t\t\t\t\tfor(int i = 0;i < str.length; i++){\n\t\t\t\t\tif(str[i].equalsIgnoreCase(x)) cnt += 1;\t\n\t\t\t\t}\n\t\t\t}", "String[] str = br.readLine().split(\" \");", "str", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "if(str[0].equals(\"END_OF_TEXT\")){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}", "str[0].equals(\"END_OF_TEXT\")", "str[0].equals", "str[0]", "str", "0", "\"END_OF_TEXT\"", "{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}", "break;", "for(int i = 0;i < str.length; i++){\n\t\t\t\t\tif(str[i].equalsIgnoreCase(x)) cnt += 1;\t\n\t\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < str.length", "i", "str.length", "str", "str.length", "i++", "i++", "i", "{\n\t\t\t\t\tif(str[i].equalsIgnoreCase(x)) cnt += 1;\t\n\t\t\t\t}", "{\n\t\t\t\t\tif(str[i].equalsIgnoreCase(x)) cnt += 1;\t\n\t\t\t\t}", "if(str[i].equalsIgnoreCase(x)) cnt += 1;", "str[i].equalsIgnoreCase(x)", "str[i].equalsIgnoreCase", "str[i]", "str", "i", "x", "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) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString x = br.readLine();\n\t\tint cnt = 0;\n\t\t\twhile(true){\n\t\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\t\t\tif(str[0].equals(\"END_OF_TEXT\")){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\t\n\t\t\t\t\tfor(int i = 0;i < str.length; i++){\n\t\t\t\t\tif(str[i].equalsIgnoreCase(x)) cnt += 1;\t\n\t\t\t\t}\n\t\t\t}\n\n\t\t System.out.println(cnt);\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString x = br.readLine();\n\t\tint cnt = 0;\n\t\t\twhile(true){\n\t\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\t\t\tif(str[0].equals(\"END_OF_TEXT\")){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\t\n\t\t\t\t\tfor(int i = 0;i < str.length; i++){\n\t\t\t\t\tif(str[i].equalsIgnoreCase(x)) cnt += 1;\t\n\t\t\t\t}\n\t\t\t}\n\n\t\t System.out.println(cnt);\n\t}\n}", "Main" ]
import java.io.*; import java.util.*; public class Main{ public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String x = br.readLine(); int cnt = 0; while(true){ String[] str = br.readLine().split(" "); if(str[0].equals("END_OF_TEXT")){ break; } for(int i = 0;i < str.length; i++){ if(str[i].equalsIgnoreCase(x)) cnt += 1; } } System.out.println(cnt); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 41, 13, 20, 0, 13, 4, 18, 13, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 14, 2, 4, 18, 13, 4, 18, 13, 30, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 69, 8 ], [ 69, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 11, 17 ], [ 17, 18 ], [ 17, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 11, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 27, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 33, 38 ], [ 38, 39 ], [ 27, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 41, 45 ], [ 45, 46 ], [ 46, 47 ], [ 40, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 49, 54 ], [ 54, 55 ], [ 55, 56 ], [ 11, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 11, 63 ], [ 63, 64 ], [ 64, 65 ], [ 9, 66 ], [ 66, 67 ], [ 0, 68 ], [ 68, 69 ], [ 68, 70 ] ]
[ "import java.io.IOException;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tint count = 0;\n\t\tString str;\n\t\tScanner sc = new Scanner(System.in);\n\t\tstr = sc.next(); // ??????W\n\t\twhile (true) {\n\t\t\tString tmp = sc.next();\n\t\t\tif (tmp.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (str.length() == tmp.length()) {\n\t\t\t\tif (str.equalsIgnoreCase(tmp)){\n\t\t\t\t\t++count;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\tsc.close();\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\tint count = 0;\n\t\tString str;\n\t\tScanner sc = new Scanner(System.in);\n\t\tstr = sc.next(); // ??????W\n\t\twhile (true) {\n\t\t\tString tmp = sc.next();\n\t\t\tif (tmp.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (str.length() == tmp.length()) {\n\t\t\t\tif (str.equalsIgnoreCase(tmp)){\n\t\t\t\t\t++count;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\tsc.close();\n\t}\n\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tint count = 0;\n\t\tString str;\n\t\tScanner sc = new Scanner(System.in);\n\t\tstr = sc.next(); // ??????W\n\t\twhile (true) {\n\t\t\tString tmp = sc.next();\n\t\t\tif (tmp.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (str.length() == tmp.length()) {\n\t\t\t\tif (str.equalsIgnoreCase(tmp)){\n\t\t\t\t\t++count;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\tsc.close();\n\t}", "main", "{\n\t\tint count = 0;\n\t\tString str;\n\t\tScanner sc = new Scanner(System.in);\n\t\tstr = sc.next(); // ??????W\n\t\twhile (true) {\n\t\t\tString tmp = sc.next();\n\t\t\tif (tmp.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (str.length() == tmp.length()) {\n\t\t\t\tif (str.equalsIgnoreCase(tmp)){\n\t\t\t\t\t++count;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\tsc.close();\n\t}", "int count = 0;", "count", "0", "String str;", "str", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "str = sc.next()", "str", "sc.next()", "sc.next", "sc", "while (true) {\n\t\t\tString tmp = sc.next();\n\t\t\tif (tmp.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (str.length() == tmp.length()) {\n\t\t\t\tif (str.equalsIgnoreCase(tmp)){\n\t\t\t\t\t++count;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tString tmp = sc.next();\n\t\t\tif (tmp.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (str.length() == tmp.length()) {\n\t\t\t\tif (str.equalsIgnoreCase(tmp)){\n\t\t\t\t\t++count;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "String tmp = sc.next();", "tmp", "sc.next()", "sc.next", "sc", "if (tmp.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}", "tmp.equals(\"END_OF_TEXT\")", "tmp.equals", "tmp", "\"END_OF_TEXT\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "if (str.length() == tmp.length()) {\n\t\t\t\tif (str.equalsIgnoreCase(tmp)){\n\t\t\t\t\t++count;\n\t\t\t\t}\n\t\t\t}", "str.length() == tmp.length()", "str.length()", "str.length", "str", "tmp.length()", "tmp.length", "tmp", "{\n\t\t\t\tif (str.equalsIgnoreCase(tmp)){\n\t\t\t\t\t++count;\n\t\t\t\t}\n\t\t\t}", "if (str.equalsIgnoreCase(tmp)){\n\t\t\t\t\t++count;\n\t\t\t\t}", "str.equalsIgnoreCase(tmp)", "str.equalsIgnoreCase", "str", "tmp", "{\n\t\t\t\t\t++count;\n\t\t\t\t}", "++count", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tint count = 0;\n\t\tString str;\n\t\tScanner sc = new Scanner(System.in);\n\t\tstr = sc.next(); // ??????W\n\t\twhile (true) {\n\t\t\tString tmp = sc.next();\n\t\t\tif (tmp.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (str.length() == tmp.length()) {\n\t\t\t\tif (str.equalsIgnoreCase(tmp)){\n\t\t\t\t\t++count;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\tsc.close();\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tint count = 0;\n\t\tString str;\n\t\tScanner sc = new Scanner(System.in);\n\t\tstr = sc.next(); // ??????W\n\t\twhile (true) {\n\t\t\tString tmp = sc.next();\n\t\t\tif (tmp.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (str.length() == tmp.length()) {\n\t\t\t\tif (str.equalsIgnoreCase(tmp)){\n\t\t\t\t\t++count;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\tsc.close();\n\t}\n\n}", "Main" ]
import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { int count = 0; String str; Scanner sc = new Scanner(System.in); str = sc.next(); // ??????W while (true) { String tmp = sc.next(); if (tmp.equals("END_OF_TEXT")) { break; } if (str.length() == tmp.length()) { if (str.equalsIgnoreCase(tmp)){ ++count; } } } System.out.println(count); sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 41, 13, 17, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 0, 13, 4, 18, 13, 14, 4, 18, 13, 13, 40, 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 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 24, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 30, 35 ], [ 24, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 24, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 41, 46 ], [ 46, 47 ], [ 8, 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 public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String W = sc.next();\n String T;\n \n int cnt = 0;\n \n while(true) {\n \tT = sc.next();\n \tif(T.equals(\"END_OF_TEXT\")) break;\n \t\n \tT = T.toLowerCase();\n \tif(W.equals(T)) cnt++;\n \t\n }\n \n System.out.println(cnt);\n \n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String W = sc.next();\n String T;\n \n int cnt = 0;\n \n while(true) {\n \tT = sc.next();\n \tif(T.equals(\"END_OF_TEXT\")) break;\n \t\n \tT = T.toLowerCase();\n \tif(W.equals(T)) cnt++;\n \t\n }\n \n System.out.println(cnt);\n \n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String W = sc.next();\n String T;\n \n int cnt = 0;\n \n while(true) {\n \tT = sc.next();\n \tif(T.equals(\"END_OF_TEXT\")) break;\n \t\n \tT = T.toLowerCase();\n \tif(W.equals(T)) cnt++;\n \t\n }\n \n System.out.println(cnt);\n \n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String W = sc.next();\n String T;\n \n int cnt = 0;\n \n while(true) {\n \tT = sc.next();\n \tif(T.equals(\"END_OF_TEXT\")) break;\n \t\n \tT = T.toLowerCase();\n \tif(W.equals(T)) cnt++;\n \t\n }\n \n System.out.println(cnt);\n \n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String W = sc.next();", "W", "sc.next()", "sc.next", "sc", "String T;", "T", "int cnt = 0;", "cnt", "0", "while(true) {\n \tT = sc.next();\n \tif(T.equals(\"END_OF_TEXT\")) break;\n \t\n \tT = T.toLowerCase();\n \tif(W.equals(T)) cnt++;\n \t\n }", "true", "{\n \tT = sc.next();\n \tif(T.equals(\"END_OF_TEXT\")) break;\n \t\n \tT = T.toLowerCase();\n \tif(W.equals(T)) cnt++;\n \t\n }", "T = sc.next()", "T", "sc.next()", "sc.next", "sc", "if(T.equals(\"END_OF_TEXT\")) break;", "T.equals(\"END_OF_TEXT\")", "T.equals", "T", "\"END_OF_TEXT\"", "break;", "T = T.toLowerCase()", "T", "T.toLowerCase()", "T.toLowerCase", "T", "if(W.equals(T)) cnt++;", "W.equals(T)", "W.equals", "W", "T", "cnt++", "cnt", "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 String W = sc.next();\n String T;\n \n int cnt = 0;\n \n while(true) {\n \tT = sc.next();\n \tif(T.equals(\"END_OF_TEXT\")) break;\n \t\n \tT = T.toLowerCase();\n \tif(W.equals(T)) cnt++;\n \t\n }\n \n System.out.println(cnt);\n \n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String W = sc.next();\n String T;\n \n int cnt = 0;\n \n while(true) {\n \tT = sc.next();\n \tif(T.equals(\"END_OF_TEXT\")) break;\n \t\n \tT = T.toLowerCase();\n \tif(W.equals(T)) cnt++;\n \t\n }\n \n System.out.println(cnt);\n \n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String W = sc.next(); String T; int cnt = 0; while(true) { T = sc.next(); if(T.equals("END_OF_TEXT")) break; T = T.toLowerCase(); if(W.equals(T)) cnt++; } System.out.println(cnt); } }
[ 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, 42, 40, 4, 18, 13, 17, 30, 14, 2, 4, 18, 13, 4, 18, 13, 30, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 4, 18, 4, 18, 13, 4, 18, 13, 13, 4, 18, 13, 4, 18, 13, 13, 30, 14, 2, 13, 2, 4, 18, 13, 17, 30, 40, 13, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 105, 5 ], [ 105, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 27, 30 ], [ 25, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 33, 37 ], [ 37, 38 ], [ 38, 39 ], [ 32, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 41, 51 ], [ 51, 52 ], [ 52, 53 ], [ 41, 54 ], [ 55, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 57, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 56, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 77, 81 ], [ 74, 82 ], [ 82, 83 ], [ 83, 84 ], [ 56, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 89, 90 ], [ 31, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 94, 95 ], [ 8, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 6, 102 ], [ 102, 103 ], [ 0, 104 ], [ 104, 105 ], [ 104, 106 ] ]
[ "import java.util.Scanner;\npublic class Main {\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String w = scan.nextLine();\n String t = scan.next();\n int sum = 0;\n while(!t.equals(\"END_OF_TEXT\")) {\n if (t.length() == w.length()) {\n for (int x = 0; x < t.length(); x++){\n if (Character.toString(t.charAt(x)).equalsIgnoreCase(Character.toString(w.charAt(x)))) {\n if (x == t.length() - 1) {\n sum++;\n }\n }\n else {\n x = t.length();\n }\n }\n }\n t = scan.next();\n }\n System.out.println(sum);\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 w = scan.nextLine();\n String t = scan.next();\n int sum = 0;\n while(!t.equals(\"END_OF_TEXT\")) {\n if (t.length() == w.length()) {\n for (int x = 0; x < t.length(); x++){\n if (Character.toString(t.charAt(x)).equalsIgnoreCase(Character.toString(w.charAt(x)))) {\n if (x == t.length() - 1) {\n sum++;\n }\n }\n else {\n x = t.length();\n }\n }\n }\n t = scan.next();\n }\n System.out.println(sum);\n }\n}", "Main", "public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String w = scan.nextLine();\n String t = scan.next();\n int sum = 0;\n while(!t.equals(\"END_OF_TEXT\")) {\n if (t.length() == w.length()) {\n for (int x = 0; x < t.length(); x++){\n if (Character.toString(t.charAt(x)).equalsIgnoreCase(Character.toString(w.charAt(x)))) {\n if (x == t.length() - 1) {\n sum++;\n }\n }\n else {\n x = t.length();\n }\n }\n }\n t = scan.next();\n }\n System.out.println(sum);\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n String w = scan.nextLine();\n String t = scan.next();\n int sum = 0;\n while(!t.equals(\"END_OF_TEXT\")) {\n if (t.length() == w.length()) {\n for (int x = 0; x < t.length(); x++){\n if (Character.toString(t.charAt(x)).equalsIgnoreCase(Character.toString(w.charAt(x)))) {\n if (x == t.length() - 1) {\n sum++;\n }\n }\n else {\n x = t.length();\n }\n }\n }\n t = scan.next();\n }\n System.out.println(sum);\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String w = scan.nextLine();", "w", "scan.nextLine()", "scan.nextLine", "scan", "String t = scan.next();", "t", "scan.next()", "scan.next", "scan", "int sum = 0;", "sum", "0", "while(!t.equals(\"END_OF_TEXT\")) {\n if (t.length() == w.length()) {\n for (int x = 0; x < t.length(); x++){\n if (Character.toString(t.charAt(x)).equalsIgnoreCase(Character.toString(w.charAt(x)))) {\n if (x == t.length() - 1) {\n sum++;\n }\n }\n else {\n x = t.length();\n }\n }\n }\n t = scan.next();\n }", "!t.equals(\"END_OF_TEXT\")", "t.equals(\"END_OF_TEXT\")", "t.equals", "t", "\"END_OF_TEXT\"", "{\n if (t.length() == w.length()) {\n for (int x = 0; x < t.length(); x++){\n if (Character.toString(t.charAt(x)).equalsIgnoreCase(Character.toString(w.charAt(x)))) {\n if (x == t.length() - 1) {\n sum++;\n }\n }\n else {\n x = t.length();\n }\n }\n }\n t = scan.next();\n }", "if (t.length() == w.length()) {\n for (int x = 0; x < t.length(); x++){\n if (Character.toString(t.charAt(x)).equalsIgnoreCase(Character.toString(w.charAt(x)))) {\n if (x == t.length() - 1) {\n sum++;\n }\n }\n else {\n x = t.length();\n }\n }\n }", "t.length() == w.length()", "t.length()", "t.length", "t", "w.length()", "w.length", "w", "{\n for (int x = 0; x < t.length(); x++){\n if (Character.toString(t.charAt(x)).equalsIgnoreCase(Character.toString(w.charAt(x)))) {\n if (x == t.length() - 1) {\n sum++;\n }\n }\n else {\n x = t.length();\n }\n }\n }", "for (int x = 0; x < t.length(); x++){\n if (Character.toString(t.charAt(x)).equalsIgnoreCase(Character.toString(w.charAt(x)))) {\n if (x == t.length() - 1) {\n sum++;\n }\n }\n else {\n x = t.length();\n }\n }", "int x = 0;", "int x = 0;", "x", "0", "x < t.length()", "x", "t.length()", "t.length", "t", "x++", "x++", "x", "{\n if (Character.toString(t.charAt(x)).equalsIgnoreCase(Character.toString(w.charAt(x)))) {\n if (x == t.length() - 1) {\n sum++;\n }\n }\n else {\n x = t.length();\n }\n }", "{\n if (Character.toString(t.charAt(x)).equalsIgnoreCase(Character.toString(w.charAt(x)))) {\n if (x == t.length() - 1) {\n sum++;\n }\n }\n else {\n x = t.length();\n }\n }", "if (Character.toString(t.charAt(x)).equalsIgnoreCase(Character.toString(w.charAt(x)))) {\n if (x == t.length() - 1) {\n sum++;\n }\n }\n else {\n x = t.length();\n }", "Character.toString(t.charAt(x)).equalsIgnoreCase(Character.toString(w.charAt(x)))", "Character.toString(t.charAt(x)).equalsIgnoreCase", "Character.toString(t.charAt(x))", "Character.toString", "Character", "t.charAt(x)", "t.charAt", "t", "x", "Character.toString(w.charAt(x))", "Character.toString", "Character", "w.charAt(x)", "w.charAt", "w", "x", "{\n if (x == t.length() - 1) {\n sum++;\n }\n }", "if (x == t.length() - 1) {\n sum++;\n }", "x == t.length() - 1", "x", "t.length() - 1", "t.length()", "t.length", "t", "1", "{\n sum++;\n }", "sum++", "sum", "{\n x = t.length();\n }", "x = t.length()", "x", "t.length()", "t.length", "t", "t = scan.next()", "t", "scan.next()", "scan.next", "scan", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String[] args", "args", "public class Main {\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String w = scan.nextLine();\n String t = scan.next();\n int sum = 0;\n while(!t.equals(\"END_OF_TEXT\")) {\n if (t.length() == w.length()) {\n for (int x = 0; x < t.length(); x++){\n if (Character.toString(t.charAt(x)).equalsIgnoreCase(Character.toString(w.charAt(x)))) {\n if (x == t.length() - 1) {\n sum++;\n }\n }\n else {\n x = t.length();\n }\n }\n }\n t = scan.next();\n }\n System.out.println(sum);\n }\n}", "public class Main {\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String w = scan.nextLine();\n String t = scan.next();\n int sum = 0;\n while(!t.equals(\"END_OF_TEXT\")) {\n if (t.length() == w.length()) {\n for (int x = 0; x < t.length(); x++){\n if (Character.toString(t.charAt(x)).equalsIgnoreCase(Character.toString(w.charAt(x)))) {\n if (x == t.length() - 1) {\n sum++;\n }\n }\n else {\n x = t.length();\n }\n }\n }\n t = scan.next();\n }\n System.out.println(sum);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner scan = new Scanner(System.in); String w = scan.nextLine(); String t = scan.next(); int sum = 0; while(!t.equals("END_OF_TEXT")) { if (t.length() == w.length()) { for (int x = 0; x < t.length(); x++){ if (Character.toString(t.charAt(x)).equalsIgnoreCase(Character.toString(w.charAt(x)))) { if (x == t.length() - 1) { sum++; } } else { x = t.length(); } } } t = scan.next(); } System.out.println(sum); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 17, 41, 13, 17, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 41, 13, 17, 41, 13, 42, 40, 4, 18, 0, 13, 4, 18, 13, 17, 30, 41, 13, 4, 18, 4, 18, 13, 14, 2, 18, 13, 13, 18, 13, 13, 9, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 18, 13, 13, 30, 0, 13, 17, 3, 14, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 108, 5 ], [ 108, 6 ], [ 6, 7 ], [ 6, 8 ], [ 108, 9 ], [ 9, 10 ], [ 9, 11 ], [ 108, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 14, 30 ], [ 30, 31 ], [ 14, 32 ], [ 32, 33 ], [ 32, 34 ], [ 14, 35 ], [ 35, 36 ], [ 14, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 39, 46 ], [ 37, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 47, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 60, 62 ], [ 55, 63 ], [ 47, 64 ], [ 64, 65 ], [ 64, 66 ], [ 47, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 67, 77 ], [ 77, 78 ], [ 78, 79 ], [ 67, 80 ], [ 81, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 87, 88 ], [ 87, 89 ], [ 82, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 90, 94 ], [ 47, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 14, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 99, 104 ], [ 12, 105 ], [ 105, 106 ], [ 0, 107 ], [ 107, 108 ], [ 107, 109 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tString P = scanner.next().toLowerCase();\n\t\tchar p[] = P.toCharArray();\n\n\t\tString tmp;\n\t\tint ans = 0;\n\t\tboolean FLG;\n\n\t\twhile(!(tmp = scanner.next()).equals(\"END_OF_TEXT\")){\n\n\t\t\tchar line[] = tmp.toLowerCase().toCharArray();\n\n\t\t\tif(line.length != p.length)continue;\n\n\t\t\tFLG = true;\n\t\t\tfor(int i = 0; i < P.length(); i++){\n\t\t\t\tif(p[i] != line[i]){\n\t\t\t\t\tFLG = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(FLG)ans++;\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tString P = scanner.next().toLowerCase();\n\t\tchar p[] = P.toCharArray();\n\n\t\tString tmp;\n\t\tint ans = 0;\n\t\tboolean FLG;\n\n\t\twhile(!(tmp = scanner.next()).equals(\"END_OF_TEXT\")){\n\n\t\t\tchar line[] = tmp.toLowerCase().toCharArray();\n\n\t\t\tif(line.length != p.length)continue;\n\n\t\t\tFLG = true;\n\t\t\tfor(int i = 0; i < P.length(); i++){\n\t\t\t\tif(p[i] != line[i]){\n\t\t\t\t\tFLG = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(FLG)ans++;\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}\n}", "Main", "public static final int BIG_NUM = 2000000000;", "BIG_NUM", "2000000000", "public static final int MOD = 1000000007;", "MOD", "1000000007", "public static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tString P = scanner.next().toLowerCase();\n\t\tchar p[] = P.toCharArray();\n\n\t\tString tmp;\n\t\tint ans = 0;\n\t\tboolean FLG;\n\n\t\twhile(!(tmp = scanner.next()).equals(\"END_OF_TEXT\")){\n\n\t\t\tchar line[] = tmp.toLowerCase().toCharArray();\n\n\t\t\tif(line.length != p.length)continue;\n\n\t\t\tFLG = true;\n\t\t\tfor(int i = 0; i < P.length(); i++){\n\t\t\t\tif(p[i] != line[i]){\n\t\t\t\t\tFLG = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(FLG)ans++;\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}", "main", "{\n\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tString P = scanner.next().toLowerCase();\n\t\tchar p[] = P.toCharArray();\n\n\t\tString tmp;\n\t\tint ans = 0;\n\t\tboolean FLG;\n\n\t\twhile(!(tmp = scanner.next()).equals(\"END_OF_TEXT\")){\n\n\t\t\tchar line[] = tmp.toLowerCase().toCharArray();\n\n\t\t\tif(line.length != p.length)continue;\n\n\t\t\tFLG = true;\n\t\t\tfor(int i = 0; i < P.length(); i++){\n\t\t\t\tif(p[i] != line[i]){\n\t\t\t\t\tFLG = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(FLG)ans++;\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "String P = scanner.next().toLowerCase();", "P", "scanner.next().toLowerCase()", "scanner.next().toLowerCase", "scanner.next()", "scanner.next", "scanner", "char p[] = P.toCharArray();", "p", "P.toCharArray()", "P.toCharArray", "P", "String tmp;", "tmp", "int ans = 0;", "ans", "0", "boolean FLG;", "FLG", "while(!(tmp = scanner.next()).equals(\"END_OF_TEXT\")){\n\n\t\t\tchar line[] = tmp.toLowerCase().toCharArray();\n\n\t\t\tif(line.length != p.length)continue;\n\n\t\t\tFLG = true;\n\t\t\tfor(int i = 0; i < P.length(); i++){\n\t\t\t\tif(p[i] != line[i]){\n\t\t\t\t\tFLG = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(FLG)ans++;\n\t\t}", "!(tmp = scanner.next()).equals(\"END_OF_TEXT\")", "(tmp = scanner.next()).equals(\"END_OF_TEXT\")", "(tmp = scanner.next()).equals", "(tmp = scanner.next())", "tmp", "scanner.next()", "scanner.next", "scanner", "\"END_OF_TEXT\"", "{\n\n\t\t\tchar line[] = tmp.toLowerCase().toCharArray();\n\n\t\t\tif(line.length != p.length)continue;\n\n\t\t\tFLG = true;\n\t\t\tfor(int i = 0; i < P.length(); i++){\n\t\t\t\tif(p[i] != line[i]){\n\t\t\t\t\tFLG = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(FLG)ans++;\n\t\t}", "char line[] = tmp.toLowerCase().toCharArray();", "line", "tmp.toLowerCase().toCharArray()", "tmp.toLowerCase().toCharArray", "tmp.toLowerCase()", "tmp.toLowerCase", "tmp", "if(line.length != p.length)continue;", "line.length != p.length", "line.length", "line", "line.length", "p.length", "p", "p.length", "continue;", "FLG = true", "FLG", "true", "for(int i = 0; i < P.length(); i++){\n\t\t\t\tif(p[i] != line[i]){\n\t\t\t\t\tFLG = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < P.length()", "i", "P.length()", "P.length", "P", "i++", "i++", "i", "{\n\t\t\t\tif(p[i] != line[i]){\n\t\t\t\t\tFLG = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif(p[i] != line[i]){\n\t\t\t\t\tFLG = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "if(p[i] != line[i]){\n\t\t\t\t\tFLG = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}", "p[i] != line[i]", "p[i]", "p", "i", "line[i]", "line", "i", "{\n\t\t\t\t\tFLG = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}", "FLG = false", "FLG", "false", "break;", "if(FLG)ans++;", "FLG", "ans++", "ans", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tString P = scanner.next().toLowerCase();\n\t\tchar p[] = P.toCharArray();\n\n\t\tString tmp;\n\t\tint ans = 0;\n\t\tboolean FLG;\n\n\t\twhile(!(tmp = scanner.next()).equals(\"END_OF_TEXT\")){\n\n\t\t\tchar line[] = tmp.toLowerCase().toCharArray();\n\n\t\t\tif(line.length != p.length)continue;\n\n\t\t\tFLG = true;\n\t\t\tfor(int i = 0; i < P.length(); i++){\n\t\t\t\tif(p[i] != line[i]){\n\t\t\t\t\tFLG = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(FLG)ans++;\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}\n}", "public class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tString P = scanner.next().toLowerCase();\n\t\tchar p[] = P.toCharArray();\n\n\t\tString tmp;\n\t\tint ans = 0;\n\t\tboolean FLG;\n\n\t\twhile(!(tmp = scanner.next()).equals(\"END_OF_TEXT\")){\n\n\t\t\tchar line[] = tmp.toLowerCase().toCharArray();\n\n\t\t\tif(line.length != p.length)continue;\n\n\t\t\tFLG = true;\n\t\t\tfor(int i = 0; i < P.length(); i++){\n\t\t\t\tif(p[i] != line[i]){\n\t\t\t\t\tFLG = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(FLG)ans++;\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static final int BIG_NUM = 2000000000; public static final int MOD = 1000000007; public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String P = scanner.next().toLowerCase(); char p[] = P.toCharArray(); String tmp; int ans = 0; boolean FLG; while(!(tmp = scanner.next()).equals("END_OF_TEXT")){ char line[] = tmp.toLowerCase().toCharArray(); if(line.length != p.length)continue; FLG = true; for(int i = 0; i < P.length(); i++){ if(p[i] != line[i]){ FLG = false; break; } } if(FLG)ans++; } System.out.println(ans); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 41, 13, 17, 42, 2, 13, 13, 30, 14, 4, 18, 13, 13, 30, 0, 13, 2, 13, 17, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 0, 13, 4, 18, 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 ], [ 80, 8 ], [ 80, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 11, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 11, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 11, 35 ], [ 35, 36 ], [ 35, 37 ], [ 11, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 43, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 51, 53 ], [ 42, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 42, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 59, 64 ], [ 64, 65 ], [ 42, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 11, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 9, 77 ], [ 77, 78 ], [ 0, 79 ], [ 79, 80 ], [ 79, 81 ] ]
[ "import java.io.IOException;\nimport java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tString a = sc.next();\n\t\t\ta=a.toLowerCase();\n\t\t\tString b = sc.next();\n\t\t\tb=b.toLowerCase();\n\t\t\tint c=0;\n\t\t\twhile(a==a){\n\t\t\t\tif(a.equals(b)){\n\t\t\t\t\tc=c+1;\n\t\t\t\t}\n\t\t\t\tb=sc.next();\n\t\t\t\tif(b.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tb=b.toLowerCase();\n\t\t\t}\n\t\t\tSystem.out.println(c);\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 Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tString a = sc.next();\n\t\t\ta=a.toLowerCase();\n\t\t\tString b = sc.next();\n\t\t\tb=b.toLowerCase();\n\t\t\tint c=0;\n\t\t\twhile(a==a){\n\t\t\t\tif(a.equals(b)){\n\t\t\t\t\tc=c+1;\n\t\t\t\t}\n\t\t\t\tb=sc.next();\n\t\t\t\tif(b.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tb=b.toLowerCase();\n\t\t\t}\n\t\t\tSystem.out.println(c);\n\t}\n\n}", "Main", "public static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tString a = sc.next();\n\t\t\ta=a.toLowerCase();\n\t\t\tString b = sc.next();\n\t\t\tb=b.toLowerCase();\n\t\t\tint c=0;\n\t\t\twhile(a==a){\n\t\t\t\tif(a.equals(b)){\n\t\t\t\t\tc=c+1;\n\t\t\t\t}\n\t\t\t\tb=sc.next();\n\t\t\t\tif(b.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tb=b.toLowerCase();\n\t\t\t}\n\t\t\tSystem.out.println(c);\n\t}", "main", "{\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tString a = sc.next();\n\t\t\ta=a.toLowerCase();\n\t\t\tString b = sc.next();\n\t\t\tb=b.toLowerCase();\n\t\t\tint c=0;\n\t\t\twhile(a==a){\n\t\t\t\tif(a.equals(b)){\n\t\t\t\t\tc=c+1;\n\t\t\t\t}\n\t\t\t\tb=sc.next();\n\t\t\t\tif(b.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tb=b.toLowerCase();\n\t\t\t}\n\t\t\tSystem.out.println(c);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String a = sc.next();", "a", "sc.next()", "sc.next", "sc", "a=a.toLowerCase()", "a", "a.toLowerCase()", "a.toLowerCase", "a", "String b = sc.next();", "b", "sc.next()", "sc.next", "sc", "b=b.toLowerCase()", "b", "b.toLowerCase()", "b.toLowerCase", "b", "int c=0;", "c", "0", "while(a==a){\n\t\t\t\tif(a.equals(b)){\n\t\t\t\t\tc=c+1;\n\t\t\t\t}\n\t\t\t\tb=sc.next();\n\t\t\t\tif(b.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tb=b.toLowerCase();\n\t\t\t}", "a==a", "a", "a", "{\n\t\t\t\tif(a.equals(b)){\n\t\t\t\t\tc=c+1;\n\t\t\t\t}\n\t\t\t\tb=sc.next();\n\t\t\t\tif(b.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tb=b.toLowerCase();\n\t\t\t}", "if(a.equals(b)){\n\t\t\t\t\tc=c+1;\n\t\t\t\t}", "a.equals(b)", "a.equals", "a", "b", "{\n\t\t\t\t\tc=c+1;\n\t\t\t\t}", "c=c+1", "c", "c+1", "c", "1", "b=sc.next()", "b", "sc.next()", "sc.next", "sc", "if(b.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}", "b.equals(\"END_OF_TEXT\")", "b.equals", "b", "\"END_OF_TEXT\"", "{\n\t\t\t\t\tbreak;\n\t\t\t\t}", "break;", "b=b.toLowerCase()", "b", "b.toLowerCase()", "b.toLowerCase", "b", "System.out.println(c)", "System.out.println", "System.out", "System", "System.out", "c", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tString a = sc.next();\n\t\t\ta=a.toLowerCase();\n\t\t\tString b = sc.next();\n\t\t\tb=b.toLowerCase();\n\t\t\tint c=0;\n\t\t\twhile(a==a){\n\t\t\t\tif(a.equals(b)){\n\t\t\t\t\tc=c+1;\n\t\t\t\t}\n\t\t\t\tb=sc.next();\n\t\t\t\tif(b.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tb=b.toLowerCase();\n\t\t\t}\n\t\t\tSystem.out.println(c);\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tString a = sc.next();\n\t\t\ta=a.toLowerCase();\n\t\t\tString b = sc.next();\n\t\t\tb=b.toLowerCase();\n\t\t\tint c=0;\n\t\t\twhile(a==a){\n\t\t\t\tif(a.equals(b)){\n\t\t\t\t\tc=c+1;\n\t\t\t\t}\n\t\t\t\tb=sc.next();\n\t\t\t\tif(b.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tb=b.toLowerCase();\n\t\t\t}\n\t\t\tSystem.out.println(c);\n\t}\n\n}", "Main" ]
import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { // TODO ????????????????????????????????????????????? Scanner sc = new Scanner(System.in); String a = sc.next(); a=a.toLowerCase(); String b = sc.next(); b=b.toLowerCase(); int c=0; while(a==a){ if(a.equals(b)){ c=c+1; } b=sc.next(); if(b.equals("END_OF_TEXT")){ break; } b=b.toLowerCase(); } System.out.println(c); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 41, 13, 41, 13, 17, 0, 13, 4, 18, 13, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 13, 30, 3, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 59, 5 ], [ 59, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 29, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 35, 40 ], [ 40, 41 ], [ 29, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 42, 47 ], [ 47, 48 ], [ 48, 49 ], [ 8, 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\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\tfinal String EOT = \"END_OF_TEXT\";\n\t\tString w, t;\n\t\tint count = 0;\n\t\t\n\t\tw = sc.next();\n\t\twhile(true){\n\t\t\tt = sc.next();\n\t\t\t\n\t\t\tif(t.equals(EOT)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tif(t.equalsIgnoreCase(w)){\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(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);\n\t\tfinal String EOT = \"END_OF_TEXT\";\n\t\tString w, t;\n\t\tint count = 0;\n\t\t\n\t\tw = sc.next();\n\t\twhile(true){\n\t\t\tt = sc.next();\n\t\t\t\n\t\t\tif(t.equals(EOT)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tif(t.equalsIgnoreCase(w)){\n\t\t\t\tcount ++;\n\t\t\t}\n\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\tfinal String EOT = \"END_OF_TEXT\";\n\t\tString w, t;\n\t\tint count = 0;\n\t\t\n\t\tw = sc.next();\n\t\twhile(true){\n\t\t\tt = sc.next();\n\t\t\t\n\t\t\tif(t.equals(EOT)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tif(t.equalsIgnoreCase(w)){\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tfinal String EOT = \"END_OF_TEXT\";\n\t\tString w, t;\n\t\tint count = 0;\n\t\t\n\t\tw = sc.next();\n\t\twhile(true){\n\t\t\tt = sc.next();\n\t\t\t\n\t\t\tif(t.equals(EOT)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tif(t.equalsIgnoreCase(w)){\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "final String EOT = \"END_OF_TEXT\";", "EOT", "\"END_OF_TEXT\"", "String w", "w", "t;", "t", "int count = 0;", "count", "0", "w = sc.next()", "w", "sc.next()", "sc.next", "sc", "while(true){\n\t\t\tt = sc.next();\n\t\t\t\n\t\t\tif(t.equals(EOT)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tif(t.equalsIgnoreCase(w)){\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tt = sc.next();\n\t\t\t\n\t\t\tif(t.equals(EOT)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tif(t.equalsIgnoreCase(w)){\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}", "t = sc.next()", "t", "sc.next()", "sc.next", "sc", "if(t.equals(EOT)){\n\t\t\t\tbreak;\n\t\t\t}", "t.equals(EOT)", "t.equals", "t", "EOT", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "if(t.equalsIgnoreCase(w)){\n\t\t\t\tcount ++;\n\t\t\t}", "t.equalsIgnoreCase(w)", "t.equalsIgnoreCase", "t", "w", "{\n\t\t\t\tcount ++;\n\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\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\tfinal String EOT = \"END_OF_TEXT\";\n\t\tString w, t;\n\t\tint count = 0;\n\t\t\n\t\tw = sc.next();\n\t\twhile(true){\n\t\t\tt = sc.next();\n\t\t\t\n\t\t\tif(t.equals(EOT)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tif(t.equalsIgnoreCase(w)){\n\t\t\t\tcount ++;\n\t\t\t}\n\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\tfinal String EOT = \"END_OF_TEXT\";\n\t\tString w, t;\n\t\tint count = 0;\n\t\t\n\t\tw = sc.next();\n\t\twhile(true){\n\t\t\tt = sc.next();\n\t\t\t\n\t\t\tif(t.equals(EOT)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tif(t.equalsIgnoreCase(w)){\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\n\t}\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); final String EOT = "END_OF_TEXT"; String w, t; int count = 0; w = sc.next(); while(true){ t = sc.next(); if(t.equals(EOT)){ break; } if(t.equalsIgnoreCase(w)){ count ++; } } System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 17, 0, 13, 4, 18, 13, 4, 18, 13, 17, 42, 40, 4, 18, 0, 13, 4, 18, 13, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 61, 5 ], [ 61, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 8, 24 ], [ 24, 25 ], [ 25, 26 ], [ 24, 27 ], [ 8, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 30, 37 ], [ 28, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 38, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 44, 49 ], [ 49, 50 ], [ 50, 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.*;\n \npublic class Main {\n \n public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n String obj;\n String str;\n int counter=0;\n \n obj=scan.nextLine();\n \n scan.useDelimiter(\"\\\\s\");\n \n while(!((str=scan.next()).equals(\"END_OF_TEXT\"))){\n str=str.toLowerCase();\n if(str.equals(obj)){\n counter++;\n }\n }\n \n System.out.println(counter);\n }\n \n}", "import java.util.*;", "util.*", "java", "public class Main {\n \n public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n String obj;\n String str;\n int counter=0;\n \n obj=scan.nextLine();\n \n scan.useDelimiter(\"\\\\s\");\n \n while(!((str=scan.next()).equals(\"END_OF_TEXT\"))){\n str=str.toLowerCase();\n if(str.equals(obj)){\n counter++;\n }\n }\n \n System.out.println(counter);\n }\n \n}", "Main", "public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n String obj;\n String str;\n int counter=0;\n \n obj=scan.nextLine();\n \n scan.useDelimiter(\"\\\\s\");\n \n while(!((str=scan.next()).equals(\"END_OF_TEXT\"))){\n str=str.toLowerCase();\n if(str.equals(obj)){\n counter++;\n }\n }\n \n System.out.println(counter);\n }", "main", "{\n Scanner scan=new Scanner(System.in);\n String obj;\n String str;\n int counter=0;\n \n obj=scan.nextLine();\n \n scan.useDelimiter(\"\\\\s\");\n \n while(!((str=scan.next()).equals(\"END_OF_TEXT\"))){\n str=str.toLowerCase();\n if(str.equals(obj)){\n counter++;\n }\n }\n \n System.out.println(counter);\n }", "Scanner scan=new Scanner(System.in);", "scan", "new Scanner(System.in)", "String obj;", "obj", "String str;", "str", "int counter=0;", "counter", "0", "obj=scan.nextLine()", "obj", "scan.nextLine()", "scan.nextLine", "scan", "scan.useDelimiter(\"\\\\s\")", "scan.useDelimiter", "scan", "\"\\\\s\"", "while(!((str=scan.next()).equals(\"END_OF_TEXT\"))){\n str=str.toLowerCase();\n if(str.equals(obj)){\n counter++;\n }\n }", "!((str=scan.next()).equals(\"END_OF_TEXT\"))", "((str=scan.next()).equals(\"END_OF_TEXT\"))", "(str=scan.next()).equals", "(str=scan.next())", "str", "scan.next()", "scan.next", "scan", "\"END_OF_TEXT\"", "{\n str=str.toLowerCase();\n if(str.equals(obj)){\n counter++;\n }\n }", "str=str.toLowerCase()", "str", "str.toLowerCase()", "str.toLowerCase", "str", "if(str.equals(obj)){\n counter++;\n }", "str.equals(obj)", "str.equals", "str", "obj", "{\n counter++;\n }", "counter++", "counter", "System.out.println(counter)", "System.out.println", "System.out", "System", "System.out", "counter", "String[] args", "args", "public class Main {\n \n public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n String obj;\n String str;\n int counter=0;\n \n obj=scan.nextLine();\n \n scan.useDelimiter(\"\\\\s\");\n \n while(!((str=scan.next()).equals(\"END_OF_TEXT\"))){\n str=str.toLowerCase();\n if(str.equals(obj)){\n counter++;\n }\n }\n \n System.out.println(counter);\n }\n \n}", "public class Main {\n \n public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n String obj;\n String str;\n int counter=0;\n \n obj=scan.nextLine();\n \n scan.useDelimiter(\"\\\\s\");\n \n while(!((str=scan.next()).equals(\"END_OF_TEXT\"))){\n str=str.toLowerCase();\n if(str.equals(obj)){\n counter++;\n }\n }\n \n System.out.println(counter);\n }\n \n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args){ Scanner scan=new Scanner(System.in); String obj; String str; int counter=0; obj=scan.nextLine(); scan.useDelimiter("\\s"); while(!((str=scan.next()).equals("END_OF_TEXT"))){ str=str.toLowerCase(); if(str.equals(obj)){ counter++; } } System.out.println(counter); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 4, 18, 13, 17, 14, 4, 18, 18, 13, 17, 17, 3, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 4, 18, 18, 13, 13, 13, 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 ], [ 16, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 27, 32 ], [ 24, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 33, 40 ], [ 24, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 48, 50 ], [ 41, 51 ], [ 51, 52 ], [ 52, 53 ], [ 41, 54 ], [ 55, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 57, 64 ], [ 56, 65 ], [ 65, 66 ], [ 8, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 6, 73 ], [ 73, 74 ] ]
[ "import java.io.*;\n\nclass Main{\n\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine().toLowerCase();\n\t\tint cnt=0;\n\t\twhile(true){\n\t\t\tString[] str2 = br.readLine().split(\" \");\n\t\t\tif(str2[0].equals(\"END_OF_TEXT\")) break;\n\t\t\tfor(int i=0; i<str2.length; i++){\n\t\t\t\tif(str2[i].toLowerCase().equals(str)) cnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}", "import java.io.*;", "io.*", "java", "class Main{\n\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine().toLowerCase();\n\t\tint cnt=0;\n\t\twhile(true){\n\t\t\tString[] str2 = br.readLine().split(\" \");\n\t\t\tif(str2[0].equals(\"END_OF_TEXT\")) break;\n\t\t\tfor(int i=0; i<str2.length; i++){\n\t\t\t\tif(str2[i].toLowerCase().equals(str)) cnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}", "Main", "public static void main(String[] args)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine().toLowerCase();\n\t\tint cnt=0;\n\t\twhile(true){\n\t\t\tString[] str2 = br.readLine().split(\" \");\n\t\t\tif(str2[0].equals(\"END_OF_TEXT\")) break;\n\t\t\tfor(int i=0; i<str2.length; i++){\n\t\t\t\tif(str2[i].toLowerCase().equals(str)) cnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine().toLowerCase();\n\t\tint cnt=0;\n\t\twhile(true){\n\t\t\tString[] str2 = br.readLine().split(\" \");\n\t\t\tif(str2[0].equals(\"END_OF_TEXT\")) break;\n\t\t\tfor(int i=0; i<str2.length; i++){\n\t\t\t\tif(str2[i].toLowerCase().equals(str)) cnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String str = br.readLine().toLowerCase();", "str", "br.readLine().toLowerCase()", "br.readLine().toLowerCase", "br.readLine()", "br.readLine", "br", "int cnt=0;", "cnt", "0", "while(true){\n\t\t\tString[] str2 = br.readLine().split(\" \");\n\t\t\tif(str2[0].equals(\"END_OF_TEXT\")) break;\n\t\t\tfor(int i=0; i<str2.length; i++){\n\t\t\t\tif(str2[i].toLowerCase().equals(str)) cnt++;\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tString[] str2 = br.readLine().split(\" \");\n\t\t\tif(str2[0].equals(\"END_OF_TEXT\")) break;\n\t\t\tfor(int i=0; i<str2.length; i++){\n\t\t\t\tif(str2[i].toLowerCase().equals(str)) cnt++;\n\t\t\t}\n\t\t}", "String[] str2 = br.readLine().split(\" \");", "str2", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "if(str2[0].equals(\"END_OF_TEXT\")) break;", "str2[0].equals(\"END_OF_TEXT\")", "str2[0].equals", "str2[0]", "str2", "0", "\"END_OF_TEXT\"", "break;", "for(int i=0; i<str2.length; i++){\n\t\t\t\tif(str2[i].toLowerCase().equals(str)) cnt++;\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<str2.length", "i", "str2.length", "str2", "str2.length", "i++", "i++", "i", "{\n\t\t\t\tif(str2[i].toLowerCase().equals(str)) cnt++;\n\t\t\t}", "{\n\t\t\t\tif(str2[i].toLowerCase().equals(str)) cnt++;\n\t\t\t}", "if(str2[i].toLowerCase().equals(str)) cnt++;", "str2[i].toLowerCase().equals(str)", "str2[i].toLowerCase().equals", "str2[i].toLowerCase()", "str2[i].toLowerCase", "str2[i]", "str2", "i", "str", "cnt++", "cnt", "System.out.println(cnt)", "System.out.println", "System.out", "System", "System.out", "cnt", "String[] args", "args" ]
import java.io.*; class Main{ public static void main(String[] args)throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.readLine().toLowerCase(); int cnt=0; while(true){ String[] str2 = br.readLine().split(" "); if(str2[0].equals("END_OF_TEXT")) break; for(int i=0; i<str2.length; i++){ if(str2[i].toLowerCase().equals(str)) cnt++; } } System.out.println(cnt); } }