node_ids
listlengths 4
1.4k
| edge_index
listlengths 1
2.22k
| text
listlengths 4
1.4k
| source
stringlengths 14
427k
|
---|---|---|---|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
41,
13,
4,
18,
13,
17,
13,
4,
18,
18,
13,
13,
2,
13,
17,
30,
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
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
26,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
34,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
25,
47
],
[
47,
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\t Scanner sc = new Scanner(System.in);\n\t\t Integer maxLength = Integer.parseInt(sc.nextLine());\n\t\t String stringS = sc.nextLine();\n\n\t\t if(stringS.length() > maxLength ) {\n\t\t\t String output = stringS.substring(0, maxLength);\n\t\t\t System.out.println(output + \"...\");\n\t\t }else {\n\t\t\t System.out.println(stringS);\n\t\t }\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t Scanner sc = new Scanner(System.in);\n\t\t Integer maxLength = Integer.parseInt(sc.nextLine());\n\t\t String stringS = sc.nextLine();\n\n\t\t if(stringS.length() > maxLength ) {\n\t\t\t String output = stringS.substring(0, maxLength);\n\t\t\t System.out.println(output + \"...\");\n\t\t }else {\n\t\t\t System.out.println(stringS);\n\t\t }\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t Scanner sc = new Scanner(System.in);\n\t\t Integer maxLength = Integer.parseInt(sc.nextLine());\n\t\t String stringS = sc.nextLine();\n\n\t\t if(stringS.length() > maxLength ) {\n\t\t\t String output = stringS.substring(0, maxLength);\n\t\t\t System.out.println(output + \"...\");\n\t\t }else {\n\t\t\t System.out.println(stringS);\n\t\t }\n\t}",
"main",
"{\n\t\t Scanner sc = new Scanner(System.in);\n\t\t Integer maxLength = Integer.parseInt(sc.nextLine());\n\t\t String stringS = sc.nextLine();\n\n\t\t if(stringS.length() > maxLength ) {\n\t\t\t String output = stringS.substring(0, maxLength);\n\t\t\t System.out.println(output + \"...\");\n\t\t }else {\n\t\t\t System.out.println(stringS);\n\t\t }\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"Integer maxLength = Integer.parseInt(sc.nextLine());",
"maxLength",
"Integer.parseInt(sc.nextLine())",
"Integer.parseInt",
"Integer",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String stringS = sc.nextLine();",
"stringS",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if(stringS.length() > maxLength ) {\n\t\t\t String output = stringS.substring(0, maxLength);\n\t\t\t System.out.println(output + \"...\");\n\t\t }else {\n\t\t\t System.out.println(stringS);\n\t\t }",
"stringS.length() > maxLength",
"stringS.length()",
"stringS.length",
"stringS",
"maxLength",
"{\n\t\t\t String output = stringS.substring(0, maxLength);\n\t\t\t System.out.println(output + \"...\");\n\t\t }",
"String output = stringS.substring(0, maxLength);",
"output",
"stringS.substring(0, maxLength)",
"stringS.substring",
"stringS",
"0",
"maxLength",
"System.out.println(output + \"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"output + \"...\"",
"output",
"\"...\"",
"{\n\t\t\t System.out.println(stringS);\n\t\t }",
"System.out.println(stringS)",
"System.out.println",
"System.out",
"System",
"System.out",
"stringS",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t Scanner sc = new Scanner(System.in);\n\t\t Integer maxLength = Integer.parseInt(sc.nextLine());\n\t\t String stringS = sc.nextLine();\n\n\t\t if(stringS.length() > maxLength ) {\n\t\t\t String output = stringS.substring(0, maxLength);\n\t\t\t System.out.println(output + \"...\");\n\t\t }else {\n\t\t\t System.out.println(stringS);\n\t\t }\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t Scanner sc = new Scanner(System.in);\n\t\t Integer maxLength = Integer.parseInt(sc.nextLine());\n\t\t String stringS = sc.nextLine();\n\n\t\t if(stringS.length() > maxLength ) {\n\t\t\t String output = stringS.substring(0, maxLength);\n\t\t\t System.out.println(output + \"...\");\n\t\t }else {\n\t\t\t System.out.println(stringS);\n\t\t }\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
Integer maxLength = Integer.parseInt(sc.nextLine());
String stringS = sc.nextLine();
if(stringS.length() > maxLength ) {
String output = stringS.substring(0, maxLength);
System.out.println(output + "...");
}else {
System.out.println(stringS);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
14,
2,
4,
18,
13,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
13,
0,
13,
17,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
73,
5
],
[
73,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
29,
33
],
[
28,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
34,
54
],
[
54,
55
],
[
54,
56
],
[
34,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
28,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
6,
70
],
[
70,
71
],
[
0,
72
],
[
72,
73
],
[
72,
74
]
] |
[
"import java.util.*;\npublic class Main{\n\tpublic static void main(String args[]){\n\t\t\n\t\tScanner ob = new Scanner(System.in);\n\t\tint K = ob.nextInt();\n\t\tString S = ob.next();\n\t\tString D = \"...\";\n\t\tString R = \"\";\n\t\t\n\t\tif(S.length() > K){\n\t\t\tfor(int i = 0; i < K; i++){\n\t\t\t\tR += S.charAt(i);\n\t\t\t}\n\t\t\tR += \"...\";\n\t\t\t\n\t\t\tSystem.out.println(R);\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(S);\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\tpublic static void main(String args[]){\n\t\t\n\t\tScanner ob = new Scanner(System.in);\n\t\tint K = ob.nextInt();\n\t\tString S = ob.next();\n\t\tString D = \"...\";\n\t\tString R = \"\";\n\t\t\n\t\tif(S.length() > K){\n\t\t\tfor(int i = 0; i < K; i++){\n\t\t\t\tR += S.charAt(i);\n\t\t\t}\n\t\t\tR += \"...\";\n\t\t\t\n\t\t\tSystem.out.println(R);\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(S);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String args[]){\n\t\t\n\t\tScanner ob = new Scanner(System.in);\n\t\tint K = ob.nextInt();\n\t\tString S = ob.next();\n\t\tString D = \"...\";\n\t\tString R = \"\";\n\t\t\n\t\tif(S.length() > K){\n\t\t\tfor(int i = 0; i < K; i++){\n\t\t\t\tR += S.charAt(i);\n\t\t\t}\n\t\t\tR += \"...\";\n\t\t\t\n\t\t\tSystem.out.println(R);\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(S);\n\t\t}\n\t}",
"main",
"{\n\t\t\n\t\tScanner ob = new Scanner(System.in);\n\t\tint K = ob.nextInt();\n\t\tString S = ob.next();\n\t\tString D = \"...\";\n\t\tString R = \"\";\n\t\t\n\t\tif(S.length() > K){\n\t\t\tfor(int i = 0; i < K; i++){\n\t\t\t\tR += S.charAt(i);\n\t\t\t}\n\t\t\tR += \"...\";\n\t\t\t\n\t\t\tSystem.out.println(R);\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(S);\n\t\t}\n\t}",
"Scanner ob = new Scanner(System.in);",
"ob",
"new Scanner(System.in)",
"int K = ob.nextInt();",
"K",
"ob.nextInt()",
"ob.nextInt",
"ob",
"String S = ob.next();",
"S",
"ob.next()",
"ob.next",
"ob",
"String D = \"...\";",
"D",
"\"...\"",
"String R = \"\";",
"R",
"\"\"",
"if(S.length() > K){\n\t\t\tfor(int i = 0; i < K; i++){\n\t\t\t\tR += S.charAt(i);\n\t\t\t}\n\t\t\tR += \"...\";\n\t\t\t\n\t\t\tSystem.out.println(R);\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(S);\n\t\t}",
"S.length() > K",
"S.length()",
"S.length",
"S",
"K",
"{\n\t\t\tfor(int i = 0; i < K; i++){\n\t\t\t\tR += S.charAt(i);\n\t\t\t}\n\t\t\tR += \"...\";\n\t\t\t\n\t\t\tSystem.out.println(R);\n\t\t}",
"for(int i = 0; i < K; i++){\n\t\t\t\tR += S.charAt(i);\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < K",
"i",
"K",
"i++",
"i++",
"i",
"{\n\t\t\t\tR += S.charAt(i);\n\t\t\t}",
"{\n\t\t\t\tR += S.charAt(i);\n\t\t\t}",
"R += S.charAt(i)",
"R",
"S.charAt(i)",
"S.charAt",
"S",
"i",
"R += \"...\"",
"R",
"\"...\"",
"System.out.println(R)",
"System.out.println",
"System.out",
"System",
"System.out",
"R",
"{\n\t\t\tSystem.out.println(S);\n\t\t}",
"System.out.println(S)",
"System.out.println",
"System.out",
"System",
"System.out",
"S",
"String args[]",
"args",
"public class Main{\n\tpublic static void main(String args[]){\n\t\t\n\t\tScanner ob = new Scanner(System.in);\n\t\tint K = ob.nextInt();\n\t\tString S = ob.next();\n\t\tString D = \"...\";\n\t\tString R = \"\";\n\t\t\n\t\tif(S.length() > K){\n\t\t\tfor(int i = 0; i < K; i++){\n\t\t\t\tR += S.charAt(i);\n\t\t\t}\n\t\t\tR += \"...\";\n\t\t\t\n\t\t\tSystem.out.println(R);\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(S);\n\t\t}\n\t}\n}",
"public class Main{\n\tpublic static void main(String args[]){\n\t\t\n\t\tScanner ob = new Scanner(System.in);\n\t\tint K = ob.nextInt();\n\t\tString S = ob.next();\n\t\tString D = \"...\";\n\t\tString R = \"\";\n\t\t\n\t\tif(S.length() > K){\n\t\t\tfor(int i = 0; i < K; i++){\n\t\t\t\tR += S.charAt(i);\n\t\t\t}\n\t\t\tR += \"...\";\n\t\t\t\n\t\t\tSystem.out.println(R);\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(S);\n\t\t}\n\t}\n}",
"Main"
] |
import java.util.*;
public class Main{
public static void main(String args[]){
Scanner ob = new Scanner(System.in);
int K = ob.nextInt();
String S = ob.next();
String D = "...";
String R = "";
if(S.length() > K){
for(int i = 0; i < K; i++){
R += S.charAt(i);
}
R += "...";
System.out.println(R);
}
else{
System.out.println(S);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
4,
18,
13,
14,
2,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
20,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
52,
8
],
[
52,
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
],
[
24,
25
],
[
25,
26
],
[
11,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
27,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
27,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
46,
48
],
[
9,
49
],
[
49,
50
],
[
0,
51
],
[
51,
52
],
[
51,
53
]
] |
[
"import java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int k = sc.nextInt();\n char[] s = sc.next().toCharArray();\n\n if (s.length <= k) {\n System.out.println(s);\n } else {\n System.out.println(new String(Arrays.copyOf(s, k)) + \"...\");\n }\n }\n}",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int k = sc.nextInt();\n char[] s = sc.next().toCharArray();\n\n if (s.length <= k) {\n System.out.println(s);\n } else {\n System.out.println(new String(Arrays.copyOf(s, k)) + \"...\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int k = sc.nextInt();\n char[] s = sc.next().toCharArray();\n\n if (s.length <= k) {\n System.out.println(s);\n } else {\n System.out.println(new String(Arrays.copyOf(s, k)) + \"...\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int k = sc.nextInt();\n char[] s = sc.next().toCharArray();\n\n if (s.length <= k) {\n System.out.println(s);\n } else {\n System.out.println(new String(Arrays.copyOf(s, k)) + \"...\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"char[] s = sc.next().toCharArray();",
"s",
"sc.next().toCharArray()",
"sc.next().toCharArray",
"sc.next()",
"sc.next",
"sc",
"if (s.length <= k) {\n System.out.println(s);\n } else {\n System.out.println(new String(Arrays.copyOf(s, k)) + \"...\");\n }",
"s.length <= k",
"s.length",
"s",
"s.length",
"k",
"{\n System.out.println(s);\n }",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"{\n System.out.println(new String(Arrays.copyOf(s, k)) + \"...\");\n }",
"System.out.println(new String(Arrays.copyOf(s, k)) + \"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"new String(Arrays.copyOf(s, k)) + \"...\"",
"new String(Arrays.copyOf(s, k))",
"\"...\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int k = sc.nextInt();\n char[] s = sc.next().toCharArray();\n\n if (s.length <= k) {\n System.out.println(s);\n } else {\n System.out.println(new String(Arrays.copyOf(s, k)) + \"...\");\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int k = sc.nextInt();\n char[] s = sc.next().toCharArray();\n\n if (s.length <= k) {\n System.out.println(s);\n } else {\n System.out.println(new String(Arrays.copyOf(s, k)) + \"...\");\n }\n }\n}",
"Main"
] |
import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int k = sc.nextInt();
char[] s = sc.next().toCharArray();
if (s.length <= k) {
System.out.println(s);
} else {
System.out.println(new String(Arrays.copyOf(s, k)) + "...");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
18,
13,
17,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
18,
13,
13,
0,
13,
17,
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
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
30,
32
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
34,
38
],
[
33,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
33,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
47,
58
],
[
59,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
62,
64
],
[
46,
65
],
[
65,
66
],
[
65,
67
],
[
46,
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\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint K = sc.nextInt();\n\t\tString S = sc.next();\n\t\tString[] Str = S.split(\"\");\n\t\tString StrOut = Str[0];\n\n\t\tif(S.length() <= K) {\n\t\t\tSystem.out.println(S);\n\t\t}else {\n\t\tfor(int i = 1;i<K;i++) {\n\t\t\tStrOut += Str[i];\n\t\t}\n\n\t\tStrOut += \"...\";\n\t\tSystem.out.println(StrOut);\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint K = sc.nextInt();\n\t\tString S = sc.next();\n\t\tString[] Str = S.split(\"\");\n\t\tString StrOut = Str[0];\n\n\t\tif(S.length() <= K) {\n\t\t\tSystem.out.println(S);\n\t\t}else {\n\t\tfor(int i = 1;i<K;i++) {\n\t\t\tStrOut += Str[i];\n\t\t}\n\n\t\tStrOut += \"...\";\n\t\tSystem.out.println(StrOut);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint K = sc.nextInt();\n\t\tString S = sc.next();\n\t\tString[] Str = S.split(\"\");\n\t\tString StrOut = Str[0];\n\n\t\tif(S.length() <= K) {\n\t\t\tSystem.out.println(S);\n\t\t}else {\n\t\tfor(int i = 1;i<K;i++) {\n\t\t\tStrOut += Str[i];\n\t\t}\n\n\t\tStrOut += \"...\";\n\t\tSystem.out.println(StrOut);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint K = sc.nextInt();\n\t\tString S = sc.next();\n\t\tString[] Str = S.split(\"\");\n\t\tString StrOut = Str[0];\n\n\t\tif(S.length() <= K) {\n\t\t\tSystem.out.println(S);\n\t\t}else {\n\t\tfor(int i = 1;i<K;i++) {\n\t\t\tStrOut += Str[i];\n\t\t}\n\n\t\tStrOut += \"...\";\n\t\tSystem.out.println(StrOut);\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String S = sc.next();",
"S",
"sc.next()",
"sc.next",
"sc",
"String[] Str = S.split(\"\");",
"Str",
"S.split(\"\")",
"S.split",
"S",
"\"\"",
"String StrOut = Str[0];",
"StrOut",
"Str[0]",
"Str",
"0",
"if(S.length() <= K) {\n\t\t\tSystem.out.println(S);\n\t\t}else {\n\t\tfor(int i = 1;i<K;i++) {\n\t\t\tStrOut += Str[i];\n\t\t}\n\n\t\tStrOut += \"...\";\n\t\tSystem.out.println(StrOut);\n\t\t}",
"S.length() <= K",
"S.length()",
"S.length",
"S",
"K",
"{\n\t\t\tSystem.out.println(S);\n\t\t}",
"System.out.println(S)",
"System.out.println",
"System.out",
"System",
"System.out",
"S",
"{\n\t\tfor(int i = 1;i<K;i++) {\n\t\t\tStrOut += Str[i];\n\t\t}\n\n\t\tStrOut += \"...\";\n\t\tSystem.out.println(StrOut);\n\t\t}",
"for(int i = 1;i<K;i++) {\n\t\t\tStrOut += Str[i];\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i<K",
"i",
"K",
"i++",
"i++",
"i",
"{\n\t\t\tStrOut += Str[i];\n\t\t}",
"{\n\t\t\tStrOut += Str[i];\n\t\t}",
"StrOut += Str[i]",
"StrOut",
"Str[i]",
"Str",
"i",
"StrOut += \"...\"",
"StrOut",
"\"...\"",
"System.out.println(StrOut)",
"System.out.println",
"System.out",
"System",
"System.out",
"StrOut",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint K = sc.nextInt();\n\t\tString S = sc.next();\n\t\tString[] Str = S.split(\"\");\n\t\tString StrOut = Str[0];\n\n\t\tif(S.length() <= K) {\n\t\t\tSystem.out.println(S);\n\t\t}else {\n\t\tfor(int i = 1;i<K;i++) {\n\t\t\tStrOut += Str[i];\n\t\t}\n\n\t\tStrOut += \"...\";\n\t\tSystem.out.println(StrOut);\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint K = sc.nextInt();\n\t\tString S = sc.next();\n\t\tString[] Str = S.split(\"\");\n\t\tString StrOut = Str[0];\n\n\t\tif(S.length() <= K) {\n\t\t\tSystem.out.println(S);\n\t\t}else {\n\t\tfor(int i = 1;i<K;i++) {\n\t\t\tStrOut += Str[i];\n\t\t}\n\n\t\tStrOut += \"...\";\n\t\tSystem.out.println(StrOut);\n\t\t}\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
String S = sc.next();
String[] Str = S.split("");
String StrOut = Str[0];
if(S.length() <= K) {
System.out.println(S);
}else {
for(int i = 1;i<K;i++) {
StrOut += Str[i];
}
StrOut += "...";
System.out.println(StrOut);
}
}
}
|
[
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,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
54,
5
],
[
54,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
26,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
25,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
45,
49
],
[
44,
50
],
[
6,
51
],
[
51,
52
],
[
0,
53
],
[
53,
54
],
[
53,
55
]
] |
[
"import java.util.*;\npublic class Main {\n public static void main(String[] args) {\n Scanner c = new Scanner(System.in);\n int length = c.nextInt();\n c.nextLine();\n String s = c.nextLine();\n if(s.length() <= length){\n System.out.println(s);\n }else{\n System.out.println(s.substring(0,length)+\"...\");\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner c = new Scanner(System.in);\n int length = c.nextInt();\n c.nextLine();\n String s = c.nextLine();\n if(s.length() <= length){\n System.out.println(s);\n }else{\n System.out.println(s.substring(0,length)+\"...\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner c = new Scanner(System.in);\n int length = c.nextInt();\n c.nextLine();\n String s = c.nextLine();\n if(s.length() <= length){\n System.out.println(s);\n }else{\n System.out.println(s.substring(0,length)+\"...\");\n }\n }",
"main",
"{\n Scanner c = new Scanner(System.in);\n int length = c.nextInt();\n c.nextLine();\n String s = c.nextLine();\n if(s.length() <= length){\n System.out.println(s);\n }else{\n System.out.println(s.substring(0,length)+\"...\");\n }\n }",
"Scanner c = new Scanner(System.in);",
"c",
"new Scanner(System.in)",
"int length = c.nextInt();",
"length",
"c.nextInt()",
"c.nextInt",
"c",
"c.nextLine()",
"c.nextLine",
"c",
"String s = c.nextLine();",
"s",
"c.nextLine()",
"c.nextLine",
"c",
"if(s.length() <= length){\n System.out.println(s);\n }else{\n System.out.println(s.substring(0,length)+\"...\");\n }",
"s.length() <= length",
"s.length()",
"s.length",
"s",
"length",
"{\n System.out.println(s);\n }",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"{\n System.out.println(s.substring(0,length)+\"...\");\n }",
"System.out.println(s.substring(0,length)+\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"s.substring(0,length)+\"...\"",
"s.substring(0,length)",
"s.substring",
"s",
"0",
"length",
"\"...\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner c = new Scanner(System.in);\n int length = c.nextInt();\n c.nextLine();\n String s = c.nextLine();\n if(s.length() <= length){\n System.out.println(s);\n }else{\n System.out.println(s.substring(0,length)+\"...\");\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner c = new Scanner(System.in);\n int length = c.nextInt();\n c.nextLine();\n String s = c.nextLine();\n if(s.length() <= length){\n System.out.println(s);\n }else{\n System.out.println(s.substring(0,length)+\"...\");\n }\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner c = new Scanner(System.in);
int length = c.nextInt();
c.nextLine();
String s = c.nextLine();
if(s.length() <= length){
System.out.println(s);
}else{
System.out.println(s.substring(0,length)+"...");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
49,
5
],
[
49,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
23,
27
],
[
22,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
34,
38
],
[
33,
39
],
[
22,
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\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint num =sc.nextInt();\n\t\tString str =sc.next();\n\t\t\n\t\tif(str.length()>num)\n\t\t\tSystem.out.println(str.substring(0, num)+\"...\");\n\t\telse\n\t\t\tSystem.out.println(str);\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint num =sc.nextInt();\n\t\tString str =sc.next();\n\t\t\n\t\tif(str.length()>num)\n\t\t\tSystem.out.println(str.substring(0, num)+\"...\");\n\t\telse\n\t\t\tSystem.out.println(str);\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint num =sc.nextInt();\n\t\tString str =sc.next();\n\t\t\n\t\tif(str.length()>num)\n\t\t\tSystem.out.println(str.substring(0, num)+\"...\");\n\t\telse\n\t\t\tSystem.out.println(str);\n\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint num =sc.nextInt();\n\t\tString str =sc.next();\n\t\t\n\t\tif(str.length()>num)\n\t\t\tSystem.out.println(str.substring(0, num)+\"...\");\n\t\telse\n\t\t\tSystem.out.println(str);\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int num =sc.nextInt();",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String str =sc.next();",
"str",
"sc.next()",
"sc.next",
"sc",
"if(str.length()>num)\n\t\t\tSystem.out.println(str.substring(0, num)+\"...\");\n\t\telse\n\t\t\tSystem.out.println(str);",
"str.length()>num",
"str.length()",
"str.length",
"str",
"num",
"System.out.println(str.substring(0, num)+\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"str.substring(0, num)+\"...\"",
"str.substring(0, num)",
"str.substring",
"str",
"0",
"num",
"\"...\"",
"System.out.println(str)",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint num =sc.nextInt();\n\t\tString str =sc.next();\n\t\t\n\t\tif(str.length()>num)\n\t\t\tSystem.out.println(str.substring(0, num)+\"...\");\n\t\telse\n\t\t\tSystem.out.println(str);\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\tint num =sc.nextInt();\n\t\tString str =sc.next();\n\t\t\n\t\tif(str.length()>num)\n\t\t\tSystem.out.println(str.substring(0, num)+\"...\");\n\t\telse\n\t\t\tSystem.out.println(str);\n\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int num =sc.nextInt();
String str =sc.next();
if(str.length()>num)
System.out.println(str.substring(0, num)+"...");
else
System.out.println(str);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
4,
18,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
30,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
60,
11
],
[
60,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
14,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
31,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
44,
48
],
[
43,
49
],
[
31,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
12,
57
],
[
57,
58
],
[
0,
59
],
[
59,
60
],
[
59,
61
]
] |
[
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int k = Integer.parseInt(in.readLine());\n String input = in.readLine();\n\n if (k < input.length()) {\n System.out.print(input.substring(0, k) + \"...\");\n } else {\n System.out.print(input);\n }\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 in = new BufferedReader(new InputStreamReader(System.in));\n int k = Integer.parseInt(in.readLine());\n String input = in.readLine();\n\n if (k < input.length()) {\n System.out.print(input.substring(0, k) + \"...\");\n } else {\n System.out.print(input);\n }\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int k = Integer.parseInt(in.readLine());\n String input = in.readLine();\n\n if (k < input.length()) {\n System.out.print(input.substring(0, k) + \"...\");\n } else {\n System.out.print(input);\n }\n }",
"main",
"{\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int k = Integer.parseInt(in.readLine());\n String input = in.readLine();\n\n if (k < input.length()) {\n System.out.print(input.substring(0, k) + \"...\");\n } else {\n System.out.print(input);\n }\n }",
"BufferedReader in = new BufferedReader(new InputStreamReader(System.in));",
"in",
"new BufferedReader(new InputStreamReader(System.in))",
"int k = Integer.parseInt(in.readLine());",
"k",
"Integer.parseInt(in.readLine())",
"Integer.parseInt",
"Integer",
"in.readLine()",
"in.readLine",
"in",
"String input = in.readLine();",
"input",
"in.readLine()",
"in.readLine",
"in",
"if (k < input.length()) {\n System.out.print(input.substring(0, k) + \"...\");\n } else {\n System.out.print(input);\n }",
"k < input.length()",
"k",
"input.length()",
"input.length",
"input",
"{\n System.out.print(input.substring(0, k) + \"...\");\n }",
"System.out.print(input.substring(0, k) + \"...\")",
"System.out.print",
"System.out",
"System",
"System.out",
"input.substring(0, k) + \"...\"",
"input.substring(0, k)",
"input.substring",
"input",
"0",
"k",
"\"...\"",
"{\n System.out.print(input);\n }",
"System.out.print(input)",
"System.out.print",
"System.out",
"System",
"System.out",
"input",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int k = Integer.parseInt(in.readLine());\n String input = in.readLine();\n\n if (k < input.length()) {\n System.out.print(input.substring(0, k) + \"...\");\n } else {\n System.out.print(input);\n }\n }\n}",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int k = Integer.parseInt(in.readLine());\n String input = in.readLine();\n\n if (k < input.length()) {\n System.out.print(input.substring(0, k) + \"...\");\n } else {\n System.out.print(input);\n }\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 in = new BufferedReader(new InputStreamReader(System.in));
int k = Integer.parseInt(in.readLine());
String input = in.readLine();
if (k < input.length()) {
System.out.print(input.substring(0, k) + "...");
} else {
System.out.print(input);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
12,
13,
30,
0,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
14,
2,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
4,
8
],
[
8,
9
],
[
8,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
10,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
10,
24
],
[
24,
25
],
[
24,
26
],
[
10,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
28,
32
],
[
27,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
27,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
45,
49
],
[
44,
50
],
[
8,
51
],
[
51,
52
]
] |
[
"import java.util.*;\n\nclass Main {\n private static Scanner sc;\n\n public static void main(final String[] args) {\n sc = new Scanner(System.in);\n int a = sc.nextInt();\n String N = sc.next(),ans = \"...\";\n if(N.length() <= a) System.out.println(N);\n else System.out.println(N.substring(0, a) + ans);\n }\n}\n\n\n\n\n\n",
"import java.util.*;",
"util.*",
"java",
"class Main {\n private static Scanner sc;\n\n public static void main(final String[] args) {\n sc = new Scanner(System.in);\n int a = sc.nextInt();\n String N = sc.next(),ans = \"...\";\n if(N.length() <= a) System.out.println(N);\n else System.out.println(N.substring(0, a) + ans);\n }\n}",
"Main",
"private static Scanner sc;",
"sc",
"public static void main(final String[] args) {\n sc = new Scanner(System.in);\n int a = sc.nextInt();\n String N = sc.next(),ans = \"...\";\n if(N.length() <= a) System.out.println(N);\n else System.out.println(N.substring(0, a) + ans);\n }",
"main",
"{\n sc = new Scanner(System.in);\n int a = sc.nextInt();\n String N = sc.next(),ans = \"...\";\n if(N.length() <= a) System.out.println(N);\n else System.out.println(N.substring(0, a) + ans);\n }",
"sc = new Scanner(System.in)",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String N = sc.next()",
"N",
"sc.next()",
"sc.next",
"sc",
"ans = \"...\";",
"ans",
"\"...\"",
"if(N.length() <= a) System.out.println(N);\n else System.out.println(N.substring(0, a) + ans);",
"N.length() <= a",
"N.length()",
"N.length",
"N",
"a",
"System.out.println(N)",
"System.out.println",
"System.out",
"System",
"System.out",
"N",
"System.out.println(N.substring(0, a) + ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"N.substring(0, a) + ans",
"N.substring(0, a)",
"N.substring",
"N",
"0",
"a",
"ans",
"final String[] args",
"args"
] |
import java.util.*;
class Main {
private static Scanner sc;
public static void main(final String[] args) {
sc = new Scanner(System.in);
int a = sc.nextInt();
String N = sc.next(),ans = "...";
if(N.length() <= a) System.out.println(N);
else System.out.println(N.substring(0, a) + ans);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
4,
18,
13,
13,
4,
18,
13,
2,
4,
18,
13,
17,
13,
17,
4,
18,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
60,
8
],
[
60,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
11,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
11,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
32,
36
],
[
31,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
31,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
45,
49
],
[
44,
50
],
[
11,
51
],
[
51,
52
],
[
52,
53
],
[
11,
54
],
[
54,
55
],
[
55,
56
],
[
9,
57
],
[
57,
58
],
[
0,
59
],
[
59,
60
],
[
59,
61
]
] |
[
"import java.util.*;\nimport java.io.*;\npublic class Main\n{\n public static void main(String args[])throws Exception\n {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n PrintWriter pw=new PrintWriter(System.out);\n int n=Integer.parseInt(br.readLine());\n String s=br.readLine();\n if(s.length()<=n)\n pw.println(s);\n else\n pw.println(s.substring(0,n)+\"...\");\n pw.flush();\n pw.close();\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main\n{\n public static void main(String args[])throws Exception\n {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n PrintWriter pw=new PrintWriter(System.out);\n int n=Integer.parseInt(br.readLine());\n String s=br.readLine();\n if(s.length()<=n)\n pw.println(s);\n else\n pw.println(s.substring(0,n)+\"...\");\n pw.flush();\n pw.close();\n }\n}",
"Main",
"public static void main(String args[])throws Exception\n {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n PrintWriter pw=new PrintWriter(System.out);\n int n=Integer.parseInt(br.readLine());\n String s=br.readLine();\n if(s.length()<=n)\n pw.println(s);\n else\n pw.println(s.substring(0,n)+\"...\");\n pw.flush();\n pw.close();\n }",
"main",
"{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n PrintWriter pw=new PrintWriter(System.out);\n int n=Integer.parseInt(br.readLine());\n String s=br.readLine();\n if(s.length()<=n)\n pw.println(s);\n else\n pw.println(s.substring(0,n)+\"...\");\n pw.flush();\n pw.close();\n }",
"BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"PrintWriter pw=new PrintWriter(System.out);",
"pw",
"new PrintWriter(System.out)",
"int n=Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"String s=br.readLine();",
"s",
"br.readLine()",
"br.readLine",
"br",
"if(s.length()<=n)\n pw.println(s);\n else\n pw.println(s.substring(0,n)+\"...\");",
"s.length()<=n",
"s.length()",
"s.length",
"s",
"n",
"pw.println(s)",
"pw.println",
"pw",
"s",
"pw.println(s.substring(0,n)+\"...\")",
"pw.println",
"pw",
"s.substring(0,n)+\"...\"",
"s.substring(0,n)",
"s.substring",
"s",
"0",
"n",
"\"...\"",
"pw.flush()",
"pw.flush",
"pw",
"pw.close()",
"pw.close",
"pw",
"String args[]",
"args",
"public class Main\n{\n public static void main(String args[])throws Exception\n {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n PrintWriter pw=new PrintWriter(System.out);\n int n=Integer.parseInt(br.readLine());\n String s=br.readLine();\n if(s.length()<=n)\n pw.println(s);\n else\n pw.println(s.substring(0,n)+\"...\");\n pw.flush();\n pw.close();\n }\n}",
"public class Main\n{\n public static void main(String args[])throws Exception\n {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n PrintWriter pw=new PrintWriter(System.out);\n int n=Integer.parseInt(br.readLine());\n String s=br.readLine();\n if(s.length()<=n)\n pw.println(s);\n else\n pw.println(s.substring(0,n)+\"...\");\n pw.flush();\n pw.close();\n }\n}",
"Main"
] |
import java.util.*;
import java.io.*;
public class Main
{
public static void main(String args[])throws Exception
{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
PrintWriter pw=new PrintWriter(System.out);
int n=Integer.parseInt(br.readLine());
String s=br.readLine();
if(s.length()<=n)
pw.println(s);
else
pw.println(s.substring(0,n)+"...");
pw.flush();
pw.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
41,
13,
4,
13,
41,
13,
4,
13,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
0,
13,
20,
29,
4,
18,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
104,
8
],
[
104,
9
],
[
9,
10
],
[
104,
11
],
[
11,
12
],
[
104,
13
],
[
13,
14
],
[
104,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
17,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
17,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
30,
34
],
[
29,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
29,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
49,
53
],
[
48,
54
],
[
15,
55
],
[
55,
56
],
[
104,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
64,
65
],
[
104,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
73,
74
],
[
104,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
82,
83
],
[
104,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
87,
96
],
[
96,
97
],
[
96,
98
],
[
86,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
0,
103
],
[
103,
104
],
[
103,
105
]
] |
[
"import java.util.*; \nimport java.io.*;\n\npublic class Main {\n static StringTokenizer st;\n static BufferedReader br; \n static PrintWriter out;\n \n public static void main(String[] args) throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n\n \n int K = nextInt();\n String S = next();//strength \n \n if(S.length()<=K){\n System.out.println(S);\n }\n else{\n System.out.println(S.substring(0, K) + \"...\"); \n }\n \n \n }\n \n \n public static int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n public static long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public static double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n static String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n static StringTokenizer st;\n static BufferedReader br; \n static PrintWriter out;\n \n public static void main(String[] args) throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n\n \n int K = nextInt();\n String S = next();//strength \n \n if(S.length()<=K){\n System.out.println(S);\n }\n else{\n System.out.println(S.substring(0, K) + \"...\"); \n }\n \n \n }\n \n \n public static int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n public static long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public static double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n static String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }\n}",
"Main",
"static StringTokenizer st;",
"st",
"static BufferedReader br;",
"br",
"static PrintWriter out;",
"out",
"public static void main(String[] args) throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n\n \n int K = nextInt();\n String S = next();//strength \n \n if(S.length()<=K){\n System.out.println(S);\n }\n else{\n System.out.println(S.substring(0, K) + \"...\"); \n }\n \n \n }",
"main",
"{\n br = new BufferedReader(new InputStreamReader(System.in));\n\n \n int K = nextInt();\n String S = next();//strength \n \n if(S.length()<=K){\n System.out.println(S);\n }\n else{\n System.out.println(S.substring(0, K) + \"...\"); \n }\n \n \n }",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int K = nextInt();",
"K",
"nextInt()",
"nextInt",
"String S = next();",
"S",
"next()",
"next",
"if(S.length()<=K){\n System.out.println(S);\n }\n else{\n System.out.println(S.substring(0, K) + \"...\"); \n }",
"S.length()<=K",
"S.length()",
"S.length",
"S",
"K",
"{\n System.out.println(S);\n }",
"System.out.println(S)",
"System.out.println",
"System.out",
"System",
"System.out",
"S",
"{\n System.out.println(S.substring(0, K) + \"...\"); \n }",
"System.out.println(S.substring(0, K) + \"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"S.substring(0, K) + \"...\"",
"S.substring(0, K)",
"S.substring",
"S",
"0",
"K",
"\"...\"",
"String[] args",
"args",
"public static int nextInt() throws IOException {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public static long nextLong() throws IOException {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public static double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"static String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"st = new StringTokenizer(br.readLine().trim())",
"st",
"new StringTokenizer(br.readLine().trim())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public class Main {\n static StringTokenizer st;\n static BufferedReader br; \n static PrintWriter out;\n \n public static void main(String[] args) throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n\n \n int K = nextInt();\n String S = next();//strength \n \n if(S.length()<=K){\n System.out.println(S);\n }\n else{\n System.out.println(S.substring(0, K) + \"...\"); \n }\n \n \n }\n \n \n public static int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n public static long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public static double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n static String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }\n}",
"public class Main {\n static StringTokenizer st;\n static BufferedReader br; \n static PrintWriter out;\n \n public static void main(String[] args) throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n\n \n int K = nextInt();\n String S = next();//strength \n \n if(S.length()<=K){\n System.out.println(S);\n }\n else{\n System.out.println(S.substring(0, K) + \"...\"); \n }\n \n \n }\n \n \n public static int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n public static long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public static double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n static String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }\n}",
"Main"
] |
import java.util.*;
import java.io.*;
public class Main {
static StringTokenizer st;
static BufferedReader br;
static PrintWriter out;
public static void main(String[] args) throws IOException {
br = new BufferedReader(new InputStreamReader(System.in));
int K = nextInt();
String S = next();//strength
if(S.length()<=K){
System.out.println(S);
}
else{
System.out.println(S.substring(0, K) + "...");
}
}
public static int nextInt() throws IOException {
return Integer.parseInt(next());
}
public static long nextLong() throws IOException {
return Long.parseLong(next());
}
public static double nextDouble() throws IOException {
return Double.parseDouble(next());
}
static String next() throws IOException {
while (st == null || !st.hasMoreTokens())
st = new StringTokenizer(br.readLine().trim());
return st.nextToken();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
13,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
4,
18,
13,
17,
13,
4,
18,
18,
13,
13,
2,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
68,
5
],
[
68,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
27,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
38,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
52,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
62,
63
],
[
62,
64
],
[
6,
65
],
[
65,
66
],
[
0,
67
],
[
67,
68
],
[
67,
69
]
] |
[
"import java.util.Scanner;\npublic class Main{\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n \n int a = scanner.nextInt();\n String str = scanner.next();\n int valLen = str.length(); \n if(valLen == a){\n System.out.println(str);\n }else if(valLen < a){\n System.out.println(str);\n }else{\n String i = str.substring(0,a);\n System.out.println(i + \"...\");\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n \n int a = scanner.nextInt();\n String str = scanner.next();\n int valLen = str.length(); \n if(valLen == a){\n System.out.println(str);\n }else if(valLen < a){\n System.out.println(str);\n }else{\n String i = str.substring(0,a);\n System.out.println(i + \"...\");\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n \n int a = scanner.nextInt();\n String str = scanner.next();\n int valLen = str.length(); \n if(valLen == a){\n System.out.println(str);\n }else if(valLen < a){\n System.out.println(str);\n }else{\n String i = str.substring(0,a);\n System.out.println(i + \"...\");\n }\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n \n int a = scanner.nextInt();\n String str = scanner.next();\n int valLen = str.length(); \n if(valLen == a){\n System.out.println(str);\n }else if(valLen < a){\n System.out.println(str);\n }else{\n String i = str.substring(0,a);\n System.out.println(i + \"...\");\n }\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int a = scanner.nextInt();",
"a",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"String str = scanner.next();",
"str",
"scanner.next()",
"scanner.next",
"scanner",
"int valLen = str.length();",
"valLen",
"str.length()",
"str.length",
"str",
"if(valLen == a){\n System.out.println(str);\n }else if(valLen < a){\n System.out.println(str);\n }else{\n String i = str.substring(0,a);\n System.out.println(i + \"...\");\n }",
"valLen == a",
"valLen",
"a",
"{\n System.out.println(str);\n }",
"System.out.println(str)",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"if(valLen < a){\n System.out.println(str);\n }else{\n String i = str.substring(0,a);\n System.out.println(i + \"...\");\n }",
"valLen < a",
"valLen",
"a",
"{\n System.out.println(str);\n }",
"System.out.println(str)",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"{\n String i = str.substring(0,a);\n System.out.println(i + \"...\");\n }",
"String i = str.substring(0,a);",
"i",
"str.substring(0,a)",
"str.substring",
"str",
"0",
"a",
"System.out.println(i + \"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"i + \"...\"",
"i",
"\"...\"",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n \n int a = scanner.nextInt();\n String str = scanner.next();\n int valLen = str.length(); \n if(valLen == a){\n System.out.println(str);\n }else if(valLen < a){\n System.out.println(str);\n }else{\n String i = str.substring(0,a);\n System.out.println(i + \"...\");\n }\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n \n int a = scanner.nextInt();\n String str = scanner.next();\n int valLen = str.length(); \n if(valLen == a){\n System.out.println(str);\n }else if(valLen < a){\n System.out.println(str);\n }else{\n String i = str.substring(0,a);\n System.out.println(i + \"...\");\n }\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
String str = scanner.next();
int valLen = str.length();
if(valLen == a){
System.out.println(str);
}else if(valLen < a){
System.out.println(str);
}else{
String i = str.substring(0,a);
System.out.println(i + "...");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
13,
30,
0,
13,
4,
18,
13,
17,
13,
4,
18,
18,
13,
13,
2,
13,
17,
30,
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
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
34,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
27,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
6,
54
],
[
54,
55
],
[
0,
56
],
[
56,
57
],
[
56,
58
]
] |
[
"import java.util.*;\npublic class Main {\n public static void main(String[] args){\n Scanner s = new Scanner(System.in);\n int len = s.nextInt();\n String text = s.next();\n int len0 = text.length();\n if(len0>len){\n text = text.substring(0,len);\n System.out.println(text + \"...\");\n }else{\n System.out.println(text);\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args){\n Scanner s = new Scanner(System.in);\n int len = s.nextInt();\n String text = s.next();\n int len0 = text.length();\n if(len0>len){\n text = text.substring(0,len);\n System.out.println(text + \"...\");\n }else{\n System.out.println(text);\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner s = new Scanner(System.in);\n int len = s.nextInt();\n String text = s.next();\n int len0 = text.length();\n if(len0>len){\n text = text.substring(0,len);\n System.out.println(text + \"...\");\n }else{\n System.out.println(text);\n }\n }",
"main",
"{\n Scanner s = new Scanner(System.in);\n int len = s.nextInt();\n String text = s.next();\n int len0 = text.length();\n if(len0>len){\n text = text.substring(0,len);\n System.out.println(text + \"...\");\n }else{\n System.out.println(text);\n }\n }",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int len = s.nextInt();",
"len",
"s.nextInt()",
"s.nextInt",
"s",
"String text = s.next();",
"text",
"s.next()",
"s.next",
"s",
"int len0 = text.length();",
"len0",
"text.length()",
"text.length",
"text",
"if(len0>len){\n text = text.substring(0,len);\n System.out.println(text + \"...\");\n }else{\n System.out.println(text);\n }",
"len0>len",
"len0",
"len",
"{\n text = text.substring(0,len);\n System.out.println(text + \"...\");\n }",
"text = text.substring(0,len)",
"text",
"text.substring(0,len)",
"text.substring",
"text",
"0",
"len",
"System.out.println(text + \"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"text + \"...\"",
"text",
"\"...\"",
"{\n System.out.println(text);\n }",
"System.out.println(text)",
"System.out.println",
"System.out",
"System",
"System.out",
"text",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner s = new Scanner(System.in);\n int len = s.nextInt();\n String text = s.next();\n int len0 = text.length();\n if(len0>len){\n text = text.substring(0,len);\n System.out.println(text + \"...\");\n }else{\n System.out.println(text);\n }\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner s = new Scanner(System.in);\n int len = s.nextInt();\n String text = s.next();\n int len0 = text.length();\n if(len0>len){\n text = text.substring(0,len);\n System.out.println(text + \"...\");\n }else{\n System.out.println(text);\n }\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args){
Scanner s = new Scanner(System.in);
int len = s.nextInt();
String text = s.next();
int len0 = text.length();
if(len0>len){
text = text.substring(0,len);
System.out.println(text + "...");
}else{
System.out.println(text);
}
}
}
|
[
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,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
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
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
26,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
25,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
45,
49
],
[
44,
50
],
[
6,
51
],
[
51,
52
],
[
0,
53
],
[
53,
54
],
[
53,
55
]
] |
[
"import java.util.*;\n\npublic class Main{\n\tpublic static void main(String[] args){\n \t\tScanner sc = new Scanner(System.in);\n int k = Integer.parseInt(sc.nextLine());\n String s = sc.nextLine();\n if (s.length() <= k) {\n System.out.println(s);\n } else {\n System.out.println(s.substring(0, k) + \"...\");\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\tpublic static void main(String[] args){\n \t\tScanner sc = new Scanner(System.in);\n int k = Integer.parseInt(sc.nextLine());\n String s = sc.nextLine();\n if (s.length() <= k) {\n System.out.println(s);\n } else {\n System.out.println(s.substring(0, k) + \"...\");\n }\n }\n}",
"Main",
"public static void main(String[] args){\n \t\tScanner sc = new Scanner(System.in);\n int k = Integer.parseInt(sc.nextLine());\n String s = sc.nextLine();\n if (s.length() <= k) {\n System.out.println(s);\n } else {\n System.out.println(s.substring(0, k) + \"...\");\n }\n }",
"main",
"{\n \t\tScanner sc = new Scanner(System.in);\n int k = Integer.parseInt(sc.nextLine());\n String s = sc.nextLine();\n if (s.length() <= k) {\n System.out.println(s);\n } else {\n System.out.println(s.substring(0, k) + \"...\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k = Integer.parseInt(sc.nextLine());",
"k",
"Integer.parseInt(sc.nextLine())",
"Integer.parseInt",
"Integer",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String s = sc.nextLine();",
"s",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if (s.length() <= k) {\n System.out.println(s);\n } else {\n System.out.println(s.substring(0, k) + \"...\");\n }",
"s.length() <= k",
"s.length()",
"s.length",
"s",
"k",
"{\n System.out.println(s);\n }",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"{\n System.out.println(s.substring(0, k) + \"...\");\n }",
"System.out.println(s.substring(0, k) + \"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"s.substring(0, k) + \"...\"",
"s.substring(0, k)",
"s.substring",
"s",
"0",
"k",
"\"...\"",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args){\n \t\tScanner sc = new Scanner(System.in);\n int k = Integer.parseInt(sc.nextLine());\n String s = sc.nextLine();\n if (s.length() <= k) {\n System.out.println(s);\n } else {\n System.out.println(s.substring(0, k) + \"...\");\n }\n }\n}",
"public class Main{\n\tpublic static void main(String[] args){\n \t\tScanner sc = new Scanner(System.in);\n int k = Integer.parseInt(sc.nextLine());\n String s = sc.nextLine();\n if (s.length() <= k) {\n System.out.println(s);\n } else {\n System.out.println(s.substring(0, k) + \"...\");\n }\n }\n}",
"Main"
] |
import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int k = Integer.parseInt(sc.nextLine());
String s = sc.nextLine();
if (s.length() <= k) {
System.out.println(s);
} else {
System.out.println(s.substring(0, k) + "...");
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
4,
18,
13,
30,
4,
18,
18,
13,
13,
13,
30,
0,
13,
4,
18,
13,
17,
13,
0,
13,
2,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
[
14,
15
],
[
14,
16
],
[
13,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
22,
23
],
[
23,
24
],
[
13,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
13,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
30,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
30,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
46,
50
],
[
43,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
53,
55
],
[
43,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
9,
62
],
[
62,
63
]
] |
[
"import java.util.*;\nimport java.io.*;\n\nclass Main{\n public static void main(String args[])throws IOException{\n try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){\n int K = Integer.parseInt(br.readLine());\n String input = br.readLine();\n\n if(K >= input.length()){\n System.out.println(input);\n }else{\n input = input.substring(0, K);\n input = input + \"...\";\n System.out.println(input);\n }\n }\n\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"class Main{\n public static void main(String args[])throws IOException{\n try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){\n int K = Integer.parseInt(br.readLine());\n String input = br.readLine();\n\n if(K >= input.length()){\n System.out.println(input);\n }else{\n input = input.substring(0, K);\n input = input + \"...\";\n System.out.println(input);\n }\n }\n\n }\n}",
"Main",
"public static void main(String args[])throws IOException{\n try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){\n int K = Integer.parseInt(br.readLine());\n String input = br.readLine();\n\n if(K >= input.length()){\n System.out.println(input);\n }else{\n input = input.substring(0, K);\n input = input + \"...\";\n System.out.println(input);\n }\n }\n\n }",
"main",
"{\n try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){\n int K = Integer.parseInt(br.readLine());\n String input = br.readLine();\n\n if(K >= input.length()){\n System.out.println(input);\n }else{\n input = input.substring(0, K);\n input = input + \"...\";\n System.out.println(input);\n }\n }\n\n }",
"try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){\n int K = Integer.parseInt(br.readLine());\n String input = br.readLine();\n\n if(K >= input.length()){\n System.out.println(input);\n }else{\n input = input.substring(0, K);\n input = input + \"...\";\n System.out.println(input);\n }\n }",
"{\n int K = Integer.parseInt(br.readLine());\n String input = br.readLine();\n\n if(K >= input.length()){\n System.out.println(input);\n }else{\n input = input.substring(0, K);\n input = input + \"...\";\n System.out.println(input);\n }\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in))",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in))",
"new BufferedReader(new InputStreamReader(System.in))",
"int K = Integer.parseInt(br.readLine());",
"K",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"String input = br.readLine();",
"input",
"br.readLine()",
"br.readLine",
"br",
"if(K >= input.length()){\n System.out.println(input);\n }else{\n input = input.substring(0, K);\n input = input + \"...\";\n System.out.println(input);\n }",
"K >= input.length()",
"K",
"input.length()",
"input.length",
"input",
"{\n System.out.println(input);\n }",
"System.out.println(input)",
"System.out.println",
"System.out",
"System",
"System.out",
"input",
"{\n input = input.substring(0, K);\n input = input + \"...\";\n System.out.println(input);\n }",
"input = input.substring(0, K)",
"input",
"input.substring(0, K)",
"input.substring",
"input",
"0",
"K",
"input = input + \"...\"",
"input",
"input + \"...\"",
"input",
"\"...\"",
"System.out.println(input)",
"System.out.println",
"System.out",
"System",
"System.out",
"input",
"String args[]",
"args"
] |
import java.util.*;
import java.io.*;
class Main{
public static void main(String args[])throws IOException{
try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){
int K = Integer.parseInt(br.readLine());
String input = br.readLine();
if(K >= input.length()){
System.out.println(input);
}else{
input = input.substring(0, K);
input = input + "...";
System.out.println(input);
}
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
13,
4,
18,
18,
13,
13,
13,
30,
41,
13,
4,
18,
13,
17,
13,
4,
18,
18,
13,
13,
2,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
58,
5
],
[
58,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
29,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
42,
46
],
[
39,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
6,
55
],
[
55,
56
],
[
0,
57
],
[
57,
58
],
[
57,
59
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tString s=scan.next().toLowerCase();\n\t\tint k=s.length();\n\t\tif(n>=k)System.out.println(s);\n\t\telse {\n\t\t\tString ss=s.substring(0, n);\n\t\t\tSystem.out.println(ss+\"...\");\n\t\t}\n\t\t\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tString s=scan.next().toLowerCase();\n\t\tint k=s.length();\n\t\tif(n>=k)System.out.println(s);\n\t\telse {\n\t\t\tString ss=s.substring(0, n);\n\t\t\tSystem.out.println(ss+\"...\");\n\t\t}\n\t\t\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tString s=scan.next().toLowerCase();\n\t\tint k=s.length();\n\t\tif(n>=k)System.out.println(s);\n\t\telse {\n\t\t\tString ss=s.substring(0, n);\n\t\t\tSystem.out.println(ss+\"...\");\n\t\t}\n\t\t\n\t}",
"main",
"{\n\t\tScanner scan=new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tString s=scan.next().toLowerCase();\n\t\tint k=s.length();\n\t\tif(n>=k)System.out.println(s);\n\t\telse {\n\t\t\tString ss=s.substring(0, n);\n\t\t\tSystem.out.println(ss+\"...\");\n\t\t}\n\t\t\n\t}",
"Scanner scan=new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n=scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"String s=scan.next().toLowerCase();",
"s",
"scan.next().toLowerCase()",
"scan.next().toLowerCase",
"scan.next()",
"scan.next",
"scan",
"int k=s.length();",
"k",
"s.length()",
"s.length",
"s",
"if(n>=k)System.out.println(s);\n\t\telse {\n\t\t\tString ss=s.substring(0, n);\n\t\t\tSystem.out.println(ss+\"...\");\n\t\t}",
"n>=k",
"n",
"k",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"{\n\t\t\tString ss=s.substring(0, n);\n\t\t\tSystem.out.println(ss+\"...\");\n\t\t}",
"String ss=s.substring(0, n);",
"ss",
"s.substring(0, n)",
"s.substring",
"s",
"0",
"n",
"System.out.println(ss+\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"ss+\"...\"",
"ss",
"\"...\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tString s=scan.next().toLowerCase();\n\t\tint k=s.length();\n\t\tif(n>=k)System.out.println(s);\n\t\telse {\n\t\t\tString ss=s.substring(0, n);\n\t\t\tSystem.out.println(ss+\"...\");\n\t\t}\n\t\t\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tString s=scan.next().toLowerCase();\n\t\tint k=s.length();\n\t\tif(n>=k)System.out.println(s);\n\t\telse {\n\t\t\tString ss=s.substring(0, n);\n\t\t\tSystem.out.println(ss+\"...\");\n\t\t}\n\t\t\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan=new Scanner(System.in);
int n=scan.nextInt();
String s=scan.next().toLowerCase();
int k=s.length();
if(n>=k)System.out.println(s);
else {
String ss=s.substring(0, n);
System.out.println(ss+"...");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
41,
13,
4,
18,
13,
17,
13,
4,
18,
18,
13,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
54,
5
],
[
54,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
23,
27
],
[
22,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
31,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
22,
44
],
[
44,
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\tpublic static void main(String[] args){\n\t\tScanner in = new Scanner(System.in);\n\t\tint k = in.nextInt();\n\t\tString s = in.next();\n\t\tif(s.length()>k){\n String new_s = s.substring(0,k);\n\t\tSystem.out.println(new_s + \"...\");\n\t\t}else{\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner in = new Scanner(System.in);\n\t\tint k = in.nextInt();\n\t\tString s = in.next();\n\t\tif(s.length()>k){\n String new_s = s.substring(0,k);\n\t\tSystem.out.println(new_s + \"...\");\n\t\t}else{\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner in = new Scanner(System.in);\n\t\tint k = in.nextInt();\n\t\tString s = in.next();\n\t\tif(s.length()>k){\n String new_s = s.substring(0,k);\n\t\tSystem.out.println(new_s + \"...\");\n\t\t}else{\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner in = new Scanner(System.in);\n\t\tint k = in.nextInt();\n\t\tString s = in.next();\n\t\tif(s.length()>k){\n String new_s = s.substring(0,k);\n\t\tSystem.out.println(new_s + \"...\");\n\t\t}else{\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int k = in.nextInt();",
"k",
"in.nextInt()",
"in.nextInt",
"in",
"String s = in.next();",
"s",
"in.next()",
"in.next",
"in",
"if(s.length()>k){\n String new_s = s.substring(0,k);\n\t\tSystem.out.println(new_s + \"...\");\n\t\t}else{\n\t\t\tSystem.out.println(s);\n\t\t}",
"s.length()>k",
"s.length()",
"s.length",
"s",
"k",
"{\n String new_s = s.substring(0,k);\n\t\tSystem.out.println(new_s + \"...\");\n\t\t}",
"String new_s = s.substring(0,k);",
"new_s",
"s.substring(0,k)",
"s.substring",
"s",
"0",
"k",
"System.out.println(new_s + \"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"new_s + \"...\"",
"new_s",
"\"...\"",
"{\n\t\t\tSystem.out.println(s);\n\t\t}",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner in = new Scanner(System.in);\n\t\tint k = in.nextInt();\n\t\tString s = in.next();\n\t\tif(s.length()>k){\n String new_s = s.substring(0,k);\n\t\tSystem.out.println(new_s + \"...\");\n\t\t}else{\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner in = new Scanner(System.in);\n\t\tint k = in.nextInt();\n\t\tString s = in.next();\n\t\tif(s.length()>k){\n String new_s = s.substring(0,k);\n\t\tSystem.out.println(new_s + \"...\");\n\t\t}else{\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner in = new Scanner(System.in);
int k = in.nextInt();
String s = in.next();
if(s.length()>k){
String new_s = s.substring(0,k);
System.out.println(new_s + "...");
}else{
System.out.println(s);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
4,
18,
13,
30,
0,
13,
4,
18,
13,
17,
13,
4,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
58,
5
],
[
58,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
22,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
31,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
28,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
22,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
6,
55
],
[
55,
56
],
[
0,
57
],
[
57,
58
],
[
57,
59
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint K = scan.nextInt();\n\t\tString S = scan.next();\n\n\t\tif(K < S.length()) {\n\t\t\tS = S.substring(0,K);\n\t\t\tSystem.out.print(S);\n\t\t\tSystem.out.println(\"...\");\n\t\t} else {\n\t\t\tSystem.out.print(S);\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint K = scan.nextInt();\n\t\tString S = scan.next();\n\n\t\tif(K < S.length()) {\n\t\t\tS = S.substring(0,K);\n\t\t\tSystem.out.print(S);\n\t\t\tSystem.out.println(\"...\");\n\t\t} else {\n\t\t\tSystem.out.print(S);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint K = scan.nextInt();\n\t\tString S = scan.next();\n\n\t\tif(K < S.length()) {\n\t\t\tS = S.substring(0,K);\n\t\t\tSystem.out.print(S);\n\t\t\tSystem.out.println(\"...\");\n\t\t} else {\n\t\t\tSystem.out.print(S);\n\t\t}\n\t}",
"main",
"{\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint K = scan.nextInt();\n\t\tString S = scan.next();\n\n\t\tif(K < S.length()) {\n\t\t\tS = S.substring(0,K);\n\t\t\tSystem.out.print(S);\n\t\t\tSystem.out.println(\"...\");\n\t\t} else {\n\t\t\tSystem.out.print(S);\n\t\t}\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int K = scan.nextInt();",
"K",
"scan.nextInt()",
"scan.nextInt",
"scan",
"String S = scan.next();",
"S",
"scan.next()",
"scan.next",
"scan",
"if(K < S.length()) {\n\t\t\tS = S.substring(0,K);\n\t\t\tSystem.out.print(S);\n\t\t\tSystem.out.println(\"...\");\n\t\t} else {\n\t\t\tSystem.out.print(S);\n\t\t}",
"K < S.length()",
"K",
"S.length()",
"S.length",
"S",
"{\n\t\t\tS = S.substring(0,K);\n\t\t\tSystem.out.print(S);\n\t\t\tSystem.out.println(\"...\");\n\t\t}",
"S = S.substring(0,K)",
"S",
"S.substring(0,K)",
"S.substring",
"S",
"0",
"K",
"System.out.print(S)",
"System.out.print",
"System.out",
"System",
"System.out",
"S",
"System.out.println(\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"...\"",
"{\n\t\t\tSystem.out.print(S);\n\t\t}",
"System.out.print(S)",
"System.out.print",
"System.out",
"System",
"System.out",
"S",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint K = scan.nextInt();\n\t\tString S = scan.next();\n\n\t\tif(K < S.length()) {\n\t\t\tS = S.substring(0,K);\n\t\t\tSystem.out.print(S);\n\t\t\tSystem.out.println(\"...\");\n\t\t} else {\n\t\t\tSystem.out.print(S);\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint K = scan.nextInt();\n\t\tString S = scan.next();\n\n\t\tif(K < S.length()) {\n\t\t\tS = S.substring(0,K);\n\t\t\tSystem.out.print(S);\n\t\t\tSystem.out.println(\"...\");\n\t\t} else {\n\t\t\tSystem.out.print(S);\n\t\t}\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int K = scan.nextInt();
String S = scan.next();
if(K < S.length()) {
S = S.substring(0,K);
System.out.print(S);
System.out.println("...");
} else {
System.out.print(S);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
17,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
56,
8
],
[
56,
9
],
[
9,
10
],
[
9,
11
],
[
56,
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
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
29,
33
],
[
28,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
28,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
47,
51
],
[
46,
52
],
[
12,
53
],
[
53,
54
],
[
0,
55
],
[
55,
56
],
[
55,
57
]
] |
[
"import java.io.*;\nimport java.util.*;\n\npublic class Main {\n\n\tstatic long pmod = 1000000007L;\n\n\tpublic static void main(String[] args) throws IOException {\n\n//\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n//\t\tPrintWriter op = new PrintWriter(System.out);\n//\t\tStringTokenizer ste = new StringTokenizer(br.readLine());\n//\n//\t\tStringBuilder ash = new StringBuilder();\n//\t\tfor (int tcs = Integer.parseInt(ste.nextToken()) - 1; tcs >= 0; --tcs) {\n//\n//\t\t\tste = new StringTokenizer(br.readLine());\n//\t\t\tString s1 = ste.nextToken();\n//\n//\t\t}\n//\t\top.print(ash);\n//\t\top.flush();\n\t\tScanner scn = new Scanner(System.in);\n\t\tint k = scn.nextInt();\n\t\tString s = scn.next();\n\t\tif (s.length() <= k)\n\t\t\tSystem.out.println(s);\n\t\telse {\n\t\t\tSystem.out.println(s.substring(0,k) + \"...\");\n\t\t}\n\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n\tstatic long pmod = 1000000007L;\n\n\tpublic static void main(String[] args) throws IOException {\n\n//\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n//\t\tPrintWriter op = new PrintWriter(System.out);\n//\t\tStringTokenizer ste = new StringTokenizer(br.readLine());\n//\n//\t\tStringBuilder ash = new StringBuilder();\n//\t\tfor (int tcs = Integer.parseInt(ste.nextToken()) - 1; tcs >= 0; --tcs) {\n//\n//\t\t\tste = new StringTokenizer(br.readLine());\n//\t\t\tString s1 = ste.nextToken();\n//\n//\t\t}\n//\t\top.print(ash);\n//\t\top.flush();\n\t\tScanner scn = new Scanner(System.in);\n\t\tint k = scn.nextInt();\n\t\tString s = scn.next();\n\t\tif (s.length() <= k)\n\t\t\tSystem.out.println(s);\n\t\telse {\n\t\t\tSystem.out.println(s.substring(0,k) + \"...\");\n\t\t}\n\n\t}\n}",
"Main",
"static long pmod = 1000000007L;",
"pmod",
"1000000007L",
"public static void main(String[] args) throws IOException {\n\n//\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n//\t\tPrintWriter op = new PrintWriter(System.out);\n//\t\tStringTokenizer ste = new StringTokenizer(br.readLine());\n//\n//\t\tStringBuilder ash = new StringBuilder();\n//\t\tfor (int tcs = Integer.parseInt(ste.nextToken()) - 1; tcs >= 0; --tcs) {\n//\n//\t\t\tste = new StringTokenizer(br.readLine());\n//\t\t\tString s1 = ste.nextToken();\n//\n//\t\t}\n//\t\top.print(ash);\n//\t\top.flush();\n\t\tScanner scn = new Scanner(System.in);\n\t\tint k = scn.nextInt();\n\t\tString s = scn.next();\n\t\tif (s.length() <= k)\n\t\t\tSystem.out.println(s);\n\t\telse {\n\t\t\tSystem.out.println(s.substring(0,k) + \"...\");\n\t\t}\n\n\t}",
"main",
"{\n\n//\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n//\t\tPrintWriter op = new PrintWriter(System.out);\n//\t\tStringTokenizer ste = new StringTokenizer(br.readLine());\n//\n//\t\tStringBuilder ash = new StringBuilder();\n//\t\tfor (int tcs = Integer.parseInt(ste.nextToken()) - 1; tcs >= 0; --tcs) {\n//\n//\t\t\tste = new StringTokenizer(br.readLine());\n//\t\t\tString s1 = ste.nextToken();\n//\n//\t\t}\n//\t\top.print(ash);\n//\t\top.flush();\n\t\tScanner scn = new Scanner(System.in);\n\t\tint k = scn.nextInt();\n\t\tString s = scn.next();\n\t\tif (s.length() <= k)\n\t\t\tSystem.out.println(s);\n\t\telse {\n\t\t\tSystem.out.println(s.substring(0,k) + \"...\");\n\t\t}\n\n\t}",
"Scanner scn = new Scanner(System.in);",
"scn",
"new Scanner(System.in)",
"int k = scn.nextInt();",
"k",
"scn.nextInt()",
"scn.nextInt",
"scn",
"String s = scn.next();",
"s",
"scn.next()",
"scn.next",
"scn",
"if (s.length() <= k)\n\t\t\tSystem.out.println(s);\n\t\telse {\n\t\t\tSystem.out.println(s.substring(0,k) + \"...\");\n\t\t}",
"s.length() <= k",
"s.length()",
"s.length",
"s",
"k",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"{\n\t\t\tSystem.out.println(s.substring(0,k) + \"...\");\n\t\t}",
"System.out.println(s.substring(0,k) + \"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"s.substring(0,k) + \"...\"",
"s.substring(0,k)",
"s.substring",
"s",
"0",
"k",
"\"...\"",
"String[] args",
"args",
"public class Main {\n\n\tstatic long pmod = 1000000007L;\n\n\tpublic static void main(String[] args) throws IOException {\n\n//\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n//\t\tPrintWriter op = new PrintWriter(System.out);\n//\t\tStringTokenizer ste = new StringTokenizer(br.readLine());\n//\n//\t\tStringBuilder ash = new StringBuilder();\n//\t\tfor (int tcs = Integer.parseInt(ste.nextToken()) - 1; tcs >= 0; --tcs) {\n//\n//\t\t\tste = new StringTokenizer(br.readLine());\n//\t\t\tString s1 = ste.nextToken();\n//\n//\t\t}\n//\t\top.print(ash);\n//\t\top.flush();\n\t\tScanner scn = new Scanner(System.in);\n\t\tint k = scn.nextInt();\n\t\tString s = scn.next();\n\t\tif (s.length() <= k)\n\t\t\tSystem.out.println(s);\n\t\telse {\n\t\t\tSystem.out.println(s.substring(0,k) + \"...\");\n\t\t}\n\n\t}\n}",
"public class Main {\n\n\tstatic long pmod = 1000000007L;\n\n\tpublic static void main(String[] args) throws IOException {\n\n//\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n//\t\tPrintWriter op = new PrintWriter(System.out);\n//\t\tStringTokenizer ste = new StringTokenizer(br.readLine());\n//\n//\t\tStringBuilder ash = new StringBuilder();\n//\t\tfor (int tcs = Integer.parseInt(ste.nextToken()) - 1; tcs >= 0; --tcs) {\n//\n//\t\t\tste = new StringTokenizer(br.readLine());\n//\t\t\tString s1 = ste.nextToken();\n//\n//\t\t}\n//\t\top.print(ash);\n//\t\top.flush();\n\t\tScanner scn = new Scanner(System.in);\n\t\tint k = scn.nextInt();\n\t\tString s = scn.next();\n\t\tif (s.length() <= k)\n\t\t\tSystem.out.println(s);\n\t\telse {\n\t\t\tSystem.out.println(s.substring(0,k) + \"...\");\n\t\t}\n\n\t}\n}",
"Main"
] |
import java.io.*;
import java.util.*;
public class Main {
static long pmod = 1000000007L;
public static void main(String[] args) throws IOException {
// BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
// PrintWriter op = new PrintWriter(System.out);
// StringTokenizer ste = new StringTokenizer(br.readLine());
//
// StringBuilder ash = new StringBuilder();
// for (int tcs = Integer.parseInt(ste.nextToken()) - 1; tcs >= 0; --tcs) {
//
// ste = new StringTokenizer(br.readLine());
// String s1 = ste.nextToken();
//
// }
// op.print(ash);
// op.flush();
Scanner scn = new Scanner(System.in);
int k = scn.nextInt();
String s = scn.next();
if (s.length() <= k)
System.out.println(s);
else {
System.out.println(s.substring(0,k) + "...");
}
}
}
|
[
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,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
74,
5
],
[
74,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
26,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
25,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
62,
63
],
[
62,
64
],
[
38,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
6,
71
],
[
71,
72
],
[
0,
73
],
[
73,
74
],
[
73,
75
]
] |
[
"import java.util.Scanner;\n \npublic class Main{\n public static void main(String[] args) {\n Scanner in=new Scanner(System.in);\n int k=in.nextInt();\n in.nextLine();\n String s=in.nextLine();\n if(s.length()<=k){\n System.out.println(s);\n }else{\n char ch[]=s.toCharArray();\n for (int i = 0; i < k; i++) {\n System.out.print(ch[i]);\n }\n System.out.println(\"...\");\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args) {\n Scanner in=new Scanner(System.in);\n int k=in.nextInt();\n in.nextLine();\n String s=in.nextLine();\n if(s.length()<=k){\n System.out.println(s);\n }else{\n char ch[]=s.toCharArray();\n for (int i = 0; i < k; i++) {\n System.out.print(ch[i]);\n }\n System.out.println(\"...\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner in=new Scanner(System.in);\n int k=in.nextInt();\n in.nextLine();\n String s=in.nextLine();\n if(s.length()<=k){\n System.out.println(s);\n }else{\n char ch[]=s.toCharArray();\n for (int i = 0; i < k; i++) {\n System.out.print(ch[i]);\n }\n System.out.println(\"...\");\n }\n }",
"main",
"{\n Scanner in=new Scanner(System.in);\n int k=in.nextInt();\n in.nextLine();\n String s=in.nextLine();\n if(s.length()<=k){\n System.out.println(s);\n }else{\n char ch[]=s.toCharArray();\n for (int i = 0; i < k; i++) {\n System.out.print(ch[i]);\n }\n System.out.println(\"...\");\n }\n }",
"Scanner in=new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int k=in.nextInt();",
"k",
"in.nextInt()",
"in.nextInt",
"in",
"in.nextLine()",
"in.nextLine",
"in",
"String s=in.nextLine();",
"s",
"in.nextLine()",
"in.nextLine",
"in",
"if(s.length()<=k){\n System.out.println(s);\n }else{\n char ch[]=s.toCharArray();\n for (int i = 0; i < k; i++) {\n System.out.print(ch[i]);\n }\n System.out.println(\"...\");\n }",
"s.length()<=k",
"s.length()",
"s.length",
"s",
"k",
"{\n System.out.println(s);\n }",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"{\n char ch[]=s.toCharArray();\n for (int i = 0; i < k; i++) {\n System.out.print(ch[i]);\n }\n System.out.println(\"...\");\n }",
"char ch[]=s.toCharArray();",
"ch",
"s.toCharArray()",
"s.toCharArray",
"s",
"for (int i = 0; i < k; i++) {\n System.out.print(ch[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < k",
"i",
"k",
"i++",
"i++",
"i",
"{\n System.out.print(ch[i]);\n }",
"{\n System.out.print(ch[i]);\n }",
"System.out.print(ch[i])",
"System.out.print",
"System.out",
"System",
"System.out",
"ch[i]",
"ch",
"i",
"System.out.println(\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"...\"",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args) {\n Scanner in=new Scanner(System.in);\n int k=in.nextInt();\n in.nextLine();\n String s=in.nextLine();\n if(s.length()<=k){\n System.out.println(s);\n }else{\n char ch[]=s.toCharArray();\n for (int i = 0; i < k; i++) {\n System.out.print(ch[i]);\n }\n System.out.println(\"...\");\n }\n }\n}",
"public class Main{\n public static void main(String[] args) {\n Scanner in=new Scanner(System.in);\n int k=in.nextInt();\n in.nextLine();\n String s=in.nextLine();\n if(s.length()<=k){\n System.out.println(s);\n }else{\n char ch[]=s.toCharArray();\n for (int i = 0; i < k; i++) {\n System.out.print(ch[i]);\n }\n System.out.println(\"...\");\n }\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner in=new Scanner(System.in);
int k=in.nextInt();
in.nextLine();
String s=in.nextLine();
if(s.length()<=k){
System.out.println(s);
}else{
char ch[]=s.toCharArray();
for (int i = 0; i < k; i++) {
System.out.print(ch[i]);
}
System.out.println("...");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
23,
27
],
[
22,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
35,
39
],
[
34,
40
],
[
22,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
6,
47
],
[
47,
48
]
] |
[
"import java.util.*;\nclass Main{\npublic static void main(String[]args){\nScanner sc=new Scanner(System.in);\n int k=sc.nextInt();\n String po=sc.next();\n if(po.length()>k){\n System.out.println(po.substring(0,k)+\"...\");\n }else\n System.out.println(po);\n}\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\npublic static void main(String[]args){\nScanner sc=new Scanner(System.in);\n int k=sc.nextInt();\n String po=sc.next();\n if(po.length()>k){\n System.out.println(po.substring(0,k)+\"...\");\n }else\n System.out.println(po);\n}\n}",
"Main",
"public static void main(String[]args){\nScanner sc=new Scanner(System.in);\n int k=sc.nextInt();\n String po=sc.next();\n if(po.length()>k){\n System.out.println(po.substring(0,k)+\"...\");\n }else\n System.out.println(po);\n}",
"main",
"{\nScanner sc=new Scanner(System.in);\n int k=sc.nextInt();\n String po=sc.next();\n if(po.length()>k){\n System.out.println(po.substring(0,k)+\"...\");\n }else\n System.out.println(po);\n}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k=sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String po=sc.next();",
"po",
"sc.next()",
"sc.next",
"sc",
"if(po.length()>k){\n System.out.println(po.substring(0,k)+\"...\");\n }else\n System.out.println(po);",
"po.length()>k",
"po.length()",
"po.length",
"po",
"k",
"{\n System.out.println(po.substring(0,k)+\"...\");\n }",
"System.out.println(po.substring(0,k)+\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"po.substring(0,k)+\"...\"",
"po.substring(0,k)",
"po.substring",
"po",
"0",
"k",
"\"...\"",
"System.out.println(po)",
"System.out.println",
"System.out",
"System",
"System.out",
"po",
"String[]args",
"args"
] |
import java.util.*;
class Main{
public static void main(String[]args){
Scanner sc=new Scanner(System.in);
int k=sc.nextInt();
String po=sc.next();
if(po.length()>k){
System.out.println(po.substring(0,k)+"...");
}else
System.out.println(po);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
14,
2,
2,
4,
18,
13,
13,
2,
4,
18,
13,
13,
29,
13,
29,
2,
4,
18,
13,
17,
13,
17,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
69,
5
],
[
69,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
[
11,
15
],
[
10,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
16,
20
],
[
9,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
25,
29
],
[
24,
30
],
[
6,
31
],
[
31,
32
],
[
6,
33
],
[
33,
34
],
[
69,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
46,
47
],
[
47,
48
],
[
37,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
37,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
56,
58
],
[
56,
59
],
[
37,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
35,
66
],
[
66,
67
],
[
0,
68
],
[
68,
69
],
[
68,
70
]
] |
[
"\nimport java.util.Scanner;\n\npublic class Main {\n\n private static String solve(String s, int k) {\n if (s.length() == k || s.length() < k)\n return s;\n\n return s.substring(0, k) + \"...\";\n }\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int k = Integer.parseInt(sc.next());\n String s = sc.next();\n String res = solve(s, k);\n System.out.println(res);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n private static String solve(String s, int k) {\n if (s.length() == k || s.length() < k)\n return s;\n\n return s.substring(0, k) + \"...\";\n }\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int k = Integer.parseInt(sc.next());\n String s = sc.next();\n String res = solve(s, k);\n System.out.println(res);\n }\n}",
"Main",
"private static String solve(String s, int k) {\n if (s.length() == k || s.length() < k)\n return s;\n\n return s.substring(0, k) + \"...\";\n }",
"solve",
"{\n if (s.length() == k || s.length() < k)\n return s;\n\n return s.substring(0, k) + \"...\";\n }",
"if (s.length() == k || s.length() < k)\n return s;",
"s.length() == k || s.length() < k",
"s.length() == k",
"s.length()",
"s.length",
"s",
"k",
"s.length() < k",
"s.length()",
"s.length",
"s",
"k",
"return s;",
"s",
"return s.substring(0, k) + \"...\";",
"s.substring(0, k) + \"...\"",
"s.substring(0, k)",
"s.substring",
"s",
"0",
"k",
"\"...\"",
"String s",
"s",
"int k",
"k",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int k = Integer.parseInt(sc.next());\n String s = sc.next();\n String res = solve(s, k);\n System.out.println(res);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int k = Integer.parseInt(sc.next());\n String s = sc.next();\n String res = solve(s, k);\n System.out.println(res);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k = Integer.parseInt(sc.next());",
"k",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"String res = solve(s, k);",
"res",
"solve(s, k)",
"solve",
"s",
"k",
"System.out.println(res)",
"System.out.println",
"System.out",
"System",
"System.out",
"res",
"String[] args",
"args",
"public class Main {\n\n private static String solve(String s, int k) {\n if (s.length() == k || s.length() < k)\n return s;\n\n return s.substring(0, k) + \"...\";\n }\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int k = Integer.parseInt(sc.next());\n String s = sc.next();\n String res = solve(s, k);\n System.out.println(res);\n }\n}",
"public class Main {\n\n private static String solve(String s, int k) {\n if (s.length() == k || s.length() < k)\n return s;\n\n return s.substring(0, k) + \"...\";\n }\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int k = Integer.parseInt(sc.next());\n String s = sc.next();\n String res = solve(s, k);\n System.out.println(res);\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
private static String solve(String s, int k) {
if (s.length() == k || s.length() < k)
return s;
return s.substring(0, k) + "...";
}
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int k = Integer.parseInt(sc.next());
String s = sc.next();
String res = solve(s, k);
System.out.println(res);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
4,
18,
13,
13,
29,
4,
18,
13,
2,
4,
18,
13,
17,
13,
17,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
17,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
25,
26
],
[
25,
27
],
[
0,
28
],
[
160,
29
],
[
160,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
35,
37
],
[
32,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
32,
43
],
[
43,
44
],
[
43,
45
],
[
32,
46
],
[
46,
47
],
[
46,
48
],
[
32,
49
],
[
49,
50
],
[
49,
51
],
[
32,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
52,
56
],
[
52,
57
],
[
32,
58
],
[
58,
59
],
[
59,
60
],
[
30,
61
],
[
61,
62
],
[
160,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
67,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
67,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
79,
83
],
[
78,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
84,
89
],
[
67,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
94,
98
],
[
93,
99
],
[
65,
100
],
[
100,
101
],
[
65,
102
],
[
102,
103
],
[
65,
104
],
[
104,
105
],
[
160,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
106,
110
],
[
110,
111
],
[
106,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
114,
118
],
[
118,
119
],
[
118,
120
],
[
112,
121
],
[
121,
122
],
[
106,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
126,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
140,
141
],
[
136,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
125,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
106,
150
],
[
150,
151
],
[
150,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
154,
157
],
[
157,
158
],
[
0,
159
],
[
159,
160
],
[
159,
161
]
] |
[
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.StringTokenizer;\nimport java.io.IOException;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.InputStream;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n *\n * @author AnandOza\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BTripleDots solver = new BTripleDots();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BTripleDots {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int k = in.nextInt();\n String s = in.next();\n if (s.length() <= k) {\n out.println(s);\n return;\n }\n out.println(s.substring(0, k) + \"...\");\n }\n\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n }\n}\n",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BTripleDots solver = new BTripleDots();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BTripleDots {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int k = in.nextInt();\n String s = in.next();\n if (s.length() <= k) {\n out.println(s);\n return;\n }\n out.println(s.substring(0, k) + \"...\");\n }\n\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BTripleDots solver = new BTripleDots();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BTripleDots solver = new BTripleDots();\n solver.solve(1, in, out);\n out.close();\n }",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"InputReader in = new InputReader(inputStream);",
"in",
"new InputReader(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"BTripleDots solver = new BTripleDots();",
"solver",
"new BTripleDots()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class BTripleDots {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int k = in.nextInt();\n String s = in.next();\n if (s.length() <= k) {\n out.println(s);\n return;\n }\n out.println(s.substring(0, k) + \"...\");\n }\n\n }",
"BTripleDots",
"public void solve(int testNumber, InputReader in, PrintWriter out) {\n int k = in.nextInt();\n String s = in.next();\n if (s.length() <= k) {\n out.println(s);\n return;\n }\n out.println(s.substring(0, k) + \"...\");\n }",
"solve",
"{\n int k = in.nextInt();\n String s = in.next();\n if (s.length() <= k) {\n out.println(s);\n return;\n }\n out.println(s.substring(0, k) + \"...\");\n }",
"int k = in.nextInt();",
"k",
"in.nextInt()",
"in.nextInt",
"in",
"String s = in.next();",
"s",
"in.next()",
"in.next",
"in",
"if (s.length() <= k) {\n out.println(s);\n return;\n }",
"s.length() <= k",
"s.length()",
"s.length",
"s",
"k",
"{\n out.println(s);\n return;\n }",
"out.println(s)",
"out.println",
"out",
"s",
"return;",
"out.println(s.substring(0, k) + \"...\")",
"out.println",
"out",
"s.substring(0, k) + \"...\"",
"s.substring(0, k)",
"s.substring",
"s",
"0",
"k",
"\"...\"",
"int testNumber",
"testNumber",
"InputReader in",
"in",
"PrintWriter out",
"out",
"static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n }",
"InputReader",
"public BufferedReader reader;",
"reader",
"public StringTokenizer tokenizer;",
"tokenizer",
"public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }",
"InputReader",
"{\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }",
"reader = new BufferedReader(new InputStreamReader(stream), 32768)",
"reader",
"new BufferedReader(new InputStreamReader(stream), 32768)",
"tokenizer = null",
"tokenizer",
"null",
"InputStream stream",
"stream",
"public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }",
"next",
"{\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }",
"while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"tokenizer == null || !tokenizer.hasMoreTokens()",
"tokenizer == null",
"tokenizer",
"null",
"!tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens",
"tokenizer",
"{\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }",
"catch (IOException e) {\n throw new RuntimeException(e);\n }",
"IOException e",
"{\n throw new RuntimeException(e);\n }",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n tokenizer = new StringTokenizer(reader.readLine());\n }",
"tokenizer = new StringTokenizer(reader.readLine())",
"tokenizer",
"new StringTokenizer(reader.readLine())",
"return tokenizer.nextToken();",
"tokenizer.nextToken()",
"tokenizer.nextToken",
"tokenizer",
"public int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BTripleDots solver = new BTripleDots();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BTripleDots {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int k = in.nextInt();\n String s = in.next();\n if (s.length() <= k) {\n out.println(s);\n return;\n }\n out.println(s.substring(0, k) + \"...\");\n }\n\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BTripleDots solver = new BTripleDots();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BTripleDots {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int k = in.nextInt();\n String s = in.next();\n if (s.length() <= k) {\n out.println(s);\n return;\n }\n out.println(s.substring(0, k) + \"...\");\n }\n\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n }\n}",
"Main"
] |
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.StringTokenizer;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.InputStream;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*
* @author AnandOza
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
InputReader in = new InputReader(inputStream);
PrintWriter out = new PrintWriter(outputStream);
BTripleDots solver = new BTripleDots();
solver.solve(1, in, out);
out.close();
}
static class BTripleDots {
public void solve(int testNumber, InputReader in, PrintWriter out) {
int k = in.nextInt();
String s = in.next();
if (s.length() <= k) {
out.println(s);
return;
}
out.println(s.substring(0, k) + "...");
}
}
static class InputReader {
public BufferedReader reader;
public StringTokenizer tokenizer;
public InputReader(InputStream stream) {
reader = new BufferedReader(new InputStreamReader(stream), 32768);
tokenizer = null;
}
public String next() {
while (tokenizer == null || !tokenizer.hasMoreTokens()) {
try {
tokenizer = new StringTokenizer(reader.readLine());
} catch (IOException e) {
throw new RuntimeException(e);
}
}
return tokenizer.nextToken();
}
public int nextInt() {
return Integer.parseInt(next());
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
13,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
29,
8,
2,
4,
18,
13,
13,
13,
4,
18,
13,
17,
4,
18,
13,
17,
13,
23,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
61,
5
],
[
61,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
27,
29
],
[
27,
30
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
6,
34
],
[
34,
35
],
[
61,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
41,
45
],
[
40,
46
],
[
40,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
47,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
51,
55
],
[
36,
56
],
[
56,
57
],
[
36,
58
],
[
58,
59
],
[
0,
60
],
[
60,
61
],
[
60,
62
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int K = sc.nextInt();\n String S = sc.next();\n\n System.out.println(solve(K, S));\n\n sc.close();\n }\n\n static String solve(int K, String S) {\n return (S.length() <= K) ? S : String.format(\"%s...\", S.substring(0, K));\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int K = sc.nextInt();\n String S = sc.next();\n\n System.out.println(solve(K, S));\n\n sc.close();\n }\n\n static String solve(int K, String S) {\n return (S.length() <= K) ? S : String.format(\"%s...\", S.substring(0, K));\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int K = sc.nextInt();\n String S = sc.next();\n\n System.out.println(solve(K, S));\n\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int K = sc.nextInt();\n String S = sc.next();\n\n System.out.println(solve(K, S));\n\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String S = sc.next();",
"S",
"sc.next()",
"sc.next",
"sc",
"System.out.println(solve(K, S))",
"System.out.println",
"System.out",
"System",
"System.out",
"solve(K, S)",
"solve",
"K",
"S",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"static String solve(int K, String S) {\n return (S.length() <= K) ? S : String.format(\"%s...\", S.substring(0, K));\n }",
"solve",
"{\n return (S.length() <= K) ? S : String.format(\"%s...\", S.substring(0, K));\n }",
"return (S.length() <= K) ? S : String.format(\"%s...\", S.substring(0, K));",
"(S.length() <= K) ? S : String.format(\"%s...\", S.substring(0, K))",
"(S.length() <= K)",
"S.length()",
"S.length",
"S",
"K",
"S",
"String.format(\"%s...\", S.substring(0, K))",
"String.format",
"String",
"\"%s...\"",
"S.substring(0, K)",
"S.substring",
"S",
"0",
"K",
"int K",
"K",
"String S",
"S",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int K = sc.nextInt();\n String S = sc.next();\n\n System.out.println(solve(K, S));\n\n sc.close();\n }\n\n static String solve(int K, String S) {\n return (S.length() <= K) ? S : String.format(\"%s...\", S.substring(0, K));\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int K = sc.nextInt();\n String S = sc.next();\n\n System.out.println(solve(K, S));\n\n sc.close();\n }\n\n static String solve(int K, String S) {\n return (S.length() <= K) ? S : String.format(\"%s...\", S.substring(0, K));\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
String S = sc.next();
System.out.println(solve(K, S));
sc.close();
}
static String solve(int K, String S) {
return (S.length() <= K) ? S : String.format("%s...", S.substring(0, K));
}
}
|
[
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,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
54,
5
],
[
54,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
26,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
25,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
45,
49
],
[
44,
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) throws Exception {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();sc.nextLine();\n String S =sc.nextLine();\n \n if(S.length() <= K){\n System.out.println(S);\n }else{\n System.out.println(S.substring(0,K)+\"...\");\n }\n \n }\n \n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();sc.nextLine();\n String S =sc.nextLine();\n \n if(S.length() <= K){\n System.out.println(S);\n }else{\n System.out.println(S.substring(0,K)+\"...\");\n }\n \n }\n \n}",
"Main",
"public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();sc.nextLine();\n String S =sc.nextLine();\n \n if(S.length() <= K){\n System.out.println(S);\n }else{\n System.out.println(S.substring(0,K)+\"...\");\n }\n \n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();sc.nextLine();\n String S =sc.nextLine();\n \n if(S.length() <= K){\n System.out.println(S);\n }else{\n System.out.println(S.substring(0,K)+\"...\");\n }\n \n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String S =sc.nextLine();",
"S",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if(S.length() <= K){\n System.out.println(S);\n }else{\n System.out.println(S.substring(0,K)+\"...\");\n }",
"S.length() <= K",
"S.length()",
"S.length",
"S",
"K",
"{\n System.out.println(S);\n }",
"System.out.println(S)",
"System.out.println",
"System.out",
"System",
"System.out",
"S",
"{\n System.out.println(S.substring(0,K)+\"...\");\n }",
"System.out.println(S.substring(0,K)+\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"S.substring(0,K)+\"...\"",
"S.substring(0,K)",
"S.substring",
"S",
"0",
"K",
"\"...\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();sc.nextLine();\n String S =sc.nextLine();\n \n if(S.length() <= K){\n System.out.println(S);\n }else{\n System.out.println(S.substring(0,K)+\"...\");\n }\n \n }\n \n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();sc.nextLine();\n String S =sc.nextLine();\n \n if(S.length() <= K){\n System.out.println(S);\n }else{\n System.out.println(S.substring(0,K)+\"...\");\n }\n \n }\n \n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();sc.nextLine();
String S =sc.nextLine();
if(S.length() <= K){
System.out.println(S);
}else{
System.out.println(S.substring(0,K)+"...");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
17,
41,
13,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
13,
4,
18,
13,
28,
13,
4,
18,
13,
30,
30,
40,
13,
4,
18,
18,
13,
13,
13,
14,
2,
13,
13,
3,
14,
2,
13,
13,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
72,
5
],
[
72,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
8,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
8,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
34,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
40,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
54,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
6,
69
],
[
69,
70
],
[
0,
71
],
[
71,
72
],
[
71,
73
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner tan = new Scanner(System.in);\n int n,i=0,l;\n n = tan.nextInt();\n String st=tan.next();\n l=st.length();\n for(char c : st.toCharArray()){i++;\n System.out.print(c);\n if(i==n)\n break;\n }\n if(l>n)\n System.out.println(\"...\");\n else\n System.out.println();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner tan = new Scanner(System.in);\n int n,i=0,l;\n n = tan.nextInt();\n String st=tan.next();\n l=st.length();\n for(char c : st.toCharArray()){i++;\n System.out.print(c);\n if(i==n)\n break;\n }\n if(l>n)\n System.out.println(\"...\");\n else\n System.out.println();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner tan = new Scanner(System.in);\n int n,i=0,l;\n n = tan.nextInt();\n String st=tan.next();\n l=st.length();\n for(char c : st.toCharArray()){i++;\n System.out.print(c);\n if(i==n)\n break;\n }\n if(l>n)\n System.out.println(\"...\");\n else\n System.out.println();\n }",
"main",
"{\n Scanner tan = new Scanner(System.in);\n int n,i=0,l;\n n = tan.nextInt();\n String st=tan.next();\n l=st.length();\n for(char c : st.toCharArray()){i++;\n System.out.print(c);\n if(i==n)\n break;\n }\n if(l>n)\n System.out.println(\"...\");\n else\n System.out.println();\n }",
"Scanner tan = new Scanner(System.in);",
"tan",
"new Scanner(System.in)",
"int n",
"n",
"i=0",
"i",
"0",
"l;",
"l",
"n = tan.nextInt()",
"n",
"tan.nextInt()",
"tan.nextInt",
"tan",
"String st=tan.next();",
"st",
"tan.next()",
"tan.next",
"tan",
"l=st.length()",
"l",
"st.length()",
"st.length",
"st",
"for(char c : st.toCharArray()){i++;\n System.out.print(c);\n if(i==n)\n break;\n }",
"char c",
"st.toCharArray()",
"st.toCharArray",
"st",
"{i++;\n System.out.print(c);\n if(i==n)\n break;\n }",
"{i++;\n System.out.print(c);\n if(i==n)\n break;\n }",
"i++",
"i",
"System.out.print(c)",
"System.out.print",
"System.out",
"System",
"System.out",
"c",
"if(i==n)\n break;",
"i==n",
"i",
"n",
"break;",
"if(l>n)\n System.out.println(\"...\");\n else\n System.out.println();",
"l>n",
"l",
"n",
"System.out.println(\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"...\"",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner tan = new Scanner(System.in);\n int n,i=0,l;\n n = tan.nextInt();\n String st=tan.next();\n l=st.length();\n for(char c : st.toCharArray()){i++;\n System.out.print(c);\n if(i==n)\n break;\n }\n if(l>n)\n System.out.println(\"...\");\n else\n System.out.println();\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner tan = new Scanner(System.in);\n int n,i=0,l;\n n = tan.nextInt();\n String st=tan.next();\n l=st.length();\n for(char c : st.toCharArray()){i++;\n System.out.print(c);\n if(i==n)\n break;\n }\n if(l>n)\n System.out.println(\"...\");\n else\n System.out.println();\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner tan = new Scanner(System.in);
int n,i=0,l;
n = tan.nextInt();
String st=tan.next();
l=st.length();
for(char c : st.toCharArray()){i++;
System.out.print(c);
if(i==n)
break;
}
if(l>n)
System.out.println("...");
else
System.out.println();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
54,
5
],
[
54,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
27,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
45,
49
],
[
44,
50
],
[
6,
51
],
[
51,
52
],
[
0,
53
],
[
53,
54
],
[
53,
55
]
] |
[
"import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t int K = s.nextInt();\n\t String S = s.next();\n\t int lenS = S.length();\n\t if(lenS <= K) {System.out.println(S);}\n\t else {\n\t \tSystem.out.println(S.substring(0,K)+\"...\");\n\t \t\n\t }\n\t\t\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t int K = s.nextInt();\n\t String S = s.next();\n\t int lenS = S.length();\n\t if(lenS <= K) {System.out.println(S);}\n\t else {\n\t \tSystem.out.println(S.substring(0,K)+\"...\");\n\t \t\n\t }\n\t\t\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t int K = s.nextInt();\n\t String S = s.next();\n\t int lenS = S.length();\n\t if(lenS <= K) {System.out.println(S);}\n\t else {\n\t \tSystem.out.println(S.substring(0,K)+\"...\");\n\t \t\n\t }\n\t\t\n\t}",
"main",
"{\n\t\tScanner s = new Scanner(System.in);\n\t int K = s.nextInt();\n\t String S = s.next();\n\t int lenS = S.length();\n\t if(lenS <= K) {System.out.println(S);}\n\t else {\n\t \tSystem.out.println(S.substring(0,K)+\"...\");\n\t \t\n\t }\n\t\t\n\t}",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int K = s.nextInt();",
"K",
"s.nextInt()",
"s.nextInt",
"s",
"String S = s.next();",
"S",
"s.next()",
"s.next",
"s",
"int lenS = S.length();",
"lenS",
"S.length()",
"S.length",
"S",
"if(lenS <= K) {System.out.println(S);}\n\t else {\n\t \tSystem.out.println(S.substring(0,K)+\"...\");\n\t \t\n\t }",
"lenS <= K",
"lenS",
"K",
"{System.out.println(S);}",
"System.out.println(S)",
"System.out.println",
"System.out",
"System",
"System.out",
"S",
"{\n\t \tSystem.out.println(S.substring(0,K)+\"...\");\n\t \t\n\t }",
"System.out.println(S.substring(0,K)+\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"S.substring(0,K)+\"...\"",
"S.substring(0,K)",
"S.substring",
"S",
"0",
"K",
"\"...\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t int K = s.nextInt();\n\t String S = s.next();\n\t int lenS = S.length();\n\t if(lenS <= K) {System.out.println(S);}\n\t else {\n\t \tSystem.out.println(S.substring(0,K)+\"...\");\n\t \t\n\t }\n\t\t\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t int K = s.nextInt();\n\t String S = s.next();\n\t int lenS = S.length();\n\t if(lenS <= K) {System.out.println(S);}\n\t else {\n\t \tSystem.out.println(S.substring(0,K)+\"...\");\n\t \t\n\t }\n\t\t\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int K = s.nextInt();
String S = s.next();
int lenS = S.length();
if(lenS <= K) {System.out.println(S);}
else {
System.out.println(S.substring(0,K)+"...");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
4,
18,
13,
30,
4,
18,
18,
13,
13,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
67,
5
],
[
67,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
22,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
22,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
35,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
6,
64
],
[
64,
65
],
[
0,
66
],
[
66,
67
],
[
66,
68
]
] |
[
"import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int k = scan.nextInt();\n String s = scan.next();\n if (k>=s.length()){\n System.out.println(s);\n }\n else{\n for (int i=0;i<k;i++){\n System.out.print(s.charAt(i));\n }\n System.out.println(\"...\");\n }\n\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int k = scan.nextInt();\n String s = scan.next();\n if (k>=s.length()){\n System.out.println(s);\n }\n else{\n for (int i=0;i<k;i++){\n System.out.print(s.charAt(i));\n }\n System.out.println(\"...\");\n }\n\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int k = scan.nextInt();\n String s = scan.next();\n if (k>=s.length()){\n System.out.println(s);\n }\n else{\n for (int i=0;i<k;i++){\n System.out.print(s.charAt(i));\n }\n System.out.println(\"...\");\n }\n\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n int k = scan.nextInt();\n String s = scan.next();\n if (k>=s.length()){\n System.out.println(s);\n }\n else{\n for (int i=0;i<k;i++){\n System.out.print(s.charAt(i));\n }\n System.out.println(\"...\");\n }\n\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int k = scan.nextInt();",
"k",
"scan.nextInt()",
"scan.nextInt",
"scan",
"String s = scan.next();",
"s",
"scan.next()",
"scan.next",
"scan",
"if (k>=s.length()){\n System.out.println(s);\n }\n else{\n for (int i=0;i<k;i++){\n System.out.print(s.charAt(i));\n }\n System.out.println(\"...\");\n }",
"k>=s.length()",
"k",
"s.length()",
"s.length",
"s",
"{\n System.out.println(s);\n }",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"{\n for (int i=0;i<k;i++){\n System.out.print(s.charAt(i));\n }\n System.out.println(\"...\");\n }",
"for (int i=0;i<k;i++){\n System.out.print(s.charAt(i));\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<k",
"i",
"k",
"i++",
"i++",
"i",
"{\n System.out.print(s.charAt(i));\n }",
"{\n System.out.print(s.charAt(i));\n }",
"System.out.print(s.charAt(i))",
"System.out.print",
"System.out",
"System",
"System.out",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"System.out.println(\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"...\"",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int k = scan.nextInt();\n String s = scan.next();\n if (k>=s.length()){\n System.out.println(s);\n }\n else{\n for (int i=0;i<k;i++){\n System.out.print(s.charAt(i));\n }\n System.out.println(\"...\");\n }\n\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int k = scan.nextInt();\n String s = scan.next();\n if (k>=s.length()){\n System.out.println(s);\n }\n else{\n for (int i=0;i<k;i++){\n System.out.print(s.charAt(i));\n }\n System.out.println(\"...\");\n }\n\n }\n}",
"Main"
] |
import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int k = scan.nextInt();
String s = scan.next();
if (k>=s.length()){
System.out.println(s);
}
else{
for (int i=0;i<k;i++){
System.out.print(s.charAt(i));
}
System.out.println("...");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
2,
13,
13,
30,
0,
13,
4,
18,
13,
13,
30,
0,
13,
17,
3,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
68,
5
],
[
68,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
25,
35
],
[
35,
36
],
[
36,
37
],
[
25,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
40,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
8,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
8,
62
],
[
62,
63
],
[
63,
64
],
[
6,
65
],
[
65,
66
],
[
0,
67
],
[
67,
68
],
[
67,
69
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner kb = new Scanner(System.in);\n\t\tint k = kb.nextInt();\n\t\tString s = kb.next();\n\t\tString q = \"\";\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tif (i < k) {\n\t\t\t\tq += s.charAt(i);\n\t\t\t} else {\n\t\t\t\tq += \"...\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(q);\n\t\tkb.close();\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner kb = new Scanner(System.in);\n\t\tint k = kb.nextInt();\n\t\tString s = kb.next();\n\t\tString q = \"\";\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tif (i < k) {\n\t\t\t\tq += s.charAt(i);\n\t\t\t} else {\n\t\t\t\tq += \"...\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(q);\n\t\tkb.close();\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner kb = new Scanner(System.in);\n\t\tint k = kb.nextInt();\n\t\tString s = kb.next();\n\t\tString q = \"\";\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tif (i < k) {\n\t\t\t\tq += s.charAt(i);\n\t\t\t} else {\n\t\t\t\tq += \"...\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(q);\n\t\tkb.close();\n\t}",
"main",
"{\n\t\t// TODO Auto-generated method stub\n\t\tScanner kb = new Scanner(System.in);\n\t\tint k = kb.nextInt();\n\t\tString s = kb.next();\n\t\tString q = \"\";\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tif (i < k) {\n\t\t\t\tq += s.charAt(i);\n\t\t\t} else {\n\t\t\t\tq += \"...\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(q);\n\t\tkb.close();\n\t}",
"Scanner kb = new Scanner(System.in);",
"kb",
"new Scanner(System.in)",
"int k = kb.nextInt();",
"k",
"kb.nextInt()",
"kb.nextInt",
"kb",
"String s = kb.next();",
"s",
"kb.next()",
"kb.next",
"kb",
"String q = \"\";",
"q",
"\"\"",
"for (int i = 0; i < s.length(); i++) {\n\t\t\tif (i < k) {\n\t\t\t\tq += s.charAt(i);\n\t\t\t} else {\n\t\t\t\tq += \"...\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < s.length()",
"i",
"s.length()",
"s.length",
"s",
"i++",
"i++",
"i",
"{\n\t\t\tif (i < k) {\n\t\t\t\tq += s.charAt(i);\n\t\t\t} else {\n\t\t\t\tq += \"...\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (i < k) {\n\t\t\t\tq += s.charAt(i);\n\t\t\t} else {\n\t\t\t\tq += \"...\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"if (i < k) {\n\t\t\t\tq += s.charAt(i);\n\t\t\t} else {\n\t\t\t\tq += \"...\";\n\t\t\t\tbreak;\n\t\t\t}",
"i < k",
"i",
"k",
"{\n\t\t\t\tq += s.charAt(i);\n\t\t\t}",
"q += s.charAt(i)",
"q",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"{\n\t\t\t\tq += \"...\";\n\t\t\t\tbreak;\n\t\t\t}",
"q += \"...\"",
"q",
"\"...\"",
"break;",
"System.out.println(q)",
"System.out.println",
"System.out",
"System",
"System.out",
"q",
"kb.close()",
"kb.close",
"kb",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner kb = new Scanner(System.in);\n\t\tint k = kb.nextInt();\n\t\tString s = kb.next();\n\t\tString q = \"\";\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tif (i < k) {\n\t\t\t\tq += s.charAt(i);\n\t\t\t} else {\n\t\t\t\tq += \"...\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(q);\n\t\tkb.close();\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner kb = new Scanner(System.in);\n\t\tint k = kb.nextInt();\n\t\tString s = kb.next();\n\t\tString q = \"\";\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tif (i < k) {\n\t\t\t\tq += s.charAt(i);\n\t\t\t} else {\n\t\t\t\tq += \"...\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(q);\n\t\tkb.close();\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner kb = new Scanner(System.in);
int k = kb.nextInt();
String s = kb.next();
String q = "";
for (int i = 0; i < s.length(); i++) {
if (i < k) {
q += s.charAt(i);
} else {
q += "...";
break;
}
}
System.out.println(q);
kb.close();
}
}
|
[
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,
4,
18,
13,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
4,
18,
13,
17,
13,
4,
18,
18,
13,
13,
2,
13,
17,
4,
18,
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
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
30,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
44,
48
],
[
41,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
8,
57
],
[
57,
58
],
[
58,
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) {\n Scanner scan = new Scanner(System.in);\n int k = Integer.parseInt(scan.nextLine());\n String s = scan.nextLine();\n \n int length = s.length();\n\n if(k >= length){\n System.out.println(s);\n }else{\n String tmp = s.substring(0, k);\n System.out.println(tmp + \"...\");\n }\n\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 int k = Integer.parseInt(scan.nextLine());\n String s = scan.nextLine();\n \n int length = s.length();\n\n if(k >= length){\n System.out.println(s);\n }else{\n String tmp = s.substring(0, k);\n System.out.println(tmp + \"...\");\n }\n\n scan.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int k = Integer.parseInt(scan.nextLine());\n String s = scan.nextLine();\n \n int length = s.length();\n\n if(k >= length){\n System.out.println(s);\n }else{\n String tmp = s.substring(0, k);\n System.out.println(tmp + \"...\");\n }\n\n scan.close();\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n int k = Integer.parseInt(scan.nextLine());\n String s = scan.nextLine();\n \n int length = s.length();\n\n if(k >= length){\n System.out.println(s);\n }else{\n String tmp = s.substring(0, k);\n System.out.println(tmp + \"...\");\n }\n\n scan.close();\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int k = Integer.parseInt(scan.nextLine());",
"k",
"Integer.parseInt(scan.nextLine())",
"Integer.parseInt",
"Integer",
"scan.nextLine()",
"scan.nextLine",
"scan",
"String s = scan.nextLine();",
"s",
"scan.nextLine()",
"scan.nextLine",
"scan",
"int length = s.length();",
"length",
"s.length()",
"s.length",
"s",
"if(k >= length){\n System.out.println(s);\n }else{\n String tmp = s.substring(0, k);\n System.out.println(tmp + \"...\");\n }",
"k >= length",
"k",
"length",
"{\n System.out.println(s);\n }",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"{\n String tmp = s.substring(0, k);\n System.out.println(tmp + \"...\");\n }",
"String tmp = s.substring(0, k);",
"tmp",
"s.substring(0, k)",
"s.substring",
"s",
"0",
"k",
"System.out.println(tmp + \"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"tmp + \"...\"",
"tmp",
"\"...\"",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int k = Integer.parseInt(scan.nextLine());\n String s = scan.nextLine();\n \n int length = s.length();\n\n if(k >= length){\n System.out.println(s);\n }else{\n String tmp = s.substring(0, k);\n System.out.println(tmp + \"...\");\n }\n\n scan.close();\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int k = Integer.parseInt(scan.nextLine());\n String s = scan.nextLine();\n \n int length = s.length();\n\n if(k >= length){\n System.out.println(s);\n }else{\n String tmp = s.substring(0, k);\n System.out.println(tmp + \"...\");\n }\n\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);
int k = Integer.parseInt(scan.nextLine());
String s = scan.nextLine();
int length = s.length();
if(k >= length){
System.out.println(s);
}else{
String tmp = s.substring(0, k);
System.out.println(tmp + "...");
}
scan.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
13,
30,
41,
13,
4,
18,
13,
17,
13,
4,
18,
18,
13,
13,
2,
13,
17,
30,
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
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
34,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
27,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
6,
54
],
[
54,
55
],
[
0,
56
],
[
56,
57
],
[
56,
58
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint K = sc.nextInt();\n\t\tString S = sc.next();\n\n\t\tint A = S.length();\n\n\t\tif (A > K) {\n\n\t\t\tString B = S.substring(0, K);\n\n\t\t\tSystem.out.print(B + \"...\");\n\t\t} else {\n\t\t\tSystem.out.print(S);\n\t\t}\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint K = sc.nextInt();\n\t\tString S = sc.next();\n\n\t\tint A = S.length();\n\n\t\tif (A > K) {\n\n\t\t\tString B = S.substring(0, K);\n\n\t\t\tSystem.out.print(B + \"...\");\n\t\t} else {\n\t\t\tSystem.out.print(S);\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint K = sc.nextInt();\n\t\tString S = sc.next();\n\n\t\tint A = S.length();\n\n\t\tif (A > K) {\n\n\t\t\tString B = S.substring(0, K);\n\n\t\t\tSystem.out.print(B + \"...\");\n\t\t} else {\n\t\t\tSystem.out.print(S);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint K = sc.nextInt();\n\t\tString S = sc.next();\n\n\t\tint A = S.length();\n\n\t\tif (A > K) {\n\n\t\t\tString B = S.substring(0, K);\n\n\t\t\tSystem.out.print(B + \"...\");\n\t\t} else {\n\t\t\tSystem.out.print(S);\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String S = sc.next();",
"S",
"sc.next()",
"sc.next",
"sc",
"int A = S.length();",
"A",
"S.length()",
"S.length",
"S",
"if (A > K) {\n\n\t\t\tString B = S.substring(0, K);\n\n\t\t\tSystem.out.print(B + \"...\");\n\t\t} else {\n\t\t\tSystem.out.print(S);\n\t\t}",
"A > K",
"A",
"K",
"{\n\n\t\t\tString B = S.substring(0, K);\n\n\t\t\tSystem.out.print(B + \"...\");\n\t\t}",
"String B = S.substring(0, K);",
"B",
"S.substring(0, K)",
"S.substring",
"S",
"0",
"K",
"System.out.print(B + \"...\")",
"System.out.print",
"System.out",
"System",
"System.out",
"B + \"...\"",
"B",
"\"...\"",
"{\n\t\t\tSystem.out.print(S);\n\t\t}",
"System.out.print(S)",
"System.out.print",
"System.out",
"System",
"System.out",
"S",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint K = sc.nextInt();\n\t\tString S = sc.next();\n\n\t\tint A = S.length();\n\n\t\tif (A > K) {\n\n\t\t\tString B = S.substring(0, K);\n\n\t\t\tSystem.out.print(B + \"...\");\n\t\t} else {\n\t\t\tSystem.out.print(S);\n\t\t}\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint K = sc.nextInt();\n\t\tString S = sc.next();\n\n\t\tint A = S.length();\n\n\t\tif (A > K) {\n\n\t\t\tString B = S.substring(0, K);\n\n\t\t\tSystem.out.print(B + \"...\");\n\t\t} else {\n\t\t\tSystem.out.print(S);\n\t\t}\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
String S = sc.next();
int A = S.length();
if (A > K) {
String B = S.substring(0, K);
System.out.print(B + "...");
} else {
System.out.print(S);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
54,
5
],
[
54,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
26,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
25,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
45,
49
],
[
44,
50
],
[
6,
51
],
[
51,
52
],
[
0,
53
],
[
53,
54
],
[
53,
55
]
] |
[
"\n\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n int num = scan.nextInt();\n String str = scan.next();\n scan.close();\n\n if (str.length() <= num) {\n System.out.println(str);\n } else {\n System.out.println(str.substring(0, num) + \"...\");\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n int num = scan.nextInt();\n String str = scan.next();\n scan.close();\n\n if (str.length() <= num) {\n System.out.println(str);\n } else {\n System.out.println(str.substring(0, num) + \"...\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n int num = scan.nextInt();\n String str = scan.next();\n scan.close();\n\n if (str.length() <= num) {\n System.out.println(str);\n } else {\n System.out.println(str.substring(0, num) + \"...\");\n }\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n\n int num = scan.nextInt();\n String str = scan.next();\n scan.close();\n\n if (str.length() <= num) {\n System.out.println(str);\n } else {\n System.out.println(str.substring(0, num) + \"...\");\n }\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int num = scan.nextInt();",
"num",
"scan.nextInt()",
"scan.nextInt",
"scan",
"String str = scan.next();",
"str",
"scan.next()",
"scan.next",
"scan",
"scan.close()",
"scan.close",
"scan",
"if (str.length() <= num) {\n System.out.println(str);\n } else {\n System.out.println(str.substring(0, num) + \"...\");\n }",
"str.length() <= num",
"str.length()",
"str.length",
"str",
"num",
"{\n System.out.println(str);\n }",
"System.out.println(str)",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"{\n System.out.println(str.substring(0, num) + \"...\");\n }",
"System.out.println(str.substring(0, num) + \"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"str.substring(0, num) + \"...\"",
"str.substring(0, num)",
"str.substring",
"str",
"0",
"num",
"\"...\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n int num = scan.nextInt();\n String str = scan.next();\n scan.close();\n\n if (str.length() <= num) {\n System.out.println(str);\n } else {\n System.out.println(str.substring(0, num) + \"...\");\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n int num = scan.nextInt();\n String str = scan.next();\n scan.close();\n\n if (str.length() <= num) {\n System.out.println(str);\n } else {\n System.out.println(str.substring(0, num) + \"...\");\n }\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int num = scan.nextInt();
String str = scan.next();
scan.close();
if (str.length() <= num) {
System.out.println(str);
} else {
System.out.println(str.substring(0, num) + "...");
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
41,
13,
4,
18,
13,
17,
13,
0,
13,
17,
4,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
41,
13,
4,
13,
41,
13,
20,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
14,
2,
4,
18,
13,
17,
17,
30,
0,
13,
17,
40,
13,
11,
1,
41,
13,
13,
2,
13,
4,
18,
13,
1,
40,
13,
30,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
4,
18,
13,
4,
18,
13,
0,
13,
20,
0,
13,
17,
30,
4,
18,
13,
4,
18,
13,
13,
14,
13,
0,
13,
17,
0,
13,
2,
4,
18,
13,
4,
18,
13,
13,
29,
2,
13,
8,
13,
40,
17,
17,
12,
13,
30,
29,
4,
18,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
236,
17
],
[
236,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
20,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
20,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
35,
39
],
[
34,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
43,
47
],
[
40,
48
],
[
48,
49
],
[
48,
50
],
[
40,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
34,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
18,
63
],
[
63,
64
],
[
0,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
65,
69
],
[
69,
70
],
[
65,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
71,
77
],
[
77,
78
],
[
65,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
82,
91
],
[
91,
92
],
[
91,
93
],
[
81,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
65,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
102,
105
],
[
105,
106
],
[
65,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
111,
114
],
[
114,
115
],
[
65,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
65,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
125,
130
],
[
130,
131
],
[
130,
132
],
[
125,
133
],
[
133,
134
],
[
133,
135
],
[
125,
136
],
[
136,
137
],
[
136,
138
],
[
125,
139
],
[
139,
140
],
[
139,
141
],
[
125,
142
],
[
142,
143
],
[
142,
144
],
[
125,
145
],
[
145,
146
],
[
145,
147
],
[
125,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
150,
153
],
[
149,
154
],
[
148,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
155,
159
],
[
159,
160
],
[
125,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
161,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
169,
170
],
[
161,
171
],
[
171,
172
],
[
172,
173
],
[
161,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
177,
180
],
[
176,
181
],
[
175,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
185,
186
],
[
186,
187
],
[
185,
188
],
[
188,
189
],
[
189,
190
],
[
182,
191
],
[
191,
192
],
[
191,
193
],
[
182,
194
],
[
194,
195
],
[
194,
196
],
[
175,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
198,
201
],
[
201,
202
],
[
202,
203
],
[
201,
204
],
[
197,
205
],
[
205,
206
],
[
205,
207
],
[
207,
208
],
[
207,
209
],
[
125,
210
],
[
210,
211
],
[
210,
212
],
[
212,
213
],
[
213,
214
],
[
214,
215
],
[
213,
216
],
[
216,
217
],
[
217,
218
],
[
212,
219
],
[
125,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
223,
224
],
[
223,
225
],
[
225,
226
],
[
223,
227
],
[
65,
228
],
[
228,
229
],
[
228,
230
],
[
230,
231
],
[
231,
232
],
[
232,
233
],
[
233,
234
],
[
0,
235
],
[
235,
236
],
[
235,
237
]
] |
[
"\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.util.*;\n\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n Scanner s = new Scanner(System.in);\n int k = s.nextInt();\n String word = s.next();\n\n if(word.length()>k){\n String res = word.substring(0,k);\n res+=\"...\";\n System.out.println(res);\n }\n else System.out.println(word);\n }\n}\n\n\n\n\nclass Scanner\n{\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s){\tbr = new BufferedReader(new InputStreamReader(s));}\n\n public String next() throws IOException\n {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {return Integer.parseInt(next());}\n\n public long nextLong() throws IOException {return Long.parseLong(next());}\n\n public String nextLine() throws IOException {return br.readLine();}\n\n public double nextDouble() throws IOException\n {\n String x = next();\n StringBuilder sb = new StringBuilder(\"0\");\n double res = 0, f = 1;\n boolean dec = false, neg = false;\n int start = 0;\n if(x.charAt(0) == '-')\n {\n neg = true;\n start++;\n }\n for(int i = start; i < x.length(); i++)\n if(x.charAt(i) == '.')\n {\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n }\n else\n {\n sb.append(x.charAt(i));\n if(dec)\n f *= 10;\n }\n res += Long.parseLong(sb.toString()) / f;\n return res * (neg?-1:1);\n }\n\n public boolean ready() throws IOException {return br.ready();}\n\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n Scanner s = new Scanner(System.in);\n int k = s.nextInt();\n String word = s.next();\n\n if(word.length()>k){\n String res = word.substring(0,k);\n res+=\"...\";\n System.out.println(res);\n }\n else System.out.println(word);\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n Scanner s = new Scanner(System.in);\n int k = s.nextInt();\n String word = s.next();\n\n if(word.length()>k){\n String res = word.substring(0,k);\n res+=\"...\";\n System.out.println(res);\n }\n else System.out.println(word);\n }",
"main",
"{\n Scanner s = new Scanner(System.in);\n int k = s.nextInt();\n String word = s.next();\n\n if(word.length()>k){\n String res = word.substring(0,k);\n res+=\"...\";\n System.out.println(res);\n }\n else System.out.println(word);\n }",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int k = s.nextInt();",
"k",
"s.nextInt()",
"s.nextInt",
"s",
"String word = s.next();",
"word",
"s.next()",
"s.next",
"s",
"if(word.length()>k){\n String res = word.substring(0,k);\n res+=\"...\";\n System.out.println(res);\n }\n else System.out.println(word);",
"word.length()>k",
"word.length()",
"word.length",
"word",
"k",
"{\n String res = word.substring(0,k);\n res+=\"...\";\n System.out.println(res);\n }",
"String res = word.substring(0,k);",
"res",
"word.substring(0,k)",
"word.substring",
"word",
"0",
"k",
"res+=\"...\"",
"res",
"\"...\"",
"System.out.println(res)",
"System.out.println",
"System.out",
"System",
"System.out",
"res",
"System.out.println(word)",
"System.out.println",
"System.out",
"System",
"System.out",
"word",
"String[] args",
"args",
"class Scanner\n{\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s){\tbr = new BufferedReader(new InputStreamReader(s));}\n\n public String next() throws IOException\n {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {return Integer.parseInt(next());}\n\n public long nextLong() throws IOException {return Long.parseLong(next());}\n\n public String nextLine() throws IOException {return br.readLine();}\n\n public double nextDouble() throws IOException\n {\n String x = next();\n StringBuilder sb = new StringBuilder(\"0\");\n double res = 0, f = 1;\n boolean dec = false, neg = false;\n int start = 0;\n if(x.charAt(0) == '-')\n {\n neg = true;\n start++;\n }\n for(int i = start; i < x.length(); i++)\n if(x.charAt(i) == '.')\n {\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n }\n else\n {\n sb.append(x.charAt(i));\n if(dec)\n f *= 10;\n }\n res += Long.parseLong(sb.toString()) / f;\n return res * (neg?-1:1);\n }\n\n public boolean ready() throws IOException {return br.ready();}\n\n\n}",
"Scanner",
"StringTokenizer st;",
"st",
"BufferedReader br;",
"br",
"public Scanner(InputStream s){\tbr = new BufferedReader(new InputStreamReader(s));}",
"Scanner",
"{\tbr = new BufferedReader(new InputStreamReader(s));}",
"br = new BufferedReader(new InputStreamReader(s))",
"br",
"new BufferedReader(new InputStreamReader(s))",
"InputStream s",
"s",
"public String next() throws IOException\n {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public int nextInt() throws IOException {return Integer.parseInt(next());}",
"nextInt",
"{return Integer.parseInt(next());}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public long nextLong() throws IOException {return Long.parseLong(next());}",
"nextLong",
"{return Long.parseLong(next());}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public String nextLine() throws IOException {return br.readLine();}",
"nextLine",
"{return br.readLine();}",
"return br.readLine();",
"br.readLine()",
"br.readLine",
"br",
"public double nextDouble() throws IOException\n {\n String x = next();\n StringBuilder sb = new StringBuilder(\"0\");\n double res = 0, f = 1;\n boolean dec = false, neg = false;\n int start = 0;\n if(x.charAt(0) == '-')\n {\n neg = true;\n start++;\n }\n for(int i = start; i < x.length(); i++)\n if(x.charAt(i) == '.')\n {\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n }\n else\n {\n sb.append(x.charAt(i));\n if(dec)\n f *= 10;\n }\n res += Long.parseLong(sb.toString()) / f;\n return res * (neg?-1:1);\n }",
"nextDouble",
"{\n String x = next();\n StringBuilder sb = new StringBuilder(\"0\");\n double res = 0, f = 1;\n boolean dec = false, neg = false;\n int start = 0;\n if(x.charAt(0) == '-')\n {\n neg = true;\n start++;\n }\n for(int i = start; i < x.length(); i++)\n if(x.charAt(i) == '.')\n {\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n }\n else\n {\n sb.append(x.charAt(i));\n if(dec)\n f *= 10;\n }\n res += Long.parseLong(sb.toString()) / f;\n return res * (neg?-1:1);\n }",
"String x = next();",
"x",
"next()",
"next",
"StringBuilder sb = new StringBuilder(\"0\");",
"sb",
"new StringBuilder(\"0\")",
"double res = 0",
"res",
"0",
"f = 1;",
"f",
"1",
"boolean dec = false",
"dec",
"false",
"neg = false;",
"neg",
"false",
"int start = 0;",
"start",
"0",
"if(x.charAt(0) == '-')\n {\n neg = true;\n start++;\n }",
"x.charAt(0) == '-'",
"x.charAt(0)",
"x.charAt",
"x",
"0",
"'-'",
"{\n neg = true;\n start++;\n }",
"neg = true",
"neg",
"true",
"start++",
"start",
"for(int i = start; i < x.length(); i++)\n if(x.charAt(i) == '.')\n {\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n }\n else\n {\n sb.append(x.charAt(i));\n if(dec)\n f *= 10;\n }",
"int i = start;",
"int i = start;",
"i",
"start",
"i < x.length()",
"i",
"x.length()",
"x.length",
"x",
"i++",
"i++",
"i",
"if(x.charAt(i) == '.')\n {\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n }\n else\n {\n sb.append(x.charAt(i));\n if(dec)\n f *= 10;\n }",
"if(x.charAt(i) == '.')\n {\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n }\n else\n {\n sb.append(x.charAt(i));\n if(dec)\n f *= 10;\n }",
"x.charAt(i) == '.'",
"x.charAt(i)",
"x.charAt",
"x",
"i",
"'.'",
"{\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n }",
"res = Long.parseLong(sb.toString())",
"res",
"Long.parseLong(sb.toString())",
"Long.parseLong",
"Long",
"sb.toString()",
"sb.toString",
"sb",
"sb = new StringBuilder(\"0\")",
"sb",
"new StringBuilder(\"0\")",
"dec = true",
"dec",
"true",
"{\n sb.append(x.charAt(i));\n if(dec)\n f *= 10;\n }",
"sb.append(x.charAt(i))",
"sb.append",
"sb",
"x.charAt(i)",
"x.charAt",
"x",
"i",
"if(dec)\n f *= 10;",
"dec",
"f *= 10",
"f",
"10",
"res += Long.parseLong(sb.toString()) / f",
"res",
"Long.parseLong(sb.toString()) / f",
"Long.parseLong(sb.toString())",
"Long.parseLong",
"Long",
"sb.toString()",
"sb.toString",
"sb",
"f",
"return res * (neg?-1:1);",
"res * (neg?-1:1)",
"res",
"(neg?-1:1)",
"neg",
"-1",
"1",
"1",
"public boolean ready() throws IOException {return br.ready();}",
"ready",
"{return br.ready();}",
"return br.ready();",
"br.ready()",
"br.ready",
"br",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n Scanner s = new Scanner(System.in);\n int k = s.nextInt();\n String word = s.next();\n\n if(word.length()>k){\n String res = word.substring(0,k);\n res+=\"...\";\n System.out.println(res);\n }\n else System.out.println(word);\n }\n}",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n Scanner s = new Scanner(System.in);\n int k = s.nextInt();\n String word = s.next();\n\n if(word.length()>k){\n String res = word.substring(0,k);\n res+=\"...\";\n System.out.println(res);\n }\n else System.out.println(word);\n }\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
Scanner s = new Scanner(System.in);
int k = s.nextInt();
String word = s.next();
if(word.length()>k){
String res = word.substring(0,k);
res+="...";
System.out.println(res);
}
else System.out.println(word);
}
}
class Scanner
{
StringTokenizer st;
BufferedReader br;
public Scanner(InputStream s){ br = new BufferedReader(new InputStreamReader(s));}
public String next() throws IOException
{
while (st == null || !st.hasMoreTokens())
st = new StringTokenizer(br.readLine());
return st.nextToken();
}
public int nextInt() throws IOException {return Integer.parseInt(next());}
public long nextLong() throws IOException {return Long.parseLong(next());}
public String nextLine() throws IOException {return br.readLine();}
public double nextDouble() throws IOException
{
String x = next();
StringBuilder sb = new StringBuilder("0");
double res = 0, f = 1;
boolean dec = false, neg = false;
int start = 0;
if(x.charAt(0) == '-')
{
neg = true;
start++;
}
for(int i = start; i < x.length(); i++)
if(x.charAt(i) == '.')
{
res = Long.parseLong(sb.toString());
sb = new StringBuilder("0");
dec = true;
}
else
{
sb.append(x.charAt(i));
if(dec)
f *= 10;
}
res += Long.parseLong(sb.toString()) / f;
return res * (neg?-1:1);
}
public boolean ready() throws IOException {return br.ready();}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
13,
14,
2,
4,
18,
13,
13,
30,
0,
13,
2,
4,
18,
13,
17,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
53,
5
],
[
53,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
29,
33
],
[
28,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
38,
42
],
[
37,
43
],
[
8,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
6,
50
],
[
50,
51
],
[
0,
52
],
[
52,
53
],
[
52,
54
]
] |
[
"\nimport java.util.*;\n\npublic class Main {\n public static void main(final String[] args) {\n final Scanner sc = new Scanner(System.in);\n // 整数の入力\n // final int a = sc.nextInt();\n // 文字列の入力\n // final String s1 = sc.next();\n final int k = sc.nextInt();\n final String s = sc.next();\n sc.close();\n\n String result = s;\n if (s.length() > k) {\n result = result.substring(0, k) + \"...\";\n }\n System.out.println(result);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(final String[] args) {\n final Scanner sc = new Scanner(System.in);\n // 整数の入力\n // final int a = sc.nextInt();\n // 文字列の入力\n // final String s1 = sc.next();\n final int k = sc.nextInt();\n final String s = sc.next();\n sc.close();\n\n String result = s;\n if (s.length() > k) {\n result = result.substring(0, k) + \"...\";\n }\n System.out.println(result);\n }\n}",
"Main",
"public static void main(final String[] args) {\n final Scanner sc = new Scanner(System.in);\n // 整数の入力\n // final int a = sc.nextInt();\n // 文字列の入力\n // final String s1 = sc.next();\n final int k = sc.nextInt();\n final String s = sc.next();\n sc.close();\n\n String result = s;\n if (s.length() > k) {\n result = result.substring(0, k) + \"...\";\n }\n System.out.println(result);\n }",
"main",
"{\n final Scanner sc = new Scanner(System.in);\n // 整数の入力\n // final int a = sc.nextInt();\n // 文字列の入力\n // final String s1 = sc.next();\n final int k = sc.nextInt();\n final String s = sc.next();\n sc.close();\n\n String result = s;\n if (s.length() > k) {\n result = result.substring(0, k) + \"...\";\n }\n System.out.println(result);\n }",
"final Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"final int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"final String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"sc.close()",
"sc.close",
"sc",
"String result = s;",
"result",
"s",
"if (s.length() > k) {\n result = result.substring(0, k) + \"...\";\n }",
"s.length() > k",
"s.length()",
"s.length",
"s",
"k",
"{\n result = result.substring(0, k) + \"...\";\n }",
"result = result.substring(0, k) + \"...\"",
"result",
"result.substring(0, k) + \"...\"",
"result.substring(0, k)",
"result.substring",
"result",
"0",
"k",
"\"...\"",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"final String[] args",
"args",
"public class Main {\n public static void main(final String[] args) {\n final Scanner sc = new Scanner(System.in);\n // 整数の入力\n // final int a = sc.nextInt();\n // 文字列の入力\n // final String s1 = sc.next();\n final int k = sc.nextInt();\n final String s = sc.next();\n sc.close();\n\n String result = s;\n if (s.length() > k) {\n result = result.substring(0, k) + \"...\";\n }\n System.out.println(result);\n }\n}",
"public class Main {\n public static void main(final String[] args) {\n final Scanner sc = new Scanner(System.in);\n // 整数の入力\n // final int a = sc.nextInt();\n // 文字列の入力\n // final String s1 = sc.next();\n final int k = sc.nextInt();\n final String s = sc.next();\n sc.close();\n\n String result = s;\n if (s.length() > k) {\n result = result.substring(0, k) + \"...\";\n }\n System.out.println(result);\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(final String[] args) {
final Scanner sc = new Scanner(System.in);
// 整数の入力
// final int a = sc.nextInt();
// 文字列の入力
// final String s1 = sc.next();
final int k = sc.nextInt();
final String s = sc.next();
sc.close();
String result = s;
if (s.length() > k) {
result = result.substring(0, k) + "...";
}
System.out.println(result);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
2,
4,
18,
13,
17,
17,
17,
41,
13,
12,
13,
30,
41,
13,
20,
0,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
4,
18,
13,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
13,
4,
18,
13,
17,
4,
18,
13,
4,
18,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
29,
17,
14,
2,
13,
17,
29,
13,
30,
41,
13,
4,
13,
13,
2,
13,
17,
14,
2,
2,
13,
17,
17,
30,
29,
2,
13,
13,
30,
29,
2,
2,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
29,
17,
14,
2,
13,
17,
29,
2,
13,
13,
30,
41,
13,
2,
4,
13,
13,
2,
13,
17,
13,
0,
13,
2,
13,
13,
14,
2,
2,
13,
17,
17,
30,
0,
13,
2,
13,
13,
29,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
18,
13,
13,
14,
2,
13,
17,
29,
41,
13,
20,
2,
13,
17,
41,
13,
20,
2,
13,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
18,
13,
13,
11,
1,
41,
13,
2,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
2,
13,
2,
13,
17,
18,
13,
13,
4,
13,
13,
4,
13,
13,
4,
13,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
17,
42,
2,
2,
2,
13,
18,
13,
13,
2,
13,
18,
13,
13,
2,
13,
18,
13,
13,
30,
14,
2,
18,
13,
13,
18,
13,
13,
30,
0,
18,
13,
13,
18,
13,
13,
40,
13,
30,
0,
18,
13,
13,
18,
13,
13,
40,
13,
40,
13,
42,
2,
13,
18,
13,
13,
30,
0,
18,
13,
13,
18,
13,
13,
40,
13,
40,
13,
42,
2,
13,
18,
13,
13,
30,
0,
18,
13,
13,
18,
13,
13,
40,
13,
40,
13,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
461,
8
],
[
461,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
[
12,
15
],
[
12,
16
],
[
11,
17
],
[
461,
18
],
[
18,
19
],
[
461,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
26
],
[
26,
27
],
[
26,
28
],
[
22,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
22,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
22,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
40,
44
],
[
39,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
39,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
50,
58
],
[
58,
59
],
[
59,
60
],
[
50,
61
],
[
62,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
49,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
49,
74
],
[
74,
75
],
[
75,
76
],
[
22,
77
],
[
77,
78
],
[
78,
79
],
[
20,
80
],
[
80,
81
],
[
461,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
89,
90
],
[
85,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
95,
96
],
[
91,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
100,
102
],
[
100,
103
],
[
103,
104
],
[
103,
105
],
[
97,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
111
],
[
106,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
106,
117
],
[
117,
118
],
[
118,
119
],
[
120,
120
],
[
120,
121
],
[
120,
122
],
[
120,
123
],
[
82,
124
],
[
124,
125
],
[
82,
126
],
[
126,
127
],
[
461,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
131,
135
],
[
135,
136
],
[
131,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
137,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
137,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
149,
152
],
[
152,
153
],
[
152,
154
],
[
148,
155
],
[
145,
156
],
[
156,
157
],
[
156,
158
],
[
158,
159
],
[
158,
160
],
[
145,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
162,
166
],
[
161,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
170,
171
],
[
170,
172
],
[
145,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
128,
177
],
[
177,
178
],
[
128,
179
],
[
179,
180
],
[
461,
181
],
[
181,
182
],
[
181,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
186,
187
],
[
186,
188
],
[
183,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
189,
193
],
[
183,
194
],
[
194,
195
],
[
194,
196
],
[
197,
198
],
[
197,
199
],
[
183,
200
],
[
200,
201
],
[
200,
202
],
[
203,
204
],
[
203,
205
],
[
205,
206
],
[
205,
207
],
[
183,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
210,
212
],
[
208,
213
],
[
213,
214
],
[
213,
215
],
[
215,
216
],
[
215,
217
],
[
208,
218
],
[
218,
219
],
[
219,
220
],
[
208,
221
],
[
222,
222
],
[
222,
223
],
[
223,
224
],
[
224,
225
],
[
224,
226
],
[
223,
227
],
[
227,
228
],
[
227,
229
],
[
183,
230
],
[
230,
231
],
[
231,
232
],
[
232,
233
],
[
232,
234
],
[
234,
235
],
[
234,
236
],
[
230,
237
],
[
237,
238
],
[
237,
239
],
[
230,
240
],
[
240,
241
],
[
241,
242
],
[
230,
243
],
[
244,
244
],
[
244,
245
],
[
245,
246
],
[
246,
247
],
[
246,
248
],
[
248,
249
],
[
248,
250
],
[
250,
251
],
[
250,
252
],
[
245,
253
],
[
253,
254
],
[
253,
255
],
[
183,
256
],
[
256,
257
],
[
256,
258
],
[
183,
259
],
[
259,
260
],
[
259,
261
],
[
183,
262
],
[
262,
263
],
[
262,
264
],
[
262,
265
],
[
262,
266
],
[
181,
267
],
[
267,
268
],
[
461,
269
],
[
269,
270
],
[
269,
271
],
[
271,
272
],
[
272,
273
],
[
272,
274
],
[
271,
275
],
[
275,
276
],
[
275,
277
],
[
271,
278
],
[
278,
279
],
[
278,
280
],
[
271,
281
],
[
281,
282
],
[
283,
283
],
[
283,
284
],
[
284,
285
],
[
284,
286
],
[
286,
287
],
[
286,
288
],
[
283,
289
],
[
289,
290
],
[
289,
291
],
[
291,
292
],
[
291,
293
],
[
283,
294
],
[
294,
295
],
[
294,
296
],
[
296,
297
],
[
296,
298
],
[
281,
299
],
[
299,
300
],
[
300,
301
],
[
301,
302
],
[
302,
303
],
[
302,
304
],
[
301,
305
],
[
305,
306
],
[
305,
307
],
[
300,
308
],
[
308,
309
],
[
309,
310
],
[
310,
311
],
[
310,
312
],
[
309,
313
],
[
313,
314
],
[
313,
315
],
[
308,
316
],
[
316,
317
],
[
300,
318
],
[
318,
319
],
[
319,
320
],
[
320,
321
],
[
320,
322
],
[
319,
323
],
[
323,
324
],
[
323,
325
],
[
318,
326
],
[
326,
327
],
[
299,
328
],
[
328,
329
],
[
271,
330
],
[
330,
331
],
[
331,
332
],
[
331,
333
],
[
333,
334
],
[
333,
335
],
[
330,
336
],
[
336,
337
],
[
337,
338
],
[
338,
339
],
[
338,
340
],
[
337,
341
],
[
341,
342
],
[
341,
343
],
[
336,
344
],
[
344,
345
],
[
336,
346
],
[
346,
347
],
[
271,
348
],
[
348,
349
],
[
349,
350
],
[
349,
351
],
[
351,
352
],
[
351,
353
],
[
348,
354
],
[
354,
355
],
[
355,
356
],
[
356,
357
],
[
356,
358
],
[
355,
359
],
[
359,
360
],
[
359,
361
],
[
354,
362
],
[
362,
363
],
[
354,
364
],
[
364,
365
],
[
269,
366
],
[
366,
367
],
[
269,
368
],
[
368,
369
],
[
269,
370
],
[
370,
371
],
[
461,
372
],
[
372,
373
],
[
372,
374
],
[
374,
375
],
[
372,
376
],
[
376,
377
],
[
372,
378
],
[
378,
379
],
[
378,
380
],
[
380,
381
],
[
381,
382
],
[
381,
383
],
[
372,
384
],
[
384,
385
],
[
384,
386
],
[
386,
387
],
[
387,
388
],
[
388,
389
],
[
389,
390
],
[
389,
391
],
[
388,
392
],
[
392,
393
],
[
393,
394
],
[
394,
395
],
[
387,
396
],
[
396,
397
],
[
397,
398
],
[
398,
399
],
[
398,
400
],
[
400,
401
],
[
401,
402
],
[
402,
403
],
[
397,
404
],
[
404,
405
],
[
405,
406
],
[
405,
407
],
[
386,
408
],
[
408,
409
],
[
409,
410
],
[
410,
411
],
[
372,
412
],
[
412,
413
],
[
412,
414
],
[
414,
415
],
[
415,
416
],
[
416,
417
],
[
417,
418
],
[
416,
419
],
[
419,
420
],
[
372,
421
],
[
421,
422
],
[
421,
423
],
[
423,
424
],
[
424,
425
],
[
425,
426
],
[
426,
427
],
[
425,
428
],
[
428,
429
],
[
372,
430
],
[
430,
431
],
[
430,
432
],
[
432,
433
],
[
433,
434
],
[
434,
435
],
[
435,
436
],
[
434,
437
],
[
437,
438
],
[
372,
439
],
[
439,
440
],
[
439,
441
],
[
441,
442
],
[
442,
443
],
[
442,
444
],
[
441,
445
],
[
445,
446
],
[
446,
447
],
[
446,
448
],
[
448,
449
],
[
449,
450
],
[
450,
451
],
[
445,
452
],
[
452,
453
],
[
453,
454
],
[
453,
455
],
[
455,
456
],
[
456,
457
],
[
441,
458
],
[
458,
459
],
[
0,
460
],
[
460,
461
],
[
460,
462
]
] |
[
"import java.io.*;\nimport java.util.*;\n \n \npublic class Main{\nstatic int mod = (int)(Math.pow(10, 9) + 7);\n public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n out = new PrintWriter(new BufferedOutputStream(System.out));\n int n = sc.nextInt();\n String s = sc.next();\n if (s.length() <= n) out.println(s);\n else{\n for (int i= 0; i < n; i++){\n out.print(s.charAt(i));\n }\n out.print(\"...\");\n out.println();\n }\n\n out.close();\n }\n \n static long pow(long a, long N) {\n\t if (N == 0) return 1;\n\t else if (N == 1) return a;\n\t else {\n\t\t long R = pow(a,N/2);\n\t\t if (N % 2 == 0) {\n\t\t\t return R*R;\n\t\t }\n\t\t else {\n\t\t\t return R*R*a;\n\t\t }\n\t }\n }\n \n static long powMod(long a, long N) {\n\t if (N == 0) return 1;\n\t else if (N == 1) return a % mod;\n\t else {\n\t\t long R = powMod(a,N/2) % mod;\n\t\t R *= R % mod;\n\t\t if (N % 2 == 0) {\n\t\t\t R *= a % mod;\n\t\t }\n\t\t\t return R % mod;\n\t }\n }\nstatic void mergeSort(int[] A){ // low to hi sort, single array only\n int n = A.length;\n if (n < 2) return;\n int[] l = new int[n/2];\n int[] r = new int[n - n/2];\n \n for (int i = 0; i < n/2; i++){\n l[i] = A[i];\n }\n \n for (int j = n/2; j < n; j++){\n r[j-n/2] = A[j];\n }\n \n mergeSort(l);\n mergeSort(r);\n merge(l, r, A);\n }\n \n static void merge(int[] l, int[] r, int[] a){\n int i = 0, j = 0, k = 0;\n while (i < l.length && j < r.length && k < a.length){\n if (l[i] < r[j]){\n a[k] = l[i];\n i++;\n }\n else{\n a[k] = r[j];\n j++;\n }\n k++;\n }\n while (i < l.length){\n a[k] = l[i];\n i++;\n k++;\n }\n \n while (j < r.length){\n a[k] = r[j];\n j++;\n k++;\n }\n }\n\n \n\n //-----------PrintWriter for faster output---------------------------------\n public static PrintWriter out;\n \n //-----------MyScanner class for faster input----------\n public static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n \n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n \n long nextLong() {\n return Long.parseLong(next());\n }\n \n double nextDouble() {\n return Double.parseDouble(next());\n }\n \n String nextLine(){\n String str = \"\";\n\t try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return str;\n }\n\n }\n //--------------------------------------------------------\n}\n\n\n\n\n",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main{\nstatic int mod = (int)(Math.pow(10, 9) + 7);\n public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n out = new PrintWriter(new BufferedOutputStream(System.out));\n int n = sc.nextInt();\n String s = sc.next();\n if (s.length() <= n) out.println(s);\n else{\n for (int i= 0; i < n; i++){\n out.print(s.charAt(i));\n }\n out.print(\"...\");\n out.println();\n }\n\n out.close();\n }\n \n static long pow(long a, long N) {\n\t if (N == 0) return 1;\n\t else if (N == 1) return a;\n\t else {\n\t\t long R = pow(a,N/2);\n\t\t if (N % 2 == 0) {\n\t\t\t return R*R;\n\t\t }\n\t\t else {\n\t\t\t return R*R*a;\n\t\t }\n\t }\n }\n \n static long powMod(long a, long N) {\n\t if (N == 0) return 1;\n\t else if (N == 1) return a % mod;\n\t else {\n\t\t long R = powMod(a,N/2) % mod;\n\t\t R *= R % mod;\n\t\t if (N % 2 == 0) {\n\t\t\t R *= a % mod;\n\t\t }\n\t\t\t return R % mod;\n\t }\n }\nstatic void mergeSort(int[] A){ // low to hi sort, single array only\n int n = A.length;\n if (n < 2) return;\n int[] l = new int[n/2];\n int[] r = new int[n - n/2];\n \n for (int i = 0; i < n/2; i++){\n l[i] = A[i];\n }\n \n for (int j = n/2; j < n; j++){\n r[j-n/2] = A[j];\n }\n \n mergeSort(l);\n mergeSort(r);\n merge(l, r, A);\n }\n \n static void merge(int[] l, int[] r, int[] a){\n int i = 0, j = 0, k = 0;\n while (i < l.length && j < r.length && k < a.length){\n if (l[i] < r[j]){\n a[k] = l[i];\n i++;\n }\n else{\n a[k] = r[j];\n j++;\n }\n k++;\n }\n while (i < l.length){\n a[k] = l[i];\n i++;\n k++;\n }\n \n while (j < r.length){\n a[k] = r[j];\n j++;\n k++;\n }\n }\n\n \n\n //-----------PrintWriter for faster output---------------------------------\n public static PrintWriter out;\n \n //-----------MyScanner class for faster input----------\n public static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n \n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n \n long nextLong() {\n return Long.parseLong(next());\n }\n \n double nextDouble() {\n return Double.parseDouble(next());\n }\n \n String nextLine(){\n String str = \"\";\n\t try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return str;\n }\n\n }\n //--------------------------------------------------------\n}",
"Main",
"static int mod = (int)(Math.pow(10, 9) + 7);",
"mod",
"(int)(Math.pow(10, 9) + 7)",
"Math.pow(10, 9)",
"Math.pow",
"Math",
"10",
"9",
"7",
"//-----------PrintWriter for faster output---------------------------------\n public static PrintWriter out;",
"out",
"public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n out = new PrintWriter(new BufferedOutputStream(System.out));\n int n = sc.nextInt();\n String s = sc.next();\n if (s.length() <= n) out.println(s);\n else{\n for (int i= 0; i < n; i++){\n out.print(s.charAt(i));\n }\n out.print(\"...\");\n out.println();\n }\n\n out.close();\n }",
"main",
"{\n MyScanner sc = new MyScanner();\n out = new PrintWriter(new BufferedOutputStream(System.out));\n int n = sc.nextInt();\n String s = sc.next();\n if (s.length() <= n) out.println(s);\n else{\n for (int i= 0; i < n; i++){\n out.print(s.charAt(i));\n }\n out.print(\"...\");\n out.println();\n }\n\n out.close();\n }",
"MyScanner sc = new MyScanner();",
"sc",
"new MyScanner()",
"out = new PrintWriter(new BufferedOutputStream(System.out))",
"out",
"new PrintWriter(new BufferedOutputStream(System.out))",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"if (s.length() <= n) out.println(s);\n else{\n for (int i= 0; i < n; i++){\n out.print(s.charAt(i));\n }\n out.print(\"...\");\n out.println();\n }",
"s.length() <= n",
"s.length()",
"s.length",
"s",
"n",
"out.println(s)",
"out.println",
"out",
"s",
"{\n for (int i= 0; i < n; i++){\n out.print(s.charAt(i));\n }\n out.print(\"...\");\n out.println();\n }",
"for (int i= 0; i < n; i++){\n out.print(s.charAt(i));\n }",
"int i= 0;",
"int i= 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n out.print(s.charAt(i));\n }",
"{\n out.print(s.charAt(i));\n }",
"out.print(s.charAt(i))",
"out.print",
"out",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"out.print(\"...\")",
"out.print",
"out",
"\"...\"",
"out.println()",
"out.println",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static long pow(long a, long N) {\n\t if (N == 0) return 1;\n\t else if (N == 1) return a;\n\t else {\n\t\t long R = pow(a,N/2);\n\t\t if (N % 2 == 0) {\n\t\t\t return R*R;\n\t\t }\n\t\t else {\n\t\t\t return R*R*a;\n\t\t }\n\t }\n }",
"pow",
"{\n\t if (N == 0) return 1;\n\t else if (N == 1) return a;\n\t else {\n\t\t long R = pow(a,N/2);\n\t\t if (N % 2 == 0) {\n\t\t\t return R*R;\n\t\t }\n\t\t else {\n\t\t\t return R*R*a;\n\t\t }\n\t }\n }",
"if (N == 0) return 1;\n\t else if (N == 1) return a;\n\t else {\n\t\t long R = pow(a,N/2);\n\t\t if (N % 2 == 0) {\n\t\t\t return R*R;\n\t\t }\n\t\t else {\n\t\t\t return R*R*a;\n\t\t }\n\t }",
"N == 0",
"N",
"0",
"return 1;",
"1",
"if (N == 1) return a;\n\t else {\n\t\t long R = pow(a,N/2);\n\t\t if (N % 2 == 0) {\n\t\t\t return R*R;\n\t\t }\n\t\t else {\n\t\t\t return R*R*a;\n\t\t }\n\t }",
"N == 1",
"N",
"1",
"return a;",
"a",
"{\n\t\t long R = pow(a,N/2);\n\t\t if (N % 2 == 0) {\n\t\t\t return R*R;\n\t\t }\n\t\t else {\n\t\t\t return R*R*a;\n\t\t }\n\t }",
"long R = pow(a,N/2);",
"R",
"pow(a,N/2)",
"pow",
"a",
"N/2",
"N",
"2",
"if (N % 2 == 0) {\n\t\t\t return R*R;\n\t\t }\n\t\t else {\n\t\t\t return R*R*a;\n\t\t }",
"N % 2 == 0",
"N % 2",
"N",
"2",
"0",
"{\n\t\t\t return R*R;\n\t\t }",
"return R*R;",
"R*R",
"R",
"R",
"{\n\t\t\t return R*R*a;\n\t\t }",
"return R*R*a;",
"R*R*a",
"R*R*a",
"R",
"R",
"a",
"long a",
"a",
"long N",
"N",
"static long powMod(long a, long N) {\n\t if (N == 0) return 1;\n\t else if (N == 1) return a % mod;\n\t else {\n\t\t long R = powMod(a,N/2) % mod;\n\t\t R *= R % mod;\n\t\t if (N % 2 == 0) {\n\t\t\t R *= a % mod;\n\t\t }\n\t\t\t return R % mod;\n\t }\n }",
"powMod",
"{\n\t if (N == 0) return 1;\n\t else if (N == 1) return a % mod;\n\t else {\n\t\t long R = powMod(a,N/2) % mod;\n\t\t R *= R % mod;\n\t\t if (N % 2 == 0) {\n\t\t\t R *= a % mod;\n\t\t }\n\t\t\t return R % mod;\n\t }\n }",
"if (N == 0) return 1;\n\t else if (N == 1) return a % mod;\n\t else {\n\t\t long R = powMod(a,N/2) % mod;\n\t\t R *= R % mod;\n\t\t if (N % 2 == 0) {\n\t\t\t R *= a % mod;\n\t\t }\n\t\t\t return R % mod;\n\t }",
"N == 0",
"N",
"0",
"return 1;",
"1",
"if (N == 1) return a % mod;\n\t else {\n\t\t long R = powMod(a,N/2) % mod;\n\t\t R *= R % mod;\n\t\t if (N % 2 == 0) {\n\t\t\t R *= a % mod;\n\t\t }\n\t\t\t return R % mod;\n\t }",
"N == 1",
"N",
"1",
"return a % mod;",
"a % mod",
"a",
"mod",
"{\n\t\t long R = powMod(a,N/2) % mod;\n\t\t R *= R % mod;\n\t\t if (N % 2 == 0) {\n\t\t\t R *= a % mod;\n\t\t }\n\t\t\t return R % mod;\n\t }",
"long R = powMod(a,N/2) % mod;",
"R",
"powMod(a,N/2) % mod",
"powMod(a,N/2)",
"powMod",
"a",
"N/2",
"N",
"2",
"mod",
"R *= R % mod",
"R",
"R % mod",
"R",
"mod",
"if (N % 2 == 0) {\n\t\t\t R *= a % mod;\n\t\t }",
"N % 2 == 0",
"N % 2",
"N",
"2",
"0",
"{\n\t\t\t R *= a % mod;\n\t\t }",
"R *= a % mod",
"R",
"a % mod",
"a",
"mod",
"return R % mod;",
"R % mod",
"R",
"mod",
"long a",
"a",
"long N",
"N",
"static void mergeSort(int[] A){ // low to hi sort, single array only\n int n = A.length;\n if (n < 2) return;\n int[] l = new int[n/2];\n int[] r = new int[n - n/2];\n \n for (int i = 0; i < n/2; i++){\n l[i] = A[i];\n }\n \n for (int j = n/2; j < n; j++){\n r[j-n/2] = A[j];\n }\n \n mergeSort(l);\n mergeSort(r);\n merge(l, r, A);\n }",
"mergeSort",
"{ // low to hi sort, single array only\n int n = A.length;\n if (n < 2) return;\n int[] l = new int[n/2];\n int[] r = new int[n - n/2];\n \n for (int i = 0; i < n/2; i++){\n l[i] = A[i];\n }\n \n for (int j = n/2; j < n; j++){\n r[j-n/2] = A[j];\n }\n \n mergeSort(l);\n mergeSort(r);\n merge(l, r, A);\n }",
"int n = A.length;",
"n",
"A.length",
"A",
"A.length",
"if (n < 2) return;",
"n < 2",
"n",
"2",
"return;",
"int[] l = new int[n/2];",
"l",
"new int[n/2]",
"n/2",
"n",
"2",
"int[] r = new int[n - n/2];",
"r",
"new int[n - n/2]",
"n - n/2",
"n",
"n/2",
"n",
"2",
"for (int i = 0; i < n/2; i++){\n l[i] = A[i];\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n/2",
"i",
"n/2",
"n",
"2",
"i++",
"i++",
"i",
"{\n l[i] = A[i];\n }",
"{\n l[i] = A[i];\n }",
"l[i] = A[i]",
"l[i]",
"l",
"i",
"A[i]",
"A",
"i",
"for (int j = n/2; j < n; j++){\n r[j-n/2] = A[j];\n }",
"int j = n/2;",
"int j = n/2;",
"j",
"n/2",
"n",
"2",
"j < n",
"j",
"n",
"j++",
"j++",
"j",
"{\n r[j-n/2] = A[j];\n }",
"{\n r[j-n/2] = A[j];\n }",
"r[j-n/2] = A[j]",
"r[j-n/2]",
"r",
"j-n/2",
"j",
"n/2",
"n",
"2",
"A[j]",
"A",
"j",
"mergeSort(l)",
"mergeSort",
"l",
"mergeSort(r)",
"mergeSort",
"r",
"merge(l, r, A)",
"merge",
"l",
"r",
"A",
"int[] A",
"A",
"static void merge(int[] l, int[] r, int[] a){\n int i = 0, j = 0, k = 0;\n while (i < l.length && j < r.length && k < a.length){\n if (l[i] < r[j]){\n a[k] = l[i];\n i++;\n }\n else{\n a[k] = r[j];\n j++;\n }\n k++;\n }\n while (i < l.length){\n a[k] = l[i];\n i++;\n k++;\n }\n \n while (j < r.length){\n a[k] = r[j];\n j++;\n k++;\n }\n }",
"merge",
"{\n int i = 0, j = 0, k = 0;\n while (i < l.length && j < r.length && k < a.length){\n if (l[i] < r[j]){\n a[k] = l[i];\n i++;\n }\n else{\n a[k] = r[j];\n j++;\n }\n k++;\n }\n while (i < l.length){\n a[k] = l[i];\n i++;\n k++;\n }\n \n while (j < r.length){\n a[k] = r[j];\n j++;\n k++;\n }\n }",
"int i = 0",
"i",
"0",
"j = 0",
"j",
"0",
"k = 0;",
"k",
"0",
"while (i < l.length && j < r.length && k < a.length){\n if (l[i] < r[j]){\n a[k] = l[i];\n i++;\n }\n else{\n a[k] = r[j];\n j++;\n }\n k++;\n }",
"i < l.length && j < r.length && k < a.length",
"i < l.length && j < r.length && k < a.length",
"i < l.length",
"i",
"l.length",
"l",
"l.length",
"j < r.length",
"j",
"r.length",
"r",
"r.length",
"k < a.length",
"k",
"a.length",
"a",
"a.length",
"{\n if (l[i] < r[j]){\n a[k] = l[i];\n i++;\n }\n else{\n a[k] = r[j];\n j++;\n }\n k++;\n }",
"if (l[i] < r[j]){\n a[k] = l[i];\n i++;\n }\n else{\n a[k] = r[j];\n j++;\n }",
"l[i] < r[j]",
"l[i]",
"l",
"i",
"r[j]",
"r",
"j",
"{\n a[k] = l[i];\n i++;\n }",
"a[k] = l[i]",
"a[k]",
"a",
"k",
"l[i]",
"l",
"i",
"i++",
"i",
"{\n a[k] = r[j];\n j++;\n }",
"a[k] = r[j]",
"a[k]",
"a",
"k",
"r[j]",
"r",
"j",
"j++",
"j",
"k++",
"k",
"while (i < l.length){\n a[k] = l[i];\n i++;\n k++;\n }",
"i < l.length",
"i",
"l.length",
"l",
"l.length",
"{\n a[k] = l[i];\n i++;\n k++;\n }",
"a[k] = l[i]",
"a[k]",
"a",
"k",
"l[i]",
"l",
"i",
"i++",
"i",
"k++",
"k",
"while (j < r.length){\n a[k] = r[j];\n j++;\n k++;\n }",
"j < r.length",
"j",
"r.length",
"r",
"r.length",
"{\n a[k] = r[j];\n j++;\n k++;\n }",
"a[k] = r[j]",
"a[k]",
"a",
"k",
"r[j]",
"r",
"j",
"j++",
"j",
"k++",
"k",
"int[] l",
"l",
"int[] r",
"r",
"int[] a",
"a",
"public static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n \n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n \n long nextLong() {\n return Long.parseLong(next());\n }\n \n double nextDouble() {\n return Double.parseDouble(next());\n }\n \n String nextLine(){\n String str = \"\";\n\t try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return str;\n }\n\n }",
"MyScanner",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"MyScanner",
"{\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine(){\n String str = \"\";\n\t try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return str;\n }",
"nextLine",
"{\n String str = \"\";\n\t try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return str;\n }",
"String str = \"\";",
"str",
"\"\"",
"try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }",
"catch (IOException e) {\n\t e.printStackTrace();\n\t }",
"IOException e",
"{\n\t e.printStackTrace();\n\t }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t str = br.readLine();\n\t }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main{\nstatic int mod = (int)(Math.pow(10, 9) + 7);\n public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n out = new PrintWriter(new BufferedOutputStream(System.out));\n int n = sc.nextInt();\n String s = sc.next();\n if (s.length() <= n) out.println(s);\n else{\n for (int i= 0; i < n; i++){\n out.print(s.charAt(i));\n }\n out.print(\"...\");\n out.println();\n }\n\n out.close();\n }\n \n static long pow(long a, long N) {\n\t if (N == 0) return 1;\n\t else if (N == 1) return a;\n\t else {\n\t\t long R = pow(a,N/2);\n\t\t if (N % 2 == 0) {\n\t\t\t return R*R;\n\t\t }\n\t\t else {\n\t\t\t return R*R*a;\n\t\t }\n\t }\n }\n \n static long powMod(long a, long N) {\n\t if (N == 0) return 1;\n\t else if (N == 1) return a % mod;\n\t else {\n\t\t long R = powMod(a,N/2) % mod;\n\t\t R *= R % mod;\n\t\t if (N % 2 == 0) {\n\t\t\t R *= a % mod;\n\t\t }\n\t\t\t return R % mod;\n\t }\n }\nstatic void mergeSort(int[] A){ // low to hi sort, single array only\n int n = A.length;\n if (n < 2) return;\n int[] l = new int[n/2];\n int[] r = new int[n - n/2];\n \n for (int i = 0; i < n/2; i++){\n l[i] = A[i];\n }\n \n for (int j = n/2; j < n; j++){\n r[j-n/2] = A[j];\n }\n \n mergeSort(l);\n mergeSort(r);\n merge(l, r, A);\n }\n \n static void merge(int[] l, int[] r, int[] a){\n int i = 0, j = 0, k = 0;\n while (i < l.length && j < r.length && k < a.length){\n if (l[i] < r[j]){\n a[k] = l[i];\n i++;\n }\n else{\n a[k] = r[j];\n j++;\n }\n k++;\n }\n while (i < l.length){\n a[k] = l[i];\n i++;\n k++;\n }\n \n while (j < r.length){\n a[k] = r[j];\n j++;\n k++;\n }\n }\n\n \n\n //-----------PrintWriter for faster output---------------------------------\n public static PrintWriter out;\n \n //-----------MyScanner class for faster input----------\n public static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n \n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n \n long nextLong() {\n return Long.parseLong(next());\n }\n \n double nextDouble() {\n return Double.parseDouble(next());\n }\n \n String nextLine(){\n String str = \"\";\n\t try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return str;\n }\n\n }\n //--------------------------------------------------------\n}",
"public class Main{\nstatic int mod = (int)(Math.pow(10, 9) + 7);\n public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n out = new PrintWriter(new BufferedOutputStream(System.out));\n int n = sc.nextInt();\n String s = sc.next();\n if (s.length() <= n) out.println(s);\n else{\n for (int i= 0; i < n; i++){\n out.print(s.charAt(i));\n }\n out.print(\"...\");\n out.println();\n }\n\n out.close();\n }\n \n static long pow(long a, long N) {\n\t if (N == 0) return 1;\n\t else if (N == 1) return a;\n\t else {\n\t\t long R = pow(a,N/2);\n\t\t if (N % 2 == 0) {\n\t\t\t return R*R;\n\t\t }\n\t\t else {\n\t\t\t return R*R*a;\n\t\t }\n\t }\n }\n \n static long powMod(long a, long N) {\n\t if (N == 0) return 1;\n\t else if (N == 1) return a % mod;\n\t else {\n\t\t long R = powMod(a,N/2) % mod;\n\t\t R *= R % mod;\n\t\t if (N % 2 == 0) {\n\t\t\t R *= a % mod;\n\t\t }\n\t\t\t return R % mod;\n\t }\n }\nstatic void mergeSort(int[] A){ // low to hi sort, single array only\n int n = A.length;\n if (n < 2) return;\n int[] l = new int[n/2];\n int[] r = new int[n - n/2];\n \n for (int i = 0; i < n/2; i++){\n l[i] = A[i];\n }\n \n for (int j = n/2; j < n; j++){\n r[j-n/2] = A[j];\n }\n \n mergeSort(l);\n mergeSort(r);\n merge(l, r, A);\n }\n \n static void merge(int[] l, int[] r, int[] a){\n int i = 0, j = 0, k = 0;\n while (i < l.length && j < r.length && k < a.length){\n if (l[i] < r[j]){\n a[k] = l[i];\n i++;\n }\n else{\n a[k] = r[j];\n j++;\n }\n k++;\n }\n while (i < l.length){\n a[k] = l[i];\n i++;\n k++;\n }\n \n while (j < r.length){\n a[k] = r[j];\n j++;\n k++;\n }\n }\n\n \n\n //-----------PrintWriter for faster output---------------------------------\n public static PrintWriter out;\n \n //-----------MyScanner class for faster input----------\n public static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n \n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n \n long nextLong() {\n return Long.parseLong(next());\n }\n \n double nextDouble() {\n return Double.parseDouble(next());\n }\n \n String nextLine(){\n String str = \"\";\n\t try {\n\t str = br.readLine();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t return str;\n }\n\n }\n //--------------------------------------------------------\n}",
"Main"
] |
import java.io.*;
import java.util.*;
public class Main{
static int mod = (int)(Math.pow(10, 9) + 7);
public static void main(String[] args) {
MyScanner sc = new MyScanner();
out = new PrintWriter(new BufferedOutputStream(System.out));
int n = sc.nextInt();
String s = sc.next();
if (s.length() <= n) out.println(s);
else{
for (int i= 0; i < n; i++){
out.print(s.charAt(i));
}
out.print("...");
out.println();
}
out.close();
}
static long pow(long a, long N) {
if (N == 0) return 1;
else if (N == 1) return a;
else {
long R = pow(a,N/2);
if (N % 2 == 0) {
return R*R;
}
else {
return R*R*a;
}
}
}
static long powMod(long a, long N) {
if (N == 0) return 1;
else if (N == 1) return a % mod;
else {
long R = powMod(a,N/2) % mod;
R *= R % mod;
if (N % 2 == 0) {
R *= a % mod;
}
return R % mod;
}
}
static void mergeSort(int[] A){ // low to hi sort, single array only
int n = A.length;
if (n < 2) return;
int[] l = new int[n/2];
int[] r = new int[n - n/2];
for (int i = 0; i < n/2; i++){
l[i] = A[i];
}
for (int j = n/2; j < n; j++){
r[j-n/2] = A[j];
}
mergeSort(l);
mergeSort(r);
merge(l, r, A);
}
static void merge(int[] l, int[] r, int[] a){
int i = 0, j = 0, k = 0;
while (i < l.length && j < r.length && k < a.length){
if (l[i] < r[j]){
a[k] = l[i];
i++;
}
else{
a[k] = r[j];
j++;
}
k++;
}
while (i < l.length){
a[k] = l[i];
i++;
k++;
}
while (j < r.length){
a[k] = r[j];
j++;
k++;
}
}
//-----------PrintWriter for faster output---------------------------------
public static PrintWriter out;
//-----------MyScanner class for faster input----------
public static class MyScanner {
BufferedReader br;
StringTokenizer st;
public MyScanner() {
br = new BufferedReader(new InputStreamReader(System.in));
}
String next() {
while (st == null || !st.hasMoreElements()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
String nextLine(){
String str = "";
try {
str = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return str;
}
}
//--------------------------------------------------------
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
14,
2,
4,
18,
13,
13,
30,
0,
13,
13,
30,
0,
13,
2,
4,
18,
13,
17,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
25,
29
],
[
24,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
24,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
38,
42
],
[
37,
43
],
[
8,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
6,
50
],
[
50,
51
]
] |
[
"import java.util.Scanner;\n\nclass Main{\n \n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int length = sc.nextInt();\n String str = sc.next();\n\n String answer;\n\n if (str.length()<= length){\n answer = str;\n }else{\n answer = str.substring(0, length) + \"...\";\n }\n System.out.println(answer);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n \n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int length = sc.nextInt();\n String str = sc.next();\n\n String answer;\n\n if (str.length()<= length){\n answer = str;\n }else{\n answer = str.substring(0, length) + \"...\";\n }\n System.out.println(answer);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int length = sc.nextInt();\n String str = sc.next();\n\n String answer;\n\n if (str.length()<= length){\n answer = str;\n }else{\n answer = str.substring(0, length) + \"...\";\n }\n System.out.println(answer);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int length = sc.nextInt();\n String str = sc.next();\n\n String answer;\n\n if (str.length()<= length){\n answer = str;\n }else{\n answer = str.substring(0, length) + \"...\";\n }\n System.out.println(answer);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int length = sc.nextInt();",
"length",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String str = sc.next();",
"str",
"sc.next()",
"sc.next",
"sc",
"String answer;",
"answer",
"if (str.length()<= length){\n answer = str;\n }else{\n answer = str.substring(0, length) + \"...\";\n }",
"str.length()<= length",
"str.length()",
"str.length",
"str",
"length",
"{\n answer = str;\n }",
"answer = str",
"answer",
"str",
"{\n answer = str.substring(0, length) + \"...\";\n }",
"answer = str.substring(0, length) + \"...\"",
"answer",
"str.substring(0, length) + \"...\"",
"str.substring(0, length)",
"str.substring",
"str",
"0",
"length",
"\"...\"",
"System.out.println(answer)",
"System.out.println",
"System.out",
"System",
"System.out",
"answer",
"String[] args",
"args"
] |
import java.util.Scanner;
class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int length = sc.nextInt();
String str = sc.next();
String answer;
if (str.length()<= length){
answer = str;
}else{
answer = str.substring(0, length) + "...";
}
System.out.println(answer);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
17,
41,
13,
41,
13,
41,
13,
20,
12,
13,
30,
12,
13,
30,
41,
13,
4,
13,
41,
13,
4,
13,
14,
2,
4,
18,
13,
13,
30,
4,
18,
13,
13,
30,
4,
18,
13,
2,
4,
18,
13,
17,
13,
17,
4,
18,
13,
12,
13,
30,
4,
18,
20,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
4,
18,
13,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
0,
13,
17,
29,
4,
18,
13,
12,
13,
30,
29,
17,
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
],
[
164,
26
],
[
164,
27
],
[
27,
28
],
[
27,
29
],
[
164,
30
],
[
30,
31
],
[
30,
32
],
[
164,
33
],
[
33,
34
],
[
164,
35
],
[
35,
36
],
[
164,
37
],
[
37,
38
],
[
37,
39
],
[
164,
40
],
[
40,
41
],
[
40,
42
],
[
164,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
45,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
55,
59
],
[
54,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
54,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
70,
74
],
[
69,
75
],
[
45,
76
],
[
76,
77
],
[
77,
78
],
[
164,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
79,
85
],
[
85,
86
],
[
164,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
87,
99
],
[
99,
100
],
[
164,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
108,
109
],
[
164,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
114,
117
],
[
117,
118
],
[
164,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
123,
126
],
[
126,
127
],
[
164,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
132,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
131,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
130,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
164,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
150,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
164,
158
],
[
158,
159
],
[
158,
160
],
[
160,
161
],
[
161,
162
],
[
0,
163
],
[
163,
164
],
[
163,
165
]
] |
[
"\n\nimport java.io.BufferedReader;\nimport java.io.BufferedWriter;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.OutputStreamWriter;\nimport java.io.PrintWriter;\nimport java.util.Arrays;\nimport java.util.StringTokenizer;\n\npublic class Main {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer tokenizer = null;\n int totalCases, testNum;\n\n PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n\n void solve() throws IOException {\n\n }\n\n void execute() throws IOException {\n int k = ni();\n String s = ns();\n if (s.length() <= k) {\n out.println(s);\n } else {\n out.println(s.substring(0, k) + \"...\");\n }\n\n out.close();\n }\n\n public static void main(String[] args) throws IOException {\n new Main().execute();\n }\n\n void debug(Object... os) {\n System.out.println(Arrays.deepToString(os));\n }\n\n int ni() throws IOException {\n return Integer.parseInt(ns());\n }\n\n long nl() throws IOException {\n return Long.parseLong(ns());\n }\n\n double nd() throws IOException {\n return Double.parseDouble(ns());\n }\n\n String ns() throws IOException {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n tokenizer = new StringTokenizer(br.readLine());\n }\n return tokenizer.nextToken();\n }\n\n String nline() throws IOException {\n tokenizer = null;\n return br.readLine();\n }\n\n boolean input() throws IOException {\n return true;\n }\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.BufferedWriter;",
"BufferedWriter",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.OutputStreamWriter;",
"OutputStreamWriter",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer tokenizer = null;\n int totalCases, testNum;\n\n PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n\n void solve() throws IOException {\n\n }\n\n void execute() throws IOException {\n int k = ni();\n String s = ns();\n if (s.length() <= k) {\n out.println(s);\n } else {\n out.println(s.substring(0, k) + \"...\");\n }\n\n out.close();\n }\n\n public static void main(String[] args) throws IOException {\n new Main().execute();\n }\n\n void debug(Object... os) {\n System.out.println(Arrays.deepToString(os));\n }\n\n int ni() throws IOException {\n return Integer.parseInt(ns());\n }\n\n long nl() throws IOException {\n return Long.parseLong(ns());\n }\n\n double nd() throws IOException {\n return Double.parseDouble(ns());\n }\n\n String ns() throws IOException {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n tokenizer = new StringTokenizer(br.readLine());\n }\n return tokenizer.nextToken();\n }\n\n String nline() throws IOException {\n tokenizer = null;\n return br.readLine();\n }\n\n boolean input() throws IOException {\n return true;\n }\n\n}",
"Main",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringTokenizer tokenizer = null;",
"tokenizer",
"null",
"int totalCases",
"totalCases",
"testNum;",
"testNum",
"PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));",
"out",
"new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)))",
"void solve() throws IOException {\n\n }",
"solve",
"{\n\n }",
"void execute() throws IOException {\n int k = ni();\n String s = ns();\n if (s.length() <= k) {\n out.println(s);\n } else {\n out.println(s.substring(0, k) + \"...\");\n }\n\n out.close();\n }",
"execute",
"{\n int k = ni();\n String s = ns();\n if (s.length() <= k) {\n out.println(s);\n } else {\n out.println(s.substring(0, k) + \"...\");\n }\n\n out.close();\n }",
"int k = ni();",
"k",
"ni()",
"ni",
"String s = ns();",
"s",
"ns()",
"ns",
"if (s.length() <= k) {\n out.println(s);\n } else {\n out.println(s.substring(0, k) + \"...\");\n }",
"s.length() <= k",
"s.length()",
"s.length",
"s",
"k",
"{\n out.println(s);\n }",
"out.println(s)",
"out.println",
"out",
"s",
"{\n out.println(s.substring(0, k) + \"...\");\n }",
"out.println(s.substring(0, k) + \"...\")",
"out.println",
"out",
"s.substring(0, k) + \"...\"",
"s.substring(0, k)",
"s.substring",
"s",
"0",
"k",
"\"...\"",
"out.close()",
"out.close",
"out",
"public static void main(String[] args) throws IOException {\n new Main().execute();\n }",
"main",
"{\n new Main().execute();\n }",
"new Main().execute()",
"new Main().execute",
"new Main()",
"String[] args",
"args",
"void debug(Object... os) {\n System.out.println(Arrays.deepToString(os));\n }",
"debug",
"{\n System.out.println(Arrays.deepToString(os));\n }",
"System.out.println(Arrays.deepToString(os))",
"System.out.println",
"System.out",
"System",
"System.out",
"Arrays.deepToString(os)",
"Arrays.deepToString",
"Arrays",
"os",
"Object... os",
"os",
"int ni() throws IOException {\n return Integer.parseInt(ns());\n }",
"ni",
"{\n return Integer.parseInt(ns());\n }",
"return Integer.parseInt(ns());",
"Integer.parseInt(ns())",
"Integer.parseInt",
"Integer",
"ns()",
"ns",
"long nl() throws IOException {\n return Long.parseLong(ns());\n }",
"nl",
"{\n return Long.parseLong(ns());\n }",
"return Long.parseLong(ns());",
"Long.parseLong(ns())",
"Long.parseLong",
"Long",
"ns()",
"ns",
"double nd() throws IOException {\n return Double.parseDouble(ns());\n }",
"nd",
"{\n return Double.parseDouble(ns());\n }",
"return Double.parseDouble(ns());",
"Double.parseDouble(ns())",
"Double.parseDouble",
"Double",
"ns()",
"ns",
"String ns() throws IOException {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n tokenizer = new StringTokenizer(br.readLine());\n }\n return tokenizer.nextToken();\n }",
"ns",
"{\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n tokenizer = new StringTokenizer(br.readLine());\n }\n return tokenizer.nextToken();\n }",
"while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n tokenizer = new StringTokenizer(br.readLine());\n }",
"tokenizer == null || !tokenizer.hasMoreTokens()",
"tokenizer == null",
"tokenizer",
"null",
"!tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens",
"tokenizer",
"{\n tokenizer = new StringTokenizer(br.readLine());\n }",
"tokenizer = new StringTokenizer(br.readLine())",
"tokenizer",
"new StringTokenizer(br.readLine())",
"return tokenizer.nextToken();",
"tokenizer.nextToken()",
"tokenizer.nextToken",
"tokenizer",
"String nline() throws IOException {\n tokenizer = null;\n return br.readLine();\n }",
"nline",
"{\n tokenizer = null;\n return br.readLine();\n }",
"tokenizer = null",
"tokenizer",
"null",
"return br.readLine();",
"br.readLine()",
"br.readLine",
"br",
"boolean input() throws IOException {\n return true;\n }",
"input",
"{\n return true;\n }",
"return true;",
"true",
"public class Main {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer tokenizer = null;\n int totalCases, testNum;\n\n PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n\n void solve() throws IOException {\n\n }\n\n void execute() throws IOException {\n int k = ni();\n String s = ns();\n if (s.length() <= k) {\n out.println(s);\n } else {\n out.println(s.substring(0, k) + \"...\");\n }\n\n out.close();\n }\n\n public static void main(String[] args) throws IOException {\n new Main().execute();\n }\n\n void debug(Object... os) {\n System.out.println(Arrays.deepToString(os));\n }\n\n int ni() throws IOException {\n return Integer.parseInt(ns());\n }\n\n long nl() throws IOException {\n return Long.parseLong(ns());\n }\n\n double nd() throws IOException {\n return Double.parseDouble(ns());\n }\n\n String ns() throws IOException {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n tokenizer = new StringTokenizer(br.readLine());\n }\n return tokenizer.nextToken();\n }\n\n String nline() throws IOException {\n tokenizer = null;\n return br.readLine();\n }\n\n boolean input() throws IOException {\n return true;\n }\n\n}",
"public class Main {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer tokenizer = null;\n int totalCases, testNum;\n\n PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n\n void solve() throws IOException {\n\n }\n\n void execute() throws IOException {\n int k = ni();\n String s = ns();\n if (s.length() <= k) {\n out.println(s);\n } else {\n out.println(s.substring(0, k) + \"...\");\n }\n\n out.close();\n }\n\n public static void main(String[] args) throws IOException {\n new Main().execute();\n }\n\n void debug(Object... os) {\n System.out.println(Arrays.deepToString(os));\n }\n\n int ni() throws IOException {\n return Integer.parseInt(ns());\n }\n\n long nl() throws IOException {\n return Long.parseLong(ns());\n }\n\n double nd() throws IOException {\n return Double.parseDouble(ns());\n }\n\n String ns() throws IOException {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n tokenizer = new StringTokenizer(br.readLine());\n }\n return tokenizer.nextToken();\n }\n\n String nline() throws IOException {\n tokenizer = null;\n return br.readLine();\n }\n\n boolean input() throws IOException {\n return true;\n }\n\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.StringTokenizer;
public class Main {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer tokenizer = null;
int totalCases, testNum;
PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));
void solve() throws IOException {
}
void execute() throws IOException {
int k = ni();
String s = ns();
if (s.length() <= k) {
out.println(s);
} else {
out.println(s.substring(0, k) + "...");
}
out.close();
}
public static void main(String[] args) throws IOException {
new Main().execute();
}
void debug(Object... os) {
System.out.println(Arrays.deepToString(os));
}
int ni() throws IOException {
return Integer.parseInt(ns());
}
long nl() throws IOException {
return Long.parseLong(ns());
}
double nd() throws IOException {
return Double.parseDouble(ns());
}
String ns() throws IOException {
while (tokenizer == null || !tokenizer.hasMoreTokens()) {
tokenizer = new StringTokenizer(br.readLine());
}
return tokenizer.nextToken();
}
String nline() throws IOException {
tokenizer = null;
return br.readLine();
}
boolean input() throws IOException {
return true;
}
}
|
[
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,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
23,
13,
12,
13,
30,
41,
13,
40,
17,
41,
13,
18,
13,
13,
41,
13,
42,
2,
2,
13,
13,
17,
30,
0,
13,
2,
2,
13,
13,
17,
14,
2,
18,
13,
13,
13,
30,
0,
13,
13,
30,
0,
13,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
40,
17,
41,
13,
4,
18,
13,
41,
13,
42,
2,
2,
13,
13,
17,
30,
0,
13,
2,
2,
13,
13,
17,
14,
2,
4,
18,
13,
13,
13,
30,
0,
13,
13,
30,
0,
13,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
29,
8,
2,
13,
17,
13,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
8,
2,
13,
17,
13,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
192,
11
],
[
192,
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
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
29,
33
],
[
28,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
28,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
48,
52
],
[
47,
53
],
[
12,
54
],
[
54,
55
],
[
192,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
58,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
58,
68
],
[
68,
69
],
[
58,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
70,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
76,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
84,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
84,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
58,
98
],
[
98,
99
],
[
56,
100
],
[
100,
101
],
[
56,
102
],
[
102,
103
],
[
192,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
106,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
114,
115
],
[
106,
116
],
[
116,
117
],
[
106,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
118,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
124,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
134,
137
],
[
133,
138
],
[
132,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
132,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
106,
147
],
[
147,
148
],
[
104,
149
],
[
149,
150
],
[
104,
151
],
[
151,
152
],
[
192,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
157,
161
],
[
157,
162
],
[
162,
163
],
[
162,
164
],
[
162,
165
],
[
165,
166
],
[
165,
167
],
[
153,
168
],
[
168,
169
],
[
153,
170
],
[
170,
171
],
[
192,
172
],
[
172,
173
],
[
172,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
176,
180
],
[
176,
181
],
[
181,
182
],
[
181,
183
],
[
181,
184
],
[
184,
185
],
[
184,
186
],
[
172,
187
],
[
187,
188
],
[
172,
189
],
[
189,
190
],
[
0,
191
],
[
191,
192
],
[
191,
193
]
] |
[
"import java.io.IOException;\nimport java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n//\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n//\t\tString W\t = in.readLine();\n//\t\tint num = Integer.parseInt(W.split(\" \")[0]);\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint K = sc.nextInt();\n\t\tString S = sc.next();\n\n\t\tif(S.length()<=K) {\n\t\t\tSystem.out.println(S);\n\t\t}else {\n\t\t\tSystem.out.println(S.substring(0,K)+\"...\");\n\t\t}\n\n\n\n\n\t}\n\n\t//\t//二分探索\n\t//k <= num となる最小の配列要素kのインデックスを返す\n\tstatic private int binarySearch(long num, long[] orderedArray){\n\t\tint lowerBorder = -1;\n\t\tint upperBorder = orderedArray.length;\n\t\tint mid;\n\n\t\twhile(upperBorder - lowerBorder >1) {\n\t\t\tmid = (upperBorder + lowerBorder)/2;\n\t\t\tif(orderedArray[mid]<=num) {\n\t\t\t\tlowerBorder = mid;\n\t\t\t}else {\n\t\t\t\tupperBorder = mid;\n\t\t\t}\n\t\t}\n\t\treturn lowerBorder;\n\t}\n\n\t//二分探索\n\t//k <= num となる最小のList要素kのインデックスを返す\n\tstatic private int binarySearch(long num, ArrayList<Long> orderedList){\n\t\tint lowerBorder = -1;\n\t\tint upperBorder = orderedList.size();\n\t\tint mid;\n\n\t\twhile(upperBorder - lowerBorder >1) {\n\t\t\tmid = (upperBorder + lowerBorder)/2;\n\t\t\tif(orderedList.get(mid)<=num) {\n\t\t\t\tlowerBorder = mid;\n\t\t\t}else {\n\t\t\t\tupperBorder = mid;\n\t\t\t}\n\t\t}\n\t\treturn lowerBorder;\n\t}\n\n\t//aとbの最小公倍数を求める\n\tpublic static int gcd(int a, int b) {\n return b == 0 ? a: gcd(b, a % b);\n\t}\n\tpublic static long gcd(long a, long b) {\n return b == 0 ? a: gcd(b, a % b);\n\t}\n\n\n\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n//\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n//\t\tString W\t = in.readLine();\n//\t\tint num = Integer.parseInt(W.split(\" \")[0]);\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint K = sc.nextInt();\n\t\tString S = sc.next();\n\n\t\tif(S.length()<=K) {\n\t\t\tSystem.out.println(S);\n\t\t}else {\n\t\t\tSystem.out.println(S.substring(0,K)+\"...\");\n\t\t}\n\n\n\n\n\t}\n\n\t//\t//二分探索\n\t//k <= num となる最小の配列要素kのインデックスを返す\n\tstatic private int binarySearch(long num, long[] orderedArray){\n\t\tint lowerBorder = -1;\n\t\tint upperBorder = orderedArray.length;\n\t\tint mid;\n\n\t\twhile(upperBorder - lowerBorder >1) {\n\t\t\tmid = (upperBorder + lowerBorder)/2;\n\t\t\tif(orderedArray[mid]<=num) {\n\t\t\t\tlowerBorder = mid;\n\t\t\t}else {\n\t\t\t\tupperBorder = mid;\n\t\t\t}\n\t\t}\n\t\treturn lowerBorder;\n\t}\n\n\t//二分探索\n\t//k <= num となる最小のList要素kのインデックスを返す\n\tstatic private int binarySearch(long num, ArrayList<Long> orderedList){\n\t\tint lowerBorder = -1;\n\t\tint upperBorder = orderedList.size();\n\t\tint mid;\n\n\t\twhile(upperBorder - lowerBorder >1) {\n\t\t\tmid = (upperBorder + lowerBorder)/2;\n\t\t\tif(orderedList.get(mid)<=num) {\n\t\t\t\tlowerBorder = mid;\n\t\t\t}else {\n\t\t\t\tupperBorder = mid;\n\t\t\t}\n\t\t}\n\t\treturn lowerBorder;\n\t}\n\n\t//aとbの最小公倍数を求める\n\tpublic static int gcd(int a, int b) {\n return b == 0 ? a: gcd(b, a % b);\n\t}\n\tpublic static long gcd(long a, long b) {\n return b == 0 ? a: gcd(b, a % b);\n\t}\n\n\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n//\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n//\t\tString W\t = in.readLine();\n//\t\tint num = Integer.parseInt(W.split(\" \")[0]);\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint K = sc.nextInt();\n\t\tString S = sc.next();\n\n\t\tif(S.length()<=K) {\n\t\t\tSystem.out.println(S);\n\t\t}else {\n\t\t\tSystem.out.println(S.substring(0,K)+\"...\");\n\t\t}\n\n\n\n\n\t}",
"main",
"{\n//\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n//\t\tString W\t = in.readLine();\n//\t\tint num = Integer.parseInt(W.split(\" \")[0]);\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint K = sc.nextInt();\n\t\tString S = sc.next();\n\n\t\tif(S.length()<=K) {\n\t\t\tSystem.out.println(S);\n\t\t}else {\n\t\t\tSystem.out.println(S.substring(0,K)+\"...\");\n\t\t}\n\n\n\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String S = sc.next();",
"S",
"sc.next()",
"sc.next",
"sc",
"if(S.length()<=K) {\n\t\t\tSystem.out.println(S);\n\t\t}else {\n\t\t\tSystem.out.println(S.substring(0,K)+\"...\");\n\t\t}",
"S.length()<=K",
"S.length()",
"S.length",
"S",
"K",
"{\n\t\t\tSystem.out.println(S);\n\t\t}",
"System.out.println(S)",
"System.out.println",
"System.out",
"System",
"System.out",
"S",
"{\n\t\t\tSystem.out.println(S.substring(0,K)+\"...\");\n\t\t}",
"System.out.println(S.substring(0,K)+\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"S.substring(0,K)+\"...\"",
"S.substring(0,K)",
"S.substring",
"S",
"0",
"K",
"\"...\"",
"String[] args",
"args",
"//\t//二分探索\n\t//k <= num となる最小の配列要素kのインデックスを返す\n\tstatic private int binarySearch(long num, long[] orderedArray){\n\t\tint lowerBorder = -1;\n\t\tint upperBorder = orderedArray.length;\n\t\tint mid;\n\n\t\twhile(upperBorder - lowerBorder >1) {\n\t\t\tmid = (upperBorder + lowerBorder)/2;\n\t\t\tif(orderedArray[mid]<=num) {\n\t\t\t\tlowerBorder = mid;\n\t\t\t}else {\n\t\t\t\tupperBorder = mid;\n\t\t\t}\n\t\t}\n\t\treturn lowerBorder;\n\t}",
"binarySearch",
"{\n\t\tint lowerBorder = -1;\n\t\tint upperBorder = orderedArray.length;\n\t\tint mid;\n\n\t\twhile(upperBorder - lowerBorder >1) {\n\t\t\tmid = (upperBorder + lowerBorder)/2;\n\t\t\tif(orderedArray[mid]<=num) {\n\t\t\t\tlowerBorder = mid;\n\t\t\t}else {\n\t\t\t\tupperBorder = mid;\n\t\t\t}\n\t\t}\n\t\treturn lowerBorder;\n\t}",
"int lowerBorder = -1;",
"lowerBorder",
"-1",
"1",
"int upperBorder = orderedArray.length;",
"upperBorder",
"orderedArray.length",
"orderedArray",
"orderedArray.length",
"int mid;",
"mid",
"while(upperBorder - lowerBorder >1) {\n\t\t\tmid = (upperBorder + lowerBorder)/2;\n\t\t\tif(orderedArray[mid]<=num) {\n\t\t\t\tlowerBorder = mid;\n\t\t\t}else {\n\t\t\t\tupperBorder = mid;\n\t\t\t}\n\t\t}",
"upperBorder - lowerBorder >1",
"upperBorder - lowerBorder",
"upperBorder",
"lowerBorder",
"1",
"{\n\t\t\tmid = (upperBorder + lowerBorder)/2;\n\t\t\tif(orderedArray[mid]<=num) {\n\t\t\t\tlowerBorder = mid;\n\t\t\t}else {\n\t\t\t\tupperBorder = mid;\n\t\t\t}\n\t\t}",
"mid = (upperBorder + lowerBorder)/2",
"mid",
"(upperBorder + lowerBorder)/2",
"(upperBorder + lowerBorder)",
"upperBorder",
"lowerBorder",
"2",
"if(orderedArray[mid]<=num) {\n\t\t\t\tlowerBorder = mid;\n\t\t\t}else {\n\t\t\t\tupperBorder = mid;\n\t\t\t}",
"orderedArray[mid]<=num",
"orderedArray[mid]",
"orderedArray",
"mid",
"num",
"{\n\t\t\t\tlowerBorder = mid;\n\t\t\t}",
"lowerBorder = mid",
"lowerBorder",
"mid",
"{\n\t\t\t\tupperBorder = mid;\n\t\t\t}",
"upperBorder = mid",
"upperBorder",
"mid",
"return lowerBorder;",
"lowerBorder",
"long num",
"num",
"long[] orderedArray",
"orderedArray",
"//二分探索\n\t//k <= num となる最小のList要素kのインデックスを返す\n\tstatic private int binarySearch(long num, ArrayList<Long> orderedList){\n\t\tint lowerBorder = -1;\n\t\tint upperBorder = orderedList.size();\n\t\tint mid;\n\n\t\twhile(upperBorder - lowerBorder >1) {\n\t\t\tmid = (upperBorder + lowerBorder)/2;\n\t\t\tif(orderedList.get(mid)<=num) {\n\t\t\t\tlowerBorder = mid;\n\t\t\t}else {\n\t\t\t\tupperBorder = mid;\n\t\t\t}\n\t\t}\n\t\treturn lowerBorder;\n\t}",
"binarySearch",
"{\n\t\tint lowerBorder = -1;\n\t\tint upperBorder = orderedList.size();\n\t\tint mid;\n\n\t\twhile(upperBorder - lowerBorder >1) {\n\t\t\tmid = (upperBorder + lowerBorder)/2;\n\t\t\tif(orderedList.get(mid)<=num) {\n\t\t\t\tlowerBorder = mid;\n\t\t\t}else {\n\t\t\t\tupperBorder = mid;\n\t\t\t}\n\t\t}\n\t\treturn lowerBorder;\n\t}",
"int lowerBorder = -1;",
"lowerBorder",
"-1",
"1",
"int upperBorder = orderedList.size();",
"upperBorder",
"orderedList.size()",
"orderedList.size",
"orderedList",
"int mid;",
"mid",
"while(upperBorder - lowerBorder >1) {\n\t\t\tmid = (upperBorder + lowerBorder)/2;\n\t\t\tif(orderedList.get(mid)<=num) {\n\t\t\t\tlowerBorder = mid;\n\t\t\t}else {\n\t\t\t\tupperBorder = mid;\n\t\t\t}\n\t\t}",
"upperBorder - lowerBorder >1",
"upperBorder - lowerBorder",
"upperBorder",
"lowerBorder",
"1",
"{\n\t\t\tmid = (upperBorder + lowerBorder)/2;\n\t\t\tif(orderedList.get(mid)<=num) {\n\t\t\t\tlowerBorder = mid;\n\t\t\t}else {\n\t\t\t\tupperBorder = mid;\n\t\t\t}\n\t\t}",
"mid = (upperBorder + lowerBorder)/2",
"mid",
"(upperBorder + lowerBorder)/2",
"(upperBorder + lowerBorder)",
"upperBorder",
"lowerBorder",
"2",
"if(orderedList.get(mid)<=num) {\n\t\t\t\tlowerBorder = mid;\n\t\t\t}else {\n\t\t\t\tupperBorder = mid;\n\t\t\t}",
"orderedList.get(mid)<=num",
"orderedList.get(mid)",
"orderedList.get",
"orderedList",
"mid",
"num",
"{\n\t\t\t\tlowerBorder = mid;\n\t\t\t}",
"lowerBorder = mid",
"lowerBorder",
"mid",
"{\n\t\t\t\tupperBorder = mid;\n\t\t\t}",
"upperBorder = mid",
"upperBorder",
"mid",
"return lowerBorder;",
"lowerBorder",
"long num",
"num",
"ArrayList<Long> orderedList",
"orderedList",
"//aとbの最小公倍数を求める\n\tpublic static int gcd(int a, int b) {\n return b == 0 ? a: gcd(b, a % b);\n\t}",
"gcd",
"{\n return b == 0 ? a: gcd(b, a % b);\n\t}",
"return b == 0 ? a: gcd(b, a % b);",
"b == 0 ? a: gcd(b, a % b)",
"b == 0",
"b",
"0",
"a",
"gcd(b, a % b)",
"gcd",
"b",
"a % b",
"a",
"b",
"int a",
"a",
"int b",
"b",
"public static long gcd(long a, long b) {\n return b == 0 ? a: gcd(b, a % b);\n\t}",
"gcd",
"{\n return b == 0 ? a: gcd(b, a % b);\n\t}",
"return b == 0 ? a: gcd(b, a % b);",
"b == 0 ? a: gcd(b, a % b)",
"b == 0",
"b",
"0",
"a",
"gcd(b, a % b)",
"gcd",
"b",
"a % b",
"a",
"b",
"long a",
"a",
"long b",
"b",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n//\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n//\t\tString W\t = in.readLine();\n//\t\tint num = Integer.parseInt(W.split(\" \")[0]);\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint K = sc.nextInt();\n\t\tString S = sc.next();\n\n\t\tif(S.length()<=K) {\n\t\t\tSystem.out.println(S);\n\t\t}else {\n\t\t\tSystem.out.println(S.substring(0,K)+\"...\");\n\t\t}\n\n\n\n\n\t}\n\n\t//\t//二分探索\n\t//k <= num となる最小の配列要素kのインデックスを返す\n\tstatic private int binarySearch(long num, long[] orderedArray){\n\t\tint lowerBorder = -1;\n\t\tint upperBorder = orderedArray.length;\n\t\tint mid;\n\n\t\twhile(upperBorder - lowerBorder >1) {\n\t\t\tmid = (upperBorder + lowerBorder)/2;\n\t\t\tif(orderedArray[mid]<=num) {\n\t\t\t\tlowerBorder = mid;\n\t\t\t}else {\n\t\t\t\tupperBorder = mid;\n\t\t\t}\n\t\t}\n\t\treturn lowerBorder;\n\t}\n\n\t//二分探索\n\t//k <= num となる最小のList要素kのインデックスを返す\n\tstatic private int binarySearch(long num, ArrayList<Long> orderedList){\n\t\tint lowerBorder = -1;\n\t\tint upperBorder = orderedList.size();\n\t\tint mid;\n\n\t\twhile(upperBorder - lowerBorder >1) {\n\t\t\tmid = (upperBorder + lowerBorder)/2;\n\t\t\tif(orderedList.get(mid)<=num) {\n\t\t\t\tlowerBorder = mid;\n\t\t\t}else {\n\t\t\t\tupperBorder = mid;\n\t\t\t}\n\t\t}\n\t\treturn lowerBorder;\n\t}\n\n\t//aとbの最小公倍数を求める\n\tpublic static int gcd(int a, int b) {\n return b == 0 ? a: gcd(b, a % b);\n\t}\n\tpublic static long gcd(long a, long b) {\n return b == 0 ? a: gcd(b, a % b);\n\t}\n\n\n\n}",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n//\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n//\t\tString W\t = in.readLine();\n//\t\tint num = Integer.parseInt(W.split(\" \")[0]);\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint K = sc.nextInt();\n\t\tString S = sc.next();\n\n\t\tif(S.length()<=K) {\n\t\t\tSystem.out.println(S);\n\t\t}else {\n\t\t\tSystem.out.println(S.substring(0,K)+\"...\");\n\t\t}\n\n\n\n\n\t}\n\n\t//\t//二分探索\n\t//k <= num となる最小の配列要素kのインデックスを返す\n\tstatic private int binarySearch(long num, long[] orderedArray){\n\t\tint lowerBorder = -1;\n\t\tint upperBorder = orderedArray.length;\n\t\tint mid;\n\n\t\twhile(upperBorder - lowerBorder >1) {\n\t\t\tmid = (upperBorder + lowerBorder)/2;\n\t\t\tif(orderedArray[mid]<=num) {\n\t\t\t\tlowerBorder = mid;\n\t\t\t}else {\n\t\t\t\tupperBorder = mid;\n\t\t\t}\n\t\t}\n\t\treturn lowerBorder;\n\t}\n\n\t//二分探索\n\t//k <= num となる最小のList要素kのインデックスを返す\n\tstatic private int binarySearch(long num, ArrayList<Long> orderedList){\n\t\tint lowerBorder = -1;\n\t\tint upperBorder = orderedList.size();\n\t\tint mid;\n\n\t\twhile(upperBorder - lowerBorder >1) {\n\t\t\tmid = (upperBorder + lowerBorder)/2;\n\t\t\tif(orderedList.get(mid)<=num) {\n\t\t\t\tlowerBorder = mid;\n\t\t\t}else {\n\t\t\t\tupperBorder = mid;\n\t\t\t}\n\t\t}\n\t\treturn lowerBorder;\n\t}\n\n\t//aとbの最小公倍数を求める\n\tpublic static int gcd(int a, int b) {\n return b == 0 ? a: gcd(b, a % b);\n\t}\n\tpublic static long gcd(long a, long b) {\n return b == 0 ? a: gcd(b, a % b);\n\t}\n\n\n\n}",
"Main"
] |
import java.io.IOException;
import java.util.ArrayList;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException {
// BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
// String W = in.readLine();
// int num = Integer.parseInt(W.split(" ")[0]);
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
String S = sc.next();
if(S.length()<=K) {
System.out.println(S);
}else {
System.out.println(S.substring(0,K)+"...");
}
}
// //二分探索
//k <= num となる最小の配列要素kのインデックスを返す
static private int binarySearch(long num, long[] orderedArray){
int lowerBorder = -1;
int upperBorder = orderedArray.length;
int mid;
while(upperBorder - lowerBorder >1) {
mid = (upperBorder + lowerBorder)/2;
if(orderedArray[mid]<=num) {
lowerBorder = mid;
}else {
upperBorder = mid;
}
}
return lowerBorder;
}
//二分探索
//k <= num となる最小のList要素kのインデックスを返す
static private int binarySearch(long num, ArrayList<Long> orderedList){
int lowerBorder = -1;
int upperBorder = orderedList.size();
int mid;
while(upperBorder - lowerBorder >1) {
mid = (upperBorder + lowerBorder)/2;
if(orderedList.get(mid)<=num) {
lowerBorder = mid;
}else {
upperBorder = mid;
}
}
return lowerBorder;
}
//aとbの最小公倍数を求める
public static int gcd(int a, int b) {
return b == 0 ? a: gcd(b, a % b);
}
public static long gcd(long a, long b) {
return b == 0 ? a: gcd(b, a % b);
}
}
|
[
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,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
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
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
26,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
25,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
45,
49
],
[
44,
50
],
[
6,
51
],
[
51,
52
],
[
0,
53
],
[
53,
54
],
[
53,
55
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint num = Integer.parseInt(sc.nextLine());\n\t\tString strings = sc.nextLine();\n\n\t\tif (strings.length() <= num) {\n\t\t\tSystem.out.println(strings);\n\t\t} else {\n\t\t\tSystem.out.println(strings.substring(0, num) + \"...\");\n\t\t}\n\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint num = Integer.parseInt(sc.nextLine());\n\t\tString strings = sc.nextLine();\n\n\t\tif (strings.length() <= num) {\n\t\t\tSystem.out.println(strings);\n\t\t} else {\n\t\t\tSystem.out.println(strings.substring(0, num) + \"...\");\n\t\t}\n\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint num = Integer.parseInt(sc.nextLine());\n\t\tString strings = sc.nextLine();\n\n\t\tif (strings.length() <= num) {\n\t\t\tSystem.out.println(strings);\n\t\t} else {\n\t\t\tSystem.out.println(strings.substring(0, num) + \"...\");\n\t\t}\n\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint num = Integer.parseInt(sc.nextLine());\n\t\tString strings = sc.nextLine();\n\n\t\tif (strings.length() <= num) {\n\t\t\tSystem.out.println(strings);\n\t\t} else {\n\t\t\tSystem.out.println(strings.substring(0, num) + \"...\");\n\t\t}\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int num = Integer.parseInt(sc.nextLine());",
"num",
"Integer.parseInt(sc.nextLine())",
"Integer.parseInt",
"Integer",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String strings = sc.nextLine();",
"strings",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if (strings.length() <= num) {\n\t\t\tSystem.out.println(strings);\n\t\t} else {\n\t\t\tSystem.out.println(strings.substring(0, num) + \"...\");\n\t\t}",
"strings.length() <= num",
"strings.length()",
"strings.length",
"strings",
"num",
"{\n\t\t\tSystem.out.println(strings);\n\t\t}",
"System.out.println(strings)",
"System.out.println",
"System.out",
"System",
"System.out",
"strings",
"{\n\t\t\tSystem.out.println(strings.substring(0, num) + \"...\");\n\t\t}",
"System.out.println(strings.substring(0, num) + \"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"strings.substring(0, num) + \"...\"",
"strings.substring(0, num)",
"strings.substring",
"strings",
"0",
"num",
"\"...\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint num = Integer.parseInt(sc.nextLine());\n\t\tString strings = sc.nextLine();\n\n\t\tif (strings.length() <= num) {\n\t\t\tSystem.out.println(strings);\n\t\t} else {\n\t\t\tSystem.out.println(strings.substring(0, num) + \"...\");\n\t\t}\n\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint num = Integer.parseInt(sc.nextLine());\n\t\tString strings = sc.nextLine();\n\n\t\tif (strings.length() <= num) {\n\t\t\tSystem.out.println(strings);\n\t\t} else {\n\t\t\tSystem.out.println(strings.substring(0, num) + \"...\");\n\t\t}\n\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int num = Integer.parseInt(sc.nextLine());
String strings = sc.nextLine();
if (strings.length() <= num) {
System.out.println(strings);
} else {
System.out.println(strings.substring(0, num) + "...");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
51,
5
],
[
51,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
23,
27
],
[
22,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
22,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
42,
46
],
[
41,
47
],
[
6,
48
],
[
48,
49
],
[
0,
50
],
[
50,
51
],
[
50,
52
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int K = scanner.nextInt();\n String N = scanner.next();\n if (N.length() <= K) {\n System.out.println(N);\n } else {\n System.out.println(N.substring(0, K) + \"...\");\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 int K = scanner.nextInt();\n String N = scanner.next();\n if (N.length() <= K) {\n System.out.println(N);\n } else {\n System.out.println(N.substring(0, K) + \"...\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int K = scanner.nextInt();\n String N = scanner.next();\n if (N.length() <= K) {\n System.out.println(N);\n } else {\n System.out.println(N.substring(0, K) + \"...\");\n }\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n int K = scanner.nextInt();\n String N = scanner.next();\n if (N.length() <= K) {\n System.out.println(N);\n } else {\n System.out.println(N.substring(0, K) + \"...\");\n }\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int K = scanner.nextInt();",
"K",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"String N = scanner.next();",
"N",
"scanner.next()",
"scanner.next",
"scanner",
"if (N.length() <= K) {\n System.out.println(N);\n } else {\n System.out.println(N.substring(0, K) + \"...\");\n }",
"N.length() <= K",
"N.length()",
"N.length",
"N",
"K",
"{\n System.out.println(N);\n }",
"System.out.println(N)",
"System.out.println",
"System.out",
"System",
"System.out",
"N",
"{\n System.out.println(N.substring(0, K) + \"...\");\n }",
"System.out.println(N.substring(0, K) + \"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"N.substring(0, K) + \"...\"",
"N.substring(0, K)",
"N.substring",
"N",
"0",
"K",
"\"...\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int K = scanner.nextInt();\n String N = scanner.next();\n if (N.length() <= K) {\n System.out.println(N);\n } else {\n System.out.println(N.substring(0, K) + \"...\");\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int K = scanner.nextInt();\n String N = scanner.next();\n if (N.length() <= K) {\n System.out.println(N);\n } else {\n System.out.println(N.substring(0, K) + \"...\");\n }\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int K = scanner.nextInt();
String N = scanner.next();
if (N.length() <= K) {
System.out.println(N);
} else {
System.out.println(N.substring(0, K) + "...");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
17,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
18,
13,
13,
4,
18,
18,
13,
13,
2,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
74,
5
],
[
74,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
32,
36
],
[
31,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
31,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
45,
53
],
[
53,
54
],
[
54,
55
],
[
45,
56
],
[
57,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
60,
62
],
[
44,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
6,
71
],
[
71,
72
],
[
0,
73
],
[
73,
74
],
[
73,
75
]
] |
[
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n String S = sc.next();\n String s[] = S.split(\"\");\n String ans=\"\";\n if(S.length()<=K)\n {\n System.out.println(S);\n }\n else\n {\n for(int i=0;i<K;i++)\n {\n ans += s[i];\n }\n System.out.println(ans+\"...\");\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n String S = sc.next();\n String s[] = S.split(\"\");\n String ans=\"\";\n if(S.length()<=K)\n {\n System.out.println(S);\n }\n else\n {\n for(int i=0;i<K;i++)\n {\n ans += s[i];\n }\n System.out.println(ans+\"...\");\n }\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n String S = sc.next();\n String s[] = S.split(\"\");\n String ans=\"\";\n if(S.length()<=K)\n {\n System.out.println(S);\n }\n else\n {\n for(int i=0;i<K;i++)\n {\n ans += s[i];\n }\n System.out.println(ans+\"...\");\n }\n }",
"main",
"{\n // Your code here!\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n String S = sc.next();\n String s[] = S.split(\"\");\n String ans=\"\";\n if(S.length()<=K)\n {\n System.out.println(S);\n }\n else\n {\n for(int i=0;i<K;i++)\n {\n ans += s[i];\n }\n System.out.println(ans+\"...\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String S = sc.next();",
"S",
"sc.next()",
"sc.next",
"sc",
"String s[] = S.split(\"\");",
"s",
"S.split(\"\")",
"S.split",
"S",
"\"\"",
"String ans=\"\";",
"ans",
"\"\"",
"if(S.length()<=K)\n {\n System.out.println(S);\n }\n else\n {\n for(int i=0;i<K;i++)\n {\n ans += s[i];\n }\n System.out.println(ans+\"...\");\n }",
"S.length()<=K",
"S.length()",
"S.length",
"S",
"K",
"{\n System.out.println(S);\n }",
"System.out.println(S)",
"System.out.println",
"System.out",
"System",
"System.out",
"S",
"{\n for(int i=0;i<K;i++)\n {\n ans += s[i];\n }\n System.out.println(ans+\"...\");\n }",
"for(int i=0;i<K;i++)\n {\n ans += s[i];\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<K",
"i",
"K",
"i++",
"i++",
"i",
"{\n ans += s[i];\n }",
"{\n ans += s[i];\n }",
"ans += s[i]",
"ans",
"s[i]",
"s",
"i",
"System.out.println(ans+\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"ans+\"...\"",
"ans",
"\"...\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n String S = sc.next();\n String s[] = S.split(\"\");\n String ans=\"\";\n if(S.length()<=K)\n {\n System.out.println(S);\n }\n else\n {\n for(int i=0;i<K;i++)\n {\n ans += s[i];\n }\n System.out.println(ans+\"...\");\n }\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n String S = sc.next();\n String s[] = S.split(\"\");\n String ans=\"\";\n if(S.length()<=K)\n {\n System.out.println(S);\n }\n else\n {\n for(int i=0;i<K;i++)\n {\n ans += s[i];\n }\n System.out.println(ans+\"...\");\n }\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
// Your code here!
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
String S = sc.next();
String s[] = S.split("");
String ans="";
if(S.length()<=K)
{
System.out.println(S);
}
else
{
for(int i=0;i<K;i++)
{
ans += s[i];
}
System.out.println(ans+"...");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
14,
2,
13,
18,
13,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
89,
5
],
[
89,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
8,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
31,
33
],
[
28,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
42,
44
],
[
35,
45
],
[
45,
46
],
[
46,
47
],
[
35,
48
],
[
49,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
28,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
64,
65
],
[
64,
66
],
[
59,
67
],
[
67,
68
],
[
68,
69
],
[
59,
70
],
[
71,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
58,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
6,
86
],
[
86,
87
],
[
0,
88
],
[
88,
89
],
[
88,
90
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n \t\tScanner scanner = new Scanner(System.in);\n \t\tint K = scanner.nextInt();\n \t\tString S = scanner.next();\n \t\tString[] S1 = S.split(\"\");\n\n \t\tif (K >= S1.length) {\n \t\t\tfor (int j = 0; j < S1.length; j++) {\n \t \t\t\tSystem.out.print(S1[j]);\n \t \t\t}\n \t\t} else {\n \t\t\tfor (int j = 0; j < K; j++) {\n \t \t\t\tSystem.out.print(S1[j]);\n \t \t\t}\n \t\t\tSystem.out.println(\"...\");\n \t\t}\n \t}\n }",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n \t\tScanner scanner = new Scanner(System.in);\n \t\tint K = scanner.nextInt();\n \t\tString S = scanner.next();\n \t\tString[] S1 = S.split(\"\");\n\n \t\tif (K >= S1.length) {\n \t\t\tfor (int j = 0; j < S1.length; j++) {\n \t \t\t\tSystem.out.print(S1[j]);\n \t \t\t}\n \t\t} else {\n \t\t\tfor (int j = 0; j < K; j++) {\n \t \t\t\tSystem.out.print(S1[j]);\n \t \t\t}\n \t\t\tSystem.out.println(\"...\");\n \t\t}\n \t}\n }",
"Main",
"public static void main(String[] args) {\n \t\tScanner scanner = new Scanner(System.in);\n \t\tint K = scanner.nextInt();\n \t\tString S = scanner.next();\n \t\tString[] S1 = S.split(\"\");\n\n \t\tif (K >= S1.length) {\n \t\t\tfor (int j = 0; j < S1.length; j++) {\n \t \t\t\tSystem.out.print(S1[j]);\n \t \t\t}\n \t\t} else {\n \t\t\tfor (int j = 0; j < K; j++) {\n \t \t\t\tSystem.out.print(S1[j]);\n \t \t\t}\n \t\t\tSystem.out.println(\"...\");\n \t\t}\n \t}",
"main",
"{\n \t\tScanner scanner = new Scanner(System.in);\n \t\tint K = scanner.nextInt();\n \t\tString S = scanner.next();\n \t\tString[] S1 = S.split(\"\");\n\n \t\tif (K >= S1.length) {\n \t\t\tfor (int j = 0; j < S1.length; j++) {\n \t \t\t\tSystem.out.print(S1[j]);\n \t \t\t}\n \t\t} else {\n \t\t\tfor (int j = 0; j < K; j++) {\n \t \t\t\tSystem.out.print(S1[j]);\n \t \t\t}\n \t\t\tSystem.out.println(\"...\");\n \t\t}\n \t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int K = scanner.nextInt();",
"K",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"String S = scanner.next();",
"S",
"scanner.next()",
"scanner.next",
"scanner",
"String[] S1 = S.split(\"\");",
"S1",
"S.split(\"\")",
"S.split",
"S",
"\"\"",
"if (K >= S1.length) {\n \t\t\tfor (int j = 0; j < S1.length; j++) {\n \t \t\t\tSystem.out.print(S1[j]);\n \t \t\t}\n \t\t} else {\n \t\t\tfor (int j = 0; j < K; j++) {\n \t \t\t\tSystem.out.print(S1[j]);\n \t \t\t}\n \t\t\tSystem.out.println(\"...\");\n \t\t}",
"K >= S1.length",
"K",
"S1.length",
"S1",
"S1.length",
"{\n \t\t\tfor (int j = 0; j < S1.length; j++) {\n \t \t\t\tSystem.out.print(S1[j]);\n \t \t\t}\n \t\t}",
"for (int j = 0; j < S1.length; j++) {\n \t \t\t\tSystem.out.print(S1[j]);\n \t \t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < S1.length",
"j",
"S1.length",
"S1",
"S1.length",
"j++",
"j++",
"j",
"{\n \t \t\t\tSystem.out.print(S1[j]);\n \t \t\t}",
"{\n \t \t\t\tSystem.out.print(S1[j]);\n \t \t\t}",
"System.out.print(S1[j])",
"System.out.print",
"System.out",
"System",
"System.out",
"S1[j]",
"S1",
"j",
"{\n \t\t\tfor (int j = 0; j < K; j++) {\n \t \t\t\tSystem.out.print(S1[j]);\n \t \t\t}\n \t\t\tSystem.out.println(\"...\");\n \t\t}",
"for (int j = 0; j < K; j++) {\n \t \t\t\tSystem.out.print(S1[j]);\n \t \t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < K",
"j",
"K",
"j++",
"j++",
"j",
"{\n \t \t\t\tSystem.out.print(S1[j]);\n \t \t\t}",
"{\n \t \t\t\tSystem.out.print(S1[j]);\n \t \t\t}",
"System.out.print(S1[j])",
"System.out.print",
"System.out",
"System",
"System.out",
"S1[j]",
"S1",
"j",
"System.out.println(\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"...\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n \t\tScanner scanner = new Scanner(System.in);\n \t\tint K = scanner.nextInt();\n \t\tString S = scanner.next();\n \t\tString[] S1 = S.split(\"\");\n\n \t\tif (K >= S1.length) {\n \t\t\tfor (int j = 0; j < S1.length; j++) {\n \t \t\t\tSystem.out.print(S1[j]);\n \t \t\t}\n \t\t} else {\n \t\t\tfor (int j = 0; j < K; j++) {\n \t \t\t\tSystem.out.print(S1[j]);\n \t \t\t}\n \t\t\tSystem.out.println(\"...\");\n \t\t}\n \t}\n }",
"public class Main {\n\tpublic static void main(String[] args) {\n \t\tScanner scanner = new Scanner(System.in);\n \t\tint K = scanner.nextInt();\n \t\tString S = scanner.next();\n \t\tString[] S1 = S.split(\"\");\n\n \t\tif (K >= S1.length) {\n \t\t\tfor (int j = 0; j < S1.length; j++) {\n \t \t\t\tSystem.out.print(S1[j]);\n \t \t\t}\n \t\t} else {\n \t\t\tfor (int j = 0; j < K; j++) {\n \t \t\t\tSystem.out.print(S1[j]);\n \t \t\t}\n \t\t\tSystem.out.println(\"...\");\n \t\t}\n \t}\n }",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int K = scanner.nextInt();
String S = scanner.next();
String[] S1 = S.split("");
if (K >= S1.length) {
for (int j = 0; j < S1.length; j++) {
System.out.print(S1[j]);
}
} else {
for (int j = 0; j < K; j++) {
System.out.print(S1[j]);
}
System.out.println("...");
}
}
}
|
[
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,
4,
18,
13,
41,
13,
17,
14,
2,
13,
13,
4,
18,
18,
13,
13,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
4,
18,
13,
13,
0,
13,
2,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
33,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
43,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
67,
69
],
[
43,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
6,
76
],
[
76,
77
]
] |
[
"import java.util.*;\nclass Main\n{\n public static void main(String args[])\n {\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n sc.nextLine();\n String s=sc.nextLine();\n int l=s.length();\n String k=\"\";\n if(l<=n)\n System.out.println(s);\n \n else\n {\n for(int i=0;i<n;i++)\n {\n k=k+s.charAt(i);\n }\n k=k+\"...\";\n System.out.println(k);\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main\n{\n public static void main(String args[])\n {\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n sc.nextLine();\n String s=sc.nextLine();\n int l=s.length();\n String k=\"\";\n if(l<=n)\n System.out.println(s);\n \n else\n {\n for(int i=0;i<n;i++)\n {\n k=k+s.charAt(i);\n }\n k=k+\"...\";\n System.out.println(k);\n }\n }\n}",
"Main",
"public static void main(String args[])\n {\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n sc.nextLine();\n String s=sc.nextLine();\n int l=s.length();\n String k=\"\";\n if(l<=n)\n System.out.println(s);\n \n else\n {\n for(int i=0;i<n;i++)\n {\n k=k+s.charAt(i);\n }\n k=k+\"...\";\n System.out.println(k);\n }\n }",
"main",
"{\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n sc.nextLine();\n String s=sc.nextLine();\n int l=s.length();\n String k=\"\";\n if(l<=n)\n System.out.println(s);\n \n else\n {\n for(int i=0;i<n;i++)\n {\n k=k+s.charAt(i);\n }\n k=k+\"...\";\n System.out.println(k);\n }\n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String s=sc.nextLine();",
"s",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int l=s.length();",
"l",
"s.length()",
"s.length",
"s",
"String k=\"\";",
"k",
"\"\"",
"if(l<=n)\n System.out.println(s);\n \n else\n {\n for(int i=0;i<n;i++)\n {\n k=k+s.charAt(i);\n }\n k=k+\"...\";\n System.out.println(k);\n }",
"l<=n",
"l",
"n",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"{\n for(int i=0;i<n;i++)\n {\n k=k+s.charAt(i);\n }\n k=k+\"...\";\n System.out.println(k);\n }",
"for(int i=0;i<n;i++)\n {\n k=k+s.charAt(i);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n k=k+s.charAt(i);\n }",
"{\n k=k+s.charAt(i);\n }",
"k=k+s.charAt(i)",
"k",
"k+s.charAt(i)",
"k",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"k=k+\"...\"",
"k",
"k+\"...\"",
"k",
"\"...\"",
"System.out.println(k)",
"System.out.println",
"System.out",
"System",
"System.out",
"k",
"String args[]",
"args"
] |
import java.util.*;
class Main
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
sc.nextLine();
String s=sc.nextLine();
int l=s.length();
String k="";
if(l<=n)
System.out.println(s);
else
{
for(int i=0;i<n;i++)
{
k=k+s.charAt(i);
}
k=k+"...";
System.out.println(k);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
4,
18,
13,
13,
30,
4,
18,
13,
2,
4,
18,
13,
17,
13,
17,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
41,
13,
4,
13,
41,
13,
20,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
14,
2,
4,
18,
13,
17,
17,
30,
0,
13,
17,
40,
13,
11,
1,
41,
13,
13,
2,
13,
4,
18,
13,
1,
40,
13,
30,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
4,
18,
13,
4,
18,
13,
0,
13,
20,
0,
13,
17,
30,
4,
18,
13,
4,
18,
13,
13,
14,
13,
0,
13,
17,
0,
13,
2,
4,
18,
13,
4,
18,
13,
13,
29,
2,
13,
8,
13,
40,
17,
17,
12,
13,
30,
29,
4,
18,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
234,
8
],
[
234,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
11,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
29,
33
],
[
28,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
28,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
44,
48
],
[
43,
49
],
[
11,
50
],
[
50,
51
],
[
51,
52
],
[
9,
53
],
[
53,
54
],
[
234,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
55,
59
],
[
59,
60
],
[
55,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
61,
67
],
[
67,
68
],
[
55,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
69,
75
],
[
75,
76
],
[
55,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
80,
89
],
[
89,
90
],
[
89,
91
],
[
79,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
55,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
103,
104
],
[
55,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
112,
113
],
[
55,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
55,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
123,
128
],
[
128,
129
],
[
128,
130
],
[
123,
131
],
[
131,
132
],
[
131,
133
],
[
123,
134
],
[
134,
135
],
[
134,
136
],
[
123,
137
],
[
137,
138
],
[
137,
139
],
[
123,
140
],
[
140,
141
],
[
140,
142
],
[
123,
143
],
[
143,
144
],
[
143,
145
],
[
123,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
148,
151
],
[
147,
152
],
[
146,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
153,
157
],
[
157,
158
],
[
123,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
159,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
167,
168
],
[
159,
169
],
[
169,
170
],
[
170,
171
],
[
159,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
175,
178
],
[
174,
179
],
[
173,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
183,
184
],
[
184,
185
],
[
183,
186
],
[
186,
187
],
[
187,
188
],
[
180,
189
],
[
189,
190
],
[
189,
191
],
[
180,
192
],
[
192,
193
],
[
192,
194
],
[
173,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
196,
199
],
[
199,
200
],
[
200,
201
],
[
199,
202
],
[
195,
203
],
[
203,
204
],
[
203,
205
],
[
205,
206
],
[
205,
207
],
[
123,
208
],
[
208,
209
],
[
208,
210
],
[
210,
211
],
[
211,
212
],
[
212,
213
],
[
211,
214
],
[
214,
215
],
[
215,
216
],
[
210,
217
],
[
123,
218
],
[
218,
219
],
[
219,
220
],
[
219,
221
],
[
221,
222
],
[
221,
223
],
[
223,
224
],
[
221,
225
],
[
55,
226
],
[
226,
227
],
[
226,
228
],
[
228,
229
],
[
229,
230
],
[
230,
231
],
[
231,
232
],
[
0,
233
],
[
233,
234
],
[
233,
235
]
] |
[
"import java.io.*;\nimport java.util.*;\n\npublic class Main {\n\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n int k = sc.nextInt();\n String s = sc.nextLine();\n if (s.length()<=k){\n pw.println(s);\n }\n else {\n pw.println(s.substring(0,k)+\"...\");\n }\n pw.flush();\n }\n static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(FileReader r) {\n br = new BufferedReader(r);\n }\n\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public String nextLine() throws IOException {\n return br.readLine();\n }\n\n public double nextDouble() throws IOException {\n String x = next();\n StringBuilder sb = new StringBuilder(\"0\");\n double res = 0, f = 1;\n boolean dec = false, neg = false;\n int start = 0;\n if (x.charAt(0) == '-') {\n neg = true;\n start++;\n }\n for (int i = start; i < x.length(); i++)\n if (x.charAt(i) == '.') {\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n } else {\n sb.append(x.charAt(i));\n if (dec)\n f *= 10;\n }\n res += Long.parseLong(sb.toString()) / f;\n return res * (neg ? -1 : 1);\n }\n\n public boolean ready() throws IOException {\n return br.ready();\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n int k = sc.nextInt();\n String s = sc.nextLine();\n if (s.length()<=k){\n pw.println(s);\n }\n else {\n pw.println(s.substring(0,k)+\"...\");\n }\n pw.flush();\n }\n static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(FileReader r) {\n br = new BufferedReader(r);\n }\n\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public String nextLine() throws IOException {\n return br.readLine();\n }\n\n public double nextDouble() throws IOException {\n String x = next();\n StringBuilder sb = new StringBuilder(\"0\");\n double res = 0, f = 1;\n boolean dec = false, neg = false;\n int start = 0;\n if (x.charAt(0) == '-') {\n neg = true;\n start++;\n }\n for (int i = start; i < x.length(); i++)\n if (x.charAt(i) == '.') {\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n } else {\n sb.append(x.charAt(i));\n if (dec)\n f *= 10;\n }\n res += Long.parseLong(sb.toString()) / f;\n return res * (neg ? -1 : 1);\n }\n\n public boolean ready() throws IOException {\n return br.ready();\n }\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n int k = sc.nextInt();\n String s = sc.nextLine();\n if (s.length()<=k){\n pw.println(s);\n }\n else {\n pw.println(s.substring(0,k)+\"...\");\n }\n pw.flush();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n int k = sc.nextInt();\n String s = sc.nextLine();\n if (s.length()<=k){\n pw.println(s);\n }\n else {\n pw.println(s.substring(0,k)+\"...\");\n }\n pw.flush();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"PrintWriter pw = new PrintWriter(System.out);",
"pw",
"new PrintWriter(System.out)",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String s = sc.nextLine();",
"s",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if (s.length()<=k){\n pw.println(s);\n }\n else {\n pw.println(s.substring(0,k)+\"...\");\n }",
"s.length()<=k",
"s.length()",
"s.length",
"s",
"k",
"{\n pw.println(s);\n }",
"pw.println(s)",
"pw.println",
"pw",
"s",
"{\n pw.println(s.substring(0,k)+\"...\");\n }",
"pw.println(s.substring(0,k)+\"...\")",
"pw.println",
"pw",
"s.substring(0,k)+\"...\"",
"s.substring(0,k)",
"s.substring",
"s",
"0",
"k",
"\"...\"",
"pw.flush()",
"pw.flush",
"pw",
"String[] args",
"args",
"static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(FileReader r) {\n br = new BufferedReader(r);\n }\n\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public String nextLine() throws IOException {\n return br.readLine();\n }\n\n public double nextDouble() throws IOException {\n String x = next();\n StringBuilder sb = new StringBuilder(\"0\");\n double res = 0, f = 1;\n boolean dec = false, neg = false;\n int start = 0;\n if (x.charAt(0) == '-') {\n neg = true;\n start++;\n }\n for (int i = start; i < x.length(); i++)\n if (x.charAt(i) == '.') {\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n } else {\n sb.append(x.charAt(i));\n if (dec)\n f *= 10;\n }\n res += Long.parseLong(sb.toString()) / f;\n return res * (neg ? -1 : 1);\n }\n\n public boolean ready() throws IOException {\n return br.ready();\n }\n }",
"Scanner",
"StringTokenizer st;",
"st",
"BufferedReader br;",
"br",
"public Scanner(FileReader r) {\n br = new BufferedReader(r);\n }",
"Scanner",
"{\n br = new BufferedReader(r);\n }",
"br = new BufferedReader(r)",
"br",
"new BufferedReader(r)",
"FileReader r",
"r",
"public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }",
"Scanner",
"{\n br = new BufferedReader(new InputStreamReader(s));\n }",
"br = new BufferedReader(new InputStreamReader(s))",
"br",
"new BufferedReader(new InputStreamReader(s))",
"InputStream s",
"s",
"public String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public long nextLong() throws IOException {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public String nextLine() throws IOException {\n return br.readLine();\n }",
"nextLine",
"{\n return br.readLine();\n }",
"return br.readLine();",
"br.readLine()",
"br.readLine",
"br",
"public double nextDouble() throws IOException {\n String x = next();\n StringBuilder sb = new StringBuilder(\"0\");\n double res = 0, f = 1;\n boolean dec = false, neg = false;\n int start = 0;\n if (x.charAt(0) == '-') {\n neg = true;\n start++;\n }\n for (int i = start; i < x.length(); i++)\n if (x.charAt(i) == '.') {\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n } else {\n sb.append(x.charAt(i));\n if (dec)\n f *= 10;\n }\n res += Long.parseLong(sb.toString()) / f;\n return res * (neg ? -1 : 1);\n }",
"nextDouble",
"{\n String x = next();\n StringBuilder sb = new StringBuilder(\"0\");\n double res = 0, f = 1;\n boolean dec = false, neg = false;\n int start = 0;\n if (x.charAt(0) == '-') {\n neg = true;\n start++;\n }\n for (int i = start; i < x.length(); i++)\n if (x.charAt(i) == '.') {\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n } else {\n sb.append(x.charAt(i));\n if (dec)\n f *= 10;\n }\n res += Long.parseLong(sb.toString()) / f;\n return res * (neg ? -1 : 1);\n }",
"String x = next();",
"x",
"next()",
"next",
"StringBuilder sb = new StringBuilder(\"0\");",
"sb",
"new StringBuilder(\"0\")",
"double res = 0",
"res",
"0",
"f = 1;",
"f",
"1",
"boolean dec = false",
"dec",
"false",
"neg = false;",
"neg",
"false",
"int start = 0;",
"start",
"0",
"if (x.charAt(0) == '-') {\n neg = true;\n start++;\n }",
"x.charAt(0) == '-'",
"x.charAt(0)",
"x.charAt",
"x",
"0",
"'-'",
"{\n neg = true;\n start++;\n }",
"neg = true",
"neg",
"true",
"start++",
"start",
"for (int i = start; i < x.length(); i++)\n if (x.charAt(i) == '.') {\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n } else {\n sb.append(x.charAt(i));\n if (dec)\n f *= 10;\n }",
"int i = start;",
"int i = start;",
"i",
"start",
"i < x.length()",
"i",
"x.length()",
"x.length",
"x",
"i++",
"i++",
"i",
"if (x.charAt(i) == '.') {\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n } else {\n sb.append(x.charAt(i));\n if (dec)\n f *= 10;\n }",
"if (x.charAt(i) == '.') {\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n } else {\n sb.append(x.charAt(i));\n if (dec)\n f *= 10;\n }",
"x.charAt(i) == '.'",
"x.charAt(i)",
"x.charAt",
"x",
"i",
"'.'",
"{\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n }",
"res = Long.parseLong(sb.toString())",
"res",
"Long.parseLong(sb.toString())",
"Long.parseLong",
"Long",
"sb.toString()",
"sb.toString",
"sb",
"sb = new StringBuilder(\"0\")",
"sb",
"new StringBuilder(\"0\")",
"dec = true",
"dec",
"true",
"{\n sb.append(x.charAt(i));\n if (dec)\n f *= 10;\n }",
"sb.append(x.charAt(i))",
"sb.append",
"sb",
"x.charAt(i)",
"x.charAt",
"x",
"i",
"if (dec)\n f *= 10;",
"dec",
"f *= 10",
"f",
"10",
"res += Long.parseLong(sb.toString()) / f",
"res",
"Long.parseLong(sb.toString()) / f",
"Long.parseLong(sb.toString())",
"Long.parseLong",
"Long",
"sb.toString()",
"sb.toString",
"sb",
"f",
"return res * (neg ? -1 : 1);",
"res * (neg ? -1 : 1)",
"res",
"(neg ? -1 : 1)",
"neg",
"-1",
"1",
"1",
"public boolean ready() throws IOException {\n return br.ready();\n }",
"ready",
"{\n return br.ready();\n }",
"return br.ready();",
"br.ready()",
"br.ready",
"br",
"public class Main {\n\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n int k = sc.nextInt();\n String s = sc.nextLine();\n if (s.length()<=k){\n pw.println(s);\n }\n else {\n pw.println(s.substring(0,k)+\"...\");\n }\n pw.flush();\n }\n static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(FileReader r) {\n br = new BufferedReader(r);\n }\n\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public String nextLine() throws IOException {\n return br.readLine();\n }\n\n public double nextDouble() throws IOException {\n String x = next();\n StringBuilder sb = new StringBuilder(\"0\");\n double res = 0, f = 1;\n boolean dec = false, neg = false;\n int start = 0;\n if (x.charAt(0) == '-') {\n neg = true;\n start++;\n }\n for (int i = start; i < x.length(); i++)\n if (x.charAt(i) == '.') {\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n } else {\n sb.append(x.charAt(i));\n if (dec)\n f *= 10;\n }\n res += Long.parseLong(sb.toString()) / f;\n return res * (neg ? -1 : 1);\n }\n\n public boolean ready() throws IOException {\n return br.ready();\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n int k = sc.nextInt();\n String s = sc.nextLine();\n if (s.length()<=k){\n pw.println(s);\n }\n else {\n pw.println(s.substring(0,k)+\"...\");\n }\n pw.flush();\n }\n static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(FileReader r) {\n br = new BufferedReader(r);\n }\n\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public String nextLine() throws IOException {\n return br.readLine();\n }\n\n public double nextDouble() throws IOException {\n String x = next();\n StringBuilder sb = new StringBuilder(\"0\");\n double res = 0, f = 1;\n boolean dec = false, neg = false;\n int start = 0;\n if (x.charAt(0) == '-') {\n neg = true;\n start++;\n }\n for (int i = start; i < x.length(); i++)\n if (x.charAt(i) == '.') {\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n } else {\n sb.append(x.charAt(i));\n if (dec)\n f *= 10;\n }\n res += Long.parseLong(sb.toString()) / f;\n return res * (neg ? -1 : 1);\n }\n\n public boolean ready() throws IOException {\n return br.ready();\n }\n }\n}",
"Main"
] |
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
PrintWriter pw = new PrintWriter(System.out);
int k = sc.nextInt();
String s = sc.nextLine();
if (s.length()<=k){
pw.println(s);
}
else {
pw.println(s.substring(0,k)+"...");
}
pw.flush();
}
static class Scanner {
StringTokenizer st;
BufferedReader br;
public Scanner(FileReader r) {
br = new BufferedReader(r);
}
public Scanner(InputStream s) {
br = new BufferedReader(new InputStreamReader(s));
}
public String next() throws IOException {
while (st == null || !st.hasMoreTokens())
st = new StringTokenizer(br.readLine());
return st.nextToken();
}
public int nextInt() throws IOException {
return Integer.parseInt(next());
}
public long nextLong() throws IOException {
return Long.parseLong(next());
}
public String nextLine() throws IOException {
return br.readLine();
}
public double nextDouble() throws IOException {
String x = next();
StringBuilder sb = new StringBuilder("0");
double res = 0, f = 1;
boolean dec = false, neg = false;
int start = 0;
if (x.charAt(0) == '-') {
neg = true;
start++;
}
for (int i = start; i < x.length(); i++)
if (x.charAt(i) == '.') {
res = Long.parseLong(sb.toString());
sb = new StringBuilder("0");
dec = true;
} else {
sb.append(x.charAt(i));
if (dec)
f *= 10;
}
res += Long.parseLong(sb.toString()) / f;
return res * (neg ? -1 : 1);
}
public boolean ready() throws IOException {
return br.ready();
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
49,
5
],
[
49,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
23,
27
],
[
22,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
22,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
40,
44
],
[
39,
45
],
[
6,
46
],
[
46,
47
],
[
0,
48
],
[
48,
49
],
[
48,
50
]
] |
[
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int K = s.nextInt();\n String str = s.next();\n\n if (str.length() <= K) System.out.print(str);\n else System.out.print(str.substring(0, K) + \"...\");\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int K = s.nextInt();\n String str = s.next();\n\n if (str.length() <= K) System.out.print(str);\n else System.out.print(str.substring(0, K) + \"...\");\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int K = s.nextInt();\n String str = s.next();\n\n if (str.length() <= K) System.out.print(str);\n else System.out.print(str.substring(0, K) + \"...\");\n }",
"main",
"{\n Scanner s = new Scanner(System.in);\n int K = s.nextInt();\n String str = s.next();\n\n if (str.length() <= K) System.out.print(str);\n else System.out.print(str.substring(0, K) + \"...\");\n }",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int K = s.nextInt();",
"K",
"s.nextInt()",
"s.nextInt",
"s",
"String str = s.next();",
"str",
"s.next()",
"s.next",
"s",
"if (str.length() <= K) System.out.print(str);\n else System.out.print(str.substring(0, K) + \"...\");",
"str.length() <= K",
"str.length()",
"str.length",
"str",
"K",
"System.out.print(str)",
"System.out.print",
"System.out",
"System",
"System.out",
"str",
"System.out.print(str.substring(0, K) + \"...\")",
"System.out.print",
"System.out",
"System",
"System.out",
"str.substring(0, K) + \"...\"",
"str.substring(0, K)",
"str.substring",
"str",
"0",
"K",
"\"...\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int K = s.nextInt();\n String str = s.next();\n\n if (str.length() <= K) System.out.print(str);\n else System.out.print(str.substring(0, K) + \"...\");\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int K = s.nextInt();\n String str = s.next();\n\n if (str.length() <= K) System.out.print(str);\n else System.out.print(str.substring(0, K) + \"...\");\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int K = s.nextInt();
String str = s.next();
if (str.length() <= K) System.out.print(str);
else System.out.print(str.substring(0, K) + "...");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
73,
5
],
[
73,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
27,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
39,
47
],
[
47,
48
],
[
48,
49
],
[
39,
50
],
[
51,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
51,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
38,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
6,
70
],
[
70,
71
],
[
0,
72
],
[
72,
73
],
[
72,
74
]
] |
[
"import java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint k=sc.nextInt();\n\t\tString str=sc.next();\n\t\t\n\t\tint len=str.length();\n\t\t\n\t\tif(k>=len){\n\t\t\tSystem.out.println(str);\n\t\t}\n\t\telse{\n\t\t\tfor(int i=0;i<k;i++){\n\t\t\t\tchar ch=str.charAt(i);\n\t\t\t\tSystem.out.print(ch);\n\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint k=sc.nextInt();\n\t\tString str=sc.next();\n\t\t\n\t\tint len=str.length();\n\t\t\n\t\tif(k>=len){\n\t\t\tSystem.out.println(str);\n\t\t}\n\t\telse{\n\t\t\tfor(int i=0;i<k;i++){\n\t\t\t\tchar ch=str.charAt(i);\n\t\t\t\tSystem.out.print(ch);\n\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint k=sc.nextInt();\n\t\tString str=sc.next();\n\t\t\n\t\tint len=str.length();\n\t\t\n\t\tif(k>=len){\n\t\t\tSystem.out.println(str);\n\t\t}\n\t\telse{\n\t\t\tfor(int i=0;i<k;i++){\n\t\t\t\tchar ch=str.charAt(i);\n\t\t\t\tSystem.out.print(ch);\n\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint k=sc.nextInt();\n\t\tString str=sc.next();\n\t\t\n\t\tint len=str.length();\n\t\t\n\t\tif(k>=len){\n\t\t\tSystem.out.println(str);\n\t\t}\n\t\telse{\n\t\t\tfor(int i=0;i<k;i++){\n\t\t\t\tchar ch=str.charAt(i);\n\t\t\t\tSystem.out.print(ch);\n\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k=sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String str=sc.next();",
"str",
"sc.next()",
"sc.next",
"sc",
"int len=str.length();",
"len",
"str.length()",
"str.length",
"str",
"if(k>=len){\n\t\t\tSystem.out.println(str);\n\t\t}\n\t\telse{\n\t\t\tfor(int i=0;i<k;i++){\n\t\t\t\tchar ch=str.charAt(i);\n\t\t\t\tSystem.out.print(ch);\n\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}",
"k>=len",
"k",
"len",
"{\n\t\t\tSystem.out.println(str);\n\t\t}",
"System.out.println(str)",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"{\n\t\t\tfor(int i=0;i<k;i++){\n\t\t\t\tchar ch=str.charAt(i);\n\t\t\t\tSystem.out.print(ch);\n\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}",
"for(int i=0;i<k;i++){\n\t\t\t\tchar ch=str.charAt(i);\n\t\t\t\tSystem.out.print(ch);\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<k",
"i",
"k",
"i++",
"i++",
"i",
"{\n\t\t\t\tchar ch=str.charAt(i);\n\t\t\t\tSystem.out.print(ch);\n\t\t\t}",
"{\n\t\t\t\tchar ch=str.charAt(i);\n\t\t\t\tSystem.out.print(ch);\n\t\t\t}",
"char ch=str.charAt(i);",
"ch",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"System.out.print(ch)",
"System.out.print",
"System.out",
"System",
"System.out",
"ch",
"System.out.println(\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"...\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint k=sc.nextInt();\n\t\tString str=sc.next();\n\t\t\n\t\tint len=str.length();\n\t\t\n\t\tif(k>=len){\n\t\t\tSystem.out.println(str);\n\t\t}\n\t\telse{\n\t\t\tfor(int i=0;i<k;i++){\n\t\t\t\tchar ch=str.charAt(i);\n\t\t\t\tSystem.out.print(ch);\n\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint k=sc.nextInt();\n\t\tString str=sc.next();\n\t\t\n\t\tint len=str.length();\n\t\t\n\t\tif(k>=len){\n\t\t\tSystem.out.println(str);\n\t\t}\n\t\telse{\n\t\t\tfor(int i=0;i<k;i++){\n\t\t\t\tchar ch=str.charAt(i);\n\t\t\t\tSystem.out.print(ch);\n\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}\n\t}\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int k=sc.nextInt();
String str=sc.next();
int len=str.length();
if(k>=len){
System.out.println(str);
}
else{
for(int i=0;i<k;i++){
char ch=str.charAt(i);
System.out.print(ch);
}
System.out.println("...");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
4,
18,
13,
17,
14,
2,
18,
13,
13,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
14,
2,
13,
2,
13,
17,
4,
18,
18,
13,
13,
17,
14,
2,
18,
13,
13,
13,
30,
11,
1,
41,
13,
17,
2,
13,
2,
13,
2,
13,
18,
13,
13,
1,
40,
13,
30,
4,
18,
18,
13,
13,
18,
13,
13,
4,
18,
13,
12,
13,
30,
4,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
109,
5
],
[
109,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
19,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
44,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
56,
58
],
[
53,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
25,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
65,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
83,
85
],
[
72,
86
],
[
86,
87
],
[
87,
88
],
[
72,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
8,
98
],
[
98,
99
],
[
99,
100
],
[
109,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
101,
106
],
[
106,
107
],
[
0,
108
],
[
108,
109
],
[
108,
110
]
] |
[
"import java.util.*;\npublic class Main {\n\n\t\tstatic void solve() {\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint k = sc.nextInt();\n\t\t\tString []s = sc.next().split(\"\");\n\t\t\tif(s.length>k) {\n\t\t\t\tfor(int i = 0;i<k;i++) {\n\t\t\t\t\tSystem.out.print(s[i]);\n\t\t\t\t\tif(i == k-1) \n\t\t\t\t\t\tSystem.out.print(\"...\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\telse if(s.length<=k) {\n\t\t\t\t\tfor(int i = 0;i<k-(k-s.length);i++)\n\t\t\t\t\tSystem.out.print(s[i]);\n\t\t\t\t}\n\t\t\t\n\t\t\tsc.close();\n\t\t}\n\tpublic static void main(String[] args) {\n\t\tsolve();\n\n\t}\n\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n\t\tstatic void solve() {\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint k = sc.nextInt();\n\t\t\tString []s = sc.next().split(\"\");\n\t\t\tif(s.length>k) {\n\t\t\t\tfor(int i = 0;i<k;i++) {\n\t\t\t\t\tSystem.out.print(s[i]);\n\t\t\t\t\tif(i == k-1) \n\t\t\t\t\t\tSystem.out.print(\"...\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\telse if(s.length<=k) {\n\t\t\t\t\tfor(int i = 0;i<k-(k-s.length);i++)\n\t\t\t\t\tSystem.out.print(s[i]);\n\t\t\t\t}\n\t\t\t\n\t\t\tsc.close();\n\t\t}\n\tpublic static void main(String[] args) {\n\t\tsolve();\n\n\t}\n\n}",
"Main",
"static void solve() {\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint k = sc.nextInt();\n\t\t\tString []s = sc.next().split(\"\");\n\t\t\tif(s.length>k) {\n\t\t\t\tfor(int i = 0;i<k;i++) {\n\t\t\t\t\tSystem.out.print(s[i]);\n\t\t\t\t\tif(i == k-1) \n\t\t\t\t\t\tSystem.out.print(\"...\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\telse if(s.length<=k) {\n\t\t\t\t\tfor(int i = 0;i<k-(k-s.length);i++)\n\t\t\t\t\tSystem.out.print(s[i]);\n\t\t\t\t}\n\t\t\t\n\t\t\tsc.close();\n\t\t}",
"solve",
"{\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint k = sc.nextInt();\n\t\t\tString []s = sc.next().split(\"\");\n\t\t\tif(s.length>k) {\n\t\t\t\tfor(int i = 0;i<k;i++) {\n\t\t\t\t\tSystem.out.print(s[i]);\n\t\t\t\t\tif(i == k-1) \n\t\t\t\t\t\tSystem.out.print(\"...\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\telse if(s.length<=k) {\n\t\t\t\t\tfor(int i = 0;i<k-(k-s.length);i++)\n\t\t\t\t\tSystem.out.print(s[i]);\n\t\t\t\t}\n\t\t\t\n\t\t\tsc.close();\n\t\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String []s = sc.next().split(\"\");",
"s",
"sc.next().split(\"\")",
"sc.next().split",
"sc.next()",
"sc.next",
"sc",
"\"\"",
"if(s.length>k) {\n\t\t\t\tfor(int i = 0;i<k;i++) {\n\t\t\t\t\tSystem.out.print(s[i]);\n\t\t\t\t\tif(i == k-1) \n\t\t\t\t\t\tSystem.out.print(\"...\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\telse if(s.length<=k) {\n\t\t\t\t\tfor(int i = 0;i<k-(k-s.length);i++)\n\t\t\t\t\tSystem.out.print(s[i]);\n\t\t\t\t}",
"s.length>k",
"s.length",
"s",
"s.length",
"k",
"{\n\t\t\t\tfor(int i = 0;i<k;i++) {\n\t\t\t\t\tSystem.out.print(s[i]);\n\t\t\t\t\tif(i == k-1) \n\t\t\t\t\t\tSystem.out.print(\"...\");\n\t\t\t\t}\n\t\t\t}",
"for(int i = 0;i<k;i++) {\n\t\t\t\t\tSystem.out.print(s[i]);\n\t\t\t\t\tif(i == k-1) \n\t\t\t\t\t\tSystem.out.print(\"...\");\n\t\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<k",
"i",
"k",
"i++",
"i++",
"i",
"{\n\t\t\t\t\tSystem.out.print(s[i]);\n\t\t\t\t\tif(i == k-1) \n\t\t\t\t\t\tSystem.out.print(\"...\");\n\t\t\t\t}",
"{\n\t\t\t\t\tSystem.out.print(s[i]);\n\t\t\t\t\tif(i == k-1) \n\t\t\t\t\t\tSystem.out.print(\"...\");\n\t\t\t\t}",
"System.out.print(s[i])",
"System.out.print",
"System.out",
"System",
"System.out",
"s[i]",
"s",
"i",
"if(i == k-1) \n\t\t\t\t\t\tSystem.out.print(\"...\");",
"i == k-1",
"i",
"k-1",
"k",
"1",
"System.out.print(\"...\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"...\"",
"if(s.length<=k) {\n\t\t\t\t\tfor(int i = 0;i<k-(k-s.length);i++)\n\t\t\t\t\tSystem.out.print(s[i]);\n\t\t\t\t}",
"s.length<=k",
"s.length",
"s",
"s.length",
"k",
"{\n\t\t\t\t\tfor(int i = 0;i<k-(k-s.length);i++)\n\t\t\t\t\tSystem.out.print(s[i]);\n\t\t\t\t}",
"for(int i = 0;i<k-(k-s.length);i++)\n\t\t\t\t\tSystem.out.print(s[i]);",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<k-(k-s.length)",
"i",
"k-(k-s.length)",
"k",
"(k-s.length)",
"k",
"s.length",
"s",
"s.length",
"i++",
"i++",
"i",
"System.out.print(s[i]);",
"System.out.print(s[i])",
"System.out.print",
"System.out",
"System",
"System.out",
"s[i]",
"s",
"i",
"sc.close()",
"sc.close",
"sc",
"public static void main(String[] args) {\n\t\tsolve();\n\n\t}",
"main",
"{\n\t\tsolve();\n\n\t}",
"solve()",
"solve",
"String[] args",
"args",
"public class Main {\n\n\t\tstatic void solve() {\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint k = sc.nextInt();\n\t\t\tString []s = sc.next().split(\"\");\n\t\t\tif(s.length>k) {\n\t\t\t\tfor(int i = 0;i<k;i++) {\n\t\t\t\t\tSystem.out.print(s[i]);\n\t\t\t\t\tif(i == k-1) \n\t\t\t\t\t\tSystem.out.print(\"...\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\telse if(s.length<=k) {\n\t\t\t\t\tfor(int i = 0;i<k-(k-s.length);i++)\n\t\t\t\t\tSystem.out.print(s[i]);\n\t\t\t\t}\n\t\t\t\n\t\t\tsc.close();\n\t\t}\n\tpublic static void main(String[] args) {\n\t\tsolve();\n\n\t}\n\n}",
"public class Main {\n\n\t\tstatic void solve() {\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint k = sc.nextInt();\n\t\t\tString []s = sc.next().split(\"\");\n\t\t\tif(s.length>k) {\n\t\t\t\tfor(int i = 0;i<k;i++) {\n\t\t\t\t\tSystem.out.print(s[i]);\n\t\t\t\t\tif(i == k-1) \n\t\t\t\t\t\tSystem.out.print(\"...\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\telse if(s.length<=k) {\n\t\t\t\t\tfor(int i = 0;i<k-(k-s.length);i++)\n\t\t\t\t\tSystem.out.print(s[i]);\n\t\t\t\t}\n\t\t\t\n\t\t\tsc.close();\n\t\t}\n\tpublic static void main(String[] args) {\n\t\tsolve();\n\n\t}\n\n}",
"Main"
] |
import java.util.*;
public class Main {
static void solve() {
Scanner sc = new Scanner(System.in);
int k = sc.nextInt();
String []s = sc.next().split("");
if(s.length>k) {
for(int i = 0;i<k;i++) {
System.out.print(s[i]);
if(i == k-1)
System.out.print("...");
}
}
else if(s.length<=k) {
for(int i = 0;i<k-(k-s.length);i++)
System.out.print(s[i]);
}
sc.close();
}
public static void main(String[] args) {
solve();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
4,
18,
13,
14,
2,
18,
13,
13,
13,
4,
18,
18,
13,
13,
20,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
2,
13,
18,
13,
13,
17,
0,
13,
2,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
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
],
[
23,
26
],
[
26,
27
],
[
27,
28
],
[
17,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
17,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
36,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
36,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
57,
59
],
[
52,
60
],
[
60,
61
],
[
61,
62
],
[
52,
63
],
[
64,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
68,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
48,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
76,
78
],
[
48,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
15,
85
],
[
85,
86
]
] |
[
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\n\nimport static java.lang.System.in;\n\nclass Main {\n public static void main(String[] args)throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(in));\n int K = Integer.parseInt(reader.readLine());\n char[] ar = reader.readLine().toCharArray();\n if(ar.length<=K) System.out.println(new String(ar));\n else{\n String res=\"\";\n for (int i = 0; i <K ; i++) {\n res=res+ar[i]+\"\";\n }\n res=res+\"...\";\n System.out.println(res);\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 static java.lang.System.in;",
"import static java.lang.System.in;",
"import static java.lang.System.in;",
"class Main {\n public static void main(String[] args)throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(in));\n int K = Integer.parseInt(reader.readLine());\n char[] ar = reader.readLine().toCharArray();\n if(ar.length<=K) System.out.println(new String(ar));\n else{\n String res=\"\";\n for (int i = 0; i <K ; i++) {\n res=res+ar[i]+\"\";\n }\n res=res+\"...\";\n System.out.println(res);\n }\n }\n}",
"Main",
"public static void main(String[] args)throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(in));\n int K = Integer.parseInt(reader.readLine());\n char[] ar = reader.readLine().toCharArray();\n if(ar.length<=K) System.out.println(new String(ar));\n else{\n String res=\"\";\n for (int i = 0; i <K ; i++) {\n res=res+ar[i]+\"\";\n }\n res=res+\"...\";\n System.out.println(res);\n }\n }",
"main",
"{\n BufferedReader reader = new BufferedReader(new InputStreamReader(in));\n int K = Integer.parseInt(reader.readLine());\n char[] ar = reader.readLine().toCharArray();\n if(ar.length<=K) System.out.println(new String(ar));\n else{\n String res=\"\";\n for (int i = 0; i <K ; i++) {\n res=res+ar[i]+\"\";\n }\n res=res+\"...\";\n System.out.println(res);\n }\n }",
"BufferedReader reader = new BufferedReader(new InputStreamReader(in));",
"reader",
"new BufferedReader(new InputStreamReader(in))",
"int K = Integer.parseInt(reader.readLine());",
"K",
"Integer.parseInt(reader.readLine())",
"Integer.parseInt",
"Integer",
"reader.readLine()",
"reader.readLine",
"reader",
"char[] ar = reader.readLine().toCharArray();",
"ar",
"reader.readLine().toCharArray()",
"reader.readLine().toCharArray",
"reader.readLine()",
"reader.readLine",
"reader",
"if(ar.length<=K) System.out.println(new String(ar));\n else{\n String res=\"\";\n for (int i = 0; i <K ; i++) {\n res=res+ar[i]+\"\";\n }\n res=res+\"...\";\n System.out.println(res);\n }",
"ar.length<=K",
"ar.length",
"ar",
"ar.length",
"K",
"System.out.println(new String(ar))",
"System.out.println",
"System.out",
"System",
"System.out",
"new String(ar)",
"{\n String res=\"\";\n for (int i = 0; i <K ; i++) {\n res=res+ar[i]+\"\";\n }\n res=res+\"...\";\n System.out.println(res);\n }",
"String res=\"\";",
"res",
"\"\"",
"for (int i = 0; i <K ; i++) {\n res=res+ar[i]+\"\";\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <K",
"i",
"K",
"i++",
"i++",
"i",
"{\n res=res+ar[i]+\"\";\n }",
"{\n res=res+ar[i]+\"\";\n }",
"res=res+ar[i]+\"\"",
"res",
"res+ar[i]+\"\"",
"res+ar[i]+\"\"",
"res",
"ar[i]",
"ar",
"i",
"\"\"",
"res=res+\"...\"",
"res",
"res+\"...\"",
"res",
"\"...\"",
"System.out.println(res)",
"System.out.println",
"System.out",
"System",
"System.out",
"res",
"String[] args",
"args"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import static java.lang.System.in;
class Main {
public static void main(String[] args)throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(in));
int K = Integer.parseInt(reader.readLine());
char[] ar = reader.readLine().toCharArray();
if(ar.length<=K) System.out.println(new String(ar));
else{
String res="";
for (int i = 0; i <K ; i++) {
res=res+ar[i]+"";
}
res=res+"...";
System.out.println(res);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
4,
18,
13,
30,
4,
18,
18,
13,
13,
4,
18,
13,
17,
13,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
61,
8
],
[
61,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
11,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
28,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
40,
44
],
[
34,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
28,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
9,
58
],
[
58,
59
],
[
0,
60
],
[
60,
61
],
[
60,
62
]
] |
[
"import java.util.*;\nimport java.io.*;\n \npublic class Main {\n public static void main (final String[] args) {\n final Scanner sc = new Scanner(System.in);\n \tint n = Integer.parseInt(sc.next());\n String str = sc.next();\n \n if (n < str.length()) {\n \tSystem.out.print(str.substring(0,n));\n \tSystem.out.println(\"...\");\n } else {\n \tSystem.out.println(str);\n }\n \n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n public static void main (final String[] args) {\n final Scanner sc = new Scanner(System.in);\n \tint n = Integer.parseInt(sc.next());\n String str = sc.next();\n \n if (n < str.length()) {\n \tSystem.out.print(str.substring(0,n));\n \tSystem.out.println(\"...\");\n } else {\n \tSystem.out.println(str);\n }\n \n }\n}",
"Main",
"public static void main (final String[] args) {\n final Scanner sc = new Scanner(System.in);\n \tint n = Integer.parseInt(sc.next());\n String str = sc.next();\n \n if (n < str.length()) {\n \tSystem.out.print(str.substring(0,n));\n \tSystem.out.println(\"...\");\n } else {\n \tSystem.out.println(str);\n }\n \n }",
"main",
"{\n final Scanner sc = new Scanner(System.in);\n \tint n = Integer.parseInt(sc.next());\n String str = sc.next();\n \n if (n < str.length()) {\n \tSystem.out.print(str.substring(0,n));\n \tSystem.out.println(\"...\");\n } else {\n \tSystem.out.println(str);\n }\n \n }",
"final Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = Integer.parseInt(sc.next());",
"n",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"String str = sc.next();",
"str",
"sc.next()",
"sc.next",
"sc",
"if (n < str.length()) {\n \tSystem.out.print(str.substring(0,n));\n \tSystem.out.println(\"...\");\n } else {\n \tSystem.out.println(str);\n }",
"n < str.length()",
"n",
"str.length()",
"str.length",
"str",
"{\n \tSystem.out.print(str.substring(0,n));\n \tSystem.out.println(\"...\");\n }",
"System.out.print(str.substring(0,n))",
"System.out.print",
"System.out",
"System",
"System.out",
"str.substring(0,n)",
"str.substring",
"str",
"0",
"n",
"System.out.println(\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"...\"",
"{\n \tSystem.out.println(str);\n }",
"System.out.println(str)",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"final String[] args",
"args",
"public class Main {\n public static void main (final String[] args) {\n final Scanner sc = new Scanner(System.in);\n \tint n = Integer.parseInt(sc.next());\n String str = sc.next();\n \n if (n < str.length()) {\n \tSystem.out.print(str.substring(0,n));\n \tSystem.out.println(\"...\");\n } else {\n \tSystem.out.println(str);\n }\n \n }\n}",
"public class Main {\n public static void main (final String[] args) {\n final Scanner sc = new Scanner(System.in);\n \tint n = Integer.parseInt(sc.next());\n String str = sc.next();\n \n if (n < str.length()) {\n \tSystem.out.print(str.substring(0,n));\n \tSystem.out.println(\"...\");\n } else {\n \tSystem.out.println(str);\n }\n \n }\n}",
"Main"
] |
import java.util.*;
import java.io.*;
public class Main {
public static void main (final String[] args) {
final Scanner sc = new Scanner(System.in);
int n = Integer.parseInt(sc.next());
String str = sc.next();
if (n < str.length()) {
System.out.print(str.substring(0,n));
System.out.println("...");
} else {
System.out.println(str);
}
}
}
|
[
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,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
29,
41,
13,
2,
4,
18,
13,
17,
13,
17,
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
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
26,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
31,
38
],
[
8,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
42,
46
],
[
41,
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\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint K = sc.nextInt();\n\t\tsc.nextLine();\n\t\tString str = sc.nextLine();\n\n\n\t\tif(str.length() <= K) {\n\t\t\tSystem.out.println(str);\n\t\t\treturn;\n\t\t}\n\n\t\tString str2 = str.substring(0,K) + \"...\";\n\n\t\tSystem.out.println(str2);\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint K = sc.nextInt();\n\t\tsc.nextLine();\n\t\tString str = sc.nextLine();\n\n\n\t\tif(str.length() <= K) {\n\t\t\tSystem.out.println(str);\n\t\t\treturn;\n\t\t}\n\n\t\tString str2 = str.substring(0,K) + \"...\";\n\n\t\tSystem.out.println(str2);\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint K = sc.nextInt();\n\t\tsc.nextLine();\n\t\tString str = sc.nextLine();\n\n\n\t\tif(str.length() <= K) {\n\t\t\tSystem.out.println(str);\n\t\t\treturn;\n\t\t}\n\n\t\tString str2 = str.substring(0,K) + \"...\";\n\n\t\tSystem.out.println(str2);\n\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint K = sc.nextInt();\n\t\tsc.nextLine();\n\t\tString str = sc.nextLine();\n\n\n\t\tif(str.length() <= K) {\n\t\t\tSystem.out.println(str);\n\t\t\treturn;\n\t\t}\n\n\t\tString str2 = str.substring(0,K) + \"...\";\n\n\t\tSystem.out.println(str2);\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String str = sc.nextLine();",
"str",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if(str.length() <= K) {\n\t\t\tSystem.out.println(str);\n\t\t\treturn;\n\t\t}",
"str.length() <= K",
"str.length()",
"str.length",
"str",
"K",
"{\n\t\t\tSystem.out.println(str);\n\t\t\treturn;\n\t\t}",
"System.out.println(str)",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"return;",
"String str2 = str.substring(0,K) + \"...\";",
"str2",
"str.substring(0,K) + \"...\"",
"str.substring(0,K)",
"str.substring",
"str",
"0",
"K",
"\"...\"",
"System.out.println(str2)",
"System.out.println",
"System.out",
"System",
"System.out",
"str2",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint K = sc.nextInt();\n\t\tsc.nextLine();\n\t\tString str = sc.nextLine();\n\n\n\t\tif(str.length() <= K) {\n\t\t\tSystem.out.println(str);\n\t\t\treturn;\n\t\t}\n\n\t\tString str2 = str.substring(0,K) + \"...\";\n\n\t\tSystem.out.println(str2);\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint K = sc.nextInt();\n\t\tsc.nextLine();\n\t\tString str = sc.nextLine();\n\n\n\t\tif(str.length() <= K) {\n\t\t\tSystem.out.println(str);\n\t\t\treturn;\n\t\t}\n\n\t\tString str2 = str.substring(0,K) + \"...\";\n\n\t\tSystem.out.println(str2);\n\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
sc.nextLine();
String str = sc.nextLine();
if(str.length() <= K) {
System.out.println(str);
return;
}
String str2 = str.substring(0,K) + "...";
System.out.println(str2);
}
}
|
[
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,
14,
2,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
29,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
53,
5
],
[
53,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
26,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
25,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
43,
47
],
[
42,
48
],
[
8,
49
],
[
6,
50
],
[
50,
51
],
[
0,
52
],
[
52,
53
],
[
52,
54
]
] |
[
"import java.io.*;\n\npublic class Main {\n public static void main (String[] args) throws Exception {\n BufferedReader reader =\n new BufferedReader (new InputStreamReader (System.in));\n int K = Integer.parseInt (reader.readLine());\n String S = reader.readLine();\n if (S.length() <= K)\n System.out.println (S);\n else\n System.out.println (S.substring (0, K) + \"...\");\n return;\n }\n}",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n public static void main (String[] args) throws Exception {\n BufferedReader reader =\n new BufferedReader (new InputStreamReader (System.in));\n int K = Integer.parseInt (reader.readLine());\n String S = reader.readLine();\n if (S.length() <= K)\n System.out.println (S);\n else\n System.out.println (S.substring (0, K) + \"...\");\n return;\n }\n}",
"Main",
"public static void main (String[] args) throws Exception {\n BufferedReader reader =\n new BufferedReader (new InputStreamReader (System.in));\n int K = Integer.parseInt (reader.readLine());\n String S = reader.readLine();\n if (S.length() <= K)\n System.out.println (S);\n else\n System.out.println (S.substring (0, K) + \"...\");\n return;\n }",
"main",
"{\n BufferedReader reader =\n new BufferedReader (new InputStreamReader (System.in));\n int K = Integer.parseInt (reader.readLine());\n String S = reader.readLine();\n if (S.length() <= K)\n System.out.println (S);\n else\n System.out.println (S.substring (0, K) + \"...\");\n return;\n }",
"BufferedReader reader =\n new BufferedReader (new InputStreamReader (System.in));",
"reader",
"new BufferedReader (new InputStreamReader (System.in))",
"int K = Integer.parseInt (reader.readLine());",
"K",
"Integer.parseInt (reader.readLine())",
"Integer.parseInt",
"Integer",
"reader.readLine()",
"reader.readLine",
"reader",
"String S = reader.readLine();",
"S",
"reader.readLine()",
"reader.readLine",
"reader",
"if (S.length() <= K)\n System.out.println (S);\n else\n System.out.println (S.substring (0, K) + \"...\");",
"S.length() <= K",
"S.length()",
"S.length",
"S",
"K",
"System.out.println (S)",
"System.out.println",
"System.out",
"System",
"System.out",
"S",
"System.out.println (S.substring (0, K) + \"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"S.substring (0, K) + \"...\"",
"S.substring (0, K)",
"S.substring",
"S",
"0",
"K",
"\"...\"",
"return;",
"String[] args",
"args",
"public class Main {\n public static void main (String[] args) throws Exception {\n BufferedReader reader =\n new BufferedReader (new InputStreamReader (System.in));\n int K = Integer.parseInt (reader.readLine());\n String S = reader.readLine();\n if (S.length() <= K)\n System.out.println (S);\n else\n System.out.println (S.substring (0, K) + \"...\");\n return;\n }\n}",
"public class Main {\n public static void main (String[] args) throws Exception {\n BufferedReader reader =\n new BufferedReader (new InputStreamReader (System.in));\n int K = Integer.parseInt (reader.readLine());\n String S = reader.readLine();\n if (S.length() <= K)\n System.out.println (S);\n else\n System.out.println (S.substring (0, K) + \"...\");\n return;\n }\n}",
"Main"
] |
import java.io.*;
public class Main {
public static void main (String[] args) throws Exception {
BufferedReader reader =
new BufferedReader (new InputStreamReader (System.in));
int K = Integer.parseInt (reader.readLine());
String S = reader.readLine();
if (S.length() <= K)
System.out.println (S);
else
System.out.println (S.substring (0, K) + "...");
return;
}
}
|
[
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,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
23,
13,
6,
13,
41,
13,
18,
13,
13,
41,
13,
20,
17,
41,
13,
17,
41,
13,
17,
12,
13,
30,
14,
2,
13,
13,
30,
29,
17,
30,
0,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
29,
17,
29,
17,
12,
13,
30,
14,
4,
13,
29,
18,
13,
40,
13,
29,
40,
17,
12,
13,
30,
29,
2,
2,
17,
13,
2,
13,
17,
23,
13,
12,
13,
30,
42,
2,
4,
13,
40,
4,
13,
18,
13,
13,
40,
13,
29,
4,
13,
12,
13,
30,
14,
40,
4,
13,
37,
20,
41,
13,
20,
41,
13,
4,
13,
42,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
14,
40,
4,
13,
37,
20,
41,
13,
17,
41,
13,
17,
41,
13,
4,
13,
14,
2,
13,
17,
30,
0,
13,
17,
0,
13,
4,
13,
14,
2,
2,
13,
17,
2,
17,
13,
30,
37,
20,
42,
17,
30,
14,
2,
2,
17,
13,
2,
13,
17,
30,
0,
13,
17,
0,
13,
2,
13,
17,
14,
2,
2,
13,
40,
17,
40,
4,
13,
13,
30,
29,
8,
13,
40,
13,
13,
30,
37,
20,
0,
13,
4,
13,
12,
13,
30,
41,
13,
4,
13,
14,
2,
2,
13,
18,
13,
13,
2,
13,
18,
13,
13,
37,
20,
29,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
307,
11
],
[
307,
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
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
29,
33
],
[
28,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
28,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
48,
52
],
[
47,
53
],
[
12,
54
],
[
54,
55
],
[
307,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
60,
62
],
[
56,
63
],
[
63,
64
],
[
63,
65
],
[
56,
67
],
[
67,
68
],
[
67,
69
],
[
56,
70
],
[
70,
71
],
[
70,
72
],
[
56,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
80,
81
],
[
81,
82
],
[
76,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
87,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
98,
99
],
[
97,
100
],
[
83,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
101,
105
],
[
105,
106
],
[
106,
107
],
[
75,
108
],
[
108,
109
],
[
56,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
113,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
113,
121
],
[
121,
122
],
[
122,
123
],
[
56,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
132,
133
],
[
132,
134
],
[
124,
135
],
[
135,
136
],
[
56,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
141,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
147,
148
],
[
147,
149
],
[
140,
150
],
[
150,
151
],
[
139,
152
],
[
152,
153
],
[
153,
154
],
[
56,
155
],
[
155,
156
],
[
155,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
158,
162
],
[
162,
163
],
[
157,
164
],
[
164,
165
],
[
164,
166
],
[
157,
167
],
[
167,
168
],
[
167,
169
],
[
169,
170
],
[
157,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
171,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
176,
179
],
[
175,
180
],
[
180,
181
],
[
180,
182
],
[
182,
183
],
[
157,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
56,
188
],
[
188,
189
],
[
188,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
191,
195
],
[
195,
196
],
[
190,
197
],
[
197,
198
],
[
197,
199
],
[
190,
200
],
[
200,
201
],
[
200,
202
],
[
190,
203
],
[
203,
204
],
[
203,
205
],
[
205,
206
],
[
190,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
207,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
211,
215
],
[
215,
216
],
[
215,
217
],
[
217,
218
],
[
190,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
220,
224
],
[
224,
225
],
[
224,
226
],
[
219,
227
],
[
227,
228
],
[
228,
229
],
[
190,
230
],
[
230,
231
],
[
230,
232
],
[
232,
233
],
[
233,
234
],
[
234,
235
],
[
235,
236
],
[
235,
237
],
[
234,
238
],
[
238,
239
],
[
238,
240
],
[
233,
241
],
[
241,
242
],
[
242,
243
],
[
242,
244
],
[
241,
245
],
[
245,
246
],
[
245,
247
],
[
247,
248
],
[
247,
249
],
[
233,
250
],
[
250,
251
],
[
251,
252
],
[
252,
253
],
[
252,
254
],
[
254,
255
],
[
251,
256
],
[
256,
257
],
[
257,
258
],
[
257,
259
],
[
250,
260
],
[
260,
261
],
[
261,
262
],
[
262,
263
],
[
262,
264
],
[
264,
265
],
[
262,
266
],
[
250,
267
],
[
267,
268
],
[
268,
269
],
[
232,
270
],
[
270,
271
],
[
270,
272
],
[
272,
273
],
[
56,
274
],
[
274,
275
],
[
274,
276
],
[
276,
277
],
[
277,
278
],
[
277,
279
],
[
279,
280
],
[
276,
281
],
[
281,
282
],
[
282,
283
],
[
283,
284
],
[
283,
285
],
[
285,
286
],
[
285,
287
],
[
282,
288
],
[
288,
289
],
[
288,
290
],
[
290,
291
],
[
290,
292
],
[
281,
293
],
[
293,
294
],
[
276,
295
],
[
295,
296
],
[
56,
297
],
[
297,
298
],
[
297,
299
],
[
299,
300
],
[
300,
301
],
[
301,
302
],
[
302,
303
],
[
301,
304
],
[
304,
305
],
[
0,
306
],
[
306,
307
],
[
306,
308
]
] |
[
"\n\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.util.*;\n\npublic class Main {\n public static void main(String[] args){\n FastScanner sc = new FastScanner();\n int k = sc.nextInt();\n String s = sc.next();\n\n if(s.length() <= k) {\n System.out.println(s);\n }else{\n System.out.println(s.substring(0, k) + \"...\");\n }\n\n\n }\n\n static class FastScanner {\n private final InputStream in = System.in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n private boolean hasNextByte() {\n if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }\n private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}\n private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}\n public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}\n public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n public long nextLong() {\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b)){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }\n public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n public double nextDouble() { return Double.parseDouble(next());}\n }\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args){\n FastScanner sc = new FastScanner();\n int k = sc.nextInt();\n String s = sc.next();\n\n if(s.length() <= k) {\n System.out.println(s);\n }else{\n System.out.println(s.substring(0, k) + \"...\");\n }\n\n\n }\n\n static class FastScanner {\n private final InputStream in = System.in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n private boolean hasNextByte() {\n if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }\n private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}\n private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}\n public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}\n public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n public long nextLong() {\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b)){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }\n public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n public double nextDouble() { return Double.parseDouble(next());}\n }\n}",
"Main",
"public static void main(String[] args){\n FastScanner sc = new FastScanner();\n int k = sc.nextInt();\n String s = sc.next();\n\n if(s.length() <= k) {\n System.out.println(s);\n }else{\n System.out.println(s.substring(0, k) + \"...\");\n }\n\n\n }",
"main",
"{\n FastScanner sc = new FastScanner();\n int k = sc.nextInt();\n String s = sc.next();\n\n if(s.length() <= k) {\n System.out.println(s);\n }else{\n System.out.println(s.substring(0, k) + \"...\");\n }\n\n\n }",
"FastScanner sc = new FastScanner();",
"sc",
"new FastScanner()",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"if(s.length() <= k) {\n System.out.println(s);\n }else{\n System.out.println(s.substring(0, k) + \"...\");\n }",
"s.length() <= k",
"s.length()",
"s.length",
"s",
"k",
"{\n System.out.println(s);\n }",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"{\n System.out.println(s.substring(0, k) + \"...\");\n }",
"System.out.println(s.substring(0, k) + \"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"s.substring(0, k) + \"...\"",
"s.substring(0, k)",
"s.substring",
"s",
"0",
"k",
"\"...\"",
"String[] args",
"args",
"static class FastScanner {\n private final InputStream in = System.in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n private boolean hasNextByte() {\n if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }\n private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}\n private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}\n public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}\n public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n public long nextLong() {\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b)){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }\n public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n public double nextDouble() { return Double.parseDouble(next());}\n }",
"FastScanner",
"private final InputStream in = System.in;",
"in",
"System.in",
"System",
"System.in",
"private final byte[] buffer = new byte[1024];",
"buffer",
"new byte[1024]",
"1024",
"private int ptr = 0;",
"ptr",
"0",
"private int buflen = 0;",
"buflen",
"0",
"private boolean hasNextByte() {\n if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }",
"hasNextByte",
"{\n if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }",
"if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }",
"ptr < buflen",
"ptr",
"buflen",
"{\n return true;\n }",
"return true;",
"true",
"{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }",
"ptr = 0",
"ptr",
"0",
"try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n buflen = in.read(buffer);\n }",
"buflen = in.read(buffer)",
"buflen",
"in.read(buffer)",
"in.read",
"in",
"buffer",
"if (buflen <= 0) {\n return false;\n }",
"buflen <= 0",
"buflen",
"0",
"{\n return false;\n }",
"return false;",
"false",
"return true;",
"true",
"private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}",
"readByte",
"{ if (hasNextByte()) return buffer[ptr++]; else return -1;}",
"if (hasNextByte()) return buffer[ptr++]; else return -1;",
"hasNextByte()",
"hasNextByte",
"return buffer[ptr++];",
"buffer[ptr++]",
"buffer",
"ptr++",
"ptr",
"return -1;",
"-1",
"1",
"private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}",
"isPrintableChar",
"{ return 33 <= c && c <= 126;}",
"return 33 <= c && c <= 126;",
"33 <= c && c <= 126",
"33 <= c",
"33",
"c",
"c <= 126",
"c",
"126",
"int c",
"c",
"public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}",
"hasNext",
"{ while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}",
"while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;",
"hasNextByte() && !isPrintableChar(buffer[ptr])",
"hasNextByte()",
"hasNextByte",
"!isPrintableChar(buffer[ptr])",
"isPrintableChar(buffer[ptr])",
"isPrintableChar",
"buffer[ptr]",
"buffer",
"ptr",
"ptr++",
"ptr",
"return hasNextByte();",
"hasNextByte()",
"hasNextByte",
"public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }",
"next",
"{\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }",
"if (!hasNext()) throw new NoSuchElementException();",
"!hasNext()",
"hasNext()",
"hasNext",
"throw new NoSuchElementException();",
"new NoSuchElementException()",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"int b = readByte();",
"b",
"readByte()",
"readByte",
"while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }",
"isPrintableChar(b)",
"isPrintableChar",
"b",
"{\n sb.appendCodePoint(b);\n b = readByte();\n }",
"sb.appendCodePoint(b)",
"sb.appendCodePoint",
"sb",
"b",
"b = readByte()",
"b",
"readByte()",
"readByte",
"return sb.toString();",
"sb.toString()",
"sb.toString",
"sb",
"public long nextLong() {\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b)){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }",
"nextLong",
"{\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b)){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }",
"if (!hasNext()) throw new NoSuchElementException();",
"!hasNext()",
"hasNext()",
"hasNext",
"throw new NoSuchElementException();",
"new NoSuchElementException()",
"long n = 0;",
"n",
"0",
"boolean minus = false;",
"minus",
"false",
"int b = readByte();",
"b",
"readByte()",
"readByte",
"if (b == '-') {\n minus = true;\n b = readByte();\n }",
"b == '-'",
"b",
"'-'",
"{\n minus = true;\n b = readByte();\n }",
"minus = true",
"minus",
"true",
"b = readByte()",
"b",
"readByte()",
"readByte",
"if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }",
"b < '0' || '9' < b",
"b < '0'",
"b",
"'0'",
"'9' < b",
"'9'",
"b",
"{\n throw new NumberFormatException();\n }",
"throw new NumberFormatException();",
"new NumberFormatException()",
"while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b)){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }",
"true",
"{\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b)){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }",
"if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b)){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }",
"'0' <= b && b <= '9'",
"'0' <= b",
"'0'",
"b",
"b <= '9'",
"b",
"'9'",
"{\n n *= 10;\n n += b - '0';\n }",
"n *= 10",
"n",
"10",
"n += b - '0'",
"n",
"b - '0'",
"b",
"'0'",
"if(b == -1 || !isPrintableChar(b)){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }",
"b == -1 || !isPrintableChar(b)",
"b == -1",
"b",
"-1",
"1",
"!isPrintableChar(b)",
"isPrintableChar(b)",
"isPrintableChar",
"b",
"{\n return minus ? -n : n;\n }",
"return minus ? -n : n;",
"minus ? -n : n",
"minus",
"-n",
"n",
"n",
"{\n throw new NumberFormatException();\n }",
"throw new NumberFormatException();",
"new NumberFormatException()",
"b = readByte()",
"b",
"readByte()",
"readByte",
"public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }",
"nextInt",
"{\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }",
"long nl = nextLong();",
"nl",
"nextLong()",
"nextLong",
"if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();",
"nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE",
"nl < Integer.MIN_VALUE",
"nl",
"Integer.MIN_VALUE",
"Integer",
"Integer.MIN_VALUE",
"nl > Integer.MAX_VALUE",
"nl",
"Integer.MAX_VALUE",
"Integer",
"Integer.MAX_VALUE",
"throw new NumberFormatException();",
"new NumberFormatException()",
"return (int) nl;",
"(int) nl",
"public double nextDouble() { return Double.parseDouble(next());}",
"nextDouble",
"{ return Double.parseDouble(next());}",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public class Main {\n public static void main(String[] args){\n FastScanner sc = new FastScanner();\n int k = sc.nextInt();\n String s = sc.next();\n\n if(s.length() <= k) {\n System.out.println(s);\n }else{\n System.out.println(s.substring(0, k) + \"...\");\n }\n\n\n }\n\n static class FastScanner {\n private final InputStream in = System.in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n private boolean hasNextByte() {\n if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }\n private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}\n private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}\n public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}\n public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n public long nextLong() {\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b)){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }\n public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n public double nextDouble() { return Double.parseDouble(next());}\n }\n}",
"public class Main {\n public static void main(String[] args){\n FastScanner sc = new FastScanner();\n int k = sc.nextInt();\n String s = sc.next();\n\n if(s.length() <= k) {\n System.out.println(s);\n }else{\n System.out.println(s.substring(0, k) + \"...\");\n }\n\n\n }\n\n static class FastScanner {\n private final InputStream in = System.in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n private boolean hasNextByte() {\n if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }\n private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}\n private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}\n public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}\n public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n public long nextLong() {\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b)){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }\n public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n public double nextDouble() { return Double.parseDouble(next());}\n }\n}",
"Main"
] |
import java.io.IOException;
import java.io.InputStream;
import java.util.*;
public class Main {
public static void main(String[] args){
FastScanner sc = new FastScanner();
int k = sc.nextInt();
String s = sc.next();
if(s.length() <= k) {
System.out.println(s);
}else{
System.out.println(s.substring(0, k) + "...");
}
}
static class FastScanner {
private final InputStream in = System.in;
private final byte[] buffer = new byte[1024];
private int ptr = 0;
private int buflen = 0;
private boolean hasNextByte() {
if (ptr < buflen) {
return true;
}else{
ptr = 0;
try {
buflen = in.read(buffer);
} catch (IOException e) {
e.printStackTrace();
}
if (buflen <= 0) {
return false;
}
}
return true;
}
private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}
private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}
public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}
public String next() {
if (!hasNext()) throw new NoSuchElementException();
StringBuilder sb = new StringBuilder();
int b = readByte();
while(isPrintableChar(b)) {
sb.appendCodePoint(b);
b = readByte();
}
return sb.toString();
}
public long nextLong() {
if (!hasNext()) throw new NoSuchElementException();
long n = 0;
boolean minus = false;
int b = readByte();
if (b == '-') {
minus = true;
b = readByte();
}
if (b < '0' || '9' < b) {
throw new NumberFormatException();
}
while(true){
if ('0' <= b && b <= '9') {
n *= 10;
n += b - '0';
}else if(b == -1 || !isPrintableChar(b)){
return minus ? -n : n;
}else{
throw new NumberFormatException();
}
b = readByte();
}
}
public int nextInt() {
long nl = nextLong();
if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();
return (int) nl;
}
public double nextDouble() { return Double.parseDouble(next());}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
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,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
30,
4,
18,
18,
13,
13,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
17,
23,
13,
12,
13,
30,
14,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
14,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
37,
20,
30,
29,
4,
18,
13,
29,
4,
18,
13,
17,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
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
],
[
192,
17
],
[
192,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
20,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
20,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
35,
39
],
[
34,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
47,
51
],
[
46,
52
],
[
34,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
18,
60
],
[
60,
61
],
[
192,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
62,
66
],
[
66,
67
],
[
62,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
74,
76
],
[
68,
77
],
[
77,
78
],
[
62,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
82,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
92,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
81,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
62,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
109,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
123,
124
],
[
119,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
108,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
131,
134
],
[
62,
135
],
[
135,
136
],
[
135,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
139,
142
],
[
142,
143
],
[
62,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
148,
151
],
[
151,
152
],
[
62,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
157,
160
],
[
160,
161
],
[
62,
162
],
[
162,
163
],
[
162,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
164,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
169,
174
],
[
174,
175
],
[
174,
176
],
[
169,
177
],
[
177,
178
],
[
178,
179
],
[
169,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
181,
185
],
[
185,
186
],
[
164,
187
],
[
187,
188
],
[
162,
189
],
[
189,
190
],
[
0,
191
],
[
191,
192
],
[
191,
193
]
] |
[
"\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner(System.in);\n\t\tint i = sc.nextInt();\n\t\tString s = sc.next();\n\n\t\tif (s.length() > i) {\n\t\t\tSystem.out.println(s.substring(0, i) + \"...\");\n\t\t} else {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}\n\n\tstatic class FastScanner {\n\t\tprivate BufferedReader reader;\n\t\tprivate StringTokenizer tokenizer;\n\n\t\tpublic FastScanner(InputStream in) {\n\t\t\treader = new BufferedReader(new InputStreamReader(in));\n\t\t\ttokenizer = null;\n\t\t}\n\n\t\tpublic String next() {\n\t\t\tif (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn tokenizer.nextToken();\n\t\t}\n\n\t\tpublic String nextLine() {\n\t\t\tif (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\treturn reader.readLine();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn tokenizer.nextToken(\"\\n\");\n\t\t}\n\n\t\tpublic long nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic double nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tpublic long[] nextLongArray(int n) {\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();\n\t\t\treturn a;\n\t\t}\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner(System.in);\n\t\tint i = sc.nextInt();\n\t\tString s = sc.next();\n\n\t\tif (s.length() > i) {\n\t\t\tSystem.out.println(s.substring(0, i) + \"...\");\n\t\t} else {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}\n\n\tstatic class FastScanner {\n\t\tprivate BufferedReader reader;\n\t\tprivate StringTokenizer tokenizer;\n\n\t\tpublic FastScanner(InputStream in) {\n\t\t\treader = new BufferedReader(new InputStreamReader(in));\n\t\t\ttokenizer = null;\n\t\t}\n\n\t\tpublic String next() {\n\t\t\tif (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn tokenizer.nextToken();\n\t\t}\n\n\t\tpublic String nextLine() {\n\t\t\tif (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\treturn reader.readLine();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn tokenizer.nextToken(\"\\n\");\n\t\t}\n\n\t\tpublic long nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic double nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tpublic long[] nextLongArray(int n) {\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();\n\t\t\treturn a;\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner(System.in);\n\t\tint i = sc.nextInt();\n\t\tString s = sc.next();\n\n\t\tif (s.length() > i) {\n\t\t\tSystem.out.println(s.substring(0, i) + \"...\");\n\t\t} else {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}",
"main",
"{\n\t\tFastScanner sc = new FastScanner(System.in);\n\t\tint i = sc.nextInt();\n\t\tString s = sc.next();\n\n\t\tif (s.length() > i) {\n\t\t\tSystem.out.println(s.substring(0, i) + \"...\");\n\t\t} else {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}",
"FastScanner sc = new FastScanner(System.in);",
"sc",
"new FastScanner(System.in)",
"int i = sc.nextInt();",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"if (s.length() > i) {\n\t\t\tSystem.out.println(s.substring(0, i) + \"...\");\n\t\t} else {\n\t\t\tSystem.out.println(s);\n\t\t}",
"s.length() > i",
"s.length()",
"s.length",
"s",
"i",
"{\n\t\t\tSystem.out.println(s.substring(0, i) + \"...\");\n\t\t}",
"System.out.println(s.substring(0, i) + \"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"s.substring(0, i) + \"...\"",
"s.substring(0, i)",
"s.substring",
"s",
"0",
"i",
"\"...\"",
"{\n\t\t\tSystem.out.println(s);\n\t\t}",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"String[] args",
"args",
"static class FastScanner {\n\t\tprivate BufferedReader reader;\n\t\tprivate StringTokenizer tokenizer;\n\n\t\tpublic FastScanner(InputStream in) {\n\t\t\treader = new BufferedReader(new InputStreamReader(in));\n\t\t\ttokenizer = null;\n\t\t}\n\n\t\tpublic String next() {\n\t\t\tif (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn tokenizer.nextToken();\n\t\t}\n\n\t\tpublic String nextLine() {\n\t\t\tif (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\treturn reader.readLine();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn tokenizer.nextToken(\"\\n\");\n\t\t}\n\n\t\tpublic long nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic double nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tpublic long[] nextLongArray(int n) {\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();\n\t\t\treturn a;\n\t\t}\n\t}",
"FastScanner",
"private BufferedReader reader;",
"reader",
"private StringTokenizer tokenizer;",
"tokenizer",
"public FastScanner(InputStream in) {\n\t\t\treader = new BufferedReader(new InputStreamReader(in));\n\t\t\ttokenizer = null;\n\t\t}",
"FastScanner",
"{\n\t\t\treader = new BufferedReader(new InputStreamReader(in));\n\t\t\ttokenizer = null;\n\t\t}",
"reader = new BufferedReader(new InputStreamReader(in))",
"reader",
"new BufferedReader(new InputStreamReader(in))",
"tokenizer = null",
"tokenizer",
"null",
"InputStream in",
"in",
"public String next() {\n\t\t\tif (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn tokenizer.nextToken();\n\t\t}",
"next",
"{\n\t\t\tif (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn tokenizer.nextToken();\n\t\t}",
"if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}",
"tokenizer == null || !tokenizer.hasMoreTokens()",
"tokenizer == null",
"tokenizer",
"null",
"!tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens",
"tokenizer",
"{\n\t\t\t\ttry {\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}",
"try {\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}",
"catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}",
"IOException e",
"{\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t}",
"tokenizer = new StringTokenizer(reader.readLine())",
"tokenizer",
"new StringTokenizer(reader.readLine())",
"return tokenizer.nextToken();",
"tokenizer.nextToken()",
"tokenizer.nextToken",
"tokenizer",
"public String nextLine() {\n\t\t\tif (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\treturn reader.readLine();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn tokenizer.nextToken(\"\\n\");\n\t\t}",
"nextLine",
"{\n\t\t\tif (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\treturn reader.readLine();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn tokenizer.nextToken(\"\\n\");\n\t\t}",
"if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\treturn reader.readLine();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}",
"tokenizer == null || !tokenizer.hasMoreTokens()",
"tokenizer == null",
"tokenizer",
"null",
"!tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens",
"tokenizer",
"{\n\t\t\t\ttry {\n\t\t\t\t\treturn reader.readLine();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}",
"try {\n\t\t\t\t\treturn reader.readLine();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}",
"catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}",
"IOException e",
"{\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n\t\t\t\t\treturn reader.readLine();\n\t\t\t\t}",
"return reader.readLine();",
"reader.readLine()",
"reader.readLine",
"reader",
"return tokenizer.nextToken(\"\\n\");",
"tokenizer.nextToken(\"\\n\")",
"tokenizer.nextToken",
"tokenizer",
"\"\\n\"",
"public long nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"nextLong",
"{\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"nextInt",
"{\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public double nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}",
"nextDouble",
"{\n\t\t\treturn Double.parseDouble(next());\n\t\t}",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public long[] nextLongArray(int n) {\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();\n\t\t\treturn a;\n\t\t}",
"nextLongArray",
"{\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();\n\t\t\treturn a;\n\t\t}",
"long[] a = new long[n];",
"a",
"new long[n]",
"n",
"for (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"a[i] = nextLong();",
"a[i] = nextLong()",
"a[i]",
"a",
"i",
"nextLong()",
"nextLong",
"return a;",
"a",
"int n",
"n",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner(System.in);\n\t\tint i = sc.nextInt();\n\t\tString s = sc.next();\n\n\t\tif (s.length() > i) {\n\t\t\tSystem.out.println(s.substring(0, i) + \"...\");\n\t\t} else {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}\n\n\tstatic class FastScanner {\n\t\tprivate BufferedReader reader;\n\t\tprivate StringTokenizer tokenizer;\n\n\t\tpublic FastScanner(InputStream in) {\n\t\t\treader = new BufferedReader(new InputStreamReader(in));\n\t\t\ttokenizer = null;\n\t\t}\n\n\t\tpublic String next() {\n\t\t\tif (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn tokenizer.nextToken();\n\t\t}\n\n\t\tpublic String nextLine() {\n\t\t\tif (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\treturn reader.readLine();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn tokenizer.nextToken(\"\\n\");\n\t\t}\n\n\t\tpublic long nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic double nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tpublic long[] nextLongArray(int n) {\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();\n\t\t\treturn a;\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner(System.in);\n\t\tint i = sc.nextInt();\n\t\tString s = sc.next();\n\n\t\tif (s.length() > i) {\n\t\t\tSystem.out.println(s.substring(0, i) + \"...\");\n\t\t} else {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}\n\n\tstatic class FastScanner {\n\t\tprivate BufferedReader reader;\n\t\tprivate StringTokenizer tokenizer;\n\n\t\tpublic FastScanner(InputStream in) {\n\t\t\treader = new BufferedReader(new InputStreamReader(in));\n\t\t\ttokenizer = null;\n\t\t}\n\n\t\tpublic String next() {\n\t\t\tif (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn tokenizer.nextToken();\n\t\t}\n\n\t\tpublic String nextLine() {\n\t\t\tif (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\treturn reader.readLine();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn tokenizer.nextToken(\"\\n\");\n\t\t}\n\n\t\tpublic long nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic double nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tpublic long[] nextLongArray(int n) {\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();\n\t\t\treturn a;\n\t\t}\n\t}\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) {
FastScanner sc = new FastScanner(System.in);
int i = sc.nextInt();
String s = sc.next();
if (s.length() > i) {
System.out.println(s.substring(0, i) + "...");
} else {
System.out.println(s);
}
}
static class FastScanner {
private BufferedReader reader;
private StringTokenizer tokenizer;
public FastScanner(InputStream in) {
reader = new BufferedReader(new InputStreamReader(in));
tokenizer = null;
}
public String next() {
if (tokenizer == null || !tokenizer.hasMoreTokens()) {
try {
tokenizer = new StringTokenizer(reader.readLine());
} catch (IOException e) {
throw new RuntimeException(e);
}
}
return tokenizer.nextToken();
}
public String nextLine() {
if (tokenizer == null || !tokenizer.hasMoreTokens()) {
try {
return reader.readLine();
} catch (IOException e) {
throw new RuntimeException(e);
}
}
return tokenizer.nextToken("\n");
}
public long nextLong() {
return Long.parseLong(next());
}
public int nextInt() {
return Integer.parseInt(next());
}
public double nextDouble() {
return Double.parseDouble(next());
}
public long[] nextLongArray(int n) {
long[] a = new long[n];
for (int i = 0; i < n; i++)
a[i] = nextLong();
return a;
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
23,
27
],
[
22,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
22,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
40,
44
],
[
39,
45
],
[
6,
46
],
[
46,
47
]
] |
[
"import java.util.*;\n\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \tint K = sc.nextInt();\n String S = sc.next();\n if (S.length() <= K)\n System.out.println(S);\n else\n System.out.println(S.substring(0,K) + \"...\");\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \tint K = sc.nextInt();\n String S = sc.next();\n if (S.length() <= K)\n System.out.println(S);\n else\n System.out.println(S.substring(0,K) + \"...\");\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \tint K = sc.nextInt();\n String S = sc.next();\n if (S.length() <= K)\n System.out.println(S);\n else\n System.out.println(S.substring(0,K) + \"...\");\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n \tint K = sc.nextInt();\n String S = sc.next();\n if (S.length() <= K)\n System.out.println(S);\n else\n System.out.println(S.substring(0,K) + \"...\");\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String S = sc.next();",
"S",
"sc.next()",
"sc.next",
"sc",
"if (S.length() <= K)\n System.out.println(S);\n else\n System.out.println(S.substring(0,K) + \"...\");",
"S.length() <= K",
"S.length()",
"S.length",
"S",
"K",
"System.out.println(S)",
"System.out.println",
"System.out",
"System",
"System.out",
"S",
"System.out.println(S.substring(0,K) + \"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"S.substring(0,K) + \"...\"",
"S.substring(0,K)",
"S.substring",
"S",
"0",
"K",
"\"...\"",
"String[] args",
"args"
] |
import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
String S = sc.next();
if (S.length() <= K)
System.out.println(S);
else
System.out.println(S.substring(0,K) + "...");
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
4,
13,
13,
30,
4,
13,
2,
4,
18,
13,
17,
13,
17,
4,
18,
13,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
29,
13,
23,
13,
12,
13,
30,
4,
18,
13,
13,
23,
13,
12,
13,
30,
4,
18,
13,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
13,
2,
18,
13,
13,
17,
4,
13,
17,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
12,
13,
30,
42,
40,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
4,
18,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
273,
8
],
[
273,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
11,
13
],
[
273,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
16,
18
],
[
273,
19
],
[
19,
20
],
[
19,
21
],
[
273,
22
],
[
22,
23
],
[
22,
24
],
[
273,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
27,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
39,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
38,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
52,
56
],
[
51,
57
],
[
27,
58
],
[
58,
59
],
[
59,
60
],
[
27,
61
],
[
61,
62
],
[
62,
63
],
[
25,
64
],
[
64,
65
],
[
273,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
78,
79
],
[
78,
80
],
[
73,
81
],
[
81,
82
],
[
82,
83
],
[
73,
84
],
[
85,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
90,
91
],
[
91,
92
],
[
68,
93
],
[
93,
94
],
[
66,
95
],
[
95,
96
],
[
273,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
99,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
109,
110
],
[
109,
111
],
[
104,
112
],
[
112,
113
],
[
113,
114
],
[
104,
115
],
[
116,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
117,
121
],
[
121,
122
],
[
122,
123
],
[
99,
124
],
[
124,
125
],
[
97,
126
],
[
126,
127
],
[
273,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
131,
134
],
[
128,
135
],
[
135,
136
],
[
273,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
140,
143
],
[
137,
144
],
[
144,
145
],
[
273,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
149,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
156,
158
],
[
149,
159
],
[
159,
160
],
[
160,
161
],
[
149,
162
],
[
163,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
166,
170
],
[
148,
171
],
[
171,
172
],
[
171,
173
],
[
146,
174
],
[
174,
175
],
[
273,
176
],
[
176,
177
],
[
176,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
181,
182
],
[
182,
183
],
[
178,
184
],
[
184,
185
],
[
184,
186
],
[
186,
187
],
[
186,
188
],
[
178,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
189,
194
],
[
194,
195
],
[
194,
196
],
[
196,
197
],
[
196,
198
],
[
176,
199
],
[
199,
200
],
[
0,
201
],
[
201,
202
],
[
201,
203
],
[
203,
204
],
[
201,
205
],
[
205,
206
],
[
201,
207
],
[
207,
208
],
[
207,
209
],
[
209,
210
],
[
210,
211
],
[
210,
212
],
[
209,
213
],
[
213,
214
],
[
213,
215
],
[
201,
216
],
[
216,
217
],
[
216,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
222,
223
],
[
219,
224
],
[
224,
225
],
[
225,
226
],
[
225,
227
],
[
218,
228
],
[
228,
229
],
[
229,
230
],
[
230,
231
],
[
201,
232
],
[
232,
233
],
[
232,
234
],
[
234,
235
],
[
235,
236
],
[
236,
237
],
[
237,
238
],
[
236,
239
],
[
239,
240
],
[
201,
241
],
[
241,
242
],
[
241,
243
],
[
243,
244
],
[
244,
245
],
[
245,
246
],
[
246,
247
],
[
245,
248
],
[
248,
249
],
[
201,
250
],
[
250,
251
],
[
250,
252
],
[
252,
253
],
[
253,
254
],
[
254,
255
],
[
255,
256
],
[
254,
257
],
[
257,
258
],
[
201,
259
],
[
259,
260
],
[
259,
261
],
[
261,
262
],
[
262,
263
],
[
263,
264
],
[
264,
265
],
[
201,
266
],
[
266,
267
],
[
266,
268
],
[
268,
269
],
[
269,
270
],
[
270,
271
],
[
0,
272
],
[
272,
273
],
[
272,
274
]
] |
[
"// created on : Tue Jun 23 2020\n \nimport java.io.*;\nimport java.util.*;\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n int k = in.nextInt();\n String s = in.next();\n if(s.length() <= k){\n println(s);\n }\n else{\n println(s.substring(0, k) + \"...\");\n }\n in.close();\n out.close();\n }\n\n static int MIN = Integer.MIN_VALUE;\n static int MAX = Integer.MAX_VALUE;\n static Reader in = new Reader();\n static PrintWriter out = new PrintWriter(System.out);\n\n static int[] readInt(int N) throws IOException { \n \tint arr[] = new int[N];\n \tfor(int i = 0; i < N; i++){ \n \t\tarr[i] = in.nextInt(); \n \t} \n \treturn arr;\n }\n \n static long[] readLong(int N) throws IOException { \n \tlong arr[] = new long[N];\n \tfor(int i = 0; i < N; i++){ \n \t\tarr[i] = in.nextLong(); \n \t} \n \treturn arr;\n }\n \n static void print(Object O) { \n \tout.print(O); \n }\n \n static void println(Object O) { \n \tout.println(O); \n }\n \n static void println(int arr[]) { \n \tfor(int i = 0; i < arr.length; i++){ \n \t\tprint(arr[i] + \" \"); \n \t} \n \tprintln(\"\"); \n }\n \n static void displayRuntime(long startTime){\n long stopTime = System.currentTimeMillis();\n long elapsedTime = stopTime - startTime;\n System.out.println(\"Runtime: \" + elapsedTime / 1000D);\n }\n}\n\nclass Reader {\n BufferedReader reader;\n StringTokenizer tokenizer;\n\n Reader() {\n reader = new BufferedReader(new InputStreamReader(System.in));\n tokenizer = new StringTokenizer(\"\");\n }\n\n String next() throws IOException {\n while (!tokenizer.hasMoreTokens() ) { \n tokenizer = new StringTokenizer(reader.readLine()); \n }\n return tokenizer.nextToken();\n }\n\n int nextInt() throws IOException { \n return Integer.parseInt(next()); \n }\n \n double nextDouble() throws IOException { \n return Double.parseDouble(next());\n }\n \n long nextLong() throws IOException { \n return Long.parseLong(next()); \n }\n \n String nextLine() throws IOException { \n return reader.readLine(); \n }\n \n void close() throws IOException { \n reader.close(); \n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n int k = in.nextInt();\n String s = in.next();\n if(s.length() <= k){\n println(s);\n }\n else{\n println(s.substring(0, k) + \"...\");\n }\n in.close();\n out.close();\n }\n\n static int MIN = Integer.MIN_VALUE;\n static int MAX = Integer.MAX_VALUE;\n static Reader in = new Reader();\n static PrintWriter out = new PrintWriter(System.out);\n\n static int[] readInt(int N) throws IOException { \n \tint arr[] = new int[N];\n \tfor(int i = 0; i < N; i++){ \n \t\tarr[i] = in.nextInt(); \n \t} \n \treturn arr;\n }\n \n static long[] readLong(int N) throws IOException { \n \tlong arr[] = new long[N];\n \tfor(int i = 0; i < N; i++){ \n \t\tarr[i] = in.nextLong(); \n \t} \n \treturn arr;\n }\n \n static void print(Object O) { \n \tout.print(O); \n }\n \n static void println(Object O) { \n \tout.println(O); \n }\n \n static void println(int arr[]) { \n \tfor(int i = 0; i < arr.length; i++){ \n \t\tprint(arr[i] + \" \"); \n \t} \n \tprintln(\"\"); \n }\n \n static void displayRuntime(long startTime){\n long stopTime = System.currentTimeMillis();\n long elapsedTime = stopTime - startTime;\n System.out.println(\"Runtime: \" + elapsedTime / 1000D);\n }\n}",
"Main",
"static int MIN = Integer.MIN_VALUE;",
"MIN",
"Integer.MIN_VALUE",
"Integer",
"Integer.MIN_VALUE",
"static int MAX = Integer.MAX_VALUE;",
"MAX",
"Integer.MAX_VALUE",
"Integer",
"Integer.MAX_VALUE",
"static Reader in = new Reader();",
"in",
"new Reader()",
"static PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"public static void main(String[] args) throws IOException {\n int k = in.nextInt();\n String s = in.next();\n if(s.length() <= k){\n println(s);\n }\n else{\n println(s.substring(0, k) + \"...\");\n }\n in.close();\n out.close();\n }",
"main",
"{\n int k = in.nextInt();\n String s = in.next();\n if(s.length() <= k){\n println(s);\n }\n else{\n println(s.substring(0, k) + \"...\");\n }\n in.close();\n out.close();\n }",
"int k = in.nextInt();",
"k",
"in.nextInt()",
"in.nextInt",
"in",
"String s = in.next();",
"s",
"in.next()",
"in.next",
"in",
"if(s.length() <= k){\n println(s);\n }\n else{\n println(s.substring(0, k) + \"...\");\n }",
"s.length() <= k",
"s.length()",
"s.length",
"s",
"k",
"{\n println(s);\n }",
"println(s)",
"println",
"s",
"{\n println(s.substring(0, k) + \"...\");\n }",
"println(s.substring(0, k) + \"...\")",
"println",
"s.substring(0, k) + \"...\"",
"s.substring(0, k)",
"s.substring",
"s",
"0",
"k",
"\"...\"",
"in.close()",
"in.close",
"in",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static int[] readInt(int N) throws IOException { \n \tint arr[] = new int[N];\n \tfor(int i = 0; i < N; i++){ \n \t\tarr[i] = in.nextInt(); \n \t} \n \treturn arr;\n }",
"readInt",
"{ \n \tint arr[] = new int[N];\n \tfor(int i = 0; i < N; i++){ \n \t\tarr[i] = in.nextInt(); \n \t} \n \treturn arr;\n }",
"int arr[] = new int[N];",
"arr",
"new int[N]",
"N",
"for(int i = 0; i < N; i++){ \n \t\tarr[i] = in.nextInt(); \n \t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{ \n \t\tarr[i] = in.nextInt(); \n \t}",
"{ \n \t\tarr[i] = in.nextInt(); \n \t}",
"arr[i] = in.nextInt()",
"arr[i]",
"arr",
"i",
"in.nextInt()",
"in.nextInt",
"in",
"return arr;",
"arr",
"int N",
"N",
"static long[] readLong(int N) throws IOException { \n \tlong arr[] = new long[N];\n \tfor(int i = 0; i < N; i++){ \n \t\tarr[i] = in.nextLong(); \n \t} \n \treturn arr;\n }",
"readLong",
"{ \n \tlong arr[] = new long[N];\n \tfor(int i = 0; i < N; i++){ \n \t\tarr[i] = in.nextLong(); \n \t} \n \treturn arr;\n }",
"long arr[] = new long[N];",
"arr",
"new long[N]",
"N",
"for(int i = 0; i < N; i++){ \n \t\tarr[i] = in.nextLong(); \n \t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{ \n \t\tarr[i] = in.nextLong(); \n \t}",
"{ \n \t\tarr[i] = in.nextLong(); \n \t}",
"arr[i] = in.nextLong()",
"arr[i]",
"arr",
"i",
"in.nextLong()",
"in.nextLong",
"in",
"return arr;",
"arr",
"int N",
"N",
"static void print(Object O) { \n \tout.print(O); \n }",
"print",
"{ \n \tout.print(O); \n }",
"out.print(O)",
"out.print",
"out",
"O",
"Object O",
"O",
"static void println(Object O) { \n \tout.println(O); \n }",
"println",
"{ \n \tout.println(O); \n }",
"out.println(O)",
"out.println",
"out",
"O",
"Object O",
"O",
"static void println(int arr[]) { \n \tfor(int i = 0; i < arr.length; i++){ \n \t\tprint(arr[i] + \" \"); \n \t} \n \tprintln(\"\"); \n }",
"println",
"{ \n \tfor(int i = 0; i < arr.length; i++){ \n \t\tprint(arr[i] + \" \"); \n \t} \n \tprintln(\"\"); \n }",
"for(int i = 0; i < arr.length; i++){ \n \t\tprint(arr[i] + \" \"); \n \t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < arr.length",
"i",
"arr.length",
"arr",
"arr.length",
"i++",
"i++",
"i",
"{ \n \t\tprint(arr[i] + \" \"); \n \t}",
"{ \n \t\tprint(arr[i] + \" \"); \n \t}",
"print(arr[i] + \" \")",
"print",
"arr[i] + \" \"",
"arr[i]",
"arr",
"i",
"\" \"",
"println(\"\")",
"println",
"\"\"",
"int arr[]",
"arr",
"static void displayRuntime(long startTime){\n long stopTime = System.currentTimeMillis();\n long elapsedTime = stopTime - startTime;\n System.out.println(\"Runtime: \" + elapsedTime / 1000D);\n }",
"displayRuntime",
"{\n long stopTime = System.currentTimeMillis();\n long elapsedTime = stopTime - startTime;\n System.out.println(\"Runtime: \" + elapsedTime / 1000D);\n }",
"long stopTime = System.currentTimeMillis();",
"stopTime",
"System.currentTimeMillis()",
"System.currentTimeMillis",
"System",
"long elapsedTime = stopTime - startTime;",
"elapsedTime",
"stopTime - startTime",
"stopTime",
"startTime",
"System.out.println(\"Runtime: \" + elapsedTime / 1000D)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Runtime: \" + elapsedTime / 1000D",
"\"Runtime: \"",
"elapsedTime / 1000D",
"elapsedTime",
"1000D",
"long startTime",
"startTime",
"class Reader {\n BufferedReader reader;\n StringTokenizer tokenizer;\n\n Reader() {\n reader = new BufferedReader(new InputStreamReader(System.in));\n tokenizer = new StringTokenizer(\"\");\n }\n\n String next() throws IOException {\n while (!tokenizer.hasMoreTokens() ) { \n tokenizer = new StringTokenizer(reader.readLine()); \n }\n return tokenizer.nextToken();\n }\n\n int nextInt() throws IOException { \n return Integer.parseInt(next()); \n }\n \n double nextDouble() throws IOException { \n return Double.parseDouble(next());\n }\n \n long nextLong() throws IOException { \n return Long.parseLong(next()); \n }\n \n String nextLine() throws IOException { \n return reader.readLine(); \n }\n \n void close() throws IOException { \n reader.close(); \n }\n}",
"Reader",
"BufferedReader reader;",
"reader",
"StringTokenizer tokenizer;",
"tokenizer",
"Reader() {\n reader = new BufferedReader(new InputStreamReader(System.in));\n tokenizer = new StringTokenizer(\"\");\n }",
"Reader",
"{\n reader = new BufferedReader(new InputStreamReader(System.in));\n tokenizer = new StringTokenizer(\"\");\n }",
"reader = new BufferedReader(new InputStreamReader(System.in))",
"reader",
"new BufferedReader(new InputStreamReader(System.in))",
"tokenizer = new StringTokenizer(\"\")",
"tokenizer",
"new StringTokenizer(\"\")",
"String next() throws IOException {\n while (!tokenizer.hasMoreTokens() ) { \n tokenizer = new StringTokenizer(reader.readLine()); \n }\n return tokenizer.nextToken();\n }",
"next",
"{\n while (!tokenizer.hasMoreTokens() ) { \n tokenizer = new StringTokenizer(reader.readLine()); \n }\n return tokenizer.nextToken();\n }",
"while (!tokenizer.hasMoreTokens() ) { \n tokenizer = new StringTokenizer(reader.readLine()); \n }",
"!tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens",
"tokenizer",
"{ \n tokenizer = new StringTokenizer(reader.readLine()); \n }",
"tokenizer = new StringTokenizer(reader.readLine())",
"tokenizer",
"new StringTokenizer(reader.readLine())",
"return tokenizer.nextToken();",
"tokenizer.nextToken()",
"tokenizer.nextToken",
"tokenizer",
"int nextInt() throws IOException { \n return Integer.parseInt(next()); \n }",
"nextInt",
"{ \n return Integer.parseInt(next()); \n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"double nextDouble() throws IOException { \n return Double.parseDouble(next());\n }",
"nextDouble",
"{ \n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"long nextLong() throws IOException { \n return Long.parseLong(next()); \n }",
"nextLong",
"{ \n return Long.parseLong(next()); \n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"String nextLine() throws IOException { \n return reader.readLine(); \n }",
"nextLine",
"{ \n return reader.readLine(); \n }",
"return reader.readLine();",
"reader.readLine()",
"reader.readLine",
"reader",
"void close() throws IOException { \n reader.close(); \n }",
"close",
"{ \n reader.close(); \n }",
"reader.close()",
"reader.close",
"reader",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n int k = in.nextInt();\n String s = in.next();\n if(s.length() <= k){\n println(s);\n }\n else{\n println(s.substring(0, k) + \"...\");\n }\n in.close();\n out.close();\n }\n\n static int MIN = Integer.MIN_VALUE;\n static int MAX = Integer.MAX_VALUE;\n static Reader in = new Reader();\n static PrintWriter out = new PrintWriter(System.out);\n\n static int[] readInt(int N) throws IOException { \n \tint arr[] = new int[N];\n \tfor(int i = 0; i < N; i++){ \n \t\tarr[i] = in.nextInt(); \n \t} \n \treturn arr;\n }\n \n static long[] readLong(int N) throws IOException { \n \tlong arr[] = new long[N];\n \tfor(int i = 0; i < N; i++){ \n \t\tarr[i] = in.nextLong(); \n \t} \n \treturn arr;\n }\n \n static void print(Object O) { \n \tout.print(O); \n }\n \n static void println(Object O) { \n \tout.println(O); \n }\n \n static void println(int arr[]) { \n \tfor(int i = 0; i < arr.length; i++){ \n \t\tprint(arr[i] + \" \"); \n \t} \n \tprintln(\"\"); \n }\n \n static void displayRuntime(long startTime){\n long stopTime = System.currentTimeMillis();\n long elapsedTime = stopTime - startTime;\n System.out.println(\"Runtime: \" + elapsedTime / 1000D);\n }\n}",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n int k = in.nextInt();\n String s = in.next();\n if(s.length() <= k){\n println(s);\n }\n else{\n println(s.substring(0, k) + \"...\");\n }\n in.close();\n out.close();\n }\n\n static int MIN = Integer.MIN_VALUE;\n static int MAX = Integer.MAX_VALUE;\n static Reader in = new Reader();\n static PrintWriter out = new PrintWriter(System.out);\n\n static int[] readInt(int N) throws IOException { \n \tint arr[] = new int[N];\n \tfor(int i = 0; i < N; i++){ \n \t\tarr[i] = in.nextInt(); \n \t} \n \treturn arr;\n }\n \n static long[] readLong(int N) throws IOException { \n \tlong arr[] = new long[N];\n \tfor(int i = 0; i < N; i++){ \n \t\tarr[i] = in.nextLong(); \n \t} \n \treturn arr;\n }\n \n static void print(Object O) { \n \tout.print(O); \n }\n \n static void println(Object O) { \n \tout.println(O); \n }\n \n static void println(int arr[]) { \n \tfor(int i = 0; i < arr.length; i++){ \n \t\tprint(arr[i] + \" \"); \n \t} \n \tprintln(\"\"); \n }\n \n static void displayRuntime(long startTime){\n long stopTime = System.currentTimeMillis();\n long elapsedTime = stopTime - startTime;\n System.out.println(\"Runtime: \" + elapsedTime / 1000D);\n }\n}",
"Main"
] |
// created on : Tue Jun 23 2020
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
int k = in.nextInt();
String s = in.next();
if(s.length() <= k){
println(s);
}
else{
println(s.substring(0, k) + "...");
}
in.close();
out.close();
}
static int MIN = Integer.MIN_VALUE;
static int MAX = Integer.MAX_VALUE;
static Reader in = new Reader();
static PrintWriter out = new PrintWriter(System.out);
static int[] readInt(int N) throws IOException {
int arr[] = new int[N];
for(int i = 0; i < N; i++){
arr[i] = in.nextInt();
}
return arr;
}
static long[] readLong(int N) throws IOException {
long arr[] = new long[N];
for(int i = 0; i < N; i++){
arr[i] = in.nextLong();
}
return arr;
}
static void print(Object O) {
out.print(O);
}
static void println(Object O) {
out.println(O);
}
static void println(int arr[]) {
for(int i = 0; i < arr.length; i++){
print(arr[i] + " ");
}
println("");
}
static void displayRuntime(long startTime){
long stopTime = System.currentTimeMillis();
long elapsedTime = stopTime - startTime;
System.out.println("Runtime: " + elapsedTime / 1000D);
}
}
class Reader {
BufferedReader reader;
StringTokenizer tokenizer;
Reader() {
reader = new BufferedReader(new InputStreamReader(System.in));
tokenizer = new StringTokenizer("");
}
String next() throws IOException {
while (!tokenizer.hasMoreTokens() ) {
tokenizer = new StringTokenizer(reader.readLine());
}
return tokenizer.nextToken();
}
int nextInt() throws IOException {
return Integer.parseInt(next());
}
double nextDouble() throws IOException {
return Double.parseDouble(next());
}
long nextLong() throws IOException {
return Long.parseLong(next());
}
String nextLine() throws IOException {
return reader.readLine();
}
void close() throws IOException {
reader.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
67,
5
],
[
67,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
23,
27
],
[
22,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
22,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
35,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
6,
64
],
[
64,
65
],
[
0,
66
],
[
66,
67
],
[
66,
68
]
] |
[
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n \n int k = sc.nextInt();\n String s = sc.next();\n \n if(s.length() <= k) {\n System.out.println(s);\n }else{\n for(int i = 0; i < k; i++){\n System.out.print(s.charAt(i));\n }\n System.out.print(\"...\");\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n \n int k = sc.nextInt();\n String s = sc.next();\n \n if(s.length() <= k) {\n System.out.println(s);\n }else{\n for(int i = 0; i < k; i++){\n System.out.print(s.charAt(i));\n }\n System.out.print(\"...\");\n }\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n \n int k = sc.nextInt();\n String s = sc.next();\n \n if(s.length() <= k) {\n System.out.println(s);\n }else{\n for(int i = 0; i < k; i++){\n System.out.print(s.charAt(i));\n }\n System.out.print(\"...\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n \n int k = sc.nextInt();\n String s = sc.next();\n \n if(s.length() <= k) {\n System.out.println(s);\n }else{\n for(int i = 0; i < k; i++){\n System.out.print(s.charAt(i));\n }\n System.out.print(\"...\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"if(s.length() <= k) {\n System.out.println(s);\n }else{\n for(int i = 0; i < k; i++){\n System.out.print(s.charAt(i));\n }\n System.out.print(\"...\");\n }",
"s.length() <= k",
"s.length()",
"s.length",
"s",
"k",
"{\n System.out.println(s);\n }",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"{\n for(int i = 0; i < k; i++){\n System.out.print(s.charAt(i));\n }\n System.out.print(\"...\");\n }",
"for(int i = 0; i < k; i++){\n System.out.print(s.charAt(i));\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < k",
"i",
"k",
"i++",
"i++",
"i",
"{\n System.out.print(s.charAt(i));\n }",
"{\n System.out.print(s.charAt(i));\n }",
"System.out.print(s.charAt(i))",
"System.out.print",
"System.out",
"System",
"System.out",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"System.out.print(\"...\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"...\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n \n int k = sc.nextInt();\n String s = sc.next();\n \n if(s.length() <= k) {\n System.out.println(s);\n }else{\n for(int i = 0; i < k; i++){\n System.out.print(s.charAt(i));\n }\n System.out.print(\"...\");\n }\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n \n int k = sc.nextInt();\n String s = sc.next();\n \n if(s.length() <= k) {\n System.out.println(s);\n }else{\n for(int i = 0; i < k; i++){\n System.out.print(s.charAt(i));\n }\n System.out.print(\"...\");\n }\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int k = sc.nextInt();
String s = sc.next();
if(s.length() <= k) {
System.out.println(s);
}else{
for(int i = 0; i < k; i++){
System.out.print(s.charAt(i));
}
System.out.print("...");
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
4,
18,
13,
13,
30,
4,
18,
13,
2,
4,
18,
13,
17,
13,
17,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
29,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
30,
29,
13,
29,
4,
13,
2,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
30,
29,
17,
11,
1,
41,
13,
17,
2,
2,
13,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
29,
17,
29,
17,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
12,
13,
30,
0,
13,
13,
0,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
18,
36,
13,
12,
13,
30,
29,
18,
36,
13,
12,
13,
30,
41,
13,
4,
18,
13,
18,
13,
13,
14,
2,
13,
17,
30,
29,
4,
18,
13,
18,
13,
13,
29,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
2,
2,
2,
2,
17,
4,
18,
36,
17,
4,
18,
36,
17,
12,
13,
30,
29,
2,
2,
2,
17,
4,
18,
13,
17,
4,
18,
13,
12,
13,
30,
14,
40,
2,
13,
13,
30,
29,
17,
14,
2,
13,
36,
30,
29,
17,
41,
13,
13,
29,
2,
4,
18,
13,
18,
13,
13,
4,
18,
13,
18,
13,
13,
23,
13,
12,
13,
30,
29,
2,
2,
2,
2,
17,
13,
17,
13,
17,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
7,
12
],
[
12,
13
],
[
12,
14
],
[
7,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
17,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
17,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
29,
33
],
[
28,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
28,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
43,
47
],
[
42,
48
],
[
17,
49
],
[
49,
50
],
[
50,
51
],
[
15,
52
],
[
52,
53
],
[
7,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
66,
67
],
[
66,
68
],
[
61,
69
],
[
69,
70
],
[
70,
71
],
[
61,
72
],
[
73,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
78,
79
],
[
79,
80
],
[
56,
81
],
[
81,
82
],
[
54,
83
],
[
83,
84
],
[
7,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
92,
93
],
[
93,
94
],
[
87,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
85,
102
],
[
102,
103
],
[
85,
104
],
[
104,
105
],
[
7,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
109,
113
],
[
113,
114
],
[
114,
115
],
[
108,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
116,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
116,
126
],
[
126,
127
],
[
127,
128
],
[
116,
129
],
[
130,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
132,
136
],
[
131,
137
],
[
137,
138
],
[
138,
139
],
[
108,
140
],
[
140,
141
],
[
106,
142
],
[
142,
143
],
[
7,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
144,
148
],
[
148,
149
],
[
144,
150
],
[
150,
151
],
[
150,
152
],
[
144,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
155,
159
],
[
159,
160
],
[
159,
161
],
[
153,
162
],
[
162,
163
],
[
153,
164
],
[
164,
165
],
[
144,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
144,
173
],
[
173,
174
],
[
173,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
144,
180
],
[
180,
181
],
[
180,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
185,
186
],
[
186,
187
],
[
185,
188
],
[
188,
189
],
[
188,
190
],
[
182,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
191,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
197,
200
],
[
200,
201
],
[
200,
202
],
[
182,
203
],
[
203,
204
],
[
180,
205
],
[
205,
206
],
[
144,
207
],
[
207,
208
],
[
207,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
210,
215
],
[
218,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
218,
220
],
[
220,
221
],
[
221,
222
],
[
217,
223
],
[
216,
224
],
[
224,
225
],
[
225,
226
],
[
218,
227
],
[
144,
228
],
[
228,
229
],
[
228,
230
],
[
230,
231
],
[
231,
232
],
[
232,
233
],
[
233,
234
],
[
234,
235
],
[
234,
236
],
[
236,
237
],
[
237,
238
],
[
233,
239
],
[
232,
240
],
[
240,
241
],
[
241,
242
],
[
144,
243
],
[
243,
244
],
[
243,
245
],
[
245,
246
],
[
246,
247
],
[
247,
248
],
[
248,
249
],
[
248,
250
],
[
246,
251
],
[
251,
252
],
[
252,
253
],
[
245,
254
],
[
254,
255
],
[
255,
256
],
[
255,
257
],
[
254,
258
],
[
258,
259
],
[
259,
260
],
[
245,
261
],
[
261,
262
],
[
261,
263
],
[
245,
264
],
[
264,
265
],
[
265,
266
],
[
266,
267
],
[
267,
268
],
[
266,
269
],
[
269,
270
],
[
269,
271
],
[
265,
272
],
[
272,
273
],
[
273,
274
],
[
272,
275
],
[
275,
276
],
[
275,
277
],
[
243,
278
],
[
278,
279
],
[
144,
280
],
[
280,
281
],
[
280,
282
],
[
282,
283
],
[
283,
284
],
[
287,
285
],
[
285,
286
],
[
286,
287
],
[
287,
288
],
[
287,
289
],
[
286,
290
],
[
285,
291
],
[
287,
292
],
[
144,
293
],
[
7,
294
],
[
294,
295
],
[
294,
296
],
[
296,
297
],
[
294,
298
],
[
298,
299
],
[
294,
300
],
[
300,
301
],
[
300,
302
],
[
302,
303
],
[
303,
304
],
[
303,
305
],
[
294,
306
],
[
306,
307
],
[
306,
308
],
[
308,
309
],
[
309,
310
],
[
310,
311
],
[
311,
312
],
[
311,
313
],
[
310,
314
],
[
314,
315
],
[
315,
316
],
[
316,
317
],
[
309,
318
],
[
318,
319
],
[
319,
320
],
[
320,
321
],
[
320,
322
],
[
322,
323
],
[
323,
324
],
[
324,
325
],
[
319,
326
],
[
326,
327
],
[
327,
328
],
[
327,
329
],
[
308,
330
],
[
330,
331
],
[
331,
332
],
[
332,
333
],
[
294,
334
],
[
334,
335
],
[
334,
336
],
[
336,
337
],
[
337,
338
],
[
338,
339
],
[
339,
340
],
[
338,
341
],
[
341,
342
],
[
294,
343
],
[
343,
344
],
[
343,
345
],
[
345,
346
],
[
346,
347
],
[
347,
348
],
[
348,
349
],
[
347,
350
],
[
350,
351
],
[
294,
352
],
[
352,
353
],
[
352,
354
],
[
354,
355
],
[
355,
356
],
[
356,
357
],
[
357,
358
],
[
356,
359
],
[
359,
360
],
[
294,
361
],
[
361,
362
],
[
361,
363
],
[
363,
364
],
[
364,
365
],
[
364,
366
],
[
363,
367
],
[
367,
368
],
[
368,
369
],
[
368,
370
],
[
370,
371
],
[
371,
372
],
[
372,
373
],
[
367,
374
],
[
374,
375
],
[
375,
376
],
[
375,
377
],
[
377,
378
],
[
378,
379
],
[
363,
380
],
[
380,
381
]
] |
[
"/* @author - poindexter_21 */\n\nimport java.io.*;\nimport java.util.*;\n\nclass Main {\n \n static MyScanner sc = new MyScanner();\n \n public static void main(String[] args) {\n \n int k = sc.nextInt();\n String str = sc.next();\n \n if(str.length() <= k)\n out.println(str);\n else {\n out.println(str.substring(0, k) + \"...\");\n }\n \n out.close();\n }\n\n /**\n * *********************************************************************************************\n */\n // array of int type taking input\n public static int[] init(int n) {\n \n int[] arr = new int[n];\n \n for (int i = 0; i < n; ++i) {\n arr[i] = sc.nextInt();\n }\n \n return arr;\n }\n\n //return gcd of two numbers\n public static int gcd(int a, int b) {\n \n if (a == 0) {\n return b;\n }\n \n return gcd(b % a, a);\n }\n\n //checks whether a number is prime or not\n public static boolean prime(int n) {\n \n if (n < 2) {\n return false;\n }\n \n for (int i = 2; i * i <= n; ++i) {\n if (n % i == 0) {\n return false;\n }\n }\n \n return true;\n }\n\n// Pair Class\n static class Pair<S extends Comparable<S>, T extends Comparable<T>> implements Comparable<Pair<S, T>> {\n \n S first;\n T second;\n \n public Pair() {\n }\n \n Pair(S f, T s) {\n first = f;\n second = s;\n }\n \n public S getX() {\n return this.first;\n }\n \n public T getY() {\n return this.second;\n }\n \n @Override\n public int compareTo(Pair<S, T> o) {\n int t = first.compareTo(o.first);\n if (t == 0) {\n return second.compareTo(o.second);\n }\n return t;\n }\n \n public void show() {\n System.out.println(\"[\" + this.getX() + \" , \" + this.getY() + \"]\");\n }\n \n @Override\n public int hashCode() {\n return (31 + first.hashCode()) * 31 + second.hashCode();\n }\n \n @Override\n public boolean equals(Object o) {\n if (!(o instanceof Pair)) {\n return false;\n }\n if (o == this) {\n return true;\n }\n Pair p = (Pair) o;\n return first.equals(p.first) && second.equals(p.second);\n }\n \n @Override\n public String toString() {\n return \"Pair{\" + first + \", \" + second + \"}\";\n }\n }\n\n /**\n * ********************************************************************************************\n */\n /**\n * ** Fast I/O ***\n */\n //-----------PrintWriter for faster output---------------------------------\n public static PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out));\n\n //-----------MyScanner class for faster input----------\n public static class MyScanner {\n \n BufferedReader br;\n StringTokenizer st;\n \n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next() {\n \n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n \n long nextLong() {\n return Long.parseLong(next());\n }\n \n double nextDouble() {\n return Double.parseDouble(next());\n }\n \n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n //--------------------------------------------------------\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"class Main {\n \n static MyScanner sc = new MyScanner();\n \n public static void main(String[] args) {\n \n int k = sc.nextInt();\n String str = sc.next();\n \n if(str.length() <= k)\n out.println(str);\n else {\n out.println(str.substring(0, k) + \"...\");\n }\n \n out.close();\n }\n\n /**\n * *********************************************************************************************\n */\n // array of int type taking input\n public static int[] init(int n) {\n \n int[] arr = new int[n];\n \n for (int i = 0; i < n; ++i) {\n arr[i] = sc.nextInt();\n }\n \n return arr;\n }\n\n //return gcd of two numbers\n public static int gcd(int a, int b) {\n \n if (a == 0) {\n return b;\n }\n \n return gcd(b % a, a);\n }\n\n //checks whether a number is prime or not\n public static boolean prime(int n) {\n \n if (n < 2) {\n return false;\n }\n \n for (int i = 2; i * i <= n; ++i) {\n if (n % i == 0) {\n return false;\n }\n }\n \n return true;\n }\n\n// Pair Class\n static class Pair<S extends Comparable<S>, T extends Comparable<T>> implements Comparable<Pair<S, T>> {\n \n S first;\n T second;\n \n public Pair() {\n }\n \n Pair(S f, T s) {\n first = f;\n second = s;\n }\n \n public S getX() {\n return this.first;\n }\n \n public T getY() {\n return this.second;\n }\n \n @Override\n public int compareTo(Pair<S, T> o) {\n int t = first.compareTo(o.first);\n if (t == 0) {\n return second.compareTo(o.second);\n }\n return t;\n }\n \n public void show() {\n System.out.println(\"[\" + this.getX() + \" , \" + this.getY() + \"]\");\n }\n \n @Override\n public int hashCode() {\n return (31 + first.hashCode()) * 31 + second.hashCode();\n }\n \n @Override\n public boolean equals(Object o) {\n if (!(o instanceof Pair)) {\n return false;\n }\n if (o == this) {\n return true;\n }\n Pair p = (Pair) o;\n return first.equals(p.first) && second.equals(p.second);\n }\n \n @Override\n public String toString() {\n return \"Pair{\" + first + \", \" + second + \"}\";\n }\n }\n\n /**\n * ********************************************************************************************\n */\n /**\n * ** Fast I/O ***\n */\n //-----------PrintWriter for faster output---------------------------------\n public static PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out));\n\n //-----------MyScanner class for faster input----------\n public static class MyScanner {\n \n BufferedReader br;\n StringTokenizer st;\n \n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next() {\n \n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n \n long nextLong() {\n return Long.parseLong(next());\n }\n \n double nextDouble() {\n return Double.parseDouble(next());\n }\n \n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n //--------------------------------------------------------\n}",
"Main",
"static MyScanner sc = new MyScanner();",
"sc",
"new MyScanner()",
"/**\n * ** Fast I/O ***\n */\n //-----------PrintWriter for faster output---------------------------------\n public static PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out));",
"out",
"new PrintWriter(new BufferedOutputStream(System.out))",
"public static void main(String[] args) {\n \n int k = sc.nextInt();\n String str = sc.next();\n \n if(str.length() <= k)\n out.println(str);\n else {\n out.println(str.substring(0, k) + \"...\");\n }\n \n out.close();\n }",
"main",
"{\n \n int k = sc.nextInt();\n String str = sc.next();\n \n if(str.length() <= k)\n out.println(str);\n else {\n out.println(str.substring(0, k) + \"...\");\n }\n \n out.close();\n }",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String str = sc.next();",
"str",
"sc.next()",
"sc.next",
"sc",
"if(str.length() <= k)\n out.println(str);\n else {\n out.println(str.substring(0, k) + \"...\");\n }",
"str.length() <= k",
"str.length()",
"str.length",
"str",
"k",
"out.println(str)",
"out.println",
"out",
"str",
"{\n out.println(str.substring(0, k) + \"...\");\n }",
"out.println(str.substring(0, k) + \"...\")",
"out.println",
"out",
"str.substring(0, k) + \"...\"",
"str.substring(0, k)",
"str.substring",
"str",
"0",
"k",
"\"...\"",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"/**\n * *********************************************************************************************\n */\n // array of int type taking input\n public static int[] init(int n) {\n \n int[] arr = new int[n];\n \n for (int i = 0; i < n; ++i) {\n arr[i] = sc.nextInt();\n }\n \n return arr;\n }",
"init",
"{\n \n int[] arr = new int[n];\n \n for (int i = 0; i < n; ++i) {\n arr[i] = sc.nextInt();\n }\n \n return arr;\n }",
"int[] arr = new int[n];",
"arr",
"new int[n]",
"n",
"for (int i = 0; i < n; ++i) {\n arr[i] = sc.nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"++i",
"++i",
"i",
"{\n arr[i] = sc.nextInt();\n }",
"{\n arr[i] = sc.nextInt();\n }",
"arr[i] = sc.nextInt()",
"arr[i]",
"arr",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"return arr;",
"arr",
"int n",
"n",
"//return gcd of two numbers\n public static int gcd(int a, int b) {\n \n if (a == 0) {\n return b;\n }\n \n return gcd(b % a, a);\n }",
"gcd",
"{\n \n if (a == 0) {\n return b;\n }\n \n return gcd(b % a, a);\n }",
"if (a == 0) {\n return b;\n }",
"a == 0",
"a",
"0",
"{\n return b;\n }",
"return b;",
"b",
"return gcd(b % a, a);",
"gcd(b % a, a)",
"gcd",
"b % a",
"b",
"a",
"a",
"int a",
"a",
"int b",
"b",
"//checks whether a number is prime or not\n public static boolean prime(int n) {\n \n if (n < 2) {\n return false;\n }\n \n for (int i = 2; i * i <= n; ++i) {\n if (n % i == 0) {\n return false;\n }\n }\n \n return true;\n }",
"prime",
"{\n \n if (n < 2) {\n return false;\n }\n \n for (int i = 2; i * i <= n; ++i) {\n if (n % i == 0) {\n return false;\n }\n }\n \n return true;\n }",
"if (n < 2) {\n return false;\n }",
"n < 2",
"n",
"2",
"{\n return false;\n }",
"return false;",
"false",
"for (int i = 2; i * i <= n; ++i) {\n if (n % i == 0) {\n return false;\n }\n }",
"int i = 2;",
"int i = 2;",
"i",
"2",
"i * i <= n",
"i * i",
"i",
"i",
"n",
"++i",
"++i",
"i",
"{\n if (n % i == 0) {\n return false;\n }\n }",
"{\n if (n % i == 0) {\n return false;\n }\n }",
"if (n % i == 0) {\n return false;\n }",
"n % i == 0",
"n % i",
"n",
"i",
"0",
"{\n return false;\n }",
"return false;",
"false",
"return true;",
"true",
"int n",
"n",
" static class Pair<S extends Comparable<S>, T extends Comparable<T>> implements Comparable<Pair<S, T>> {\n \n S first;\n T second;\n \n public Pair() {\n }\n \n Pair(S f, T s) {\n first = f;\n second = s;\n }\n \n public S getX() {\n return this.first;\n }\n \n public T getY() {\n return this.second;\n }\n \n @Override\n public int compareTo(Pair<S, T> o) {\n int t = first.compareTo(o.first);\n if (t == 0) {\n return second.compareTo(o.second);\n }\n return t;\n }\n \n public void show() {\n System.out.println(\"[\" + this.getX() + \" , \" + this.getY() + \"]\");\n }\n \n @Override\n public int hashCode() {\n return (31 + first.hashCode()) * 31 + second.hashCode();\n }\n \n @Override\n public boolean equals(Object o) {\n if (!(o instanceof Pair)) {\n return false;\n }\n if (o == this) {\n return true;\n }\n Pair p = (Pair) o;\n return first.equals(p.first) && second.equals(p.second);\n }\n \n @Override\n public String toString() {\n return \"Pair{\" + first + \", \" + second + \"}\";\n }\n }",
"Pair",
"S first;",
"first",
"T second;",
"second",
"public Pair() {\n }",
"Pair",
"{\n }",
"Pair(S f, T s) {\n first = f;\n second = s;\n }",
"Pair",
"{\n first = f;\n second = s;\n }",
"first = f",
"first",
"f",
"second = s",
"second",
"s",
"S f",
"f",
"T s",
"s",
"public S getX() {\n return this.first;\n }",
"getX",
"{\n return this.first;\n }",
"return this.first;",
"this.first",
"this",
"this.first",
"public T getY() {\n return this.second;\n }",
"getY",
"{\n return this.second;\n }",
"return this.second;",
"this.second",
"this",
"this.second",
"@Override\n public int compareTo(Pair<S, T> o) {\n int t = first.compareTo(o.first);\n if (t == 0) {\n return second.compareTo(o.second);\n }\n return t;\n }",
"compareTo",
"{\n int t = first.compareTo(o.first);\n if (t == 0) {\n return second.compareTo(o.second);\n }\n return t;\n }",
"int t = first.compareTo(o.first);",
"t",
"first.compareTo(o.first)",
"first.compareTo",
"first",
"o.first",
"o",
"o.first",
"if (t == 0) {\n return second.compareTo(o.second);\n }",
"t == 0",
"t",
"0",
"{\n return second.compareTo(o.second);\n }",
"return second.compareTo(o.second);",
"second.compareTo(o.second)",
"second.compareTo",
"second",
"o.second",
"o",
"o.second",
"return t;",
"t",
"Pair<S, T> o",
"o",
"public void show() {\n System.out.println(\"[\" + this.getX() + \" , \" + this.getY() + \"]\");\n }",
"show",
"{\n System.out.println(\"[\" + this.getX() + \" , \" + this.getY() + \"]\");\n }",
"System.out.println(\"[\" + this.getX() + \" , \" + this.getY() + \"]\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"[\" + this.getX() + \" , \" + this.getY() + \"]\"",
"this.getY()",
"\" , \"",
"\"[\" + this.getX() + \" , \" + this.getY() + \"]\"",
"\"[\"",
"this.getX()",
"this.getX",
"this",
"\" , \"",
"this.getY()",
"this.getY",
"this",
"\"]\"",
"@Override\n public int hashCode() {\n return (31 + first.hashCode()) * 31 + second.hashCode();\n }",
"hashCode",
"{\n return (31 + first.hashCode()) * 31 + second.hashCode();\n }",
"return (31 + first.hashCode()) * 31 + second.hashCode();",
"(31 + first.hashCode()) * 31 + second.hashCode()",
"(31 + first.hashCode()) * 31",
"(31 + first.hashCode())",
"31",
"first.hashCode()",
"first.hashCode",
"first",
"31",
"second.hashCode()",
"second.hashCode",
"second",
"@Override\n public boolean equals(Object o) {\n if (!(o instanceof Pair)) {\n return false;\n }\n if (o == this) {\n return true;\n }\n Pair p = (Pair) o;\n return first.equals(p.first) && second.equals(p.second);\n }",
"equals",
"{\n if (!(o instanceof Pair)) {\n return false;\n }\n if (o == this) {\n return true;\n }\n Pair p = (Pair) o;\n return first.equals(p.first) && second.equals(p.second);\n }",
"if (!(o instanceof Pair)) {\n return false;\n }",
"!(o instanceof Pair)",
"(o instanceof Pair)",
"o",
"Pair",
"{\n return false;\n }",
"return false;",
"false",
"if (o == this) {\n return true;\n }",
"o == this",
"o",
"this",
"{\n return true;\n }",
"return true;",
"true",
"Pair p = (Pair) o;",
"p",
"(Pair) o",
"return first.equals(p.first) && second.equals(p.second);",
"first.equals(p.first) && second.equals(p.second)",
"first.equals(p.first)",
"first.equals",
"first",
"p.first",
"p",
"p.first",
"second.equals(p.second)",
"second.equals",
"second",
"p.second",
"p",
"p.second",
"Object o",
"o",
"@Override\n public String toString() {\n return \"Pair{\" + first + \", \" + second + \"}\";\n }",
"toString",
"{\n return \"Pair{\" + first + \", \" + second + \"}\";\n }",
"return \"Pair{\" + first + \", \" + second + \"}\";",
"\"Pair{\" + first + \", \" + second + \"}\"",
"second",
"\", \"",
"\"Pair{\" + first + \", \" + second + \"}\"",
"\"Pair{\"",
"first",
"\", \"",
"second",
"\"}\"",
"Comparable",
"public static class MyScanner {\n \n BufferedReader br;\n StringTokenizer st;\n \n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next() {\n \n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n \n long nextLong() {\n return Long.parseLong(next());\n }\n \n double nextDouble() {\n return Double.parseDouble(next());\n }\n \n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }",
"MyScanner",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"MyScanner",
"{\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String next() {\n \n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"next",
"{\n \n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"nextLine",
"{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"String str = \"\";",
"str",
"\"\"",
"try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n str = br.readLine();\n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str"
] |
/* @author - poindexter_21 */
import java.io.*;
import java.util.*;
class Main {
static MyScanner sc = new MyScanner();
public static void main(String[] args) {
int k = sc.nextInt();
String str = sc.next();
if(str.length() <= k)
out.println(str);
else {
out.println(str.substring(0, k) + "...");
}
out.close();
}
/**
* *********************************************************************************************
*/
// array of int type taking input
public static int[] init(int n) {
int[] arr = new int[n];
for (int i = 0; i < n; ++i) {
arr[i] = sc.nextInt();
}
return arr;
}
//return gcd of two numbers
public static int gcd(int a, int b) {
if (a == 0) {
return b;
}
return gcd(b % a, a);
}
//checks whether a number is prime or not
public static boolean prime(int n) {
if (n < 2) {
return false;
}
for (int i = 2; i * i <= n; ++i) {
if (n % i == 0) {
return false;
}
}
return true;
}
// Pair Class
static class Pair<S extends Comparable<S>, T extends Comparable<T>> implements Comparable<Pair<S, T>> {
S first;
T second;
public Pair() {
}
Pair(S f, T s) {
first = f;
second = s;
}
public S getX() {
return this.first;
}
public T getY() {
return this.second;
}
@Override
public int compareTo(Pair<S, T> o) {
int t = first.compareTo(o.first);
if (t == 0) {
return second.compareTo(o.second);
}
return t;
}
public void show() {
System.out.println("[" + this.getX() + " , " + this.getY() + "]");
}
@Override
public int hashCode() {
return (31 + first.hashCode()) * 31 + second.hashCode();
}
@Override
public boolean equals(Object o) {
if (!(o instanceof Pair)) {
return false;
}
if (o == this) {
return true;
}
Pair p = (Pair) o;
return first.equals(p.first) && second.equals(p.second);
}
@Override
public String toString() {
return "Pair{" + first + ", " + second + "}";
}
}
/**
* ********************************************************************************************
*/
/**
* ** Fast I/O ***
*/
//-----------PrintWriter for faster output---------------------------------
public static PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out));
//-----------MyScanner class for faster input----------
public static class MyScanner {
BufferedReader br;
StringTokenizer st;
public MyScanner() {
br = new BufferedReader(new InputStreamReader(System.in));
}
String next() {
while (st == null || !st.hasMoreElements()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
String nextLine() {
String str = "";
try {
str = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return str;
}
}
//--------------------------------------------------------
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
54,
5
],
[
54,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
26,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
25,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
45,
49
],
[
44,
50
],
[
6,
51
],
[
51,
52
],
[
0,
53
],
[
53,
54
],
[
53,
55
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint I1= sc.nextInt();\n\t\tString S2 = sc.next();\n\t\tsc.close();\n\n\t\tif(S2.length() <= I1) {\n\t\t\tSystem.out.println(S2);\n\t\t}else{\n\t\t\tSystem.out.println(S2.substring(0, I1)+\"...\");\n\t\t}\n\t}\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint I1= sc.nextInt();\n\t\tString S2 = sc.next();\n\t\tsc.close();\n\n\t\tif(S2.length() <= I1) {\n\t\t\tSystem.out.println(S2);\n\t\t}else{\n\t\t\tSystem.out.println(S2.substring(0, I1)+\"...\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint I1= sc.nextInt();\n\t\tString S2 = sc.next();\n\t\tsc.close();\n\n\t\tif(S2.length() <= I1) {\n\t\t\tSystem.out.println(S2);\n\t\t}else{\n\t\t\tSystem.out.println(S2.substring(0, I1)+\"...\");\n\t\t}\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint I1= sc.nextInt();\n\t\tString S2 = sc.next();\n\t\tsc.close();\n\n\t\tif(S2.length() <= I1) {\n\t\t\tSystem.out.println(S2);\n\t\t}else{\n\t\t\tSystem.out.println(S2.substring(0, I1)+\"...\");\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int I1= sc.nextInt();",
"I1",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String S2 = sc.next();",
"S2",
"sc.next()",
"sc.next",
"sc",
"sc.close()",
"sc.close",
"sc",
"if(S2.length() <= I1) {\n\t\t\tSystem.out.println(S2);\n\t\t}else{\n\t\t\tSystem.out.println(S2.substring(0, I1)+\"...\");\n\t\t}",
"S2.length() <= I1",
"S2.length()",
"S2.length",
"S2",
"I1",
"{\n\t\t\tSystem.out.println(S2);\n\t\t}",
"System.out.println(S2)",
"System.out.println",
"System.out",
"System",
"System.out",
"S2",
"{\n\t\t\tSystem.out.println(S2.substring(0, I1)+\"...\");\n\t\t}",
"System.out.println(S2.substring(0, I1)+\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"S2.substring(0, I1)+\"...\"",
"S2.substring(0, I1)",
"S2.substring",
"S2",
"0",
"I1",
"\"...\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint I1= sc.nextInt();\n\t\tString S2 = sc.next();\n\t\tsc.close();\n\n\t\tif(S2.length() <= I1) {\n\t\t\tSystem.out.println(S2);\n\t\t}else{\n\t\t\tSystem.out.println(S2.substring(0, I1)+\"...\");\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint I1= sc.nextInt();\n\t\tString S2 = sc.next();\n\t\tsc.close();\n\n\t\tif(S2.length() <= I1) {\n\t\t\tSystem.out.println(S2);\n\t\t}else{\n\t\t\tSystem.out.println(S2.substring(0, I1)+\"...\");\n\t\t}\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int I1= sc.nextInt();
String S2 = sc.next();
sc.close();
if(S2.length() <= I1) {
System.out.println(S2);
}else{
System.out.println(S2.substring(0, I1)+"...");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
13,
13,
13,
23,
13,
12,
13,
30,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
13,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
86,
5
],
[
86,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
16,
19
],
[
19,
20
],
[
20,
21
],
[
10,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
10,
27
],
[
27,
28
],
[
27,
29
],
[
27,
30
],
[
6,
31
],
[
31,
32
],
[
86,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
37,
41
],
[
36,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
36,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
58,
60
],
[
53,
61
],
[
61,
62
],
[
62,
63
],
[
53,
64
],
[
65,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
49,
72
],
[
72,
73
],
[
72,
74
],
[
49,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
33,
81
],
[
81,
82
],
[
33,
83
],
[
83,
84
],
[
0,
85
],
[
85,
86
],
[
85,
87
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\ttry(Scanner input = new Scanner(System.in)){\n\t\t\tint number = Integer.parseInt(input.nextLine());\n\t\t\tString str = input.nextLine();\n\t\t\tsolution(number, str);\n\t\t}\n\t}\n\tpublic static void solution(int number, String str){\n\t\tif (str.length() <= number){\n\t\t\tSystem.out.println(str);\n\t\t}\n\t\telse{\n\t\t\tString ans = \"\";\n\t\t\tfor (int i =0; i <number;i++){\n\t\t\t\tans+=str.charAt(i);\n\t\t\t}\n\t\t\tans+=\"...\";\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t\t\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args){\n\t\ttry(Scanner input = new Scanner(System.in)){\n\t\t\tint number = Integer.parseInt(input.nextLine());\n\t\t\tString str = input.nextLine();\n\t\t\tsolution(number, str);\n\t\t}\n\t}\n\tpublic static void solution(int number, String str){\n\t\tif (str.length() <= number){\n\t\t\tSystem.out.println(str);\n\t\t}\n\t\telse{\n\t\t\tString ans = \"\";\n\t\t\tfor (int i =0; i <number;i++){\n\t\t\t\tans+=str.charAt(i);\n\t\t\t}\n\t\t\tans+=\"...\";\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t\t\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\ttry(Scanner input = new Scanner(System.in)){\n\t\t\tint number = Integer.parseInt(input.nextLine());\n\t\t\tString str = input.nextLine();\n\t\t\tsolution(number, str);\n\t\t}\n\t}",
"main",
"{\n\t\ttry(Scanner input = new Scanner(System.in)){\n\t\t\tint number = Integer.parseInt(input.nextLine());\n\t\t\tString str = input.nextLine();\n\t\t\tsolution(number, str);\n\t\t}\n\t}",
"try(Scanner input = new Scanner(System.in)){\n\t\t\tint number = Integer.parseInt(input.nextLine());\n\t\t\tString str = input.nextLine();\n\t\t\tsolution(number, str);\n\t\t}",
"{\n\t\t\tint number = Integer.parseInt(input.nextLine());\n\t\t\tString str = input.nextLine();\n\t\t\tsolution(number, str);\n\t\t}",
"Scanner input = new Scanner(System.in)",
"Scanner input = new Scanner(System.in)",
"new Scanner(System.in)",
"int number = Integer.parseInt(input.nextLine());",
"number",
"Integer.parseInt(input.nextLine())",
"Integer.parseInt",
"Integer",
"input.nextLine()",
"input.nextLine",
"input",
"String str = input.nextLine();",
"str",
"input.nextLine()",
"input.nextLine",
"input",
"solution(number, str)",
"solution",
"number",
"str",
"String[] args",
"args",
"public static void solution(int number, String str){\n\t\tif (str.length() <= number){\n\t\t\tSystem.out.println(str);\n\t\t}\n\t\telse{\n\t\t\tString ans = \"\";\n\t\t\tfor (int i =0; i <number;i++){\n\t\t\t\tans+=str.charAt(i);\n\t\t\t}\n\t\t\tans+=\"...\";\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t\t\n\t}",
"solution",
"{\n\t\tif (str.length() <= number){\n\t\t\tSystem.out.println(str);\n\t\t}\n\t\telse{\n\t\t\tString ans = \"\";\n\t\t\tfor (int i =0; i <number;i++){\n\t\t\t\tans+=str.charAt(i);\n\t\t\t}\n\t\t\tans+=\"...\";\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t\t\n\t}",
"if (str.length() <= number){\n\t\t\tSystem.out.println(str);\n\t\t}\n\t\telse{\n\t\t\tString ans = \"\";\n\t\t\tfor (int i =0; i <number;i++){\n\t\t\t\tans+=str.charAt(i);\n\t\t\t}\n\t\t\tans+=\"...\";\n\t\t\tSystem.out.println(ans);\n\t\t}",
"str.length() <= number",
"str.length()",
"str.length",
"str",
"number",
"{\n\t\t\tSystem.out.println(str);\n\t\t}",
"System.out.println(str)",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"{\n\t\t\tString ans = \"\";\n\t\t\tfor (int i =0; i <number;i++){\n\t\t\t\tans+=str.charAt(i);\n\t\t\t}\n\t\t\tans+=\"...\";\n\t\t\tSystem.out.println(ans);\n\t\t}",
"String ans = \"\";",
"ans",
"\"\"",
"for (int i =0; i <number;i++){\n\t\t\t\tans+=str.charAt(i);\n\t\t\t}",
"int i =0;",
"int i =0;",
"i",
"0",
"i <number",
"i",
"number",
"i++",
"i++",
"i",
"{\n\t\t\t\tans+=str.charAt(i);\n\t\t\t}",
"{\n\t\t\t\tans+=str.charAt(i);\n\t\t\t}",
"ans+=str.charAt(i)",
"ans",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"ans+=\"...\"",
"ans",
"\"...\"",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"int number",
"number",
"String str",
"str",
"public class Main {\n\tpublic static void main(String[] args){\n\t\ttry(Scanner input = new Scanner(System.in)){\n\t\t\tint number = Integer.parseInt(input.nextLine());\n\t\t\tString str = input.nextLine();\n\t\t\tsolution(number, str);\n\t\t}\n\t}\n\tpublic static void solution(int number, String str){\n\t\tif (str.length() <= number){\n\t\t\tSystem.out.println(str);\n\t\t}\n\t\telse{\n\t\t\tString ans = \"\";\n\t\t\tfor (int i =0; i <number;i++){\n\t\t\t\tans+=str.charAt(i);\n\t\t\t}\n\t\t\tans+=\"...\";\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t\t\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\ttry(Scanner input = new Scanner(System.in)){\n\t\t\tint number = Integer.parseInt(input.nextLine());\n\t\t\tString str = input.nextLine();\n\t\t\tsolution(number, str);\n\t\t}\n\t}\n\tpublic static void solution(int number, String str){\n\t\tif (str.length() <= number){\n\t\t\tSystem.out.println(str);\n\t\t}\n\t\telse{\n\t\t\tString ans = \"\";\n\t\t\tfor (int i =0; i <number;i++){\n\t\t\t\tans+=str.charAt(i);\n\t\t\t}\n\t\t\tans+=\"...\";\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t\t\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args){
try(Scanner input = new Scanner(System.in)){
int number = Integer.parseInt(input.nextLine());
String str = input.nextLine();
solution(number, str);
}
}
public static void solution(int number, String str){
if (str.length() <= number){
System.out.println(str);
}
else{
String ans = "";
for (int i =0; i <number;i++){
ans+=str.charAt(i);
}
ans+="...";
System.out.println(ans);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
12,
13,
30,
41,
13,
4,
18,
13,
14,
2,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
13,
29,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
71,
5
],
[
71,
6
],
[
6,
7
],
[
6,
8
],
[
71,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
71,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
71,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
21,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
27,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
33,
40
],
[
21,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
46,
48
],
[
41,
49
],
[
49,
50
],
[
50,
51
],
[
41,
52
],
[
53,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
59,
61
],
[
21,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
19,
68
],
[
68,
69
],
[
0,
70
],
[
70,
71
],
[
70,
72
]
] |
[
"\nimport java.util.Scanner;\n\npublic class Main {\n static Scanner sc = new Scanner(System.in);\n static int K = sc.nextInt();\n static String S = sc.next();\n\n public static void main(String[] args) {\n char str[] = S.toCharArray();\n if (str.length <= K){\n System.out.println(S);\n return;\n }\n for (int i = 0; i < K; i++){\n System.out.print(str[i]);\n }\n System.out.print(\"...\");\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n static Scanner sc = new Scanner(System.in);\n static int K = sc.nextInt();\n static String S = sc.next();\n\n public static void main(String[] args) {\n char str[] = S.toCharArray();\n if (str.length <= K){\n System.out.println(S);\n return;\n }\n for (int i = 0; i < K; i++){\n System.out.print(str[i]);\n }\n System.out.print(\"...\");\n }\n}",
"Main",
"static Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"static int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"static String S = sc.next();",
"S",
"sc.next()",
"sc.next",
"sc",
"public static void main(String[] args) {\n char str[] = S.toCharArray();\n if (str.length <= K){\n System.out.println(S);\n return;\n }\n for (int i = 0; i < K; i++){\n System.out.print(str[i]);\n }\n System.out.print(\"...\");\n }",
"main",
"{\n char str[] = S.toCharArray();\n if (str.length <= K){\n System.out.println(S);\n return;\n }\n for (int i = 0; i < K; i++){\n System.out.print(str[i]);\n }\n System.out.print(\"...\");\n }",
"char str[] = S.toCharArray();",
"str",
"S.toCharArray()",
"S.toCharArray",
"S",
"if (str.length <= K){\n System.out.println(S);\n return;\n }",
"str.length <= K",
"str.length",
"str",
"str.length",
"K",
"{\n System.out.println(S);\n return;\n }",
"System.out.println(S)",
"System.out.println",
"System.out",
"System",
"System.out",
"S",
"return;",
"for (int i = 0; i < K; i++){\n System.out.print(str[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < K",
"i",
"K",
"i++",
"i++",
"i",
"{\n System.out.print(str[i]);\n }",
"{\n System.out.print(str[i]);\n }",
"System.out.print(str[i])",
"System.out.print",
"System.out",
"System",
"System.out",
"str[i]",
"str",
"i",
"System.out.print(\"...\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"...\"",
"String[] args",
"args",
"public class Main {\n static Scanner sc = new Scanner(System.in);\n static int K = sc.nextInt();\n static String S = sc.next();\n\n public static void main(String[] args) {\n char str[] = S.toCharArray();\n if (str.length <= K){\n System.out.println(S);\n return;\n }\n for (int i = 0; i < K; i++){\n System.out.print(str[i]);\n }\n System.out.print(\"...\");\n }\n}",
"public class Main {\n static Scanner sc = new Scanner(System.in);\n static int K = sc.nextInt();\n static String S = sc.next();\n\n public static void main(String[] args) {\n char str[] = S.toCharArray();\n if (str.length <= K){\n System.out.println(S);\n return;\n }\n for (int i = 0; i < K; i++){\n System.out.print(str[i]);\n }\n System.out.print(\"...\");\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
static Scanner sc = new Scanner(System.in);
static int K = sc.nextInt();
static String S = sc.next();
public static void main(String[] args) {
char str[] = S.toCharArray();
if (str.length <= K){
System.out.println(S);
return;
}
for (int i = 0; i < K; i++){
System.out.print(str[i]);
}
System.out.print("...");
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
14,
2,
4,
18,
13,
13,
30,
0,
13,
2,
4,
18,
13,
17,
13,
17,
30,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
65,
8
],
[
65,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
15,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
25,
26
],
[
26,
27
],
[
19,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
19,
33
],
[
33,
34
],
[
33,
35
],
[
19,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
37,
41
],
[
36,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
46,
50
],
[
45,
51
],
[
36,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
19,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
9,
62
],
[
62,
63
],
[
0,
64
],
[
64,
65
],
[
64,
66
]
] |
[
"import java.io.*;\nimport java.util.*;\npublic class Main{\npublic static void main (String[]args) {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n int k = Integer.parseInt(br.readLine());\n String res = br.readLine();\nString newRes = \"\";\n if(res.length()>k) {\n newRes = res.substring(0, k) + \"...\";\n }\n else{\n newRes = res;\n }\nSystem.out.println(newRes);\n\n \n }catch (Exception e) {\n }\n }\n }",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main{\npublic static void main (String[]args) {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n int k = Integer.parseInt(br.readLine());\n String res = br.readLine();\nString newRes = \"\";\n if(res.length()>k) {\n newRes = res.substring(0, k) + \"...\";\n }\n else{\n newRes = res;\n }\nSystem.out.println(newRes);\n\n \n }catch (Exception e) {\n }\n }\n }",
"Main",
"public static void main (String[]args) {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n int k = Integer.parseInt(br.readLine());\n String res = br.readLine();\nString newRes = \"\";\n if(res.length()>k) {\n newRes = res.substring(0, k) + \"...\";\n }\n else{\n newRes = res;\n }\nSystem.out.println(newRes);\n\n \n }catch (Exception e) {\n }\n }",
"main",
"{\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n int k = Integer.parseInt(br.readLine());\n String res = br.readLine();\nString newRes = \"\";\n if(res.length()>k) {\n newRes = res.substring(0, k) + \"...\";\n }\n else{\n newRes = res;\n }\nSystem.out.println(newRes);\n\n \n }catch (Exception e) {\n }\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"try {\n int k = Integer.parseInt(br.readLine());\n String res = br.readLine();\nString newRes = \"\";\n if(res.length()>k) {\n newRes = res.substring(0, k) + \"...\";\n }\n else{\n newRes = res;\n }\nSystem.out.println(newRes);\n\n \n }catch (Exception e) {\n }",
"catch (Exception e) {\n }",
"Exception e",
"{\n }",
"{\n int k = Integer.parseInt(br.readLine());\n String res = br.readLine();\nString newRes = \"\";\n if(res.length()>k) {\n newRes = res.substring(0, k) + \"...\";\n }\n else{\n newRes = res;\n }\nSystem.out.println(newRes);\n\n \n }",
"int k = Integer.parseInt(br.readLine());",
"k",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"String res = br.readLine();",
"res",
"br.readLine()",
"br.readLine",
"br",
"String newRes = \"\";",
"newRes",
"\"\"",
"if(res.length()>k) {\n newRes = res.substring(0, k) + \"...\";\n }\n else{\n newRes = res;\n }",
"res.length()>k",
"res.length()",
"res.length",
"res",
"k",
"{\n newRes = res.substring(0, k) + \"...\";\n }",
"newRes = res.substring(0, k) + \"...\"",
"newRes",
"res.substring(0, k) + \"...\"",
"res.substring(0, k)",
"res.substring",
"res",
"0",
"k",
"\"...\"",
"{\n newRes = res;\n }",
"newRes = res",
"newRes",
"res",
"System.out.println(newRes)",
"System.out.println",
"System.out",
"System",
"System.out",
"newRes",
"String[]args",
"args",
"public class Main{\npublic static void main (String[]args) {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n int k = Integer.parseInt(br.readLine());\n String res = br.readLine();\nString newRes = \"\";\n if(res.length()>k) {\n newRes = res.substring(0, k) + \"...\";\n }\n else{\n newRes = res;\n }\nSystem.out.println(newRes);\n\n \n }catch (Exception e) {\n }\n }\n }",
"public class Main{\npublic static void main (String[]args) {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n int k = Integer.parseInt(br.readLine());\n String res = br.readLine();\nString newRes = \"\";\n if(res.length()>k) {\n newRes = res.substring(0, k) + \"...\";\n }\n else{\n newRes = res;\n }\nSystem.out.println(newRes);\n\n \n }catch (Exception e) {\n }\n }\n }",
"Main"
] |
import java.io.*;
import java.util.*;
public class Main{
public static void main (String[]args) {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
try {
int k = Integer.parseInt(br.readLine());
String res = br.readLine();
String newRes = "";
if(res.length()>k) {
newRes = res.substring(0, k) + "...";
}
else{
newRes = res;
}
System.out.println(newRes);
}catch (Exception e) {
}
}
}
|
[
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,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
14,
2,
4,
18,
13,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
76,
5
],
[
76,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
26,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
25,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
39,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
45,
53
],
[
53,
54
],
[
54,
55
],
[
45,
56
],
[
57,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
44,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
6,
73
],
[
73,
74
],
[
0,
75
],
[
75,
76
],
[
75,
77
]
] |
[
"import java.util.*;\npublic class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int K=scan.nextInt();\n String N=scan.next();\n String append=\"...\";\n if(N.length()<=K){\n System.out.println(N);\n }\n else if(N.length()>K){\n for(int i=0; i<K;i++){\n System.out.print(N.charAt(i));\n }\n System.out.print(append);\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int K=scan.nextInt();\n String N=scan.next();\n String append=\"...\";\n if(N.length()<=K){\n System.out.println(N);\n }\n else if(N.length()>K){\n for(int i=0; i<K;i++){\n System.out.print(N.charAt(i));\n }\n System.out.print(append);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int K=scan.nextInt();\n String N=scan.next();\n String append=\"...\";\n if(N.length()<=K){\n System.out.println(N);\n }\n else if(N.length()>K){\n for(int i=0; i<K;i++){\n System.out.print(N.charAt(i));\n }\n System.out.print(append);\n }\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n int K=scan.nextInt();\n String N=scan.next();\n String append=\"...\";\n if(N.length()<=K){\n System.out.println(N);\n }\n else if(N.length()>K){\n for(int i=0; i<K;i++){\n System.out.print(N.charAt(i));\n }\n System.out.print(append);\n }\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int K=scan.nextInt();",
"K",
"scan.nextInt()",
"scan.nextInt",
"scan",
"String N=scan.next();",
"N",
"scan.next()",
"scan.next",
"scan",
"String append=\"...\";",
"append",
"\"...\"",
"if(N.length()<=K){\n System.out.println(N);\n }\n else if(N.length()>K){\n for(int i=0; i<K;i++){\n System.out.print(N.charAt(i));\n }\n System.out.print(append);\n }",
"N.length()<=K",
"N.length()",
"N.length",
"N",
"K",
"{\n System.out.println(N);\n }",
"System.out.println(N)",
"System.out.println",
"System.out",
"System",
"System.out",
"N",
"if(N.length()>K){\n for(int i=0; i<K;i++){\n System.out.print(N.charAt(i));\n }\n System.out.print(append);\n }",
"N.length()>K",
"N.length()",
"N.length",
"N",
"K",
"{\n for(int i=0; i<K;i++){\n System.out.print(N.charAt(i));\n }\n System.out.print(append);\n }",
"for(int i=0; i<K;i++){\n System.out.print(N.charAt(i));\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<K",
"i",
"K",
"i++",
"i++",
"i",
"{\n System.out.print(N.charAt(i));\n }",
"{\n System.out.print(N.charAt(i));\n }",
"System.out.print(N.charAt(i))",
"System.out.print",
"System.out",
"System",
"System.out",
"N.charAt(i)",
"N.charAt",
"N",
"i",
"System.out.print(append)",
"System.out.print",
"System.out",
"System",
"System.out",
"append",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int K=scan.nextInt();\n String N=scan.next();\n String append=\"...\";\n if(N.length()<=K){\n System.out.println(N);\n }\n else if(N.length()>K){\n for(int i=0; i<K;i++){\n System.out.print(N.charAt(i));\n }\n System.out.print(append);\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int K=scan.nextInt();\n String N=scan.next();\n String append=\"...\";\n if(N.length()<=K){\n System.out.println(N);\n }\n else if(N.length()>K){\n for(int i=0; i<K;i++){\n System.out.print(N.charAt(i));\n }\n System.out.print(append);\n }\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int K=scan.nextInt();
String N=scan.next();
String append="...";
if(N.length()<=K){
System.out.println(N);
}
else if(N.length()>K){
for(int i=0; i<K;i++){
System.out.print(N.charAt(i));
}
System.out.print(append);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
30,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
54,
5
],
[
54,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
23,
27
],
[
22,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
35,
39
],
[
34,
40
],
[
22,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
8,
48
],
[
48,
49
],
[
49,
50
],
[
6,
51
],
[
51,
52
],
[
0,
53
],
[
53,
54
],
[
53,
55
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint K = stdIn.nextInt();\n\t\tString S = stdIn.next();\n\t\tif(S.length() > K){\n\t\t\tSystem.out.println(S.substring(0, K) + \"...\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(S);\n\t\t}\n\t\tstdIn.close();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint K = stdIn.nextInt();\n\t\tString S = stdIn.next();\n\t\tif(S.length() > K){\n\t\t\tSystem.out.println(S.substring(0, K) + \"...\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(S);\n\t\t}\n\t\tstdIn.close();\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint K = stdIn.nextInt();\n\t\tString S = stdIn.next();\n\t\tif(S.length() > K){\n\t\t\tSystem.out.println(S.substring(0, K) + \"...\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(S);\n\t\t}\n\t\tstdIn.close();\n\t}",
"main",
"{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint K = stdIn.nextInt();\n\t\tString S = stdIn.next();\n\t\tif(S.length() > K){\n\t\t\tSystem.out.println(S.substring(0, K) + \"...\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(S);\n\t\t}\n\t\tstdIn.close();\n\t}",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"int K = stdIn.nextInt();",
"K",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"String S = stdIn.next();",
"S",
"stdIn.next()",
"stdIn.next",
"stdIn",
"if(S.length() > K){\n\t\t\tSystem.out.println(S.substring(0, K) + \"...\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(S);\n\t\t}",
"S.length() > K",
"S.length()",
"S.length",
"S",
"K",
"{\n\t\t\tSystem.out.println(S.substring(0, K) + \"...\");\n\t\t}",
"System.out.println(S.substring(0, K) + \"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"S.substring(0, K) + \"...\"",
"S.substring(0, K)",
"S.substring",
"S",
"0",
"K",
"\"...\"",
"{\n\t\t\tSystem.out.println(S);\n\t\t}",
"System.out.println(S)",
"System.out.println",
"System.out",
"System",
"System.out",
"S",
"stdIn.close()",
"stdIn.close",
"stdIn",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint K = stdIn.nextInt();\n\t\tString S = stdIn.next();\n\t\tif(S.length() > K){\n\t\t\tSystem.out.println(S.substring(0, K) + \"...\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(S);\n\t\t}\n\t\tstdIn.close();\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint K = stdIn.nextInt();\n\t\tString S = stdIn.next();\n\t\tif(S.length() > K){\n\t\t\tSystem.out.println(S.substring(0, K) + \"...\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(S);\n\t\t}\n\t\tstdIn.close();\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner stdIn = new Scanner(System.in);
int K = stdIn.nextInt();
String S = stdIn.next();
if(S.length() > K){
System.out.println(S.substring(0, K) + "...");
}
else{
System.out.println(S);
}
stdIn.close();
}
}
|
[
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,
14,
2,
13,
4,
18,
13,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
4,
18,
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
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
25,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
45,
49
],
[
44,
50
],
[
8,
51
],
[
51,
52
],
[
52,
53
],
[
6,
54
],
[
54,
55
],
[
0,
56
],
[
56,
57
],
[
56,
58
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String args[]){\n Scanner scanner = new Scanner(System.in);\n int n = Integer.parseInt(scanner.nextLine());\n String S = scanner.nextLine();\n\n if(n >= S.length()){\n System.out.println(S);\n } else {\n System.out.println(S.substring(0, n)+\"...\");\n }\n\n scanner.close();\n }\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String args[]){\n Scanner scanner = new Scanner(System.in);\n int n = Integer.parseInt(scanner.nextLine());\n String S = scanner.nextLine();\n\n if(n >= S.length()){\n System.out.println(S);\n } else {\n System.out.println(S.substring(0, n)+\"...\");\n }\n\n scanner.close();\n }\n\n}",
"Main",
"public static void main(String args[]){\n Scanner scanner = new Scanner(System.in);\n int n = Integer.parseInt(scanner.nextLine());\n String S = scanner.nextLine();\n\n if(n >= S.length()){\n System.out.println(S);\n } else {\n System.out.println(S.substring(0, n)+\"...\");\n }\n\n scanner.close();\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n int n = Integer.parseInt(scanner.nextLine());\n String S = scanner.nextLine();\n\n if(n >= S.length()){\n System.out.println(S);\n } else {\n System.out.println(S.substring(0, n)+\"...\");\n }\n\n scanner.close();\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int n = Integer.parseInt(scanner.nextLine());",
"n",
"Integer.parseInt(scanner.nextLine())",
"Integer.parseInt",
"Integer",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"String S = scanner.nextLine();",
"S",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"if(n >= S.length()){\n System.out.println(S);\n } else {\n System.out.println(S.substring(0, n)+\"...\");\n }",
"n >= S.length()",
"n",
"S.length()",
"S.length",
"S",
"{\n System.out.println(S);\n }",
"System.out.println(S)",
"System.out.println",
"System.out",
"System",
"System.out",
"S",
"{\n System.out.println(S.substring(0, n)+\"...\");\n }",
"System.out.println(S.substring(0, n)+\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"S.substring(0, n)+\"...\"",
"S.substring(0, n)",
"S.substring",
"S",
"0",
"n",
"\"...\"",
"scanner.close()",
"scanner.close",
"scanner",
"String args[]",
"args",
"public class Main {\n\n public static void main(String args[]){\n Scanner scanner = new Scanner(System.in);\n int n = Integer.parseInt(scanner.nextLine());\n String S = scanner.nextLine();\n\n if(n >= S.length()){\n System.out.println(S);\n } else {\n System.out.println(S.substring(0, n)+\"...\");\n }\n\n scanner.close();\n }\n\n}",
"public class Main {\n\n public static void main(String args[]){\n Scanner scanner = new Scanner(System.in);\n int n = Integer.parseInt(scanner.nextLine());\n String S = scanner.nextLine();\n\n if(n >= S.length()){\n System.out.println(S);\n } else {\n System.out.println(S.substring(0, n)+\"...\");\n }\n\n scanner.close();\n }\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String args[]){
Scanner scanner = new Scanner(System.in);
int n = Integer.parseInt(scanner.nextLine());
String S = scanner.nextLine();
if(n >= S.length()){
System.out.println(S);
} else {
System.out.println(S.substring(0, n)+"...");
}
scanner.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
13,
0,
13,
13,
0,
13,
2,
4,
18,
13,
17,
13,
17,
4,
18,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
65,
14
],
[
65,
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
],
[
26,
29
],
[
29,
30
],
[
30,
31
],
[
17,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
17,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
17,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
46,
47
],
[
46,
48
],
[
42,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
52,
56
],
[
51,
57
],
[
17,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
15,
62
],
[
62,
63
],
[
0,
64
],
[
64,
65
],
[
64,
66
]
] |
[
"import java.io.*;\nimport java.util.*;\nimport static java.lang.System.*;\nimport static java.lang.Math.*;\n\npublic class Main\n{\t\n\tpublic static void main(String []args)throws IOException\n\t{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString ans=\"\";\n\t\t//int c=0;\n\t\t\n\t\t\n\t\tint K = Integer.parseInt(br.readLine());\n\t\tString s=br.readLine();\n\t\t\n\t\tint len=s.length();\n\t\n\t\tif(len<=K)\n\t\t\tans=s;\n\t\t\n\t\telse\n\t\t\tans=s.substring(0,K)+\"...\";\n\t\t\n\t\tout.println(ans);\n\t\t\n\t}\n\t\n\t\n}\n\n",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import static java.lang.System.*;",
"import static java.lang.System.*;",
"import static java.lang.System.*;",
"import static java.lang.Math.*;",
"import static java.lang.Math.*;",
"import static java.lang.Math.*;",
"public class Main\n{\t\n\tpublic static void main(String []args)throws IOException\n\t{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString ans=\"\";\n\t\t//int c=0;\n\t\t\n\t\t\n\t\tint K = Integer.parseInt(br.readLine());\n\t\tString s=br.readLine();\n\t\t\n\t\tint len=s.length();\n\t\n\t\tif(len<=K)\n\t\t\tans=s;\n\t\t\n\t\telse\n\t\t\tans=s.substring(0,K)+\"...\";\n\t\t\n\t\tout.println(ans);\n\t\t\n\t}\n\t\n\t\n}",
"Main",
"public static void main(String []args)throws IOException\n\t{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString ans=\"\";\n\t\t//int c=0;\n\t\t\n\t\t\n\t\tint K = Integer.parseInt(br.readLine());\n\t\tString s=br.readLine();\n\t\t\n\t\tint len=s.length();\n\t\n\t\tif(len<=K)\n\t\t\tans=s;\n\t\t\n\t\telse\n\t\t\tans=s.substring(0,K)+\"...\";\n\t\t\n\t\tout.println(ans);\n\t\t\n\t}",
"main",
"{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString ans=\"\";\n\t\t//int c=0;\n\t\t\n\t\t\n\t\tint K = Integer.parseInt(br.readLine());\n\t\tString s=br.readLine();\n\t\t\n\t\tint len=s.length();\n\t\n\t\tif(len<=K)\n\t\t\tans=s;\n\t\t\n\t\telse\n\t\t\tans=s.substring(0,K)+\"...\";\n\t\t\n\t\tout.println(ans);\n\t\t\n\t}",
"BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String ans=\"\";",
"ans",
"\"\"",
"int K = Integer.parseInt(br.readLine());",
"K",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"String s=br.readLine();",
"s",
"br.readLine()",
"br.readLine",
"br",
"int len=s.length();",
"len",
"s.length()",
"s.length",
"s",
"if(len<=K)\n\t\t\tans=s;\n\t\t\n\t\telse\n\t\t\tans=s.substring(0,K)+\"...\";",
"len<=K",
"len",
"K",
"ans=s",
"ans",
"s",
"ans=s.substring(0,K)+\"...\"",
"ans",
"s.substring(0,K)+\"...\"",
"s.substring(0,K)",
"s.substring",
"s",
"0",
"K",
"\"...\"",
"out.println(ans)",
"out.println",
"out",
"ans",
"String []args",
"args",
"public class Main\n{\t\n\tpublic static void main(String []args)throws IOException\n\t{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString ans=\"\";\n\t\t//int c=0;\n\t\t\n\t\t\n\t\tint K = Integer.parseInt(br.readLine());\n\t\tString s=br.readLine();\n\t\t\n\t\tint len=s.length();\n\t\n\t\tif(len<=K)\n\t\t\tans=s;\n\t\t\n\t\telse\n\t\t\tans=s.substring(0,K)+\"...\";\n\t\t\n\t\tout.println(ans);\n\t\t\n\t}\n\t\n\t\n}",
"public class Main\n{\t\n\tpublic static void main(String []args)throws IOException\n\t{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString ans=\"\";\n\t\t//int c=0;\n\t\t\n\t\t\n\t\tint K = Integer.parseInt(br.readLine());\n\t\tString s=br.readLine();\n\t\t\n\t\tint len=s.length();\n\t\n\t\tif(len<=K)\n\t\t\tans=s;\n\t\t\n\t\telse\n\t\t\tans=s.substring(0,K)+\"...\";\n\t\t\n\t\tout.println(ans);\n\t\t\n\t}\n\t\n\t\n}",
"Main"
] |
import java.io.*;
import java.util.*;
import static java.lang.System.*;
import static java.lang.Math.*;
public class Main
{
public static void main(String []args)throws IOException
{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String ans="";
//int c=0;
int K = Integer.parseInt(br.readLine());
String s=br.readLine();
int len=s.length();
if(len<=K)
ans=s;
else
ans=s.substring(0,K)+"...";
out.println(ans);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
4,
18,
13,
17,
13,
4,
18,
18,
13,
13,
2,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
54,
5
],
[
54,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
23,
27
],
[
22,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
22,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
38,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
48,
49
],
[
48,
50
],
[
6,
51
],
[
51,
52
],
[
0,
53
],
[
53,
54
],
[
53,
55
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t Scanner scan = new Scanner(System.in);\n\t int k = scan.nextInt();\n\t String s = scan.next();\n\t if(s.length()<=k) {\n\t \t System.out.println(s);\n\t }else {\n\t \t String a = s.substring(0,k);\n\t \t System.out.println(a+\"...\");\n\t }\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t Scanner scan = new Scanner(System.in);\n\t int k = scan.nextInt();\n\t String s = scan.next();\n\t if(s.length()<=k) {\n\t \t System.out.println(s);\n\t }else {\n\t \t String a = s.substring(0,k);\n\t \t System.out.println(a+\"...\");\n\t }\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t Scanner scan = new Scanner(System.in);\n\t int k = scan.nextInt();\n\t String s = scan.next();\n\t if(s.length()<=k) {\n\t \t System.out.println(s);\n\t }else {\n\t \t String a = s.substring(0,k);\n\t \t System.out.println(a+\"...\");\n\t }\n\t}",
"main",
"{\n\t Scanner scan = new Scanner(System.in);\n\t int k = scan.nextInt();\n\t String s = scan.next();\n\t if(s.length()<=k) {\n\t \t System.out.println(s);\n\t }else {\n\t \t String a = s.substring(0,k);\n\t \t System.out.println(a+\"...\");\n\t }\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int k = scan.nextInt();",
"k",
"scan.nextInt()",
"scan.nextInt",
"scan",
"String s = scan.next();",
"s",
"scan.next()",
"scan.next",
"scan",
"if(s.length()<=k) {\n\t \t System.out.println(s);\n\t }else {\n\t \t String a = s.substring(0,k);\n\t \t System.out.println(a+\"...\");\n\t }",
"s.length()<=k",
"s.length()",
"s.length",
"s",
"k",
"{\n\t \t System.out.println(s);\n\t }",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"{\n\t \t String a = s.substring(0,k);\n\t \t System.out.println(a+\"...\");\n\t }",
"String a = s.substring(0,k);",
"a",
"s.substring(0,k)",
"s.substring",
"s",
"0",
"k",
"System.out.println(a+\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"a+\"...\"",
"a",
"\"...\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t Scanner scan = new Scanner(System.in);\n\t int k = scan.nextInt();\n\t String s = scan.next();\n\t if(s.length()<=k) {\n\t \t System.out.println(s);\n\t }else {\n\t \t String a = s.substring(0,k);\n\t \t System.out.println(a+\"...\");\n\t }\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t Scanner scan = new Scanner(System.in);\n\t int k = scan.nextInt();\n\t String s = scan.next();\n\t if(s.length()<=k) {\n\t \t System.out.println(s);\n\t }else {\n\t \t String a = s.substring(0,k);\n\t \t System.out.println(a+\"...\");\n\t }\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int k = scan.nextInt();
String s = scan.next();
if(s.length()<=k) {
System.out.println(s);
}else {
String a = s.substring(0,k);
System.out.println(a+"...");
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
30,
41,
13,
20,
4,
18,
13,
13,
4,
18,
13,
13,
4,
18,
13,
17,
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
],
[
62,
8
],
[
62,
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
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
26,
30
],
[
25,
31
],
[
25,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
32,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
32,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
11,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
9,
59
],
[
59,
60
],
[
0,
61
],
[
61,
62
],
[
61,
63
]
] |
[
"import java.util.Scanner;\nimport java.util.ServiceConfigurationError;\n\npublic class Main {\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n String s = sc.next();\n\n if(s.length() <= k){\n\n }else {\n StringBuilder sb = new StringBuilder();\n sb.append(s);\n\n sb.setLength(k);\n sb.append(\"...\");\n s = sb.toString();\n }\n\n System.out.println(s);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.ServiceConfigurationError;",
"ServiceConfigurationError",
"java.util",
"public class Main {\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n String s = sc.next();\n\n if(s.length() <= k){\n\n }else {\n StringBuilder sb = new StringBuilder();\n sb.append(s);\n\n sb.setLength(k);\n sb.append(\"...\");\n s = sb.toString();\n }\n\n System.out.println(s);\n }\n}",
"Main",
"public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n String s = sc.next();\n\n if(s.length() <= k){\n\n }else {\n StringBuilder sb = new StringBuilder();\n sb.append(s);\n\n sb.setLength(k);\n sb.append(\"...\");\n s = sb.toString();\n }\n\n System.out.println(s);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n String s = sc.next();\n\n if(s.length() <= k){\n\n }else {\n StringBuilder sb = new StringBuilder();\n sb.append(s);\n\n sb.setLength(k);\n sb.append(\"...\");\n s = sb.toString();\n }\n\n System.out.println(s);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"if(s.length() <= k){\n\n }else {\n StringBuilder sb = new StringBuilder();\n sb.append(s);\n\n sb.setLength(k);\n sb.append(\"...\");\n s = sb.toString();\n }",
"s.length() <= k",
"s.length()",
"s.length",
"s",
"k",
"{\n\n }",
"{\n StringBuilder sb = new StringBuilder();\n sb.append(s);\n\n sb.setLength(k);\n sb.append(\"...\");\n s = sb.toString();\n }",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"sb.append(s)",
"sb.append",
"sb",
"s",
"sb.setLength(k)",
"sb.setLength",
"sb",
"k",
"sb.append(\"...\")",
"sb.append",
"sb",
"\"...\"",
"s = sb.toString()",
"s",
"sb.toString()",
"sb.toString",
"sb",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"String args[]",
"args",
"public class Main {\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n String s = sc.next();\n\n if(s.length() <= k){\n\n }else {\n StringBuilder sb = new StringBuilder();\n sb.append(s);\n\n sb.setLength(k);\n sb.append(\"...\");\n s = sb.toString();\n }\n\n System.out.println(s);\n }\n}",
"public class Main {\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n String s = sc.next();\n\n if(s.length() <= k){\n\n }else {\n StringBuilder sb = new StringBuilder();\n sb.append(s);\n\n sb.setLength(k);\n sb.append(\"...\");\n s = sb.toString();\n }\n\n System.out.println(s);\n }\n}",
"Main"
] |
import java.util.Scanner;
import java.util.ServiceConfigurationError;
public class Main {
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int k = sc.nextInt();
String s = sc.next();
if(s.length() <= k){
}else {
StringBuilder sb = new StringBuilder();
sb.append(s);
sb.setLength(k);
sb.append("...");
s = sb.toString();
}
System.out.println(s);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
0,
13,
4,
18,
13,
17,
13,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
67,
17
],
[
67,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
20,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
20,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
35,
39
],
[
34,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
34,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
50,
54
],
[
47,
55
],
[
55,
56
],
[
55,
57
],
[
47,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
18,
64
],
[
64,
65
],
[
0,
66
],
[
66,
67
],
[
66,
68
]
] |
[
"import java.util.*;\nimport java.util.ArrayDeque;\nimport java.util.Queue;\nimport java.math.RoundingMode;\nimport java.math.BigDecimal;\n \n \n \npublic class Main{\n\t public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint k = sc.nextInt();\n\t\tString s = sc.next();\n\t\tif(s.length()<=k) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t\telse {\n\t\t\ts=s.substring(0, k);\n\t\t\ts+=\"...\";\n\t\t\tSystem.out.println(s);\n\t\t}\n\t }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.util.ArrayDeque;",
"ArrayDeque",
"java.util",
"import java.util.Queue;",
"Queue",
"java.util",
"import java.math.RoundingMode;",
"RoundingMode",
"java.math",
"import java.math.BigDecimal;",
"BigDecimal",
"java.math",
"public class Main{\n\t public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint k = sc.nextInt();\n\t\tString s = sc.next();\n\t\tif(s.length()<=k) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t\telse {\n\t\t\ts=s.substring(0, k);\n\t\t\ts+=\"...\";\n\t\t\tSystem.out.println(s);\n\t\t}\n\t }\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint k = sc.nextInt();\n\t\tString s = sc.next();\n\t\tif(s.length()<=k) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t\telse {\n\t\t\ts=s.substring(0, k);\n\t\t\ts+=\"...\";\n\t\t\tSystem.out.println(s);\n\t\t}\n\t }",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint k = sc.nextInt();\n\t\tString s = sc.next();\n\t\tif(s.length()<=k) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t\telse {\n\t\t\ts=s.substring(0, k);\n\t\t\ts+=\"...\";\n\t\t\tSystem.out.println(s);\n\t\t}\n\t }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"if(s.length()<=k) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t\telse {\n\t\t\ts=s.substring(0, k);\n\t\t\ts+=\"...\";\n\t\t\tSystem.out.println(s);\n\t\t}",
"s.length()<=k",
"s.length()",
"s.length",
"s",
"k",
"{\n\t\t\tSystem.out.println(s);\n\t\t}",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"{\n\t\t\ts=s.substring(0, k);\n\t\t\ts+=\"...\";\n\t\t\tSystem.out.println(s);\n\t\t}",
"s=s.substring(0, k)",
"s",
"s.substring(0, k)",
"s.substring",
"s",
"0",
"k",
"s+=\"...\"",
"s",
"\"...\"",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"String[] args",
"args",
"public class Main{\n\t public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint k = sc.nextInt();\n\t\tString s = sc.next();\n\t\tif(s.length()<=k) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t\telse {\n\t\t\ts=s.substring(0, k);\n\t\t\ts+=\"...\";\n\t\t\tSystem.out.println(s);\n\t\t}\n\t }\n}",
"public class Main{\n\t public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint k = sc.nextInt();\n\t\tString s = sc.next();\n\t\tif(s.length()<=k) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t\telse {\n\t\t\ts=s.substring(0, k);\n\t\t\ts+=\"...\";\n\t\t\tSystem.out.println(s);\n\t\t}\n\t }\n}",
"Main"
] |
import java.util.*;
import java.util.ArrayDeque;
import java.util.Queue;
import java.math.RoundingMode;
import java.math.BigDecimal;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int k = sc.nextInt();
String s = sc.next();
if(s.length()<=k) {
System.out.println(s);
}
else {
s=s.substring(0, k);
s+="...";
System.out.println(s);
}
}
}
|
[
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,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
4,
18,
13,
8,
2,
4,
18,
13,
13,
13,
2,
4,
18,
13,
17,
13,
17,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
17,
41,
13,
17,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
4,
13,
20,
23,
13,
12,
13,
30,
38,
5,
13,
30,
37,
20,
30,
4,
18,
13,
13,
0,
13,
17,
29,
36,
23,
13,
12,
13,
30,
38,
5,
13,
30,
37,
20,
30,
4,
18,
13,
13,
17,
4,
18,
13,
0,
13,
17,
29,
36,
23,
13,
12,
13,
30,
14,
40,
13,
30,
4,
13,
17,
29,
4,
13,
13,
23,
13,
12,
13,
30,
4,
13,
4,
18,
13,
0,
13,
17,
14,
13,
30,
38,
5,
13,
30,
37,
20,
30,
4,
18,
13,
29,
36,
12,
13,
30,
38,
5,
13,
30,
37,
20,
30,
4,
18,
13,
13,
6,
13,
41,
13,
17,
41,
13,
17,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
14,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
38,
5,
13,
30,
37,
20,
30,
4,
18,
18,
36,
13,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
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
],
[
317,
44
],
[
317,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
50,
52
],
[
47,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
55,
57
],
[
47,
58
],
[
58,
59
],
[
58,
60
],
[
47,
61
],
[
61,
62
],
[
61,
63
],
[
47,
64
],
[
64,
65
],
[
64,
66
],
[
47,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
67,
71
],
[
67,
72
],
[
47,
73
],
[
73,
74
],
[
74,
75
],
[
45,
76
],
[
76,
77
],
[
317,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
82,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
82,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
99,
103
],
[
98,
104
],
[
98,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
106,
109
],
[
106,
110
],
[
105,
111
],
[
80,
112
],
[
112,
113
],
[
80,
114
],
[
114,
115
],
[
80,
116
],
[
116,
117
],
[
317,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
118,
122
],
[
122,
123
],
[
122,
124
],
[
118,
125
],
[
125,
126
],
[
125,
127
],
[
118,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
131,
135
],
[
128,
136
],
[
136,
137
],
[
118,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
138,
144
],
[
144,
145
],
[
118,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
152,
153
],
[
153,
154
],
[
149,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
156,
159
],
[
155,
160
],
[
160,
161
],
[
160,
162
],
[
148,
163
],
[
163,
164
],
[
146,
165
],
[
165,
166
],
[
118,
167
],
[
167,
168
],
[
167,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
173,
174
],
[
174,
175
],
[
170,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
177,
180
],
[
177,
181
],
[
177,
182
],
[
182,
183
],
[
183,
184
],
[
176,
185
],
[
185,
186
],
[
185,
187
],
[
169,
188
],
[
188,
189
],
[
167,
190
],
[
190,
191
],
[
118,
192
],
[
192,
193
],
[
192,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
195,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
194,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
192,
206
],
[
206,
207
],
[
118,
208
],
[
208,
209
],
[
208,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
213,
214
],
[
214,
215
],
[
210,
216
],
[
216,
217
],
[
216,
218
],
[
210,
219
],
[
219,
220
],
[
219,
221
],
[
221,
222
],
[
222,
223
],
[
223,
224
],
[
223,
225
],
[
225,
226
],
[
226,
227
],
[
222,
228
],
[
228,
229
],
[
229,
230
],
[
230,
231
],
[
210,
232
],
[
232,
233
],
[
118,
234
],
[
234,
235
],
[
234,
236
],
[
236,
237
],
[
237,
238
],
[
238,
239
],
[
238,
240
],
[
240,
241
],
[
241,
242
],
[
237,
243
],
[
243,
244
],
[
244,
245
],
[
245,
246
],
[
118,
247
],
[
317,
248
],
[
248,
249
],
[
248,
250
],
[
250,
251
],
[
250,
252
],
[
248,
253
],
[
253,
254
],
[
253,
255
],
[
248,
256
],
[
256,
257
],
[
256,
258
],
[
258,
259
],
[
259,
260
],
[
259,
261
],
[
256,
262
],
[
262,
263
],
[
248,
264
],
[
264,
265
],
[
264,
266
],
[
266,
267
],
[
267,
268
],
[
268,
269
],
[
269,
270
],
[
269,
271
],
[
268,
272
],
[
272,
273
],
[
273,
274
],
[
274,
275
],
[
267,
276
],
[
276,
277
],
[
277,
278
],
[
278,
279
],
[
278,
280
],
[
280,
281
],
[
281,
282
],
[
277,
283
],
[
283,
284
],
[
284,
285
],
[
284,
286
],
[
266,
287
],
[
287,
288
],
[
288,
289
],
[
289,
290
],
[
248,
291
],
[
291,
292
],
[
291,
293
],
[
293,
294
],
[
294,
295
],
[
295,
296
],
[
296,
297
],
[
295,
298
],
[
298,
299
],
[
248,
300
],
[
300,
301
],
[
300,
302
],
[
302,
303
],
[
303,
304
],
[
304,
305
],
[
304,
306
],
[
306,
307
],
[
307,
308
],
[
303,
309
],
[
309,
310
],
[
310,
311
],
[
311,
312
],
[
312,
313
],
[
312,
314
],
[
248,
315
],
[
0,
316
],
[
316,
317
],
[
316,
318
]
] |
[
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.BufferedOutputStream;\nimport java.io.UncheckedIOException;\nimport java.nio.charset.Charset;\nimport java.util.StringTokenizer;\nimport java.io.Writer;\nimport java.io.OutputStreamWriter;\nimport java.io.BufferedReader;\nimport java.io.InputStream;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n *\n * @author mikit\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n LightScanner in = new LightScanner(inputStream);\n LightWriter out = new LightWriter(outputStream);\n BTripleDots solver = new BTripleDots();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BTripleDots {\n public void solve(int testNumber, LightScanner in, LightWriter out) {\n int k = in.ints();\n String s = in.string();\n out.ans(s.length() <= k ? s : (s.substring(0, k) + \"...\")).ln();\n }\n\n }\n\n static class LightWriter implements AutoCloseable {\n private final Writer out;\n private boolean autoflush = false;\n private boolean breaked = true;\n\n public LightWriter(Writer out) {\n this.out = out;\n }\n\n public LightWriter(OutputStream out) {\n this(new OutputStreamWriter(new BufferedOutputStream(out), Charset.defaultCharset()));\n }\n\n public LightWriter print(char c) {\n try {\n out.write(c);\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }\n\n public LightWriter print(String s) {\n try {\n out.write(s, 0, s.length());\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }\n\n public LightWriter ans(String s) {\n if (!breaked) {\n print(' ');\n }\n return print(s);\n }\n\n public LightWriter ln() {\n print(System.lineSeparator());\n breaked = true;\n if (autoflush) {\n try {\n out.flush();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n return this;\n }\n\n public void close() {\n try {\n out.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n\n }\n\n static class LightScanner implements AutoCloseable {\n private BufferedReader reader = null;\n private StringTokenizer tokenizer = null;\n\n public LightScanner(InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n }\n\n public String string() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int ints() {\n return Integer.parseInt(string());\n }\n\n public void close() {\n try {\n this.reader.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n\n }\n}\n",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.BufferedOutputStream;",
"BufferedOutputStream",
"java.io",
"import java.io.UncheckedIOException;",
"UncheckedIOException",
"java.io",
"import java.nio.charset.Charset;",
"Charset",
"java.nio.charset",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"import java.io.Writer;",
"Writer",
"java.io",
"import java.io.OutputStreamWriter;",
"OutputStreamWriter",
"java.io",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n LightScanner in = new LightScanner(inputStream);\n LightWriter out = new LightWriter(outputStream);\n BTripleDots solver = new BTripleDots();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BTripleDots {\n public void solve(int testNumber, LightScanner in, LightWriter out) {\n int k = in.ints();\n String s = in.string();\n out.ans(s.length() <= k ? s : (s.substring(0, k) + \"...\")).ln();\n }\n\n }\n\n static class LightWriter implements AutoCloseable {\n private final Writer out;\n private boolean autoflush = false;\n private boolean breaked = true;\n\n public LightWriter(Writer out) {\n this.out = out;\n }\n\n public LightWriter(OutputStream out) {\n this(new OutputStreamWriter(new BufferedOutputStream(out), Charset.defaultCharset()));\n }\n\n public LightWriter print(char c) {\n try {\n out.write(c);\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }\n\n public LightWriter print(String s) {\n try {\n out.write(s, 0, s.length());\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }\n\n public LightWriter ans(String s) {\n if (!breaked) {\n print(' ');\n }\n return print(s);\n }\n\n public LightWriter ln() {\n print(System.lineSeparator());\n breaked = true;\n if (autoflush) {\n try {\n out.flush();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n return this;\n }\n\n public void close() {\n try {\n out.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n\n }\n\n static class LightScanner implements AutoCloseable {\n private BufferedReader reader = null;\n private StringTokenizer tokenizer = null;\n\n public LightScanner(InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n }\n\n public String string() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int ints() {\n return Integer.parseInt(string());\n }\n\n public void close() {\n try {\n this.reader.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n LightScanner in = new LightScanner(inputStream);\n LightWriter out = new LightWriter(outputStream);\n BTripleDots solver = new BTripleDots();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n LightScanner in = new LightScanner(inputStream);\n LightWriter out = new LightWriter(outputStream);\n BTripleDots solver = new BTripleDots();\n solver.solve(1, in, out);\n out.close();\n }",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"LightScanner in = new LightScanner(inputStream);",
"in",
"new LightScanner(inputStream)",
"LightWriter out = new LightWriter(outputStream);",
"out",
"new LightWriter(outputStream)",
"BTripleDots solver = new BTripleDots();",
"solver",
"new BTripleDots()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class BTripleDots {\n public void solve(int testNumber, LightScanner in, LightWriter out) {\n int k = in.ints();\n String s = in.string();\n out.ans(s.length() <= k ? s : (s.substring(0, k) + \"...\")).ln();\n }\n\n }",
"BTripleDots",
"public void solve(int testNumber, LightScanner in, LightWriter out) {\n int k = in.ints();\n String s = in.string();\n out.ans(s.length() <= k ? s : (s.substring(0, k) + \"...\")).ln();\n }",
"solve",
"{\n int k = in.ints();\n String s = in.string();\n out.ans(s.length() <= k ? s : (s.substring(0, k) + \"...\")).ln();\n }",
"int k = in.ints();",
"k",
"in.ints()",
"in.ints",
"in",
"String s = in.string();",
"s",
"in.string()",
"in.string",
"in",
"out.ans(s.length() <= k ? s : (s.substring(0, k) + \"...\")).ln()",
"out.ans(s.length() <= k ? s : (s.substring(0, k) + \"...\")).ln",
"out.ans(s.length() <= k ? s : (s.substring(0, k) + \"...\"))",
"out.ans",
"out",
"s.length() <= k ? s : (s.substring(0, k) + \"...\")",
"s.length() <= k",
"s.length()",
"s.length",
"s",
"k",
"s",
"(s.substring(0, k) + \"...\")",
"s.substring(0, k)",
"s.substring",
"s",
"0",
"k",
"\"...\"",
"int testNumber",
"testNumber",
"LightScanner in",
"in",
"LightWriter out",
"out",
"static class LightWriter implements AutoCloseable {\n private final Writer out;\n private boolean autoflush = false;\n private boolean breaked = true;\n\n public LightWriter(Writer out) {\n this.out = out;\n }\n\n public LightWriter(OutputStream out) {\n this(new OutputStreamWriter(new BufferedOutputStream(out), Charset.defaultCharset()));\n }\n\n public LightWriter print(char c) {\n try {\n out.write(c);\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }\n\n public LightWriter print(String s) {\n try {\n out.write(s, 0, s.length());\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }\n\n public LightWriter ans(String s) {\n if (!breaked) {\n print(' ');\n }\n return print(s);\n }\n\n public LightWriter ln() {\n print(System.lineSeparator());\n breaked = true;\n if (autoflush) {\n try {\n out.flush();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n return this;\n }\n\n public void close() {\n try {\n out.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n\n }",
"LightWriter",
"private final Writer out;",
"out",
"private boolean autoflush = false;",
"autoflush",
"false",
"private boolean breaked = true;",
"breaked",
"true",
"public LightWriter(Writer out) {\n this.out = out;\n }",
"LightWriter",
"{\n this.out = out;\n }",
"this.out = out",
"this.out",
"this",
"this.out",
"out",
"Writer out",
"out",
"public LightWriter(OutputStream out) {\n this(new OutputStreamWriter(new BufferedOutputStream(out), Charset.defaultCharset()));\n }",
"LightWriter",
"{\n this(new OutputStreamWriter(new BufferedOutputStream(out), Charset.defaultCharset()));\n }",
"this(new OutputStreamWriter(new BufferedOutputStream(out), Charset.defaultCharset()))",
"this",
"new OutputStreamWriter(new BufferedOutputStream(out), Charset.defaultCharset())",
"OutputStream out",
"out",
"public LightWriter print(char c) {\n try {\n out.write(c);\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }",
"print",
"{\n try {\n out.write(c);\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }",
"try {\n out.write(c);\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }",
"catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }",
"IOException ex",
"{\n throw new UncheckedIOException(ex);\n }",
"throw new UncheckedIOException(ex);",
"new UncheckedIOException(ex)",
"{\n out.write(c);\n breaked = false;\n }",
"out.write(c)",
"out.write",
"out",
"c",
"breaked = false",
"breaked",
"false",
"return this;",
"this",
"char c",
"c",
"public LightWriter print(String s) {\n try {\n out.write(s, 0, s.length());\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }",
"print",
"{\n try {\n out.write(s, 0, s.length());\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }",
"try {\n out.write(s, 0, s.length());\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }",
"catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }",
"IOException ex",
"{\n throw new UncheckedIOException(ex);\n }",
"throw new UncheckedIOException(ex);",
"new UncheckedIOException(ex)",
"{\n out.write(s, 0, s.length());\n breaked = false;\n }",
"out.write(s, 0, s.length())",
"out.write",
"out",
"s",
"0",
"s.length()",
"s.length",
"s",
"breaked = false",
"breaked",
"false",
"return this;",
"this",
"String s",
"s",
"public LightWriter ans(String s) {\n if (!breaked) {\n print(' ');\n }\n return print(s);\n }",
"ans",
"{\n if (!breaked) {\n print(' ');\n }\n return print(s);\n }",
"if (!breaked) {\n print(' ');\n }",
"!breaked",
"breaked",
"{\n print(' ');\n }",
"print(' ')",
"print",
"' '",
"return print(s);",
"print(s)",
"print",
"s",
"String s",
"s",
"public LightWriter ln() {\n print(System.lineSeparator());\n breaked = true;\n if (autoflush) {\n try {\n out.flush();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n return this;\n }",
"ln",
"{\n print(System.lineSeparator());\n breaked = true;\n if (autoflush) {\n try {\n out.flush();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n return this;\n }",
"print(System.lineSeparator())",
"print",
"System.lineSeparator()",
"System.lineSeparator",
"System",
"breaked = true",
"breaked",
"true",
"if (autoflush) {\n try {\n out.flush();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }",
"autoflush",
"{\n try {\n out.flush();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }",
"try {\n out.flush();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }",
"catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }",
"IOException ex",
"{\n throw new UncheckedIOException(ex);\n }",
"throw new UncheckedIOException(ex);",
"new UncheckedIOException(ex)",
"{\n out.flush();\n }",
"out.flush()",
"out.flush",
"out",
"return this;",
"this",
"public void close() {\n try {\n out.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }",
"close",
"{\n try {\n out.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }",
"try {\n out.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }",
"catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }",
"IOException ex",
"{\n throw new UncheckedIOException(ex);\n }",
"throw new UncheckedIOException(ex);",
"new UncheckedIOException(ex)",
"{\n out.close();\n }",
"out.close()",
"out.close",
"out",
"AutoCloseable",
"static class LightScanner implements AutoCloseable {\n private BufferedReader reader = null;\n private StringTokenizer tokenizer = null;\n\n public LightScanner(InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n }\n\n public String string() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int ints() {\n return Integer.parseInt(string());\n }\n\n public void close() {\n try {\n this.reader.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n\n }",
"LightScanner",
"private BufferedReader reader = null;",
"reader",
"null",
"private StringTokenizer tokenizer = null;",
"tokenizer",
"null",
"public LightScanner(InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n }",
"LightScanner",
"{\n reader = new BufferedReader(new InputStreamReader(in));\n }",
"reader = new BufferedReader(new InputStreamReader(in))",
"reader",
"new BufferedReader(new InputStreamReader(in))",
"InputStream in",
"in",
"public String string() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }\n return tokenizer.nextToken();\n }",
"string",
"{\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }\n return tokenizer.nextToken();\n }",
"if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }",
"tokenizer == null || !tokenizer.hasMoreTokens()",
"tokenizer == null",
"tokenizer",
"null",
"!tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens",
"tokenizer",
"{\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }",
"try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }",
"catch (IOException e) {\n throw new UncheckedIOException(e);\n }",
"IOException e",
"{\n throw new UncheckedIOException(e);\n }",
"throw new UncheckedIOException(e);",
"new UncheckedIOException(e)",
"{\n tokenizer = new StringTokenizer(reader.readLine());\n }",
"tokenizer = new StringTokenizer(reader.readLine())",
"tokenizer",
"new StringTokenizer(reader.readLine())",
"return tokenizer.nextToken();",
"tokenizer.nextToken()",
"tokenizer.nextToken",
"tokenizer",
"public int ints() {\n return Integer.parseInt(string());\n }",
"ints",
"{\n return Integer.parseInt(string());\n }",
"return Integer.parseInt(string());",
"Integer.parseInt(string())",
"Integer.parseInt",
"Integer",
"string()",
"string",
"public void close() {\n try {\n this.reader.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }",
"close",
"{\n try {\n this.reader.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }",
"try {\n this.reader.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }",
"catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }",
"IOException ex",
"{\n throw new UncheckedIOException(ex);\n }",
"throw new UncheckedIOException(ex);",
"new UncheckedIOException(ex)",
"{\n this.reader.close();\n }",
"this.reader.close()",
"this.reader.close",
"this.reader",
"this",
"this.reader",
"AutoCloseable",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n LightScanner in = new LightScanner(inputStream);\n LightWriter out = new LightWriter(outputStream);\n BTripleDots solver = new BTripleDots();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BTripleDots {\n public void solve(int testNumber, LightScanner in, LightWriter out) {\n int k = in.ints();\n String s = in.string();\n out.ans(s.length() <= k ? s : (s.substring(0, k) + \"...\")).ln();\n }\n\n }\n\n static class LightWriter implements AutoCloseable {\n private final Writer out;\n private boolean autoflush = false;\n private boolean breaked = true;\n\n public LightWriter(Writer out) {\n this.out = out;\n }\n\n public LightWriter(OutputStream out) {\n this(new OutputStreamWriter(new BufferedOutputStream(out), Charset.defaultCharset()));\n }\n\n public LightWriter print(char c) {\n try {\n out.write(c);\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }\n\n public LightWriter print(String s) {\n try {\n out.write(s, 0, s.length());\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }\n\n public LightWriter ans(String s) {\n if (!breaked) {\n print(' ');\n }\n return print(s);\n }\n\n public LightWriter ln() {\n print(System.lineSeparator());\n breaked = true;\n if (autoflush) {\n try {\n out.flush();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n return this;\n }\n\n public void close() {\n try {\n out.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n\n }\n\n static class LightScanner implements AutoCloseable {\n private BufferedReader reader = null;\n private StringTokenizer tokenizer = null;\n\n public LightScanner(InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n }\n\n public String string() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int ints() {\n return Integer.parseInt(string());\n }\n\n public void close() {\n try {\n this.reader.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n LightScanner in = new LightScanner(inputStream);\n LightWriter out = new LightWriter(outputStream);\n BTripleDots solver = new BTripleDots();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BTripleDots {\n public void solve(int testNumber, LightScanner in, LightWriter out) {\n int k = in.ints();\n String s = in.string();\n out.ans(s.length() <= k ? s : (s.substring(0, k) + \"...\")).ln();\n }\n\n }\n\n static class LightWriter implements AutoCloseable {\n private final Writer out;\n private boolean autoflush = false;\n private boolean breaked = true;\n\n public LightWriter(Writer out) {\n this.out = out;\n }\n\n public LightWriter(OutputStream out) {\n this(new OutputStreamWriter(new BufferedOutputStream(out), Charset.defaultCharset()));\n }\n\n public LightWriter print(char c) {\n try {\n out.write(c);\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }\n\n public LightWriter print(String s) {\n try {\n out.write(s, 0, s.length());\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }\n\n public LightWriter ans(String s) {\n if (!breaked) {\n print(' ');\n }\n return print(s);\n }\n\n public LightWriter ln() {\n print(System.lineSeparator());\n breaked = true;\n if (autoflush) {\n try {\n out.flush();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n return this;\n }\n\n public void close() {\n try {\n out.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n\n }\n\n static class LightScanner implements AutoCloseable {\n private BufferedReader reader = null;\n private StringTokenizer tokenizer = null;\n\n public LightScanner(InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n }\n\n public String string() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int ints() {\n return Integer.parseInt(string());\n }\n\n public void close() {\n try {\n this.reader.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n\n }\n}",
"Main"
] |
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.BufferedOutputStream;
import java.io.UncheckedIOException;
import java.nio.charset.Charset;
import java.util.StringTokenizer;
import java.io.Writer;
import java.io.OutputStreamWriter;
import java.io.BufferedReader;
import java.io.InputStream;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*
* @author mikit
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
LightScanner in = new LightScanner(inputStream);
LightWriter out = new LightWriter(outputStream);
BTripleDots solver = new BTripleDots();
solver.solve(1, in, out);
out.close();
}
static class BTripleDots {
public void solve(int testNumber, LightScanner in, LightWriter out) {
int k = in.ints();
String s = in.string();
out.ans(s.length() <= k ? s : (s.substring(0, k) + "...")).ln();
}
}
static class LightWriter implements AutoCloseable {
private final Writer out;
private boolean autoflush = false;
private boolean breaked = true;
public LightWriter(Writer out) {
this.out = out;
}
public LightWriter(OutputStream out) {
this(new OutputStreamWriter(new BufferedOutputStream(out), Charset.defaultCharset()));
}
public LightWriter print(char c) {
try {
out.write(c);
breaked = false;
} catch (IOException ex) {
throw new UncheckedIOException(ex);
}
return this;
}
public LightWriter print(String s) {
try {
out.write(s, 0, s.length());
breaked = false;
} catch (IOException ex) {
throw new UncheckedIOException(ex);
}
return this;
}
public LightWriter ans(String s) {
if (!breaked) {
print(' ');
}
return print(s);
}
public LightWriter ln() {
print(System.lineSeparator());
breaked = true;
if (autoflush) {
try {
out.flush();
} catch (IOException ex) {
throw new UncheckedIOException(ex);
}
}
return this;
}
public void close() {
try {
out.close();
} catch (IOException ex) {
throw new UncheckedIOException(ex);
}
}
}
static class LightScanner implements AutoCloseable {
private BufferedReader reader = null;
private StringTokenizer tokenizer = null;
public LightScanner(InputStream in) {
reader = new BufferedReader(new InputStreamReader(in));
}
public String string() {
if (tokenizer == null || !tokenizer.hasMoreTokens()) {
try {
tokenizer = new StringTokenizer(reader.readLine());
} catch (IOException e) {
throw new UncheckedIOException(e);
}
}
return tokenizer.nextToken();
}
public int ints() {
return Integer.parseInt(string());
}
public void close() {
try {
this.reader.close();
} catch (IOException ex) {
throw new UncheckedIOException(ex);
}
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
153,
17
],
[
153,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
20,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
20,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
20,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
38,
42
],
[
37,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
37,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
56,
60
],
[
55,
61
],
[
18,
62
],
[
62,
63
],
[
0,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
64,
68
],
[
68,
69
],
[
64,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
64,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
79,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
89,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
78,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
64,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
108,
111
],
[
111,
112
],
[
64,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
117,
120
],
[
120,
121
],
[
64,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
126,
129
],
[
129,
130
],
[
64,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
133,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
137,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
147,
148
],
[
148,
149
],
[
133,
150
],
[
150,
151
],
[
0,
152
],
[
152,
153
],
[
152,
154
]
] |
[
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\nimport java.util.*;\npublic class Main {\n\tpublic static void main(String[] args)throws IOException {\n\t\tFastReader sc = new FastReader();\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\tint k = sc.nextInt();\n\t\tString s = sc.next();\n\t\tif (s.length() <= k)\n\t\t\tSystem.out.println(s);\n\t\telse {\n\t\t\tSystem.out.println(s.substring(0, k) + \"...\");\n\t\t}\n\n\t}\n}\n\n\n\n\n\nclass FastReader {\n\tBufferedReader br;\n\tStringTokenizer st;\n\n\tpublic FastReader() {\n\t\tbr = new BufferedReader(new\n\t\t InputStreamReader(System.in));\n\t}\n\n\tString next() {\n\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\ttry {\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn st.nextToken();\n\t}\n\n\tint nextInt() {\n\t\treturn Integer.parseInt(next());\n\t}\n\n\tlong nextLong() {\n\t\treturn Long.parseLong(next());\n\t}\n\n\tdouble nextDouble() {\n\t\treturn Double.parseDouble(next());\n\t}\n\n\tString nextLine() {\n\t\tString str = \"\";\n\t\ttry {\n\t\t\tstr = br.readLine();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn str;\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args)throws IOException {\n\t\tFastReader sc = new FastReader();\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\tint k = sc.nextInt();\n\t\tString s = sc.next();\n\t\tif (s.length() <= k)\n\t\t\tSystem.out.println(s);\n\t\telse {\n\t\t\tSystem.out.println(s.substring(0, k) + \"...\");\n\t\t}\n\n\t}\n}",
"Main",
"public static void main(String[] args)throws IOException {\n\t\tFastReader sc = new FastReader();\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\tint k = sc.nextInt();\n\t\tString s = sc.next();\n\t\tif (s.length() <= k)\n\t\t\tSystem.out.println(s);\n\t\telse {\n\t\t\tSystem.out.println(s.substring(0, k) + \"...\");\n\t\t}\n\n\t}",
"main",
"{\n\t\tFastReader sc = new FastReader();\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\tint k = sc.nextInt();\n\t\tString s = sc.next();\n\t\tif (s.length() <= k)\n\t\t\tSystem.out.println(s);\n\t\telse {\n\t\t\tSystem.out.println(s.substring(0, k) + \"...\");\n\t\t}\n\n\t}",
"FastReader sc = new FastReader();",
"sc",
"new FastReader()",
"PrintWriter pw = new PrintWriter(System.out);",
"pw",
"new PrintWriter(System.out)",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"if (s.length() <= k)\n\t\t\tSystem.out.println(s);\n\t\telse {\n\t\t\tSystem.out.println(s.substring(0, k) + \"...\");\n\t\t}",
"s.length() <= k",
"s.length()",
"s.length",
"s",
"k",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"{\n\t\t\tSystem.out.println(s.substring(0, k) + \"...\");\n\t\t}",
"System.out.println(s.substring(0, k) + \"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"s.substring(0, k) + \"...\"",
"s.substring(0, k)",
"s.substring",
"s",
"0",
"k",
"\"...\"",
"String[] args",
"args",
"class FastReader {\n\tBufferedReader br;\n\tStringTokenizer st;\n\n\tpublic FastReader() {\n\t\tbr = new BufferedReader(new\n\t\t InputStreamReader(System.in));\n\t}\n\n\tString next() {\n\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\ttry {\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn st.nextToken();\n\t}\n\n\tint nextInt() {\n\t\treturn Integer.parseInt(next());\n\t}\n\n\tlong nextLong() {\n\t\treturn Long.parseLong(next());\n\t}\n\n\tdouble nextDouble() {\n\t\treturn Double.parseDouble(next());\n\t}\n\n\tString nextLine() {\n\t\tString str = \"\";\n\t\ttry {\n\t\t\tstr = br.readLine();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn str;\n\t}\n}",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader() {\n\t\tbr = new BufferedReader(new\n\t\t InputStreamReader(System.in));\n\t}",
"FastReader",
"{\n\t\tbr = new BufferedReader(new\n\t\t InputStreamReader(System.in));\n\t}",
"br = new BufferedReader(new\n\t\t InputStreamReader(System.in))",
"br",
"new BufferedReader(new\n\t\t InputStreamReader(System.in))",
"String next() {\n\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\ttry {\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn st.nextToken();\n\t}",
"next",
"{\n\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\ttry {\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn st.nextToken();\n\t}",
"while (st == null || !st.hasMoreElements()) {\n\t\t\ttry {\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n\t\t\ttry {\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}",
"try {\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"IOException e",
"{\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t}",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n\t\treturn Integer.parseInt(next());\n\t}",
"nextInt",
"{\n\t\treturn Integer.parseInt(next());\n\t}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n\t\treturn Long.parseLong(next());\n\t}",
"nextLong",
"{\n\t\treturn Long.parseLong(next());\n\t}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() {\n\t\treturn Double.parseDouble(next());\n\t}",
"nextDouble",
"{\n\t\treturn Double.parseDouble(next());\n\t}",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine() {\n\t\tString str = \"\";\n\t\ttry {\n\t\t\tstr = br.readLine();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn str;\n\t}",
"nextLine",
"{\n\t\tString str = \"\";\n\t\ttry {\n\t\t\tstr = br.readLine();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn str;\n\t}",
"String str = \"\";",
"str",
"\"\"",
"try {\n\t\t\tstr = br.readLine();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}",
"catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}",
"IOException e",
"{\n\t\t\te.printStackTrace();\n\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\tstr = br.readLine();\n\t\t}",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main {\n\tpublic static void main(String[] args)throws IOException {\n\t\tFastReader sc = new FastReader();\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\tint k = sc.nextInt();\n\t\tString s = sc.next();\n\t\tif (s.length() <= k)\n\t\t\tSystem.out.println(s);\n\t\telse {\n\t\t\tSystem.out.println(s.substring(0, k) + \"...\");\n\t\t}\n\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args)throws IOException {\n\t\tFastReader sc = new FastReader();\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\tint k = sc.nextInt();\n\t\tString s = sc.next();\n\t\tif (s.length() <= k)\n\t\t\tSystem.out.println(s);\n\t\telse {\n\t\t\tSystem.out.println(s.substring(0, k) + \"...\");\n\t\t}\n\n\t}\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.*;
public class Main {
public static void main(String[] args)throws IOException {
FastReader sc = new FastReader();
PrintWriter pw = new PrintWriter(System.out);
int k = sc.nextInt();
String s = sc.next();
if (s.length() <= k)
System.out.println(s);
else {
System.out.println(s.substring(0, k) + "...");
}
}
}
class FastReader {
BufferedReader br;
StringTokenizer st;
public FastReader() {
br = new BufferedReader(new
InputStreamReader(System.in));
}
String next() {
while (st == null || !st.hasMoreElements()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
String nextLine() {
String str = "";
try {
str = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return str;
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
2,
17,
13,
30,
41,
13,
4,
18,
13,
17,
13,
0,
13,
2,
13,
17,
4,
18,
18,
13,
13,
2,
17,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
67,
8
],
[
67,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
11,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
29,
33
],
[
28,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
28,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
46,
50
],
[
43,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
53,
55
],
[
43,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
61,
62
],
[
61,
63
],
[
9,
64
],
[
64,
65
],
[
0,
66
],
[
66,
67
],
[
66,
68
]
] |
[
"import java.util.*;\nimport java.lang.*;\npublic class Main{\n\t public static void main(String args[])\n\t {\n\t Scanner sc=new Scanner(System.in);\n\t int K=sc.nextInt();\n sc.nextLine();\n String S=sc.nextLine();\n\t if(S.length()<=K)\n\t {\n\t System.out.println(\" \"+S);\n\t }\n\t else\n\t {\n\t String str=S.substring(0,K);\n\t str=str+\"...\";\n\t System.out.println(\" \"+str);\n\t }\n\t }\n\t}\n",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"public class Main{\n\t public static void main(String args[])\n\t {\n\t Scanner sc=new Scanner(System.in);\n\t int K=sc.nextInt();\n sc.nextLine();\n String S=sc.nextLine();\n\t if(S.length()<=K)\n\t {\n\t System.out.println(\" \"+S);\n\t }\n\t else\n\t {\n\t String str=S.substring(0,K);\n\t str=str+\"...\";\n\t System.out.println(\" \"+str);\n\t }\n\t }\n\t}",
"Main",
"public static void main(String args[])\n\t {\n\t Scanner sc=new Scanner(System.in);\n\t int K=sc.nextInt();\n sc.nextLine();\n String S=sc.nextLine();\n\t if(S.length()<=K)\n\t {\n\t System.out.println(\" \"+S);\n\t }\n\t else\n\t {\n\t String str=S.substring(0,K);\n\t str=str+\"...\";\n\t System.out.println(\" \"+str);\n\t }\n\t }",
"main",
"{\n\t Scanner sc=new Scanner(System.in);\n\t int K=sc.nextInt();\n sc.nextLine();\n String S=sc.nextLine();\n\t if(S.length()<=K)\n\t {\n\t System.out.println(\" \"+S);\n\t }\n\t else\n\t {\n\t String str=S.substring(0,K);\n\t str=str+\"...\";\n\t System.out.println(\" \"+str);\n\t }\n\t }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K=sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String S=sc.nextLine();",
"S",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if(S.length()<=K)\n\t {\n\t System.out.println(\" \"+S);\n\t }\n\t else\n\t {\n\t String str=S.substring(0,K);\n\t str=str+\"...\";\n\t System.out.println(\" \"+str);\n\t }",
"S.length()<=K",
"S.length()",
"S.length",
"S",
"K",
"{\n\t System.out.println(\" \"+S);\n\t }",
"System.out.println(\" \"+S)",
"System.out.println",
"System.out",
"System",
"System.out",
"\" \"+S",
"\" \"",
"S",
"{\n\t String str=S.substring(0,K);\n\t str=str+\"...\";\n\t System.out.println(\" \"+str);\n\t }",
"String str=S.substring(0,K);",
"str",
"S.substring(0,K)",
"S.substring",
"S",
"0",
"K",
"str=str+\"...\"",
"str",
"str+\"...\"",
"str",
"\"...\"",
"System.out.println(\" \"+str)",
"System.out.println",
"System.out",
"System",
"System.out",
"\" \"+str",
"\" \"",
"str",
"String args[]",
"args",
"public class Main{\n\t public static void main(String args[])\n\t {\n\t Scanner sc=new Scanner(System.in);\n\t int K=sc.nextInt();\n sc.nextLine();\n String S=sc.nextLine();\n\t if(S.length()<=K)\n\t {\n\t System.out.println(\" \"+S);\n\t }\n\t else\n\t {\n\t String str=S.substring(0,K);\n\t str=str+\"...\";\n\t System.out.println(\" \"+str);\n\t }\n\t }\n\t}",
"public class Main{\n\t public static void main(String args[])\n\t {\n\t Scanner sc=new Scanner(System.in);\n\t int K=sc.nextInt();\n sc.nextLine();\n String S=sc.nextLine();\n\t if(S.length()<=K)\n\t {\n\t System.out.println(\" \"+S);\n\t }\n\t else\n\t {\n\t String str=S.substring(0,K);\n\t str=str+\"...\";\n\t System.out.println(\" \"+str);\n\t }\n\t }\n\t}",
"Main"
] |
import java.util.*;
import java.lang.*;
public class Main{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
int K=sc.nextInt();
sc.nextLine();
String S=sc.nextLine();
if(S.length()<=K)
{
System.out.println(" "+S);
}
else
{
String str=S.substring(0,K);
str=str+"...";
System.out.println(" "+str);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
4,
18,
18,
13,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
69,
5
],
[
69,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
8,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
27,
31
],
[
26,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
26,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
39,
47
],
[
47,
48
],
[
48,
49
],
[
39,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
38,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
6,
66
],
[
66,
67
],
[
0,
68
],
[
68,
69
],
[
68,
70
]
] |
[
"/******************************************************************************\n\nWelcome to GDB Online.\nGDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl,\nC#, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog.\nCode, Compile, Run and Debug online from anywhere in world.\n\n*******************************************************************************/\nimport java.util.Scanner; \npublic class Main\n{\n\tpublic static void main(String[] args) {\n\t\tScanner ulaz = new Scanner(System.in);\n\t\tint k;\n\t\tString s;\n\t\tk = ulaz.nextInt();\n\t\ts = ulaz.next();\n\t\t\n\t\tif (s.length() <= k)\n\t\t System.out.println(s);\n\t\telse\n\t\t{\n\t\t for (int i = 0; i < k; i++)\n\t\t System.out.print(s.charAt(i));\n\t\t System.out.print(\"...\");\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main\n{\n\tpublic static void main(String[] args) {\n\t\tScanner ulaz = new Scanner(System.in);\n\t\tint k;\n\t\tString s;\n\t\tk = ulaz.nextInt();\n\t\ts = ulaz.next();\n\t\t\n\t\tif (s.length() <= k)\n\t\t System.out.println(s);\n\t\telse\n\t\t{\n\t\t for (int i = 0; i < k; i++)\n\t\t System.out.print(s.charAt(i));\n\t\t System.out.print(\"...\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner ulaz = new Scanner(System.in);\n\t\tint k;\n\t\tString s;\n\t\tk = ulaz.nextInt();\n\t\ts = ulaz.next();\n\t\t\n\t\tif (s.length() <= k)\n\t\t System.out.println(s);\n\t\telse\n\t\t{\n\t\t for (int i = 0; i < k; i++)\n\t\t System.out.print(s.charAt(i));\n\t\t System.out.print(\"...\");\n\t\t}\n\t}",
"main",
"{\n\t\tScanner ulaz = new Scanner(System.in);\n\t\tint k;\n\t\tString s;\n\t\tk = ulaz.nextInt();\n\t\ts = ulaz.next();\n\t\t\n\t\tif (s.length() <= k)\n\t\t System.out.println(s);\n\t\telse\n\t\t{\n\t\t for (int i = 0; i < k; i++)\n\t\t System.out.print(s.charAt(i));\n\t\t System.out.print(\"...\");\n\t\t}\n\t}",
"Scanner ulaz = new Scanner(System.in);",
"ulaz",
"new Scanner(System.in)",
"int k;",
"k",
"String s;",
"s",
"k = ulaz.nextInt()",
"k",
"ulaz.nextInt()",
"ulaz.nextInt",
"ulaz",
"s = ulaz.next()",
"s",
"ulaz.next()",
"ulaz.next",
"ulaz",
"if (s.length() <= k)\n\t\t System.out.println(s);\n\t\telse\n\t\t{\n\t\t for (int i = 0; i < k; i++)\n\t\t System.out.print(s.charAt(i));\n\t\t System.out.print(\"...\");\n\t\t}",
"s.length() <= k",
"s.length()",
"s.length",
"s",
"k",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"{\n\t\t for (int i = 0; i < k; i++)\n\t\t System.out.print(s.charAt(i));\n\t\t System.out.print(\"...\");\n\t\t}",
"for (int i = 0; i < k; i++)\n\t\t System.out.print(s.charAt(i));",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < k",
"i",
"k",
"i++",
"i++",
"i",
"System.out.print(s.charAt(i));",
"System.out.print(s.charAt(i))",
"System.out.print",
"System.out",
"System",
"System.out",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"System.out.print(\"...\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"...\"",
"String[] args",
"args",
"public class Main\n{\n\tpublic static void main(String[] args) {\n\t\tScanner ulaz = new Scanner(System.in);\n\t\tint k;\n\t\tString s;\n\t\tk = ulaz.nextInt();\n\t\ts = ulaz.next();\n\t\t\n\t\tif (s.length() <= k)\n\t\t System.out.println(s);\n\t\telse\n\t\t{\n\t\t for (int i = 0; i < k; i++)\n\t\t System.out.print(s.charAt(i));\n\t\t System.out.print(\"...\");\n\t\t}\n\t}\n}",
"public class Main\n{\n\tpublic static void main(String[] args) {\n\t\tScanner ulaz = new Scanner(System.in);\n\t\tint k;\n\t\tString s;\n\t\tk = ulaz.nextInt();\n\t\ts = ulaz.next();\n\t\t\n\t\tif (s.length() <= k)\n\t\t System.out.println(s);\n\t\telse\n\t\t{\n\t\t for (int i = 0; i < k; i++)\n\t\t System.out.print(s.charAt(i));\n\t\t System.out.print(\"...\");\n\t\t}\n\t}\n}",
"Main"
] |
/******************************************************************************
Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl,
C#, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog.
Code, Compile, Run and Debug online from anywhere in world.
*******************************************************************************/
import java.util.Scanner;
public class Main
{
public static void main(String[] args) {
Scanner ulaz = new Scanner(System.in);
int k;
String s;
k = ulaz.nextInt();
s = ulaz.next();
if (s.length() <= k)
System.out.println(s);
else
{
for (int i = 0; i < k; i++)
System.out.print(s.charAt(i));
System.out.print("...");
}
}
}
|
[
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,
14,
2,
4,
18,
13,
13,
0,
13,
2,
4,
18,
13,
17,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
49,
5
],
[
49,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
26,
30
],
[
25,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
34,
38
],
[
33,
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.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int K = Integer.parseInt(sc.next());\n String S = sc.next();\n if (S.length() > K) S = S.substring(0, K) + \"...\";\n System.out.println(S);\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 K = Integer.parseInt(sc.next());\n String S = sc.next();\n if (S.length() > K) S = S.substring(0, K) + \"...\";\n System.out.println(S);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int K = Integer.parseInt(sc.next());\n String S = sc.next();\n if (S.length() > K) S = S.substring(0, K) + \"...\";\n System.out.println(S);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int K = Integer.parseInt(sc.next());\n String S = sc.next();\n if (S.length() > K) S = S.substring(0, K) + \"...\";\n System.out.println(S);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K = Integer.parseInt(sc.next());",
"K",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"String S = sc.next();",
"S",
"sc.next()",
"sc.next",
"sc",
"if (S.length() > K) S = S.substring(0, K) + \"...\";",
"S.length() > K",
"S.length()",
"S.length",
"S",
"K",
"S = S.substring(0, K) + \"...\"",
"S",
"S.substring(0, K) + \"...\"",
"S.substring(0, K)",
"S.substring",
"S",
"0",
"K",
"\"...\"",
"System.out.println(S)",
"System.out.println",
"System.out",
"System",
"System.out",
"S",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int K = Integer.parseInt(sc.next());\n String S = sc.next();\n if (S.length() > K) S = S.substring(0, K) + \"...\";\n System.out.println(S);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int K = Integer.parseInt(sc.next());\n String S = sc.next();\n if (S.length() > K) S = S.substring(0, K) + \"...\";\n System.out.println(S);\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int K = Integer.parseInt(sc.next());
String S = sc.next();
if (S.length() > K) S = S.substring(0, K) + "...";
System.out.println(S);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
4,
18,
13,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
51,
5
],
[
51,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
22,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
22,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
42,
46
],
[
41,
47
],
[
6,
48
],
[
48,
49
],
[
0,
50
],
[
50,
51
],
[
50,
52
]
] |
[
"import java.util.*;\npublic class Main{\n\tpublic static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tint K = sc.nextInt();\n \tString S = sc.next();\n \tif(K >= S.length()){\n \tSystem.out.println(S);\n }else{\n \tSystem.out.println(S.substring(0, K) + \"...\");\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\tpublic static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tint K = sc.nextInt();\n \tString S = sc.next();\n \tif(K >= S.length()){\n \tSystem.out.println(S);\n }else{\n \tSystem.out.println(S.substring(0, K) + \"...\");\n }\n }\n}",
"Main",
"public static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tint K = sc.nextInt();\n \tString S = sc.next();\n \tif(K >= S.length()){\n \tSystem.out.println(S);\n }else{\n \tSystem.out.println(S.substring(0, K) + \"...\");\n }\n }",
"main",
"{\n \tScanner sc = new Scanner(System.in);\n \tint K = sc.nextInt();\n \tString S = sc.next();\n \tif(K >= S.length()){\n \tSystem.out.println(S);\n }else{\n \tSystem.out.println(S.substring(0, K) + \"...\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String S = sc.next();",
"S",
"sc.next()",
"sc.next",
"sc",
"if(K >= S.length()){\n \tSystem.out.println(S);\n }else{\n \tSystem.out.println(S.substring(0, K) + \"...\");\n }",
"K >= S.length()",
"K",
"S.length()",
"S.length",
"S",
"{\n \tSystem.out.println(S);\n }",
"System.out.println(S)",
"System.out.println",
"System.out",
"System",
"System.out",
"S",
"{\n \tSystem.out.println(S.substring(0, K) + \"...\");\n }",
"System.out.println(S.substring(0, K) + \"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"S.substring(0, K) + \"...\"",
"S.substring(0, K)",
"S.substring",
"S",
"0",
"K",
"\"...\"",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tint K = sc.nextInt();\n \tString S = sc.next();\n \tif(K >= S.length()){\n \tSystem.out.println(S);\n }else{\n \tSystem.out.println(S.substring(0, K) + \"...\");\n }\n }\n}",
"public class Main{\n\tpublic static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tint K = sc.nextInt();\n \tString S = sc.next();\n \tif(K >= S.length()){\n \tSystem.out.println(S);\n }else{\n \tSystem.out.println(S.substring(0, K) + \"...\");\n }\n }\n}",
"Main"
] |
import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
String S = sc.next();
if(K >= S.length()){
System.out.println(S);
}else{
System.out.println(S.substring(0, K) + "...");
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
4,
13,
18,
13,
13,
18,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
4,
18,
13,
13,
29,
4,
18,
13,
2,
4,
18,
13,
17,
13,
17,
23,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
68,
11
],
[
68,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
17,
19
],
[
15,
20
],
[
20,
21
],
[
20,
22
],
[
12,
23
],
[
23,
24
],
[
68,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
27,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
27,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
42,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
47,
52
],
[
27,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
57,
61
],
[
56,
62
],
[
25,
63
],
[
63,
64
],
[
25,
65
],
[
65,
66
],
[
0,
67
],
[
67,
68
],
[
67,
69
]
] |
[
"\nimport java.io.InputStream;\nimport java.io.PrintStream;\nimport java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n solve(System.in, System.out);\n }\n\n static void solve(InputStream is, PrintStream os) {\n // Your code here!\n Scanner scan = new Scanner(is);\n int K = scan.nextInt();\n String S = scan.next();\n if(S.length() <= K){\n os.println(S);\n return;\n }\n\n os.println(S.substring(0,K)+\"...\");\n\n }\n\n}",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintStream;",
"PrintStream",
"java.io",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n solve(System.in, System.out);\n }\n\n static void solve(InputStream is, PrintStream os) {\n // Your code here!\n Scanner scan = new Scanner(is);\n int K = scan.nextInt();\n String S = scan.next();\n if(S.length() <= K){\n os.println(S);\n return;\n }\n\n os.println(S.substring(0,K)+\"...\");\n\n }\n\n}",
"Main",
"public static void main(String[] args) throws Exception {\n solve(System.in, System.out);\n }",
"main",
"{\n solve(System.in, System.out);\n }",
"solve(System.in, System.out)",
"solve",
"System.in",
"System",
"System.in",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"static void solve(InputStream is, PrintStream os) {\n // Your code here!\n Scanner scan = new Scanner(is);\n int K = scan.nextInt();\n String S = scan.next();\n if(S.length() <= K){\n os.println(S);\n return;\n }\n\n os.println(S.substring(0,K)+\"...\");\n\n }",
"solve",
"{\n // Your code here!\n Scanner scan = new Scanner(is);\n int K = scan.nextInt();\n String S = scan.next();\n if(S.length() <= K){\n os.println(S);\n return;\n }\n\n os.println(S.substring(0,K)+\"...\");\n\n }",
"Scanner scan = new Scanner(is);",
"scan",
"new Scanner(is)",
"int K = scan.nextInt();",
"K",
"scan.nextInt()",
"scan.nextInt",
"scan",
"String S = scan.next();",
"S",
"scan.next()",
"scan.next",
"scan",
"if(S.length() <= K){\n os.println(S);\n return;\n }",
"S.length() <= K",
"S.length()",
"S.length",
"S",
"K",
"{\n os.println(S);\n return;\n }",
"os.println(S)",
"os.println",
"os",
"S",
"return;",
"os.println(S.substring(0,K)+\"...\")",
"os.println",
"os",
"S.substring(0,K)+\"...\"",
"S.substring(0,K)",
"S.substring",
"S",
"0",
"K",
"\"...\"",
"InputStream is",
"is",
"PrintStream os",
"os",
"public class Main {\n public static void main(String[] args) throws Exception {\n solve(System.in, System.out);\n }\n\n static void solve(InputStream is, PrintStream os) {\n // Your code here!\n Scanner scan = new Scanner(is);\n int K = scan.nextInt();\n String S = scan.next();\n if(S.length() <= K){\n os.println(S);\n return;\n }\n\n os.println(S.substring(0,K)+\"...\");\n\n }\n\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n solve(System.in, System.out);\n }\n\n static void solve(InputStream is, PrintStream os) {\n // Your code here!\n Scanner scan = new Scanner(is);\n int K = scan.nextInt();\n String S = scan.next();\n if(S.length() <= K){\n os.println(S);\n return;\n }\n\n os.println(S.substring(0,K)+\"...\");\n\n }\n\n}",
"Main"
] |
import java.io.InputStream;
import java.io.PrintStream;
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
solve(System.in, System.out);
}
static void solve(InputStream is, PrintStream os) {
// Your code here!
Scanner scan = new Scanner(is);
int K = scan.nextInt();
String S = scan.next();
if(S.length() <= K){
os.println(S);
return;
}
os.println(S.substring(0,K)+"...");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
4,
18,
13,
17,
13,
4,
18,
18,
13,
13,
2,
13,
17,
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
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
27,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
41,
45
],
[
38,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
51,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
6,
57
],
[
57,
58
],
[
0,
59
],
[
59,
60
],
[
59,
61
]
] |
[
"import java.util.Scanner;\n \npublic class Main{\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int num = scan.nextInt();\n String str = scan.next();\n int cnt = str.length();\n if (cnt<=num) {\n\t\t\tSystem.out.println(str);\n\t\t} else {\n String str2 = str.substring(0, num);\n\t\t\tSystem.out.println(str2+\"...\");\n\t\t}\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 int num = scan.nextInt();\n String str = scan.next();\n int cnt = str.length();\n if (cnt<=num) {\n\t\t\tSystem.out.println(str);\n\t\t} else {\n String str2 = str.substring(0, num);\n\t\t\tSystem.out.println(str2+\"...\");\n\t\t}\n scan.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int num = scan.nextInt();\n String str = scan.next();\n int cnt = str.length();\n if (cnt<=num) {\n\t\t\tSystem.out.println(str);\n\t\t} else {\n String str2 = str.substring(0, num);\n\t\t\tSystem.out.println(str2+\"...\");\n\t\t}\n scan.close();\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n int num = scan.nextInt();\n String str = scan.next();\n int cnt = str.length();\n if (cnt<=num) {\n\t\t\tSystem.out.println(str);\n\t\t} else {\n String str2 = str.substring(0, num);\n\t\t\tSystem.out.println(str2+\"...\");\n\t\t}\n scan.close();\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int num = scan.nextInt();",
"num",
"scan.nextInt()",
"scan.nextInt",
"scan",
"String str = scan.next();",
"str",
"scan.next()",
"scan.next",
"scan",
"int cnt = str.length();",
"cnt",
"str.length()",
"str.length",
"str",
"if (cnt<=num) {\n\t\t\tSystem.out.println(str);\n\t\t} else {\n String str2 = str.substring(0, num);\n\t\t\tSystem.out.println(str2+\"...\");\n\t\t}",
"cnt<=num",
"cnt",
"num",
"{\n\t\t\tSystem.out.println(str);\n\t\t}",
"System.out.println(str)",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"{\n String str2 = str.substring(0, num);\n\t\t\tSystem.out.println(str2+\"...\");\n\t\t}",
"String str2 = str.substring(0, num);",
"str2",
"str.substring(0, num)",
"str.substring",
"str",
"0",
"num",
"System.out.println(str2+\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"str2+\"...\"",
"str2",
"\"...\"",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int num = scan.nextInt();\n String str = scan.next();\n int cnt = str.length();\n if (cnt<=num) {\n\t\t\tSystem.out.println(str);\n\t\t} else {\n String str2 = str.substring(0, num);\n\t\t\tSystem.out.println(str2+\"...\");\n\t\t}\n scan.close();\n }\n}",
"public class Main{\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int num = scan.nextInt();\n String str = scan.next();\n int cnt = str.length();\n if (cnt<=num) {\n\t\t\tSystem.out.println(str);\n\t\t} else {\n String str2 = str.substring(0, num);\n\t\t\tSystem.out.println(str2+\"...\");\n\t\t}\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);
int num = scan.nextInt();
String str = scan.next();
int cnt = str.length();
if (cnt<=num) {
System.out.println(str);
} else {
String str2 = str.substring(0, num);
System.out.println(str2+"...");
}
scan.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
14,
2,
4,
18,
13,
13,
30,
0,
13,
2,
4,
18,
13,
17,
13,
17,
30,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
54,
5
],
[
54,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
26,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
35,
39
],
[
34,
40
],
[
25,
41
],
[
41,
42
],
[
42,
43
],
[
42,
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\tpublic static void main(String args[]){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint K = scan.nextInt();\n\t\tString S = scan.next();\n\t\tString result = null;\n\n\t\tif(S.length()>K) {\n\t\t\tresult = S.substring(0,K)+\"...\";\n\t\t}else {\n\t\t\tresult = S;\n\t\t}\n\n\t\tSystem.out.println(result);\n\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\tpublic static void main(String args[]){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint K = scan.nextInt();\n\t\tString S = scan.next();\n\t\tString result = null;\n\n\t\tif(S.length()>K) {\n\t\t\tresult = S.substring(0,K)+\"...\";\n\t\t}else {\n\t\t\tresult = S;\n\t\t}\n\n\t\tSystem.out.println(result);\n\n\t}\n}",
"Main",
"public static void main(String args[]){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint K = scan.nextInt();\n\t\tString S = scan.next();\n\t\tString result = null;\n\n\t\tif(S.length()>K) {\n\t\t\tresult = S.substring(0,K)+\"...\";\n\t\t}else {\n\t\t\tresult = S;\n\t\t}\n\n\t\tSystem.out.println(result);\n\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint K = scan.nextInt();\n\t\tString S = scan.next();\n\t\tString result = null;\n\n\t\tif(S.length()>K) {\n\t\t\tresult = S.substring(0,K)+\"...\";\n\t\t}else {\n\t\t\tresult = S;\n\t\t}\n\n\t\tSystem.out.println(result);\n\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int K = scan.nextInt();",
"K",
"scan.nextInt()",
"scan.nextInt",
"scan",
"String S = scan.next();",
"S",
"scan.next()",
"scan.next",
"scan",
"String result = null;",
"result",
"null",
"if(S.length()>K) {\n\t\t\tresult = S.substring(0,K)+\"...\";\n\t\t}else {\n\t\t\tresult = S;\n\t\t}",
"S.length()>K",
"S.length()",
"S.length",
"S",
"K",
"{\n\t\t\tresult = S.substring(0,K)+\"...\";\n\t\t}",
"result = S.substring(0,K)+\"...\"",
"result",
"S.substring(0,K)+\"...\"",
"S.substring(0,K)",
"S.substring",
"S",
"0",
"K",
"\"...\"",
"{\n\t\t\tresult = S;\n\t\t}",
"result = S",
"result",
"S",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"String args[]",
"args",
"public class Main{\n\tpublic static void main(String args[]){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint K = scan.nextInt();\n\t\tString S = scan.next();\n\t\tString result = null;\n\n\t\tif(S.length()>K) {\n\t\t\tresult = S.substring(0,K)+\"...\";\n\t\t}else {\n\t\t\tresult = S;\n\t\t}\n\n\t\tSystem.out.println(result);\n\n\t}\n}",
"public class Main{\n\tpublic static void main(String args[]){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint K = scan.nextInt();\n\t\tString S = scan.next();\n\t\tString result = null;\n\n\t\tif(S.length()>K) {\n\t\t\tresult = S.substring(0,K)+\"...\";\n\t\t}else {\n\t\t\tresult = S;\n\t\t}\n\n\t\tSystem.out.println(result);\n\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main{
public static void main(String args[]){
Scanner scan = new Scanner(System.in);
int K = scan.nextInt();
String S = scan.next();
String result = null;
if(S.length()>K) {
result = S.substring(0,K)+"...";
}else {
result = S;
}
System.out.println(result);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
4,
18,
13,
17,
13,
0,
13,
2,
13,
17,
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
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
23,
27
],
[
22,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
22,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
38,
42
],
[
35,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
45,
47
],
[
35,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
6,
54
],
[
54,
55
],
[
0,
56
],
[
56,
57
],
[
56,
58
]
] |
[
"import java.util.*;\npublic class Main\n{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n int A = sc.nextInt();\n String str = sc.next();\n if(str.length() <= A)\n {\n System.out.println(str);\n }\n else\n {\n String s = str.substring(0,A);\n s = s+\"...\";\n System.out.println(s);\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main\n{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n int A = sc.nextInt();\n String str = sc.next();\n if(str.length() <= A)\n {\n System.out.println(str);\n }\n else\n {\n String s = str.substring(0,A);\n s = s+\"...\";\n System.out.println(s);\n }\n }\n}",
"Main",
"public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n int A = sc.nextInt();\n String str = sc.next();\n if(str.length() <= A)\n {\n System.out.println(str);\n }\n else\n {\n String s = str.substring(0,A);\n s = s+\"...\";\n System.out.println(s);\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int A = sc.nextInt();\n String str = sc.next();\n if(str.length() <= A)\n {\n System.out.println(str);\n }\n else\n {\n String s = str.substring(0,A);\n s = s+\"...\";\n System.out.println(s);\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int A = sc.nextInt();",
"A",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String str = sc.next();",
"str",
"sc.next()",
"sc.next",
"sc",
"if(str.length() <= A)\n {\n System.out.println(str);\n }\n else\n {\n String s = str.substring(0,A);\n s = s+\"...\";\n System.out.println(s);\n }",
"str.length() <= A",
"str.length()",
"str.length",
"str",
"A",
"{\n System.out.println(str);\n }",
"System.out.println(str)",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"{\n String s = str.substring(0,A);\n s = s+\"...\";\n System.out.println(s);\n }",
"String s = str.substring(0,A);",
"s",
"str.substring(0,A)",
"str.substring",
"str",
"0",
"A",
"s = s+\"...\"",
"s",
"s+\"...\"",
"s",
"\"...\"",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"String[] args",
"args",
"public class Main\n{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n int A = sc.nextInt();\n String str = sc.next();\n if(str.length() <= A)\n {\n System.out.println(str);\n }\n else\n {\n String s = str.substring(0,A);\n s = s+\"...\";\n System.out.println(s);\n }\n }\n}",
"public class Main\n{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n int A = sc.nextInt();\n String str = sc.next();\n if(str.length() <= A)\n {\n System.out.println(str);\n }\n else\n {\n String s = str.substring(0,A);\n s = s+\"...\";\n System.out.println(s);\n }\n }\n}",
"Main"
] |
import java.util.*;
public class Main
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
String str = sc.next();
if(str.length() <= A)
{
System.out.println(str);
}
else
{
String s = str.substring(0,A);
s = s+"...";
System.out.println(s);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
8,
2,
4,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
54,
8
],
[
54,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
11,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
11,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
35,
39
],
[
34,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
41,
45
],
[
40,
46
],
[
34,
47
],
[
11,
48
],
[
48,
49
],
[
49,
50
],
[
9,
51
],
[
51,
52
],
[
0,
53
],
[
53,
54
],
[
53,
55
]
] |
[
"import java.util.*;\nimport java.io.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n \n int k = Integer.parseInt(br.readLine());\n String s = br.readLine();\n \n out.println(s.length() > k ? s.substring(0, k) + \"...\" : s);\n out.close();\n \n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n \n int k = Integer.parseInt(br.readLine());\n String s = br.readLine();\n \n out.println(s.length() > k ? s.substring(0, k) + \"...\" : s);\n out.close();\n \n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n \n int k = Integer.parseInt(br.readLine());\n String s = br.readLine();\n \n out.println(s.length() > k ? s.substring(0, k) + \"...\" : s);\n out.close();\n \n }",
"main",
"{\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n \n int k = Integer.parseInt(br.readLine());\n String s = br.readLine();\n \n out.println(s.length() > k ? s.substring(0, k) + \"...\" : s);\n out.close();\n \n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));",
"out",
"new PrintWriter(new OutputStreamWriter(System.out))",
"int k = Integer.parseInt(br.readLine());",
"k",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"String s = br.readLine();",
"s",
"br.readLine()",
"br.readLine",
"br",
"out.println(s.length() > k ? s.substring(0, k) + \"...\" : s)",
"out.println",
"out",
"s.length() > k ? s.substring(0, k) + \"...\" : s",
"s.length() > k",
"s.length()",
"s.length",
"s",
"k",
"s.substring(0, k) + \"...\"",
"s.substring(0, k)",
"s.substring",
"s",
"0",
"k",
"\"...\"",
"s",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n \n int k = Integer.parseInt(br.readLine());\n String s = br.readLine();\n \n out.println(s.length() > k ? s.substring(0, k) + \"...\" : s);\n out.close();\n \n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n \n int k = Integer.parseInt(br.readLine());\n String s = br.readLine();\n \n out.println(s.length() > k ? s.substring(0, k) + \"...\" : s);\n out.close();\n \n }\n}",
"Main"
] |
import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
int k = Integer.parseInt(br.readLine());
String s = br.readLine();
out.println(s.length() > k ? s.substring(0, k) + "..." : s);
out.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
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
],
[
58,
11
],
[
58,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
14,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
32,
36
],
[
31,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
31,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
49,
53
],
[
48,
54
],
[
12,
55
],
[
55,
56
],
[
0,
57
],
[
57,
58
],
[
57,
59
]
] |
[
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int k = Integer.parseInt(in.readLine());\n String s = in.readLine();\n \n if(s.length()<=k)\n System.out.println(s);\n else\n System.out.println(s.substring(0,k) + \"...\");\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int k = Integer.parseInt(in.readLine());\n String s = in.readLine();\n \n if(s.length()<=k)\n System.out.println(s);\n else\n System.out.println(s.substring(0,k) + \"...\");\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int k = Integer.parseInt(in.readLine());\n String s = in.readLine();\n \n if(s.length()<=k)\n System.out.println(s);\n else\n System.out.println(s.substring(0,k) + \"...\");\n }",
"main",
"{\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int k = Integer.parseInt(in.readLine());\n String s = in.readLine();\n \n if(s.length()<=k)\n System.out.println(s);\n else\n System.out.println(s.substring(0,k) + \"...\");\n }",
"BufferedReader in = new BufferedReader(new InputStreamReader(System.in));",
"in",
"new BufferedReader(new InputStreamReader(System.in))",
"int k = Integer.parseInt(in.readLine());",
"k",
"Integer.parseInt(in.readLine())",
"Integer.parseInt",
"Integer",
"in.readLine()",
"in.readLine",
"in",
"String s = in.readLine();",
"s",
"in.readLine()",
"in.readLine",
"in",
"if(s.length()<=k)\n System.out.println(s);\n else\n System.out.println(s.substring(0,k) + \"...\");",
"s.length()<=k",
"s.length()",
"s.length",
"s",
"k",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"System.out.println(s.substring(0,k) + \"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"s.substring(0,k) + \"...\"",
"s.substring(0,k)",
"s.substring",
"s",
"0",
"k",
"\"...\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int k = Integer.parseInt(in.readLine());\n String s = in.readLine();\n \n if(s.length()<=k)\n System.out.println(s);\n else\n System.out.println(s.substring(0,k) + \"...\");\n }\n}",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int k = Integer.parseInt(in.readLine());\n String s = in.readLine();\n \n if(s.length()<=k)\n System.out.println(s);\n else\n System.out.println(s.substring(0,k) + \"...\");\n }\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
int k = Integer.parseInt(in.readLine());
String s = in.readLine();
if(s.length()<=k)
System.out.println(s);
else
System.out.println(s.substring(0,k) + "...");
}
}
|
[
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,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
4,
18,
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
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
26,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
25,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
45,
49
],
[
44,
50
],
[
8,
51
],
[
51,
52
],
[
52,
53
],
[
6,
54
],
[
54,
55
],
[
0,
56
],
[
56,
57
],
[
56,
58
]
] |
[
"import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n\n Scanner scanner = new Scanner(System.in);\n int K = scanner.nextInt(); scanner.nextLine();\n String S = scanner.nextLine();\n\n if(S.length() <= K){\n System.out.println( S );\n\n }else{\n System.out.println( S.substring(0,K) + \"...\" );\n }\n\n scanner.close();\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args){\n\n Scanner scanner = new Scanner(System.in);\n int K = scanner.nextInt(); scanner.nextLine();\n String S = scanner.nextLine();\n\n if(S.length() <= K){\n System.out.println( S );\n\n }else{\n System.out.println( S.substring(0,K) + \"...\" );\n }\n\n scanner.close();\n }\n}",
"Main",
"public static void main(String[] args){\n\n Scanner scanner = new Scanner(System.in);\n int K = scanner.nextInt(); scanner.nextLine();\n String S = scanner.nextLine();\n\n if(S.length() <= K){\n System.out.println( S );\n\n }else{\n System.out.println( S.substring(0,K) + \"...\" );\n }\n\n scanner.close();\n }",
"main",
"{\n\n Scanner scanner = new Scanner(System.in);\n int K = scanner.nextInt(); scanner.nextLine();\n String S = scanner.nextLine();\n\n if(S.length() <= K){\n System.out.println( S );\n\n }else{\n System.out.println( S.substring(0,K) + \"...\" );\n }\n\n scanner.close();\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int K = scanner.nextInt();",
"K",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"String S = scanner.nextLine();",
"S",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"if(S.length() <= K){\n System.out.println( S );\n\n }else{\n System.out.println( S.substring(0,K) + \"...\" );\n }",
"S.length() <= K",
"S.length()",
"S.length",
"S",
"K",
"{\n System.out.println( S );\n\n }",
"System.out.println( S )",
"System.out.println",
"System.out",
"System",
"System.out",
"S",
"{\n System.out.println( S.substring(0,K) + \"...\" );\n }",
"System.out.println( S.substring(0,K) + \"...\" )",
"System.out.println",
"System.out",
"System",
"System.out",
"S.substring(0,K) + \"...\"",
"S.substring(0,K)",
"S.substring",
"S",
"0",
"K",
"\"...\"",
"scanner.close()",
"scanner.close",
"scanner",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n\n Scanner scanner = new Scanner(System.in);\n int K = scanner.nextInt(); scanner.nextLine();\n String S = scanner.nextLine();\n\n if(S.length() <= K){\n System.out.println( S );\n\n }else{\n System.out.println( S.substring(0,K) + \"...\" );\n }\n\n scanner.close();\n }\n}",
"public class Main{\n public static void main(String[] args){\n\n Scanner scanner = new Scanner(System.in);\n int K = scanner.nextInt(); scanner.nextLine();\n String S = scanner.nextLine();\n\n if(S.length() <= K){\n System.out.println( S );\n\n }else{\n System.out.println( S.substring(0,K) + \"...\" );\n }\n\n scanner.close();\n }\n}",
"Main"
] |
import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
int K = scanner.nextInt(); scanner.nextLine();
String S = scanner.nextLine();
if(S.length() <= K){
System.out.println( S );
}else{
System.out.println( S.substring(0,K) + "..." );
}
scanner.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
14,
2,
13,
4,
18,
13,
30,
0,
13,
13,
30,
0,
13,
2,
4,
18,
13,
17,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
62,
11
],
[
62,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
14,
31
],
[
31,
32
],
[
14,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
33,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
33,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
47,
51
],
[
46,
52
],
[
14,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
12,
59
],
[
59,
60
],
[
0,
61
],
[
61,
62
],
[
61,
63
]
] |
[
"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\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tString k = br.readLine();\n\n\t\tString ans;\n\t\tif(n >= k.length()) {\n\n\t\t\tans = k;\n\t\t}else {\n\n\t\t\tans = k.substring(0, n ) + \"...\";\n\t\t}\n\n\t\tSystem.out.println(ans);\n\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) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tString k = br.readLine();\n\n\t\tString ans;\n\t\tif(n >= k.length()) {\n\n\t\t\tans = k;\n\t\t}else {\n\n\t\t\tans = k.substring(0, n ) + \"...\";\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tString k = br.readLine();\n\n\t\tString ans;\n\t\tif(n >= k.length()) {\n\n\t\t\tans = k;\n\t\t}else {\n\n\t\t\tans = k.substring(0, n ) + \"...\";\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t}",
"main",
"{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tString k = br.readLine();\n\n\t\tString ans;\n\t\tif(n >= k.length()) {\n\n\t\t\tans = k;\n\t\t}else {\n\n\t\t\tans = k.substring(0, n ) + \"...\";\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"String k = br.readLine();",
"k",
"br.readLine()",
"br.readLine",
"br",
"String ans;",
"ans",
"if(n >= k.length()) {\n\n\t\t\tans = k;\n\t\t}else {\n\n\t\t\tans = k.substring(0, n ) + \"...\";\n\t\t}",
"n >= k.length()",
"n",
"k.length()",
"k.length",
"k",
"{\n\n\t\t\tans = k;\n\t\t}",
"ans = k",
"ans",
"k",
"{\n\n\t\t\tans = k.substring(0, n ) + \"...\";\n\t\t}",
"ans = k.substring(0, n ) + \"...\"",
"ans",
"k.substring(0, n ) + \"...\"",
"k.substring(0, n )",
"k.substring",
"k",
"0",
"n",
"\"...\"",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main{\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tString k = br.readLine();\n\n\t\tString ans;\n\t\tif(n >= k.length()) {\n\n\t\t\tans = k;\n\t\t}else {\n\n\t\t\tans = k.substring(0, n ) + \"...\";\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t}\n}",
"public 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\tint n = Integer.parseInt(br.readLine());\n\t\tString k = br.readLine();\n\n\t\tString ans;\n\t\tif(n >= k.length()) {\n\n\t\t\tans = k;\n\t\t}else {\n\n\t\t\tans = k.substring(0, n ) + \"...\";\n\t\t}\n\n\t\tSystem.out.println(ans);\n\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));
int n = Integer.parseInt(br.readLine());
String k = br.readLine();
String ans;
if(n >= k.length()) {
ans = k;
}else {
ans = k.substring(0, n ) + "...";
}
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
4,
18,
18,
13,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
66,
5
],
[
66,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
23,
27
],
[
22,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
22,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
35,
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;\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan =new Scanner(System.in);\n\t\tint K=scan.nextInt();\n\t\tString S=scan.next();\n\t\tif(S.length()<=K) {\n\t\t\tSystem.out.print(S);\n\t\t}\n\t\telse {\n\t\t\tfor(int i=0;i<K;i++)\n\t\t\t\tSystem.out.print(S.charAt(i));\n\t\t\tSystem.out.print(\"...\");\n\t\t}\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan =new Scanner(System.in);\n\t\tint K=scan.nextInt();\n\t\tString S=scan.next();\n\t\tif(S.length()<=K) {\n\t\t\tSystem.out.print(S);\n\t\t}\n\t\telse {\n\t\t\tfor(int i=0;i<K;i++)\n\t\t\t\tSystem.out.print(S.charAt(i));\n\t\t\tSystem.out.print(\"...\");\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan =new Scanner(System.in);\n\t\tint K=scan.nextInt();\n\t\tString S=scan.next();\n\t\tif(S.length()<=K) {\n\t\t\tSystem.out.print(S);\n\t\t}\n\t\telse {\n\t\t\tfor(int i=0;i<K;i++)\n\t\t\t\tSystem.out.print(S.charAt(i));\n\t\t\tSystem.out.print(\"...\");\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scan =new Scanner(System.in);\n\t\tint K=scan.nextInt();\n\t\tString S=scan.next();\n\t\tif(S.length()<=K) {\n\t\t\tSystem.out.print(S);\n\t\t}\n\t\telse {\n\t\t\tfor(int i=0;i<K;i++)\n\t\t\t\tSystem.out.print(S.charAt(i));\n\t\t\tSystem.out.print(\"...\");\n\t\t}\n\t}",
"Scanner scan =new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int K=scan.nextInt();",
"K",
"scan.nextInt()",
"scan.nextInt",
"scan",
"String S=scan.next();",
"S",
"scan.next()",
"scan.next",
"scan",
"if(S.length()<=K) {\n\t\t\tSystem.out.print(S);\n\t\t}\n\t\telse {\n\t\t\tfor(int i=0;i<K;i++)\n\t\t\t\tSystem.out.print(S.charAt(i));\n\t\t\tSystem.out.print(\"...\");\n\t\t}",
"S.length()<=K",
"S.length()",
"S.length",
"S",
"K",
"{\n\t\t\tSystem.out.print(S);\n\t\t}",
"System.out.print(S)",
"System.out.print",
"System.out",
"System",
"System.out",
"S",
"{\n\t\t\tfor(int i=0;i<K;i++)\n\t\t\t\tSystem.out.print(S.charAt(i));\n\t\t\tSystem.out.print(\"...\");\n\t\t}",
"for(int i=0;i<K;i++)\n\t\t\t\tSystem.out.print(S.charAt(i));",
"int i=0;",
"int i=0;",
"i",
"0",
"i<K",
"i",
"K",
"i++",
"i++",
"i",
"System.out.print(S.charAt(i));",
"System.out.print(S.charAt(i))",
"System.out.print",
"System.out",
"System",
"System.out",
"S.charAt(i)",
"S.charAt",
"S",
"i",
"System.out.print(\"...\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"...\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan =new Scanner(System.in);\n\t\tint K=scan.nextInt();\n\t\tString S=scan.next();\n\t\tif(S.length()<=K) {\n\t\t\tSystem.out.print(S);\n\t\t}\n\t\telse {\n\t\t\tfor(int i=0;i<K;i++)\n\t\t\t\tSystem.out.print(S.charAt(i));\n\t\t\tSystem.out.print(\"...\");\n\t\t}\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan =new Scanner(System.in);\n\t\tint K=scan.nextInt();\n\t\tString S=scan.next();\n\t\tif(S.length()<=K) {\n\t\t\tSystem.out.print(S);\n\t\t}\n\t\telse {\n\t\t\tfor(int i=0;i<K;i++)\n\t\t\t\tSystem.out.print(S.charAt(i));\n\t\t\tSystem.out.print(\"...\");\n\t\t}\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan =new Scanner(System.in);
int K=scan.nextInt();
String S=scan.next();
if(S.length()<=K) {
System.out.print(S);
}
else {
for(int i=0;i<K;i++)
System.out.print(S.charAt(i));
System.out.print("...");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
4,
18,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
4,
18,
13,
17,
13,
17,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
21,
25
],
[
20,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
33,
34
],
[
20,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
44,
48
],
[
41,
49
],
[
6,
50
],
[
50,
51
]
] |
[
"import java.util.*;\nclass Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n StringBuilder sb = new StringBuilder(sc.next());\n if(sb.length() <= K){\n System.out.print(sb.toString());\n }else{\n System.out.print(sb.substring(0, K).toString() + \"...\");\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n StringBuilder sb = new StringBuilder(sc.next());\n if(sb.length() <= K){\n System.out.print(sb.toString());\n }else{\n System.out.print(sb.substring(0, K).toString() + \"...\");\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n StringBuilder sb = new StringBuilder(sc.next());\n if(sb.length() <= K){\n System.out.print(sb.toString());\n }else{\n System.out.print(sb.substring(0, K).toString() + \"...\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n StringBuilder sb = new StringBuilder(sc.next());\n if(sb.length() <= K){\n System.out.print(sb.toString());\n }else{\n System.out.print(sb.substring(0, K).toString() + \"...\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"StringBuilder sb = new StringBuilder(sc.next());",
"sb",
"new StringBuilder(sc.next())",
"if(sb.length() <= K){\n System.out.print(sb.toString());\n }else{\n System.out.print(sb.substring(0, K).toString() + \"...\");\n }",
"sb.length() <= K",
"sb.length()",
"sb.length",
"sb",
"K",
"{\n System.out.print(sb.toString());\n }",
"System.out.print(sb.toString())",
"System.out.print",
"System.out",
"System",
"System.out",
"sb.toString()",
"sb.toString",
"sb",
"{\n System.out.print(sb.substring(0, K).toString() + \"...\");\n }",
"System.out.print(sb.substring(0, K).toString() + \"...\")",
"System.out.print",
"System.out",
"System",
"System.out",
"sb.substring(0, K).toString() + \"...\"",
"sb.substring(0, K).toString()",
"sb.substring(0, K).toString",
"sb.substring(0, K)",
"sb.substring",
"sb",
"0",
"K",
"\"...\"",
"String[] args",
"args"
] |
import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
StringBuilder sb = new StringBuilder(sc.next());
if(sb.length() <= K){
System.out.print(sb.toString());
}else{
System.out.print(sb.substring(0, K).toString() + "...");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
2,
4,
18,
13,
2,
13,
17,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
76,
5
],
[
76,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
23,
27
],
[
22,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
22,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
36,
46
],
[
46,
47
],
[
47,
48
],
[
36,
49
],
[
50,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
35,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
69,
70
],
[
69,
71
],
[
65,
72
],
[
6,
73
],
[
73,
74
],
[
0,
75
],
[
75,
76
],
[
75,
77
]
] |
[
"import java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n \tScanner sc = new Scanner(System.in);\n\t\tint k = sc.nextInt();\n\t\tString s = sc.next();\n\t\tif ( s.length()<=k ) {\n\t\t\tSystem.out.println(s);\n\t\t} else {\n\t\t\tfor ( int i=0 ;i<k-1 ; i++ ) {\n\t\t\t\tSystem.out.print(s.charAt(i));\n\t\t\t}\n\t\t\tSystem.out.println(s.charAt(k-1)+ \"...\" );\n\t\t}\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n \tScanner sc = new Scanner(System.in);\n\t\tint k = sc.nextInt();\n\t\tString s = sc.next();\n\t\tif ( s.length()<=k ) {\n\t\t\tSystem.out.println(s);\n\t\t} else {\n\t\t\tfor ( int i=0 ;i<k-1 ; i++ ) {\n\t\t\t\tSystem.out.print(s.charAt(i));\n\t\t\t}\n\t\t\tSystem.out.println(s.charAt(k-1)+ \"...\" );\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n \tScanner sc = new Scanner(System.in);\n\t\tint k = sc.nextInt();\n\t\tString s = sc.next();\n\t\tif ( s.length()<=k ) {\n\t\t\tSystem.out.println(s);\n\t\t} else {\n\t\t\tfor ( int i=0 ;i<k-1 ; i++ ) {\n\t\t\t\tSystem.out.print(s.charAt(i));\n\t\t\t}\n\t\t\tSystem.out.println(s.charAt(k-1)+ \"...\" );\n\t\t}\n\t}",
"main",
"{\n \tScanner sc = new Scanner(System.in);\n\t\tint k = sc.nextInt();\n\t\tString s = sc.next();\n\t\tif ( s.length()<=k ) {\n\t\t\tSystem.out.println(s);\n\t\t} else {\n\t\t\tfor ( int i=0 ;i<k-1 ; i++ ) {\n\t\t\t\tSystem.out.print(s.charAt(i));\n\t\t\t}\n\t\t\tSystem.out.println(s.charAt(k-1)+ \"...\" );\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"if ( s.length()<=k ) {\n\t\t\tSystem.out.println(s);\n\t\t} else {\n\t\t\tfor ( int i=0 ;i<k-1 ; i++ ) {\n\t\t\t\tSystem.out.print(s.charAt(i));\n\t\t\t}\n\t\t\tSystem.out.println(s.charAt(k-1)+ \"...\" );\n\t\t}",
"s.length()<=k",
"s.length()",
"s.length",
"s",
"k",
"{\n\t\t\tSystem.out.println(s);\n\t\t}",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"{\n\t\t\tfor ( int i=0 ;i<k-1 ; i++ ) {\n\t\t\t\tSystem.out.print(s.charAt(i));\n\t\t\t}\n\t\t\tSystem.out.println(s.charAt(k-1)+ \"...\" );\n\t\t}",
"for ( int i=0 ;i<k-1 ; i++ ) {\n\t\t\t\tSystem.out.print(s.charAt(i));\n\t\t\t}",
"int i=0 ;",
"int i=0 ;",
"i",
"0",
"i<k-1",
"i",
"k-1",
"k",
"1",
"i++",
"i++",
"i",
"{\n\t\t\t\tSystem.out.print(s.charAt(i));\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(s.charAt(i));\n\t\t\t}",
"System.out.print(s.charAt(i))",
"System.out.print",
"System.out",
"System",
"System.out",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"System.out.println(s.charAt(k-1)+ \"...\" )",
"System.out.println",
"System.out",
"System",
"System.out",
"s.charAt(k-1)+ \"...\"",
"s.charAt(k-1)",
"s.charAt",
"s",
"k-1",
"k",
"1",
"\"...\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n \tScanner sc = new Scanner(System.in);\n\t\tint k = sc.nextInt();\n\t\tString s = sc.next();\n\t\tif ( s.length()<=k ) {\n\t\t\tSystem.out.println(s);\n\t\t} else {\n\t\t\tfor ( int i=0 ;i<k-1 ; i++ ) {\n\t\t\t\tSystem.out.print(s.charAt(i));\n\t\t\t}\n\t\t\tSystem.out.println(s.charAt(k-1)+ \"...\" );\n\t\t}\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n \tScanner sc = new Scanner(System.in);\n\t\tint k = sc.nextInt();\n\t\tString s = sc.next();\n\t\tif ( s.length()<=k ) {\n\t\t\tSystem.out.println(s);\n\t\t} else {\n\t\t\tfor ( int i=0 ;i<k-1 ; i++ ) {\n\t\t\t\tSystem.out.print(s.charAt(i));\n\t\t\t}\n\t\t\tSystem.out.println(s.charAt(k-1)+ \"...\" );\n\t\t}\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int k = sc.nextInt();
String s = sc.next();
if ( s.length()<=k ) {
System.out.println(s);
} else {
for ( int i=0 ;i<k-1 ; i++ ) {
System.out.print(s.charAt(i));
}
System.out.println(s.charAt(k-1)+ "..." );
}
}
}
|
[
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,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
0,
13,
2,
4,
18,
13,
17,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
29,
33
],
[
28,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
38,
42
],
[
37,
43
],
[
8,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
6,
50
],
[
50,
51
]
] |
[
"import java.util.Scanner;\n\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n byte k = sc.nextByte();\n sc.nextLine();\n String s = sc.nextLine();\n sc.close();\n if(s.length() > k) {\n s = s.substring(0, k) + \"...\";\n }\n System.out.println(s);\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 byte k = sc.nextByte();\n sc.nextLine();\n String s = sc.nextLine();\n sc.close();\n if(s.length() > k) {\n s = s.substring(0, k) + \"...\";\n }\n System.out.println(s);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n byte k = sc.nextByte();\n sc.nextLine();\n String s = sc.nextLine();\n sc.close();\n if(s.length() > k) {\n s = s.substring(0, k) + \"...\";\n }\n System.out.println(s);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n byte k = sc.nextByte();\n sc.nextLine();\n String s = sc.nextLine();\n sc.close();\n if(s.length() > k) {\n s = s.substring(0, k) + \"...\";\n }\n System.out.println(s);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"byte k = sc.nextByte();",
"k",
"sc.nextByte()",
"sc.nextByte",
"sc",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String s = sc.nextLine();",
"s",
"sc.nextLine()",
"sc.nextLine",
"sc",
"sc.close()",
"sc.close",
"sc",
"if(s.length() > k) {\n s = s.substring(0, k) + \"...\";\n }",
"s.length() > k",
"s.length()",
"s.length",
"s",
"k",
"{\n s = s.substring(0, k) + \"...\";\n }",
"s = s.substring(0, k) + \"...\"",
"s",
"s.substring(0, k) + \"...\"",
"s.substring(0, k)",
"s.substring",
"s",
"0",
"k",
"\"...\"",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"String[] args",
"args"
] |
import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
byte k = sc.nextByte();
sc.nextLine();
String s = sc.nextLine();
sc.close();
if(s.length() > k) {
s = s.substring(0, k) + "...";
}
System.out.println(s);
}
}
|
[
7,
6,
12,
13,
30,
29,
2,
18,
13,
13,
18,
13,
13,
23,
13,
23,
13,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
2,
17,
17,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
17,
4,
18,
13,
23,
13,
12,
13,
30,
14,
2,
2,
13,
2,
13,
13,
2,
13,
4,
13,
2,
13,
13,
29,
17,
29,
17,
23,
13,
23,
13,
23,
13,
12,
13,
30,
29,
8,
2,
13,
17,
13,
40,
13,
23,
13,
12,
13,
30,
29,
8,
2,
13,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
29,
17,
41,
13,
4,
13,
13,
2,
13,
17,
41,
13,
2,
2,
13,
13,
13,
14,
2,
2,
13,
17,
17,
29,
13,
29,
2,
2,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
28,
13,
13,
30,
4,
18,
13,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
28,
13,
13,
30,
4,
18,
13,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
13,
29,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
4,
18,
13,
13,
20,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
23,
13,
12,
13,
30,
42,
40,
4,
18,
13,
30,
38,
5,
13,
30,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
6,
13,
12,
13,
30,
4,
13,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
13,
2,
18,
13,
13,
17,
4,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
13,
2,
18,
13,
13,
17,
4,
13,
23,
13,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
2,
3
],
[
2,
4
],
[
4,
5
],
[
5,
6
],
[
6,
7
],
[
7,
8
],
[
7,
9
],
[
6,
10
],
[
10,
11
],
[
10,
12
],
[
2,
13
],
[
13,
14
],
[
2,
15
],
[
15,
16
],
[
0,
17
],
[
17,
18
],
[
17,
19
],
[
0,
20
],
[
20,
21
],
[
20,
22
],
[
0,
23
],
[
500,
24
],
[
500,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
27,
29
],
[
500,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
36,
38
],
[
32,
39
],
[
39,
40
],
[
39,
41
],
[
32,
42
],
[
42,
43
],
[
43,
44
],
[
30,
45
],
[
45,
46
],
[
500,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
51,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
50,
64
],
[
64,
65
],
[
49,
66
],
[
66,
67
],
[
47,
68
],
[
68,
69
],
[
47,
70
],
[
70,
71
],
[
47,
72
],
[
72,
73
],
[
500,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
78,
83
],
[
83,
84
],
[
74,
85
],
[
85,
86
],
[
500,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
91,
96
],
[
87,
97
],
[
97,
98
],
[
87,
99
],
[
99,
100
],
[
500,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
108,
109
],
[
103,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
112,
114
],
[
112,
115
],
[
115,
116
],
[
115,
117
],
[
103,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
103,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
126,
130
],
[
125,
131
],
[
131,
132
],
[
103,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
101,
139
],
[
139,
140
],
[
101,
141
],
[
141,
142
],
[
500,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
145,
149
],
[
149,
150
],
[
149,
151
],
[
149,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
153,
156
],
[
145,
157
],
[
157,
158
],
[
158,
159
],
[
157,
160
],
[
145,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
161,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
168,
170
],
[
161,
171
],
[
171,
172
],
[
172,
173
],
[
161,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
175,
179
],
[
179,
180
],
[
180,
181
],
[
179,
182
],
[
143,
183
],
[
183,
184
],
[
500,
185
],
[
185,
186
],
[
185,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
187,
191
],
[
191,
192
],
[
191,
193
],
[
191,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
195,
198
],
[
187,
199
],
[
199,
200
],
[
200,
201
],
[
199,
202
],
[
187,
203
],
[
203,
204
],
[
204,
205
],
[
205,
206
],
[
205,
207
],
[
203,
208
],
[
208,
209
],
[
208,
210
],
[
210,
211
],
[
210,
212
],
[
203,
213
],
[
213,
214
],
[
214,
215
],
[
203,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
218,
220
],
[
217,
221
],
[
221,
222
],
[
222,
223
],
[
221,
224
],
[
185,
225
],
[
225,
226
],
[
500,
227
],
[
227,
228
],
[
227,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
229,
234
],
[
234,
235
],
[
235,
236
],
[
236,
237
],
[
236,
238
],
[
234,
239
],
[
239,
240
],
[
239,
241
],
[
234,
242
],
[
242,
243
],
[
243,
244
],
[
234,
245
],
[
245,
246
],
[
246,
247
],
[
247,
248
],
[
247,
249
],
[
246,
250
],
[
229,
251
],
[
251,
252
],
[
227,
253
],
[
253,
254
],
[
227,
255
],
[
255,
256
],
[
500,
257
],
[
257,
258
],
[
257,
259
],
[
259,
260
],
[
257,
261
],
[
261,
262
],
[
257,
263
],
[
263,
264
],
[
263,
265
],
[
265,
266
],
[
266,
267
],
[
267,
268
],
[
267,
269
],
[
266,
270
],
[
265,
271
],
[
271,
272
],
[
272,
273
],
[
272,
274
],
[
271,
275
],
[
263,
276
],
[
276,
277
],
[
263,
278
],
[
278,
279
],
[
257,
280
],
[
280,
281
],
[
280,
282
],
[
282,
283
],
[
283,
284
],
[
283,
285
],
[
282,
286
],
[
286,
287
],
[
287,
288
],
[
286,
289
],
[
286,
290
],
[
282,
291
],
[
291,
292
],
[
292,
293
],
[
293,
294
],
[
293,
295
],
[
291,
296
],
[
296,
297
],
[
296,
298
],
[
298,
299
],
[
299,
300
],
[
291,
301
],
[
301,
302
],
[
302,
303
],
[
291,
304
],
[
305,
305
],
[
305,
306
],
[
306,
307
],
[
307,
308
],
[
307,
309
],
[
306,
310
],
[
310,
311
],
[
311,
312
],
[
310,
313
],
[
280,
314
],
[
314,
315
],
[
500,
316
],
[
316,
317
],
[
316,
318
],
[
318,
319
],
[
316,
320
],
[
320,
321
],
[
316,
322
],
[
322,
323
],
[
322,
324
],
[
324,
325
],
[
325,
326
],
[
325,
327
],
[
324,
328
],
[
328,
329
],
[
328,
330
],
[
322,
331
],
[
331,
332
],
[
316,
333
],
[
333,
334
],
[
333,
335
],
[
335,
336
],
[
336,
337
],
[
337,
338
],
[
338,
339
],
[
339,
340
],
[
336,
341
],
[
341,
342
],
[
342,
343
],
[
343,
344
],
[
343,
345
],
[
342,
346
],
[
346,
347
],
[
347,
348
],
[
347,
349
],
[
335,
350
],
[
350,
351
],
[
351,
352
],
[
352,
353
],
[
316,
354
],
[
354,
355
],
[
354,
356
],
[
356,
357
],
[
357,
358
],
[
358,
359
],
[
359,
360
],
[
358,
361
],
[
361,
362
],
[
316,
363
],
[
363,
364
],
[
363,
365
],
[
365,
366
],
[
366,
367
],
[
367,
368
],
[
368,
369
],
[
367,
370
],
[
370,
371
],
[
316,
372
],
[
372,
373
],
[
372,
374
],
[
374,
375
],
[
375,
376
],
[
375,
377
],
[
374,
379
],
[
379,
380
],
[
380,
381
],
[
381,
382
],
[
381,
383
],
[
379,
384
],
[
384,
385
],
[
384,
386
],
[
379,
387
],
[
387,
388
],
[
388,
389
],
[
379,
390
],
[
390,
391
],
[
391,
392
],
[
392,
393
],
[
392,
394
],
[
391,
395
],
[
395,
396
],
[
374,
397
],
[
397,
398
],
[
372,
399
],
[
399,
400
],
[
316,
401
],
[
401,
402
],
[
401,
403
],
[
403,
404
],
[
404,
405
],
[
404,
406
],
[
403,
408
],
[
408,
409
],
[
409,
410
],
[
410,
411
],
[
410,
412
],
[
408,
413
],
[
413,
414
],
[
413,
415
],
[
408,
416
],
[
416,
417
],
[
417,
418
],
[
408,
419
],
[
419,
420
],
[
420,
421
],
[
421,
422
],
[
421,
423
],
[
420,
424
],
[
424,
425
],
[
403,
426
],
[
426,
427
],
[
401,
428
],
[
428,
429
],
[
500,
430
],
[
430,
431
],
[
430,
432
],
[
432,
433
],
[
432,
434
],
[
434,
435
],
[
435,
436
],
[
435,
437
],
[
432,
438
],
[
438,
439
],
[
430,
440
],
[
440,
441
],
[
440,
442
],
[
442,
443
],
[
443,
444
],
[
444,
445
],
[
445,
446
],
[
445,
447
],
[
443,
448
],
[
448,
449
],
[
448,
450
],
[
450,
451
],
[
450,
452
],
[
443,
453
],
[
453,
454
],
[
454,
455
],
[
443,
456
],
[
457,
457
],
[
457,
458
],
[
458,
459
],
[
458,
460
],
[
460,
461
],
[
461,
462
],
[
461,
463
],
[
460,
464
],
[
442,
465
],
[
465,
466
],
[
440,
467
],
[
467,
468
],
[
430,
469
],
[
469,
470
],
[
469,
471
],
[
471,
472
],
[
472,
473
],
[
473,
474
],
[
474,
475
],
[
474,
476
],
[
472,
477
],
[
477,
478
],
[
477,
479
],
[
479,
480
],
[
479,
481
],
[
472,
482
],
[
482,
483
],
[
483,
484
],
[
472,
485
],
[
486,
486
],
[
486,
487
],
[
487,
488
],
[
487,
489
],
[
489,
490
],
[
490,
491
],
[
490,
492
],
[
489,
493
],
[
471,
494
],
[
494,
495
],
[
469,
496
],
[
496,
497
],
[
430,
498
],
[
0,
499
],
[
499,
500
],
[
499,
501
]
] |
[
"import java.io.*;\nimport java.util.*;\n\npublic class Main{\n\t\n\tstatic long mod=(long)1e9+7;\n\t\n\tpublic static void main(String[] args) throws IOException {\n\t\tWriter out=new Writer(System.out);\n\t\tReader in=new Reader(System.in);\n\t\tint ts=1;\n\t\t\n\t\touter: while(ts-->0) {\t\n\t\t\tint k=in.nextInt();\n\t\t\tString s=in.next();\n\t\t\tif(s.length()<=k) out.println(s);\n\t\t\telse out.println(s.substring(0,k)+\"...\");\n\t\t}\n\t\tout.close();\t\t\n\t\t\n\t}\n\n\tstatic boolean tri(int a, int b, int c) {\n\t\tif(c<a+b && c>abs(a-b)) return true;\n\t\treturn false;\n\t}\n\t\n\t\n/*********************************** UTILITY CODE BELOW **************************************/\t\n\t\t\n\tstatic int abs(int a) {\n\t\treturn a>0 ? a : -a;\n\t}\n\t\n\tstatic int max(int a, int b) {\n\t\treturn a>b ? a : b;\n\t}\n\t\n\tstatic int pow(int n, int m) {\n\t\tif(m==0) return 1;\n\t\tint temp=pow(n,m/2);\n\t\tlong res=(((long)temp*temp)%mod);\n\t\tif(m%2==0) return (int)res;\n\t\treturn (int)((res*n)%mod);\n\t}\n\t\n\tstatic class Pair{\n\t\tint u, v;\n\t\t\n\t\tPair(int u, int v){this.u=u; this.v=v;}\n\t\t\n\t\tstatic void sort(Pair [] coll) {\t\t\n\t\t\tList<Pair> al=new ArrayList<>(Arrays.asList(coll));\n\t\t\tCollections.sort(al,new Comparator<Pair>() {\n\t\t\t\tpublic int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}\t\n\t\t\t});\n\t\t\tfor(int i=0; i<al.size(); i++) {\n\t\t\t\tcoll[i]=al.get(i);\n\t\t\t}\n\t\t}\n\t\t\n\t}\n\t\n\tstatic void sort(int[] a) {\n\t\tArrayList<Integer> list=new ArrayList<>();\n\t\tfor (int i:a) list.add(i);\n\t\tCollections.sort(list);\n\t\tfor (int i=0; i<a.length; i++) a[i]=list.get(i);\n\t}\n\t\n\tstatic void sort(long a[]) {\n\t\tArrayList<Long> list=new ArrayList<>();\n\t\tfor(long i: a) list.add(i);\n\t\tCollections.sort(list);\n\t\tfor(int i=0; i<a.length; i++) a[i]=list.get(i);\n\t}\n\t\n\tstatic int [] array(int n, int value) {\t\n\t\tint a[]=new int[n];\n\t\tfor(int i=0; i<n; i++) a[i]=value;\n\t\treturn a;\n\t}\n\t\n\tstatic class Reader{\n\t\t\n\t\tBufferedReader br;\n\t\tStringTokenizer to;\n\t\t\n\t\tReader(InputStream stream){\n\t\t\tbr=new BufferedReader(new InputStreamReader(stream));\n\t\t\tto=new StringTokenizer(\"\");\n\t\t}\n\t\t\n\t\tString next() {\n\t\t\twhile(!to.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}catch(IOException e) {}\n\t\t\t\t\n\t\t\t}\n\t\t\treturn to.nextToken();\n\t\t\t\n\t\t}\n\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\t\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\t\n\t\tint [] readArray(int n) {\n\t\t\tint a[]=new int[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong [] readLongArray(int n) {\n\t\t\tlong a[]=new long[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextLong();\n\t\t\treturn a;\n\t\t}\n\t\t\n\t}\n\t\n\tstatic class Writer extends PrintWriter{\n\t\tWriter(OutputStream stream){\n\t\t\tsuper(stream);\n\t\t}\n\t\tvoid println(int [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}\n\t\tvoid println(long [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}\n\t}\n\t\n}",
"Comparator<Pair>() {\n\t\t\t\tpublic int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}\t\n\t\t\t}",
"public int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}",
"compare",
"{\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}",
"return p1.u-p2.u;",
"p1.u-p2.u",
"p1.u",
"p1",
"p1.u",
"p2.u",
"p2",
"p2.u",
"Pair p1",
"p1",
"Pair p2",
"p2",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\t\n\tstatic long mod=(long)1e9+7;\n\t\n\tpublic static void main(String[] args) throws IOException {\n\t\tWriter out=new Writer(System.out);\n\t\tReader in=new Reader(System.in);\n\t\tint ts=1;\n\t\t\n\t\touter: while(ts-->0) {\t\n\t\t\tint k=in.nextInt();\n\t\t\tString s=in.next();\n\t\t\tif(s.length()<=k) out.println(s);\n\t\t\telse out.println(s.substring(0,k)+\"...\");\n\t\t}\n\t\tout.close();\t\t\n\t\t\n\t}\n\n\tstatic boolean tri(int a, int b, int c) {\n\t\tif(c<a+b && c>abs(a-b)) return true;\n\t\treturn false;\n\t}\n\t\n\t\n/*********************************** UTILITY CODE BELOW **************************************/\t\n\t\t\n\tstatic int abs(int a) {\n\t\treturn a>0 ? a : -a;\n\t}\n\t\n\tstatic int max(int a, int b) {\n\t\treturn a>b ? a : b;\n\t}\n\t\n\tstatic int pow(int n, int m) {\n\t\tif(m==0) return 1;\n\t\tint temp=pow(n,m/2);\n\t\tlong res=(((long)temp*temp)%mod);\n\t\tif(m%2==0) return (int)res;\n\t\treturn (int)((res*n)%mod);\n\t}\n\t\n\tstatic class Pair{\n\t\tint u, v;\n\t\t\n\t\tPair(int u, int v){this.u=u; this.v=v;}\n\t\t\n\t\tstatic void sort(Pair [] coll) {\t\t\n\t\t\tList<Pair> al=new ArrayList<>(Arrays.asList(coll));\n\t\t\tCollections.sort(al,new Comparator<Pair>() {\n\t\t\t\tpublic int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}\t\n\t\t\t});\n\t\t\tfor(int i=0; i<al.size(); i++) {\n\t\t\t\tcoll[i]=al.get(i);\n\t\t\t}\n\t\t}\n\t\t\n\t}\n\t\n\tstatic void sort(int[] a) {\n\t\tArrayList<Integer> list=new ArrayList<>();\n\t\tfor (int i:a) list.add(i);\n\t\tCollections.sort(list);\n\t\tfor (int i=0; i<a.length; i++) a[i]=list.get(i);\n\t}\n\t\n\tstatic void sort(long a[]) {\n\t\tArrayList<Long> list=new ArrayList<>();\n\t\tfor(long i: a) list.add(i);\n\t\tCollections.sort(list);\n\t\tfor(int i=0; i<a.length; i++) a[i]=list.get(i);\n\t}\n\t\n\tstatic int [] array(int n, int value) {\t\n\t\tint a[]=new int[n];\n\t\tfor(int i=0; i<n; i++) a[i]=value;\n\t\treturn a;\n\t}\n\t\n\tstatic class Reader{\n\t\t\n\t\tBufferedReader br;\n\t\tStringTokenizer to;\n\t\t\n\t\tReader(InputStream stream){\n\t\t\tbr=new BufferedReader(new InputStreamReader(stream));\n\t\t\tto=new StringTokenizer(\"\");\n\t\t}\n\t\t\n\t\tString next() {\n\t\t\twhile(!to.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}catch(IOException e) {}\n\t\t\t\t\n\t\t\t}\n\t\t\treturn to.nextToken();\n\t\t\t\n\t\t}\n\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\t\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\t\n\t\tint [] readArray(int n) {\n\t\t\tint a[]=new int[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong [] readLongArray(int n) {\n\t\t\tlong a[]=new long[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextLong();\n\t\t\treturn a;\n\t\t}\n\t\t\n\t}\n\t\n\tstatic class Writer extends PrintWriter{\n\t\tWriter(OutputStream stream){\n\t\t\tsuper(stream);\n\t\t}\n\t\tvoid println(int [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}\n\t\tvoid println(long [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}\n\t}\n\t\n}",
"Main",
"static long mod=(long)1e9+7;",
"mod",
"(long)1e9+7",
"(long)1e9",
"7",
"public static void main(String[] args) throws IOException {\n\t\tWriter out=new Writer(System.out);\n\t\tReader in=new Reader(System.in);\n\t\tint ts=1;\n\t\t\n\t\touter: while(ts-->0) {\t\n\t\t\tint k=in.nextInt();\n\t\t\tString s=in.next();\n\t\t\tif(s.length()<=k) out.println(s);\n\t\t\telse out.println(s.substring(0,k)+\"...\");\n\t\t}\n\t\tout.close();\t\t\n\t\t\n\t}",
"main",
"{\n\t\tWriter out=new Writer(System.out);\n\t\tReader in=new Reader(System.in);\n\t\tint ts=1;\n\t\t\n\t\touter: while(ts-->0) {\t\n\t\t\tint k=in.nextInt();\n\t\t\tString s=in.next();\n\t\t\tif(s.length()<=k) out.println(s);\n\t\t\telse out.println(s.substring(0,k)+\"...\");\n\t\t}\n\t\tout.close();\t\t\n\t\t\n\t}",
"Writer out=new Writer(System.out);",
"out",
"new Writer(System.out)",
"Reader in=new Reader(System.in);",
"in",
"new Reader(System.in)",
"int ts=1;",
"ts",
"1",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static boolean tri(int a, int b, int c) {\n\t\tif(c<a+b && c>abs(a-b)) return true;\n\t\treturn false;\n\t}",
"tri",
"{\n\t\tif(c<a+b && c>abs(a-b)) return true;\n\t\treturn false;\n\t}",
"if(c<a+b && c>abs(a-b)) return true;",
"c<a+b && c>abs(a-b)",
"c<a+b",
"c",
"a+b",
"a",
"b",
"c>abs(a-b)",
"c",
"abs(a-b)",
"abs",
"a-b",
"a",
"b",
"return true;",
"true",
"return false;",
"false",
"int a",
"a",
"int b",
"b",
"int c",
"c",
"/*********************************** UTILITY CODE BELOW **************************************/\t\n\t\t\n\tstatic int abs(int a) {\n\t\treturn a>0 ? a : -a;\n\t}",
"abs",
"{\n\t\treturn a>0 ? a : -a;\n\t}",
"return a>0 ? a : -a;",
"a>0 ? a : -a",
"a>0",
"a",
"0",
"a",
"-a",
"a",
"int a",
"a",
"static int max(int a, int b) {\n\t\treturn a>b ? a : b;\n\t}",
"max",
"{\n\t\treturn a>b ? a : b;\n\t}",
"return a>b ? a : b;",
"a>b ? a : b",
"a>b",
"a",
"b",
"a",
"b",
"int a",
"a",
"int b",
"b",
"static int pow(int n, int m) {\n\t\tif(m==0) return 1;\n\t\tint temp=pow(n,m/2);\n\t\tlong res=(((long)temp*temp)%mod);\n\t\tif(m%2==0) return (int)res;\n\t\treturn (int)((res*n)%mod);\n\t}",
"pow",
"{\n\t\tif(m==0) return 1;\n\t\tint temp=pow(n,m/2);\n\t\tlong res=(((long)temp*temp)%mod);\n\t\tif(m%2==0) return (int)res;\n\t\treturn (int)((res*n)%mod);\n\t}",
"if(m==0) return 1;",
"m==0",
"m",
"0",
"return 1;",
"1",
"int temp=pow(n,m/2);",
"temp",
"pow(n,m/2)",
"pow",
"n",
"m/2",
"m",
"2",
"long res=(((long)temp*temp)%mod);",
"res",
"(((long)temp*temp)%mod)",
"((long)temp*temp)",
"(long)temp",
"temp",
"mod",
"if(m%2==0) return (int)res;",
"m%2==0",
"m%2",
"m",
"2",
"0",
"return (int)res;",
"(int)res",
"return (int)((res*n)%mod);",
"(int)((res*n)%mod)",
"(res*n)",
"res",
"n",
"mod",
"int n",
"n",
"int m",
"m",
"static void sort(int[] a) {\n\t\tArrayList<Integer> list=new ArrayList<>();\n\t\tfor (int i:a) list.add(i);\n\t\tCollections.sort(list);\n\t\tfor (int i=0; i<a.length; i++) a[i]=list.get(i);\n\t}",
"sort",
"{\n\t\tArrayList<Integer> list=new ArrayList<>();\n\t\tfor (int i:a) list.add(i);\n\t\tCollections.sort(list);\n\t\tfor (int i=0; i<a.length; i++) a[i]=list.get(i);\n\t}",
"ArrayList<Integer> list=new ArrayList<>();",
"list",
"new ArrayList<>()",
"for (int i:a) list.add(i);",
"int i",
"a",
"list.add(i);",
"list.add(i)",
"list.add",
"list",
"i",
"Collections.sort(list)",
"Collections.sort",
"Collections",
"list",
"for (int i=0; i<a.length; i++) a[i]=list.get(i);",
"int i=0;",
"int i=0;",
"i",
"0",
"i<a.length",
"i",
"a.length",
"a",
"a.length",
"i++",
"i++",
"i",
"a[i]=list.get(i);",
"a[i]=list.get(i)",
"a[i]",
"a",
"i",
"list.get(i)",
"list.get",
"list",
"i",
"int[] a",
"a",
"static void sort(long a[]) {\n\t\tArrayList<Long> list=new ArrayList<>();\n\t\tfor(long i: a) list.add(i);\n\t\tCollections.sort(list);\n\t\tfor(int i=0; i<a.length; i++) a[i]=list.get(i);\n\t}",
"sort",
"{\n\t\tArrayList<Long> list=new ArrayList<>();\n\t\tfor(long i: a) list.add(i);\n\t\tCollections.sort(list);\n\t\tfor(int i=0; i<a.length; i++) a[i]=list.get(i);\n\t}",
"ArrayList<Long> list=new ArrayList<>();",
"list",
"new ArrayList<>()",
"for(long i: a) list.add(i);",
"long i",
"a",
"list.add(i);",
"list.add(i)",
"list.add",
"list",
"i",
"Collections.sort(list)",
"Collections.sort",
"Collections",
"list",
"for(int i=0; i<a.length; i++) a[i]=list.get(i);",
"int i=0;",
"int i=0;",
"i",
"0",
"i<a.length",
"i",
"a.length",
"a",
"a.length",
"i++",
"i++",
"i",
"a[i]=list.get(i);",
"a[i]=list.get(i)",
"a[i]",
"a",
"i",
"list.get(i)",
"list.get",
"list",
"i",
"long a[]",
"a",
"static int [] array(int n, int value) {\t\n\t\tint a[]=new int[n];\n\t\tfor(int i=0; i<n; i++) a[i]=value;\n\t\treturn a;\n\t}",
"array",
"{\t\n\t\tint a[]=new int[n];\n\t\tfor(int i=0; i<n; i++) a[i]=value;\n\t\treturn a;\n\t}",
"int a[]=new int[n];",
"a",
"new int[n]",
"n",
"for(int i=0; i<n; i++) a[i]=value;",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"a[i]=value;",
"a[i]=value",
"a[i]",
"a",
"i",
"value",
"return a;",
"a",
"int n",
"n",
"int value",
"value",
"static class Pair{\n\t\tint u, v;\n\t\t\n\t\tPair(int u, int v){this.u=u; this.v=v;}\n\t\t\n\t\tstatic void sort(Pair [] coll) {\t\t\n\t\t\tList<Pair> al=new ArrayList<>(Arrays.asList(coll));\n\t\t\tCollections.sort(al,new Comparator<Pair>() {\n\t\t\t\tpublic int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}\t\n\t\t\t});\n\t\t\tfor(int i=0; i<al.size(); i++) {\n\t\t\t\tcoll[i]=al.get(i);\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"Pair",
"int u",
"u",
"v;",
"v",
"Pair(int u, int v){this.u=u; this.v=v;}",
"Pair",
"{this.u=u; this.v=v;}",
"this.u=u",
"this.u",
"this",
"this.u",
"u",
"this.v=v",
"this.v",
"this",
"this.v",
"v",
"int u",
"u",
"int v",
"v",
"static void sort(Pair [] coll) {\t\t\n\t\t\tList<Pair> al=new ArrayList<>(Arrays.asList(coll));\n\t\t\tCollections.sort(al,new Comparator<Pair>() {\n\t\t\t\tpublic int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}\t\n\t\t\t});\n\t\t\tfor(int i=0; i<al.size(); i++) {\n\t\t\t\tcoll[i]=al.get(i);\n\t\t\t}\n\t\t}",
"sort",
"{\t\t\n\t\t\tList<Pair> al=new ArrayList<>(Arrays.asList(coll));\n\t\t\tCollections.sort(al,new Comparator<Pair>() {\n\t\t\t\tpublic int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}\t\n\t\t\t});\n\t\t\tfor(int i=0; i<al.size(); i++) {\n\t\t\t\tcoll[i]=al.get(i);\n\t\t\t}\n\t\t}",
"List<Pair> al=new ArrayList<>(Arrays.asList(coll));",
"al",
"new ArrayList<>(Arrays.asList(coll))",
"Collections.sort(al,new Comparator<Pair>() {\n\t\t\t\tpublic int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}\t\n\t\t\t})",
"Collections.sort",
"Collections",
"al",
"new Comparator<Pair>() {\n\t\t\t\tpublic int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}\t\n\t\t\t}",
"for(int i=0; i<al.size(); i++) {\n\t\t\t\tcoll[i]=al.get(i);\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<al.size()",
"i",
"al.size()",
"al.size",
"al",
"i++",
"i++",
"i",
"{\n\t\t\t\tcoll[i]=al.get(i);\n\t\t\t}",
"{\n\t\t\t\tcoll[i]=al.get(i);\n\t\t\t}",
"coll[i]=al.get(i)",
"coll[i]",
"coll",
"i",
"al.get(i)",
"al.get",
"al",
"i",
"Pair [] coll",
"coll",
"static class Reader{\n\t\t\n\t\tBufferedReader br;\n\t\tStringTokenizer to;\n\t\t\n\t\tReader(InputStream stream){\n\t\t\tbr=new BufferedReader(new InputStreamReader(stream));\n\t\t\tto=new StringTokenizer(\"\");\n\t\t}\n\t\t\n\t\tString next() {\n\t\t\twhile(!to.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}catch(IOException e) {}\n\t\t\t\t\n\t\t\t}\n\t\t\treturn to.nextToken();\n\t\t\t\n\t\t}\n\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\t\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\t\n\t\tint [] readArray(int n) {\n\t\t\tint a[]=new int[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong [] readLongArray(int n) {\n\t\t\tlong a[]=new long[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextLong();\n\t\t\treturn a;\n\t\t}\n\t\t\n\t}",
"Reader",
"BufferedReader br;",
"br",
"StringTokenizer to;",
"to",
"Reader(InputStream stream){\n\t\t\tbr=new BufferedReader(new InputStreamReader(stream));\n\t\t\tto=new StringTokenizer(\"\");\n\t\t}",
"Reader",
"{\n\t\t\tbr=new BufferedReader(new InputStreamReader(stream));\n\t\t\tto=new StringTokenizer(\"\");\n\t\t}",
"br=new BufferedReader(new InputStreamReader(stream))",
"br",
"new BufferedReader(new InputStreamReader(stream))",
"to=new StringTokenizer(\"\")",
"to",
"new StringTokenizer(\"\")",
"InputStream stream",
"stream",
"String next() {\n\t\t\twhile(!to.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}catch(IOException e) {}\n\t\t\t\t\n\t\t\t}\n\t\t\treturn to.nextToken();\n\t\t\t\n\t\t}",
"next",
"{\n\t\t\twhile(!to.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}catch(IOException e) {}\n\t\t\t\t\n\t\t\t}\n\t\t\treturn to.nextToken();\n\t\t\t\n\t\t}",
"while(!to.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}catch(IOException e) {}\n\t\t\t\t\n\t\t\t}",
"!to.hasMoreTokens()",
"to.hasMoreTokens()",
"to.hasMoreTokens",
"to",
"{\n\t\t\t\ttry {\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}catch(IOException e) {}\n\t\t\t\t\n\t\t\t}",
"try {\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}catch(IOException e) {}",
"catch(IOException e) {}",
"IOException e",
"{}",
"{\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}",
"to=new StringTokenizer(br.readLine())",
"to",
"new StringTokenizer(br.readLine())",
"return to.nextToken();",
"to.nextToken()",
"to.nextToken",
"to",
"int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"nextInt",
"{\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"nextLong",
"{\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"int [] readArray(int n) {\n\t\t\tint a[]=new int[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}",
"readArray",
"{\n\t\t\tint a[]=new int[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}",
"int a[]=new int[n];",
"a",
"new int[n]",
"n",
"for(int i=0; i<n ;i++) a[i]=nextInt();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"a[i]=nextInt();",
"a[i]=nextInt()",
"a[i]",
"a",
"i",
"nextInt()",
"nextInt",
"return a;",
"a",
"int n",
"n",
"long [] readLongArray(int n) {\n\t\t\tlong a[]=new long[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextLong();\n\t\t\treturn a;\n\t\t}",
"readLongArray",
"{\n\t\t\tlong a[]=new long[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextLong();\n\t\t\treturn a;\n\t\t}",
"long a[]=new long[n];",
"a",
"new long[n]",
"n",
"for(int i=0; i<n ;i++) a[i]=nextLong();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"a[i]=nextLong();",
"a[i]=nextLong()",
"a[i]",
"a",
"i",
"nextLong()",
"nextLong",
"return a;",
"a",
"int n",
"n",
"static class Writer extends PrintWriter{\n\t\tWriter(OutputStream stream){\n\t\t\tsuper(stream);\n\t\t}\n\t\tvoid println(int [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}\n\t\tvoid println(long [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}\n\t}",
"Writer",
"Writer(OutputStream stream){\n\t\t\tsuper(stream);\n\t\t}",
"Writer",
"{\n\t\t\tsuper(stream);\n\t\t}",
"super(stream)",
"super",
"stream",
"OutputStream stream",
"stream",
"void println(int [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}",
"println",
"{\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}",
"for(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<array.length",
"i",
"array.length",
"array",
"array.length",
"i++",
"i++",
"i",
"{\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}",
"{\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}",
"print(array[i]+\" \")",
"print",
"array[i]+\" \"",
"array[i]",
"array",
"i",
"\" \"",
"println()",
"println",
"int [] array",
"array",
"void println(long [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}",
"println",
"{\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}",
"for(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<array.length",
"i",
"array.length",
"array",
"array.length",
"i++",
"i++",
"i",
"{\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}",
"{\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}",
"print(array[i]+\" \")",
"print",
"array[i]+\" \"",
"array[i]",
"array",
"i",
"\" \"",
"println()",
"println",
"long [] array",
"array",
"PrintWriter",
"public class Main{\n\t\n\tstatic long mod=(long)1e9+7;\n\t\n\tpublic static void main(String[] args) throws IOException {\n\t\tWriter out=new Writer(System.out);\n\t\tReader in=new Reader(System.in);\n\t\tint ts=1;\n\t\t\n\t\touter: while(ts-->0) {\t\n\t\t\tint k=in.nextInt();\n\t\t\tString s=in.next();\n\t\t\tif(s.length()<=k) out.println(s);\n\t\t\telse out.println(s.substring(0,k)+\"...\");\n\t\t}\n\t\tout.close();\t\t\n\t\t\n\t}\n\n\tstatic boolean tri(int a, int b, int c) {\n\t\tif(c<a+b && c>abs(a-b)) return true;\n\t\treturn false;\n\t}\n\t\n\t\n/*********************************** UTILITY CODE BELOW **************************************/\t\n\t\t\n\tstatic int abs(int a) {\n\t\treturn a>0 ? a : -a;\n\t}\n\t\n\tstatic int max(int a, int b) {\n\t\treturn a>b ? a : b;\n\t}\n\t\n\tstatic int pow(int n, int m) {\n\t\tif(m==0) return 1;\n\t\tint temp=pow(n,m/2);\n\t\tlong res=(((long)temp*temp)%mod);\n\t\tif(m%2==0) return (int)res;\n\t\treturn (int)((res*n)%mod);\n\t}\n\t\n\tstatic class Pair{\n\t\tint u, v;\n\t\t\n\t\tPair(int u, int v){this.u=u; this.v=v;}\n\t\t\n\t\tstatic void sort(Pair [] coll) {\t\t\n\t\t\tList<Pair> al=new ArrayList<>(Arrays.asList(coll));\n\t\t\tCollections.sort(al,new Comparator<Pair>() {\n\t\t\t\tpublic int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}\t\n\t\t\t});\n\t\t\tfor(int i=0; i<al.size(); i++) {\n\t\t\t\tcoll[i]=al.get(i);\n\t\t\t}\n\t\t}\n\t\t\n\t}\n\t\n\tstatic void sort(int[] a) {\n\t\tArrayList<Integer> list=new ArrayList<>();\n\t\tfor (int i:a) list.add(i);\n\t\tCollections.sort(list);\n\t\tfor (int i=0; i<a.length; i++) a[i]=list.get(i);\n\t}\n\t\n\tstatic void sort(long a[]) {\n\t\tArrayList<Long> list=new ArrayList<>();\n\t\tfor(long i: a) list.add(i);\n\t\tCollections.sort(list);\n\t\tfor(int i=0; i<a.length; i++) a[i]=list.get(i);\n\t}\n\t\n\tstatic int [] array(int n, int value) {\t\n\t\tint a[]=new int[n];\n\t\tfor(int i=0; i<n; i++) a[i]=value;\n\t\treturn a;\n\t}\n\t\n\tstatic class Reader{\n\t\t\n\t\tBufferedReader br;\n\t\tStringTokenizer to;\n\t\t\n\t\tReader(InputStream stream){\n\t\t\tbr=new BufferedReader(new InputStreamReader(stream));\n\t\t\tto=new StringTokenizer(\"\");\n\t\t}\n\t\t\n\t\tString next() {\n\t\t\twhile(!to.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}catch(IOException e) {}\n\t\t\t\t\n\t\t\t}\n\t\t\treturn to.nextToken();\n\t\t\t\n\t\t}\n\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\t\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\t\n\t\tint [] readArray(int n) {\n\t\t\tint a[]=new int[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong [] readLongArray(int n) {\n\t\t\tlong a[]=new long[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextLong();\n\t\t\treturn a;\n\t\t}\n\t\t\n\t}\n\t\n\tstatic class Writer extends PrintWriter{\n\t\tWriter(OutputStream stream){\n\t\t\tsuper(stream);\n\t\t}\n\t\tvoid println(int [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}\n\t\tvoid println(long [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}\n\t}\n\t\n}",
"public class Main{\n\t\n\tstatic long mod=(long)1e9+7;\n\t\n\tpublic static void main(String[] args) throws IOException {\n\t\tWriter out=new Writer(System.out);\n\t\tReader in=new Reader(System.in);\n\t\tint ts=1;\n\t\t\n\t\touter: while(ts-->0) {\t\n\t\t\tint k=in.nextInt();\n\t\t\tString s=in.next();\n\t\t\tif(s.length()<=k) out.println(s);\n\t\t\telse out.println(s.substring(0,k)+\"...\");\n\t\t}\n\t\tout.close();\t\t\n\t\t\n\t}\n\n\tstatic boolean tri(int a, int b, int c) {\n\t\tif(c<a+b && c>abs(a-b)) return true;\n\t\treturn false;\n\t}\n\t\n\t\n/*********************************** UTILITY CODE BELOW **************************************/\t\n\t\t\n\tstatic int abs(int a) {\n\t\treturn a>0 ? a : -a;\n\t}\n\t\n\tstatic int max(int a, int b) {\n\t\treturn a>b ? a : b;\n\t}\n\t\n\tstatic int pow(int n, int m) {\n\t\tif(m==0) return 1;\n\t\tint temp=pow(n,m/2);\n\t\tlong res=(((long)temp*temp)%mod);\n\t\tif(m%2==0) return (int)res;\n\t\treturn (int)((res*n)%mod);\n\t}\n\t\n\tstatic class Pair{\n\t\tint u, v;\n\t\t\n\t\tPair(int u, int v){this.u=u; this.v=v;}\n\t\t\n\t\tstatic void sort(Pair [] coll) {\t\t\n\t\t\tList<Pair> al=new ArrayList<>(Arrays.asList(coll));\n\t\t\tCollections.sort(al,new Comparator<Pair>() {\n\t\t\t\tpublic int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}\t\n\t\t\t});\n\t\t\tfor(int i=0; i<al.size(); i++) {\n\t\t\t\tcoll[i]=al.get(i);\n\t\t\t}\n\t\t}\n\t\t\n\t}\n\t\n\tstatic void sort(int[] a) {\n\t\tArrayList<Integer> list=new ArrayList<>();\n\t\tfor (int i:a) list.add(i);\n\t\tCollections.sort(list);\n\t\tfor (int i=0; i<a.length; i++) a[i]=list.get(i);\n\t}\n\t\n\tstatic void sort(long a[]) {\n\t\tArrayList<Long> list=new ArrayList<>();\n\t\tfor(long i: a) list.add(i);\n\t\tCollections.sort(list);\n\t\tfor(int i=0; i<a.length; i++) a[i]=list.get(i);\n\t}\n\t\n\tstatic int [] array(int n, int value) {\t\n\t\tint a[]=new int[n];\n\t\tfor(int i=0; i<n; i++) a[i]=value;\n\t\treturn a;\n\t}\n\t\n\tstatic class Reader{\n\t\t\n\t\tBufferedReader br;\n\t\tStringTokenizer to;\n\t\t\n\t\tReader(InputStream stream){\n\t\t\tbr=new BufferedReader(new InputStreamReader(stream));\n\t\t\tto=new StringTokenizer(\"\");\n\t\t}\n\t\t\n\t\tString next() {\n\t\t\twhile(!to.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}catch(IOException e) {}\n\t\t\t\t\n\t\t\t}\n\t\t\treturn to.nextToken();\n\t\t\t\n\t\t}\n\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\t\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\t\n\t\tint [] readArray(int n) {\n\t\t\tint a[]=new int[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong [] readLongArray(int n) {\n\t\t\tlong a[]=new long[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextLong();\n\t\t\treturn a;\n\t\t}\n\t\t\n\t}\n\t\n\tstatic class Writer extends PrintWriter{\n\t\tWriter(OutputStream stream){\n\t\t\tsuper(stream);\n\t\t}\n\t\tvoid println(int [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}\n\t\tvoid println(long [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}\n\t}\n\t\n}",
"Main"
] |
import java.io.*;
import java.util.*;
public class Main{
static long mod=(long)1e9+7;
public static void main(String[] args) throws IOException {
Writer out=new Writer(System.out);
Reader in=new Reader(System.in);
int ts=1;
outer: while(ts-->0) {
int k=in.nextInt();
String s=in.next();
if(s.length()<=k) out.println(s);
else out.println(s.substring(0,k)+"...");
}
out.close();
}
static boolean tri(int a, int b, int c) {
if(c<a+b && c>abs(a-b)) return true;
return false;
}
/*********************************** UTILITY CODE BELOW **************************************/
static int abs(int a) {
return a>0 ? a : -a;
}
static int max(int a, int b) {
return a>b ? a : b;
}
static int pow(int n, int m) {
if(m==0) return 1;
int temp=pow(n,m/2);
long res=(((long)temp*temp)%mod);
if(m%2==0) return (int)res;
return (int)((res*n)%mod);
}
static class Pair{
int u, v;
Pair(int u, int v){this.u=u; this.v=v;}
static void sort(Pair [] coll) {
List<Pair> al=new ArrayList<>(Arrays.asList(coll));
Collections.sort(al,new Comparator<Pair>() {
public int compare(Pair p1, Pair p2) {
return p1.u-p2.u;
}
});
for(int i=0; i<al.size(); i++) {
coll[i]=al.get(i);
}
}
}
static void sort(int[] a) {
ArrayList<Integer> list=new ArrayList<>();
for (int i:a) list.add(i);
Collections.sort(list);
for (int i=0; i<a.length; i++) a[i]=list.get(i);
}
static void sort(long a[]) {
ArrayList<Long> list=new ArrayList<>();
for(long i: a) list.add(i);
Collections.sort(list);
for(int i=0; i<a.length; i++) a[i]=list.get(i);
}
static int [] array(int n, int value) {
int a[]=new int[n];
for(int i=0; i<n; i++) a[i]=value;
return a;
}
static class Reader{
BufferedReader br;
StringTokenizer to;
Reader(InputStream stream){
br=new BufferedReader(new InputStreamReader(stream));
to=new StringTokenizer("");
}
String next() {
while(!to.hasMoreTokens()) {
try {
to=new StringTokenizer(br.readLine());
}catch(IOException e) {}
}
return to.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
int [] readArray(int n) {
int a[]=new int[n];
for(int i=0; i<n ;i++) a[i]=nextInt();
return a;
}
long [] readLongArray(int n) {
long a[]=new long[n];
for(int i=0; i<n ;i++) a[i]=nextLong();
return a;
}
}
static class Writer extends PrintWriter{
Writer(OutputStream stream){
super(stream);
}
void println(int [] array) {
for(int i=0; i<array.length; i++) {
print(array[i]+" ");
}
println();
}
void println(long [] array) {
for(int i=0; i<array.length; i++) {
print(array[i]+" ");
}
println();
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
54,
5
],
[
54,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
27,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
45,
49
],
[
44,
50
],
[
6,
51
],
[
51,
52
],
[
0,
53
],
[
53,
54
],
[
53,
55
]
] |
[
"import java.util.*;\npublic class Main{\n public static void main(String[] args){\n Scanner input=new Scanner(System.in);\n int k=input.nextInt();\n String N=input.next();\n int n=N.length();\n if(n<=k){\n System.out.print(N);\n }else{\n System.out.print(N.substring(0,k)+\"...\");\n }\n } \n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args){\n Scanner input=new Scanner(System.in);\n int k=input.nextInt();\n String N=input.next();\n int n=N.length();\n if(n<=k){\n System.out.print(N);\n }else{\n System.out.print(N.substring(0,k)+\"...\");\n }\n } \n}",
"Main",
"public static void main(String[] args){\n Scanner input=new Scanner(System.in);\n int k=input.nextInt();\n String N=input.next();\n int n=N.length();\n if(n<=k){\n System.out.print(N);\n }else{\n System.out.print(N.substring(0,k)+\"...\");\n }\n }",
"main",
"{\n Scanner input=new Scanner(System.in);\n int k=input.nextInt();\n String N=input.next();\n int n=N.length();\n if(n<=k){\n System.out.print(N);\n }else{\n System.out.print(N.substring(0,k)+\"...\");\n }\n }",
"Scanner input=new Scanner(System.in);",
"input",
"new Scanner(System.in)",
"int k=input.nextInt();",
"k",
"input.nextInt()",
"input.nextInt",
"input",
"String N=input.next();",
"N",
"input.next()",
"input.next",
"input",
"int n=N.length();",
"n",
"N.length()",
"N.length",
"N",
"if(n<=k){\n System.out.print(N);\n }else{\n System.out.print(N.substring(0,k)+\"...\");\n }",
"n<=k",
"n",
"k",
"{\n System.out.print(N);\n }",
"System.out.print(N)",
"System.out.print",
"System.out",
"System",
"System.out",
"N",
"{\n System.out.print(N.substring(0,k)+\"...\");\n }",
"System.out.print(N.substring(0,k)+\"...\")",
"System.out.print",
"System.out",
"System",
"System.out",
"N.substring(0,k)+\"...\"",
"N.substring(0,k)",
"N.substring",
"N",
"0",
"k",
"\"...\"",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner input=new Scanner(System.in);\n int k=input.nextInt();\n String N=input.next();\n int n=N.length();\n if(n<=k){\n System.out.print(N);\n }else{\n System.out.print(N.substring(0,k)+\"...\");\n }\n } \n}",
"public class Main{\n public static void main(String[] args){\n Scanner input=new Scanner(System.in);\n int k=input.nextInt();\n String N=input.next();\n int n=N.length();\n if(n<=k){\n System.out.print(N);\n }else{\n System.out.print(N.substring(0,k)+\"...\");\n }\n } \n}",
"Main"
] |
import java.util.*;
public class Main{
public static void main(String[] args){
Scanner input=new Scanner(System.in);
int k=input.nextInt();
String N=input.next();
int n=N.length();
if(n<=k){
System.out.print(N);
}else{
System.out.print(N.substring(0,k)+"...");
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
4,
18,
13,
13,
4,
18,
13,
2,
4,
18,
13,
17,
13,
17,
23,
13,
23,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
93,
17
],
[
93,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
23,
25
],
[
20,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
28,
30
],
[
20,
31
],
[
31,
32
],
[
31,
33
],
[
20,
34
],
[
34,
35
],
[
34,
36
],
[
20,
37
],
[
37,
38
],
[
37,
39
],
[
20,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
40,
44
],
[
40,
45
],
[
20,
46
],
[
46,
47
],
[
47,
48
],
[
18,
49
],
[
49,
50
],
[
93,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
55,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
67,
71
],
[
66,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
66,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
80,
84
],
[
79,
85
],
[
53,
86
],
[
86,
87
],
[
53,
88
],
[
88,
89
],
[
53,
90
],
[
90,
91
],
[
0,
92
],
[
92,
93
],
[
92,
94
]
] |
[
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.Scanner;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n *\n * @author Mehvix\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n abc168_b solver = new abc168_b();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class abc168_b {\n public void solve(int testNumber, Scanner fin, PrintWriter fout) {\n int k = fin.nextInt();\n String s = fin.next();\n if (s.length() <= k) fout.println(s);\n else fout.println(s.substring(0, k) + \"...\");\n }\n\n }\n}\n",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n abc168_b solver = new abc168_b();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class abc168_b {\n public void solve(int testNumber, Scanner fin, PrintWriter fout) {\n int k = fin.nextInt();\n String s = fin.next();\n if (s.length() <= k) fout.println(s);\n else fout.println(s.substring(0, k) + \"...\");\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n abc168_b solver = new abc168_b();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n abc168_b solver = new abc168_b();\n solver.solve(1, in, out);\n out.close();\n }",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"Scanner in = new Scanner(inputStream);",
"in",
"new Scanner(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"abc168_b solver = new abc168_b();",
"solver",
"new abc168_b()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class abc168_b {\n public void solve(int testNumber, Scanner fin, PrintWriter fout) {\n int k = fin.nextInt();\n String s = fin.next();\n if (s.length() <= k) fout.println(s);\n else fout.println(s.substring(0, k) + \"...\");\n }\n\n }",
"abc168_b",
"public void solve(int testNumber, Scanner fin, PrintWriter fout) {\n int k = fin.nextInt();\n String s = fin.next();\n if (s.length() <= k) fout.println(s);\n else fout.println(s.substring(0, k) + \"...\");\n }",
"solve",
"{\n int k = fin.nextInt();\n String s = fin.next();\n if (s.length() <= k) fout.println(s);\n else fout.println(s.substring(0, k) + \"...\");\n }",
"int k = fin.nextInt();",
"k",
"fin.nextInt()",
"fin.nextInt",
"fin",
"String s = fin.next();",
"s",
"fin.next()",
"fin.next",
"fin",
"if (s.length() <= k) fout.println(s);\n else fout.println(s.substring(0, k) + \"...\");",
"s.length() <= k",
"s.length()",
"s.length",
"s",
"k",
"fout.println(s)",
"fout.println",
"fout",
"s",
"fout.println(s.substring(0, k) + \"...\")",
"fout.println",
"fout",
"s.substring(0, k) + \"...\"",
"s.substring(0, k)",
"s.substring",
"s",
"0",
"k",
"\"...\"",
"int testNumber",
"testNumber",
"Scanner fin",
"fin",
"PrintWriter fout",
"fout",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n abc168_b solver = new abc168_b();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class abc168_b {\n public void solve(int testNumber, Scanner fin, PrintWriter fout) {\n int k = fin.nextInt();\n String s = fin.next();\n if (s.length() <= k) fout.println(s);\n else fout.println(s.substring(0, k) + \"...\");\n }\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n abc168_b solver = new abc168_b();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class abc168_b {\n public void solve(int testNumber, Scanner fin, PrintWriter fout) {\n int k = fin.nextInt();\n String s = fin.next();\n if (s.length() <= k) fout.println(s);\n else fout.println(s.substring(0, k) + \"...\");\n }\n\n }\n}",
"Main"
] |
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*
* @author Mehvix
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
Scanner in = new Scanner(inputStream);
PrintWriter out = new PrintWriter(outputStream);
abc168_b solver = new abc168_b();
solver.solve(1, in, out);
out.close();
}
static class abc168_b {
public void solve(int testNumber, Scanner fin, PrintWriter fout) {
int k = fin.nextInt();
String s = fin.next();
if (s.length() <= k) fout.println(s);
else fout.println(s.substring(0, k) + "...");
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
4,
18,
13,
13,
4,
18,
13,
2,
4,
18,
13,
17,
13,
17,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
38,
5,
13,
30,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
142,
8
],
[
142,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
14,
16
],
[
11,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
19,
21
],
[
11,
22
],
[
22,
23
],
[
22,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
11,
28
],
[
28,
29
],
[
28,
30
],
[
11,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
31,
35
],
[
31,
36
],
[
11,
37
],
[
37,
38
],
[
38,
39
],
[
11,
40
],
[
40,
41
],
[
41,
42
],
[
9,
43
],
[
43,
44
],
[
142,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
49,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
49,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
61,
65
],
[
60,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
60,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
74,
78
],
[
73,
79
],
[
47,
80
],
[
80,
81
],
[
47,
82
],
[
82,
83
],
[
47,
84
],
[
84,
85
],
[
142,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
86,
90
],
[
90,
91
],
[
86,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
92,
98
],
[
98,
99
],
[
86,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
100,
106
],
[
106,
107
],
[
86,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
112,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
111,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
110,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
86,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
136,
139
],
[
139,
140
],
[
0,
141
],
[
141,
142
],
[
141,
143
]
] |
[
"import java.io.*;\nimport java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputstream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputstream);\n AtcoderB solution = new AtcoderB();\n solution.solve(1, in, out);\n out.flush();\n out.close();\n }\n\n static class AtcoderB {\n public void solve(int testNumber, Scanner sc, PrintWriter out) {\n int k = sc.nextInt();\n String s = sc.next();\n if (s.length() <= k)\n out.println(s);\n else\n out.print(s.substring(0, k) + \"...\");\n }\n }\n static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public Scanner(FileReader f) {\n br = new BufferedReader(f);\n }\n\n public String next() {\n while (st == null || !st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputstream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputstream);\n AtcoderB solution = new AtcoderB();\n solution.solve(1, in, out);\n out.flush();\n out.close();\n }\n\n static class AtcoderB {\n public void solve(int testNumber, Scanner sc, PrintWriter out) {\n int k = sc.nextInt();\n String s = sc.next();\n if (s.length() <= k)\n out.println(s);\n else\n out.print(s.substring(0, k) + \"...\");\n }\n }\n static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public Scanner(FileReader f) {\n br = new BufferedReader(f);\n }\n\n public String next() {\n while (st == null || !st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputstream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputstream);\n AtcoderB solution = new AtcoderB();\n solution.solve(1, in, out);\n out.flush();\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputstream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputstream);\n AtcoderB solution = new AtcoderB();\n solution.solve(1, in, out);\n out.flush();\n out.close();\n }",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputstream = System.out;",
"outputstream",
"System.out",
"System",
"System.out",
"Scanner in = new Scanner(inputStream);",
"in",
"new Scanner(inputStream)",
"PrintWriter out = new PrintWriter(outputstream);",
"out",
"new PrintWriter(outputstream)",
"AtcoderB solution = new AtcoderB();",
"solution",
"new AtcoderB()",
"solution.solve(1, in, out)",
"solution.solve",
"solution",
"1",
"in",
"out",
"out.flush()",
"out.flush",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class AtcoderB {\n public void solve(int testNumber, Scanner sc, PrintWriter out) {\n int k = sc.nextInt();\n String s = sc.next();\n if (s.length() <= k)\n out.println(s);\n else\n out.print(s.substring(0, k) + \"...\");\n }\n }",
"AtcoderB",
"public void solve(int testNumber, Scanner sc, PrintWriter out) {\n int k = sc.nextInt();\n String s = sc.next();\n if (s.length() <= k)\n out.println(s);\n else\n out.print(s.substring(0, k) + \"...\");\n }",
"solve",
"{\n int k = sc.nextInt();\n String s = sc.next();\n if (s.length() <= k)\n out.println(s);\n else\n out.print(s.substring(0, k) + \"...\");\n }",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"if (s.length() <= k)\n out.println(s);\n else\n out.print(s.substring(0, k) + \"...\");",
"s.length() <= k",
"s.length()",
"s.length",
"s",
"k",
"out.println(s)",
"out.println",
"out",
"s",
"out.print(s.substring(0, k) + \"...\")",
"out.print",
"out",
"s.substring(0, k) + \"...\"",
"s.substring(0, k)",
"s.substring",
"s",
"0",
"k",
"\"...\"",
"int testNumber",
"testNumber",
"Scanner sc",
"sc",
"PrintWriter out",
"out",
"static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public Scanner(FileReader f) {\n br = new BufferedReader(f);\n }\n\n public String next() {\n while (st == null || !st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n }",
"Scanner",
"StringTokenizer st;",
"st",
"BufferedReader br;",
"br",
"public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }",
"Scanner",
"{\n br = new BufferedReader(new InputStreamReader(s));\n }",
"br = new BufferedReader(new InputStreamReader(s))",
"br",
"new BufferedReader(new InputStreamReader(s))",
"InputStream s",
"s",
"public Scanner(FileReader f) {\n br = new BufferedReader(f);\n }",
"Scanner",
"{\n br = new BufferedReader(f);\n }",
"br = new BufferedReader(f)",
"br",
"new BufferedReader(f)",
"FileReader f",
"f",
"public String next() {\n while (st == null || !st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n }",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n }",
"catch (Exception e) {\n }",
"Exception e",
"{\n }",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputstream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputstream);\n AtcoderB solution = new AtcoderB();\n solution.solve(1, in, out);\n out.flush();\n out.close();\n }\n\n static class AtcoderB {\n public void solve(int testNumber, Scanner sc, PrintWriter out) {\n int k = sc.nextInt();\n String s = sc.next();\n if (s.length() <= k)\n out.println(s);\n else\n out.print(s.substring(0, k) + \"...\");\n }\n }\n static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public Scanner(FileReader f) {\n br = new BufferedReader(f);\n }\n\n public String next() {\n while (st == null || !st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputstream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputstream);\n AtcoderB solution = new AtcoderB();\n solution.solve(1, in, out);\n out.flush();\n out.close();\n }\n\n static class AtcoderB {\n public void solve(int testNumber, Scanner sc, PrintWriter out) {\n int k = sc.nextInt();\n String s = sc.next();\n if (s.length() <= k)\n out.println(s);\n else\n out.print(s.substring(0, k) + \"...\");\n }\n }\n static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public Scanner(FileReader f) {\n br = new BufferedReader(f);\n }\n\n public String next() {\n while (st == null || !st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n }\n}",
"Main"
] |
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputstream = System.out;
Scanner in = new Scanner(inputStream);
PrintWriter out = new PrintWriter(outputstream);
AtcoderB solution = new AtcoderB();
solution.solve(1, in, out);
out.flush();
out.close();
}
static class AtcoderB {
public void solve(int testNumber, Scanner sc, PrintWriter out) {
int k = sc.nextInt();
String s = sc.next();
if (s.length() <= k)
out.println(s);
else
out.print(s.substring(0, k) + "...");
}
}
static class Scanner {
StringTokenizer st;
BufferedReader br;
public Scanner(InputStream s) {
br = new BufferedReader(new InputStreamReader(s));
}
public Scanner(FileReader f) {
br = new BufferedReader(f);
}
public String next() {
while (st == null || !st.hasMoreTokens())
try {
st = new StringTokenizer(br.readLine());
} catch (Exception e) {
}
return st.nextToken();
}
public int nextInt() {
return Integer.parseInt(next());
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
14,
2,
13,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
74,
5
],
[
74,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
33,
35
],
[
30,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
30,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
62,
63
],
[
62,
64
],
[
43,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
6,
71
],
[
71,
72
],
[
0,
73
],
[
73,
74
],
[
73,
75
]
] |
[
"import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n String s = sc.next();\n char[] c = s.toCharArray();\n StringBuilder val = new StringBuilder();\n\n if(k>=c.length){\n System.out.println(s);\n }else{\n for(int i=0; i<k; i++){\n System.out.print(c[i]);\n }\n System.out.println(\"...\");\n }\n\n\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n String s = sc.next();\n char[] c = s.toCharArray();\n StringBuilder val = new StringBuilder();\n\n if(k>=c.length){\n System.out.println(s);\n }else{\n for(int i=0; i<k; i++){\n System.out.print(c[i]);\n }\n System.out.println(\"...\");\n }\n\n\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n String s = sc.next();\n char[] c = s.toCharArray();\n StringBuilder val = new StringBuilder();\n\n if(k>=c.length){\n System.out.println(s);\n }else{\n for(int i=0; i<k; i++){\n System.out.print(c[i]);\n }\n System.out.println(\"...\");\n }\n\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n String s = sc.next();\n char[] c = s.toCharArray();\n StringBuilder val = new StringBuilder();\n\n if(k>=c.length){\n System.out.println(s);\n }else{\n for(int i=0; i<k; i++){\n System.out.print(c[i]);\n }\n System.out.println(\"...\");\n }\n\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"char[] c = s.toCharArray();",
"c",
"s.toCharArray()",
"s.toCharArray",
"s",
"StringBuilder val = new StringBuilder();",
"val",
"new StringBuilder()",
"if(k>=c.length){\n System.out.println(s);\n }else{\n for(int i=0; i<k; i++){\n System.out.print(c[i]);\n }\n System.out.println(\"...\");\n }",
"k>=c.length",
"k",
"c.length",
"c",
"c.length",
"{\n System.out.println(s);\n }",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"{\n for(int i=0; i<k; i++){\n System.out.print(c[i]);\n }\n System.out.println(\"...\");\n }",
"for(int i=0; i<k; i++){\n System.out.print(c[i]);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<k",
"i",
"k",
"i++",
"i++",
"i",
"{\n System.out.print(c[i]);\n }",
"{\n System.out.print(c[i]);\n }",
"System.out.print(c[i])",
"System.out.print",
"System.out",
"System",
"System.out",
"c[i]",
"c",
"i",
"System.out.println(\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"...\"",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n String s = sc.next();\n char[] c = s.toCharArray();\n StringBuilder val = new StringBuilder();\n\n if(k>=c.length){\n System.out.println(s);\n }else{\n for(int i=0; i<k; i++){\n System.out.print(c[i]);\n }\n System.out.println(\"...\");\n }\n\n\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n String s = sc.next();\n char[] c = s.toCharArray();\n StringBuilder val = new StringBuilder();\n\n if(k>=c.length){\n System.out.println(s);\n }else{\n for(int i=0; i<k; i++){\n System.out.print(c[i]);\n }\n System.out.println(\"...\");\n }\n\n\n }\n}",
"Main"
] |
import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int k = sc.nextInt();
String s = sc.next();
char[] c = s.toCharArray();
StringBuilder val = new StringBuilder();
if(k>=c.length){
System.out.println(s);
}else{
for(int i=0; i<k; i++){
System.out.print(c[i]);
}
System.out.println("...");
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
17,
12,
13,
30,
41,
13,
41,
13,
41,
13,
20,
41,
13,
4,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
13,
14,
2,
4,
18,
13,
13,
30,
0,
13,
2,
4,
18,
13,
17,
13,
17,
4,
18,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
75,
20
],
[
75,
21
],
[
21,
22
],
[
21,
23
],
[
75,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
29,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
26,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
26,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
26,
46
],
[
46,
47
],
[
47,
48
],
[
26,
49
],
[
49,
50
],
[
49,
51
],
[
26,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
53,
57
],
[
52,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
62,
66
],
[
61,
67
],
[
26,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
24,
72
],
[
72,
73
],
[
0,
74
],
[
74,
75
],
[
74,
76
]
] |
[
"import java.util.*;\nimport java.io.PrintWriter;\nimport static java.lang.Integer.*;\nimport static java.lang.Long.*;\nimport static java.lang.Math.*;\nimport static java.lang.System.*;\n\npublic class Main {\n\tpublic static final int MOD = 1000000007;\n\tpublic static void main(String[] args) {\n\t\tint i,j;\n\t\tScanner sc = new Scanner(in);\n\t\tint k = parseInt(sc.next());\n//\t\tchar[] s = sc.next().toCharArray();\n\t\tString s = sc.next();\n\t\tsc.close();\n\t\tString ans=s;\n\t\tif(s.length()>k) {\n\t\t\tans=s.substring(0,k) + \"...\";\n\t\t}\n\t\tout.println(ans);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import static java.lang.Integer.*;",
"import static java.lang.Integer.*;",
"import static java.lang.Integer.*;",
"import static java.lang.Long.*;",
"import static java.lang.Long.*;",
"import static java.lang.Long.*;",
"import static java.lang.Math.*;",
"import static java.lang.Math.*;",
"import static java.lang.Math.*;",
"import static java.lang.System.*;",
"import static java.lang.System.*;",
"import static java.lang.System.*;",
"public class Main {\n\tpublic static final int MOD = 1000000007;\n\tpublic static void main(String[] args) {\n\t\tint i,j;\n\t\tScanner sc = new Scanner(in);\n\t\tint k = parseInt(sc.next());\n//\t\tchar[] s = sc.next().toCharArray();\n\t\tString s = sc.next();\n\t\tsc.close();\n\t\tString ans=s;\n\t\tif(s.length()>k) {\n\t\t\tans=s.substring(0,k) + \"...\";\n\t\t}\n\t\tout.println(ans);\n\t}\n}",
"Main",
"public static final int MOD = 1000000007;",
"MOD",
"1000000007",
"public static void main(String[] args) {\n\t\tint i,j;\n\t\tScanner sc = new Scanner(in);\n\t\tint k = parseInt(sc.next());\n//\t\tchar[] s = sc.next().toCharArray();\n\t\tString s = sc.next();\n\t\tsc.close();\n\t\tString ans=s;\n\t\tif(s.length()>k) {\n\t\t\tans=s.substring(0,k) + \"...\";\n\t\t}\n\t\tout.println(ans);\n\t}",
"main",
"{\n\t\tint i,j;\n\t\tScanner sc = new Scanner(in);\n\t\tint k = parseInt(sc.next());\n//\t\tchar[] s = sc.next().toCharArray();\n\t\tString s = sc.next();\n\t\tsc.close();\n\t\tString ans=s;\n\t\tif(s.length()>k) {\n\t\t\tans=s.substring(0,k) + \"...\";\n\t\t}\n\t\tout.println(ans);\n\t}",
"int i",
"i",
"j;",
"j",
"Scanner sc = new Scanner(in);",
"sc",
"new Scanner(in)",
"int k = parseInt(sc.next());",
"k",
"parseInt(sc.next())",
"parseInt",
"sc.next()",
"sc.next",
"sc",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"sc.close()",
"sc.close",
"sc",
"String ans=s;",
"ans",
"s",
"if(s.length()>k) {\n\t\t\tans=s.substring(0,k) + \"...\";\n\t\t}",
"s.length()>k",
"s.length()",
"s.length",
"s",
"k",
"{\n\t\t\tans=s.substring(0,k) + \"...\";\n\t\t}",
"ans=s.substring(0,k) + \"...\"",
"ans",
"s.substring(0,k) + \"...\"",
"s.substring(0,k)",
"s.substring",
"s",
"0",
"k",
"\"...\"",
"out.println(ans)",
"out.println",
"out",
"ans",
"String[] args",
"args",
"public class Main {\n\tpublic static final int MOD = 1000000007;\n\tpublic static void main(String[] args) {\n\t\tint i,j;\n\t\tScanner sc = new Scanner(in);\n\t\tint k = parseInt(sc.next());\n//\t\tchar[] s = sc.next().toCharArray();\n\t\tString s = sc.next();\n\t\tsc.close();\n\t\tString ans=s;\n\t\tif(s.length()>k) {\n\t\t\tans=s.substring(0,k) + \"...\";\n\t\t}\n\t\tout.println(ans);\n\t}\n}",
"public class Main {\n\tpublic static final int MOD = 1000000007;\n\tpublic static void main(String[] args) {\n\t\tint i,j;\n\t\tScanner sc = new Scanner(in);\n\t\tint k = parseInt(sc.next());\n//\t\tchar[] s = sc.next().toCharArray();\n\t\tString s = sc.next();\n\t\tsc.close();\n\t\tString ans=s;\n\t\tif(s.length()>k) {\n\t\t\tans=s.substring(0,k) + \"...\";\n\t\t}\n\t\tout.println(ans);\n\t}\n}",
"Main"
] |
import java.util.*;
import java.io.PrintWriter;
import static java.lang.Integer.*;
import static java.lang.Long.*;
import static java.lang.Math.*;
import static java.lang.System.*;
public class Main {
public static final int MOD = 1000000007;
public static void main(String[] args) {
int i,j;
Scanner sc = new Scanner(in);
int k = parseInt(sc.next());
// char[] s = sc.next().toCharArray();
String s = sc.next();
sc.close();
String ans=s;
if(s.length()>k) {
ans=s.substring(0,k) + "...";
}
out.println(ans);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
53,
5
],
[
53,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
10,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
10,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
25,
29
],
[
24,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
24,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
44,
48
],
[
43,
49
],
[
6,
50
],
[
50,
51
],
[
0,
52
],
[
52,
53
],
[
52,
54
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\n\n\t\t\tint k = sc.nextInt();\n\t\t\tString s = sc.next();\n\n\t\t\tif ( s.length() <= k ) {\n\t\t\t\tSystem.out.println(s);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(s.subSequence(0, k) + \"...\");\n\t\t\t}\n\t\t}\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args){\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\n\n\t\t\tint k = sc.nextInt();\n\t\t\tString s = sc.next();\n\n\t\t\tif ( s.length() <= k ) {\n\t\t\t\tSystem.out.println(s);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(s.subSequence(0, k) + \"...\");\n\t\t\t}\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args){\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\n\n\t\t\tint k = sc.nextInt();\n\t\t\tString s = sc.next();\n\n\t\t\tif ( s.length() <= k ) {\n\t\t\t\tSystem.out.println(s);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(s.subSequence(0, k) + \"...\");\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\n\n\t\t\tint k = sc.nextInt();\n\t\t\tString s = sc.next();\n\n\t\t\tif ( s.length() <= k ) {\n\t\t\t\tSystem.out.println(s);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(s.subSequence(0, k) + \"...\");\n\t\t\t}\n\t\t}\n\t}",
"try(Scanner sc = new Scanner(System.in)) {\n\n\n\t\t\tint k = sc.nextInt();\n\t\t\tString s = sc.next();\n\n\t\t\tif ( s.length() <= k ) {\n\t\t\t\tSystem.out.println(s);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(s.subSequence(0, k) + \"...\");\n\t\t\t}\n\t\t}",
"{\n\n\n\t\t\tint k = sc.nextInt();\n\t\t\tString s = sc.next();\n\n\t\t\tif ( s.length() <= k ) {\n\t\t\t\tSystem.out.println(s);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(s.subSequence(0, k) + \"...\");\n\t\t\t}\n\t\t}",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"if ( s.length() <= k ) {\n\t\t\t\tSystem.out.println(s);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(s.subSequence(0, k) + \"...\");\n\t\t\t}",
"s.length() <= k",
"s.length()",
"s.length",
"s",
"k",
"{\n\t\t\t\tSystem.out.println(s);\n\t\t\t}",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"{\n\t\t\t\tSystem.out.println(s.subSequence(0, k) + \"...\");\n\t\t\t}",
"System.out.println(s.subSequence(0, k) + \"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"s.subSequence(0, k) + \"...\"",
"s.subSequence(0, k)",
"s.subSequence",
"s",
"0",
"k",
"\"...\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\n\n\t\t\tint k = sc.nextInt();\n\t\t\tString s = sc.next();\n\n\t\t\tif ( s.length() <= k ) {\n\t\t\t\tSystem.out.println(s);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(s.subSequence(0, k) + \"...\");\n\t\t\t}\n\t\t}\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\n\n\t\t\tint k = sc.nextInt();\n\t\t\tString s = sc.next();\n\n\t\t\tif ( s.length() <= k ) {\n\t\t\t\tSystem.out.println(s);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(s.subSequence(0, k) + \"...\");\n\t\t\t}\n\t\t}\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args){
try(Scanner sc = new Scanner(System.in)) {
int k = sc.nextInt();
String s = sc.next();
if ( s.length() <= k ) {
System.out.println(s);
}
else {
System.out.println(s.subSequence(0, k) + "...");
}
}
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
2,
17,
17,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
14,
2,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
17,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
2,
13,
13,
2,
17,
17,
41,
13,
13,
0,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
2,
13,
13,
2,
17,
17,
11,
1,
41,
13,
17,
2,
13,
2,
13,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
2,
13,
13,
2,
17,
17,
29,
13,
23,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
0,
13,
2,
17,
17,
29,
2,
13,
2,
17,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
191,
5
],
[
191,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
8,
10
],
[
191,
11
],
[
11,
12
],
[
11,
13
],
[
13,
14
],
[
14,
15
],
[
14,
16
],
[
13,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
13,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
13,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
13,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
33,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
33,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
47,
58
],
[
59,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
65,
66
],
[
65,
67
],
[
46,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
11,
74
],
[
74,
75
],
[
191,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
78,
85
],
[
85,
86
],
[
85,
87
],
[
78,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
93,
94
],
[
93,
95
],
[
88,
96
],
[
96,
97
],
[
97,
98
],
[
88,
99
],
[
100,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
107,
108
],
[
107,
109
],
[
78,
110
],
[
110,
111
],
[
110,
112
],
[
78,
113
],
[
113,
114
],
[
113,
115
],
[
78,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
116,
121
],
[
121,
122
],
[
121,
123
],
[
116,
124
],
[
124,
125
],
[
125,
126
],
[
116,
127
],
[
128,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
131,
135
],
[
135,
136
],
[
135,
137
],
[
78,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
138,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
145,
147
],
[
147,
148
],
[
147,
149
],
[
138,
150
],
[
150,
151
],
[
151,
152
],
[
138,
153
],
[
154,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
157,
161
],
[
161,
162
],
[
161,
163
],
[
78,
164
],
[
164,
165
],
[
76,
166
],
[
166,
167
],
[
76,
168
],
[
168,
169
],
[
191,
170
],
[
170,
171
],
[
170,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
173,
177
],
[
177,
178
],
[
177,
179
],
[
179,
180
],
[
179,
181
],
[
172,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
185,
186
],
[
185,
187
],
[
170,
188
],
[
188,
189
],
[
0,
190
],
[
190,
191
],
[
190,
192
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n\tstatic long bignum = 1000000000+7;\n\n\tpublic static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint k = sc.nextInt();\n\t\tString s = sc.next();\n\t\tString[] ss = s.split(\"\");\n\n\t\tif(ss.length<=k) {\n\t\t\tSystem.out.println(s);\n\t\t}else {\n\t\t\tfor(int i =0;i<k;i++) {\n\t\t\t\tSystem.out.print(ss[i]);\n\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}\n\n\n\n\n\t}\n\n\n\tstatic long divn(int target, int times) {//10_9+7のあまり累乗版\n\t\tint sqtimes = (int)Math.sqrt(times);\n\t\tlong ans = 1;\n\t\tfor(int i =0;i<sqtimes;i++) {\n\t\t\tans = (ans * target)%(1000000000+7);\n\t\t}\n\t\tlong holder = ans;\n\t\tans = 1;\n\t\tfor(int i =0;i<sqtimes;i++) {\n\t\t\tans = (ans*holder)%(1000000000+7);\n\t\t}\n\t\tfor(int i=0;i<times - sqtimes*sqtimes;i++) {\n\t\t\tans = (ans * target)%(1000000000+7);\n\t\t}\n\t\treturn ans;\n\t}\n\n\tstatic long div(long a) {//10_9+7のあまり\n\t\tif(a<0)a+=1000000000+7;\n\t\treturn a%(1000000000+7);\n\t}\n\n}\n/*\nclass City{\n\tint order;\n\tint prefecture;\n\tint year;\n\tint number;\n\tCity(int order,int prefecture, int year){\n\t\tthis.order = order;\n\t\tthis.prefecture = prefecture;\n\t\tthis.year = year;\n\t}\n}\n*/",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tstatic long bignum = 1000000000+7;\n\n\tpublic static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint k = sc.nextInt();\n\t\tString s = sc.next();\n\t\tString[] ss = s.split(\"\");\n\n\t\tif(ss.length<=k) {\n\t\t\tSystem.out.println(s);\n\t\t}else {\n\t\t\tfor(int i =0;i<k;i++) {\n\t\t\t\tSystem.out.print(ss[i]);\n\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}\n\n\n\n\n\t}\n\n\n\tstatic long divn(int target, int times) {//10_9+7のあまり累乗版\n\t\tint sqtimes = (int)Math.sqrt(times);\n\t\tlong ans = 1;\n\t\tfor(int i =0;i<sqtimes;i++) {\n\t\t\tans = (ans * target)%(1000000000+7);\n\t\t}\n\t\tlong holder = ans;\n\t\tans = 1;\n\t\tfor(int i =0;i<sqtimes;i++) {\n\t\t\tans = (ans*holder)%(1000000000+7);\n\t\t}\n\t\tfor(int i=0;i<times - sqtimes*sqtimes;i++) {\n\t\t\tans = (ans * target)%(1000000000+7);\n\t\t}\n\t\treturn ans;\n\t}\n\n\tstatic long div(long a) {//10_9+7のあまり\n\t\tif(a<0)a+=1000000000+7;\n\t\treturn a%(1000000000+7);\n\t}\n\n}",
"Main",
"static long bignum = 1000000000+7;",
"bignum",
"1000000000+7",
"1000000000",
"7",
"public static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint k = sc.nextInt();\n\t\tString s = sc.next();\n\t\tString[] ss = s.split(\"\");\n\n\t\tif(ss.length<=k) {\n\t\t\tSystem.out.println(s);\n\t\t}else {\n\t\t\tfor(int i =0;i<k;i++) {\n\t\t\t\tSystem.out.print(ss[i]);\n\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}\n\n\n\n\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint k = sc.nextInt();\n\t\tString s = sc.next();\n\t\tString[] ss = s.split(\"\");\n\n\t\tif(ss.length<=k) {\n\t\t\tSystem.out.println(s);\n\t\t}else {\n\t\t\tfor(int i =0;i<k;i++) {\n\t\t\t\tSystem.out.print(ss[i]);\n\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}\n\n\n\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"String[] ss = s.split(\"\");",
"ss",
"s.split(\"\")",
"s.split",
"s",
"\"\"",
"if(ss.length<=k) {\n\t\t\tSystem.out.println(s);\n\t\t}else {\n\t\t\tfor(int i =0;i<k;i++) {\n\t\t\t\tSystem.out.print(ss[i]);\n\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}",
"ss.length<=k",
"ss.length",
"ss",
"ss.length",
"k",
"{\n\t\t\tSystem.out.println(s);\n\t\t}",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"{\n\t\t\tfor(int i =0;i<k;i++) {\n\t\t\t\tSystem.out.print(ss[i]);\n\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}",
"for(int i =0;i<k;i++) {\n\t\t\t\tSystem.out.print(ss[i]);\n\t\t\t}",
"int i =0;",
"int i =0;",
"i",
"0",
"i<k",
"i",
"k",
"i++",
"i++",
"i",
"{\n\t\t\t\tSystem.out.print(ss[i]);\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(ss[i]);\n\t\t\t}",
"System.out.print(ss[i])",
"System.out.print",
"System.out",
"System",
"System.out",
"ss[i]",
"ss",
"i",
"System.out.println(\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"...\"",
"String[] args",
"args",
"static long divn(int target, int times) {//10_9+7のあまり累乗版\n\t\tint sqtimes = (int)Math.sqrt(times);\n\t\tlong ans = 1;\n\t\tfor(int i =0;i<sqtimes;i++) {\n\t\t\tans = (ans * target)%(1000000000+7);\n\t\t}\n\t\tlong holder = ans;\n\t\tans = 1;\n\t\tfor(int i =0;i<sqtimes;i++) {\n\t\t\tans = (ans*holder)%(1000000000+7);\n\t\t}\n\t\tfor(int i=0;i<times - sqtimes*sqtimes;i++) {\n\t\t\tans = (ans * target)%(1000000000+7);\n\t\t}\n\t\treturn ans;\n\t}",
"divn",
"{//10_9+7のあまり累乗版\n\t\tint sqtimes = (int)Math.sqrt(times);\n\t\tlong ans = 1;\n\t\tfor(int i =0;i<sqtimes;i++) {\n\t\t\tans = (ans * target)%(1000000000+7);\n\t\t}\n\t\tlong holder = ans;\n\t\tans = 1;\n\t\tfor(int i =0;i<sqtimes;i++) {\n\t\t\tans = (ans*holder)%(1000000000+7);\n\t\t}\n\t\tfor(int i=0;i<times - sqtimes*sqtimes;i++) {\n\t\t\tans = (ans * target)%(1000000000+7);\n\t\t}\n\t\treturn ans;\n\t}",
"int sqtimes = (int)Math.sqrt(times);",
"sqtimes",
"(int)Math.sqrt(times)",
"Math.sqrt",
"Math",
"times",
"long ans = 1;",
"ans",
"1",
"for(int i =0;i<sqtimes;i++) {\n\t\t\tans = (ans * target)%(1000000000+7);\n\t\t}",
"int i =0;",
"int i =0;",
"i",
"0",
"i<sqtimes",
"i",
"sqtimes",
"i++",
"i++",
"i",
"{\n\t\t\tans = (ans * target)%(1000000000+7);\n\t\t}",
"{\n\t\t\tans = (ans * target)%(1000000000+7);\n\t\t}",
"ans = (ans * target)%(1000000000+7)",
"ans",
"(ans * target)%(1000000000+7)",
"(ans * target)",
"ans",
"target",
"(1000000000+7)",
"1000000000",
"7",
"long holder = ans;",
"holder",
"ans",
"ans = 1",
"ans",
"1",
"for(int i =0;i<sqtimes;i++) {\n\t\t\tans = (ans*holder)%(1000000000+7);\n\t\t}",
"int i =0;",
"int i =0;",
"i",
"0",
"i<sqtimes",
"i",
"sqtimes",
"i++",
"i++",
"i",
"{\n\t\t\tans = (ans*holder)%(1000000000+7);\n\t\t}",
"{\n\t\t\tans = (ans*holder)%(1000000000+7);\n\t\t}",
"ans = (ans*holder)%(1000000000+7)",
"ans",
"(ans*holder)%(1000000000+7)",
"(ans*holder)",
"ans",
"holder",
"(1000000000+7)",
"1000000000",
"7",
"for(int i=0;i<times - sqtimes*sqtimes;i++) {\n\t\t\tans = (ans * target)%(1000000000+7);\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<times - sqtimes*sqtimes",
"i",
"times - sqtimes*sqtimes",
"times",
"sqtimes*sqtimes",
"sqtimes",
"sqtimes",
"i++",
"i++",
"i",
"{\n\t\t\tans = (ans * target)%(1000000000+7);\n\t\t}",
"{\n\t\t\tans = (ans * target)%(1000000000+7);\n\t\t}",
"ans = (ans * target)%(1000000000+7)",
"ans",
"(ans * target)%(1000000000+7)",
"(ans * target)",
"ans",
"target",
"(1000000000+7)",
"1000000000",
"7",
"return ans;",
"ans",
"int target",
"target",
"int times",
"times",
"static long div(long a) {//10_9+7のあまり\n\t\tif(a<0)a+=1000000000+7;\n\t\treturn a%(1000000000+7);\n\t}",
"div",
"{//10_9+7のあまり\n\t\tif(a<0)a+=1000000000+7;\n\t\treturn a%(1000000000+7);\n\t}",
"if(a<0)a+=1000000000+7;",
"a<0",
"a",
"0",
"a+=1000000000+7",
"a",
"1000000000+7",
"1000000000",
"7",
"return a%(1000000000+7);",
"a%(1000000000+7)",
"a",
"(1000000000+7)",
"1000000000",
"7",
"long a",
"a",
"public class Main {\n\n\tstatic long bignum = 1000000000+7;\n\n\tpublic static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint k = sc.nextInt();\n\t\tString s = sc.next();\n\t\tString[] ss = s.split(\"\");\n\n\t\tif(ss.length<=k) {\n\t\t\tSystem.out.println(s);\n\t\t}else {\n\t\t\tfor(int i =0;i<k;i++) {\n\t\t\t\tSystem.out.print(ss[i]);\n\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}\n\n\n\n\n\t}\n\n\n\tstatic long divn(int target, int times) {//10_9+7のあまり累乗版\n\t\tint sqtimes = (int)Math.sqrt(times);\n\t\tlong ans = 1;\n\t\tfor(int i =0;i<sqtimes;i++) {\n\t\t\tans = (ans * target)%(1000000000+7);\n\t\t}\n\t\tlong holder = ans;\n\t\tans = 1;\n\t\tfor(int i =0;i<sqtimes;i++) {\n\t\t\tans = (ans*holder)%(1000000000+7);\n\t\t}\n\t\tfor(int i=0;i<times - sqtimes*sqtimes;i++) {\n\t\t\tans = (ans * target)%(1000000000+7);\n\t\t}\n\t\treturn ans;\n\t}\n\n\tstatic long div(long a) {//10_9+7のあまり\n\t\tif(a<0)a+=1000000000+7;\n\t\treturn a%(1000000000+7);\n\t}\n\n}",
"public class Main {\n\n\tstatic long bignum = 1000000000+7;\n\n\tpublic static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint k = sc.nextInt();\n\t\tString s = sc.next();\n\t\tString[] ss = s.split(\"\");\n\n\t\tif(ss.length<=k) {\n\t\t\tSystem.out.println(s);\n\t\t}else {\n\t\t\tfor(int i =0;i<k;i++) {\n\t\t\t\tSystem.out.print(ss[i]);\n\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}\n\n\n\n\n\t}\n\n\n\tstatic long divn(int target, int times) {//10_9+7のあまり累乗版\n\t\tint sqtimes = (int)Math.sqrt(times);\n\t\tlong ans = 1;\n\t\tfor(int i =0;i<sqtimes;i++) {\n\t\t\tans = (ans * target)%(1000000000+7);\n\t\t}\n\t\tlong holder = ans;\n\t\tans = 1;\n\t\tfor(int i =0;i<sqtimes;i++) {\n\t\t\tans = (ans*holder)%(1000000000+7);\n\t\t}\n\t\tfor(int i=0;i<times - sqtimes*sqtimes;i++) {\n\t\t\tans = (ans * target)%(1000000000+7);\n\t\t}\n\t\treturn ans;\n\t}\n\n\tstatic long div(long a) {//10_9+7のあまり\n\t\tif(a<0)a+=1000000000+7;\n\t\treturn a%(1000000000+7);\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
static long bignum = 1000000000+7;
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int k = sc.nextInt();
String s = sc.next();
String[] ss = s.split("");
if(ss.length<=k) {
System.out.println(s);
}else {
for(int i =0;i<k;i++) {
System.out.print(ss[i]);
}
System.out.println("...");
}
}
static long divn(int target, int times) {//10_9+7のあまり累乗版
int sqtimes = (int)Math.sqrt(times);
long ans = 1;
for(int i =0;i<sqtimes;i++) {
ans = (ans * target)%(1000000000+7);
}
long holder = ans;
ans = 1;
for(int i =0;i<sqtimes;i++) {
ans = (ans*holder)%(1000000000+7);
}
for(int i=0;i<times - sqtimes*sqtimes;i++) {
ans = (ans * target)%(1000000000+7);
}
return ans;
}
static long div(long a) {//10_9+7のあまり
if(a<0)a+=1000000000+7;
return a%(1000000000+7);
}
}
/*
class City{
int order;
int prefecture;
int year;
int number;
City(int order,int prefecture, int year){
this.order = order;
this.prefecture = prefecture;
this.year = year;
}
}
*/
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
0,
13,
4,
18,
13,
41,
13,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
13,
4,
18,
18,
13,
13,
13,
30,
41,
13,
4,
18,
13,
17,
13,
4,
18,
18,
13,
13,
2,
13,
17,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
31,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
44,
48
],
[
41,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
6,
57
],
[
57,
58
]
] |
[
"import java.util.Scanner;\nclass Main {\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n \tint k;\n k = scan.nextInt();\n \tString s;\n s = scan.next();\n int num = s.length();\n if (k>=num)\n System.out.println(s);\n else{\n String str= s.substring(0,k);\n System.out.println(str+\"...\");\n }\n } \n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n \tint k;\n k = scan.nextInt();\n \tString s;\n s = scan.next();\n int num = s.length();\n if (k>=num)\n System.out.println(s);\n else{\n String str= s.substring(0,k);\n System.out.println(str+\"...\");\n }\n } \n}",
"Main",
"public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n \tint k;\n k = scan.nextInt();\n \tString s;\n s = scan.next();\n int num = s.length();\n if (k>=num)\n System.out.println(s);\n else{\n String str= s.substring(0,k);\n System.out.println(str+\"...\");\n }\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n \tint k;\n k = scan.nextInt();\n \tString s;\n s = scan.next();\n int num = s.length();\n if (k>=num)\n System.out.println(s);\n else{\n String str= s.substring(0,k);\n System.out.println(str+\"...\");\n }\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int k;",
"k",
"k = scan.nextInt()",
"k",
"scan.nextInt()",
"scan.nextInt",
"scan",
"String s;",
"s",
"s = scan.next()",
"s",
"scan.next()",
"scan.next",
"scan",
"int num = s.length();",
"num",
"s.length()",
"s.length",
"s",
"if (k>=num)\n System.out.println(s);\n else{\n String str= s.substring(0,k);\n System.out.println(str+\"...\");\n }",
"k>=num",
"k",
"num",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"{\n String str= s.substring(0,k);\n System.out.println(str+\"...\");\n }",
"String str= s.substring(0,k);",
"str",
"s.substring(0,k)",
"s.substring",
"s",
"0",
"k",
"System.out.println(str+\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"str+\"...\"",
"str",
"\"...\"",
"String[] args",
"args"
] |
import java.util.Scanner;
class Main {
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int k;
k = scan.nextInt();
String s;
s = scan.next();
int num = s.length();
if (k>=num)
System.out.println(s);
else{
String str= s.substring(0,k);
System.out.println(str+"...");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
62,
5
],
[
62,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
13,
14
],
[
14,
15
],
[
9,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
16,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
25,
26
],
[
26,
27
],
[
16,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
16,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
34,
38
],
[
33,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
33,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
53,
57
],
[
52,
58
],
[
6,
59
],
[
59,
60
],
[
0,
61
],
[
61,
62
],
[
61,
63
]
] |
[
"import java.io.*;\n\npublic class Main {\n public static void main(String [] args) {\n try {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int k = Integer.parseInt(in.readLine());\n String s = in.readLine();\n if (s.length() <= k) {\n System.out.print(s);\n } else {\n System.out.print(s.substring(0, k) + \"...\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n public static void main(String [] args) {\n try {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int k = Integer.parseInt(in.readLine());\n String s = in.readLine();\n if (s.length() <= k) {\n System.out.print(s);\n } else {\n System.out.print(s.substring(0, k) + \"...\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n}",
"Main",
"public static void main(String [] args) {\n try {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int k = Integer.parseInt(in.readLine());\n String s = in.readLine();\n if (s.length() <= k) {\n System.out.print(s);\n } else {\n System.out.print(s.substring(0, k) + \"...\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"main",
"{\n try {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int k = Integer.parseInt(in.readLine());\n String s = in.readLine();\n if (s.length() <= k) {\n System.out.print(s);\n } else {\n System.out.print(s.substring(0, k) + \"...\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"try {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int k = Integer.parseInt(in.readLine());\n String s = in.readLine();\n if (s.length() <= k) {\n System.out.print(s);\n } else {\n System.out.print(s.substring(0, k) + \"...\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n }",
"catch (Exception e) {\n e.printStackTrace();\n }",
"Exception e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int k = Integer.parseInt(in.readLine());\n String s = in.readLine();\n if (s.length() <= k) {\n System.out.print(s);\n } else {\n System.out.print(s.substring(0, k) + \"...\");\n }\n }",
"BufferedReader in = new BufferedReader(new InputStreamReader(System.in));",
"in",
"new BufferedReader(new InputStreamReader(System.in))",
"int k = Integer.parseInt(in.readLine());",
"k",
"Integer.parseInt(in.readLine())",
"Integer.parseInt",
"Integer",
"in.readLine()",
"in.readLine",
"in",
"String s = in.readLine();",
"s",
"in.readLine()",
"in.readLine",
"in",
"if (s.length() <= k) {\n System.out.print(s);\n } else {\n System.out.print(s.substring(0, k) + \"...\");\n }",
"s.length() <= k",
"s.length()",
"s.length",
"s",
"k",
"{\n System.out.print(s);\n }",
"System.out.print(s)",
"System.out.print",
"System.out",
"System",
"System.out",
"s",
"{\n System.out.print(s.substring(0, k) + \"...\");\n }",
"System.out.print(s.substring(0, k) + \"...\")",
"System.out.print",
"System.out",
"System",
"System.out",
"s.substring(0, k) + \"...\"",
"s.substring(0, k)",
"s.substring",
"s",
"0",
"k",
"\"...\"",
"String [] args",
"args",
"public class Main {\n public static void main(String [] args) {\n try {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int k = Integer.parseInt(in.readLine());\n String s = in.readLine();\n if (s.length() <= k) {\n System.out.print(s);\n } else {\n System.out.print(s.substring(0, k) + \"...\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n}",
"public class Main {\n public static void main(String [] args) {\n try {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int k = Integer.parseInt(in.readLine());\n String s = in.readLine();\n if (s.length() <= k) {\n System.out.print(s);\n } else {\n System.out.print(s.substring(0, k) + \"...\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n}",
"Main"
] |
import java.io.*;
public class Main {
public static void main(String [] args) {
try {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
int k = Integer.parseInt(in.readLine());
String s = in.readLine();
if (s.length() <= k) {
System.out.print(s);
} else {
System.out.print(s.substring(0, k) + "...");
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
4,
18,
13,
13,
30,
4,
18,
13,
2,
4,
18,
13,
17,
13,
17,
23,
13,
23,
13,
23,
13,
12,
13,
30,
29,
2,
2,
13,
4,
13,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
2,
13,
17,
30,
14,
2,
13,
13,
30,
0,
13,
2,
13,
13,
30,
0,
13,
2,
13,
13,
29,
2,
13,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
17,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
200,
8
],
[
200,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
14,
16
],
[
11,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
19,
21
],
[
11,
22
],
[
22,
23
],
[
22,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
11,
28
],
[
28,
29
],
[
28,
30
],
[
11,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
31,
35
],
[
31,
36
],
[
11,
37
],
[
37,
38
],
[
38,
39
],
[
9,
40
],
[
40,
41
],
[
200,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
46,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
46,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
58,
62
],
[
57,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
57,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
73,
77
],
[
72,
78
],
[
44,
79
],
[
79,
80
],
[
44,
81
],
[
81,
82
],
[
44,
83
],
[
83,
84
],
[
42,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
92,
94
],
[
92,
95
],
[
89,
96
],
[
85,
97
],
[
97,
98
],
[
85,
99
],
[
99,
100
],
[
42,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
109,
110
],
[
109,
111
],
[
104,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
120,
122
],
[
113,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
126,
128
],
[
103,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
101,
133
],
[
133,
134
],
[
101,
135
],
[
135,
136
],
[
200,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
137,
141
],
[
141,
142
],
[
137,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
145,
149
],
[
149,
150
],
[
149,
151
],
[
143,
152
],
[
152,
153
],
[
137,
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
],
[
168,
169
],
[
168,
170
],
[
170,
171
],
[
171,
172
],
[
167,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
156,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
137,
181
],
[
181,
182
],
[
181,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
185,
188
],
[
188,
189
],
[
137,
190
],
[
190,
191
],
[
190,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
194,
197
],
[
197,
198
],
[
0,
199
],
[
199,
200
],
[
199,
201
]
] |
[
"import java.io.*;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskB {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int t = in.nextInt();\n String s = in.next();\n if (s.length() <= t){\n out.print(s);\n } else {\n out.println(s.substring(0,t) + \"...\");\n }\n }\n\n private static int naib(int a, int b) {\n return a / (nod(a, b)) * b;\n }\n\n private static int nod(int a, int b) {\n while (a != 0 && b != 0) {\n if (a > b) {\n a = a % b;\n } else {\n b = b % a;\n }\n }\n return a + b;\n }\n }\n\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public Long nextLong() {\n return Long.parseLong(next());\n }\n\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskB {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int t = in.nextInt();\n String s = in.next();\n if (s.length() <= t){\n out.print(s);\n } else {\n out.println(s.substring(0,t) + \"...\");\n }\n }\n\n private static int naib(int a, int b) {\n return a / (nod(a, b)) * b;\n }\n\n private static int nod(int a, int b) {\n while (a != 0 && b != 0) {\n if (a > b) {\n a = a % b;\n } else {\n b = b % a;\n }\n }\n return a + b;\n }\n }\n\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public Long nextLong() {\n return Long.parseLong(next());\n }\n\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(1, in, out);\n out.close();\n }",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"InputReader in = new InputReader(inputStream);",
"in",
"new InputReader(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"TaskB solver = new TaskB();",
"solver",
"new TaskB()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class TaskB {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int t = in.nextInt();\n String s = in.next();\n if (s.length() <= t){\n out.print(s);\n } else {\n out.println(s.substring(0,t) + \"...\");\n }\n }\n\n private static int naib(int a, int b) {\n return a / (nod(a, b)) * b;\n }\n\n private static int nod(int a, int b) {\n while (a != 0 && b != 0) {\n if (a > b) {\n a = a % b;\n } else {\n b = b % a;\n }\n }\n return a + b;\n }\n }",
"TaskB",
"public void solve(int testNumber, InputReader in, PrintWriter out) {\n int t = in.nextInt();\n String s = in.next();\n if (s.length() <= t){\n out.print(s);\n } else {\n out.println(s.substring(0,t) + \"...\");\n }\n }",
"solve",
"{\n int t = in.nextInt();\n String s = in.next();\n if (s.length() <= t){\n out.print(s);\n } else {\n out.println(s.substring(0,t) + \"...\");\n }\n }",
"int t = in.nextInt();",
"t",
"in.nextInt()",
"in.nextInt",
"in",
"String s = in.next();",
"s",
"in.next()",
"in.next",
"in",
"if (s.length() <= t){\n out.print(s);\n } else {\n out.println(s.substring(0,t) + \"...\");\n }",
"s.length() <= t",
"s.length()",
"s.length",
"s",
"t",
"{\n out.print(s);\n }",
"out.print(s)",
"out.print",
"out",
"s",
"{\n out.println(s.substring(0,t) + \"...\");\n }",
"out.println(s.substring(0,t) + \"...\")",
"out.println",
"out",
"s.substring(0,t) + \"...\"",
"s.substring(0,t)",
"s.substring",
"s",
"0",
"t",
"\"...\"",
"int testNumber",
"testNumber",
"InputReader in",
"in",
"PrintWriter out",
"out",
"private static int naib(int a, int b) {\n return a / (nod(a, b)) * b;\n }",
"naib",
"{\n return a / (nod(a, b)) * b;\n }",
"return a / (nod(a, b)) * b;",
"a / (nod(a, b)) * b",
"a / (nod(a, b))",
"a",
"(nod(a, b))",
"nod",
"a",
"b",
"b",
"int a",
"a",
"int b",
"b",
"private static int nod(int a, int b) {\n while (a != 0 && b != 0) {\n if (a > b) {\n a = a % b;\n } else {\n b = b % a;\n }\n }\n return a + b;\n }",
"nod",
"{\n while (a != 0 && b != 0) {\n if (a > b) {\n a = a % b;\n } else {\n b = b % a;\n }\n }\n return a + b;\n }",
"while (a != 0 && b != 0) {\n if (a > b) {\n a = a % b;\n } else {\n b = b % a;\n }\n }",
"a != 0 && b != 0",
"a != 0",
"a",
"0",
"b != 0",
"b",
"0",
"{\n if (a > b) {\n a = a % b;\n } else {\n b = b % a;\n }\n }",
"if (a > b) {\n a = a % b;\n } else {\n b = b % a;\n }",
"a > b",
"a",
"b",
"{\n a = a % b;\n }",
"a = a % b",
"a",
"a % b",
"a",
"b",
"{\n b = b % a;\n }",
"b = b % a",
"b",
"b % a",
"b",
"a",
"return a + b;",
"a + b",
"a",
"b",
"int a",
"a",
"int b",
"b",
"static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public Long nextLong() {\n return Long.parseLong(next());\n }\n\n }",
"InputReader",
"public BufferedReader reader;",
"reader",
"public StringTokenizer tokenizer;",
"tokenizer",
"public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }",
"InputReader",
"{\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }",
"reader = new BufferedReader(new InputStreamReader(stream), 32768)",
"reader",
"new BufferedReader(new InputStreamReader(stream), 32768)",
"tokenizer = null",
"tokenizer",
"null",
"InputStream stream",
"stream",
"public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }",
"next",
"{\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }",
"while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"tokenizer == null || !tokenizer.hasMoreTokens()",
"tokenizer == null",
"tokenizer",
"null",
"!tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens",
"tokenizer",
"{\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }",
"catch (IOException e) {\n throw new RuntimeException(e);\n }",
"IOException e",
"{\n throw new RuntimeException(e);\n }",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n tokenizer = new StringTokenizer(reader.readLine());\n }",
"tokenizer = new StringTokenizer(reader.readLine())",
"tokenizer",
"new StringTokenizer(reader.readLine())",
"return tokenizer.nextToken();",
"tokenizer.nextToken()",
"tokenizer.nextToken",
"tokenizer",
"public int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public Long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskB {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int t = in.nextInt();\n String s = in.next();\n if (s.length() <= t){\n out.print(s);\n } else {\n out.println(s.substring(0,t) + \"...\");\n }\n }\n\n private static int naib(int a, int b) {\n return a / (nod(a, b)) * b;\n }\n\n private static int nod(int a, int b) {\n while (a != 0 && b != 0) {\n if (a > b) {\n a = a % b;\n } else {\n b = b % a;\n }\n }\n return a + b;\n }\n }\n\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public Long nextLong() {\n return Long.parseLong(next());\n }\n\n }\n}",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskB {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int t = in.nextInt();\n String s = in.next();\n if (s.length() <= t){\n out.print(s);\n } else {\n out.println(s.substring(0,t) + \"...\");\n }\n }\n\n private static int naib(int a, int b) {\n return a / (nod(a, b)) * b;\n }\n\n private static int nod(int a, int b) {\n while (a != 0 && b != 0) {\n if (a > b) {\n a = a % b;\n } else {\n b = b % a;\n }\n }\n return a + b;\n }\n }\n\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public Long nextLong() {\n return Long.parseLong(next());\n }\n\n }\n}",
"Main"
] |
import java.io.*;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) throws IOException {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
InputReader in = new InputReader(inputStream);
PrintWriter out = new PrintWriter(outputStream);
TaskB solver = new TaskB();
solver.solve(1, in, out);
out.close();
}
static class TaskB {
public void solve(int testNumber, InputReader in, PrintWriter out) {
int t = in.nextInt();
String s = in.next();
if (s.length() <= t){
out.print(s);
} else {
out.println(s.substring(0,t) + "...");
}
}
private static int naib(int a, int b) {
return a / (nod(a, b)) * b;
}
private static int nod(int a, int b) {
while (a != 0 && b != 0) {
if (a > b) {
a = a % b;
} else {
b = b % a;
}
}
return a + b;
}
}
static class InputReader {
public BufferedReader reader;
public StringTokenizer tokenizer;
public InputReader(InputStream stream) {
reader = new BufferedReader(new InputStreamReader(stream), 32768);
tokenizer = null;
}
public String next() {
while (tokenizer == null || !tokenizer.hasMoreTokens()) {
try {
tokenizer = new StringTokenizer(reader.readLine());
} catch (IOException e) {
throw new RuntimeException(e);
}
}
return tokenizer.nextToken();
}
public int nextInt() {
return Integer.parseInt(next());
}
public Long nextLong() {
return Long.parseLong(next());
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
14,
2,
4,
18,
13,
13,
30,
0,
13,
4,
18,
13,
17,
13,
0,
13,
2,
13,
17,
30,
0,
13,
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
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
25,
29
],
[
24,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
33,
37
],
[
30,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
24,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
8,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
6,
53
],
[
53,
54
],
[
0,
55
],
[
55,
56
],
[
55,
57
]
] |
[
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n String S = sc.next();\n String tmp;\n if(S.length() > K) {\n tmp = S.substring(0,K);\n tmp = tmp + \"...\";\n } else {\n tmp = S;\n }\n System.out.println(tmp);\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 K = sc.nextInt();\n String S = sc.next();\n String tmp;\n if(S.length() > K) {\n tmp = S.substring(0,K);\n tmp = tmp + \"...\";\n } else {\n tmp = S;\n }\n System.out.println(tmp);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n String S = sc.next();\n String tmp;\n if(S.length() > K) {\n tmp = S.substring(0,K);\n tmp = tmp + \"...\";\n } else {\n tmp = S;\n }\n System.out.println(tmp);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n String S = sc.next();\n String tmp;\n if(S.length() > K) {\n tmp = S.substring(0,K);\n tmp = tmp + \"...\";\n } else {\n tmp = S;\n }\n System.out.println(tmp);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String S = sc.next();",
"S",
"sc.next()",
"sc.next",
"sc",
"String tmp;",
"tmp",
"if(S.length() > K) {\n tmp = S.substring(0,K);\n tmp = tmp + \"...\";\n } else {\n tmp = S;\n }",
"S.length() > K",
"S.length()",
"S.length",
"S",
"K",
"{\n tmp = S.substring(0,K);\n tmp = tmp + \"...\";\n }",
"tmp = S.substring(0,K)",
"tmp",
"S.substring(0,K)",
"S.substring",
"S",
"0",
"K",
"tmp = tmp + \"...\"",
"tmp",
"tmp + \"...\"",
"tmp",
"\"...\"",
"{\n tmp = S;\n }",
"tmp = S",
"tmp",
"S",
"System.out.println(tmp)",
"System.out.println",
"System.out",
"System",
"System.out",
"tmp",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n String S = sc.next();\n String tmp;\n if(S.length() > K) {\n tmp = S.substring(0,K);\n tmp = tmp + \"...\";\n } else {\n tmp = S;\n }\n System.out.println(tmp);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n String S = sc.next();\n String tmp;\n if(S.length() > K) {\n tmp = S.substring(0,K);\n tmp = tmp + \"...\";\n } else {\n tmp = S;\n }\n System.out.println(tmp);\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
String S = sc.next();
String tmp;
if(S.length() > K) {
tmp = S.substring(0,K);
tmp = tmp + "...";
} else {
tmp = S;
}
System.out.println(tmp);
}
}
|
[
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,
13,
41,
13,
17,
14,
2,
13,
17,
29,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
0,
13,
2,
13,
13,
14,
2,
13,
13,
30,
40,
13,
40,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
4,
18,
13,
13,
14,
2,
4,
18,
13,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
17,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
12,
13,
30,
29,
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
],
[
260,
26
],
[
260,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
33,
35
],
[
29,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
40,
41
],
[
29,
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
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
55,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
64,
66
],
[
61,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
72,
73
],
[
61,
74
],
[
74,
75
],
[
29,
76
],
[
76,
77
],
[
27,
78
],
[
78,
79
],
[
260,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
82,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
82,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
97,
101
],
[
96,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
103,
113
],
[
113,
114
],
[
114,
115
],
[
103,
116
],
[
117,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
123,
124
],
[
124,
125
],
[
123,
126
],
[
82,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
128,
132
],
[
127,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
134,
139
],
[
139,
140
],
[
139,
141
],
[
134,
142
],
[
142,
143
],
[
143,
144
],
[
134,
145
],
[
146,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
147,
152
],
[
152,
153
],
[
153,
154
],
[
152,
155
],
[
133,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
156,
161
],
[
80,
162
],
[
162,
163
],
[
260,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
164,
168
],
[
168,
169
],
[
164,
170
],
[
170,
171
],
[
170,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
164,
176
],
[
176,
177
],
[
176,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
180,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
179,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
189,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
178,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
164,
204
],
[
204,
205
],
[
204,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
208,
211
],
[
211,
212
],
[
164,
213
],
[
213,
214
],
[
213,
215
],
[
215,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
217,
220
],
[
220,
221
],
[
164,
222
],
[
222,
223
],
[
222,
224
],
[
224,
225
],
[
225,
226
],
[
226,
227
],
[
227,
228
],
[
226,
229
],
[
229,
230
],
[
164,
231
],
[
231,
232
],
[
231,
233
],
[
233,
234
],
[
234,
235
],
[
234,
236
],
[
233,
237
],
[
237,
238
],
[
238,
239
],
[
238,
240
],
[
240,
241
],
[
241,
242
],
[
242,
243
],
[
237,
244
],
[
244,
245
],
[
245,
246
],
[
245,
247
],
[
247,
248
],
[
248,
249
],
[
233,
250
],
[
250,
251
],
[
164,
252
],
[
252,
253
],
[
252,
254
],
[
254,
255
],
[
255,
256
],
[
252,
257
],
[
257,
258
],
[
0,
259
],
[
259,
260
],
[
259,
261
]
] |
[
"import java.io.BufferedReader;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.List;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Scanner;\nimport java.util.StringTokenizer;\n\n\npublic class Main {\n\t static class FastReader \n\t { \n\t BufferedReader br; \n\t StringTokenizer st; \n\t \n\t \n\t public FastReader() \n\t { \n\t br = new BufferedReader(new\n\t InputStreamReader(System.in)); \n\t } \n\t \n\t String next() \n\t { \n\t while (st == null || !st.hasMoreTokens()) \n\t { \n\t try\n\t { \n\t st = new StringTokenizer(br.readLine()); \n\t } \n\t catch (IOException e) \n\t { \n\t e.printStackTrace(); \n\t } \n\t } \n\t return st.nextToken();\n\t \n\t } \n\t \n\t int nextInt() \n\t { \n\t return Integer.parseInt(next()); \n\t } \n\t \n\t long nextLong() \n\t { \n\t return Long.parseLong(next()); \n\t } \n\t \n\t double nextDouble() \n\t { \n\t return Double.parseDouble(next()); \n\t } \n\t \n\t String nextLine() \n\t { \n\t String str = \"\"; \n\t try\n\t { \n\t str = br.readLine(); \n\t } \n\t catch (IOException e) \n\t { \n\t e.printStackTrace(); \n\t } \n\t return str; \n\t }\n\n\t\t\tpublic Character charAt(int i) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn null;\n\t\t\t} \n\t } \n\t static int divisors(long x) {\n\t\t long limit = x;\n\t\t int numberOfDivisors = 0;\n\n\t\t if (x == 1) return 1;\n\n\t\t for (int i = 1; i < limit; ++i) {\n\t\t if (x % i == 0) {\n\t\t limit = x / i;\n\t\t if (limit != i) {\n\t\t numberOfDivisors++;\n\t\t }\n\t\t numberOfDivisors++;\n\t\t }\n\t\t }\n\n\t\t return numberOfDivisors;\n\t\t} \n\tpublic static void main(String[] args)throws IOException {\n\t\tFastReader s=new FastReader();\t\t\n\t\tint k = s.nextInt();\n\t\tString x = s.next();\n\t\tif(x.length()<=k) {\n\t\t\tfor(int i=0;i<x.length();i++) {\n\t\t\t\tSystem.out.print(x.charAt(i));\n\t\t\t}\n\t\t}\n\t\tif(x.length()>k) {\n\t\t\tfor(int i=0;i<k;i++) {\n\t\t\t\tSystem.out.print(x.charAt(i));\n\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n\t static class FastReader \n\t { \n\t BufferedReader br; \n\t StringTokenizer st; \n\t \n\t \n\t public FastReader() \n\t { \n\t br = new BufferedReader(new\n\t InputStreamReader(System.in)); \n\t } \n\t \n\t String next() \n\t { \n\t while (st == null || !st.hasMoreTokens()) \n\t { \n\t try\n\t { \n\t st = new StringTokenizer(br.readLine()); \n\t } \n\t catch (IOException e) \n\t { \n\t e.printStackTrace(); \n\t } \n\t } \n\t return st.nextToken();\n\t \n\t } \n\t \n\t int nextInt() \n\t { \n\t return Integer.parseInt(next()); \n\t } \n\t \n\t long nextLong() \n\t { \n\t return Long.parseLong(next()); \n\t } \n\t \n\t double nextDouble() \n\t { \n\t return Double.parseDouble(next()); \n\t } \n\t \n\t String nextLine() \n\t { \n\t String str = \"\"; \n\t try\n\t { \n\t str = br.readLine(); \n\t } \n\t catch (IOException e) \n\t { \n\t e.printStackTrace(); \n\t } \n\t return str; \n\t }\n\n\t\t\tpublic Character charAt(int i) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn null;\n\t\t\t} \n\t } \n\t static int divisors(long x) {\n\t\t long limit = x;\n\t\t int numberOfDivisors = 0;\n\n\t\t if (x == 1) return 1;\n\n\t\t for (int i = 1; i < limit; ++i) {\n\t\t if (x % i == 0) {\n\t\t limit = x / i;\n\t\t if (limit != i) {\n\t\t numberOfDivisors++;\n\t\t }\n\t\t numberOfDivisors++;\n\t\t }\n\t\t }\n\n\t\t return numberOfDivisors;\n\t\t} \n\tpublic static void main(String[] args)throws IOException {\n\t\tFastReader s=new FastReader();\t\t\n\t\tint k = s.nextInt();\n\t\tString x = s.next();\n\t\tif(x.length()<=k) {\n\t\t\tfor(int i=0;i<x.length();i++) {\n\t\t\t\tSystem.out.print(x.charAt(i));\n\t\t\t}\n\t\t}\n\t\tif(x.length()>k) {\n\t\t\tfor(int i=0;i<k;i++) {\n\t\t\t\tSystem.out.print(x.charAt(i));\n\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}\n\t}\n}",
"Main",
"static int divisors(long x) {\n\t\t long limit = x;\n\t\t int numberOfDivisors = 0;\n\n\t\t if (x == 1) return 1;\n\n\t\t for (int i = 1; i < limit; ++i) {\n\t\t if (x % i == 0) {\n\t\t limit = x / i;\n\t\t if (limit != i) {\n\t\t numberOfDivisors++;\n\t\t }\n\t\t numberOfDivisors++;\n\t\t }\n\t\t }\n\n\t\t return numberOfDivisors;\n\t\t}",
"divisors",
"{\n\t\t long limit = x;\n\t\t int numberOfDivisors = 0;\n\n\t\t if (x == 1) return 1;\n\n\t\t for (int i = 1; i < limit; ++i) {\n\t\t if (x % i == 0) {\n\t\t limit = x / i;\n\t\t if (limit != i) {\n\t\t numberOfDivisors++;\n\t\t }\n\t\t numberOfDivisors++;\n\t\t }\n\t\t }\n\n\t\t return numberOfDivisors;\n\t\t}",
"long limit = x;",
"limit",
"x",
"int numberOfDivisors = 0;",
"numberOfDivisors",
"0",
"if (x == 1) return 1;",
"x == 1",
"x",
"1",
"return 1;",
"1",
"for (int i = 1; i < limit; ++i) {\n\t\t if (x % i == 0) {\n\t\t limit = x / i;\n\t\t if (limit != i) {\n\t\t numberOfDivisors++;\n\t\t }\n\t\t numberOfDivisors++;\n\t\t }\n\t\t }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i < limit",
"i",
"limit",
"++i",
"++i",
"i",
"{\n\t\t if (x % i == 0) {\n\t\t limit = x / i;\n\t\t if (limit != i) {\n\t\t numberOfDivisors++;\n\t\t }\n\t\t numberOfDivisors++;\n\t\t }\n\t\t }",
"{\n\t\t if (x % i == 0) {\n\t\t limit = x / i;\n\t\t if (limit != i) {\n\t\t numberOfDivisors++;\n\t\t }\n\t\t numberOfDivisors++;\n\t\t }\n\t\t }",
"if (x % i == 0) {\n\t\t limit = x / i;\n\t\t if (limit != i) {\n\t\t numberOfDivisors++;\n\t\t }\n\t\t numberOfDivisors++;\n\t\t }",
"x % i == 0",
"x % i",
"x",
"i",
"0",
"{\n\t\t limit = x / i;\n\t\t if (limit != i) {\n\t\t numberOfDivisors++;\n\t\t }\n\t\t numberOfDivisors++;\n\t\t }",
"limit = x / i",
"limit",
"x / i",
"x",
"i",
"if (limit != i) {\n\t\t numberOfDivisors++;\n\t\t }",
"limit != i",
"limit",
"i",
"{\n\t\t numberOfDivisors++;\n\t\t }",
"numberOfDivisors++",
"numberOfDivisors",
"numberOfDivisors++",
"numberOfDivisors",
"return numberOfDivisors;",
"numberOfDivisors",
"long x",
"x",
"public static void main(String[] args)throws IOException {\n\t\tFastReader s=new FastReader();\t\t\n\t\tint k = s.nextInt();\n\t\tString x = s.next();\n\t\tif(x.length()<=k) {\n\t\t\tfor(int i=0;i<x.length();i++) {\n\t\t\t\tSystem.out.print(x.charAt(i));\n\t\t\t}\n\t\t}\n\t\tif(x.length()>k) {\n\t\t\tfor(int i=0;i<k;i++) {\n\t\t\t\tSystem.out.print(x.charAt(i));\n\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}\n\t}",
"main",
"{\n\t\tFastReader s=new FastReader();\t\t\n\t\tint k = s.nextInt();\n\t\tString x = s.next();\n\t\tif(x.length()<=k) {\n\t\t\tfor(int i=0;i<x.length();i++) {\n\t\t\t\tSystem.out.print(x.charAt(i));\n\t\t\t}\n\t\t}\n\t\tif(x.length()>k) {\n\t\t\tfor(int i=0;i<k;i++) {\n\t\t\t\tSystem.out.print(x.charAt(i));\n\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}\n\t}",
"FastReader s=new FastReader();",
"s",
"new FastReader()",
"int k = s.nextInt();",
"k",
"s.nextInt()",
"s.nextInt",
"s",
"String x = s.next();",
"x",
"s.next()",
"s.next",
"s",
"if(x.length()<=k) {\n\t\t\tfor(int i=0;i<x.length();i++) {\n\t\t\t\tSystem.out.print(x.charAt(i));\n\t\t\t}\n\t\t}",
"x.length()<=k",
"x.length()",
"x.length",
"x",
"k",
"{\n\t\t\tfor(int i=0;i<x.length();i++) {\n\t\t\t\tSystem.out.print(x.charAt(i));\n\t\t\t}\n\t\t}",
"for(int i=0;i<x.length();i++) {\n\t\t\t\tSystem.out.print(x.charAt(i));\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<x.length()",
"i",
"x.length()",
"x.length",
"x",
"i++",
"i++",
"i",
"{\n\t\t\t\tSystem.out.print(x.charAt(i));\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(x.charAt(i));\n\t\t\t}",
"System.out.print(x.charAt(i))",
"System.out.print",
"System.out",
"System",
"System.out",
"x.charAt(i)",
"x.charAt",
"x",
"i",
"if(x.length()>k) {\n\t\t\tfor(int i=0;i<k;i++) {\n\t\t\t\tSystem.out.print(x.charAt(i));\n\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}",
"x.length()>k",
"x.length()",
"x.length",
"x",
"k",
"{\n\t\t\tfor(int i=0;i<k;i++) {\n\t\t\t\tSystem.out.print(x.charAt(i));\n\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}",
"for(int i=0;i<k;i++) {\n\t\t\t\tSystem.out.print(x.charAt(i));\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<k",
"i",
"k",
"i++",
"i++",
"i",
"{\n\t\t\t\tSystem.out.print(x.charAt(i));\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(x.charAt(i));\n\t\t\t}",
"System.out.print(x.charAt(i))",
"System.out.print",
"System.out",
"System",
"System.out",
"x.charAt(i)",
"x.charAt",
"x",
"i",
"System.out.println(\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"...\"",
"String[] args",
"args",
"static class FastReader \n\t { \n\t BufferedReader br; \n\t StringTokenizer st; \n\t \n\t \n\t public FastReader() \n\t { \n\t br = new BufferedReader(new\n\t InputStreamReader(System.in)); \n\t } \n\t \n\t String next() \n\t { \n\t while (st == null || !st.hasMoreTokens()) \n\t { \n\t try\n\t { \n\t st = new StringTokenizer(br.readLine()); \n\t } \n\t catch (IOException e) \n\t { \n\t e.printStackTrace(); \n\t } \n\t } \n\t return st.nextToken();\n\t \n\t } \n\t \n\t int nextInt() \n\t { \n\t return Integer.parseInt(next()); \n\t } \n\t \n\t long nextLong() \n\t { \n\t return Long.parseLong(next()); \n\t } \n\t \n\t double nextDouble() \n\t { \n\t return Double.parseDouble(next()); \n\t } \n\t \n\t String nextLine() \n\t { \n\t String str = \"\"; \n\t try\n\t { \n\t str = br.readLine(); \n\t } \n\t catch (IOException e) \n\t { \n\t e.printStackTrace(); \n\t } \n\t return str; \n\t }\n\n\t\t\tpublic Character charAt(int i) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn null;\n\t\t\t} \n\t }",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader() \n\t { \n\t br = new BufferedReader(new\n\t InputStreamReader(System.in)); \n\t }",
"FastReader",
"{ \n\t br = new BufferedReader(new\n\t InputStreamReader(System.in)); \n\t }",
"br = new BufferedReader(new\n\t InputStreamReader(System.in))",
"br",
"new BufferedReader(new\n\t InputStreamReader(System.in))",
"String next() \n\t { \n\t while (st == null || !st.hasMoreTokens()) \n\t { \n\t try\n\t { \n\t st = new StringTokenizer(br.readLine()); \n\t } \n\t catch (IOException e) \n\t { \n\t e.printStackTrace(); \n\t } \n\t } \n\t return st.nextToken();\n\t \n\t }",
"next",
"{ \n\t while (st == null || !st.hasMoreTokens()) \n\t { \n\t try\n\t { \n\t st = new StringTokenizer(br.readLine()); \n\t } \n\t catch (IOException e) \n\t { \n\t e.printStackTrace(); \n\t } \n\t } \n\t return st.nextToken();\n\t \n\t }",
"while (st == null || !st.hasMoreTokens()) \n\t { \n\t try\n\t { \n\t st = new StringTokenizer(br.readLine()); \n\t } \n\t catch (IOException e) \n\t { \n\t e.printStackTrace(); \n\t } \n\t }",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{ \n\t try\n\t { \n\t st = new StringTokenizer(br.readLine()); \n\t } \n\t catch (IOException e) \n\t { \n\t e.printStackTrace(); \n\t } \n\t }",
"try\n\t { \n\t st = new StringTokenizer(br.readLine()); \n\t } \n\t catch (IOException e) \n\t { \n\t e.printStackTrace(); \n\t }",
"catch (IOException e) \n\t { \n\t e.printStackTrace(); \n\t }",
"IOException e",
"{ \n\t e.printStackTrace(); \n\t }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{ \n\t st = new StringTokenizer(br.readLine()); \n\t }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() \n\t { \n\t return Integer.parseInt(next()); \n\t }",
"nextInt",
"{ \n\t return Integer.parseInt(next()); \n\t }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() \n\t { \n\t return Long.parseLong(next()); \n\t }",
"nextLong",
"{ \n\t return Long.parseLong(next()); \n\t }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() \n\t { \n\t return Double.parseDouble(next()); \n\t }",
"nextDouble",
"{ \n\t return Double.parseDouble(next()); \n\t }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine() \n\t { \n\t String str = \"\"; \n\t try\n\t { \n\t str = br.readLine(); \n\t } \n\t catch (IOException e) \n\t { \n\t e.printStackTrace(); \n\t } \n\t return str; \n\t }",
"nextLine",
"{ \n\t String str = \"\"; \n\t try\n\t { \n\t str = br.readLine(); \n\t } \n\t catch (IOException e) \n\t { \n\t e.printStackTrace(); \n\t } \n\t return str; \n\t }",
"String str = \"\";",
"str",
"\"\"",
"try\n\t { \n\t str = br.readLine(); \n\t } \n\t catch (IOException e) \n\t { \n\t e.printStackTrace(); \n\t }",
"catch (IOException e) \n\t { \n\t e.printStackTrace(); \n\t }",
"IOException e",
"{ \n\t e.printStackTrace(); \n\t }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{ \n\t str = br.readLine(); \n\t }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public Character charAt(int i) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn null;\n\t\t\t}",
"charAt",
"{\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn null;\n\t\t\t}",
"return null;",
"null",
"int i",
"i",
"public class Main {\n\t static class FastReader \n\t { \n\t BufferedReader br; \n\t StringTokenizer st; \n\t \n\t \n\t public FastReader() \n\t { \n\t br = new BufferedReader(new\n\t InputStreamReader(System.in)); \n\t } \n\t \n\t String next() \n\t { \n\t while (st == null || !st.hasMoreTokens()) \n\t { \n\t try\n\t { \n\t st = new StringTokenizer(br.readLine()); \n\t } \n\t catch (IOException e) \n\t { \n\t e.printStackTrace(); \n\t } \n\t } \n\t return st.nextToken();\n\t \n\t } \n\t \n\t int nextInt() \n\t { \n\t return Integer.parseInt(next()); \n\t } \n\t \n\t long nextLong() \n\t { \n\t return Long.parseLong(next()); \n\t } \n\t \n\t double nextDouble() \n\t { \n\t return Double.parseDouble(next()); \n\t } \n\t \n\t String nextLine() \n\t { \n\t String str = \"\"; \n\t try\n\t { \n\t str = br.readLine(); \n\t } \n\t catch (IOException e) \n\t { \n\t e.printStackTrace(); \n\t } \n\t return str; \n\t }\n\n\t\t\tpublic Character charAt(int i) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn null;\n\t\t\t} \n\t } \n\t static int divisors(long x) {\n\t\t long limit = x;\n\t\t int numberOfDivisors = 0;\n\n\t\t if (x == 1) return 1;\n\n\t\t for (int i = 1; i < limit; ++i) {\n\t\t if (x % i == 0) {\n\t\t limit = x / i;\n\t\t if (limit != i) {\n\t\t numberOfDivisors++;\n\t\t }\n\t\t numberOfDivisors++;\n\t\t }\n\t\t }\n\n\t\t return numberOfDivisors;\n\t\t} \n\tpublic static void main(String[] args)throws IOException {\n\t\tFastReader s=new FastReader();\t\t\n\t\tint k = s.nextInt();\n\t\tString x = s.next();\n\t\tif(x.length()<=k) {\n\t\t\tfor(int i=0;i<x.length();i++) {\n\t\t\t\tSystem.out.print(x.charAt(i));\n\t\t\t}\n\t\t}\n\t\tif(x.length()>k) {\n\t\t\tfor(int i=0;i<k;i++) {\n\t\t\t\tSystem.out.print(x.charAt(i));\n\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}\n\t}\n}",
"public class Main {\n\t static class FastReader \n\t { \n\t BufferedReader br; \n\t StringTokenizer st; \n\t \n\t \n\t public FastReader() \n\t { \n\t br = new BufferedReader(new\n\t InputStreamReader(System.in)); \n\t } \n\t \n\t String next() \n\t { \n\t while (st == null || !st.hasMoreTokens()) \n\t { \n\t try\n\t { \n\t st = new StringTokenizer(br.readLine()); \n\t } \n\t catch (IOException e) \n\t { \n\t e.printStackTrace(); \n\t } \n\t } \n\t return st.nextToken();\n\t \n\t } \n\t \n\t int nextInt() \n\t { \n\t return Integer.parseInt(next()); \n\t } \n\t \n\t long nextLong() \n\t { \n\t return Long.parseLong(next()); \n\t } \n\t \n\t double nextDouble() \n\t { \n\t return Double.parseDouble(next()); \n\t } \n\t \n\t String nextLine() \n\t { \n\t String str = \"\"; \n\t try\n\t { \n\t str = br.readLine(); \n\t } \n\t catch (IOException e) \n\t { \n\t e.printStackTrace(); \n\t } \n\t return str; \n\t }\n\n\t\t\tpublic Character charAt(int i) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn null;\n\t\t\t} \n\t } \n\t static int divisors(long x) {\n\t\t long limit = x;\n\t\t int numberOfDivisors = 0;\n\n\t\t if (x == 1) return 1;\n\n\t\t for (int i = 1; i < limit; ++i) {\n\t\t if (x % i == 0) {\n\t\t limit = x / i;\n\t\t if (limit != i) {\n\t\t numberOfDivisors++;\n\t\t }\n\t\t numberOfDivisors++;\n\t\t }\n\t\t }\n\n\t\t return numberOfDivisors;\n\t\t} \n\tpublic static void main(String[] args)throws IOException {\n\t\tFastReader s=new FastReader();\t\t\n\t\tint k = s.nextInt();\n\t\tString x = s.next();\n\t\tif(x.length()<=k) {\n\t\t\tfor(int i=0;i<x.length();i++) {\n\t\t\t\tSystem.out.print(x.charAt(i));\n\t\t\t}\n\t\t}\n\t\tif(x.length()>k) {\n\t\t\tfor(int i=0;i<k;i++) {\n\t\t\t\tSystem.out.print(x.charAt(i));\n\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}\n\t}\n}",
"Main"
] |
import java.io.BufferedReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;
import java.util.StringTokenizer;
public class Main {
static class FastReader
{
BufferedReader br;
StringTokenizer st;
public FastReader()
{
br = new BufferedReader(new
InputStreamReader(System.in));
}
String next()
{
while (st == null || !st.hasMoreTokens())
{
try
{
st = new StringTokenizer(br.readLine());
}
catch (IOException e)
{
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt()
{
return Integer.parseInt(next());
}
long nextLong()
{
return Long.parseLong(next());
}
double nextDouble()
{
return Double.parseDouble(next());
}
String nextLine()
{
String str = "";
try
{
str = br.readLine();
}
catch (IOException e)
{
e.printStackTrace();
}
return str;
}
public Character charAt(int i) {
// TODO Auto-generated method stub
return null;
}
}
static int divisors(long x) {
long limit = x;
int numberOfDivisors = 0;
if (x == 1) return 1;
for (int i = 1; i < limit; ++i) {
if (x % i == 0) {
limit = x / i;
if (limit != i) {
numberOfDivisors++;
}
numberOfDivisors++;
}
}
return numberOfDivisors;
}
public static void main(String[] args)throws IOException {
FastReader s=new FastReader();
int k = s.nextInt();
String x = s.next();
if(x.length()<=k) {
for(int i=0;i<x.length();i++) {
System.out.print(x.charAt(i));
}
}
if(x.length()>k) {
for(int i=0;i<k;i++) {
System.out.print(x.charAt(i));
}
System.out.println("...");
}
}
}
|
[
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,
4,
18,
13,
14,
2,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
4,
18,
18,
13,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
17,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
162,
14
],
[
162,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
17,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
17,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
32,
36
],
[
31,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
31,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
43,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
15,
71
],
[
71,
72
],
[
162,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
73,
77
],
[
77,
78
],
[
73,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
73,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
89,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
88,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
98,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
87,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
73,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
117,
120
],
[
120,
121
],
[
73,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
126,
129
],
[
129,
130
],
[
73,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
135,
138
],
[
138,
139
],
[
73,
140
],
[
140,
141
],
[
140,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
142,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
146,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
157,
158
],
[
142,
159
],
[
159,
160
],
[
0,
161
],
[
161,
162
],
[
161,
163
]
] |
[
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main\n{\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n public static void main(String args[])\n {\n FastReader obj = new FastReader();\n int n = obj.nextInt();\n String s = obj.next();\n if(s.length()<=n) System.out.println(s);\n else\n {\n for(int i=0;i<n;i++)\n System.out.print(s.charAt(i));\n System.out.print(\"...\");\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main\n{\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n public static void main(String args[])\n {\n FastReader obj = new FastReader();\n int n = obj.nextInt();\n String s = obj.next();\n if(s.length()<=n) System.out.println(s);\n else\n {\n for(int i=0;i<n;i++)\n System.out.print(s.charAt(i));\n System.out.print(\"...\");\n }\n }\n}",
"Main",
"public static void main(String args[])\n {\n FastReader obj = new FastReader();\n int n = obj.nextInt();\n String s = obj.next();\n if(s.length()<=n) System.out.println(s);\n else\n {\n for(int i=0;i<n;i++)\n System.out.print(s.charAt(i));\n System.out.print(\"...\");\n }\n }",
"main",
"{\n FastReader obj = new FastReader();\n int n = obj.nextInt();\n String s = obj.next();\n if(s.length()<=n) System.out.println(s);\n else\n {\n for(int i=0;i<n;i++)\n System.out.print(s.charAt(i));\n System.out.print(\"...\");\n }\n }",
"FastReader obj = new FastReader();",
"obj",
"new FastReader()",
"int n = obj.nextInt();",
"n",
"obj.nextInt()",
"obj.nextInt",
"obj",
"String s = obj.next();",
"s",
"obj.next()",
"obj.next",
"obj",
"if(s.length()<=n) System.out.println(s);\n else\n {\n for(int i=0;i<n;i++)\n System.out.print(s.charAt(i));\n System.out.print(\"...\");\n }",
"s.length()<=n",
"s.length()",
"s.length",
"s",
"n",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"{\n for(int i=0;i<n;i++)\n System.out.print(s.charAt(i));\n System.out.print(\"...\");\n }",
"for(int i=0;i<n;i++)\n System.out.print(s.charAt(i));",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"System.out.print(s.charAt(i));",
"System.out.print(s.charAt(i))",
"System.out.print",
"System.out",
"System",
"System.out",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"System.out.print(\"...\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"...\"",
"String args[]",
"args",
"static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }",
"FastReader",
"{\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }",
"br = new BufferedReader(new\n InputStreamReader(System.in))",
"br",
"new BufferedReader(new\n InputStreamReader(System.in))",
"String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"nextLine",
"{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"String str = \"\";",
"str",
"\"\"",
"try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n str = br.readLine();\n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main\n{\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n public static void main(String args[])\n {\n FastReader obj = new FastReader();\n int n = obj.nextInt();\n String s = obj.next();\n if(s.length()<=n) System.out.println(s);\n else\n {\n for(int i=0;i<n;i++)\n System.out.print(s.charAt(i));\n System.out.print(\"...\");\n }\n }\n}",
"public class Main\n{\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n public static void main(String args[])\n {\n FastReader obj = new FastReader();\n int n = obj.nextInt();\n String s = obj.next();\n if(s.length()<=n) System.out.println(s);\n else\n {\n for(int i=0;i<n;i++)\n System.out.print(s.charAt(i));\n System.out.print(\"...\");\n }\n }\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main
{
static class FastReader {
BufferedReader br;
StringTokenizer st;
public FastReader() {
br = new BufferedReader(new
InputStreamReader(System.in));
}
String next() {
while (st == null || !st.hasMoreElements()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
String nextLine() {
String str = "";
try {
str = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return str;
}
}
public static void main(String args[])
{
FastReader obj = new FastReader();
int n = obj.nextInt();
String s = obj.next();
if(s.length()<=n) System.out.println(s);
else
{
for(int i=0;i<n;i++)
System.out.print(s.charAt(i));
System.out.print("...");
}
}
}
|
[
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,
14,
2,
13,
4,
18,
13,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
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
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
25,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
45,
49
],
[
44,
50
],
[
6,
51
],
[
51,
52
],
[
0,
53
],
[
53,
54
],
[
53,
55
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.next());\n\t\tString str = sc.next();\n\n\t\tif(n>=str.length()) {\n\t\t\tSystem.out.println(str);\n\t\t}else {\n\t\t\tSystem.out.println(str.substring(0,n)+\"...\");\n\t\t}\n\n\t}\n\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.next());\n\t\tString str = sc.next();\n\n\t\tif(n>=str.length()) {\n\t\t\tSystem.out.println(str);\n\t\t}else {\n\t\t\tSystem.out.println(str.substring(0,n)+\"...\");\n\t\t}\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.next());\n\t\tString str = sc.next();\n\n\t\tif(n>=str.length()) {\n\t\t\tSystem.out.println(str);\n\t\t}else {\n\t\t\tSystem.out.println(str.substring(0,n)+\"...\");\n\t\t}\n\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.next());\n\t\tString str = sc.next();\n\n\t\tif(n>=str.length()) {\n\t\t\tSystem.out.println(str);\n\t\t}else {\n\t\t\tSystem.out.println(str.substring(0,n)+\"...\");\n\t\t}\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = Integer.parseInt(sc.next());",
"n",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"String str = sc.next();",
"str",
"sc.next()",
"sc.next",
"sc",
"if(n>=str.length()) {\n\t\t\tSystem.out.println(str);\n\t\t}else {\n\t\t\tSystem.out.println(str.substring(0,n)+\"...\");\n\t\t}",
"n>=str.length()",
"n",
"str.length()",
"str.length",
"str",
"{\n\t\t\tSystem.out.println(str);\n\t\t}",
"System.out.println(str)",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"{\n\t\t\tSystem.out.println(str.substring(0,n)+\"...\");\n\t\t}",
"System.out.println(str.substring(0,n)+\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"str.substring(0,n)+\"...\"",
"str.substring(0,n)",
"str.substring",
"str",
"0",
"n",
"\"...\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.next());\n\t\tString str = sc.next();\n\n\t\tif(n>=str.length()) {\n\t\t\tSystem.out.println(str);\n\t\t}else {\n\t\t\tSystem.out.println(str.substring(0,n)+\"...\");\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\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.next());\n\t\tString str = sc.next();\n\n\t\tif(n>=str.length()) {\n\t\t\tSystem.out.println(str);\n\t\t}else {\n\t\t\tSystem.out.println(str.substring(0,n)+\"...\");\n\t\t}\n\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner sc = new Scanner(System.in);
int n = Integer.parseInt(sc.next());
String str = sc.next();
if(n>=str.length()) {
System.out.println(str);
}else {
System.out.println(str.substring(0,n)+"...");
}
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.